answer
stringlengths
15
1.25M
package fr.jmini.asciidoctorj.testcases; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.Map; import org.asciidoctor.AttributesBuilder; import org.asciidoctor.OptionsBuilder; import org.asciidoctor.ast.Block; import org.asciidoctor.ast.Document; import org.asciidoctor.ast.Title; public class <API key> implements AdocTestCase { public static final String ASCIIDOC = "" + "= My page\n" + "\n" + "Some text\n" + ""; @Override public String getAdocInput() { return ASCIIDOC; } @Override public Map<String, Object> getInputOptions() { AttributesBuilder attributesBuilder = AttributesBuilder.attributes() .showTitle(true); return OptionsBuilder.options() .attributes(attributesBuilder) .asMap(); } // tag::expected-html[] public static final String EXPECTED_HTML = "" + "<h1>My page</h1>\n" + "<div class=\"paragraph\">\n" + "<p>Some text</p>\n" + "</div>"; // end::expected-html[] @Override public String getHtmlOutput() { return EXPECTED_HTML; } @Override // tag::assert-code[] public void checkAst(Document astDocument) { Document document1 = astDocument; assertThat(document1.getId()).isNull(); assertThat(document1.getNodeName()).isEqualTo("document"); assertThat(document1.getParent()).isNull(); assertThat(document1.getContext()).isEqualTo("document"); assertThat(document1.getDocument()).isSameAs(document1); assertThat(document1.isInline()).isFalse(); assertThat(document1.isBlock()).isTrue(); assertThat(document1.getAttributes()).containsEntry("doctitle", "My page") .containsEntry("doctype", "article") .containsEntry("example-caption", "Example") .containsEntry("figure-caption", "Figure") .containsEntry("filetype", "html") .containsEntry("notitle", "") .containsEntry("prewrap", "") .containsEntry("showtitle", true) .containsEntry("table-caption", "Table"); assertThat(document1.getRoles()).isNullOrEmpty(); assertThat(document1.isReftext()).isFalse(); assertThat(document1.getReftext()).isNull(); assertThat(document1.getCaption()).isNull(); assertThat(document1.getTitle()).isNull(); assertThat(document1.getStyle()).isNull(); assertThat(document1.getLevel()).isEqualTo(0); assertThat(document1.getContentModel()).isEqualTo("compound"); assertThat(document1.getSourceLocation()).isNull(); assertThat(document1.getSubstitutions()).isNullOrEmpty(); assertThat(document1.getBlocks()).hasSize(1); Block block1 = (Block) document1.getBlocks() .get(0); assertThat(block1.getId()).isNull(); assertThat(block1.getNodeName()).isEqualTo("paragraph"); assertThat(block1.getParent()).isSameAs(document1); assertThat(block1.getContext()).isEqualTo("paragraph"); assertThat(block1.getDocument()).isSameAs(document1); assertThat(block1.isInline()).isFalse(); assertThat(block1.isBlock()).isTrue(); assertThat(block1.getAttributes()).isNullOrEmpty(); assertThat(block1.getRoles()).isNullOrEmpty(); assertThat(block1.isReftext()).isFalse(); assertThat(block1.getReftext()).isNull(); assertThat(block1.getCaption()).isNull(); assertThat(block1.getTitle()).isNull(); assertThat(block1.getStyle()).isNull(); assertThat(block1.getLevel()).isEqualTo(0); assertThat(block1.getContentModel()).isEqualTo("simple"); assertThat(block1.getSourceLocation()).isNull(); assertThat(block1.getSubstitutions()).containsExactly("specialcharacters", "quotes", "attributes", "replacements", "macros", "post_replacements"); assertThat(block1.getBlocks()).isNullOrEmpty(); assertThat(block1.getLines()).containsExactly("Some text"); assertThat(block1.getSource()).isEqualTo("Some text"); Title title1 = document1.<API key>(); assertThat(title1.getMain()).isEqualTo("My page"); assertThat(title1.getSubtitle()).isNull(); assertThat(title1.getCombined()).isEqualTo("My page"); assertThat(title1.isSanitized()).isFalse(); assertThat(document1.getDoctitle()).isEqualTo("My page"); assertThat(document1.getOptions()).containsEntry("header_footer", false); } // end::assert-code[] @Override // tag::mock-code[] public Document createMock() { Document mockDocument1 = mock(Document.class); when(mockDocument1.getId()).thenReturn(null); when(mockDocument1.getNodeName()).thenReturn("document"); when(mockDocument1.getParent()).thenReturn(null); when(mockDocument1.getContext()).thenReturn("document"); when(mockDocument1.getDocument()).thenReturn(mockDocument1); when(mockDocument1.isInline()).thenReturn(false); when(mockDocument1.isBlock()).thenReturn(true); Map<String, Object> map1 = new HashMap<>(); map1.put("doctitle", "My page"); map1.put("doctype", "article"); map1.put("example-caption", "Example"); map1.put("figure-caption", "Figure"); map1.put("filetype", "html"); map1.put("notitle", ""); map1.put("prewrap", ""); map1.put("showtitle", true); map1.put("table-caption", "Table"); when(mockDocument1.getAttributes()).thenReturn(map1); when(mockDocument1.getRoles()).thenReturn(Collections.emptyList()); when(mockDocument1.isReftext()).thenReturn(false); when(mockDocument1.getReftext()).thenReturn(null); when(mockDocument1.getCaption()).thenReturn(null); when(mockDocument1.getTitle()).thenReturn(null); when(mockDocument1.getStyle()).thenReturn(null); when(mockDocument1.getLevel()).thenReturn(0); when(mockDocument1.getContentModel()).thenReturn("compound"); when(mockDocument1.getSourceLocation()).thenReturn(null); when(mockDocument1.getSubstitutions()).thenReturn(Collections.emptyList()); Block mockBlock1 = mock(Block.class); when(mockBlock1.getId()).thenReturn(null); when(mockBlock1.getNodeName()).thenReturn("paragraph"); when(mockBlock1.getParent()).thenReturn(mockDocument1); when(mockBlock1.getContext()).thenReturn("paragraph"); when(mockBlock1.getDocument()).thenReturn(mockDocument1); when(mockBlock1.isInline()).thenReturn(false); when(mockBlock1.isBlock()).thenReturn(true); when(mockBlock1.getAttributes()).thenReturn(Collections.emptyMap()); when(mockBlock1.getRoles()).thenReturn(Collections.emptyList()); when(mockBlock1.isReftext()).thenReturn(false); when(mockBlock1.getReftext()).thenReturn(null); when(mockBlock1.getCaption()).thenReturn(null); when(mockBlock1.getTitle()).thenReturn(null); when(mockBlock1.getStyle()).thenReturn(null); when(mockBlock1.getLevel()).thenReturn(0); when(mockBlock1.getContentModel()).thenReturn("simple"); when(mockBlock1.getSourceLocation()).thenReturn(null); when(mockBlock1.getSubstitutions()).thenReturn(Arrays.asList("specialcharacters", "quotes", "attributes", "replacements", "macros", "post_replacements")); when(mockBlock1.getBlocks()).thenReturn(Collections.emptyList()); when(mockBlock1.getLines()).thenReturn(Collections.singletonList("Some text")); when(mockBlock1.getSource()).thenReturn("Some text"); when(mockDocument1.getBlocks()).thenReturn(Collections.singletonList(mockBlock1)); Title mockTitle1 = mock(Title.class); when(mockTitle1.getMain()).thenReturn("My page"); when(mockTitle1.getSubtitle()).thenReturn(null); when(mockTitle1.getCombined()).thenReturn("My page"); when(mockTitle1.isSanitized()).thenReturn(false); when(mockDocument1.<API key>()).thenReturn(mockTitle1); when(mockDocument1.getDoctitle()).thenReturn("My page"); Map<Object, Object> map2 = new HashMap<>(); map2.put("attributes", "{\"showtitle\"=>true}"); map2.put("header_footer", false); when(mockDocument1.getOptions()).thenReturn(map2); return mockDocument1; } // end::mock-code[] }
package fr.sii.ogham.sms.message; import fr.sii.ogham.core.util.EqualsBuilder; import fr.sii.ogham.core.util.HashCodeBuilder; public class PhoneNumber { /** * The phone number as string */ private String number; /** * Initialize the phone number with the provided number. * * @param number * the phone number */ public PhoneNumber(String number) { super(); this.number = number; } public String getNumber() { return number; } public void setNumber(String number) { this.number = number; } @Override public String toString() { return number; } @Override public int hashCode() { return new HashCodeBuilder().append(number).hashCode(); } @Override public boolean equals(Object obj) { return new EqualsBuilder(this, obj).appendFields("number").isEqual(); } }
# Vagrant Kafka Lab **Prerequistes:** Vagrant (2.0.1), Virtual Box (5.2.0) and Ansible (2.4.1.0) ## Web UIs - Grafana: [http: - Prometheus-UI: [http: ## Installation bash git clone https://github.com/ineedcode/vagrant-kafka-lab cd vagrant-kafka-lab vagrant plugin install vagrant-hostmanager vagrant up ## Grafana Konfiguration access to Grafana and use the default credentials with `admin:admin`. Add Dashboard with Prometheus as source, the source is available at `localhost:9000. Upload the Kafka Dashboard which is included in the doc folder: [<API key>](doc/<API key>.json) ## Components In the following you'll find list of components that has been used and with some general settings. | IP | Hostname | Description | Settings | | | 192.168.10.2 | kafka-1 | ZK, Kafka Broker, Prometheus | 2GB RAM | | 192.168.10.3 | kafka-2 | ZK, Kafka Broker | 1GB RAM | | 192.168.10.4 | kafka-3 | ZK, Kafka Broker | 1GB RAM | # Ansible bash ansible all -i ansible/inventories/vbox/hosts -m ping -o ansible-playbook ansible/cluster.yml --tags "new-kafka-config" ## Usage ## Use pre build commands to interact with Kafka The `script` folder has been added to the PATH therefore you can use the shell scripts from your cli of the virtual machines. bash vagrant ssh kafka-1 list-topics.sh #lists all topics Versions Following versions are used in this lab - Kafka is using 0.11.0.2 ([change it here](ansible/roles/kafka/defaults/main.yml)) - Zookeeper is using 3.4.10 ([change it here](ansible/roles/zookeeper/defaults/main.yml)) - Promeutheus is using 1.7.1 ([change it here](ansible/roles/promeutheus/defaults/main.yml)) - Grafana is using 4.3.2 ([change it here](ansible/roles/promeutheus/defaults/main.yml))
package org.fastnate.generator.converter; import java.time.Duration; import org.fastnate.generator.context.GeneratorContext; import org.fastnate.generator.statements.ColumnExpression; import org.fastnate.generator.statements.<API key>; /** * Converts a {@link Duration} to an SQL expression. * * @author Tobias Liefke */ public class DurationConverter implements ValueConverter<Duration> { @Override public ColumnExpression getExpression(final Duration value, final GeneratorContext context) { return <API key>.create(value.toNanos(), context.getDialect()); } @Override public ColumnExpression getExpression(final String defaultValue, final GeneratorContext context) { return getExpression(Duration.parse(defaultValue), context); } }
module <API key> # Commands used from new dtk client def <API key>(node_address, port, path) endpoint = node_address + ":" + port response = request_response(path, {}, 'get', endpoint); response.code == 200 end def get_node_by_name(<API key>, node_name) nodes_response = send_request("/rest/api/v1/services/#{<API key>}/nodes", {}, 'get') nodes = nodes_response['data'] if nodes.empty? puts "No nodes found"; return false end selected_node_arr = nodes.select { |node| node['display_name'] == node_name } if nodes if selected_node_arr.empty? || selected_node_arr.length > 1 puts "Expected only one node, but found: #{selected_node_arr}" return false end node = selected_node_arr.first puts "Found requested node: #{node}" node end def <API key>(<API key>) require 'aws-sdk-ec2' puts "Verify service instance nodes have been terminated", " nodes_terminated = true ec2 = Aws::EC2::Client.new(region: 'us-east-1') ec2_instance = ec2.describe_instances(filters:[{ name: 'tag:Name', values: ["*" + <API key> + "*"] }]) ec2_instance.reservations.each do |status| puts "Instance details: #{status}" if status.instances.first.state.name == "running" nodes_terminated = false puts "Service instance: #{<API key>} nodes have not been terminated" end end puts "" puts "Service instance: #{<API key>} nodes have been terminated" if nodes_terminated nodes_terminated end def <API key>(<API key>) puts "Check if service instance exists", " <API key> = false <API key> = send_request("/rest/api/v1/services/list", {}, 'get') ap <API key> if <API key>['status'] == 'ok' && !<API key>['data'].empty? <API key>['data'].each do |instance| if instance['display_name'] == <API key> puts "Service instance: #{<API key>} found!" <API key> = true end end else puts "Service instance #{<API key>} is not found!" end puts "Service instance #{<API key>} is not found!" unless <API key> puts "" <API key> end def <API key>(<API key>, node_name) puts "Check if node exists in service instance", " node_exists = false nodes_list = send_request("/rest/api/v1/services/#{<API key>}/nodes", {}, 'get') ap nodes_list if nodes_list['status'] == 'ok' && !nodes_list['data'].empty? nodes_list['data'].each do |node| if node['display_name'] == node_name puts "Node: #{node_name} found!" node_exists = true end end else puts "Node #{node_name} is not found in #{<API key>}" end puts "Node #{node_name} is not found in #{<API key>}" unless node_exists puts "" node_exists end def <API key>(<API key>, node_group_name, cardinality) puts "Check if node group exists in service instance", " node_group_exist = false nodes_list = send_request("/rest/api/v1/services/#{<API key>}/nodes", {}, 'get') ap nodes_list if nodes_list['status'] == 'ok' && !nodes_list['data'].empty? node_group_members = [] nodes_list['data'].each do |node| if node['display_name'].include? node_group_name + ":" # indicator it is node group member node_group_members << node['display_name'] end end if node_group_members.size == cardinality puts "Node group #{node_group_name} is found in #{<API key>}" node_group_exist = true end else puts "Node group #{node_group_name} is not found in #{<API key>}" end puts "Node group #{node_group_name} is not found in #{<API key>}" unless node_group_exist puts "" node_group_exist end def <API key>(<API key>, component_name) puts "Check if component exists in service instance", " component_exists = false components_list = send_request("/rest/api/v1/services/#{<API key>}/components", {}, 'get') ap components_list if components_list['status'] == 'ok' && !components_list['data'].empty? components_list['data'].each do |cmp| if cmp['display_name'] == component_name puts "Component: #{component_name} found!" component_exists = true end end else puts "Component #{component_name} is not found in #{<API key>}" end puts "Component #{component_name} is not found in #{<API key>}" unless component_exists puts "" component_exists end def <API key>(<API key>, action_to_check) puts "Check if action exists in service instance", " action_exists = false list_of_actions = send_request("/rest/api/v1/services/#{<API key>}/actions", {}, 'get') ap list_of_actions if list_of_actions['status'] == 'ok' && !list_of_actions['data'].empty? list_of_actions['data'].each do |action| if action['display_name'] == action_to_check puts "Action: #{action_to_check} found!" action_exists = true end end else puts "Action #{action_to_check} is not found in #{<API key>}" end puts "Action #{action_to_check} is not found in #{<API key>}" unless action_exists puts "" action_exists end def <API key>(<API key>, attributes_to_check) puts "Check if attributes exist and are correct in service instance", " attributes_exist = false attributes_list = send_request("/rest/api/v1/services/#{<API key>}/attributes?all&format=yaml", {}, 'get') puts "Attributes to check:" ap attributes_to_check puts "" puts "Attributes on service instance:" ap attributes_list puts "" if attributes_list['status'] == 'ok' && !attributes_list['data'].empty? <API key> = [] attributes_list['data'].each do |attr| if (attributes_to_check.keys.include? attr['name']) && (attributes_to_check.values.include? attr['value']) <API key> << true end end if (<API key>.count == attributes_to_check.count) && (!<API key>.include? false) puts "All attributes: #{attributes_to_check} are verified and exist on service instance" attributes_exist = true else puts "Some attributes are missing or they don't have expected values on service instance" end else puts "Attributes #{attributes_to_check} are not found in #{<API key>}" end puts "" attributes_exist end def check_task_status(<API key>) puts "Check task status", " service_converged = { pass: false, error: nil } end_loop = false count = 0 max_num_of_retries = 80 while (count < max_num_of_retries) sleep 10 count += 1 <API key> = send_request("/rest/api/v1/services/#{<API key>}/task_status", {}, 'get') if <API key>['status'] == 'ok' if <API key>['data'].first['status'] == 'succeeded' puts "Service was converged successfully!" service_converged[:pass] = true break elsif <API key>['data'].first['status'] == 'failed' puts 'Service was not converged successfully!' ap <API key>['data'] service_converged[:error] = <API key>['data'] break end else ap <API key>['data'] service_converged[:error] = <API key>['data'] puts "Service was not converged successfully!" break end end puts '' service_converged end def <API key>(<API key>, <API key>) puts "Check task status with breakpoint", " debug_passed = false end_loop = false count = 0 max_num_of_retries = 30 while (count < max_num_of_retries) sleep 10 count += 1 <API key> = send_request("/rest/api/v1/services/#{<API key>}/task_status", {}, 'get') ap <API key> if <API key>['status'] == 'ok' if <API key>['data'].first['status'] == 'debugging' subtask = <API key>['data'].select { |subtask| subtask['type'].include? <API key> }.first debug_command = subtask['info']['message'].match(/(byebug -R.+)'/)[1] debug_execution = `echo c | #{debug_command}` puts debug_execution if debug_execution.include? "Connected" debug_passed = true break else debug_passed = false break end end else ap <API key>['data'] puts "Service was not converged successfully! Debug cannot proceed" break end end puts '' debug_passed end def <API key>(<API key>) puts "Check delete task status", " service_deleted = { pass: false, error: nil } end_loop = false count = 0 max_num_of_retries = 50 while (count < max_num_of_retries) sleep 10 count += 1 <API key> = send_request("/rest/api/v1/services/#{<API key>}/task_status", {}, 'get') if <API key>['status'] == 'ok' if <API key>['data'].first['status'] == 'succeeded' puts "Service was deleted successfully!" service_deleted[:pass] = true break elsif <API key>['data'].first['status'] == 'failed' puts 'Service was not deleted successfully!' ap <API key>['data'] service_deleted[:error] = <API key>['data'] break end else ap <API key> if <API key>['errors'].first['message'] == "No context with the name '#{<API key>}' exists" puts "Service was deleted successfully!" service_deleted[:pass] = true else puts "Service was not deleted successfully!" service_deleted[:error] = <API key>['data'] end break end end puts '' service_deleted end def <API key>(<API key>, context = nil) #Get list of assemblies, extract selected assembly, stage service and return its id puts "Stage service:", " service_id = nil extract_id_regex = /id: (\d+)/ assembly_list = send_request('/rest/assembly/list', {:subtype=>'template'}) puts "List of avaliable assemblies: " pretty_print_JSON(assembly_list) test_template = assembly_list['data'].select { |x| x['display_name'] == @assembly }.first if (!test_template.nil?) puts "Assembly #{@assembly} found!" assembly_id = test_template['id'] puts "Assembly id: #{assembly_id}" if @is_context <API key> = send_request('/rest/assembly/stage', {:assembly_id=>assembly_id, :name=>@service_name, :service_module_name => <API key>, :is_context => @is_context}) else unless context <API key> = send_request('/rest/assembly/stage', {:assembly_id=>assembly_id, :name=>@service_name, :service_module_name => <API key>}) else <API key> = send_request('/rest/assembly/stage', {:assembly_id=>assembly_id, :name=>@service_name, :service_module_name => <API key>, :context_id=>context}) end end pretty_print_JSON(<API key>) if (<API key>['data'].include? "name: #{@service_name}") puts "Stage of #{@service_name} assembly completed successfully!" service_id_match = <API key>['data'].match(extract_id_regex) self.service_id = service_id_match[1].to_i puts "Service id for a staged service: #{self.service_id}" else puts "Stage service didnt pass!" end else puts "Assembly #{@service_name} not found!" end puts "" end # Commands used from old dtk client def stage_service(context = nil) #Get list of assemblies, extract selected assembly, stage service and return its id puts "Stage service:", " service_id = nil extract_id_regex = /id: (\d+)/ assembly_list = send_request('/rest/assembly/list', {:subtype=>'template'}) puts "List of avaliable assemblies: " pretty_print_JSON(assembly_list) test_template = assembly_list['data'].select { |x| x['display_name'] == @assembly }.first if (!test_template.nil?) puts "Assembly #{@assembly} found!" assembly_id = test_template['id'] puts "Assembly id: #{assembly_id}" if @is_context <API key> = send_request('/rest/assembly/stage', {:assembly_id=>assembly_id, :name=>@service_name, :is_context => @is_context}) else unless context <API key> = send_request('/rest/assembly/stage', {:assembly_id=>assembly_id, :name=>@service_name}) else <API key> = send_request('/rest/assembly/stage', {:assembly_id=>assembly_id, :name=>@service_name, :context_id=>context}) end end pretty_print_JSON(<API key>) if (<API key>['data'].include? "name: #{@service_name}") puts "Stage of #{@service_name} assembly completed successfully!" service_id_match = <API key>['data'].match(extract_id_regex) self.service_id = service_id_match[1].to_i puts "Service id for a staged service: #{self.service_id}" else puts "Stage service didnt pass!" end else puts "Assembly #{@service_name} not found!" end puts "" end def <API key>(service_id) puts "Get all component versions from service:", " components_list = send_request('/rest/assembly/info_about', {:assembly_id=>service_id, :node_id => nil, :component_id => nil, :subtype=>'instance', :about=>'components'}) components_list = components_list['data'].map! { |c| c['version'] } puts "" return components_list end def <API key> puts "Get default context service instance id:", " service_id = nil <API key> = send_request('/rest/assembly/get_default_context', {}) if <API key>['status'] == 'ok' puts "Default context service instance succesfully found." service_id = <API key>['data']['id'] else puts "Default context service was not succesfully found." end puts '' service_id end def <API key>(namespace) #Get list of assemblies, extract selected assembly, stage service and return its id puts "Stage service:", " service_id = nil extract_id_regex = /id: (\d+)/ assembly_list = send_request('/rest/assembly/list', {:subtype=>'template'}) puts "List of avaliable assemblies: " pretty_print_JSON(assembly_list) test_template = assembly_list['data'].select { |x| x['display_name'] == @assembly && x['namespace'] == namespace }.first if (!test_template.nil?) puts "Assembly #{@assembly} from namespace #{namespace} found!" assembly_id = test_template['id'] puts "Assembly id: #{assembly_id}" <API key> = send_request('/rest/assembly/stage', {:assembly_id=>assembly_id, :name=>@service_name}) pretty_print_JSON(<API key>) if (<API key>['data'].include? "name: #{@service_name}") puts "Stage of #{@service_name} assembly completed successfully!" service_id_match = <API key>['data'].match(extract_id_regex) self.service_id = service_id_match[1].to_i puts "Service id for a staged service: #{self.service_id}" else puts "Stage service didnt pass!" end else puts "Assembly #{@service_name} not found!" end puts "" end def check_service_info(service_id, info_to_check) puts "Show service info:", " info_exist = false <API key> = send_request('/rest/assembly/info', {:assembly_id=>service_id, :subtype=>:instance}) pretty_print_JSON(<API key>) if <API key>['data'].include? info_to_check puts "#{info_to_check} exists in info output!" info_exist = true else puts "#{info_to_check} does not exist in info output!" end puts "" return info_exist end def rename_service(service_id, new_service_name) puts "Rename service:", " service_renamed = false service_list = send_request('/rest/assembly/list', {:detail_level=>'nodes', :subtype=>'instance'}) service_name = service_list['data'].select { |x| x['id'] == service_id } if service_name.any? puts "Old service name is: #{service_name}. Proceed with renaming it to #{new_service_name}..." rename_status = send_request('/rest/assembly/rename', {:assembly_id=>service_id, :assembly_name=>service_name, :new_assembly_name=>new_service_name}) if rename_status['status'] == 'ok' puts "Service #{service_name} renamed to #{new_service_name} successfully!" service_renamed = true else puts "Service #{service_name} was not renamed to #{new_service_name} successfully!" end else puts "Service with id #{service_id} does not exist!" end puts "" return service_renamed end def create_attribute(service_id, attribute_name) #Create attribute puts "Create attribute:", " attributes_created = false <API key> = send_request('/rest/assembly/set_attributes', {:assembly_id=>service_id, :create=>true, :pattern=>attribute_name}) puts "List of service attributes:" service_attributes = send_request('/rest/assembly/info_about', {:about=>'attributes', :filter=>nil, :subtype=>'instance', :assembly_id=>service_id}) pretty_print_JSON(service_attributes) extract_attribute = service_attributes['data'].select { |x| x['display_name'].include? attribute_name }.first['display_name'] if (extract_attribute == attribute_name) puts "Creating #{attribute_name} attribute completed successfully!" attributes_created = true end puts "" return attributes_created end def <API key>(service_id, attribute_name) puts "Check if attribute exists:", " attribute_exists = false puts "List of service attributes:" service_attributes = send_request('/rest/assembly/info_about', {:about=>'attributes', :filter=>nil, :subtype=>'instance', :assembly_id=>service_id}) pretty_print_JSON(service_attributes) extract_attribute = service_attributes['data'].select { |x| x['display_name'].include? attribute_name }.first['display_name'] if (extract_attribute == attribute_name) puts "#{attribute_name} attribute exists!" attribute_exists = true else puts "#{attribute_name} attribute does not exist!" end puts "" return attribute_exists end def link_attributes(service_id, source_attribute, context_attribute) puts "Link attributes:", " attributes_linked = false <API key> = send_request('/rest/assembly/<API key>', {:assembly_id=>service_id, :<API key>=>context_attribute, :<API key>=>"$#{source_attribute}"}) pretty_print_JSON(<API key>) if <API key>['status'] == 'ok' puts "Link between #{source_attribute} attribute and #{context_attribute} attribute is established!" attributes_linked = true else puts "Link between #{source_attribute} attribute and #{context_attribute} attribute is not established!" end puts "" return attributes_linked end def <API key>(service_name) puts "Get service instance id by its name", " service_list = send_request('/rest/assembly/list', {:detail_level=>'nodes', :subtype=>'instance'}) puts "List of all services and its content:" service_instance = nil filtered_services = service_list['data'].select { |x| x['display_name'] == service_name } if filtered_services.length == 1 puts "Service instance with name #{service_name} exists: " pretty_print_JSON(filtered_services) service_instance = filtered_services[0] elsif filtered_services.length.zero? puts "Service instance with name #{service_name} does not exist." else puts "Multiple service instances with name #{service_name} exist." end end def <API key>(service_id) #Get list of existing services and check if staged service exists puts "Check if service exists:", " service_exists = false service_list = send_request('/rest/assembly/list', {:detail_level=>'nodes', :subtype=>'instance'}) puts "List of all services and its content:" pretty_print_JSON(service_list) test_service = service_list['data'].select { |x| x['id'] == service_id } puts "Service with id #{service_id}: " pretty_print_JSON(test_service) if (test_service.any?) extract_service_id = test_service.first['id'] execution_status = test_service.first['execution_status'] if ((extract_service_id == service_id) && (execution_status == 'staged')) puts "Service with id #{service_id} exists!" service_exists = true end else puts "Service with id #{service_id} does not exist!" end puts "" return service_exists end def <API key>(service_name) puts "List success services:", " service_list = send_request('/rest/assembly/list', {:subtype=>'instance', :detail_level => 'nodes'}) success_services = service_list['data'].select { |x| x['display_name'] == service_name && x['execution_status'] == 'succeeded' } pretty_print_JSON(success_services) return success_services end def <API key>(service_name) puts "List success services:", " service_list = send_request('/rest/assembly/list', {:subtype=>'instance', :detail_level => 'nodes'}) success_services = service_list['data'].select { |x| (x['display_name'].include? service_name) && (x['execution_status'] == 'succeeded') } pretty_print_JSON(success_services) return success_services end def <API key>(service_name) puts "List failed services:", " service_list = send_request('/rest/assembly/list', {:subtype=>'instance', :detail_level => 'nodes'}) failed_services = service_list['data'].select { |x| x['display_name'] == service_name && x['execution_status'] == 'failed' } pretty_print_JSON(failed_services) return failed_services end def <API key>(service_name) puts "List failed services:", " service_list = send_request('/rest/assembly/list', {:subtype=>'instance', :detail_level => 'nodes'}) failed_services = service_list['data'].select { |x| (x['display_name'].include? service_name) && (x['execution_status'] == 'failed') } pretty_print_JSON(failed_services) return failed_services end def <API key>(service_id, status_to_check) #Get list of services and check if service exists and its status puts "Check service status:", " service_exists = false end_loop = false count = 0 max_num_of_retries = 50 while (end_loop == false) sleep 5 count += 1 service_list = send_request('/rest/assembly/list', {:subtype=>'instance'}) service = service_list['data'].select { |x| x['id'] == service_id }.first if (!service.nil?) test_service = send_request('/rest/assembly/info', {:assembly_id=>service_id,:subtype=>:instance}) op_status = test_service['data']['op_status'] extract_service_id = service['id'] if ((extract_service_id == service_id) && (op_status == status_to_check)) puts "Service with id #{extract_service_id} has current op status: #{status_to_check}" service_exists = true end_loop = true else puts "Service with id #{extract_service_id} still does not have current op status: #{status_to_check}" end else puts "Service with id #{service_id} not found in list" end_loop = true end if (count > max_num_of_retries) puts "Max number of retries reached..." end_loop = true end end puts "" return service_exists end def set_attribute(service_id, attribute_name, attribute_value) #Set attribute on particular service puts "Set attribute:", " is_attributes_set = false service_attributes = send_request('/rest/assembly/info_about', {:about=>'attributes', :filter=>nil, :subtype=>'instance', :assembly_id=>service_id}) attribute_id = service_attributes['data'].select { |x| x['display_name'].include? attribute_name } if attribute_id.empty? <API key> = send_request('/rest/assembly/set_attributes', {:assembly_id=>service_id, :value=>attribute_value, :pattern=>attribute_name}) if <API key>['status'] == 'ok' puts "Setting of attribute #{attribute_name} completed successfully!" is_attributes_set = true end else <API key> = send_request('/rest/assembly/set_attributes', {:assembly_id=>service_id, :value=>attribute_value, :pattern=>attribute_id.first['id']}) service_attributes = send_request('/rest/assembly/info_about', {:about=>'attributes', :filter=>nil, :subtype=>'instance', :assembly_id=>service_id}) <API key> = service_attributes['data'].select { |x| x['value'] == attribute_value }.first['value'] if <API key> != nil puts "Setting of attribute #{attribute_name} completed successfully!" is_attributes_set = true end end puts "" return is_attributes_set end def <API key>(service_id, attribute_name, attribute_value) #Set attribute on particular service puts "Set attribute:", " is_attributes_set = false #Get attribute id for which value will be set service_attributes = send_request('/rest/assembly/info_about', {:about=>'attributes', :filter=>nil, :subtype=>'instance', :assembly_id=>service_id}) attribute_id = service_attributes['data'].select { |x| x['display_name'].include? attribute_name }.first['id'] #Set attribute value for given attribute id <API key> = send_request('/rest/assembly/set_attributes', {:assembly_id=>service_id, :value=>attribute_value, :pattern=>attribute_id}) service_attributes = send_request('/rest/assembly/info_about', {:about=>'attributes', :filter=>nil, :subtype=>'instance', :assembly_id=>service_id}) <API key> = attribute_id = service_attributes['data'].select { |x| x['display_name'].include? attribute_name }.first['value'] if <API key> == attribute_value puts "Setting of attribute #{attribute_name} completed successfully!" is_attributes_set = true end puts "" return is_attributes_set end def get_attribute_value(service_id, node_name, component_name, attribute_name) puts "Get attribute value by name:", " puts "List of service attributes:" service_attributes = send_request('/rest/assembly/info_about', {:assembly_id=>service_id, :filter=>nil, :about=>'attributes', :subtype=>'instance'}) pretty_print_JSON(service_attributes) attributes = service_attributes['data'].select { |x| x['display_name'] == "#{node_name}/#{component_name}/#{attribute_name}" }.first if !attributes.nil? attribute_value = service_attributes['data'].select { |x| x['display_name'] == "#{node_name}/#{component_name}/#{attribute_name}" }.first['value'] puts "Attribute value is: #{attribute_value}" else puts "Some of the input parameters is incorrect or missing. Node name: #{node_name}, Component name: #{component_name}, Attribute name: #{attribute_name}" end puts "" return attribute_value end # new client def <API key>(<API key>, source_component, <API key>, type) puts "Check component dependency:", " dependency_found = false puts "List service components with dependencies:" components_list = send_request("/rest/api/v1/services/#{<API key>}/component_links", {}, 'get') component = components_list['data'].select { |x| x['base_component'] == source_component} if (!component.nil?) puts "Component #{source_component} exists. Check its dependencies..." component.each do |deps| if (deps['dependent_component'] == <API key>) && (deps['type'] == type) dependency_found = true puts "Component #{source_component} has expected dependency component #{<API key>} with type #{type}" else puts "Component #{source_component} does not have expected dependency component #{<API key>} with type #{type}" end end else puts "Component #{source_component} does not exist and therefore it does not have any dependencies" end puts "" return dependency_found end def converge_service(service_id, max_num_of_retries=15) puts "Converge service:", " service_converged = false puts "Converge process for service with id #{service_id} started!" find_violations = send_request('/rest/assembly/find_violations', {'assembly_id' => service_id}) <API key> = send_request('/rest/assembly/create_task', {'assembly_id' => service_id}) if (@error_message == "") task_id = <API key>['data']['task_id'] puts "Task id: #{task_id}" <API key> = send_request('/rest/task/execute', {'task_id' => task_id}) end_loop = false count = 0 task_status = 'executing' while ((task_status.include? 'executing') && (end_loop == false)) sleep 20 count += 1 <API key> = send_request('/rest/assembly/task_status', {'assembly_id'=> service_id}) status = <API key>['data'].first['status'] unless status.nil? if (status.include? 'succeeded') service_converged = true puts "Task execution status: #{status}" puts "Converge process finished successfully!" end_loop = true elsif (status.include? 'failed') puts "Error details on subtasks:" ap <API key>['data'] <API key>['data'].each do |error_message| unless error_message['errors'].nil? puts error_message['errors']['message'] puts error_message['errors']['type'] end end puts "Task execution status: #{status}" puts "Converge process was not finished successfully! Some tasks failed!" end_loop = true end puts "Task execution status: #{status}" end if (count > max_num_of_retries) puts "Max number of retries reached..." puts "Converge process was not finished successfully!" end_loop = true end end else puts "Service was not converged successfully!" end puts "" return service_converged end def <API key>(service_id) puts "Stop running service:", " service_stopped = false <API key> = send_request('/rest/assembly/stop', {:assembly_id => service_id}) if (<API key>['status'] == "ok") puts "Service stopped successfully!" service_stopped = true else puts "Service was not stopped successfully!" end puts "" return service_stopped end def <API key>(service_id, service_module_name, assembly_name, namespace=nil) puts "Create assembly from service:", " assembly_created = false <API key> = send_request('/rest/assembly/promote_to_template', {:service_module_name=>service_module_name, :mode=>:create, :assembly_id=>service_id, :<API key>=>assembly_name, :namespace=>namespace}) if (<API key>['status'] == 'ok') puts "Assembly #{assembly_name} created in service module #{service_module_name}" assembly_created = true else puts "Assembly #{assembly_name} was not created in service module #{service_module_name}" end puts "" return assembly_created end def netstats_check(service_id, port) puts "Netstats check:", " netstats_check = false end_loop = false count = 0 max_num_of_retries = 15 while (end_loop == false) sleep 10 count += 1 if (count > max_num_of_retries) puts "Max number of retries for getting netstats reached..." end_loop = true end response = send_request('/rest/assembly/<API key>', {:node_id=>nil, :assembly_id=>service_id}) pretty_print_JSON(response) action_results_id = response['data']['action_results_id'] 5.downto(1) do |i| sleep 1 response = send_request('/rest/assembly/get_action_results', {:<API key>=>false, :<API key>=>true, :action_results_id=>action_results_id, :sort_key=>"port"}) puts "Netstats check:" pretty_print_JSON(response) if response['data']['is_complete'] port_to_check = response['data']['results'].select { |x| x['port'] == port}.first if (!port_to_check.nil?) puts "Netstats check completed! Port #{port} available!" netstats_check = true end_loop = true break else puts "Netstats check completed! Port #{port} is not available!" netstats_check = false break end end end end puts "" return netstats_check end def <API key>(service_id) puts "Start service:", " service_started = false response = send_request('/rest/assembly/start', {:assembly_id => service_id, :node_pattern=>nil}) pretty_print_JSON(response) task_id = response['data']['task_id'] response = send_request('/rest/task/execute', {:task_id=>task_id}) if (response['status'] == 'ok') end_loop = false count = 0 max_num_of_retries = 30 while (end_loop == false) sleep 10 count += 1 response = send_request('/rest/assembly/info_about', {:assembly_id => service_id, :subtype => 'instance', :about => 'tasks'}) puts "Start instance check:" status = response['data'].select { |x| x['status'] == 'executing'}.first pretty_print_JSON(status) if (count > max_num_of_retries) puts "Max number of retries for starting instance reached..." end_loop = true elsif (status.nil?) puts "Instance started!" service_started = true end_loop = true end end else puts "Start instance is not completed successfully!" end puts "" return service_started end def <API key>(service_id, node_name, component_name) puts "Add component to service:", " component_added = false service_nodes = send_request('/rest/assembly/info_about', {:assembly_id=>service_id, :filter=>nil, :about=>'nodes', :subtype=>'instance'}) if (service_nodes['data'].select { |x| x['display_name'] == node_name }.first) puts "Node #{node_name} exists in service. Get node id..." node_id = service_nodes['data'].select { |x| x['display_name'] == node_name }.first['id'] <API key> = send_request('/rest/assembly/add_component', {:node_id=>node_id, :<API key>=>component_name.split(":").last, :assembly_id=>service_id, :namespace=>component_name.split(":").first}) if (<API key>['status'] == 'ok') puts "Component #{component_name} added to service!" component_added = true end else <API key> = send_request('/rest/assembly/add_component', {:node_id=>nil, :<API key>=>component_name.split(":").last, :assembly_id=>service_id, :namespace=>component_name.split(":").first}) if (<API key>['status'] == 'ok') puts "Component #{component_name} added to service!" component_added = true end end puts "" return component_added end def <API key>(service_id) puts "Delete and destroy service:", " service_deleted = false <API key> = send_request('/rest/assembly/delete', {:assembly_id=>service_id}) if (<API key>['status'] == "ok") puts "Service deleted successfully!" service_deleted = true else puts "Service was not deleted successfully!" end puts "" return service_deleted end def delete_task_status(service_id, component_to_delete, delete_type, <API key>=true) service_deleted = false end_loop = false count = 0 max_num_of_retries = 50 task_status = 'executing' while ((task_status.include? 'executing') && (end_loop == false)) sleep 2 count += 1 <API key> = send_request('/rest/assembly/task_status', {'assembly_id'=> service_id}) delete_status = <API key>['data'].first['status'] if !delete_status.nil? if <API key> <API key> = <API key>['data'].select { |x| x['type'].include? component_to_delete }.first['status'] else # case when performing delete action on staged service <API key> = 'succeeded' end if (delete_status.include? "succeeded") && (<API key>.include? "succeeded") service_deleted = true task_status = delete_status puts "Task execution status: #{delete_status}" puts "#{delete_type} finished successfully!" end_loop = true end if (delete_status.include? 'failed') puts "Error details:" ap <API key>['data'] <API key>['data'].each do |error_message| unless error_message['errors'].nil? puts error_message['errors']['message'] puts error_message['errors']['type'] end end puts "Task execution status: #{delete_status}" puts "#{delete_type} with workflow did not finish successfully!" task_status = delete_status end_loop = true end puts "Task execution status: #{delete_status}" else if delete_type == 'delete_service' # This is set to true only in case when we delete service instance # Reason: we cannot get task status details on instance that does not exist anymore service_deleted = true break end end if (count > max_num_of_retries) puts "Max number of retries reached..." puts "#{delete_type} with workflow did not finish successfully!" break end end service_deleted end def <API key>(service_id, component_to_delete, <API key>) puts "Delete and destroy service with workflow:", " <API key> = false <API key> = send_request('/rest/assembly/<API key>', {:assembly_id=>service_id, :subtype => :instance}) if <API key>['status'] == 'ok' <API key> = delete_task_status(service_id, component_to_delete, 'delete_service', <API key>) puts "Service was deleted successfully!" else puts "Service was not deleted successfully!" end puts "" return <API key> end def <API key>(service_id, node_name, component_to_delete, <API key>) puts "Delete node with workflow:", " <API key> = false <API key> = send_request('/rest/assembly/<API key>', {:assembly_id=>service_id, :subtype => :instance, :node_id => node_name}) if <API key>['status'] == 'ok' <API key> = delete_task_status(service_id, component_to_delete, 'delete_node', <API key>) puts "Node: #{node_name} was deleted successfully!" else puts "Node: #{node_name} was not deleted successfully!" end puts "" return <API key> end def <API key>(service_id, node_name, component_to_delete, <API key>) puts "Delete component with workflow:", " <API key> = false <API key> = send_request('/rest/assembly/<API key>', {:assembly_id=>service_id, :task_action => "#{component_to_delete}.delete", :task_params => { "node" => node_name }, :component_id => component_to_delete, :noop_if_no_action => nil, :cmp_full_name => "#{node_name}/#{component_to_delete}", :node_id => node_name }) if <API key>['status'] == 'ok' <API key> = delete_task_status(service_id, component_to_delete, 'delete_component', <API key>) puts "Component: #{component_to_delete} was deleted successfully!" else puts "Component: #{component_to_delete} was not deleted successfully!" end puts "" return <API key> end def delete_context(context_name) puts "Delete context:", " context_deleted = false <API key> = send_request('/rest/assembly/delete', {:assembly_id=>context_name}) if (<API key>['status'] == "ok") puts "context service deleted successfully!" context_deleted = true else puts "context service was not deleted successfully!" end puts "" return context_deleted end def <API key>(service_id, service_module) puts "Push assembly updates:", " assembly_updated = false response = send_request('/rest/assembly/promote_to_template', {:assembly_id=>service_id, :mode => 'update', :<API key> => true }) pretty_print_JSON(response) if response['status'] == 'ok' && response['data']['full_module_name'] == service_module assembly_updated = true end puts "" return assembly_updated end def <API key>(service_id, component_module) puts "Push component module updates:", " response = send_request('/rest/assembly/<API key>', {:assembly_id=>service_id, :module_name => component_module, :module_type => "component_module" }) return response end def get_nodes(service_id) puts "Get all nodes from service:", " nodes_list = send_request('/rest/assembly/info_about', {:assembly_id=>service_id, :node_id => nil, :component_id => nil, :subtype=>'instance', :about=>'nodes'}) nodes_list = nodes_list['data'].map! { |c| c['display_name'] } pretty_print_JSON(nodes_list) puts "" return nodes_list end def get_components(service_id) puts "Get all components from service:", " components_list = send_request('/rest/assembly/info_about', {:assembly_id=>service_id, :node_id => nil, :component_id => nil, :subtype=>'instance', :about=>'components'}) components_list = components_list['data'].map! { |c| c['display_name'] } puts "" return components_list end def get_cardinality(service_id, node_name) puts "Get cardinality from service:", " cardinality = send_request('/rest/assembly/info_about', {:assembly_id=>service_id, :node_id => nil, :component_id => nil, :subtype=>'instance', :about=>'attributes', :format=>'yaml'}) content = YAML.load(cardinality['data']) puts content attributes = (content["nodes"]["#{node_name}/"]||{})['attributes']||{} puts "" return attributes['cardinality'] && attributes['cardinality'].to_i end def get_workflow_info(service_id) puts "Get workflow info:", " workflow_info = send_request('/rest/assembly/info_about_task', {:assembly_id=>service_id, :subtype => 'instance'}) content = YAML.load(workflow_info['data']) puts content puts "" return content end def grant_access(service_id, system_user, rsa_pub_name, ssh_key) puts "Grant access:", " response = send_request('/rest/assembly/<API key>', {:agent_action => :grant_access, :assembly_id=>service_id, :system_user => system_user, :rsa_pub_name => rsa_pub_name, :rsa_pub_key => ssh_key}) pretty_print_JSON(response) puts "" return response end def revoke_access(service_id, system_user, rsa_pub_name, ssh_key) puts "Revoke access:", " resp = send_request('/rest/assembly/<API key>', {:agent_action => :revoke_access, :assembly_id=>service_id, :system_user => system_user, :rsa_pub_name => rsa_pub_name, :rsa_pub_key => ssh_key}) pretty_print_JSON(resp) response = nil if resp['status'] != 'notok' response = send_request('/rest/assembly/get_action_results', {:action_results_id => resp['data']['action_results_id'], :<API key> => true, :<API key> => true}) puts response else response = resp end puts "" return response end def <API key>(key, value) # Get list of existing workspace service instances in a specific context puts "List service instances with <API key> = send_request('/rest/assembly/list', {:detail_level=>'nodes', :subtype=>'instance', :include_namespaces => true}) filtered_services = nil if <API key>['status'] == 'ok' filtered_services = <API key>['data'].select{ |x| x[key].include? value } if filtered_services.length.zero? puts "No service instances with #{value} value for #{key} property been found." filtered_services = nil else puts "#{filtered_services.length} service instances with #{value} value for #{key} property found: " end else puts "Could not get service instance list." end puts '' filtered_services end def list_ssh_access(service_id, system_user, rsa_pub_name, nodes) puts "List ssh access:", " sleep 5 response = send_request('/rest/assembly/list_ssh_access', {:assembly_id=>service_id}) pretty_print_JSON(response) list = response['data'].select { |x| x['attributes']['linux_user'] == system_user && x['attributes']['key_name'] == rsa_pub_name && (nodes.include? x['node_name']) } puts "" return list.map! { |x| x['attributes']['key_name']} end def <API key>(service_id, action_id) puts "Get task action output:", " response = send_request('/rest/assembly/task_action_detail', {:assembly_id=>service_id, :message_id=>action_id}) pretty_print_JSON(response) runs = {} if response['status'] == "ok" output = response['data'] output.gsub!("=","") if response['data'].include? "=" runs = output.split(/\n \n\n|\n\n\n|\n\n/) else puts "Task action details were not retrieved successfully!" end puts "" return runs end def verify_flags(service_id, <API key>, update_flag, update_saved_flag) puts "Verify update and update saved flags:", " flags_verified = false response = send_request('/rest/assembly/info_about', {:assembly_id=>service_id, :subtype=>:instance, :about=>'modules', :detail_to_include=>[:version_info]}) pretty_print_JSON(response) <API key> = response['data'].select { |x| x['display_name'] == <API key> }.first if !<API key>.nil? puts "Component module found! Check flags..." pretty_print_JSON(<API key>) unless <API key>.key?('local_copy') || <API key>.key?('update_saved') puts "Flags dont not exist in the output" end if <API key>['local_copy'] == update_flag && <API key>['update_saved'] == update_saved_flag puts "Update and update saved flags match the comparison" flags_verified = true else puts "Update and update saved flags does not match the comparison" end else puts "Component module was not found!" end puts "" flags_verified end end
using System.Collections.Specialized; using System.ComponentModel; using System.Linq; using DNTProfiler.Common.JsonToolkit; using DNTProfiler.Common.Models; using DNTProfiler.Common.Mvvm; using DNTProfiler.Infrastructure.Core; using DNTProfiler.Infrastructure.ScriptDomVisitors; using DNTProfiler.Infrastructure.ViewModels; using DNTProfiler.PluginsBase; namespace DNTProfiler.<API key>.ViewModels { public class MainViewModel : MainViewModelBase { private readonly <API key> _callbacksManager; public MainViewModel(ProfilerPluginBase pluginContext) : base(pluginContext) { if (Designer.<API key>) return; setActions(); setGuiModel(); _callbacksManager = new <API key>(PluginContext, GuiModelData); setEvenets(); } private void <API key>(object sender, <API key> e) { switch (e.Action) { case <API key>.Add: foreach (Command command in e.NewItems) { var visitor = new <API key>(); foreach (var parameter in command.Parameters.Where(parameter => parameter.Value == "null")) { visitor.NullVariableNames.Add(parameter.Name); } _callbacksManager.<API key>(visitor, command); } break; } } private void <API key>(object sender, <API key> e) { switch (e.PropertyName) { case "<API key>": _callbacksManager.<API key>(); break; case "<API key>": _callbacksManager.<API key>(); break; } } private void setActions() { PluginContext.Reset = () => { ResetAll(); }; PluginContext.GetResults = () => { return GuiModelData.RelatedCommands.ToFormattedJson(); }; } private void setEvenets() { PluginContext.ProfilerData.Commands.CollectionChanged += <API key>; } private void setGuiModel() { GuiModelData.PropertyChanged += <API key>; } } }
html { font-family: sans-serif; -<API key>: 100%; -ms-text-size-adjust: 100% } body { margin: 0 } article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block } audio, canvas, progress, video { display: inline-block; vertical-align: baseline } audio:not([controls]) { display: none; height: 0 } [hidden], template { display: none } a { background-color: transparent } a:active, a:hover { outline: 0 } abbr[title] { border-bottom: 1px dotted } b, strong { font-weight: 700 } dfn { font-style: italic } h1 { margin: .67em 0; font-size: 2em } mark { color: #000; background: #ff0 } small { font-size: 80% } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline } sup { top: -.5em } sub { bottom: -.25em } img { border: 0 } svg:not(:root) { overflow: hidden } figure { margin: 1em 40px } hr { height: 0; -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box } pre { overflow: auto } code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em } button, input, optgroup, select, textarea { margin: 0; font: inherit; color: inherit } button { overflow: visible } button, select { text-transform: none } button, html input[type=button], input[type=reset], input[type=submit] { -webkit-appearance: button; cursor: pointer } button[disabled], html input[disabled] { cursor: default } button::-moz-focus-inner, input::-moz-focus-inner { padding: 0; border: 0 } input { line-height: normal } input[type=checkbox], input[type=radio] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; padding: 0 } input[type=number]::-<API key>, input[type=number]::-<API key> { height: auto } input[type=search] { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; -webkit-appearance: textfield } input[type=search]::-<API key>, input[type=search]::-<API key> { -webkit-appearance: none } fieldset { padding: .35em .625em .75em; margin: 0 2px; border: 1px solid silver } legend { padding: 0; border: 0 } textarea { overflow: auto } optgroup { font-weight: 700 } table { border-spacing: 0; border-collapse: collapse } td, th { padding: 0 } @media print { *, :after, :before { color: #000!important; text-shadow: none!important; background: 0 0!important; -webkit-box-shadow: none!important; box-shadow: none!important } a, a:visited { text-decoration: underline } a[href]:after { content: " (" attr(href) ")" } abbr[title]:after { content: " (" attr(title) ")" } a[href^="javascript:"]:after, a[href^="#"]:after { content: "" } blockquote, pre { border: 1px solid #999; page-break-inside: avoid } thead { display: table-header-group } img, tr { page-break-inside: avoid } img { max-width: 100%!important } h2, h3, p { orphans: 3; widows: 3 } h2, h3 { page-break-after: avoid } .navbar { display: none } .btn>.caret, .dropup>.btn>.caret { border-top-color: #000!important } .label { border: 1px solid #000 } .table { border-collapse: collapse!important } .table td, .table th { background-color: #fff!important } .table-bordered td, .table-bordered th { border: 1px solid #ddd!important } } @font-face { font-family: 'Glyphicons Halflings'; src: url(../fonts/<API key>.eot); src: url(../fonts/<API key>.eot?#iefix) format('embedded-opentype'), url(../fonts/<API key>.woff2) format('woff2'), url(../fonts/<API key>.woff) format('woff'), url(../fonts/<API key>.ttf) format('truetype'), url(../fonts/<API key>.svg#<API key>) format('svg') } .glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; font-style: normal; font-weight: 400; line-height: 1; -<API key>: antialiased; -<API key>: grayscale } .glyphicon-asterisk:before { content: "\002a" } .glyphicon-plus:before { content: "\002b" } .glyphicon-eur:before, .glyphicon-euro:before { content: "\20ac" } .glyphicon-minus:before { content: "\2212" } .glyphicon-cloud:before { content: "\2601" } .glyphicon-envelope:before { content: "\2709" } .glyphicon-pencil:before { content: "\270f" } .glyphicon-glass:before { content: "\e001" } .glyphicon-music:before { content: "\e002" } .glyphicon-search:before { content: "\e003" } .glyphicon-heart:before { content: "\e005" } .glyphicon-star:before { content: "\e006" } .<API key>:before { content: "\e007" } .glyphicon-user:before { content: "\e008" } .glyphicon-film:before { content: "\e009" } .glyphicon-th-large:before { content: "\e010" } .glyphicon-th:before { content: "\e011" } .glyphicon-th-list:before { content: "\e012" } .glyphicon-ok:before { content: "\e013" } .glyphicon-remove:before { content: "\e014" } .glyphicon-zoom-in:before { content: "\e015" } .glyphicon-zoom-out:before { content: "\e016" } .glyphicon-off:before { content: "\e017" } .glyphicon-signal:before { content: "\e018" } .glyphicon-cog:before { content: "\e019" } .glyphicon-trash:before { content: "\e020" } .glyphicon-home:before { content: "\e021" } .glyphicon-file:before { content: "\e022" } .glyphicon-time:before { content: "\e023" } .glyphicon-road:before { content: "\e024" } .<API key>:before { content: "\e025" } .glyphicon-download:before { content: "\e026" } .glyphicon-upload:before { content: "\e027" } .glyphicon-inbox:before { content: "\e028" } .<API key>:before { content: "\e029" } .glyphicon-repeat:before { content: "\e030" } .glyphicon-refresh:before { content: "\e031" } .glyphicon-list-alt:before { content: "\e032" } .glyphicon-lock:before { content: "\e033" } .glyphicon-flag:before { content: "\e034" } .<API key>:before { content: "\e035" } .<API key>:before { content: "\e036" } .<API key>:before { content: "\e037" } .glyphicon-volume-up:before { content: "\e038" } .glyphicon-qrcode:before { content: "\e039" } .glyphicon-barcode:before { content: "\e040" } .glyphicon-tag:before { content: "\e041" } .glyphicon-tags:before { content: "\e042" } .glyphicon-book:before { content: "\e043" } .glyphicon-bookmark:before { content: "\e044" } .glyphicon-print:before { content: "\e045" } .glyphicon-camera:before { content: "\e046" } .glyphicon-font:before { content: "\e047" } .glyphicon-bold:before { content: "\e048" } .glyphicon-italic:before { content: "\e049" } .<API key>:before { content: "\e050" } .<API key>:before { content: "\e051" } .<API key>:before { content: "\e052" } .<API key>:before { content: "\e053" } .<API key>:before { content: "\e054" } .<API key>:before { content: "\e055" } .glyphicon-list:before { content: "\e056" } .<API key>:before { content: "\e057" } .<API key>:before { content: "\e058" } .<API key>:before { content: "\e059" } .glyphicon-picture:before { content: "\e060" } .<API key>:before { content: "\e062" } .glyphicon-adjust:before { content: "\e063" } .glyphicon-tint:before { content: "\e064" } .glyphicon-edit:before { content: "\e065" } .glyphicon-share:before { content: "\e066" } .glyphicon-check:before { content: "\e067" } .glyphicon-move:before { content: "\e068" } .<API key>:before { content: "\e069" } .<API key>:before { content: "\e070" } .glyphicon-backward:before { content: "\e071" } .glyphicon-play:before { content: "\e072" } .glyphicon-pause:before { content: "\e073" } .glyphicon-stop:before { content: "\e074" } .glyphicon-forward:before { content: "\e075" } .<API key>:before { content: "\e076" } .<API key>:before { content: "\e077" } .glyphicon-eject:before { content: "\e078" } .<API key>:before { content: "\e079" } .<API key>:before { content: "\e080" } .glyphicon-plus-sign:before { content: "\e081" } .<API key>:before { content: "\e082" } .<API key>:before { content: "\e083" } .glyphicon-ok-sign:before { content: "\e084" } .<API key>:before { content: "\e085" } .glyphicon-info-sign:before { content: "\e086" } .<API key>:before { content: "\e087" } .<API key>:before { content: "\e088" } .glyphicon-ok-circle:before { content: "\e089" } .<API key>:before { content: "\e090" } .<API key>:before { content: "\e091" } .<API key>:before { content: "\e092" } .glyphicon-arrow-up:before { content: "\e093" } .<API key>:before { content: "\e094" } .glyphicon-share-alt:before { content: "\e095" } .<API key>:before { content: "\e096" } .<API key>:before { content: "\e097" } .<API key>:before { content: "\e101" } .glyphicon-gift:before { content: "\e102" } .glyphicon-leaf:before { content: "\e103" } .glyphicon-fire:before { content: "\e104" } .glyphicon-eye-open:before { content: "\e105" } .glyphicon-eye-close:before { content: "\e106" } .<API key>:before { content: "\e107" } .glyphicon-plane:before { content: "\e108" } .glyphicon-calendar:before { content: "\e109" } .glyphicon-random:before { content: "\e110" } .glyphicon-comment:before { content: "\e111" } .glyphicon-magnet:before { content: "\e112" } .<API key>:before { content: "\e113" } .<API key>:before { content: "\e114" } .glyphicon-retweet:before { content: "\e115" } .<API key>:before { content: "\e116" } .<API key>:before { content: "\e117" } .<API key>:before { content: "\e118" } .<API key>:before { content: "\e119" } .<API key>:before { content: "\e120" } .glyphicon-hdd:before { content: "\e121" } .glyphicon-bullhorn:before { content: "\e122" } .glyphicon-bell:before { content: "\e123" } .<API key>:before { content: "\e124" } .glyphicon-thumbs-up:before { content: "\e125" } .<API key>:before { content: "\e126" } .<API key>:before { content: "\e127" } .glyphicon-hand-left:before { content: "\e128" } .glyphicon-hand-up:before { content: "\e129" } .glyphicon-hand-down:before { content: "\e130" } .<API key>:before { content: "\e131" } .<API key>:before { content: "\e132" } .<API key>:before { content: "\e133" } .<API key>:before { content: "\e134" } .glyphicon-globe:before { content: "\e135" } .glyphicon-wrench:before { content: "\e136" } .glyphicon-tasks:before { content: "\e137" } .glyphicon-filter:before { content: "\e138" } .glyphicon-briefcase:before { content: "\e139" } .<API key>:before { content: "\e140" } .glyphicon-dashboard:before { content: "\e141" } .glyphicon-paperclip:before { content: "\e142" } .<API key>:before { content: "\e143" } .glyphicon-link:before { content: "\e144" } .glyphicon-phone:before { content: "\e145" } .glyphicon-pushpin:before { content: "\e146" } .glyphicon-usd:before { content: "\e148" } .glyphicon-gbp:before { content: "\e149" } .glyphicon-sort:before { content: "\e150" } .<API key>:before { content: "\e151" } .<API key>:before { content: "\e152" } .<API key>:before { content: "\e153" } .<API key>:before { content: "\e154" } .<API key>:before { content: "\e155" } .<API key>:before { content: "\e156" } .glyphicon-unchecked:before { content: "\e157" } .glyphicon-expand:before { content: "\e158" } .<API key>:before { content: "\e159" } .<API key>:before { content: "\e160" } .glyphicon-log-in:before { content: "\e161" } .glyphicon-flash:before { content: "\e162" } .glyphicon-log-out:before { content: "\e163" } .<API key>:before { content: "\e164" } .glyphicon-record:before { content: "\e165" } .glyphicon-save:before { content: "\e166" } .glyphicon-open:before { content: "\e167" } .glyphicon-saved:before { content: "\e168" } .glyphicon-import:before { content: "\e169" } .glyphicon-export:before { content: "\e170" } .glyphicon-send:before { content: "\e171" } .<API key>:before { content: "\e172" } .<API key>:before { content: "\e173" } .<API key>:before { content: "\e174" } .<API key>:before { content: "\e175" } .<API key>:before { content: "\e176" } .<API key>:before { content: "\e177" } .glyphicon-transfer:before { content: "\e178" } .glyphicon-cutlery:before { content: "\e179" } .glyphicon-header:before { content: "\e180" } .<API key>:before { content: "\e181" } .glyphicon-earphone:before { content: "\e182" } .glyphicon-phone-alt:before { content: "\e183" } .glyphicon-tower:before { content: "\e184" } .glyphicon-stats:before { content: "\e185" } .glyphicon-sd-video:before { content: "\e186" } .glyphicon-hd-video:before { content: "\e187" } .glyphicon-subtitles:before { content: "\e188" } .<API key>:before { content: "\e189" } .<API key>:before { content: "\e190" } .glyphicon-sound-5-1:before { content: "\e191" } .glyphicon-sound-6-1:before { content: "\e192" } .glyphicon-sound-7-1:before { content: "\e193" } .<API key>:before { content: "\e194" } .<API key>:before { content: "\e195" } .<API key>:before { content: "\e197" } .<API key>:before { content: "\e198" } .<API key>:before { content: "\e199" } .<API key>:before { content: "\e200" } .glyphicon-cd:before { content: "\e201" } .glyphicon-save-file:before { content: "\e202" } .glyphicon-open-file:before { content: "\e203" } .glyphicon-level-up:before { content: "\e204" } .glyphicon-copy:before { content: "\e205" } .glyphicon-paste:before { content: "\e206" } .glyphicon-alert:before { content: "\e209" } .glyphicon-equalizer:before { content: "\e210" } .glyphicon-king:before { content: "\e211" } .glyphicon-queen:before { content: "\e212" } .glyphicon-pawn:before { content: "\e213" } .glyphicon-bishop:before { content: "\e214" } .glyphicon-knight:before { content: "\e215" } .<API key>:before { content: "\e216" } .glyphicon-tent:before { content: "\26fa" } .<API key>:before { content: "\e218" } .glyphicon-bed:before { content: "\e219" } .glyphicon-apple:before { content: "\f8ff" } .glyphicon-erase:before { content: "\e221" } .glyphicon-hourglass:before { content: "\231b" } .glyphicon-lamp:before { content: "\e223" } .glyphicon-duplicate:before { content: "\e224" } .<API key>:before { content: "\e225" } .glyphicon-scissors:before { content: "\e226" } .glyphicon-bitcoin:before { content: "\e227" } .glyphicon-btc:before { content: "\e227" } .glyphicon-xbt:before { content: "\e227" } .glyphicon-yen:before { content: "\00a5" } .glyphicon-jpy:before { content: "\00a5" } .glyphicon-ruble:before { content: "\20bd" } .glyphicon-rub:before { content: "\20bd" } .glyphicon-scale:before { content: "\e230" } .glyphicon-ice-lolly:before { content: "\e231" } .<API key>:before { content: "\e232" } .glyphicon-education:before { content: "\e233" } .<API key>:before { content: "\e234" } .<API key>:before { content: "\e235" } .<API key>:before { content: "\e236" } .<API key>:before { content: "\e237" } .glyphicon-oil:before { content: "\e238" } .glyphicon-grain:before { content: "\e239" } .<API key>:before { content: "\e240" } .glyphicon-text-size:before { content: "\e241" } .<API key>:before { content: "\e242" } .<API key>:before { content: "\e243" } .<API key>:before { content: "\e244" } .<API key>:before { content: "\e245" } .<API key>:before { content: "\e246" } .<API key>:before { content: "\e247" } .<API key>:before { content: "\e248" } .<API key>:before { content: "\e249" } .<API key>:before { content: "\e250" } .<API key>:before { content: "\e251" } .<API key>:before { content: "\e252" } .<API key>:before { content: "\e253" } .glyphicon-console:before { content: "\e254" } .<API key>:before { content: "\e255" } .glyphicon-subscript:before { content: "\e256" } .glyphicon-menu-left:before { content: "\e257" } .<API key>:before { content: "\e258" } .glyphicon-menu-down:before { content: "\e259" } .glyphicon-menu-up:before { content: "\e260" } * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box } :after, :before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box } html { font-size: 10px; -<API key>: rgba(0, 0, 0, 0) } body { /* font-family: "Arimo", "Segoe UI", Helvetica, Arial, sans-serif; */ font-family: "Roboto", "Open Sans", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.42857143; color: #000000; background-color: #fff } button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit } a { color: #337ab7; text-decoration: none } a:focus, a:hover { color: #23527c; text-decoration: underline } a:focus { outline: thin dotted; outline: 5px auto -<API key>; outline-offset: -2px } figure { margin: 0 } img { vertical-align: middle } .carousel-inner>.item>a>img, .carousel-inner>.item>img, .img-responsive, .thumbnail a>img, .thumbnail>img { display: block; max-width: 100%; height: auto } .img-rounded { border-radius: 6px } .img-thumbnail { display: inline-block; max-width: 100%; height: auto; padding: 4px; line-height: 1.42857143; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; -webkit-transition: all .2s ease-in-out; -o-transition: all .2s ease-in-out; transition: all .2s ease-in-out } .img-circle { border-radius: 50% } hr { margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #eee } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0 } .sr-only-focusable:active, .sr-only-focusable:focus { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto } [role=button] { cursor: pointer } .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 { font-family: inherit; font-weight: 500; line-height: 1; color: inherit } .h1 .small, .h1 small, .h2 .small, .h2 small, .h3 .small, .h3 small, .h4 .small, .h4 small, .h5 .small, .h5 small, .h6 .small, .h6 small, h1 .small, h1 small, h2 .small, h2 small, h3 .small, h3 small, h4 .small, h4 small, h5 .small, h5 small, h6 .small, h6 small { font-weight: 400; line-height: 1; color: #777 } .h1, .h2, .h3, h1, h2, h3 { margin-top: 20px; margin-bottom: 10px } .h1 .small, .h1 small, .h2 .small, .h2 small, .h3 .small, .h3 small, h1 .small, h1 small, h2 .small, h2 small, h3 .small, h3 small { font-size: 65% } .h4, .h5, .h6, h4, h5, h6 { margin-top: 10px; margin-bottom: 10px } .h4 .small, .h4 small, .h5 .small, .h5 small, .h6 .small, .h6 small, h4 .small, h4 small, h5 .small, h5 small, h6 .small, h6 small { font-size: 75% } .h1, h1 { font-size: 36px } .h2, h2 { font-size: 30px } .h3, h3 { font-size: 24px } .h4, h4 { font-size: 18px } .h5, h5 { font-size: 14px } .h6, h6 { font-size: 12px } p { margin: 0 0 10px } .lead { margin-bottom: 20px; font-size: 16px; font-weight: 300; line-height: 1.4 } @media (min-width:768px) { .lead { font-size: 21px } } .small, small { font-size: 85% } .mark, mark { padding: .2em; background-color: #fcf8e3 } .text-left { text-align: left } .text-right { text-align: right } .text-center { text-align: center } .text-justify { text-align: justify } .text-nowrap { white-space: nowrap } .text-lowercase { text-transform: lowercase } .text-uppercase { text-transform: uppercase } .text-capitalize { text-transform: capitalize } .text-muted { color: #777 } .text-primary { color: #337ab7 } a.text-primary:focus, a.text-primary:hover { color: #286090 } .text-success { color: #3c763d } a.text-success:focus, a.text-success:hover { color: #2b542c } .text-info { color: #31708f } a.text-info:focus, a.text-info:hover { color: #245269 } .text-warning { color: #8a6d3b } a.text-warning:focus, a.text-warning:hover { color: #66512c } .text-danger { color: #a94442 } a.text-danger:focus, a.text-danger:hover { color: #843534 } .bg-primary { color: #fff; background-color: #337ab7 } a.bg-primary:focus, a.bg-primary:hover { background-color: #286090 } .bg-success { background-color: #dff0d8 } a.bg-success:focus, a.bg-success:hover { background-color: #c1e2b3 } .bg-info { background-color: #d9edf7 } a.bg-info:focus, a.bg-info:hover { background-color: #afd9ee } .bg-warning { background-color: #fcf8e3 } a.bg-warning:focus, a.bg-warning:hover { background-color: #f7ecb5 } .bg-danger { background-color: #f2dede } a.bg-danger:focus, a.bg-danger:hover { background-color: #e4b9b9 } .page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid #eee } ol, ul { margin-top: 0; margin-bottom: 10px } ol ol, ol ul, ul ol, ul ul { margin-bottom: 0 } .list-unstyled { padding-left: 0; list-style: none } .list-inline { padding-left: 0; margin-left: -5px; list-style: none } .list-inline>li { display: inline-block; padding-right: 5px; padding-left: 5px } dl { margin-top: 0; margin-bottom: 20px } dd, dt { line-height: 1.42857143 } dt { font-weight: 700 } dd { margin-left: 0 } @media (min-width:768px) { .dl-horizontal dt { float: left; width: 160px; overflow: hidden; clear: left; text-align: right; text-overflow: ellipsis; white-space: nowrap } .dl-horizontal dd { margin-left: 180px } } abbr[data-original-title], abbr[title] { cursor: help; border-bottom: 1px dotted #777 } .initialism { font-size: 90%; text-transform: uppercase } blockquote { padding: 10px 20px; margin: 0 0 20px; font-size: 17.5px; border-left: 5px solid #eee } blockquote ol:last-child, blockquote p:last-child, blockquote ul:last-child { margin-bottom: 0 } blockquote .small, blockquote footer, blockquote small { display: block; font-size: 80%; line-height: 1.42857143; color: #777 } blockquote .small:before, blockquote footer:before, blockquote small:before { content: '\2014 \00A0' } .blockquote-reverse, blockquote.pull-right { padding-right: 15px; padding-left: 0; text-align: right; border-right: 5px solid #eee; border-left: 0 } .blockquote-reverse .small:before, .blockquote-reverse footer:before, .blockquote-reverse small:before, blockquote.pull-right .small:before, blockquote.pull-right footer:before, blockquote.pull-right small:before { content: '' } .blockquote-reverse .small:after, .blockquote-reverse footer:after, .blockquote-reverse small:after, blockquote.pull-right .small:after, blockquote.pull-right footer:after, blockquote.pull-right small:after { content: '\00A0 \2014' } address { margin-bottom: 20px; font-style: normal; line-height: 1.42857143 } code, kbd, pre, samp { font-family: Menlo, Monaco, Consolas, "Courier New", monospace } code { padding: 2px 4px; font-size: 90%; color: #c7254e; background-color: #f9f2f4; border-radius: 4px } kbd { padding: 2px 4px; font-size: 90%; color: #fff; background-color: #333; border-radius: 3px; -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25) } kbd kbd { padding: 0; font-size: 100%; font-weight: 700; -webkit-box-shadow: none; box-shadow: none } pre { display: block; padding: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 1.42857143; color: #333; word-break: break-all; word-wrap: break-word; background-color: #f5f5f5; border: 1px solid #ccc; border-radius: 4px } pre code { padding: 0; font-size: inherit; color: inherit; white-space: pre-wrap; background-color: transparent; border-radius: 0 } .pre-scrollable { max-height: 340px; overflow-y: scroll } .container { padding-right: 30px; padding-left: 30px; margin-right: auto; margin-left: auto } @media (min-width:768px) { .container { /* width: 750px*/ /* padding-top: 30px; padding-bottom: 30px*/ } } @media (min-width:992px) { .container { width: 970px } } @media (min-width:1200px) { .container { /* margin-top:30px; margin-bottom:30px;*/ width: 100%; max-width: auto } } .container-fluid { padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto } .row { margin-right: -15px; margin-left: -15px } .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-xs-1, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9 { position: relative; min-height: 1px; padding-right: 15px; padding-left: 15px } .col-xs-1, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9 { float: left } .col-xs-12 { width: 100% } .col-xs-11 { width: 91.66666667% } .col-xs-10 { width: 83.33333333% } .col-xs-9 { width: 75% } .col-xs-8 { width: 66.66666667% } .col-xs-7 { width: 58.33333333% } .col-xs-6 { width: 50% } .col-xs-5 { width: 41.66666667% } .col-xs-4 { width: 33.33333333% } .col-xs-3 { width: 25% } .col-xs-2 { width: 16.66666667% } .col-xs-1 { width: 8.33333333% } .col-xs-pull-12 { right: 100% } .col-xs-pull-11 { right: 91.66666667% } .col-xs-pull-10 { right: 83.33333333% } .col-xs-pull-9 { right: 75% } .col-xs-pull-8 { right: 66.66666667% } .col-xs-pull-7 { right: 58.33333333% } .col-xs-pull-6 { right: 50% } .col-xs-pull-5 { right: 41.66666667% } .col-xs-pull-4 { right: 33.33333333% } .col-xs-pull-3 { right: 25% } .col-xs-pull-2 { right: 16.66666667% } .col-xs-pull-1 { right: 8.33333333% } .col-xs-pull-0 { right: auto } .col-xs-push-12 { left: 100% } .col-xs-push-11 { left: 91.66666667% } .col-xs-push-10 { left: 83.33333333% } .col-xs-push-9 { left: 75% } .col-xs-push-8 { left: 66.66666667% } .col-xs-push-7 { left: 58.33333333% } .col-xs-push-6 { left: 50% } .col-xs-push-5 { left: 41.66666667% } .col-xs-push-4 { left: 33.33333333% } .col-xs-push-3 { left: 25% } .col-xs-push-2 { left: 16.66666667% } .col-xs-push-1 { left: 8.33333333% } .col-xs-push-0 { left: auto } .col-xs-offset-12 { margin-left: 100% } .col-xs-offset-11 { margin-left: 91.66666667% } .col-xs-offset-10 { margin-left: 83.33333333% } .col-xs-offset-9 { margin-left: 75% } .col-xs-offset-8 { margin-left: 66.66666667% } .col-xs-offset-7 { margin-left: 58.33333333% } .col-xs-offset-6 { margin-left: 50% } .col-xs-offset-5 { margin-left: 41.66666667% } .col-xs-offset-4 { margin-left: 33.33333333% } .col-xs-offset-3 { margin-left: 25% } .col-xs-offset-2 { margin-left: 16.66666667% } .col-xs-offset-1 { margin-left: 8.33333333% } .col-xs-offset-0 { margin-left: 0 } @media (min-width:768px) { .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9 { float: left } .col-sm-12 { width: 100% } .col-sm-11 { width: 91.66666667% } .col-sm-10 { width: 83.33333333% } .col-sm-9 { width: 75% } .col-sm-8 { width: 66.66666667% } .col-sm-7 { width: 58.33333333% } .col-sm-6 { width: 50% } .col-sm-5 { width: 41.66666667% } .col-sm-4 { width: 33.33333333% } .col-sm-3 { width: 25% } .col-sm-2 { width: 16.66666667% } .col-sm-1 { width: 8.33333333% } .col-sm-pull-12 { right: 100% } .col-sm-pull-11 { right: 91.66666667% } .col-sm-pull-10 { right: 83.33333333% } .col-sm-pull-9 { right: 75% } .col-sm-pull-8 { right: 66.66666667% } .col-sm-pull-7 { right: 58.33333333% } .col-sm-pull-6 { right: 50% } .col-sm-pull-5 { right: 41.66666667% } .col-sm-pull-4 { right: 33.33333333% } .col-sm-pull-3 { right: 25% } .col-sm-pull-2 { right: 16.66666667% } .col-sm-pull-1 { right: 8.33333333% } .col-sm-pull-0 { right: auto } .col-sm-push-12 { left: 100% } .col-sm-push-11 { left: 91.66666667% } .col-sm-push-10 { left: 83.33333333% } .col-sm-push-9 { left: 75% } .col-sm-push-8 { left: 66.66666667% } .col-sm-push-7 { left: 58.33333333% } .col-sm-push-6 { left: 50% } .col-sm-push-5 { left: 41.66666667% } .col-sm-push-4 { left: 33.33333333% } .col-sm-push-3 { left: 25% } .col-sm-push-2 { left: 16.66666667% } .col-sm-push-1 { left: 8.33333333% } .col-sm-push-0 { left: auto } .col-sm-offset-12 { margin-left: 100% } .col-sm-offset-11 { margin-left: 91.66666667% } .col-sm-offset-10 { margin-left: 83.33333333% } .col-sm-offset-9 { margin-left: 75% } .col-sm-offset-8 { margin-left: 66.66666667% } .col-sm-offset-7 { margin-left: 58.33333333% } .col-sm-offset-6 { margin-left: 50% } .col-sm-offset-5 { margin-left: 41.66666667% } .col-sm-offset-4 { margin-left: 33.33333333% } .col-sm-offset-3 { margin-left: 25% } .col-sm-offset-2 { margin-left: 16.66666667% } .col-sm-offset-1 { margin-left: 8.33333333% } .col-sm-offset-0 { margin-left: 0 } } @media (min-width:992px) { .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9 { float: left } .col-md-12 { width: 100% } .col-md-11 { width: 91.66666667% } .col-md-10 { width: 83.33333333% } .col-md-9 { width: 75% } .col-md-8 { width: 66.66666667% } .col-md-7 { width: 58.33333333% } .col-md-6 { width: 50% } .col-md-5 { width: 41.66666667% } .col-md-4 { width: 33.33333333% } .col-md-3 { width: 25% } .col-md-2 { width: 16.66666667% } .col-md-1 { width: 8.33333333% } .col-md-pull-12 { right: 100% } .col-md-pull-11 { right: 91.66666667% } .col-md-pull-10 { right: 83.33333333% } .col-md-pull-9 { right: 75% } .col-md-pull-8 { right: 66.66666667% } .col-md-pull-7 { right: 58.33333333% } .col-md-pull-6 { right: 50% } .col-md-pull-5 { right: 41.66666667% } .col-md-pull-4 { right: 33.33333333% } .col-md-pull-3 { right: 25% } .col-md-pull-2 { right: 16.66666667% } .col-md-pull-1 { right: 8.33333333% } .col-md-pull-0 { right: auto } .col-md-push-12 { left: 100% } .col-md-push-11 { left: 91.66666667% } .col-md-push-10 { left: 83.33333333% } .col-md-push-9 { left: 75% } .col-md-push-8 { left: 66.66666667% } .col-md-push-7 { left: 58.33333333% } .col-md-push-6 { left: 50% } .col-md-push-5 { left: 41.66666667% } .col-md-push-4 { left: 33.33333333% } .col-md-push-3 { left: 25% } .col-md-push-2 { left: 16.66666667% } .col-md-push-1 { left: 8.33333333% } .col-md-push-0 { left: auto } .col-md-offset-12 { margin-left: 100% } .col-md-offset-11 { margin-left: 91.66666667% } .col-md-offset-10 { margin-left: 83.33333333% } .col-md-offset-9 { margin-left: 75% } .col-md-offset-8 { margin-left: 66.66666667% } .col-md-offset-7 { margin-left: 58.33333333% } .col-md-offset-6 { margin-left: 50% } .col-md-offset-5 { margin-left: 41.66666667% } .col-md-offset-4 { margin-left: 33.33333333% } .col-md-offset-3 { margin-left: 25% } .col-md-offset-2 { margin-left: 16.66666667% } .col-md-offset-1 { margin-left: 8.33333333% } .col-md-offset-0 { margin-left: 0 } } @media (min-width:1200px) { .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9 { float: left } .col-lg-12 { width: 100% } .col-lg-11 { width: 91.66666667% } .col-lg-10 { width: 83.33333333% } .col-lg-9 { width: 75% } .col-lg-8 { width: 66.66666667% } .col-lg-7 { width: 58.33333333% } .col-lg-6 { width: 50% } .col-lg-5 { width: 41.66666667% } .col-lg-4 { width: 33.33333333% } .col-lg-3 { width: 25% } .col-lg-2 { width: 16.66666667% } .col-lg-1 { width: 8.33333333% } .col-lg-pull-12 { right: 100% } .col-lg-pull-11 { right: 91.66666667% } .col-lg-pull-10 { right: 83.33333333% } .col-lg-pull-9 { right: 75% } .col-lg-pull-8 { right: 66.66666667% } .col-lg-pull-7 { right: 58.33333333% } .col-lg-pull-6 { right: 50% } .col-lg-pull-5 { right: 41.66666667% } .col-lg-pull-4 { right: 33.33333333% } .col-lg-pull-3 { right: 25% } .col-lg-pull-2 { right: 16.66666667% } .col-lg-pull-1 { right: 8.33333333% } .col-lg-pull-0 { right: auto } .col-lg-push-12 { left: 100% } .col-lg-push-11 { left: 91.66666667% } .col-lg-push-10 { left: 83.33333333% } .col-lg-push-9 { left: 75% } .col-lg-push-8 { left: 66.66666667% } .col-lg-push-7 { left: 58.33333333% } .col-lg-push-6 { left: 50% } .col-lg-push-5 { left: 41.66666667% } .col-lg-push-4 { left: 33.33333333% } .col-lg-push-3 { left: 25% } .col-lg-push-2 { left: 16.66666667% } .col-lg-push-1 { left: 8.33333333% } .col-lg-push-0 { left: auto } .col-lg-offset-12 { margin-left: 100% } .col-lg-offset-11 { margin-left: 91.66666667% } .col-lg-offset-10 { margin-left: 83.33333333% } .col-lg-offset-9 { margin-left: 75% } .col-lg-offset-8 { margin-left: 66.66666667% } .col-lg-offset-7 { margin-left: 58.33333333% } .col-lg-offset-6 { margin-left: 50% } .col-lg-offset-5 { margin-left: 41.66666667% } .col-lg-offset-4 { margin-left: 33.33333333% } .col-lg-offset-3 { margin-left: 25% } .col-lg-offset-2 { margin-left: 16.66666667% } .col-lg-offset-1 { margin-left: 8.33333333% } .col-lg-offset-0 { margin-left: 0 } } table { background-color: transparent } caption { padding-top: 8px; padding-bottom: 8px; color: #777; text-align: left } th { text-align: left } .table { width: 100%; max-width: 100%; margin-bottom: 20px } .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th { padding: 8px; line-height: 1.42857143; vertical-align: top; border-top: 1px solid #ddd } .table>thead>tr>th { vertical-align: bottom; border-bottom: 2px solid #ddd } .table>caption+thead>tr:first-child>td, .table>caption+thead>tr:first-child>th, .table>colgroup+thead>tr:first-child>td, .table>colgroup+thead>tr:first-child>th, .table>thead:first-child>tr:first-child>td, .table>thead:first-child>tr:first-child>th { border-top: 0 } .table>tbody+tbody { border-top: 2px solid #ddd } .table .table { background-color: #fff } .table-condensed>tbody>tr>td, .table-condensed>tbody>tr>th, .table-condensed>tfoot>tr>td, .table-condensed>tfoot>tr>th, .table-condensed>thead>tr>td, .table-condensed>thead>tr>th { padding: 5px } .table-bordered { border: 1px solid #ddd } .table-bordered>tbody>tr>td, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>td, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>thead>tr>th { border: 1px solid #ddd } .table-bordered>thead>tr>td, .table-bordered>thead>tr>th { border-bottom-width: 2px } .table-striped>tbody>tr:nth-of-type(odd) { background-color: #f9f9f9 } .table-hover>tbody>tr:hover { background-color: #f5f5f5 } table col[class*=col-] { position: static; display: table-column; float: none } table td[class*=col-], table th[class*=col-] { position: static; display: table-cell; float: none } .table>tbody>tr.active>td, .table>tbody>tr.active>th, .table>tbody>tr>td.active, .table>tbody>tr>th.active, .table>tfoot>tr.active>td, .table>tfoot>tr.active>th, .table>tfoot>tr>td.active, .table>tfoot>tr>th.active, .table>thead>tr.active>td, .table>thead>tr.active>th, .table>thead>tr>td.active, .table>thead>tr>th.active { background-color: #f5f5f5 } .table-hover>tbody>tr.active:hover>td, .table-hover>tbody>tr.active:hover>th, .table-hover>tbody>tr:hover>.active, .table-hover>tbody>tr>td.active:hover, .table-hover>tbody>tr>th.active:hover { background-color: #e8e8e8 } .table>tbody>tr.success>td, .table>tbody>tr.success>th, .table>tbody>tr>td.success, .table>tbody>tr>th.success, .table>tfoot>tr.success>td, .table>tfoot>tr.success>th, .table>tfoot>tr>td.success, .table>tfoot>tr>th.success, .table>thead>tr.success>td, .table>thead>tr.success>th, .table>thead>tr>td.success, .table>thead>tr>th.success { background-color: #dff0d8 } .table-hover>tbody>tr.success:hover>td, .table-hover>tbody>tr.success:hover>th, .table-hover>tbody>tr:hover>.success, .table-hover>tbody>tr>td.success:hover, .table-hover>tbody>tr>th.success:hover { background-color: #d0e9c6 } .table>tbody>tr.info>td, .table>tbody>tr.info>th, .table>tbody>tr>td.info, .table>tbody>tr>th.info, .table>tfoot>tr.info>td, .table>tfoot>tr.info>th, .table>tfoot>tr>td.info, .table>tfoot>tr>th.info, .table>thead>tr.info>td, .table>thead>tr.info>th, .table>thead>tr>td.info, .table>thead>tr>th.info { background-color: #d9edf7 } .table-hover>tbody>tr.info:hover>td, .table-hover>tbody>tr.info:hover>th, .table-hover>tbody>tr:hover>.info, .table-hover>tbody>tr>td.info:hover, .table-hover>tbody>tr>th.info:hover { background-color: #c4e3f3 } .table>tbody>tr.warning>td, .table>tbody>tr.warning>th, .table>tbody>tr>td.warning, .table>tbody>tr>th.warning, .table>tfoot>tr.warning>td, .table>tfoot>tr.warning>th, .table>tfoot>tr>td.warning, .table>tfoot>tr>th.warning, .table>thead>tr.warning>td, .table>thead>tr.warning>th, .table>thead>tr>td.warning, .table>thead>tr>th.warning { background-color: #fcf8e3 } .table-hover>tbody>tr.warning:hover>td, .table-hover>tbody>tr.warning:hover>th, .table-hover>tbody>tr:hover>.warning, .table-hover>tbody>tr>td.warning:hover, .table-hover>tbody>tr>th.warning:hover { background-color: #faf2cc } .table>tbody>tr.danger>td, .table>tbody>tr.danger>th, .table>tbody>tr>td.danger, .table>tbody>tr>th.danger, .table>tfoot>tr.danger>td, .table>tfoot>tr.danger>th, .table>tfoot>tr>td.danger, .table>tfoot>tr>th.danger, .table>thead>tr.danger>td, .table>thead>tr.danger>th, .table>thead>tr>td.danger, .table>thead>tr>th.danger { background-color: #f2dede } .table-hover>tbody>tr.danger:hover>td, .table-hover>tbody>tr.danger:hover>th, .table-hover>tbody>tr:hover>.danger, .table-hover>tbody>tr>td.danger:hover, .table-hover>tbody>tr>th.danger:hover { background-color: #ebcccc } .table-responsive { min-height: .01%; overflow-x: auto } @media screen and (max-width:767px) { .table-responsive { width: 100%; margin-bottom: 15px; overflow-y: hidden; -ms-overflow-style: -<API key>; border: 1px solid #ddd } .table-responsive>.table { margin-bottom: 0 } .table-responsive>.table>tbody>tr>td, .table-responsive>.table>tbody>tr>th, .table-responsive>.table>tfoot>tr>td, .table-responsive>.table>tfoot>tr>th, .table-responsive>.table>thead>tr>td, .table-responsive>.table>thead>tr>th { white-space: nowrap } .table-responsive>.table-bordered { border: 0 } .table-responsive>.table-bordered>tbody>tr>td:first-child, .table-responsive>.table-bordered>tbody>tr>th:first-child, .table-responsive>.table-bordered>tfoot>tr>td:first-child, .table-responsive>.table-bordered>tfoot>tr>th:first-child, .table-responsive>.table-bordered>thead>tr>td:first-child, .table-responsive>.table-bordered>thead>tr>th:first-child { border-left: 0 } .table-responsive>.table-bordered>tbody>tr>td:last-child, .table-responsive>.table-bordered>tbody>tr>th:last-child, .table-responsive>.table-bordered>tfoot>tr>td:last-child, .table-responsive>.table-bordered>tfoot>tr>th:last-child, .table-responsive>.table-bordered>thead>tr>td:last-child, .table-responsive>.table-bordered>thead>tr>th:last-child { border-right: 0 } .table-responsive>.table-bordered>tbody>tr:last-child>td, .table-responsive>.table-bordered>tbody>tr:last-child>th, .table-responsive>.table-bordered>tfoot>tr:last-child>td, .table-responsive>.table-bordered>tfoot>tr:last-child>th { border-bottom: 0 } } fieldset { min-width: 0; padding: 0; margin: 0; border: 0 } legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: inherit; color: #333; border: 0; border-bottom: 1px solid #e5e5e5 } label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: 700 } input[type=search] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box } input[type=checkbox], input[type=radio] { margin: 4px 0 0; margin-top: 1px\9; line-height: normal } input[type=file] { display: block } input[type=range] { display: block; width: 100% } select[multiple], select[size] { height: auto } input[type=file]:focus, input[type=checkbox]:focus, input[type=radio]:focus { outline: thin dotted; outline: 5px auto -<API key>; outline-offset: -2px } output { display: block; padding-top: 7px; font-size: 14px; line-height: 1.42857143; color: #555 } .form-control { display: block; width: 100%; height: 34px; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; color: #555; background-color: #fff; background-image: none; border: 1px solid #ccc; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s } .form-control:focus { border-color: #66afe9; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6) } .form-control::-moz-placeholder { color: #999; opacity: 1 } .form-control:-<API key> { color: #999 } .form-control::-<API key> { color: #999 } .form-control::-ms-expand { background-color: transparent; border: 0 } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background-color: #eee; opacity: 1 } .form-control[disabled], fieldset[disabled] .form-control { cursor: not-allowed } textarea.form-control { height: auto } input[type=search] { -webkit-appearance: none } @media screen and (-<API key>:0) { input[type=date].form-control, input[type=time].form-control, input[type=datetime-local].form-control, input[type=month].form-control { line-height: 34px } .input-group-sm input[type=date], .input-group-sm input[type=time], .input-group-sm input[type=datetime-local], .input-group-sm input[type=month], input[type=date].input-sm, input[type=time].input-sm, input[type=datetime-local].input-sm, input[type=month].input-sm { line-height: 30px } .input-group-lg input[type=date], .input-group-lg input[type=time], .input-group-lg input[type=datetime-local], .input-group-lg input[type=month], input[type=date].input-lg, input[type=time].input-lg, input[type=datetime-local].input-lg, input[type=month].input-lg { line-height: 46px } } .form-group { margin-bottom: 15px } .checkbox, .radio { position: relative; display: block; margin-top: 10px; margin-bottom: 10px } .checkbox label, .radio label { min-height: 20px; padding-left: 20px; margin-bottom: 0; font-weight: 400; cursor: pointer } .checkbox input[type=checkbox], .checkbox-inline input[type=checkbox], .radio input[type=radio], .radio-inline input[type=radio] { position: absolute; margin-top: 4px\9; margin-left: -20px } .checkbox+.checkbox, .radio+.radio { margin-top: -5px } .checkbox-inline, .radio-inline { position: relative; display: inline-block; padding-left: 20px; margin-bottom: 0; font-weight: 400; vertical-align: middle; cursor: pointer } .checkbox-inline+.checkbox-inline, .radio-inline+.radio-inline { margin-top: 0; margin-left: 10px } fieldset[disabled] input[type=checkbox], fieldset[disabled] input[type=radio], input[type=checkbox].disabled, input[type=checkbox][disabled], input[type=radio].disabled, input[type=radio][disabled] { cursor: not-allowed } .checkbox-inline.disabled, .radio-inline.disabled, fieldset[disabled] .checkbox-inline, fieldset[disabled] .radio-inline { cursor: not-allowed } .checkbox.disabled label, .radio.disabled label, fieldset[disabled] .checkbox label, fieldset[disabled] .radio label { cursor: not-allowed } .form-control-static { min-height: 34px; padding-top: 7px; padding-bottom: 7px; margin-bottom: 0 } .form-control-static.input-lg, .form-control-static.input-sm { padding-right: 0; padding-left: 0 } .input-sm { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px } select.input-sm { height: 30px; line-height: 30px } select[multiple].input-sm, textarea.input-sm { height: auto } .form-group-sm .form-control { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px } .form-group-sm select.form-control { height: 30px; line-height: 30px } .form-group-sm select[multiple].form-control, .form-group-sm textarea.form-control { height: auto } .form-group-sm .form-control-static { height: 30px; min-height: 32px; padding: 6px 10px; font-size: 12px; line-height: 1.5 } .input-lg { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px } select.input-lg { height: 46px; line-height: 46px } select[multiple].input-lg, textarea.input-lg { height: auto } .form-group-lg .form-control { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px } .form-group-lg select.form-control { height: 46px; line-height: 46px } .form-group-lg select[multiple].form-control, .form-group-lg textarea.form-control { height: auto } .form-group-lg .form-control-static { height: 46px; min-height: 38px; padding: 11px 16px; font-size: 18px; line-height: 1.3333333 } .has-feedback { position: relative } .has-feedback .form-control { padding-right: 42.5px } .<API key> { position: absolute; top: 0; right: 0; z-index: 2; display: block; width: 34px; height: 34px; line-height: 34px; text-align: center; pointer-events: none } .form-group-lg .form-control+.<API key>, .input-group-lg+.<API key>, .input-lg+.<API key> { width: 46px; height: 46px; line-height: 46px } .form-group-sm .form-control+.<API key>, .input-group-sm+.<API key>, .input-sm+.<API key> { width: 30px; height: 30px; line-height: 30px } .has-success .checkbox, .has-success .checkbox-inline, .has-success .control-label, .has-success .help-block, .has-success .radio, .has-success .radio-inline, .has-success.checkbox label, .has-success.checkbox-inline label, .has-success.radio label, .has-success.radio-inline label { color: #3c763d } .has-success .form-control { border-color: #3c763d; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075) } .has-success .form-control:focus { border-color: #2b542c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #67b168 } .has-success .input-group-addon { color: #3c763d; background-color: #dff0d8; border-color: #3c763d } .has-success .<API key> { color: #3c763d } .has-warning .checkbox, .has-warning .checkbox-inline, .has-warning .control-label, .has-warning .help-block, .has-warning .radio, .has-warning .radio-inline, .has-warning.checkbox label, .has-warning.checkbox-inline label, .has-warning.radio label, .has-warning.radio-inline label { color: #8a6d3b } .has-warning .form-control { border-color: #8a6d3b; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075) } .has-warning .form-control:focus { border-color: #66512c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #c0a16b } .has-warning .input-group-addon { color: #8a6d3b; background-color: #fcf8e3; border-color: #8a6d3b } .has-warning .<API key> { color: #8a6d3b } .has-error .checkbox, .has-error .checkbox-inline, .has-error .control-label, .has-error .help-block, .has-error .radio, .has-error .radio-inline, .has-error.checkbox label, .has-error.checkbox-inline label, .has-error.radio label, .has-error.radio-inline label { color: #a94442 } .has-error .form-control { border-color: #a94442; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075) } .has-error .form-control:focus { border-color: #843534; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483 } .has-error .input-group-addon { color: #a94442; background-color: #f2dede; border-color: #a94442 } .has-error .<API key> { color: #a94442 } .has-feedback label~.<API key> { top: 25px } .has-feedback label.sr-only~.<API key> { top: 0 } .help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373 } @media (min-width:768px) { .form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle } .form-inline .form-control { display: inline-block; width: auto; vertical-align: middle } .form-inline .form-control-static { display: inline-block } .form-inline .input-group { display: inline-table; vertical-align: middle } .form-inline .input-group .form-control, .form-inline .input-group .input-group-addon, .form-inline .input-group .input-group-btn { width: auto } .form-inline .input-group>.form-control { width: 100% } .form-inline .control-label { margin-bottom: 0; vertical-align: middle } .form-inline .checkbox, .form-inline .radio { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle } .form-inline .checkbox label, .form-inline .radio label { padding-left: 0 } .form-inline .checkbox input[type=checkbox], .form-inline .radio input[type=radio] { position: relative; margin-left: 0 } .form-inline .has-feedback .<API key> { top: 0 } } .form-horizontal .checkbox, .form-horizontal .checkbox-inline, .form-horizontal .radio, .form-horizontal .radio-inline { padding-top: 7px; margin-top: 0; margin-bottom: 0 } .form-horizontal .checkbox, .form-horizontal .radio { min-height: 27px } .form-horizontal .form-group { margin-right: -15px; margin-left: -15px } @media (min-width:768px) { .form-horizontal .control-label { padding-top: 7px; margin-bottom: 0; text-align: right } } .form-horizontal .has-feedback .<API key> { right: 15px } @media (min-width:768px) { .form-horizontal .form-group-lg .control-label { padding-top: 11px; font-size: 18px } } @media (min-width:768px) { .form-horizontal .form-group-sm .control-label { padding-top: 6px; font-size: 12px } } .btn { display: inline-block; padding: 6px 12px; margin-bottom: 0; font-size: 14px; font-weight: 400; line-height: 1.42857143; text-align: center; white-space: nowrap; vertical-align: middle; -ms-touch-action: manipulation; touch-action: manipulation; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; background-image: none; border: 1px solid transparent; border-radius: 4px } .btn.active.focus, .btn.active:focus, .btn.focus, .btn:active.focus, .btn:active:focus, .btn:focus { outline: thin dotted; outline: 5px auto -<API key>; outline-offset: -2px } .btn.focus, .btn:focus, .btn:hover { color: #333; text-decoration: none } .btn.active, .btn:active { background-image: none; outline: 0; -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125) } .btn.disabled, .btn[disabled], fieldset[disabled] .btn { cursor: not-allowed; filter: alpha(opacity=65); -webkit-box-shadow: none; box-shadow: none; opacity: .65 } a.btn.disabled, fieldset[disabled] a.btn { pointer-events: none } .btn-default { color: #333; background-color: #fff; border-color: #ccc } .btn-default.focus, .btn-default:focus { color: #333; background-color: #e6e6e6; border-color: #8c8c8c } .btn-default:hover { color: #333; background-color: #e6e6e6; border-color: #adadad } .btn-default.active, .btn-default:active, .open>.dropdown-toggle.btn-default { color: #333; background-color: #e6e6e6; border-color: #adadad } .btn-default.active.focus, .btn-default.active:focus, .btn-default.active:hover, .btn-default:active.focus, .btn-default:active:focus, .btn-default:active:hover, .open>.dropdown-toggle.btn-default.focus, .open>.dropdown-toggle.btn-default:focus, .open>.dropdown-toggle.btn-default:hover { color: #333; background-color: #d4d4d4; border-color: #8c8c8c } .btn-default.active, .btn-default:active, .open>.dropdown-toggle.btn-default { background-image: none } .btn-default.disabled.focus, .btn-default.disabled:focus, .btn-default.disabled:hover, .btn-default[disabled].focus, .btn-default[disabled]:focus, .btn-default[disabled]:hover, fieldset[disabled] .btn-default.focus, fieldset[disabled] .btn-default:focus, fieldset[disabled] .btn-default:hover { background-color: #fff; border-color: #ccc } .btn-default .badge { color: #fff; background-color: #333 } .btn-primary { color: #fff; background-color: #337ab7; border-color: #2e6da4 } .btn-primary.focus, .btn-primary:focus { color: #fff; background-color: #286090; border-color: #122b40 } .btn-primary:hover { color: #fff; background-color: #286090; border-color: #204d74 } .btn-primary.active, .btn-primary:active, .open>.dropdown-toggle.btn-primary { color: #fff; background-color: #286090; border-color: #204d74 } .btn-primary.active.focus, .btn-primary.active:focus, .btn-primary.active:hover, .btn-primary:active.focus, .btn-primary:active:focus, .btn-primary:active:hover, .open>.dropdown-toggle.btn-primary.focus, .open>.dropdown-toggle.btn-primary:focus, .open>.dropdown-toggle.btn-primary:hover { color: #fff; background-color: #204d74; border-color: #122b40 } .btn-primary.active, .btn-primary:active, .open>.dropdown-toggle.btn-primary { background-image: none } .btn-primary.disabled.focus, .btn-primary.disabled:focus, .btn-primary.disabled:hover, .btn-primary[disabled].focus, .btn-primary[disabled]:focus, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary.focus, fieldset[disabled] .btn-primary:focus, fieldset[disabled] .btn-primary:hover { background-color: #337ab7; border-color: #2e6da4 } .btn-primary .badge { color: #337ab7; background-color: #fff } .btn-success { color: #fff; background-color: #5cb85c; border-color: #4cae4c } .btn-success.focus, .btn-success:focus { color: #fff; background-color: #449d44; border-color: #255625 } .btn-success:hover { color: #fff; background-color: #449d44; border-color: #398439 } .btn-success.active, .btn-success:active, .open>.dropdown-toggle.btn-success { color: #fff; background-color: #449d44; border-color: #398439 } .btn-success.active.focus, .btn-success.active:focus, .btn-success.active:hover, .btn-success:active.focus, .btn-success:active:focus, .btn-success:active:hover, .open>.dropdown-toggle.btn-success.focus, .open>.dropdown-toggle.btn-success:focus, .open>.dropdown-toggle.btn-success:hover { color: #fff; background-color: #398439; border-color: #255625 } .btn-success.active, .btn-success:active, .open>.dropdown-toggle.btn-success { background-image: none } .btn-success.disabled.focus, .btn-success.disabled:focus, .btn-success.disabled:hover, .btn-success[disabled].focus, .btn-success[disabled]:focus, .btn-success[disabled]:hover, fieldset[disabled] .btn-success.focus, fieldset[disabled] .btn-success:focus, fieldset[disabled] .btn-success:hover { background-color: #5cb85c; border-color: #4cae4c } .btn-success .badge { color: #5cb85c; background-color: #fff } .btn-info { color: #fff; background-color: #5bc0de; border-color: #46b8da } .btn-info.focus, .btn-info:focus { color: #fff; background-color: #31b0d5; border-color: #1b6d85 } .btn-info:hover { color: #fff; background-color: #31b0d5; border-color: #269abc } .btn-info.active, .btn-info:active, .open>.dropdown-toggle.btn-info { color: #fff; background-color: #31b0d5; border-color: #269abc } .btn-info.active.focus, .btn-info.active:focus, .btn-info.active:hover, .btn-info:active.focus, .btn-info:active:focus, .btn-info:active:hover, .open>.dropdown-toggle.btn-info.focus, .open>.dropdown-toggle.btn-info:focus, .open>.dropdown-toggle.btn-info:hover { color: #fff; background-color: #269abc; border-color: #1b6d85 } .btn-info.active, .btn-info:active, .open>.dropdown-toggle.btn-info { background-image: none } .btn-info.disabled.focus, .btn-info.disabled:focus, .btn-info.disabled:hover, .btn-info[disabled].focus, .btn-info[disabled]:focus, .btn-info[disabled]:hover, fieldset[disabled] .btn-info.focus, fieldset[disabled] .btn-info:focus, fieldset[disabled] .btn-info:hover { background-color: #5bc0de; border-color: #46b8da } .btn-info .badge { color: #5bc0de; background-color: #fff } .btn-warning { color: #fff; background-color: #f0ad4e; border-color: #eea236 } .btn-warning.focus, .btn-warning:focus { color: #fff; background-color: #ec971f; border-color: #985f0d } .btn-warning:hover { color: #fff; background-color: #ec971f; border-color: #d58512 } .btn-warning.active, .btn-warning:active, .open>.dropdown-toggle.btn-warning { color: #fff; background-color: #ec971f; border-color: #d58512 } .btn-warning.active.focus, .btn-warning.active:focus, .btn-warning.active:hover, .btn-warning:active.focus, .btn-warning:active:focus, .btn-warning:active:hover, .open>.dropdown-toggle.btn-warning.focus, .open>.dropdown-toggle.btn-warning:focus, .open>.dropdown-toggle.btn-warning:hover { color: #fff; background-color: #d58512; border-color: #985f0d } .btn-warning.active, .btn-warning:active, .open>.dropdown-toggle.btn-warning { background-image: none } .btn-warning.disabled.focus, .btn-warning.disabled:focus, .btn-warning.disabled:hover, .btn-warning[disabled].focus, .btn-warning[disabled]:focus, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning.focus, fieldset[disabled] .btn-warning:focus, fieldset[disabled] .btn-warning:hover { background-color: #f0ad4e; border-color: #eea236 } .btn-warning .badge { color: #f0ad4e; background-color: #fff } .btn-danger { color: #fff; background-color: #d9534f; border-color: #d43f3a } .btn-danger.focus, .btn-danger:focus { color: #fff; background-color: #c9302c; border-color: #761c19 } .btn-danger:hover { color: #fff; background-color: #c9302c; border-color: #ac2925 } .btn-danger.active, .btn-danger:active, .open>.dropdown-toggle.btn-danger { color: #fff; background-color: #c9302c; border-color: #ac2925 } .btn-danger.active.focus, .btn-danger.active:focus, .btn-danger.active:hover, .btn-danger:active.focus, .btn-danger:active:focus, .btn-danger:active:hover, .open>.dropdown-toggle.btn-danger.focus, .open>.dropdown-toggle.btn-danger:focus, .open>.dropdown-toggle.btn-danger:hover { color: #fff; background-color: #ac2925; border-color: #761c19 } .btn-danger.active, .btn-danger:active, .open>.dropdown-toggle.btn-danger { background-image: none } .btn-danger.disabled.focus, .btn-danger.disabled:focus, .btn-danger.disabled:hover, .btn-danger[disabled].focus, .btn-danger[disabled]:focus, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger.focus, fieldset[disabled] .btn-danger:focus, fieldset[disabled] .btn-danger:hover { background-color: #d9534f; border-color: #d43f3a } .btn-danger .badge { color: #d9534f; background-color: #fff } .btn-link { font-weight: 400; color: #337ab7; border-radius: 0 } .btn-link, .btn-link.active, .btn-link:active, .btn-link[disabled], fieldset[disabled] .btn-link { background-color: transparent; -webkit-box-shadow: none; box-shadow: none } .btn-link, .btn-link:active, .btn-link:focus, .btn-link:hover { border-color: transparent } .btn-link:focus, .btn-link:hover { color: #23527c; text-decoration: underline; background-color: transparent } .btn-link[disabled]:focus, .btn-link[disabled]:hover, fieldset[disabled] .btn-link:focus, fieldset[disabled] .btn-link:hover { color: #777; text-decoration: none } .btn-group-lg>.btn, .btn-lg { padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px } .btn-group-sm>.btn, .btn-sm { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px } .btn-group-xs>.btn, .btn-xs { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px } .btn-block { display: block; width: 100% } .btn-block+.btn-block { margin-top: 5px } input[type=button].btn-block, input[type=reset].btn-block, input[type=submit].btn-block { width: 100% } .fade { opacity: 0; -webkit-transition: opacity .15s linear; -o-transition: opacity .15s linear; transition: opacity .15s linear } .fade.in { opacity: 1 } .collapse { display: none } .collapse.in { display: block } tr.collapse.in { display: table-row } tbody.collapse.in { display: table-row-group } .collapsing { position: relative; height: 0; overflow: hidden; -<API key>: ease; -<API key>: ease; <API key>: ease; -<API key>: .35s; -<API key>: .35s; transition-duration: .35s; -<API key>: height, visibility; -<API key>: height, visibility; transition-property: height, visibility } .caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px dashed; border-top: 4px solid\9; border-right: 4px solid transparent; border-left: 4px solid transparent } .dropdown, .dropup { position: relative } .dropdown-toggle:focus { outline: 0 } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; font-size: 14px; text-align: left; list-style: none; background-color: #fff; -<API key>: padding-box; background-clip: padding-box; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, .15); border-radius: 4px; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175); box-shadow: 0 6px 12px rgba(0, 0, 0, .175) } .dropdown-menu.pull-right { right: 0; left: auto } .dropdown-menu .divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5 } .dropdown-menu>li>a { display: block; padding: 3px 20px; clear: both; font-weight: 400; line-height: 1.42857143; color: #333; white-space: nowrap } .dropdown-menu>li>a:focus, .dropdown-menu>li>a:hover { color: #262626; text-decoration: none; background-color: #f5f5f5 } .dropdown-menu>.active>a, .dropdown-menu>.active>a:focus, .dropdown-menu>.active>a:hover { color: #fff; text-decoration: none; background-color: #337ab7; outline: 0 } .dropdown-menu>.disabled>a, .dropdown-menu>.disabled>a:focus, .dropdown-menu>.disabled>a:hover { color: #777 } .dropdown-menu>.disabled>a:focus, .dropdown-menu>.disabled>a:hover { text-decoration: none; cursor: not-allowed; background-color: transparent; background-image: none; filter: progid: DXImageTransform.Microsoft.gradient(enabled=false) } .open>.dropdown-menu { display: block } .open>a { outline: 0 } .dropdown-menu-right { right: 0; left: auto } .dropdown-menu-left { right: auto; left: 0 } .dropdown-header { display: block; padding: 3px 20px; font-size: 12px; line-height: 1.42857143; color: #777; white-space: nowrap } .dropdown-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 990 } .pull-right>.dropdown-menu { right: 0; left: auto } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { content: ""; border-top: 0; border-bottom: 4px dashed; border-bottom: 4px solid\9 } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 2px } @media (min-width:768px) { .navbar-right .dropdown-menu { right: 0; left: auto } .navbar-right .dropdown-menu-left { right: auto; left: 0 } } .btn-group, .btn-group-vertical { position: relative; display: inline-block; vertical-align: middle } .btn-group-vertical>.btn, .btn-group>.btn { position: relative; float: left } .btn-group-vertical>.btn.active, .btn-group-vertical>.btn:active, .btn-group-vertical>.btn:focus, .btn-group-vertical>.btn:hover, .btn-group>.btn.active, .btn-group>.btn:active, .btn-group>.btn:focus, .btn-group>.btn:hover { z-index: 2 } .btn-group .btn+.btn, .btn-group .btn+.btn-group, .btn-group .btn-group+.btn, .btn-group .btn-group+.btn-group { margin-left: -1px } .btn-toolbar { margin-left: -5px } .btn-toolbar .btn, .btn-toolbar .btn-group, .btn-toolbar .input-group { float: left } .btn-toolbar>.btn, .btn-toolbar>.btn-group, .btn-toolbar>.input-group { margin-left: 5px } .btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0 } .btn-group>.btn:first-child { margin-left: 0 } .btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle) { <API key>: 0; <API key>: 0 } .btn-group>.btn:last-child:not(:first-child), .btn-group>.dropdown-toggle:not(:first-child) { <API key>: 0; <API key>: 0 } .btn-group>.btn-group { float: left } .btn-group>.btn-group:not(:first-child):not(:last-child)>.btn { border-radius: 0 } .btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child, .btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle { <API key>: 0; <API key>: 0 } .btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child { <API key>: 0; <API key>: 0 } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0 } .btn-group>.btn+.dropdown-toggle { padding-right: 8px; padding-left: 8px } .btn-group>.btn-lg+.dropdown-toggle { padding-right: 12px; padding-left: 12px } .btn-group.open .dropdown-toggle { -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125) } .btn-group.open .dropdown-toggle.btn-link { -webkit-box-shadow: none; box-shadow: none } .btn .caret { margin-left: 0 } .btn-lg .caret { border-width: 5px 5px 0; border-bottom-width: 0 } .dropup .btn-lg .caret { border-width: 0 5px 5px } .btn-group-vertical>.btn, .btn-group-vertical>.btn-group, .btn-group-vertical>.btn-group>.btn { display: block; float: none; width: 100%; max-width: 100% } .btn-group-vertical>.btn-group>.btn { float: none } .btn-group-vertical>.btn+.btn, .btn-group-vertical>.btn+.btn-group, .btn-group-vertical>.btn-group+.btn, .btn-group-vertical>.btn-group+.btn-group { margin-top: -1px; margin-left: 0 } .btn-group-vertical>.btn:not(:first-child):not(:last-child) { border-radius: 0 } .btn-group-vertical>.btn:first-child:not(:last-child) { <API key>: 4px; <API key>: 4px; <API key>: 0; <API key>: 0 } .btn-group-vertical>.btn:last-child:not(:first-child) { <API key>: 0; <API key>: 0; <API key>: 4px; <API key>: 4px } .btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn { border-radius: 0 } .btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child, .btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle { <API key>: 0; <API key>: 0 } .btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child { <API key>: 0; <API key>: 0 } .btn-group-justified { display: table; width: 100%; table-layout: fixed; border-collapse: separate } .btn-group-justified>.btn, .btn-group-justified>.btn-group { display: table-cell; float: none; width: 1% } .btn-group-justified>.btn-group .btn { width: 100% } .btn-group-justified>.btn-group .dropdown-menu { left: auto } [data-toggle=buttons]>.btn input[type=checkbox], [data-toggle=buttons]>.btn input[type=radio], [data-toggle=buttons]>.btn-group>.btn input[type=checkbox], [data-toggle=buttons]>.btn-group>.btn input[type=radio] { position: absolute; clip: rect(0, 0, 0, 0); pointer-events: none } .input-group { position: relative; display: table; border-collapse: separate } .input-group[class*=col-] { float: none; padding-right: 0; padding-left: 0 } .input-group .form-control { position: relative; z-index: 2; float: left; width: 100%; margin-bottom: 0 } .input-group .form-control:focus { z-index: 3 } .input-group-lg>.form-control, .input-group-lg>.input-group-addon, .input-group-lg>.input-group-btn>.btn { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px } select.input-group-lg>.form-control, select.input-group-lg>.input-group-addon, select.input-group-lg>.input-group-btn>.btn { height: 46px; line-height: 46px } select[multiple].input-group-lg>.form-control, select[multiple].input-group-lg>.input-group-addon, select[multiple].input-group-lg>.input-group-btn>.btn, textarea.input-group-lg>.form-control, textarea.input-group-lg>.input-group-addon, textarea.input-group-lg>.input-group-btn>.btn { height: auto } .input-group-sm>.form-control, .input-group-sm>.input-group-addon, .input-group-sm>.input-group-btn>.btn { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px } select.input-group-sm>.form-control, select.input-group-sm>.input-group-addon, select.input-group-sm>.input-group-btn>.btn { height: 30px; line-height: 30px } select[multiple].input-group-sm>.form-control, select[multiple].input-group-sm>.input-group-addon, select[multiple].input-group-sm>.input-group-btn>.btn, textarea.input-group-sm>.form-control, textarea.input-group-sm>.input-group-addon, textarea.input-group-sm>.input-group-btn>.btn { height: auto } .input-group .form-control, .input-group-addon, .input-group-btn { display: table-cell } .input-group .form-control:not(:first-child):not(:last-child), .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child) { border-radius: 0 } .input-group-addon, .input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle } .input-group-addon { padding: 6px 12px; font-size: 14px; font-weight: 400; line-height: 1; color: #555; text-align: center; background-color: #eee; border: 1px solid #ccc; border-radius: 4px } .input-group-addon.input-sm { padding: 5px 10px; font-size: 12px; border-radius: 3px } .input-group-addon.input-lg { padding: 10px 16px; font-size: 18px; border-radius: 6px } .input-group-addon input[type=checkbox], .input-group-addon input[type=radio] { margin-top: 0 } .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child>.btn, .input-group-btn:first-child>.btn-group>.btn, .input-group-btn:first-child>.dropdown-toggle, .input-group-btn:last-child>.btn-group:not(:last-child)>.btn, .input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle) { <API key>: 0; <API key>: 0 } .input-group-addon:first-child { border-right: 0 } .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:first-child>.btn-group:not(:first-child)>.btn, .input-group-btn:first-child>.btn:not(:first-child), .input-group-btn:last-child>.btn, .input-group-btn:last-child>.btn-group>.btn, .input-group-btn:last-child>.dropdown-toggle { <API key>: 0; <API key>: 0 } .input-group-addon:last-child { border-left: 0 } .input-group-btn { position: relative; font-size: 0; white-space: nowrap } .input-group-btn>.btn { position: relative } .input-group-btn>.btn+.btn { margin-left: -1px } .input-group-btn>.btn:active, .input-group-btn>.btn:focus, .input-group-btn>.btn:hover { z-index: 2 } .input-group-btn:first-child>.btn, .input-group-btn:first-child>.btn-group { margin-right: -1px } .input-group-btn:last-child>.btn, .input-group-btn:last-child>.btn-group { z-index: 2; margin-left: -1px } .nav { padding-left: 0; margin-bottom: 0; list-style: none } .nav>li { position: relative; display: block } .nav>li>a { position: relative; display: block; padding: 10px 15px } .nav>li>a:focus, .nav>li>a:hover { text-decoration: none; background-color: #eee } .nav>li.disabled>a { color: #777 } .nav>li.disabled>a:focus, .nav>li.disabled>a:hover { color: #777; text-decoration: none; cursor: not-allowed; background-color: transparent } .nav .open>a, .nav .open>a:focus, .nav .open>a:hover { background-color: #eee; border-color: #337ab7 } .nav .nav-divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5 } .nav>li>a>img { max-width: none } .nav-tabs { border-bottom: 1px solid #ddd } .nav-tabs>li { float: left; margin-bottom: -1px } .nav-tabs>li>a { margin-right: 2px; line-height: 1.42857143; border: 1px solid transparent; border-radius: 4px 4px 0 0 } .nav-tabs>li>a:hover { border-color: #eee #eee #ddd } .nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover { color: #555; cursor: default; background-color: #fff; border: 1px solid #ddd; border-bottom-color: transparent } .nav-tabs.nav-justified { width: 100%; border-bottom: 0 } .nav-tabs.nav-justified>li { float: none } .nav-tabs.nav-justified>li>a { margin-bottom: 5px; text-align: center } .nav-tabs.nav-justified>.dropdown .dropdown-menu { top: auto; left: auto } @media (min-width:768px) { .nav-tabs.nav-justified>li { display: table-cell; width: 1% } .nav-tabs.nav-justified>li>a { margin-bottom: 0 } } .nav-tabs.nav-justified>li>a { margin-right: 0; border-radius: 4px } .nav-tabs.nav-justified>.active>a, .nav-tabs.nav-justified>.active>a:focus, .nav-tabs.nav-justified>.active>a:hover { border: 1px solid #ddd } @media (min-width:768px) { .nav-tabs.nav-justified>li>a { border-bottom: 1px solid #ddd; border-radius: 4px 4px 0 0 } .nav-tabs.nav-justified>.active>a, .nav-tabs.nav-justified>.active>a:focus, .nav-tabs.nav-justified>.active>a:hover { border-bottom-color: #fff } } .nav-pills>li { float: left } .nav-pills>li>a { border-radius: 4px } .nav-pills>li+li { margin-left: 2px } .nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-pills>li.active>a:hover { color: #fff; background-color: #337ab7 } .nav-stacked>li { float: none } .nav-stacked>li+li { margin-top: 2px; margin-left: 0 } .nav-justified { width: 100% } .nav-justified>li { float: none } .nav-justified>li>a { margin-bottom: 5px; text-align: center } .nav-justified>.dropdown .dropdown-menu { top: auto; left: auto } @media (min-width:768px) { .nav-justified>li { display: table-cell; width: 1% } .nav-justified>li>a { margin-bottom: 0 } } .nav-tabs-justified { border-bottom: 0 } .nav-tabs-justified>li>a { margin-right: 0; border-radius: 4px } .nav-tabs-justified>.active>a, .nav-tabs-justified>.active>a:focus, .nav-tabs-justified>.active>a:hover { border: 1px solid #ddd } @media (min-width:768px) { .nav-tabs-justified>li>a { border-bottom: 1px solid #ddd; border-radius: 4px 4px 0 0 } .nav-tabs-justified>.active>a, .nav-tabs-justified>.active>a:focus, .nav-tabs-justified>.active>a:hover { border-bottom-color: #fff } } .tab-content>.tab-pane { display: none } .tab-content>.active { display: block } .nav-tabs .dropdown-menu { margin-top: -1px; <API key>: 0; <API key>: 0 } .navbar { position: relative; min-height: 50px; margin-bottom: 20px; border: 1px solid transparent } @media (min-width:768px) { .navbar { border-radius: 4px } } @media (min-width:768px) { .navbar-header { float: left } } .navbar-collapse { padding-right: 15px; padding-left: 15px; overflow-x: visible; -<API key>: touch; border-top: 1px solid transparent; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1) } .navbar-collapse.in { overflow-y: auto } @media (min-width:768px) { .navbar-collapse { width: auto; border-top: 0; -webkit-box-shadow: none; box-shadow: none } .navbar-collapse.collapse { display: block!important; height: auto!important; padding-bottom: 0; overflow: visible!important } .navbar-collapse.in { overflow-y: visible } .navbar-fixed-bottom .navbar-collapse, .navbar-fixed-top .navbar-collapse, .navbar-static-top .navbar-collapse { padding-right: 0; padding-left: 0 } } .navbar-fixed-bottom .navbar-collapse, .navbar-fixed-top .navbar-collapse { max-height: 340px } @media (max-device-width:480px) and (orientation:landscape) { .navbar-fixed-bottom .navbar-collapse, .navbar-fixed-top .navbar-collapse { max-height: 200px } } .container-fluid>.navbar-collapse, .container-fluid>.navbar-header, .container>.navbar-collapse, .container>.navbar-header { margin-right: -15px; margin-left: -15px } @media (min-width:768px) { .container-fluid>.navbar-collapse, .container-fluid>.navbar-header, .container>.navbar-collapse, .container>.navbar-header { margin-right: 0; margin-left: 0 } } .navbar-static-top { z-index: 1000; border-width: 0 0 1px } @media (min-width:768px) { .navbar-static-top { border-radius: 0 } } .navbar-fixed-bottom, .navbar-fixed-top { position: fixed; right: 0; left: 0; z-index: 1030 } @media (min-width:768px) { .navbar-fixed-bottom, .navbar-fixed-top { border-radius: 0 } } .navbar-fixed-top { top: 0; border-width: 0 0 1px } .navbar-fixed-bottom { bottom: 0; margin-bottom: 0; border-width: 1px 0 0 } .navbar-brand { float: left; height: 50px; padding: 15px 15px; font-size: 18px; line-height: 20px } .navbar-brand:focus, .navbar-brand:hover { text-decoration: none } .navbar-brand>img { display: block } @media (min-width:768px) { .navbar>.container .navbar-brand, .navbar>.container-fluid .navbar-brand { margin-left: -15px } } .navbar-toggle { position: relative; float: right; padding: 9px 10px; margin-top: 8px; margin-right: 15px; margin-bottom: 8px; background-color: transparent; background-image: none; border: 1px solid transparent; border-radius: 4px } .navbar-toggle:focus { outline: 0 } .navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px } .navbar-toggle .icon-bar+.icon-bar { margin-top: 4px } @media (min-width:768px) { .navbar-toggle { display: none } } .navbar-nav { margin: 7.5px -15px } .navbar-nav>li>a { padding-top: 10px; padding-bottom: 10px; line-height: 20px } @media (max-width:767px) { .navbar-nav .open .dropdown-menu { position: static; float: none; width: auto; margin-top: 0; background-color: transparent; border: 0; -webkit-box-shadow: none; box-shadow: none } .navbar-nav .open .dropdown-menu .dropdown-header, .navbar-nav .open .dropdown-menu>li>a { padding: 5px 15px 5px 25px } .navbar-nav .open .dropdown-menu>li>a { line-height: 20px } .navbar-nav .open .dropdown-menu>li>a:focus, .navbar-nav .open .dropdown-menu>li>a:hover { background-image: none } } @media (min-width:768px) { .navbar-nav { float: left; margin: 0 } .navbar-nav>li { float: left } .navbar-nav>li>a { padding-top: 15px; padding-bottom: 15px } } .navbar-form { padding: 10px 15px; margin-top: 8px; margin-right: -15px; margin-bottom: 8px; margin-left: -15px; border-top: 1px solid transparent; border-bottom: 1px solid transparent; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 rgba(255, 255, 255, .1) } @media (min-width:768px) { .navbar-form .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle } .navbar-form .form-control { display: inline-block; width: auto; vertical-align: middle } .navbar-form .form-control-static { display: inline-block } .navbar-form .input-group { display: inline-table; vertical-align: middle } .navbar-form .input-group .form-control, .navbar-form .input-group .input-group-addon, .navbar-form .input-group .input-group-btn { width: auto } .navbar-form .input-group>.form-control { width: 100% } .navbar-form .control-label { margin-bottom: 0; vertical-align: middle } .navbar-form .checkbox, .navbar-form .radio { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle } .navbar-form .checkbox label, .navbar-form .radio label { padding-left: 0 } .navbar-form .checkbox input[type=checkbox], .navbar-form .radio input[type=radio] { position: relative; margin-left: 0 } .navbar-form .has-feedback .<API key> { top: 0 } } @media (max-width:767px) { .navbar-form .form-group { margin-bottom: 5px } .navbar-form .form-group:last-child { margin-bottom: 0 } } @media (min-width:768px) { .navbar-form { width: auto; padding-top: 0; padding-bottom: 0; margin-right: 0; margin-left: 0; border: 0; -webkit-box-shadow: none; box-shadow: none } } .navbar-nav>li>.dropdown-menu { margin-top: 0; <API key>: 0; <API key>: 0 } .navbar-fixed-bottom .navbar-nav>li>.dropdown-menu { margin-bottom: 0; <API key>: 4px; <API key>: 4px; <API key>: 0; <API key>: 0 } .navbar-btn { margin-top: 8px; margin-bottom: 8px } .navbar-btn.btn-sm { margin-top: 10px; margin-bottom: 10px } .navbar-btn.btn-xs { margin-top: 14px; margin-bottom: 14px } .navbar-text { margin-top: 15px; margin-bottom: 15px } @media (min-width:768px) { .navbar-text { float: left; margin-right: 15px; margin-left: 15px } } @media (min-width:768px) { .navbar-left { float: left!important } .navbar-right { float: right!important; margin-right: -15px } .navbar-right~.navbar-right { margin-right: 0 } } .navbar-default { background-color: #f8f8f8; /* border-color: #e7e7e7*/ } .navbar-default .navbar-brand { color: #777 } .navbar-default .navbar-brand:focus, .navbar-default .navbar-brand:hover { color: #5e5e5e; background-color: transparent } .navbar-default .navbar-text { color: #777 } .navbar-default .navbar-nav>li>a { color: #777 } .navbar-default .navbar-nav>li>a:focus, .navbar-default .navbar-nav>li>a:hover { color: #333; background-color: transparent } .navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:focus, .navbar-default .navbar-nav>.active>a:hover { color: #555; /*background-color: #e7e7e7*/ } .navbar-default .navbar-nav>.disabled>a, .navbar-default .navbar-nav>.disabled>a:focus, .navbar-default .navbar-nav>.disabled>a:hover { color: #ccc; background-color: transparent } .navbar-default .navbar-toggle { border-color: #ddd } .navbar-default .navbar-toggle:focus, .navbar-default .navbar-toggle:hover { background-color: #ddd } .navbar-default .navbar-toggle .icon-bar { background-color: #888 } .navbar-default .navbar-collapse, .navbar-default .navbar-form { border-color: #e7e7e7 } .navbar-default .navbar-nav>.open>a, .navbar-default .navbar-nav>.open>a:focus, .navbar-default .navbar-nav>.open>a:hover { color: #555; /*background-color: #e7e7e7*/ } @media (max-width:767px) { .navbar-default .navbar-nav .open .dropdown-menu>li>a { color: #777 } .navbar-default .navbar-nav .open .dropdown-menu>li>a:focus, .navbar-default .navbar-nav .open .dropdown-menu>li>a:hover { color: #333; background-color: transparent } .navbar-default .navbar-nav .open .dropdown-menu>.active>a, .navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus, .navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover { color: #555; /*background-color: #e7e7e7*/ } .navbar-default .navbar-nav .open .dropdown-menu>.disabled>a, .navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus, .navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover { color: #ccc; background-color: transparent } } .navbar-default .navbar-link { color: #777 } .navbar-default .navbar-link:hover { color: #333 } .navbar-default .btn-link { color: #777 } .navbar-default .btn-link:focus, .navbar-default .btn-link:hover { color: #333 } .navbar-default .btn-link[disabled]:focus, .navbar-default .btn-link[disabled]:hover, fieldset[disabled] .navbar-default .btn-link:focus, fieldset[disabled] .navbar-default .btn-link:hover { color: #ccc } .navbar-inverse { background-color: #222; border-color: #080808 } .navbar-inverse .navbar-brand { color: #9d9d9d } .navbar-inverse .navbar-brand:focus, .navbar-inverse .navbar-brand:hover { color: #fff; background-color: transparent } .navbar-inverse .navbar-text { color: #9d9d9d } .navbar-inverse .navbar-nav>li>a { color: #9d9d9d } .navbar-inverse .navbar-nav>li>a:focus, .navbar-inverse .navbar-nav>li>a:hover { color: #fff; background-color: transparent } .navbar-inverse .navbar-nav>.active>a, .navbar-inverse .navbar-nav>.active>a:focus, .navbar-inverse .navbar-nav>.active>a:hover { color: #fff; background-color: #080808 } .navbar-inverse .navbar-nav>.disabled>a, .navbar-inverse .navbar-nav>.disabled>a:focus, .navbar-inverse .navbar-nav>.disabled>a:hover { color: #444; background-color: transparent } .navbar-inverse .navbar-toggle { border-color: #333 } .navbar-inverse .navbar-toggle:focus, .navbar-inverse .navbar-toggle:hover { background-color: #333 } .navbar-inverse .navbar-toggle .icon-bar { background-color: #fff } .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { border-color: #101010 } .navbar-inverse .navbar-nav>.open>a, .navbar-inverse .navbar-nav>.open>a:focus, .navbar-inverse .navbar-nav>.open>a:hover { color: #fff; background-color: #080808 } @media (max-width:767px) { .navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header { border-color: #080808 } .navbar-inverse .navbar-nav .open .dropdown-menu .divider { background-color: #080808 } .navbar-inverse .navbar-nav .open .dropdown-menu>li>a { color: #9d9d9d } .navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus, .navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover { color: #fff; background-color: transparent } .navbar-inverse .navbar-nav .open .dropdown-menu>.active>a, .navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus, .navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover { color: #fff; background-color: #080808 } .navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a, .navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus, .navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover { color: #444; background-color: transparent } } .navbar-inverse .navbar-link { color: #9d9d9d } .navbar-inverse .navbar-link:hover { color: #fff } .navbar-inverse .btn-link { color: #9d9d9d } .navbar-inverse .btn-link:focus, .navbar-inverse .btn-link:hover { color: #fff } .navbar-inverse .btn-link[disabled]:focus, .navbar-inverse .btn-link[disabled]:hover, fieldset[disabled] .navbar-inverse .btn-link:focus, fieldset[disabled] .navbar-inverse .btn-link:hover { color: #444 } .breadcrumb { padding: 8px 15px; margin-bottom: 20px; list-style: none; background-color: #f5f5f5; border-radius: 4px } .breadcrumb>li { display: inline-block } .breadcrumb>li+li:before { padding: 0 5px; color: #ccc; content: "/\00a0" } .breadcrumb>.active { color: #777 } .pagination { display: inline-block; padding-left: 0; margin: 20px 0; border-radius: 4px } .pagination>li { display: inline } .pagination>li>a, .pagination>li>span { position: relative; float: left; padding: 6px 12px; margin-left: -1px; line-height: 1.42857143; color: #337ab7; text-decoration: none; background-color: #fff; border: 1px solid #ddd } .pagination>li:first-child>a, .pagination>li:first-child>span { margin-left: 0; <API key>: 4px; <API key>: 4px } .pagination>li:last-child>a, .pagination>li:last-child>span { <API key>: 4px; <API key>: 4px } .pagination>li>a:focus, .pagination>li>a:hover, .pagination>li>span:focus, .pagination>li>span:hover { z-index: 2; color: #23527c; background-color: #eee; border-color: #ddd } .pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover { z-index: 3; color: #fff; cursor: default; background-color: #337ab7; border-color: #337ab7 } .pagination>.disabled>a, .pagination>.disabled>a:focus, .pagination>.disabled>a:hover, .pagination>.disabled>span, .pagination>.disabled>span:focus, .pagination>.disabled>span:hover { color: #777; cursor: not-allowed; background-color: #fff; border-color: #ddd } .pagination-lg>li>a, .pagination-lg>li>span { padding: 10px 16px; font-size: 18px; line-height: 1.3333333 } .pagination-lg>li:first-child>a, .pagination-lg>li:first-child>span { <API key>: 6px; <API key>: 6px } .pagination-lg>li:last-child>a, .pagination-lg>li:last-child>span { <API key>: 6px; <API key>: 6px } .pagination-sm>li>a, .pagination-sm>li>span { padding: 5px 10px; font-size: 12px; line-height: 1.5 } .pagination-sm>li:first-child>a, .pagination-sm>li:first-child>span { <API key>: 3px; <API key>: 3px } .pagination-sm>li:last-child>a, .pagination-sm>li:last-child>span { <API key>: 3px; <API key>: 3px } .pager { padding-left: 0; margin: 20px 0; text-align: center; list-style: none } .pager li { display: inline } .pager li>a, .pager li>span { display: inline-block; padding: 5px 14px; background-color: #fff; border: 1px solid #ddd; border-radius: 15px } .pager li>a:focus, .pager li>a:hover { text-decoration: none; background-color: #eee } .pager .next>a, .pager .next>span { float: right } .pager .previous>a, .pager .previous>span { float: left } .pager .disabled>a, .pager .disabled>a:focus, .pager .disabled>a:hover, .pager .disabled>span { color: #777; cursor: not-allowed; background-color: #fff } .label { display: inline; padding: .2em .6em .3em; font-size: 75%; font-weight: 700; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25em } a.label:focus, a.label:hover { color: #fff; text-decoration: none; cursor: pointer } .label:empty { display: none } .btn .label { position: relative; top: -1px } .label-default { background-color: #777 } .label-default[href]:focus, .label-default[href]:hover { background-color: #5e5e5e } .label-primary { background-color: #337ab7 } .label-primary[href]:focus, .label-primary[href]:hover { background-color: #286090 } .label-success { background-color: #5cb85c } .label-success[href]:focus, .label-success[href]:hover { background-color: #449d44 } .label-info { background-color: #5bc0de } .label-info[href]:focus, .label-info[href]:hover { background-color: #31b0d5 } .label-warning { background-color: #f0ad4e } .label-warning[href]:focus, .label-warning[href]:hover { background-color: #ec971f } .label-danger { background-color: #d9534f } .label-danger[href]:focus, .label-danger[href]:hover { background-color: #c9302c } .badge { display: inline-block; min-width: 10px; padding: 3px 7px; font-size: 12px; font-weight: 700; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: middle; background-color: #777; border-radius: 10px } .badge:empty { display: none } .btn .badge { position: relative; top: -1px } .btn-group-xs>.btn .badge, .btn-xs .badge { top: 0; padding: 1px 5px } a.badge:focus, a.badge:hover { color: #fff; text-decoration: none; cursor: pointer } .list-group-item.active>.badge, .nav-pills>.active>a>.badge { color: #337ab7; background-color: #fff } .list-group-item>.badge { float: right } .list-group-item>.badge+.badge { margin-right: 5px } .nav-pills>li>a>.badge { margin-left: 3px } .jumbotron { padding-top: 30px; padding-bottom: 30px; margin-bottom: 30px; color: inherit; background-color: #eee } .jumbotron .h1, .jumbotron h1 { color: inherit } .jumbotron p { margin-bottom: 15px; font-size: 21px; font-weight: 200 } .jumbotron>hr { border-top-color: #d5d5d5 } .container .jumbotron, .container-fluid .jumbotron { padding-right: 15px; padding-left: 15px; border-radius: 6px } .jumbotron .container { max-width: 100% } @media screen and (min-width:768px) { .jumbotron { padding-top: 48px; padding-bottom: 48px } .container .jumbotron, .container-fluid .jumbotron { padding-right: 60px; padding-left: 60px } .jumbotron .h1, .jumbotron h1 { font-size: 63px } } .thumbnail { display: block; padding: 4px; margin-bottom: 20px; line-height: 1.42857143; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; -webkit-transition: border .2s ease-in-out; -o-transition: border .2s ease-in-out; transition: border .2s ease-in-out } .thumbnail a>img, .thumbnail>img { margin-right: auto; margin-left: auto } a.thumbnail.active, a.thumbnail:focus, a.thumbnail:hover { border-color: #337ab7 } .thumbnail .caption { padding: 9px; color: #333 } .alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px } .alert h4 { margin-top: 0; color: inherit } .alert .alert-link { font-weight: 700 } .alert>p, .alert>ul { margin-bottom: 0 } .alert>p+p { margin-top: 5px } .alert-dismissable, .alert-dismissible { padding-right: 35px } .alert-dismissable .close, .alert-dismissible .close { position: relative; top: -2px; right: -21px; color: inherit } .alert-success { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6 } .alert-success hr { border-top-color: #c9e2b3 } .alert-success .alert-link { color: #2b542c } .alert-info { color: #31708f; background-color: #d9edf7; border-color: #bce8f1 } .alert-info hr { border-top-color: #a6e1ec } .alert-info .alert-link { color: #245269 } .alert-warning { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc } .alert-warning hr { border-top-color: #f7e1b5 } .alert-warning .alert-link { color: #66512c } .alert-danger { color: #a94442; background-color: #f2dede; border-color: #ebccd1 } .alert-danger hr { border-top-color: #e4b9c0 } .alert-danger .alert-link { color: #843534 } @-webkit-keyframes <API key> { from { background-position: 40px 0 } to { background-position: 0 0 } } @-o-keyframes <API key> { from { background-position: 40px 0 } to { background-position: 0 0 } } @keyframes <API key> { from { background-position: 40px 0 } to { background-position: 0 0 } } .progress { height: 20px; margin-bottom: 20px; overflow: hidden; background-color: #f5f5f5; border-radius: 4px; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1) } .progress-bar { float: left; width: 0; height: 100%; font-size: 12px; line-height: 20px; color: #fff; text-align: center; background-color: #337ab7; -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); -webkit-transition: width .6s ease; -o-transition: width .6s ease; transition: width .6s ease } .<API key>, .progress-striped .progress-bar { background-image: -<API key>(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); -<API key>: 40px 40px; background-size: 40px 40px } .progress-bar.active, .progress.active .progress-bar { -webkit-animation: <API key> 2s linear infinite; -o-animation: <API key> 2s linear infinite; animation: <API key> 2s linear infinite } .<API key> { background-color: #5cb85c } .progress-striped .<API key> { background-image: -<API key>(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent) } .progress-bar-info { background-color: #5bc0de } .progress-striped .progress-bar-info { background-image: -<API key>(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent) } .<API key> { background-color: #f0ad4e } .progress-striped .<API key> { background-image: -<API key>(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent) } .progress-bar-danger { background-color: #d9534f } .progress-striped .progress-bar-danger { background-image: -<API key>(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent) } .media { margin-top: 15px } .media:first-child { margin-top: 0 } .media, .media-body { overflow: hidden; zoom: 1 } .media-body { width: 10000px } .media-object { display: block } .media-object.img-thumbnail { max-width: none } .media-right, .media>.pull-right { padding-left: 10px } .media-left, .media>.pull-left { padding-right: 10px } .media-body, .media-left, .media-right { display: table-cell; vertical-align: top } .media-middle { vertical-align: middle } .media-bottom { vertical-align: bottom } .media-heading { margin-top: 0; margin-bottom: 5px } .media-list { padding-left: 0; list-style: none } .list-group { padding-left: 0; margin-bottom: 20px } .list-group-item { position: relative; display: block; padding: 10px 15px; margin-bottom: -1px; background-color: #fff; border: 1px solid #ddd } .list-group-item:first-child { <API key>: 4px; <API key>: 4px } .list-group-item:last-child { margin-bottom: 0; <API key>: 4px; <API key>: 4px } a.list-group-item, button.list-group-item { color: #555 } a.list-group-item .<API key>, button.list-group-item .<API key> { color: #333 } a.list-group-item:focus, a.list-group-item:hover, button.list-group-item:focus, button.list-group-item:hover { color: #555; text-decoration: none; background-color: #f5f5f5 } button.list-group-item { width: 100%; text-align: left } .list-group-item.disabled, .list-group-item.disabled:focus, .list-group-item.disabled:hover { color: #777; cursor: not-allowed; background-color: #eee } .list-group-item.disabled .<API key>, .list-group-item.disabled:focus .<API key>, .list-group-item.disabled:hover .<API key> { color: inherit } .list-group-item.disabled .<API key>, .list-group-item.disabled:focus .<API key>, .list-group-item.disabled:hover .<API key> { color: #777 } .list-group-item.active, .list-group-item.active:focus, .list-group-item.active:hover { z-index: 2; color: #fff; background-color: #337ab7; border-color: #337ab7 } .list-group-item.active .<API key>, .list-group-item.active .<API key>>.small, .list-group-item.active .<API key>>small, .list-group-item.active:focus .<API key>, .list-group-item.active:focus .<API key>>.small, .list-group-item.active:focus .<API key>>small, .list-group-item.active:hover .<API key>, .list-group-item.active:hover .<API key>>.small, .list-group-item.active:hover .<API key>>small { color: inherit } .list-group-item.active .<API key>, .list-group-item.active:focus .<API key>, .list-group-item.active:hover .<API key> { color: #c7ddef } .<API key> { color: #3c763d; background-color: #dff0d8 } a.<API key>, button.<API key> { color: #3c763d } a.<API key> .<API key>, button.<API key> .<API key> { color: inherit } a.<API key>:focus, a.<API key>:hover, button.<API key>:focus, button.<API key>:hover { color: #3c763d; background-color: #d0e9c6 } a.<API key>.active, a.<API key>.active:focus, a.<API key>.active:hover, button.<API key>.active, button.<API key>.active:focus, button.<API key>.active:hover { color: #fff; background-color: #3c763d; border-color: #3c763d } .<API key> { color: #31708f; background-color: #d9edf7 } a.<API key>, button.<API key> { color: #31708f } a.<API key> .<API key>, button.<API key> .<API key> { color: inherit } a.<API key>:focus, a.<API key>:hover, button.<API key>:focus, button.<API key>:hover { color: #31708f; background-color: #c4e3f3 } a.<API key>.active, a.<API key>.active:focus, a.<API key>.active:hover, button.<API key>.active, button.<API key>.active:focus, button.<API key>.active:hover { color: #fff; background-color: #31708f; border-color: #31708f } .<API key> { color: #8a6d3b; background-color: #fcf8e3 } a.<API key>, button.<API key> { color: #8a6d3b } a.<API key> .<API key>, button.<API key> .<API key> { color: inherit } a.<API key>:focus, a.<API key>:hover, button.<API key>:focus, button.<API key>:hover { color: #8a6d3b; background-color: #faf2cc } a.<API key>.active, a.<API key>.active:focus, a.<API key>.active:hover, button.<API key>.active, button.<API key>.active:focus, button.<API key>.active:hover { color: #fff; background-color: #8a6d3b; border-color: #8a6d3b } .<API key> { color: #a94442; background-color: #f2dede } a.<API key>, button.<API key> { color: #a94442 } a.<API key> .<API key>, button.<API key> .<API key> { color: inherit } a.<API key>:focus, a.<API key>:hover, button.<API key>:focus, button.<API key>:hover { color: #a94442; background-color: #ebcccc } a.<API key>.active, a.<API key>.active:focus, a.<API key>.active:hover, button.<API key>.active, button.<API key>.active:focus, button.<API key>.active:hover { color: #fff; background-color: #a94442; border-color: #a94442 } .<API key> { margin-top: 0; margin-bottom: 5px } .<API key> { margin-bottom: 0; line-height: 1.3 } .panel { margin-bottom: 20px; background-color: #fff; border: 1px solid transparent; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05); box-shadow: 0 1px 1px rgba(0, 0, 0, .05) } .panel-body { padding: 15px } .panel-heading { padding: 10px 15px; border-bottom: 1px solid transparent; <API key>: 3px; <API key>: 3px } .panel-heading>.dropdown .dropdown-toggle { color: inherit } .panel-title { margin-top: 0; margin-bottom: 0; font-size: 16px; color: inherit } .panel-title>.small, .panel-title>.small>a, .panel-title>a, .panel-title>small, .panel-title>small>a { color: inherit } .panel-footer { padding: 10px 15px; background-color: #f5f5f5; border-top: 1px solid #ddd; <API key>: 3px; <API key>: 3px } .panel>.list-group, .panel>.panel-collapse>.list-group { margin-bottom: 0 } .panel>.list-group .list-group-item, .panel>.panel-collapse>.list-group .list-group-item { border-width: 1px 0; border-radius: 0 } .panel>.list-group:first-child .list-group-item:first-child, .panel>.panel-collapse>.list-group:first-child .list-group-item:first-child { border-top: 0; <API key>: 3px; <API key>: 3px } .panel>.list-group:last-child .list-group-item:last-child, .panel>.panel-collapse>.list-group:last-child .list-group-item:last-child { border-bottom: 0; <API key>: 3px; <API key>: 3px } .panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child { <API key>: 0; <API key>: 0 } .panel-heading+.list-group .list-group-item:first-child { border-top-width: 0 } .list-group+.panel-footer { border-top-width: 0 } .panel>.panel-collapse>.table, .panel>.table, .panel>.table-responsive>.table { margin-bottom: 0 } .panel>.panel-collapse>.table caption, .panel>.table caption, .panel>.table-responsive>.table caption { padding-right: 15px; padding-left: 15px } .panel>.table-responsive:first-child>.table:first-child, .panel>.table:first-child { <API key>: 3px; <API key>: 3px } .panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child, .panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child, .panel>.table:first-child>tbody:first-child>tr:first-child, .panel>.table:first-child>thead:first-child>tr:first-child { <API key>: 3px; <API key>: 3px } .panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child, .panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child, .panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child, .panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child, .panel>.table:first-child>tbody:first-child>tr:first-child td:first-child, .panel>.table:first-child>tbody:first-child>tr:first-child th:first-child, .panel>.table:first-child>thead:first-child>tr:first-child td:first-child, .panel>.table:first-child>thead:first-child>tr:first-child th:first-child { <API key>: 3px } .panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child, .panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child, .panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child, .panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child, .panel>.table:first-child>tbody:first-child>tr:first-child td:last-child, .panel>.table:first-child>tbody:first-child>tr:first-child th:last-child, .panel>.table:first-child>thead:first-child>tr:first-child td:last-child, .panel>.table:first-child>thead:first-child>tr:first-child th:last-child { <API key>: 3px } .panel>.table-responsive:last-child>.table:last-child, .panel>.table:last-child { <API key>: 3px; <API key>: 3px } .panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child, .panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child, .panel>.table:last-child>tbody:last-child>tr:last-child, .panel>.table:last-child>tfoot:last-child>tr:last-child { <API key>: 3px; <API key>: 3px } .panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child, .panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child, .panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child, .panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child, .panel>.table:last-child>tbody:last-child>tr:last-child td:first-child, .panel>.table:last-child>tbody:last-child>tr:last-child th:first-child, .panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child, .panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child { <API key>: 3px } .panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child, .panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child, .panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child, .panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child, .panel>.table:last-child>tbody:last-child>tr:last-child td:last-child, .panel>.table:last-child>tbody:last-child>tr:last-child th:last-child, .panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child, .panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child { <API key>: 3px } .panel>.panel-body+.table, .panel>.panel-body+.table-responsive, .panel>.table+.panel-body, .panel>.table-responsive+.panel-body { border-top: 1px solid #ddd } .panel>.table>tbody:first-child>tr:first-child td, .panel>.table>tbody:first-child>tr:first-child th { border-top: 0 } .panel>.table-bordered, .panel>.table-responsive>.table-bordered { border: 0 } .panel>.table-bordered>tbody>tr>td:first-child, .panel>.table-bordered>tbody>tr>th:first-child, .panel>.table-bordered>tfoot>tr>td:first-child, .panel>.table-bordered>tfoot>tr>th:first-child, .panel>.table-bordered>thead>tr>td:first-child, .panel>.table-bordered>thead>tr>th:first-child, .panel>.table-responsive>.table-bordered>tbody>tr>td:first-child, .panel>.table-responsive>.table-bordered>tbody>tr>th:first-child, .panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child, .panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child, .panel>.table-responsive>.table-bordered>thead>tr>td:first-child, .panel>.table-responsive>.table-bordered>thead>tr>th:first-child { border-left: 0 } .panel>.table-bordered>tbody>tr>td:last-child, .panel>.table-bordered>tbody>tr>th:last-child, .panel>.table-bordered>tfoot>tr>td:last-child, .panel>.table-bordered>tfoot>tr>th:last-child, .panel>.table-bordered>thead>tr>td:last-child, .panel>.table-bordered>thead>tr>th:last-child, .panel>.table-responsive>.table-bordered>tbody>tr>td:last-child, .panel>.table-responsive>.table-bordered>tbody>tr>th:last-child, .panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child, .panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child, .panel>.table-responsive>.table-bordered>thead>tr>td:last-child, .panel>.table-responsive>.table-bordered>thead>tr>th:last-child { border-right: 0 } .panel>.table-bordered>tbody>tr:first-child>td, .panel>.table-bordered>tbody>tr:first-child>th, .panel>.table-bordered>thead>tr:first-child>td, .panel>.table-bordered>thead>tr:first-child>th, .panel>.table-responsive>.table-bordered>tbody>tr:first-child>td, .panel>.table-responsive>.table-bordered>tbody>tr:first-child>th, .panel>.table-responsive>.table-bordered>thead>tr:first-child>td, .panel>.table-responsive>.table-bordered>thead>tr:first-child>th { border-bottom: 0 } .panel>.table-bordered>tbody>tr:last-child>td, .panel>.table-bordered>tbody>tr:last-child>th, .panel>.table-bordered>tfoot>tr:last-child>td, .panel>.table-bordered>tfoot>tr:last-child>th, .panel>.table-responsive>.table-bordered>tbody>tr:last-child>td, .panel>.table-responsive>.table-bordered>tbody>tr:last-child>th, .panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td, .panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th { border-bottom: 0 } .panel>.table-responsive { margin-bottom: 0; border: 0 } .panel-group { margin-bottom: 20px } .panel-group .panel { margin-bottom: 0; border-radius: 4px } .panel-group .panel+.panel { margin-top: 5px } .panel-group .panel-heading { border-bottom: 0 } .panel-group .panel-heading+.panel-collapse>.list-group, .panel-group .panel-heading+.panel-collapse>.panel-body { border-top: 1px solid #ddd } .panel-group .panel-footer { border-top: 0 } .panel-group .panel-footer+.panel-collapse .panel-body { border-bottom: 1px solid #ddd } .panel-default { border-color: #ddd } .panel-default>.panel-heading { color: #333; background-color: #f5f5f5; border-color: #ddd } .panel-default>.panel-heading+.panel-collapse>.panel-body { border-top-color: #ddd } .panel-default>.panel-heading .badge { color: #f5f5f5; background-color: #333 } .panel-default>.panel-footer+.panel-collapse>.panel-body { border-bottom-color: #ddd } .panel-primary { border-color: #337ab7 } .panel-primary>.panel-heading { color: #fff; background-color: #337ab7; border-color: #337ab7 } .panel-primary>.panel-heading+.panel-collapse>.panel-body { border-top-color: #337ab7 } .panel-primary>.panel-heading .badge { color: #337ab7; background-color: #fff } .panel-primary>.panel-footer+.panel-collapse>.panel-body { border-bottom-color: #337ab7 } .panel-success { border-color: #d6e9c6 } .panel-success>.panel-heading { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6 } .panel-success>.panel-heading+.panel-collapse>.panel-body { border-top-color: #d6e9c6 } .panel-success>.panel-heading .badge { color: #dff0d8; background-color: #3c763d } .panel-success>.panel-footer+.panel-collapse>.panel-body { border-bottom-color: #d6e9c6 } .panel-info { border-color: #bce8f1 } .panel-info>.panel-heading { color: #31708f; background-color: #d9edf7; border-color: #bce8f1 } .panel-info>.panel-heading+.panel-collapse>.panel-body { border-top-color: #bce8f1 } .panel-info>.panel-heading .badge { color: #d9edf7; background-color: #31708f } .panel-info>.panel-footer+.panel-collapse>.panel-body { border-bottom-color: #bce8f1 } .panel-warning { border-color: #faebcc } .panel-warning>.panel-heading { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc } .panel-warning>.panel-heading+.panel-collapse>.panel-body { border-top-color: #faebcc } .panel-warning>.panel-heading .badge { color: #fcf8e3; background-color: #8a6d3b } .panel-warning>.panel-footer+.panel-collapse>.panel-body { border-bottom-color: #faebcc } .panel-danger { border-color: #ebccd1 } .panel-danger>.panel-heading { color: #a94442; background-color: #f2dede; border-color: #ebccd1 } .panel-danger>.panel-heading+.panel-collapse>.panel-body { border-top-color: #ebccd1 } .panel-danger>.panel-heading .badge { color: #f2dede; background-color: #a94442 } .panel-danger>.panel-footer+.panel-collapse>.panel-body { border-bottom-color: #ebccd1 } .embed-responsive { position: relative; display: block; height: 0; padding: 0; overflow: hidden } .embed-responsive .<API key>, .embed-responsive embed, .embed-responsive iframe, .embed-responsive object, .embed-responsive video { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0 } .<API key> { padding-bottom: 56.25% } .<API key> { padding-bottom: 75% } .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05) } .well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, .15) } .well-lg { padding: 24px; border-radius: 6px } .well-sm { padding: 9px; border-radius: 3px } .close { float: right; font-size: 21px; font-weight: 700; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; filter: alpha(opacity=20); opacity: .2 } .close:focus, .close:hover { color: #000; text-decoration: none; cursor: pointer; filter: alpha(opacity=50); opacity: .5 } button.close { -webkit-appearance: none; padding: 0; cursor: pointer; background: 0 0; border: 0 } .modal-open { overflow: hidden } .modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; display: none; overflow: hidden; -<API key>: touch; outline: 0 } .modal.fade .modal-dialog { -webkit-transition: -webkit-transform .3s ease-out; -o-transition: -o-transform .3s ease-out; transition: transform .3s ease-out; -webkit-transform: translate(0, -25%); -ms-transform: translate(0, -25%); -o-transform: translate(0, -25%); transform: translate(0, -25%) } .modal.in .modal-dialog { -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); -o-transform: translate(0, 0); transform: translate(0, 0) } .modal-open .modal { overflow-x: hidden; overflow-y: auto } .modal-dialog { position: relative; width: auto; margin: 10px } .modal-content { position: relative; background-color: #fff; -<API key>: padding-box; background-clip: padding-box; border: 1px solid #999; border: 1px solid rgba(0, 0, 0, .2); border-radius: 6px; outline: 0; -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5); box-shadow: 0 3px 9px rgba(0, 0, 0, .5) } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000 } .modal-backdrop.fade { filter: alpha(opacity=0); opacity: 0 } .modal-backdrop.in { filter: alpha(opacity=50); opacity: .5 } .modal-header { padding: 15px; border-bottom: 1px solid #e5e5e5 } .modal-header .close { margin-top: -2px } .modal-title { margin: 0; line-height: 1.42857143 } .modal-body { position: relative; padding: 15px } .modal-footer { padding: 15px; text-align: right; border-top: 1px solid #e5e5e5 } .modal-footer .btn+.btn { margin-bottom: 0; margin-left: 5px } .modal-footer .btn-group .btn+.btn { margin-left: -1px } .modal-footer .btn-block+.btn-block { margin-left: 0 } .<API key> { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll } @media (min-width:768px) { .modal-dialog { width: 600px; margin: 30px auto } .modal-content { -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5); box-shadow: 0 5px 15px rgba(0, 0, 0, .5) } .modal-sm { width: 300px } } @media (min-width:992px) { .modal-lg { width: 900px } } .tooltip { position: absolute; z-index: 1070; display: block; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px; font-style: normal; font-weight: 400; line-height: 1.42857143; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; letter-spacing: normal; word-break: normal; word-spacing: normal; word-wrap: normal; white-space: normal; filter: alpha(opacity=0); opacity: 0; line-break: auto } .tooltip.in { filter: alpha(opacity=90); opacity: .9 } .tooltip.top { padding: 5px 0; margin-top: -3px } .tooltip.right { padding: 0 5px; margin-left: 3px } .tooltip.bottom { padding: 5px 0; margin-top: 3px } .tooltip.left { padding: 0 5px; margin-left: -3px } .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #fff; text-align: center; background-color: #000; border-radius: 4px } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-width: 5px 5px 0; border-top-color: #000 } .tooltip.top-left .tooltip-arrow { right: 5px; bottom: 0; margin-bottom: -5px; border-width: 5px 5px 0; border-top-color: #000 } .tooltip.top-right .tooltip-arrow { bottom: 0; left: 5px; margin-bottom: -5px; border-width: 5px 5px 0; border-top-color: #000 } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-width: 5px 5px 5px 0; border-right-color: #000 } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-width: 5px 0 5px 5px; border-left-color: #000 } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-width: 0 5px 5px; border-bottom-color: #000 } .tooltip.bottom-left .tooltip-arrow { top: 0; right: 5px; margin-top: -5px; border-width: 0 5px 5px; border-bottom-color: #000 } .tooltip.bottom-right .tooltip-arrow { top: 0; left: 5px; margin-top: -5px; border-width: 0 5px 5px; border-bottom-color: #000 } .popover { position: absolute; top: 0; left: 0; z-index: 1060; display: none; max-width: 276px; padding: 1px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: 400; line-height: 1.42857143; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; letter-spacing: normal; word-break: normal; word-spacing: normal; word-wrap: normal; white-space: normal; background-color: #fff; -<API key>: padding-box; background-clip: padding-box; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, .2); border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2); box-shadow: 0 5px 10px rgba(0, 0, 0, .2); line-break: auto } .popover.top { margin-top: -10px } .popover.right { margin-left: 10px } .popover.bottom { margin-top: 10px } .popover.left { margin-left: -10px } .popover-title { padding: 8px 14px; margin: 0; font-size: 14px; background-color: #f7f7f7; border-bottom: 1px solid #ebebeb; border-radius: 5px 5px 0 0 } .popover-content { padding: 9px 14px } .popover>.arrow, .popover>.arrow:after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid } .popover>.arrow { border-width: 11px } .popover>.arrow:after { content: ""; border-width: 10px } .popover.top>.arrow { bottom: -11px; left: 50%; margin-left: -11px; border-top-color: #999; border-top-color: rgba(0, 0, 0, .25); border-bottom-width: 0 } .popover.top>.arrow:after { bottom: 1px; margin-left: -10px; content: " "; border-top-color: #fff; border-bottom-width: 0 } .popover.right>.arrow { top: 50%; left: -11px; margin-top: -11px; border-right-color: #999; border-right-color: rgba(0, 0, 0, .25); border-left-width: 0 } .popover.right>.arrow:after { bottom: -10px; left: 1px; content: " "; border-right-color: #fff; border-left-width: 0 } .popover.bottom>.arrow { top: -11px; left: 50%; margin-left: -11px; border-top-width: 0; border-bottom-color: #999; border-bottom-color: rgba(0, 0, 0, .25) } .popover.bottom>.arrow:after { top: 1px; margin-left: -10px; content: " "; border-top-width: 0; border-bottom-color: #fff } .popover.left>.arrow { top: 50%; right: -11px; margin-top: -11px; border-right-width: 0; border-left-color: #999; border-left-color: rgba(0, 0, 0, .25) } .popover.left>.arrow:after { right: 1px; bottom: -10px; content: " "; border-right-width: 0; border-left-color: #fff } .carousel { position: relative } .carousel-inner { position: relative; width: 100%; overflow: hidden } .carousel-inner>.item { position: relative; display: none; -webkit-transition: .6s ease-in-out left; -o-transition: .6s ease-in-out left; transition: .6s ease-in-out left } .carousel-inner>.item>a>img, .carousel-inner>.item>img { line-height: 1 } @media all and (transform-3d), (-webkit-transform-3d) { .carousel-inner>.item { -webkit-transition: -webkit-transform .6s ease-in-out; -o-transition: -o-transform .6s ease-in-out; transition: transform .6s ease-in-out; -<API key>: hidden; backface-visibility: hidden; -webkit-perspective: 1000px; perspective: 1000px } .carousel-inner>.item.active.right, .carousel-inner>.item.next { left: 0; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0) } .carousel-inner>.item.active.left, .carousel-inner>.item.prev { left: 0; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0) } .carousel-inner>.item.active, .carousel-inner>.item.next.left, .carousel-inner>.item.prev.right { left: 0; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0) } } .carousel-inner>.active, .carousel-inner>.next, .carousel-inner>.prev { display: block } .carousel-inner>.active { left: 0 } .carousel-inner>.next, .carousel-inner>.prev { position: absolute; top: 0; width: 100% } .carousel-inner>.next { left: 100% } .carousel-inner>.prev { left: -100% } .carousel-inner>.next.left, .carousel-inner>.prev.right { left: 0 } .carousel-inner>.active.left { left: -100% } .carousel-inner>.active.right { left: 100% } .carousel-control { position: absolute; top: 0; bottom: 0; left: 0; width: 15%; font-size: 20px; color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); background-color: rgba(0, 0, 0, 0); filter: alpha(opacity=50); opacity: .5 } .carousel-control.left { background-image: -<API key>(left, rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, .0001) 100%); background-image: -o-linear-gradient(left, rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, .0001) 100%); background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .5)), to(rgba(0, 0, 0, .0001))); background-image: linear-gradient(to right, rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, .0001) 100%); filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); background-repeat: repeat-x } .carousel-control.right { right: 0; left: auto; background-image: -<API key>(left, rgba(0, 0, 0, .0001) 0, rgba(0, 0, 0, .5) 100%); background-image: -o-linear-gradient(left, rgba(0, 0, 0, .0001) 0, rgba(0, 0, 0, .5) 100%); background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .0001)), to(rgba(0, 0, 0, .5))); background-image: linear-gradient(to right, rgba(0, 0, 0, .0001) 0, rgba(0, 0, 0, .5) 100%); filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); background-repeat: repeat-x } .carousel-control:focus, .carousel-control:hover { color: #fff; text-decoration: none; filter: alpha(opacity=90); outline: 0; opacity: .9 } .carousel-control .<API key>, .carousel-control .<API key>, .carousel-control .icon-next, .carousel-control .icon-prev { position: absolute; top: 50%; z-index: 5; display: inline-block; margin-top: -10px } .carousel-control .<API key>, .carousel-control .icon-prev { left: 50%; margin-left: -10px } .carousel-control .<API key>, .carousel-control .icon-next { right: 50%; margin-right: -10px } .carousel-control .icon-next, .carousel-control .icon-prev { width: 20px; height: 20px; font-family: serif; line-height: 1 } .carousel-control .icon-prev:before { content: '\2039' } .carousel-control .icon-next:before { content: '\203a' } .carousel-indicators { position: absolute; bottom: 10px; left: 50%; z-index: 15; width: 60%; padding-left: 0; margin-left: -30%; text-align: center; list-style: none } .carousel-indicators li { display: inline-block; width: 10px; height: 10px; margin: 1px; text-indent: -999px; cursor: pointer; background-color: #000\9; background-color: rgba(0, 0, 0, 0); border: 1px solid #fff; border-radius: 10px } .carousel-indicators .active { width: 12px; height: 12px; margin: 0; background-color: #fff } .carousel-caption { position: absolute; right: 15%; bottom: 20px; left: 15%; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .6) } .carousel-caption .btn { text-shadow: none } @media screen and (min-width:768px) { .carousel-control .<API key>, .carousel-control .<API key>, .carousel-control .icon-next, .carousel-control .icon-prev { width: 30px; height: 30px; margin-top: -10px; font-size: 30px } .carousel-control .<API key>, .carousel-control .icon-prev { margin-left: -10px } .carousel-control .<API key>, .carousel-control .icon-next { margin-right: -10px } .carousel-caption { right: 20%; left: 20%; padding-bottom: 30px } .carousel-indicators { bottom: 20px } } .btn-group-vertical>.btn-group:after, .btn-group-vertical>.btn-group:before, .btn-toolbar:after, .btn-toolbar:before, .clearfix:after, .clearfix:before, .container-fluid:after, .container-fluid:before, .container:after, .container:before, .dl-horizontal dd:after, .dl-horizontal dd:before, .form-horizontal .form-group:after, .form-horizontal .form-group:before, .modal-footer:after, .modal-footer:before, .modal-header:after, .modal-header:before, .nav:after, .nav:before, .navbar-collapse:after, .navbar-collapse:before, .navbar-header:after, .navbar-header:before, .navbar:after, .navbar:before, .pager:after, .pager:before, .panel-body:after, .panel-body:before, .row:after, .row:before { display: table; content: " " } .btn-group-vertical>.btn-group:after, .btn-toolbar:after, .clearfix:after, .container-fluid:after, .container:after, .dl-horizontal dd:after, .form-horizontal .form-group:after, .modal-footer:after, .modal-header:after, .nav:after, .navbar-collapse:after, .navbar-header:after, .navbar:after, .pager:after, .panel-body:after, .row:after { clear: both } .center-block { display: block; margin-right: auto; margin-left: auto } .pull-right { float: right!important } .pull-left { float: left!important } .hide { display: none!important } .show { display: block!important } .invisible { visibility: hidden } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0 } .hidden { display: none!important } .affix { position: fixed } @-ms-viewport { width: device-width } .visible-lg, .visible-md, .visible-sm, .visible-xs { display: none!important } .visible-lg-block, .visible-lg-inline, .<API key>, .visible-md-block, .visible-md-inline, .<API key>, .visible-sm-block, .visible-sm-inline, .<API key>, .visible-xs-block, .visible-xs-inline, .<API key> { display: none!important } @media (max-width:767px) { .visible-xs { display: block!important } table.visible-xs { display: table!important } tr.visible-xs { display: table-row!important } td.visible-xs, th.visible-xs { display: table-cell!important } } @media (max-width:767px) { .visible-xs-block { display: block!important } } @media (max-width:767px) { .visible-xs-inline { display: inline!important } } @media (max-width:767px) { .<API key> { display: inline-block!important } } @media (min-width:768px) and (max-width:991px) { .visible-sm { display: block!important } table.visible-sm { display: table!important } tr.visible-sm { display: table-row!important } td.visible-sm, th.visible-sm { display: table-cell!important } } @media (min-width:768px) and (max-width:991px) { .visible-sm-block { display: block!important } } @media (min-width:768px) and (max-width:991px) { .visible-sm-inline { display: inline!important } } @media (min-width:768px) and (max-width:991px) { .<API key> { display: inline-block!important } } @media (min-width:992px) and (max-width:1199px) { .visible-md { display: block!important } table.visible-md { display: table!important } tr.visible-md { display: table-row!important } td.visible-md, th.visible-md { display: table-cell!important } } @media (min-width:992px) and (max-width:1199px) { .visible-md-block { display: block!important } } @media (min-width:992px) and (max-width:1199px) { .visible-md-inline { display: inline!important } } @media (min-width:992px) and (max-width:1199px) { .<API key> { display: inline-block!important } } @media (min-width:1200px) { .visible-lg { display: block!important } table.visible-lg { display: table!important } tr.visible-lg { display: table-row!important } td.visible-lg, th.visible-lg { display: table-cell!important } } @media (min-width:1200px) { .visible-lg-block { display: block!important } } @media (min-width:1200px) { .visible-lg-inline { display: inline!important } } @media (min-width:1200px) { .<API key> { display: inline-block!important } } @media (max-width:767px) { .hidden-xs { display: none!important } } @media (min-width:768px) and (max-width:991px) { .hidden-sm { display: none!important } } @media (min-width:992px) and (max-width:1199px) { .hidden-md { display: none!important } } @media (min-width:1200px) { .hidden-lg { display: none!important } } .visible-print { display: none!important } @media print { .visible-print { display: block!important } table.visible-print { display: table!important } tr.visible-print { display: table-row!important } td.visible-print, th.visible-print { display: table-cell!important } } .visible-print-block { display: none!important } @media print { .visible-print-block { display: block!important } } .<API key> { display: none!important } @media print { .<API key> { display: inline!important } } .<API key> { display: none!important } @media print { .<API key> { display: inline-block!important } } @media print { .hidden-print { display: none!important } } /*# sourceMappingURL=bootstrap.min.css.map */
// Generato il: 2014.10.23 alle 11:27:04 AM CEST package org.cumulus.certificate.model; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlType; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "HistoryStateType") public class HistoryStateType { @XmlAttribute(name = "stateId", required = true) protected String stateId; @XmlAttribute(name = "refersToStateId", required = true) protected String refersToStateId; public String getStateId() { return stateId; } public void setStateId(String value) { this.stateId = value; } public String getRefersToStateId() { return refersToStateId; } public void setRefersToStateId(String value) { this.refersToStateId = value; } }
// Greenplum Database // @filename: // CMDIdCast.cpp // @doc: // Implementation of mdids for cast functions #include "naucrates/md/CMDIdCast.h" #include "naucrates/dxl/xml/CXMLSerializer.h" using namespace gpos; using namespace gpmd; // @function: // CMDIdCast::CMDIdCast // @doc: // Ctor CMDIdCast::CMDIdCast ( CMDIdGPDB *pmdidSrc, CMDIdGPDB *pmdidDest ) : m_pmdidSrc(pmdidSrc), m_pmdidDest(pmdidDest), m_str(m_wszBuffer, GPOS_ARRAY_SIZE(m_wszBuffer)) { GPOS_ASSERT(pmdidSrc->FValid()); GPOS_ASSERT(pmdidDest->FValid()); // serialize mdid into static string Serialize(); } // @function: // CMDIdCast::~CMDIdCast // @doc: // Dtor CMDIdCast::~CMDIdCast() { m_pmdidSrc->Release(); m_pmdidDest->Release(); } // @function: // CMDIdCast::Serialize // @doc: // Serialize mdid into static string void CMDIdCast::Serialize() { // serialize mdid as SystemType.mdidSrc.mdidDest m_str.AppendFormat ( GPOS_WSZ_LIT("%d.%d.%d.%d;%d.%d.%d"), Emdidt(), m_pmdidSrc->OidObjectId(), m_pmdidSrc->UlVersionMajor(), m_pmdidSrc->UlVersionMinor(), m_pmdidDest->OidObjectId(), m_pmdidDest->UlVersionMajor(), m_pmdidDest->UlVersionMinor() ); } // @function: // CMDIdCast::Wsz // @doc: // Returns the string representation of the mdid const WCHAR * CMDIdCast::Wsz() const { return m_str.Wsz(); } // @function: // CMDIdCast::PmdidSrc // @doc: // Returns the source type id IMDId * CMDIdCast::PmdidSrc() const { return m_pmdidSrc; } // @function: // CMDIdCast::PmdidDest // @doc: // Returns the destination type id IMDId * CMDIdCast::PmdidDest() const { return m_pmdidDest; } // @function: // CMDIdCast::FEquals // @doc: // Checks if the mdids are equal BOOL CMDIdCast::FEquals ( const IMDId *pmdid ) const { if (NULL == pmdid || EmdidCastFunc != pmdid->Emdidt()) { return false; } const CMDIdCast *pmdidCastFunc = CMDIdCast::PmdidConvert(pmdid); return m_pmdidSrc->FEquals(pmdidCastFunc->PmdidSrc()) && m_pmdidDest->FEquals(pmdidCastFunc->PmdidDest()); } // @function: // CMDIdCast::Serialize // @doc: // Serializes the mdid as the value of the given attribute void CMDIdCast::Serialize ( CXMLSerializer * pxmlser, const CWStringConst *pstrAttribute ) const { pxmlser->AddAttribute(pstrAttribute, &m_str); } // @function: // CMDIdCast::OsPrint // @doc: // Debug print of the id in the provided stream IOstream & CMDIdCast::OsPrint ( IOstream &os ) const { os << "(" << m_str.Wsz() << ")"; return os; } // EOF
package sdk.chat.demo.examples.api; import io.reactivex.functions.Consumer; import sdk.guru.common.DisposableMap; public class BaseExample implements Consumer<Throwable> { // Add the disposables to a map so you can dispose of them all at one time protected DisposableMap dm = new DisposableMap(); @Override public void accept(Throwable throwable) throws Exception { // Handle exception } }
package net.disy.eenvplus.tfes.core.api.query; // NOT_PUBLISHED public interface ISuggestionQuery extends ISourceQuery { String getKeyword(); }
// Module : <API key>.h // Created : 16.07.2004 // Modified : 16.07.2004 // Author : Dmitriy Iassenev // Description : Script value container #pragma once #include "object_broker.h" #ifdef <API key> #include "script_value.h" #endif IC <API key>::~<API key>() { clear(); } IC void <API key>::add(CScriptValue* new_value) { #ifdef <API key> CScriptValue* value = 0; xr_vector<CScriptValue*>::const_iterator I = m_values.begin(); xr_vector<CScriptValue*>::const_iterator E = m_values.end(); for (; I != E; ++I) if (!xr_strcmp((*I)->name(), new_value->name())) { value = *I; break; } if (value) return; m_values.push_back(new_value); #endif } IC void <API key>::assign() { #ifdef <API key> xr_vector<CScriptValue*>::iterator I = m_values.begin(); xr_vector<CScriptValue*>::iterator E = m_values.end(); for (; I != E; ++I) (*I)->assign(); #endif } IC void <API key>::clear() { delete_data(m_values); }
package com.jwetherell.algorithms.data_structures.interfaces; public interface ITree<T> { /** * Add value to the tree. Tree can contain multiple equal values. * * @param value to add to the tree. * @return True if successfully added to tree. */ public boolean add(T value); /** * Remove first occurrence of value in the tree. * * @param value to remove from the tree. * @return T value removed from tree. */ public T remove(T value); /** * Clear the entire stack. */ public void clear(); /** * Does the tree contain the value. * * @param value to locate in the tree. * @return True if tree contains value. */ public boolean contains(T value); /** * Get number of nodes in the tree. * * @return Number of nodes in the tree. */ public int size(); /** * Validate the tree according to the invariants. * * @return True if the tree is valid. */ public boolean validate(); /** * Get Tree as a Java compatible Collection * * @return Java compatible Collection */ public java.util.Collection<T> toCollection(); }
package org.nd4j.linalg.indexing; import com.google.common.base.Function; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.nd4j.linalg.BaseNd4jTest; import org.nd4j.linalg.api.ndarray.INDArray; import org.nd4j.linalg.api.ops.impl.accum.MatchCondition; import org.nd4j.linalg.api.ops.impl.transforms.comparison.CompareAndReplace; import org.nd4j.linalg.api.ops.impl.transforms.comparison.CompareAndSet; import org.nd4j.linalg.factory.Nd4j; import org.nd4j.linalg.factory.Nd4jBackend; import org.nd4j.linalg.indexing.conditions.AbsValueGreaterThan; import org.nd4j.linalg.indexing.conditions.Condition; import org.nd4j.linalg.indexing.conditions.Conditions; import org.nd4j.linalg.indexing.functions.Value; import java.util.Arrays; import static org.junit.Assert.*; /** * @author raver119@gmail.com */ @RunWith(Parameterized.class) public class BooleanIndexingTest extends BaseNd4jTest { public BooleanIndexingTest(Nd4jBackend backend) { super(backend); } /* 1D array checks */ @Test public void testAnd1() throws Exception { INDArray array = Nd4j.create(new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f}); assertTrue(BooleanIndexing.and(array, Conditions.greaterThan(0.5f))); } @Test public void testAnd2() throws Exception { INDArray array = Nd4j.create(new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f}); assertTrue(BooleanIndexing.and(array, Conditions.lessThan(6.0f))); } @Test public void testAnd3() throws Exception { INDArray array = Nd4j.create(new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f}); assertFalse(BooleanIndexing.and(array, Conditions.lessThan(5.0f))); } @Test public void testAnd4() throws Exception { INDArray array = Nd4j.create(new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f}); assertFalse(BooleanIndexing.and(array, Conditions.greaterThan(4.0f))); } @Test public void testAnd5() throws Exception { INDArray array = Nd4j.create(new float[] {1e-5f, 1e-5f, 1e-5f, 1e-5f, 1e-5f}); assertTrue(BooleanIndexing.and(array, Conditions.greaterThanOrEqual(1e-5f))); } @Test public void testAnd6() throws Exception { INDArray array = Nd4j.create(new float[] {1e-5f, 1e-5f, 1e-5f, 1e-5f, 1e-5f}); assertFalse(BooleanIndexing.and(array, Conditions.lessThan(1e-5f))); } @Test public void testAnd7() throws Exception { INDArray array = Nd4j.create(new float[] {1e-5f, 1e-5f, 1e-5f, 1e-5f, 1e-5f}); assertTrue(BooleanIndexing.and(array, Conditions.equals(1e-5f))); } @Test public void testOr1() throws Exception { INDArray array = Nd4j.create(new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f}); assertTrue(BooleanIndexing.or(array, Conditions.greaterThan(3.0f))); } @Test public void testOr2() throws Exception { INDArray array = Nd4j.create(new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f}); assertTrue(BooleanIndexing.or(array, Conditions.lessThan(3.0f))); } @Test public void testOr3() throws Exception { INDArray array = Nd4j.create(new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f}); assertFalse(BooleanIndexing.or(array, Conditions.greaterThan(6.0f))); } @Test public void testApplyWhere1() throws Exception { INDArray array = Nd4j.create(new float[] {-1f, -1f, -1f, -1f, -1f}); BooleanIndexing.applyWhere(array, Conditions.lessThan(Nd4j.EPS_THRESHOLD), new Value(Nd4j.EPS_THRESHOLD)); //System.out.println("Array contains: " + Arrays.toString(array.data().asFloat())); assertTrue(BooleanIndexing.and(array, Conditions.equals(Nd4j.EPS_THRESHOLD))); } @Test public void testApplyWhere2() throws Exception { INDArray array = Nd4j.create(new float[] {0f, 0f, 0f, 0f, 0f}); BooleanIndexing.applyWhere(array, Conditions.lessThan(1.0f), new Value(1.0f)); assertTrue(BooleanIndexing.and(array, Conditions.equals(1.0f))); } @Test public void testApplyWhere3() throws Exception { INDArray array = Nd4j.create(new float[] {1e-18f, 1e-18f, 1e-18f, 1e-18f, 1e-18f}); BooleanIndexing.applyWhere(array, Conditions.lessThan(1e-12f), new Value(1e-12f)); //System.out.println("Array contains: " + Arrays.toString(array.data().asFloat())); assertTrue(BooleanIndexing.and(array, Conditions.equals(1e-12f))); } @Test public void testApplyWhere4() throws Exception { INDArray array = Nd4j.create(new float[] {1e-18f, Float.NaN, 1e-18f, 1e-18f, 1e-18f}); BooleanIndexing.applyWhere(array, Conditions.lessThan(1e-12f), new Value(1e-12f)); //System.out.println("Array contains: " + Arrays.toString(array.data().asFloat())); BooleanIndexing.applyWhere(array, Conditions.isNan(), new Value(1e-16f)); System.out.println("Array contains: " + Arrays.toString(array.data().asFloat())); assertFalse(BooleanIndexing.or(array, Conditions.isNan())); assertTrue(BooleanIndexing.or(array, Conditions.equals(1e-12f))); assertTrue(BooleanIndexing.or(array, Conditions.equals(1e-16f))); } /* 2D array checks */ @Test public void test2dAnd1() throws Exception { INDArray array = Nd4j.zeros(10, 10); assertTrue(BooleanIndexing.and(array, Conditions.equals(0f))); } @Test public void test2dAnd2() throws Exception { INDArray array = Nd4j.zeros(10, 10); array.slice(4).putScalar(2, 1e-5f); System.out.println(array); assertFalse(BooleanIndexing.and(array, Conditions.equals(0f))); } @Test public void test2dAnd3() throws Exception { INDArray array = Nd4j.zeros(10, 10); array.slice(4).putScalar(2, 1e-5f); assertFalse(BooleanIndexing.and(array, Conditions.greaterThan(0f))); } @Test public void test2dAnd4() throws Exception { INDArray array = Nd4j.zeros(10, 10); array.slice(4).putScalar(2, 1e-5f); assertTrue(BooleanIndexing.or(array, Conditions.greaterThan(1e-6f))); } @Test public void test2dApplyWhere1() throws Exception { INDArray array = Nd4j.ones(4, 4); array.slice(3).putScalar(2, 1e-5f); //System.out.println("Array before: " + Arrays.toString(array.data().asFloat())); BooleanIndexing.applyWhere(array, Conditions.lessThan(1e-4f), new Value(1e-12f)); //System.out.println("Array after 1: " + Arrays.toString(array.data().asFloat())); assertTrue(BooleanIndexing.or(array, Conditions.equals(1e-12f))); assertTrue(BooleanIndexing.or(array, Conditions.equals(1.0f))); assertFalse(BooleanIndexing.and(array, Conditions.equals(1e-12f))); } /** * This test fails, because it highlights current mechanics on SpecifiedIndex stuff. * Internally there's * * @throws Exception */ @Test public void testSliceAssign1() throws Exception { INDArray array = Nd4j.zeros(4, 4); INDArray patch = Nd4j.create(new float[] {1e-5f, 1e-5f, 1e-5f}); INDArray slice = array.slice(1); int[] idx = new int[] {0, 1, 3}; INDArrayIndex[] range = new INDArrayIndex[] {new SpecifiedIndex(idx)}; INDArray subarray = slice.get(range); System.out.println("Subarray: " + Arrays.toString(subarray.data().asFloat()) + " isView: " + subarray.isView()); slice.put(range, patch); System.out.println("Array after being patched: " + Arrays.toString(array.data().asFloat())); assertFalse(BooleanIndexing.and(array, Conditions.equals(0f))); } @Test public void <API key>() throws Exception { INDArray array1 = Nd4j.create(new double[] {1, 2, 3, 4, 5, 6, 7}); INDArray array2 = Nd4j.create(new double[] {7, 6, 5, 4, 3, 2, 1}); INDArray comp = Nd4j.create(new double[] {1, 2, 3, 4, 3, 2, 1}); BooleanIndexing.replaceWhere(array1, array2, Conditions.greaterThan(4)); assertEquals(comp, array1); } @Test public void testCaSTransform1() throws Exception { INDArray array = Nd4j.create(new double[] {1, 2, 0, 4, 5}); INDArray comp = Nd4j.create(new double[] {1, 2, 3, 4, 5}); Nd4j.getExecutioner().exec(new CompareAndSet(array, 3, Conditions.equals(0))); assertEquals(comp, array); } @Test public void testCaSTransform2() throws Exception { INDArray array = Nd4j.create(new double[] {1, 2, 0, 4, 5}); INDArray comp = Nd4j.create(new double[] {3, 2, 3, 4, 5}); Nd4j.getExecutioner().exec(new CompareAndSet(array, 3.0, Conditions.lessThan(2))); assertEquals(comp, array); } @Test public void <API key>() throws Exception { INDArray array = Nd4j.create(new double[] {1, 2, 0, 4, 5}); INDArray comp = Nd4j.create(new double[] {1, 2, 3, 4, 5}); Nd4j.getExecutioner().exec(new CompareAndSet(array, comp, Conditions.lessThan(5))); assertEquals(comp, array); } @Test public void <API key>() throws Exception { INDArray array = Nd4j.create(new double[] {1, 2, 0, 4, 5}); INDArray comp = Nd4j.create(new double[] {1, 2, 3, 4, 5}); Nd4j.getExecutioner().exec(new CompareAndReplace(array, comp, Conditions.lessThan(1))); assertEquals(comp, array); } @Test public void <API key>() throws Exception { INDArray x = Nd4j.create(new double[] {1, 2, 0, 4, 5}); INDArray y = Nd4j.create(new double[] {2, 4, 3, 0, 5}); INDArray comp = Nd4j.create(new double[] {2, 4, 3, 4, 5}); Nd4j.getExecutioner().exec(new CompareAndSet(x, y, Conditions.epsNotEquals(0.0))); assertEquals(comp, x); } @Test public void <API key>() throws Exception { INDArray x = Nd4j.create(new double[] {1, 2, 0, 4, 5}); INDArray y = Nd4j.create(new double[] {2, 4, 3, 4, 5}); INDArray comp = Nd4j.create(new double[] {2, 4, 0, 4, 5}); Nd4j.getExecutioner().exec(new CompareAndReplace(x, y, Conditions.epsNotEquals(0.0))); assertEquals(comp, x); } @Test public void <API key>() throws Exception { INDArray x = Nd4j.create(new double[] {1, 2, 0, 4, 5}); INDArray y = Nd4j.create(new double[] {2, 4, 3, 4, 5}); INDArray comp = Nd4j.create(new double[] {2, 4, 3, 4, 5}); Nd4j.getExecutioner().exec(new CompareAndReplace(x, y, Conditions.lessThan(4))); assertEquals(comp, x); } @Test public void <API key>() throws Exception { INDArray x = Nd4j.create(new double[] {1, 2, 0, 4, 5}); INDArray y = Nd4j.create(new double[] {2, 4, 3, 4, 5}); INDArray comp = Nd4j.create(new double[] {2, 2, 3, 4, 5}); Nd4j.getExecutioner().exec(new CompareAndReplace(x, y, Conditions.lessThan(2))); assertEquals(comp, x); } @Test public void <API key>() throws Exception { INDArray array = Nd4j.create(new double[] {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}); int val = (int) Nd4j.getExecutioner().exec(new MatchCondition(array, Conditions.lessThan(5)), Integer.MAX_VALUE) .getDouble(0); assertEquals(5, val); } @Test public void <API key>() throws Exception { INDArray array = Nd4j.create(new double[] {0, 1, 2, 3, Double.NaN, 5, 6, 7, 8, 9}); int val = (int) Nd4j.getExecutioner().exec(new MatchCondition(array, Conditions.isNan()), Integer.MAX_VALUE) .getDouble(0); assertEquals(1, val); } @Test public void <API key>() throws Exception { INDArray array = Nd4j.create(new double[] {0, 1, 2, 3, Double.NEGATIVE_INFINITY, 5, 6, 7, 8, 9}); int val = (int) Nd4j.getExecutioner() .exec(new MatchCondition(array, Conditions.isInfinite()), Integer.MAX_VALUE).getDouble(0); assertEquals(1, val); } @Test public void <API key>() { final double threshold = 2; Condition absValueCondition = new AbsValueGreaterThan(threshold); Function<Number, Number> clipFn = new Function<Number, Number>() { @Override public Number apply(Number number) { System.out.println("Number: " + number.doubleValue()); return (number.doubleValue() > threshold ? threshold : -threshold); } }; Nd4j.getRandom().setSeed(12345); INDArray orig = Nd4j.rand(1, 20).muli(6).subi(3); //Random numbers: -3 to 3 INDArray exp = orig.dup(); INDArray after = orig.dup(); for (int i = 0; i < exp.length(); i++) { double d = exp.getDouble(i); if (d > threshold) { exp.putScalar(i, threshold); } else if (d < -threshold) { exp.putScalar(i, -threshold); } } BooleanIndexing.applyWhere(after, absValueCondition, clipFn); System.out.println(orig); System.out.println(exp); System.out.println(after); assertEquals(exp, after); } @Test public void <API key>() throws Exception { INDArray array = Nd4j.ones(3, 10); array.getRow(2).assign(0.0); boolean result[] = BooleanIndexing.and(array, Conditions.equals(0.0), 1); boolean comp[] = new boolean[] {false, false, true}; System.out.println("Result: " + Arrays.toString(result)); assertArrayEquals(comp, result); } @Test public void <API key>() throws Exception { INDArray array = Nd4j.ones(3, 10); array.getRow(2).assign(0.0).putScalar(0, 1.0); System.out.println("Array: " + array); boolean result[] = BooleanIndexing.or(array, Conditions.lessThan(0.9), 1); boolean comp[] = new boolean[] {false, false, true}; System.out.println("Result: " + Arrays.toString(result)); assertArrayEquals(comp, result); } @Test public void <API key>() throws Exception { INDArray array = Nd4j.ones(3, 10); array.getRow(2).assign(0.0).putScalar(0, 1.0); boolean result[] = BooleanIndexing.and(array, Conditions.lessThan(0.0), 1); boolean comp[] = new boolean[] {false, false, false}; System.out.println("Result: " + Arrays.toString(result)); assertArrayEquals(comp, result); } @Test public void <API key>() { INDArray arr = Nd4j.linspace(-2, 2, 5); INDArray ones = Nd4j.ones(5); INDArray exp = Nd4j.create(new double[] {1, 1, 0, 1, 1}); Nd4j.getExecutioner().exec(new CompareAndSet(ones, arr, ones, Conditions.equals(0.0))); assertEquals(exp, ones); } @Test public void testFirstIndex1() { INDArray arr = Nd4j.create(new double[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}); INDArray result = BooleanIndexing.firstIndex(arr, Conditions.greaterThanOrEqual(3)); assertEquals(2, result.getDouble(0), 0.0); } @Test public void testFirstIndex2() { INDArray arr = Nd4j.create(new double[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}); INDArray result = BooleanIndexing.firstIndex(arr, Conditions.lessThan(3)); assertEquals(0, result.getDouble(0), 0.0); } @Test public void testLastIndex1() { INDArray arr = Nd4j.create(new double[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}); INDArray result = BooleanIndexing.lastIndex(arr, Conditions.greaterThanOrEqual(3)); assertEquals(8, result.getDouble(0), 0.0); } @Test public void testFirstIndex2D() { INDArray arr = Nd4j.create(new double[] {1, 2, 3, 0, 1, 3, 7, 8, 9}).reshape('c', 3, 3); INDArray result = BooleanIndexing.firstIndex(arr, Conditions.greaterThanOrEqual(2), 1); INDArray exp = Nd4j.create(new double[] {1, 2, 0}); assertEquals(exp, result); } @Test public void testLastIndex2D() { INDArray arr = Nd4j.create(new double[] {1, 2, 3, 0, 1, 3, 7, 8, 0}).reshape('c', 3, 3); INDArray result = BooleanIndexing.lastIndex(arr, Conditions.greaterThanOrEqual(2), 1); INDArray exp = Nd4j.create(new double[] {2, 2, 1}); assertEquals(exp, result); } @Test public void testEpsEquals1() throws Exception { INDArray array = Nd4j.create(new double[]{-1, -1, -1e-8, 1e-8, 1, 1}); MatchCondition condition = new MatchCondition(array, Conditions.epsEquals(0.0)); int numZeroes = Nd4j.getExecutioner().exec(condition, Integer.MAX_VALUE).getInt(0); assertEquals(2, numZeroes); } @Override public char ordering() { return 'c'; } }
package com.xiaojinzi.component.error; public class <API key> extends RuntimeException { public <API key>() { } public <API key>(String message) { super(message); } public <API key>(String message, Throwable cause) { super(message, cause); } public <API key>(Throwable cause) { super(cause); } }
#/bin/bash set -x #wget --user linzhbj@cn.ibm.com --password New=1baby --<API key> -c -r -np -k -L -p \ wget -c -r -np -k -L -p \ http://rchgsa.ibm.com/projects/e/emsol/ccs/build/driver/osee-liberty/rhel7.1/openstack/latest-bld/
// file at the top-level directory of this distribution and at // option. This file may not be copied, modified, or distributed // except according to those terms. //! Conversion from AST representation of types to the ty.rs //! representation. The main routine here is `ast_ty_to_ty()`: each use //! is parameterized by an instance of `AstConv` and a `RegionScope`. //! The parameterization of `ast_ty_to_ty()` is because it behaves //! somewhat differently during the collect and check phases, //! particularly with respect to looking up the types of top-level //! items. In the collect phase, the crate context is used as the //! `AstConv` instance; in this phase, the `<API key>()` //! function triggers a recursive call to `type_scheme_of_item()` //! (note that `ast_ty_to_ty()` will detect recursive types and report //! an error). In the check phase, when the FnCtxt is used as the //! `AstConv`, `<API key>()` just looks up the item type in //! `tcx.tcache` (using `ty::lookup_item_type`). //! The `RegionScope` trait controls what happens when the user does //! not specify a region in some location where a region is required //! (e.g., if the user writes `&Foo` as a type rather than `&'a Foo`). //! See the `rscope` module for more details. //! Unlike the `AstConv` trait, the region scope can change as we descend //! the type. This is to accommodate the fact that (a) fn types are binding //! scopes and (b) the default region may change. To understand case (a), //! consider something like: //! type foo = { x: &a.int, y: |&a.int| } //! The type of `x` is an error because there is no region `a` in scope. //! In the type of `y`, however, region `a` is considered a bound region //! as it does not already appear in scope. //! Case (b) says that if you have a type: //! type foo<'a> = ...; //! type bar = fn(&foo, &a.foo) //! The fully expanded version of type bar is: //! type bar = fn(&'foo &, &a.foo<'a>) //! Note that the self region for the `foo` defaulted to `&` in the first //! case but `&a` in the second. Basically, defaults that appear inside //! an rptr (`&r.T`) use the region `r` that appears in the rptr. use middle::astconv_util::{prim_ty_to_ty, check_path_args, NO_TPS, NO_REGIONS}; use middle::const_eval; use middle::def; use middle::resolve_lifetime as rl; use middle::privacy::{AllPublic, LastMod}; use middle::subst::{FnSpace, TypeSpace, SelfSpace, Subst, Substs}; use middle::traits; use middle::ty::{self, RegionEscape, Ty}; use rscope::{self, UnelidableRscope, RegionScope, ElidableRscope, ExplicitRscope, <API key>, ShiftedRscope, BindingRscope}; use util::common::{ErrorReported, FN_OUTPUT_NAME}; use util::nodemap::FnvHashSet; use util::ppaux::{self, Repr, UserString}; use std::iter::repeat; use std::rc::Rc; use std::slice; use syntax::{abi, ast, ast_util}; use syntax::codemap::Span; use syntax::parse::token; use syntax::print::pprust; pub trait AstConv<'tcx> { fn tcx<'a>(&'a self) -> &'a ty::ctxt<'tcx>; Identify the type scheme for an item with a type, like a type alias, fn, or struct. This allows you to figure out the set of type parameters defined on the item. fn <API key>(&self, span: Span, id: ast::DefId) -> Result<ty::TypeScheme<'tcx>, ErrorReported>; Returns the `TraitDef` for a given trait. This allows you to figure out the set of type parameters defined on the trait. fn get_trait_def(&self, span: Span, id: ast::DefId) -> Result<Rc<ty::TraitDef<'tcx>>, ErrorReported>; Ensure that the super-predicates for the trait with the given id are available and also for the transitive set of super-predicates. fn <API key>(&self, span: Span, id: ast::DefId) -> Result<(), ErrorReported>; Returns the set of bounds in scope for the type parameter with the given id. fn <API key>(&self, span: Span, def_id: ast::NodeId) -> Result<Vec<ty::PolyTraitRef<'tcx>>, ErrorReported>; Returns true if the trait with id `trait_def_id` defines an associated type with the name `name`. fn <API key>(&self, trait_def_id: ast::DefId, name: ast::Name) -> bool; Return an (optional) substitution to convert bound type parameters that are in scope into free ones. This function should only return Some within a fn body. See <API key>::free_substs for more information. fn get_free_substs(&self) -> Option<&Substs<'tcx>> { None } What type should we use when a type is omitted? fn ty_infer(&self, span: Span) -> Ty<'tcx>; Projecting an associated type from a (potentially) higher-ranked trait reference is more complicated, because of the possibility of late-bound regions appearing in the associated type binding. This is not legal in function signatures for that reason. In a function body, we can always handle it because we can use inference variables to remove the late-bound regions. fn <API key>(&self, span: Span, poly_trait_ref: ty::PolyTraitRef<'tcx>, item_name: ast::Name) -> Ty<'tcx> { if ty::<API key>(self.tcx(), &poly_trait_ref) { span_err!(self.tcx().sess, span, E0212, "cannot extract an associated type from a higher-ranked trait bound \ in this context"); self.tcx().types.err } else { // no late-bound regions, we can just ignore the binder self.projected_ty(span, poly_trait_ref.0.clone(), item_name) } } Project an associated type from a non-higher-ranked trait reference. This is fairly straightforward and can be accommodated in any context. fn projected_ty(&self, span: Span, _trait_ref: Rc<ty::TraitRef<'tcx>>, _item_name: ast::Name) -> Ty<'tcx>; } pub fn <API key>(tcx: &ty::ctxt, lifetime: &ast::Lifetime) -> ty::Region { let r = match tcx.named_region_map.get(&lifetime.id) { None => { // should have been recorded by the `resolve_lifetime` pass tcx.sess.span_bug(lifetime.span, "unresolved lifetime"); } Some(&rl::DefStaticRegion) => { ty::ReStatic } Some(&rl::DefLateBoundRegion(debruijn, id)) => { ty::ReLateBound(debruijn, ty::BrNamed(ast_util::local_def(id), lifetime.name)) } Some(&rl::DefEarlyBoundRegion(space, index, id)) => { ty::ReEarlyBound(id, space, index, lifetime.name) } Some(&rl::DefFreeRegion(scope, id)) => { ty::ReFree(ty::FreeRegion { scope: scope, bound_region: ty::BrNamed(ast_util::local_def(id), lifetime.name) }) } }; debug!("<API key>(lifetime={} id={}) yields {}", lifetime.repr(tcx), lifetime.id, r.repr(tcx)); r } pub fn <API key><'tcx>( this: &AstConv<'tcx>, rscope: &RegionScope, default_span: Span, opt_lifetime: &Option<ast::Lifetime>) -> ty::Region { let r = match *opt_lifetime { Some(ref lifetime) => { <API key>(this.tcx(), lifetime) } None => { match rscope.anon_regions(default_span, 1) { Err(v) => { debug!("optional region in illegal location"); span_err!(this.tcx().sess, default_span, E0106, "missing lifetime specifier"); match v { Some(v) => { let mut m = String::new(); let len = v.len(); for (i, (name, n)) in v.into_iter().enumerate() { let help_name = if name.is_empty() { format!("argument {}", i + 1) } else { format!("`{}`", name) }; m.push_str(&(if n == 1 { help_name } else { format!("one of {}'s {} elided lifetimes", help_name, n) })[..]); if len == 2 && i == 0 { m.push_str(" or "); } else if i + 2 == len { m.push_str(", or "); } else if i + 1 != len { m.push_str(", "); } } if len == 1 { fileline_help!(this.tcx().sess, default_span, "this function's return type contains a borrowed value, but \ the signature does not say which {} it is borrowed from", m); } else if len == 0 { fileline_help!(this.tcx().sess, default_span, "this function's return type contains a borrowed value, but \ there is no value for it to be borrowed from"); fileline_help!(this.tcx().sess, default_span, "consider giving it a 'static lifetime"); } else { fileline_help!(this.tcx().sess, default_span, "this function's return type contains a borrowed value, but \ the signature does not say whether it is borrowed from {}", m); } } None => {}, } ty::ReStatic } Ok(rs) => rs[0], } } }; debug!("<API key>(opt_lifetime={}) yields {}", opt_lifetime.repr(this.tcx()), r.repr(this.tcx())); r } Given a path `path` that refers to an item `I` with the declared generics `decl_generics`, returns an appropriate set of substitutions for this particular reference to `I`. pub fn <API key><'tcx>( this: &AstConv<'tcx>, rscope: &RegionScope, span: Span, param_mode: PathParamMode, decl_generics: &ty::Generics<'tcx>, item_segment: &ast::PathSegment) -> Substs<'tcx> { let tcx = this.tcx(); // ast_path_substs() is only called to convert paths that are // known to refer to traits, types, or structs. In these cases, // all type parameters defined for the item being referenced will // be in the TypeSpace or SelfSpace. // Note: in the case of traits, the self parameter is also // defined, but we don't currently create a `type_param_def` for // `Self` because it is implicit. assert!(decl_generics.regions.all(|d| d.space == TypeSpace)); assert!(decl_generics.types.all(|d| d.space != FnSpace)); let (regions, types, assoc_bindings) = match item_segment.parameters { ast::<API key>(ref data) => { <API key>(this, rscope, span, decl_generics, data) } ast::<API key>(ref data) => { span_err!(tcx.sess, span, E0214, "parenthesized parameters may only be used with a trait"); <API key>(this, rscope, span, decl_generics, data) } }; <API key>(this.tcx(), &assoc_bindings); <API key>(this, span, param_mode, decl_generics, None, types, regions) } #[derive(PartialEq, Eq)] pub enum PathParamMode { // Any path in a type context. Explicit, // The `module::Type` in `module::Type::method` in an expression. Optional } fn <API key><'tcx>( this: &AstConv<'tcx>, rscope: &RegionScope, span: Span, decl_generics: &ty::Generics<'tcx>, regions_provided: Vec<ty::Region>) -> Substs<'tcx> { let tcx = this.tcx(); // If the type is parameterized by the this region, then replace this // region with the current anon region binding (in other words, // whatever & would get replaced with). let <API key> = decl_generics.regions.len(TypeSpace); let <API key> = regions_provided.len(); let regions = if <API key> == <API key> { regions_provided } else { let anon_regions = rscope.anon_regions(span, <API key>); if <API key> != 0 || anon_regions.is_err() { <API key>(tcx, span, <API key>, <API key>); } match anon_regions { Ok(anon_regions) => anon_regions, Err(_) => (0..<API key>).map(|_| ty::ReStatic).collect() } }; Substs::new_type(vec![], regions) } Given the type/region arguments provided to some path (along with an implicit Self, if this is a trait reference) returns the complete set of substitutions. This may involve applying defaulted type parameters. Note that the type listing given here is *exactly* what the user provided. The `region_substs` should be the result of `<API key>` -- that is, a substitution with no types but the correct number of regions. fn <API key><'tcx>( this: &AstConv<'tcx>, span: Span, param_mode: PathParamMode, decl_generics: &ty::Generics<'tcx>, self_ty: Option<Ty<'tcx>>, types_provided: Vec<Ty<'tcx>>, region_substs: Substs<'tcx>) -> Substs<'tcx> { let tcx = this.tcx(); debug!("<API key>(decl_generics={}, self_ty={}, \ types_provided={}, region_substs={}", decl_generics.repr(tcx), self_ty.repr(tcx), types_provided.repr(tcx), region_substs.repr(tcx)); assert_eq!(region_substs.regions().len(TypeSpace), decl_generics.regions.len(TypeSpace)); assert!(region_substs.types.is_empty()); // Convert the type parameters supplied by the user. let ty_param_defs = decl_generics.types.get_slice(TypeSpace); let <API key> = ty_param_defs.len(); let <API key> = ty_param_defs.iter() .take_while(|x| x.default.is_none()) .count(); // Fill with `ty_infer` if no params were specified, as long as // they were optional (e.g. paths inside expressions). let mut type_substs = if param_mode == PathParamMode::Optional && types_provided.is_empty() { (0..<API key>).map(|_| this.ty_infer(span)).collect() } else { types_provided }; let <API key> = type_substs.len(); <API key>(this.tcx(), span, <API key>, <API key>, <API key>); if <API key> < <API key> { while type_substs.len() < <API key> { type_substs.push(tcx.types.err); } } else if <API key> > <API key> { type_substs.truncate(<API key>); } assert!(type_substs.len() >= <API key> && type_substs.len() <= <API key>); let mut substs = region_substs; substs.types.extend(TypeSpace, type_substs.into_iter()); match self_ty { None => { // If no self-type is provided, it's still possible that // one was declared, because this could be an object type. } Some(ty) => { // If a self-type is provided, one should have been // "declared" (in other words, this should be a // trait-ref). assert!(decl_generics.types.get_self().is_some()); substs.types.push(SelfSpace, ty); } } let <API key> = substs.types.len(TypeSpace); for param in &ty_param_defs[<API key>..] { if let Some(default) = param.default { // If we are converting an object type, then the // `Self` parameter is unknown. However, some of the // other type parameters may reference `Self` in their // defaults. This will lead to an ICE if we are not // careful! if self_ty.is_none() && ty::type_has_self(default) { tcx.sess.span_err( span, &format!("the type parameter `{}` must be explicitly specified \ in an object type because its default value `{}` references \ the type `Self`", param.name.user_string(tcx), default.user_string(tcx))); substs.types.push(TypeSpace, tcx.types.err); } else { // This is a default type parameter. let default = default.subst_spanned(tcx, &substs, Some(span)); substs.types.push(TypeSpace, default); } } else { tcx.sess.span_bug(span, "extra parameter without default"); } } substs } struct ConvertedBinding<'tcx> { item_name: ast::Name, ty: Ty<'tcx>, span: Span, } fn <API key><'tcx>(this: &AstConv<'tcx>, rscope: &RegionScope, span: Span, decl_generics: &ty::Generics<'tcx>, data: &ast::<API key>) -> (Substs<'tcx>, Vec<Ty<'tcx>>, Vec<ConvertedBinding<'tcx>>) { let regions: Vec<_> = data.lifetimes.iter() .map(|l| <API key>(this.tcx(), l)) .collect(); let region_substs = <API key>(this, rscope, span, decl_generics, regions); let types: Vec<_> = data.types.iter() .enumerate() .map(|(i,t)| ast_ty_arg_to_ty(this, rscope, decl_generics, i, &region_substs, t)) .collect(); let assoc_bindings: Vec<_> = data.bindings.iter() .map(|b| ConvertedBinding { item_name: b.ident.name, ty: ast_ty_to_ty(this, rscope, &*b.ty), span: b.span }) .collect(); (region_substs, types, assoc_bindings) } Returns the appropriate lifetime to use for any output lifetimes (if one exists) and a vector of the (pattern, number of lifetimes) corresponding to each input type/pattern. fn <API key>(input_tys: &[Ty], input_pats: Vec<String>) -> (Option<ty::Region>, Vec<(String, usize)>) { let mut <API key>: Vec<(String, usize)> = Vec::new(); let mut <API key> = None; for (input_type, input_pat) in input_tys.iter().zip(input_pats.into_iter()) { let mut accumulator = Vec::new(); ty::<API key>(&mut accumulator, *input_type); if accumulator.len() == 1 { // there's a chance that the unique lifetime of this // iteration will be the appropriate lifetime for output // parameters, so lets store it. <API key> = Some(accumulator[0]) } <API key>.push((input_pat, accumulator.len())); } let <API key> = if <API key>.iter().map(|&(_, n)| n).sum::<usize>() == 1 { assert!(<API key>.is_some()); <API key> } else { None }; (<API key>, <API key>) } fn <API key><'tcx>(this: &AstConv<'tcx>, <API key>: Option<ty::Region>, param_lifetimes: Vec<(String, usize)>, ty: &ast::Ty) -> Ty<'tcx> { match <API key> { Some(<API key>) => { let rb = ElidableRscope::new(<API key>); ast_ty_to_ty(this, &rb, ty) } None => { // All regions must be explicitly specified in the output // if the lifetime elision rules do not apply. This saves // the user from <API key> errors. let rb = UnelidableRscope::new(param_lifetimes); ast_ty_to_ty(this, &rb, ty) } } } fn <API key><'tcx>(this: &AstConv<'tcx>, rscope: &RegionScope, span: Span, decl_generics: &ty::Generics<'tcx>, data: &ast::<API key>) -> (Substs<'tcx>, Vec<Ty<'tcx>>, Vec<ConvertedBinding<'tcx>>) { let region_substs = <API key>(this, rscope, span, decl_generics, Vec::new()); let binding_rscope = BindingRscope::new(); let inputs = data.inputs.iter() .map(|a_t| ast_ty_arg_to_ty(this, &binding_rscope, decl_generics, 0, &region_substs, a_t)) .collect::<Vec<Ty<'tcx>>>(); let input_params: Vec<_> = repeat(String::new()).take(inputs.len()).collect(); let (<API key>, params_lifetimes) = <API key>(&*inputs, input_params); let input_ty = ty::mk_tup(this.tcx(), inputs); let (output, output_span) = match data.output { Some(ref output_ty) => { (<API key>(this, <API key>, params_lifetimes, &**output_ty), output_ty.span) } None => { (ty::mk_nil(this.tcx()), data.span) } }; let output_binding = ConvertedBinding { item_name: token::intern(FN_OUTPUT_NAME), ty: output, span: output_span }; (region_substs, vec![input_ty], vec![output_binding]) } pub fn <API key><'tcx>( this: &AstConv<'tcx>, rscope: &RegionScope, ast_trait_ref: &ast::PolyTraitRef, self_ty: Option<Ty<'tcx>>, poly_projections: &mut Vec<ty::<API key><'tcx>>) -> ty::PolyTraitRef<'tcx> { let trait_ref = &ast_trait_ref.trait_ref; let trait_def_id = trait_def_id(this, trait_ref); <API key>(this, rscope, trait_ref.path.span, PathParamMode::Explicit, trait_def_id, self_ty, trait_ref.path.segments.last().unwrap(), poly_projections) } Instantiates the path for the given trait reference, assuming that it's bound to a valid trait type. Returns the def_id for the defining trait. Fails if the type is a type other than a trait type. If the `projections` argument is `None`, then assoc type bindings like `Foo<T=X>` are disallowed. Otherwise, they are pushed onto the vector given. pub fn <API key><'tcx>( this: &AstConv<'tcx>, rscope: &RegionScope, trait_ref: &ast::TraitRef, self_ty: Option<Ty<'tcx>>) -> Rc<ty::TraitRef<'tcx>> { let trait_def_id = trait_def_id(this, trait_ref); <API key>(this, rscope, trait_ref.path.span, PathParamMode::Explicit, trait_def_id, self_ty, trait_ref.path.segments.last().unwrap()) } fn trait_def_id<'tcx>(this: &AstConv<'tcx>, trait_ref: &ast::TraitRef) -> ast::DefId { let path = &trait_ref.path; match ::lookup_full_def(this.tcx(), path.span, trait_ref.ref_id) { def::DefTrait(trait_def_id) => trait_def_id, _ => { span_fatal!(this.tcx().sess, path.span, E0245, "`{}` is not a trait", path.user_string(this.tcx())); } } } fn <API key><'a,'tcx>( this: &AstConv<'tcx>, rscope: &RegionScope, span: Span, param_mode: PathParamMode, trait_def_id: ast::DefId, trait_segment: &ast::PathSegment, mut projections: &mut Vec<ty::<API key><'tcx>>) -> ty::PolyTraitRef<'tcx> { <API key>(this, rscope, span, param_mode, trait_def_id, None, trait_segment, projections) } fn <API key><'a,'tcx>( this: &AstConv<'tcx>, rscope: &RegionScope, span: Span, param_mode: PathParamMode, trait_def_id: ast::DefId, self_ty: Option<Ty<'tcx>>, trait_segment: &ast::PathSegment, poly_projections: &mut Vec<ty::<API key><'tcx>>) -> ty::PolyTraitRef<'tcx> { // The trait reference introduces a binding level here, so // we need to shift the `rscope`. It'd be nice if we could // do away with this rscope stuff and work this knowledge // into resolve_lifetimes, as we do with non-omitted // lifetimes. Oh well, not there yet. let shifted_rscope = &ShiftedRscope::new(rscope); let (substs, assoc_bindings) = <API key>(this, shifted_rscope, span, param_mode, trait_def_id, self_ty, trait_segment); let poly_trait_ref = ty::Binder(Rc::new(ty::TraitRef::new(trait_def_id, substs))); { let converted_bindings = assoc_bindings .iter() .filter_map(|binding| { // specify type to assert that error was already reported in Err case: let predicate: Result<_, ErrorReported> = <API key>(this, poly_trait_ref.clone(), self_ty, binding); predicate.ok() // ok to ignore Err() because ErrorReported (see above) }); poly_projections.extend(converted_bindings); } poly_trait_ref } fn <API key><'a,'tcx>(this: &AstConv<'tcx>, rscope: &RegionScope, span: Span, param_mode: PathParamMode, trait_def_id: ast::DefId, self_ty: Option<Ty<'tcx>>, trait_segment: &ast::PathSegment) -> Rc<ty::TraitRef<'tcx>> { let (substs, assoc_bindings) = <API key>(this, rscope, span, param_mode, trait_def_id, self_ty, trait_segment); <API key>(this.tcx(), &assoc_bindings); Rc::new(ty::TraitRef::new(trait_def_id, substs)) } fn <API key><'a,'tcx>(this: &AstConv<'tcx>, rscope: &RegionScope, span: Span, param_mode: PathParamMode, trait_def_id: ast::DefId, self_ty: Option<Ty<'tcx>>, trait_segment: &ast::PathSegment) -> (&'tcx Substs<'tcx>, Vec<ConvertedBinding<'tcx>>) { debug!("<API key>(trait_segment={:?})", trait_segment); let trait_def = match this.get_trait_def(span, trait_def_id) { Ok(trait_def) => trait_def, Err(ErrorReported) => { // No convenient way to recover from a cycle here. Just bail. Sorry! this.tcx().sess.abort_if_errors(); this.tcx().sess.bug("ErrorReported returned, but no errors reports?") } }; let (regions, types, assoc_bindings) = match trait_segment.parameters { ast::<API key>(ref data) => { // For now, require that parenthetical notation be used // only with `Fn()` etc. if !this.tcx().sess.features.borrow().unboxed_closures && trait_def.paren_sugar { span_err!(this.tcx().sess, span, E0215, "angle-bracket notation is not stable when \ used with the `Fn` family of traits, use parentheses"); fileline_help!(this.tcx().sess, span, "add `#![feature(unboxed_closures)]` to \ the crate attributes to enable"); } <API key>(this, rscope, span, &trait_def.generics, data) } ast::<API key>(ref data) => { // For now, require that parenthetical notation be used // only with `Fn()` etc. if !this.tcx().sess.features.borrow().unboxed_closures && !trait_def.paren_sugar { span_err!(this.tcx().sess, span, E0216, "parenthetical notation is only stable when \ used with the `Fn` family of traits"); fileline_help!(this.tcx().sess, span, "add `#![feature(unboxed_closures)]` to \ the crate attributes to enable"); } <API key>(this, rscope, span, &trait_def.generics, data) } }; let substs = <API key>(this, span, param_mode, &trait_def.generics, self_ty, types, regions); (this.tcx().mk_substs(substs), assoc_bindings) } fn <API key><'tcx>( this: &AstConv<'tcx>, mut trait_ref: ty::PolyTraitRef<'tcx>, self_ty: Option<Ty<'tcx>>, binding: &ConvertedBinding<'tcx>) -> Result<ty::<API key><'tcx>, ErrorReported> { let tcx = this.tcx(); // Given something like `U : SomeTrait<T=X>`, we want to produce a // predicate like `<U as SomeTrait>::T = X`. This is somewhat // subtle in the event that `T` is defined in a supertrait of // `SomeTrait`, because in that case we need to upcast. // That is, consider this case: // trait SubTrait : SuperTrait<int> { } // trait SuperTrait<A> { type T; } // ... B : SubTrait<T=foo> ... // We want to produce `<B as SuperTrait<int>>::T == foo`. // Simple case: X is defined in the current trait. if this.<API key>(trait_ref.def_id(), binding.item_name) { return Ok(ty::Binder(ty::ProjectionPredicate { projection_ty: ty::ProjectionTy { trait_ref: trait_ref.skip_binder().clone(), // Binder moved here --+ item_name: binding.item_name, }, ty: binding.ty, })); } // Otherwise, we have to walk through the supertraits to find // those that do. This is complicated by the fact that, for an // object type, the `Self` type is not present in the // substitutions (after all, it's being constructed right now), // but the `supertraits` iterator really wants one. To handle // this, we currently insert a dummy type and then remove it // later. Yuck. let dummy_self_ty = ty::mk_infer(tcx, ty::FreshTy(0)); if self_ty.is_none() { // if converting for an object type let mut dummy_substs = trait_ref.skip_binder().substs.clone(); // binder moved here -+ assert!(dummy_substs.self_ty().is_none()); dummy_substs.types.push(SelfSpace, dummy_self_ty); trait_ref = ty::Binder(Rc::new(ty::TraitRef::new(trait_ref.def_id(), tcx.mk_substs(dummy_substs)))); } try!(this.<API key>(binding.span, trait_ref.def_id())); let mut candidates: Vec<ty::PolyTraitRef> = traits::supertraits(tcx, trait_ref.clone()) .filter(|r| this.<API key>(r.def_id(), binding.item_name)) .collect(); // If converting for an object type, then remove the dummy-ty from `Self` now. // Yuckety yuck. if self_ty.is_none() { for candidate in &mut candidates { let mut dummy_substs = candidate.0.substs.clone(); assert!(dummy_substs.self_ty() == Some(dummy_self_ty)); dummy_substs.types.pop(SelfSpace); *candidate = ty::Binder(Rc::new(ty::TraitRef::new(candidate.def_id(), tcx.mk_substs(dummy_substs)))); } } let candidate = try!(<API key>(tcx, candidates, &trait_ref.user_string(tcx), &token::get_name(binding.item_name), binding.span)); Ok(ty::Binder(ty::ProjectionPredicate { projection_ty: ty::ProjectionTy { trait_ref: candidate.skip_binder().clone(), // binder is moved up here --+ item_name: binding.item_name, }, ty: binding.ty, })) } fn ast_path_to_ty<'tcx>( this: &AstConv<'tcx>, rscope: &RegionScope, span: Span, param_mode: PathParamMode, did: ast::DefId, item_segment: &ast::PathSegment) -> Ty<'tcx> { let tcx = this.tcx(); let (generics, decl_ty) = match this.<API key>(span, did) { Ok(ty::TypeScheme { generics, ty: decl_ty }) => { (generics, decl_ty) } Err(ErrorReported) => { return tcx.types.err; } }; let substs = <API key>(this, rscope, span, param_mode, &generics, item_segment); // FIXME(#12938): This is a hack until we have full support for DST. if Some(did) == this.tcx().lang_items.owned_box() { assert_eq!(substs.types.len(TypeSpace), 1); return ty::mk_uniq(this.tcx(), *substs.types.get(TypeSpace, 0)); } decl_ty.subst(this.tcx(), &substs) } type TraitAndProjections<'tcx> = (ty::PolyTraitRef<'tcx>, Vec<ty::<API key><'tcx>>); fn ast_ty_to_trait_ref<'tcx>(this: &AstConv<'tcx>, rscope: &RegionScope, ty: &ast::Ty, bounds: &[ast::TyParamBound]) -> Result<TraitAndProjections<'tcx>, ErrorReported> { /*! * In a type like `Foo + Send`, we want to wait to collect the * full set of bounds before we make the object type, because we * need them to infer a region bound. (For example, if we tried * made a type from just `Foo`, then it wouldn't be enough to * infer a 'static bound, and hence the user would get an error.) * So this function is used when we're dealing with a sum type to * convert the LHS. It only accepts a type that refers to a trait * name, and reports an error otherwise. */ match ty.node { ast::TyPath(None, ref path) => { let def = match this.tcx().def_map.borrow().get(&ty.id) { Some(&def::PathResolution { base_def, depth: 0, .. }) => Some(base_def), _ => None }; match def { Some(def::DefTrait(trait_def_id)) => { let mut projection_bounds = Vec::new(); let trait_ref = <API key>(this, rscope, path.span, PathParamMode::Explicit, trait_def_id, path.segments.last().unwrap(), &mut projection_bounds); Ok((trait_ref, projection_bounds)) } _ => { span_err!(this.tcx().sess, ty.span, E0172, "expected a reference to a trait"); Err(ErrorReported) } } } _ => { span_err!(this.tcx().sess, ty.span, E0178, "expected a path on the left-hand side of `+`, not `{}`", pprust::ty_to_string(ty)); match ty.node { ast::TyRptr(None, ref mut_ty) => { fileline_help!(this.tcx().sess, ty.span, "perhaps you meant `&{}({} +{})`? (per RFC 438)", ppaux::<API key>(mut_ty.mutbl), pprust::ty_to_string(&*mut_ty.ty), pprust::bounds_to_string(bounds)); } ast::TyRptr(Some(ref lt), ref mut_ty) => { fileline_help!(this.tcx().sess, ty.span, "perhaps you meant `&{} {}({} +{})`? (per RFC 438)", pprust::lifetime_to_string(lt), ppaux::<API key>(mut_ty.mutbl), pprust::ty_to_string(&*mut_ty.ty), pprust::bounds_to_string(bounds)); } _ => { fileline_help!(this.tcx().sess, ty.span, "perhaps you forgot parentheses? (per RFC 438)"); } } Err(ErrorReported) } } } fn <API key><'tcx>(this: &AstConv<'tcx>, rscope: &RegionScope, span: Span, trait_ref: ty::PolyTraitRef<'tcx>, projection_bounds: Vec<ty::<API key><'tcx>>, bounds: &[ast::TyParamBound]) -> Ty<'tcx> { let existential_bounds = <API key>(this, rscope, span, trait_ref.clone(), projection_bounds, bounds); let result = make_object_type(this, span, trait_ref, existential_bounds); debug!("<API key>: result={}", result.repr(this.tcx())); result } fn make_object_type<'tcx>(this: &AstConv<'tcx>, span: Span, principal: ty::PolyTraitRef<'tcx>, bounds: ty::ExistentialBounds<'tcx>) -> Ty<'tcx> { let tcx = this.tcx(); let object = ty::TyTrait { principal: principal, bounds: bounds }; let object_trait_ref = object.<API key>(tcx, tcx.types.err); // ensure the super predicates and stop if we encountered an error if this.<API key>(span, object.principal_def_id()).is_err() { return tcx.types.err; } let mut associated_types: FnvHashSet<(ast::DefId, ast::Name)> = traits::supertraits(tcx, object_trait_ref) .flat_map(|tr| { let trait_def = ty::lookup_trait_def(tcx, tr.def_id()); trait_def.<API key> .clone() .into_iter() .map(move |<API key>| (tr.def_id(), <API key>)) }) .collect(); for projection_bound in &object.bounds.projection_bounds { let pair = (projection_bound.0.projection_ty.trait_ref.def_id, projection_bound.0.projection_ty.item_name); associated_types.remove(&pair); } for (trait_def_id, name) in associated_types { span_err!(tcx.sess, span, E0191, "the value of the associated type `{}` (from the trait `{}`) must be specified", name.user_string(tcx), ty::item_path_str(tcx, trait_def_id)); } ty::mk_trait(tcx, object.principal, object.bounds) } fn <API key>(tcx: &ty::ctxt, span: Span, type_str: &str, trait_str: &str, name: &str) { span_err!(tcx.sess, span, E0223, "ambiguous associated type; specify the type using the syntax \ `<{} as {}>::{}`", type_str, trait_str, name); } // Search for a bound on a type parameter which includes the associated item // given by assoc_name. ty_param_node_id is the node id for the type parameter // (which might be `Self`, but only if it is the `Self` of a trait, not an // impl). This function will fail if there are no suitable bounds or there is // any ambiguity. fn <API key><'tcx>(this: &AstConv<'tcx>, ty_param_node_id: ast::NodeId, assoc_name: ast::Name, span: Span) -> Result<ty::PolyTraitRef<'tcx>, ErrorReported> { let tcx = this.tcx(); let bounds = match this.<API key>(span, ty_param_node_id) { Ok(v) => v, Err(ErrorReported) => { return Err(ErrorReported); } }; // Ensure the super predicates and stop if we encountered an error. if bounds.iter().any(|b| this.<API key>(span, b.def_id()).is_err()) { return Err(ErrorReported); } // Check that there is exactly one way to find an associated type with the // correct name. let suitable_bounds: Vec<_> = traits::transitive_bounds(tcx, &bounds) .filter(|b| this.<API key>(b.def_id(), assoc_name)) .collect(); let ty_param_name = tcx.type_parameter_def(ty_param_node_id).name; <API key>(tcx, suitable_bounds, &token::get_name(ty_param_name), &token::get_name(assoc_name), span) } // Checks that bounds contains exactly one element and reports appropriate // errors otherwise. fn <API key><'tcx>(tcx: &ty::ctxt<'tcx>, bounds: Vec<ty::PolyTraitRef<'tcx>>, ty_param_name: &str, assoc_name: &str, span: Span) -> Result<ty::PolyTraitRef<'tcx>, ErrorReported> { if bounds.len() == 0 { span_err!(tcx.sess, span, E0220, "associated type `{}` not found for `{}`", assoc_name, ty_param_name); return Err(ErrorReported); } if bounds.len() > 1 { span_err!(tcx.sess, span, E0221, "ambiguous associated type `{}` in bounds of `{}`", assoc_name, ty_param_name); for bound in &bounds { span_note!(tcx.sess, span, "associated type `{}` could derive from `{}`", ty_param_name, bound.user_string(tcx)); } } Ok(bounds[0].clone()) } // Create a type from a a path to an associated type. // For a path A::B::C::D, ty and ty_path_def are the type and def for A::B::C // and item_segment is the path segment for D. We return a type and a def for // the whole path. // Will fail except for T::A and Self::A; i.e., if ty/ty_path_def are not a type // parameter or Self. fn <API key><'tcx>(this: &AstConv<'tcx>, span: Span, ty: Ty<'tcx>, ty_path_def: def::Def, item_segment: &ast::PathSegment) -> (Ty<'tcx>, def::Def) { let tcx = this.tcx(); let assoc_name = item_segment.identifier.name; debug!("<API key>: {}::{}", ty.repr(tcx), token::get_name(assoc_name)); check_path_args(tcx, slice::ref_slice(item_segment), NO_TPS | NO_REGIONS); // Find the type of the associated item, and the trait where the associated // item is declared. let bound = match (&ty.sty, ty_path_def) { (_, def::DefSelfTy(Some(trait_did), Some((impl_id, _)))) => { // `Self` in an impl of a trait - we have a concrete self type and a // trait reference. match tcx.map.expect_item(impl_id).node { ast::ItemImpl(_, _, _, Some(ref trait_ref), _, _) => { if this.<API key>(span, trait_did).is_err() { return (tcx.types.err, ty_path_def); } let trait_segment = &trait_ref.path.segments.last().unwrap(); let trait_ref = <API key>(this, &ExplicitRscope, span, PathParamMode::Explicit, trait_did, Some(ty), trait_segment); let candidates: Vec<ty::PolyTraitRef> = traits::supertraits(tcx, ty::Binder(trait_ref.clone())) .filter(|r| this.<API key>(r.def_id(), assoc_name)) .collect(); match <API key>(tcx, candidates, "Self", &token::get_name(assoc_name), span) { Ok(bound) => bound, Err(ErrorReported) => return (tcx.types.err, ty_path_def), } } _ => unreachable!() } } (&ty::ty_param(_), def::DefTyParam(..)) | (&ty::ty_param(_), def::DefSelfTy(Some(_), None)) => { // A type parameter or Self, we need to find the associated item from // a bound. let ty_param_node_id = ty_path_def.local_node_id(); match <API key>(this, ty_param_node_id, assoc_name, span) { Ok(bound) => bound, Err(ErrorReported) => return (tcx.types.err, ty_path_def), } } _ => { <API key>(tcx, span, &ty.user_string(tcx), "Trait", &token::get_name(assoc_name)); return (tcx.types.err, ty_path_def); } }; let trait_did = bound.0.def_id; let ty = this.<API key>(span, bound, assoc_name); let item_did = if trait_did.krate == ast::LOCAL_CRATE { // `ty::trait_items` used below requires information generated // by type collection, which may be in progress at this point. match tcx.map.expect_item(trait_did.node).node { ast::ItemTrait(_, _, _, ref trait_items) => { let item = trait_items.iter() .find(|i| i.ident.name == assoc_name) .expect("missing associated type"); ast_util::local_def(item.id) } _ => unreachable!() } } else { let trait_items = ty::trait_items(tcx, trait_did); let item = trait_items.iter().find(|i| i.name() == assoc_name); item.expect("missing associated type").def_id() }; (ty, def::DefAssociatedTy(trait_did, item_did)) } fn qpath_to_ty<'tcx>(this: &AstConv<'tcx>, rscope: &RegionScope, span: Span, param_mode: PathParamMode, opt_self_ty: Option<Ty<'tcx>>, trait_def_id: ast::DefId, trait_segment: &ast::PathSegment, item_segment: &ast::PathSegment) -> Ty<'tcx> { let tcx = this.tcx(); check_path_args(tcx, slice::ref_slice(item_segment), NO_TPS | NO_REGIONS); let self_ty = if let Some(ty) = opt_self_ty { ty } else { let path_str = ty::item_path_str(tcx, trait_def_id); <API key>(tcx, span, "Type", &path_str, &token::get_ident(item_segment.identifier)); return tcx.types.err; }; debug!("qpath_to_ty: self_type={}", self_ty.repr(tcx)); let trait_ref = <API key>(this, rscope, span, param_mode, trait_def_id, Some(self_ty), trait_segment); debug!("qpath_to_ty: trait_ref={}", trait_ref.repr(tcx)); this.projected_ty(span, trait_ref, item_segment.identifier.name) } Convert a type supplied as value for a type argument from AST into our our internal representation. This is the same as `ast_ty_to_ty` but that it applies the object lifetime default. # Parameters * `this`, `rscope`: the surrounding context * `decl_generics`: the generics of the struct/enum/trait declaration being referenced * `index`: the index of the type parameter being instantiated from the list (we assume it is in the `TypeSpace`) * `region_substs`: a partial substitution consisting of only the region type parameters being supplied to this type. * `ast_ty`: the ast representation of the type being supplied pub fn ast_ty_arg_to_ty<'tcx>(this: &AstConv<'tcx>, rscope: &RegionScope, decl_generics: &ty::Generics<'tcx>, index: usize, region_substs: &Substs<'tcx>, ast_ty: &ast::Ty) -> Ty<'tcx> { let tcx = this.tcx(); if let Some(def) = decl_generics.types.opt_get(TypeSpace, index) { let <API key> = def.<API key>.subst(tcx, region_substs); let rscope1 = &<API key>::new(rscope, <API key>); ast_ty_to_ty(this, rscope1, ast_ty) } else { ast_ty_to_ty(this, rscope, ast_ty) } } // Check the base def in a PathResolution and convert it to a Ty. If there are // associated types in the PathResolution, these will need to be seperately // resolved. fn base_def_to_ty<'tcx>(this: &AstConv<'tcx>, rscope: &RegionScope, span: Span, param_mode: PathParamMode, def: &def::Def, opt_self_ty: Option<Ty<'tcx>>, base_segments: &[ast::PathSegment]) -> Ty<'tcx> { let tcx = this.tcx(); match *def { def::DefTrait(trait_def_id) => { // N.B. this case overlaps somewhat with // TyObjectSum, see that fn for details let mut projection_bounds = Vec::new(); let trait_ref = <API key>(this, rscope, span, param_mode, trait_def_id, base_segments.last().unwrap(), &mut projection_bounds); check_path_args(tcx, base_segments.init(), NO_TPS | NO_REGIONS); <API key>(this, rscope, span, trait_ref, projection_bounds, &[]) } def::DefTy(did, _) | def::DefStruct(did) => { check_path_args(tcx, base_segments.init(), NO_TPS | NO_REGIONS); ast_path_to_ty(this, rscope, span, param_mode, did, base_segments.last().unwrap()) } def::DefTyParam(space, index, _, name) => { check_path_args(tcx, base_segments, NO_TPS | NO_REGIONS); ty::mk_param(tcx, space, index, name) } def::DefSelfTy(_, Some((_, self_ty_id))) => { // Self in impl (we know the concrete type). check_path_args(tcx, base_segments, NO_TPS | NO_REGIONS); if let Some(&ty) = tcx.ast_ty_to_ty_cache.borrow().get(&self_ty_id) { ty } else { tcx.sess.span_bug(span, "self type has not been fully resolved") } } def::DefSelfTy(Some(_), None) => { // Self in trait. check_path_args(tcx, base_segments, NO_TPS | NO_REGIONS); ty::mk_self_type(tcx) } def::DefAssociatedTy(trait_did, _) => { check_path_args(tcx, &base_segments[..base_segments.len()-2], NO_TPS | NO_REGIONS); qpath_to_ty(this, rscope, span, param_mode, opt_self_ty, trait_did, &base_segments[base_segments.len()-2], base_segments.last().unwrap()) } def::DefMod(id) => { // Used as sentinel by callers to indicate the `<T>::A::B::C` form. // FIXME(#22519) This part of the resolution logic should be // avoided entirely for that form, once we stop needed a Def // for `<API key>`. // Fixing this will also let use resolve <Self>::Foo the same way we // resolve Self::Foo, at the moment we can't resolve the former because // we don't have the trait information around, which is just sad. if !base_segments.is_empty() { span_err!(tcx.sess, span, E0247, "found module name used as a type: {}", tcx.map.node_to_string(id.node)); return this.tcx().types.err; } opt_self_ty.expect("missing T in <T>::a::b::c") } def::DefPrimTy(prim_ty) => { prim_ty_to_ty(tcx, base_segments, prim_ty) } _ => { span_err!(tcx.sess, span, E0248, "found value name used as a type: {:?}", *def); return this.tcx().types.err; } } } // Note that both base_segments and assoc_segments may be empty, although not at // the same time. pub fn <API key><'tcx>(this: &AstConv<'tcx>, rscope: &RegionScope, span: Span, param_mode: PathParamMode, def: &def::Def, opt_self_ty: Option<Ty<'tcx>>, base_segments: &[ast::PathSegment], assoc_segments: &[ast::PathSegment]) -> Ty<'tcx> { let mut ty = base_def_to_ty(this, rscope, span, param_mode, def, opt_self_ty, base_segments); let mut def = *def; // If any associated type segments remain, attempt to resolve them. for segment in assoc_segments { if ty.sty == ty::ty_err { break; } // This is pretty bad (it will fail except for T::A and Self::A). let (a_ty, a_def) = <API key>(this, span, ty, def, segment); ty = a_ty; def = a_def; } ty } Parses the programmer's textual representation of a type into our internal notion of a type. pub fn ast_ty_to_ty<'tcx>(this: &AstConv<'tcx>, rscope: &RegionScope, ast_ty: &ast::Ty) -> Ty<'tcx> { debug!("ast_ty_to_ty(ast_ty={})", ast_ty.repr(this.tcx())); let tcx = this.tcx(); if let Some(&ty) = tcx.ast_ty_to_ty_cache.borrow().get(&ast_ty.id) { return ty; } let typ = match ast_ty.node { ast::TyVec(ref ty) => { ty::mk_vec(tcx, ast_ty_to_ty(this, rscope, &**ty), None) } ast::TyObjectSum(ref ty, ref bounds) => { match ast_ty_to_trait_ref(this, rscope, &**ty, bounds) { Ok((trait_ref, projection_bounds)) => { <API key>(this, rscope, ast_ty.span, trait_ref, projection_bounds, bounds) } Err(ErrorReported) => { this.tcx().types.err } } } ast::TyPtr(ref mt) => { ty::mk_ptr(tcx, ty::mt { ty: ast_ty_to_ty(this, rscope, &*mt.ty), mutbl: mt.mutbl }) } ast::TyRptr(ref region, ref mt) => { let r = <API key>(this, rscope, ast_ty.span, region); debug!("ty_rptr r={}", r.repr(this.tcx())); let rscope1 = &<API key>::new( rscope, Some(ty::<API key>::Specific(r))); let t = ast_ty_to_ty(this, rscope1, &*mt.ty); ty::mk_rptr(tcx, tcx.mk_region(r), ty::mt {ty: t, mutbl: mt.mutbl}) } ast::TyTup(ref fields) => { let flds = fields.iter() .map(|t| ast_ty_to_ty(this, rscope, &**t)) .collect(); ty::mk_tup(tcx, flds) } ast::TyParen(ref typ) => ast_ty_to_ty(this, rscope, &**typ), ast::TyBareFn(ref bf) => { if bf.decl.variadic && bf.abi != abi::C { span_err!(tcx.sess, ast_ty.span, E0222, "variadic function must have C calling convention"); } let bare_fn = ty_of_bare_fn(this, bf.unsafety, bf.abi, &*bf.decl); ty::mk_bare_fn(tcx, None, tcx.mk_bare_fn(bare_fn)) } ast::TyPolyTraitRef(ref bounds) => { <API key>(this, rscope, ast_ty.span, bounds) } ast::TyPath(ref maybe_qself, ref path) => { let path_res = if let Some(&d) = tcx.def_map.borrow().get(&ast_ty.id) { d } else if let Some(ast::QSelf { position: 0, .. }) = *maybe_qself { // Create some fake resolution that can't possibly be a type. def::PathResolution { base_def: def::DefMod(ast_util::local_def(ast::CRATE_NODE_ID)), last_private: LastMod(AllPublic), depth: path.segments.len() } } else { tcx.sess.span_bug(ast_ty.span, &format!("unbound path {}", ast_ty.repr(tcx))) }; let def = path_res.base_def; let base_ty_end = path.segments.len() - path_res.depth; let opt_self_ty = maybe_qself.as_ref().map(|qself| { ast_ty_to_ty(this, rscope, &qself.ty) }); let ty = <API key>(this, rscope, ast_ty.span, PathParamMode::Explicit, &def, opt_self_ty, &path.segments[..base_ty_end], &path.segments[base_ty_end..]); if path_res.depth != 0 && ty.sty != ty::ty_err { // Write back the new resolution. tcx.def_map.borrow_mut().insert(ast_ty.id, def::PathResolution { base_def: def, last_private: path_res.last_private, depth: 0 }); } ty } ast::TyFixedLengthVec(ref ty, ref e) => { match const_eval::<API key>(tcx, &**e, Some(tcx.types.usize)) { Ok(r) => { match r { const_eval::const_int(i) => ty::mk_vec(tcx, ast_ty_to_ty(this, rscope, &**ty), Some(i as usize)), const_eval::const_uint(i) => ty::mk_vec(tcx, ast_ty_to_ty(this, rscope, &**ty), Some(i as usize)), _ => { span_err!(tcx.sess, ast_ty.span, E0249, "expected constant expr for array length"); this.tcx().types.err } } } Err(ref r) => { let subspan = ast_ty.span.lo <= r.span.lo && r.span.hi <= ast_ty.span.hi; span_err!(tcx.sess, r.span, E0250, "array length constant evaluation error: {}", r.description()); if !subspan { span_note!(tcx.sess, ast_ty.span, "for array length here") } this.tcx().types.err } } } ast::TyTypeof(ref _e) => { tcx.sess.span_bug(ast_ty.span, "typeof is reserved but unimplemented"); } ast::TyInfer => { // TyInfer also appears as the type of arguments or return // values in a ExprClosure, or as // the type of local variables. Both of these cases are // handled specially and will not descend into this routine. this.ty_infer(ast_ty.span) } }; tcx.ast_ty_to_ty_cache.borrow_mut().insert(ast_ty.id, typ); return typ; } pub fn ty_of_arg<'tcx>(this: &AstConv<'tcx>, rscope: &RegionScope, a: &ast::Arg, expected_ty: Option<Ty<'tcx>>) -> Ty<'tcx> { match a.ty.node { ast::TyInfer if expected_ty.is_some() => expected_ty.unwrap(), ast::TyInfer => this.ty_infer(a.ty.span), _ => ast_ty_to_ty(this, rscope, &*a.ty), } } struct SelfInfo<'a, 'tcx> { <API key>: Ty<'tcx>, explicit_self: &'a ast::ExplicitSelf, } pub fn ty_of_method<'tcx>(this: &AstConv<'tcx>, sig: &ast::MethodSig, <API key>: Ty<'tcx>) -> (ty::BareFnTy<'tcx>, ty::<API key>) { let self_info = Some(SelfInfo { <API key>: <API key>, explicit_self: &sig.explicit_self, }); let (bare_fn_ty, <API key>) = <API key>(this, sig.unsafety, sig.abi, self_info, &sig.decl); (bare_fn_ty, <API key>.unwrap()) } pub fn ty_of_bare_fn<'tcx>(this: &AstConv<'tcx>, unsafety: ast::Unsafety, abi: abi::Abi, decl: &ast::FnDecl) -> ty::BareFnTy<'tcx> { let (bare_fn_ty, _) = <API key>(this, unsafety, abi, None, decl); bare_fn_ty } fn <API key><'a, 'tcx>(this: &AstConv<'tcx>, unsafety: ast::Unsafety, abi: abi::Abi, opt_self_info: Option<SelfInfo<'a, 'tcx>>, decl: &ast::FnDecl) -> (ty::BareFnTy<'tcx>, Option<ty::<API key>>) { debug!("<API key>"); // New region names that appear inside of the arguments of the function // declaration are bound to that function type. let rb = rscope::BindingRscope::new(); // `<API key>` is the region that will be assumed for any // region parameters in the return type. In accordance with the rules for // lifetime elision, we can determine it in two ways. First (determined // here), if self is by-reference, then the implied output region is the // region of the self parameter. let mut <API key> = None; let (self_ty, mut <API key>) = match opt_self_info { None => (None, None), Some(self_info) => { // This type comes from an impl or trait; no late-bound // regions should be present. assert!(!self_info.<API key>.<API key>()); // Figure out and record the explicit self category. let <API key> = <API key>(this, &rb, &self_info); <API key> = Some(<API key>); match <API key> { ty::<API key> => { (None, None) } ty::<API key> => { (Some(self_info.<API key>), None) } ty::<API key>(region, mutability) => { (Some(ty::mk_rptr(this.tcx(), this.tcx().mk_region(region), ty::mt { ty: self_info.<API key>, mutbl: mutability })), Some(region)) } ty::<API key> => { (Some(ty::mk_uniq(this.tcx(), self_info.<API key>)), None) } } } }; // HACK(eddyb) replace the fake self type in the AST with the actual type. let input_params = if self_ty.is_some() { &decl.inputs[1..] } else { &decl.inputs[..] }; let input_tys = input_params.iter().map(|a| ty_of_arg(this, &rb, a, None)); let input_pats: Vec<String> = input_params.iter() .map(|a| pprust::pat_to_string(&*a.pat)) .collect(); let self_and_input_tys: Vec<Ty> = self_ty.into_iter().chain(input_tys).collect(); // Second, if there was exactly one lifetime (either a substitution or a // reference) in the arguments, then any anonymous regions in the output // have that lifetime. let <API key> = if <API key>.is_none() { let input_tys = if self_ty.is_some() { // Skip the first argument if `self` is present. &self_and_input_tys[1..] } else { &self_and_input_tys[..] }; let (ior, lfp) = <API key>(input_tys, input_pats); <API key> = ior; lfp } else { vec![] }; let output_ty = match decl.output { ast::Return(ref output) if output.node == ast::TyInfer => ty::FnConverging(this.ty_infer(output.span)), ast::Return(ref output) => ty::FnConverging(<API key>(this, <API key>, <API key>, &**output)), ast::DefaultReturn(..) => ty::FnConverging(ty::mk_nil(this.tcx())), ast::NoReturn(..) => ty::FnDiverging }; (ty::BareFnTy { unsafety: unsafety, abi: abi, sig: ty::Binder(ty::FnSig { inputs: self_and_input_tys, output: output_ty, variadic: decl.variadic }), }, <API key>) } fn <API key><'a, 'tcx>(this: &AstConv<'tcx>, rscope: &RegionScope, self_info: &SelfInfo<'a, 'tcx>) -> ty::<API key> { return match self_info.explicit_self.node { ast::SelfStatic => ty::<API key>, ast::SelfValue(_) => ty::<API key>, ast::SelfRegion(ref lifetime, mutability, _) => { let region = <API key>(this, rscope, self_info.explicit_self.span, lifetime); ty::<API key>(region, mutability) } ast::SelfExplicit(ref ast_type, _) => { let explicit_type = ast_ty_to_ty(this, rscope, &**ast_type); // We wish to (for now) categorize an explicit self // declaration like `self: SomeType` into either `self`, // `&self`, `&mut self`, or `Box<self>`. We do this here // by some simple pattern matching. A more precise check // is done later in `<API key>()`. // Examples: // impl Foo for &T { // fn method1(self: &&T); // <API key> // fn method2(self: &T); // <API key> // fn method3(self: Box<&T>); // <API key> // // Invalid cases will be caught later by `<API key>`: // fn method_err1(self: &mut T); // <API key> // To do the check we just count the number of "modifiers" // on each type and compare them. If they are the same or // the impl has more, we call it "by value". Otherwise, we // look at the outermost modifier on the method decl and // call it by-ref, by-box as appropriate. For method1, for // example, the impl type has one modifier, but the method // type has two, so we end up with // <API key>. let impl_modifiers = count_modifiers(self_info.<API key>); let method_modifiers = count_modifiers(explicit_type); debug!("<API key>(self_info.<API key>={} \ explicit_type={} \ modifiers=({},{})", self_info.<API key>.repr(this.tcx()), explicit_type.repr(this.tcx()), impl_modifiers, method_modifiers); if impl_modifiers >= method_modifiers { ty::<API key> } else { match explicit_type.sty { ty::ty_rptr(r, mt) => ty::<API key>(*r, mt.mutbl), ty::ty_uniq(_) => ty::<API key>, _ => ty::<API key>, } } } }; fn count_modifiers(ty: Ty) -> usize { match ty.sty { ty::ty_rptr(_, mt) => count_modifiers(mt.ty) + 1, ty::ty_uniq(t) => count_modifiers(t) + 1, _ => 0, } } } pub fn ty_of_closure<'tcx>( this: &AstConv<'tcx>, unsafety: ast::Unsafety, decl: &ast::FnDecl, abi: abi::Abi, expected_sig: Option<ty::FnSig<'tcx>>) -> ty::ClosureTy<'tcx> { debug!("ty_of_closure(expected_sig={})", expected_sig.repr(this.tcx())); // new region names that appear inside of the fn decl are bound to // that function type let rb = rscope::BindingRscope::new(); let input_tys: Vec<_> = decl.inputs.iter().enumerate().map(|(i, a)| { let expected_arg_ty = expected_sig.as_ref().and_then(|e| { // no guarantee that the correct number of expected args // were supplied if i < e.inputs.len() { Some(e.inputs[i]) } else { None } }); ty_of_arg(this, &rb, a, expected_arg_ty) }).collect(); let expected_ret_ty = expected_sig.map(|e| e.output); let is_infer = match decl.output { ast::Return(ref output) if output.node == ast::TyInfer => true, ast::DefaultReturn(..) => true, _ => false }; let output_ty = match decl.output { _ if is_infer && expected_ret_ty.is_some() => expected_ret_ty.unwrap(), _ if is_infer => ty::FnConverging(this.ty_infer(decl.output.span())), ast::Return(ref output) => ty::FnConverging(ast_ty_to_ty(this, &rb, &**output)), ast::DefaultReturn(..) => unreachable!(), ast::NoReturn(..) => ty::FnDiverging }; debug!("ty_of_closure: input_tys={}", input_tys.repr(this.tcx())); debug!("ty_of_closure: output_ty={}", output_ty.repr(this.tcx())); ty::ClosureTy { unsafety: unsafety, abi: abi, sig: ty::Binder(ty::FnSig {inputs: input_tys, output: output_ty, variadic: decl.variadic}), } } Given an existential type like `Foo+'a+Bar`, this routine converts the `'a` and `Bar` intos an `ExistentialBounds` struct. The `main_trait_refs` argument specifies the `Foo` -- it is absent for closures. Eventually this should all be normalized, I think, so that there is no "main trait ref" and instead we just have a flat list of bounds as the existential type. fn <API key><'tcx>( this: &AstConv<'tcx>, rscope: &RegionScope, span: Span, principal_trait_ref: ty::PolyTraitRef<'tcx>, projection_bounds: Vec<ty::<API key><'tcx>>, ast_bounds: &[ast::TyParamBound]) -> ty::ExistentialBounds<'tcx> { let partitioned_bounds = partition_bounds(this.tcx(), span, ast_bounds); <API key>( this, rscope, span, principal_trait_ref, projection_bounds, partitioned_bounds) } fn <API key><'tcx>( this: &AstConv<'tcx>, rscope: &RegionScope, span: Span, ast_bounds: &[ast::TyParamBound]) -> Ty<'tcx> { let mut partitioned_bounds = partition_bounds(this.tcx(), span, &ast_bounds[..]); let mut projection_bounds = Vec::new(); let main_trait_bound = if !partitioned_bounds.trait_bounds.is_empty() { let trait_bound = partitioned_bounds.trait_bounds.remove(0); <API key>(this, rscope, trait_bound, None, &mut projection_bounds) } else { span_err!(this.tcx().sess, span, E0224, "at least one non-builtin trait is required for an object type"); return this.tcx().types.err; }; let bounds = <API key>(this, rscope, span, main_trait_bound.clone(), projection_bounds, partitioned_bounds); make_object_type(this, span, main_trait_bound, bounds) } pub fn <API key><'tcx>( this: &AstConv<'tcx>, rscope: &RegionScope, span: Span, principal_trait_ref: ty::PolyTraitRef<'tcx>, mut projection_bounds: Vec<ty::<API key><'tcx>>, // Empty for boxed closures partitioned_bounds: PartitionedBounds) -> ty::ExistentialBounds<'tcx> { let PartitionedBounds { builtin_bounds, trait_bounds, region_bounds } = partitioned_bounds; if !trait_bounds.is_empty() { let b = &trait_bounds[0]; span_err!(this.tcx().sess, b.trait_ref.path.span, E0225, "only the builtin traits can be used as closure or object bounds"); } let region_bound = <API key>(this, rscope, span, &region_bounds, principal_trait_ref, builtin_bounds); ty::sort_bounds_list(&mut projection_bounds); ty::ExistentialBounds { region_bound: region_bound, builtin_bounds: builtin_bounds, projection_bounds: projection_bounds, } } Given the bounds on an object, determines what single region bound (if any) we can use to summarize this type. The basic idea is that we will use the bound the user provided, if they provided one, and otherwise search the supertypes of trait bounds for region bounds. It may be that we can derive no bound at all, in which case we return `None`. fn <API key><'tcx>( this: &AstConv<'tcx>, rscope: &RegionScope, span: Span, <API key>: &[&ast::Lifetime], principal_trait_ref: ty::PolyTraitRef<'tcx>, builtin_bounds: ty::BuiltinBounds) -> ty::Region { let tcx = this.tcx(); debug!("<API key>(<API key>={:?}, \ principal_trait_ref={}, builtin_bounds={})", <API key>, principal_trait_ref.repr(tcx), builtin_bounds.repr(tcx)); if <API key>.len() > 1 { span_err!(tcx.sess, <API key>[1].span, E0226, "only a single explicit lifetime bound is permitted"); } if <API key>.len() != 0 { // Explicitly specified region bound. Use that. let r = <API key>[0]; return <API key>(tcx, r); } if let Err(ErrorReported) = this.<API key>(span,principal_trait_ref.def_id()) { return ty::ReStatic; } // No explicit region bound specified. Therefore, examine trait // bounds and see if we can derive region bounds from those. let <API key> = <API key>(tcx, &principal_trait_ref, builtin_bounds); // If there are no derived region bounds, then report back that we // can find no region bound. if <API key>.len() == 0 { match rscope.<API key>(span) { Some(r) => { return r; } None => { span_err!(this.tcx().sess, span, E0228, "the lifetime bound for this object type cannot be deduced \ from context; please supply an explicit bound"); return ty::ReStatic; } } } // If any of the derived region bounds are 'static, that is always // the best choice. if <API key>.iter().any(|r| ty::ReStatic == *r) { return ty::ReStatic; } // Determine whether there is exactly one unique region in the set // of derived region bounds. If so, use that. Otherwise, report an // error. let r = <API key>[0]; if <API key>[1..].iter().any(|r1| r != *r1) { span_err!(tcx.sess, span, E0227, "ambiguous lifetime bound, explicit lifetime bound required"); } return r; } Given an object type like `SomeTrait+Send`, computes the lifetime bounds that must hold on the elided self type. These are derived from the declarations of `SomeTrait`, `Send`, and friends they declare `trait SomeTrait : 'static`, for example, then `'static` would appear in the list. The hard work is done by `ty::<API key>`, see that for more information. pub fn <API key><'tcx>( tcx: &ty::ctxt<'tcx>, principal: &ty::PolyTraitRef<'tcx>, others: ty::BuiltinBounds) -> Vec<ty::Region> { // Since we don't actually *know* the self type for an object, // this "open(err)" serves as a kind of dummy standin -- basically // a skolemized type. let open_ty = ty::mk_infer(tcx, ty::FreshTy(0)); // Note that we preserve the overall binding levels here. assert!(!open_ty.<API key>()); let substs = tcx.mk_substs(principal.0.substs.with_self_ty(open_ty)); let trait_refs = vec!(ty::Binder(Rc::new(ty::TraitRef::new(principal.0.def_id, substs)))); let param_bounds = ty::ParamBounds { region_bounds: Vec::new(), builtin_bounds: others, trait_bounds: trait_refs, projection_bounds: Vec::new(), // not relevant to computing region bounds }; let predicates = ty::predicates(tcx, open_ty, &param_bounds); ty::<API key>(tcx, open_ty, predicates) } pub struct PartitionedBounds<'a> { pub builtin_bounds: ty::BuiltinBounds, pub trait_bounds: Vec<&'a ast::PolyTraitRef>, pub region_bounds: Vec<&'a ast::Lifetime>, } Divides a list of bounds from the AST into three groups: builtin bounds (Copy, Sized etc), general trait bounds, and region bounds. pub fn partition_bounds<'a>(tcx: &ty::ctxt, _span: Span, ast_bounds: &'a [ast::TyParamBound]) -> PartitionedBounds<'a> { let mut builtin_bounds = ty::<API key>(); let mut region_bounds = Vec::new(); let mut trait_bounds = Vec::new(); for ast_bound in ast_bounds { match *ast_bound { ast::TraitTyParamBound(ref b, ast::TraitBoundModifier::None) => { match ::lookup_full_def(tcx, b.trait_ref.path.span, b.trait_ref.ref_id) { def::DefTrait(trait_did) => { if ty::<API key>(tcx, trait_did, &mut builtin_bounds) { let segments = &b.trait_ref.path.segments; let parameters = &segments[segments.len() - 1].parameters; if parameters.types().len() > 0 { <API key>(tcx, b.trait_ref.path.span, parameters.types().len(), 0, 0); } if parameters.lifetimes().len() > 0 { <API key>(tcx, b.trait_ref.path.span, parameters.lifetimes().len(), 0); } continue; // success } } _ => { // Not a trait? that's an error, but it'll get // reported later. } } trait_bounds.push(b); } ast::TraitTyParamBound(_, ast::TraitBoundModifier::Maybe) => {} ast::RegionTyParamBound(ref l) => { region_bounds.push(l); } } } PartitionedBounds { builtin_bounds: builtin_bounds, trait_bounds: trait_bounds, region_bounds: region_bounds, } } fn <API key><'tcx>(tcx: &ty::ctxt<'tcx>, bindings: &[ConvertedBinding<'tcx>]) { for binding in bindings.iter().take(1) { span_err!(tcx.sess, binding.span, E0229, "associated type bindings are not allowed here"); } } fn <API key>(tcx: &ty::ctxt, span: Span, supplied: usize, required: usize, accepted: usize) { if supplied < required { let expected = if required < accepted { "expected at least" } else { "expected" }; span_err!(tcx.sess, span, E0243, "wrong number of type arguments: {} {}, found {}", expected, required, supplied); } else if supplied > accepted { let expected = if required < accepted { "expected at most" } else { "expected" }; span_err!(tcx.sess, span, E0244, "wrong number of type arguments: {} {}, found {}", expected, accepted, supplied); } } fn <API key>(tcx: &ty::ctxt, span: Span, number: usize, expected: usize) { span_err!(tcx.sess, span, E0107, "wrong number of lifetime parameters: expected {}, found {}", expected, number); }
package de.uniulm.omi.cloudiator.sword.multicloud.service; import com.google.common.base.Supplier; import com.google.common.collect.ImmutableSet; import com.google.inject.Inject; import de.uniulm.omi.cloudiator.sword.domain.Cloud; import de.uniulm.omi.cloudiator.sword.domain.Pricing; import de.uniulm.omi.cloudiator.sword.multicloud.pricing.<API key>; import de.uniulm.omi.cloudiator.sword.service.PricingService; import java.util.*; import static com.google.common.base.Preconditions.checkNotNull; public class <API key> implements PricingService { private final CloudRegistry cloudRegistry; @Inject private <API key> <API key>; @Inject public <API key>(CloudRegistry cloudRegistry) { this.cloudRegistry = checkNotNull(cloudRegistry, "cloudRegistry is null"); } @Override public Iterable<Pricing> listPricing() { /*final ImmutableSet.Builder<Pricing> builder = ImmutableSet.builder(); Optional<Cloud> awsCloud = cloudRegistry.list().stream().filter(cloud -> cloud.api().providerName().equals("aws-ec2")).findFirst(); if(awsCloud.isPresent()) { Supplier<Set<Pricing>> awsPricingSupplier = <API key>.<API key>(awsCloud.get().credential()); builder.addAll(awsPricingSupplier.get()); } return builder.build();*/ final ImmutableSet.Builder<Pricing> builder = ImmutableSet.builder(); cloudRegistry .list() .stream() .filter(cloud -> cloud.api().providerName().equals("aws-ec2")) .findFirst() .ifPresent(cloud -> builder.addAll(<API key>.<API key>(cloud.credential()).get())); return builder.build(); } }
<! Generated template for the PicturePage page. See http://ionicframework.com/docs/components/#navigation for more info on Ionic pages and navigation. <ion-header> <ion-navbar> <div class="adjust-horizontal inline"> <button class="inline-right" (click)="closeModal()" ion-button clear> Cerrar</button> </div> </ion-navbar> </ion-header> <ion-content padding> <ion-slides *ngIf="fileList && fileList.length>0" pager="true" zoom="true"> <ion-slide *ngFor="let file of fileList"> <img [src]="ext+'/containers/'+file.container+'/download/'+file.name" alt=""> </ion-slide> </ion-slides> </ion-content>
<!-- This file is machine generated: DO NOT EDIT! --> # Sparse Tensors Note: Functions taking `Tensor` arguments can also take anything accepted by [`tf.convert_to_tensor`](framework.md#convert_to_tensor). [TOC] ## Sparse Tensor Representation TensorFlow supports a `SparseTensor` representation for data that is sparse in multiple dimensions. Contrast this representation with `IndexedSlices`, which is efficient for representing tensors that are sparse in their first dimension, and dense along all other dimensions. - - - `class tf.SparseTensor` {#SparseTensor} Represents a sparse tensor. TensorFlow represents a sparse tensor as three separate dense tensors: `indices`, `values`, and `shape`. In Python, the three tensors are collected into a `SparseTensor` class for ease of use. If you have separate `indices`, `values`, and `shape` tensors, wrap them in a `SparseTensor` object before passing to the ops below. Concretely, the sparse tensor `SparseTensor(indices, values, shape)` is * `indices`: A 2-D int64 tensor of shape `[N, ndims]`. * `values`: A 1-D tensor of any type and shape `[N]`. * `shape`: A 1-D int64 tensor of shape `[ndims]`. where `N` and `ndims` are the number of values, and number of dimensions in the `SparseTensor` respectively. The corresponding dense tensor satisfies python dense.shape = shape dense[tuple(indices[i])] = values[i] By convention, `indices` should be sorted in row-major order (or equivalently lexicographic order on the tuples `indices[i]`). This is not enforced when `SparseTensor` objects are constructed, but most ops assume correct ordering. If the ordering of sparse tensor `st` is wrong, a fixed version can be obtained by calling `tf.sparse_reorder(st)`. Example: The sparse tensor python SparseTensor(indices=[[0, 0], [1, 2]], values=[1, 2], shape=[3, 4]) represents the dense tensor python [[1, 0, 0, 0] [0, 0, 2, 0] [0, 0, 0, 0]] - - - # `tf.SparseTensor.__init__(indices, values, shape)` {#SparseTensor.__init__} Creates a `SparseTensor`. ## Args: * <b>`indices`</b>: A 2-D int64 tensor of shape `[N, ndims]`. * <b>`values`</b>: A 1-D tensor of any type and shape `[N]`. * <b>`shape`</b>: A 1-D int64 tensor of shape `[ndims]`. ## Returns: A `SparseTensor` - - - # `tf.SparseTensor.indices` {#SparseTensor.indices} The indices of non-zero values in the represented dense tensor. ## Returns: A 2-D Tensor of int64 with shape `[N, ndims]`, where `N` is the number of non-zero values in the tensor, and `ndims` is the rank. - - - # `tf.SparseTensor.values` {#SparseTensor.values} The non-zero values in the represented dense tensor. ## Returns: A 1-D Tensor of any data type. - - - # `tf.SparseTensor.shape` {#SparseTensor.shape} A 1-D Tensor of int64 representing the shape of the dense tensor. - - - # `tf.SparseTensor.dtype` {#SparseTensor.dtype} The `DType` of elements in this tensor. - - - # `tf.SparseTensor.op` {#SparseTensor.op} The `Operation` that produces `values` as an output. - - - # `tf.SparseTensor.graph` {#SparseTensor.graph} The `Graph` that contains the index, value, and shape tensors. # Other Methods - - - # `tf.SparseTensor.eval(feed_dict=None, session=None)` {#SparseTensor.eval} Evaluates this sparse tensor in a `Session`. Calling this method will execute all preceding operations that produce the inputs needed for the operation that produces this tensor. *N.B.* Before invoking `SparseTensor.eval()`, its graph must have been launched in a session, and either a default session must be available, or `session` must be specified explicitly. ## Args: * <b>`feed_dict`</b>: A dictionary that maps `Tensor` objects to feed values. See [`Session.run()`](../../api_docs/python/client.md#Session.run) for a description of the valid feed values. * <b>`session`</b>: (Optional.) The `Session` to be used to evaluate this sparse tensor. If none, the default session will be used. ## Returns: A `SparseTensorValue` object. - - - # `tf.SparseTensor.from_value(cls, sparse_tensor_value)` {#SparseTensor.from_value} - - - `class tf.SparseTensorValue` {#SparseTensorValue} SparseTensorValue(indices, values, shape) - - - # `tf.SparseTensorValue.indices` {#SparseTensorValue.indices} Alias for field number 0 - - - # `tf.SparseTensorValue.shape` {#SparseTensorValue.shape} Alias for field number 2 - - - # `tf.SparseTensorValue.values` {#SparseTensorValue.values} Alias for field number 1 ## Conversion - - - `tf.sparse_to_dense(sparse_indices, output_shape, sparse_values, default_value=0, validate_indices=True, name=None)` {#sparse_to_dense} Converts a sparse representation into a dense tensor. Builds an array `dense` with shape `output_shape` such that python # If sparse_indices is scalar dense[i] = (i == sparse_indices ? sparse_values : default_value) # If sparse_indices is a vector, then for each i dense[sparse_indices[i]] = sparse_values[i] # If sparse_indices is an n by d matrix, then for each i in [0, n) dense[sparse_indices[i][0], ..., sparse_indices[i][d-1]] = sparse_values[i] All other values in `dense` are set to `default_value`. If `sparse_values` is a scalar, all sparse indices are set to this single value. Indices should be sorted in lexicographic order, and indices must not contain any repeats. If `validate_indices` is True, these properties are checked during execution. ## Args: * <b>`sparse_indices`</b>: A 0-D, 1-D, or 2-D `Tensor` of type `int32` or `int64`. `sparse_indices[i]` contains the complete index where `sparse_values[i]` will be placed. * <b>`output_shape`</b>: A 1-D `Tensor` of the same type as `sparse_indices`. Shape of the dense output tensor. * <b>`sparse_values`</b>: A 0-D or 1-D `Tensor`. Values corresponding to each row of `sparse_indices`, or a scalar value to be used for all sparse indices. * <b>`default_value`</b>: A 0-D `Tensor` of the same type as `sparse_values`. Value to set for indices not specified in `sparse_indices`. Defaults to zero. * <b>`validate_indices`</b>: A boolean value. If True, indices are checked to make sure they are sorted in lexicographic order and that there are no repeats. * <b>`name`</b>: A name for the operation (optional). ## Returns: Dense `Tensor` of shape `output_shape`. Has the same type as `sparse_values`. - - - `tf.<API key>(sp_input, default_value=0, validate_indices=True, name=None)` {#<API key>} Converts a `SparseTensor` into a dense tensor. This op is a convenience wrapper around `sparse_to_dense` for `SparseTensor`s. For example, if `sp_input` has shape `[3, 5]` and non-empty string values: [0, 1]: a [0, 3]: b [2, 0]: c and `default_value` is `x`, then the output will be a dense `[3, 5]` string tensor with values: [[x a x b x] [x x x x x] [c x x x x]] Indices must be without repeats. This is only tested if validate_indices is True. ## Args: * <b>`sp_input`</b>: The input `SparseTensor`. * <b>`default_value`</b>: Scalar value to set for indices not specified in `sp_input`. Defaults to zero. * <b>`validate_indices`</b>: A boolean value. If `True`, indices are checked to make sure they are sorted in lexicographic order and that there are no repeats. * <b>`name`</b>: A name prefix for the returned tensors (optional). ## Returns: A dense tensor with shape `sp_input.shape` and values specified by the non-empty values in `sp_input`. Indices not in `sp_input` are assigned `default_value`. ## Raises: * <b>`TypeError`</b>: If `sp_input` is not a `SparseTensor`. - - - `tf.sparse_to_indicator(sp_input, vocab_size, name=None)` {#sparse_to_indicator} Converts a `SparseTensor` of ids into a dense bool indicator tensor. The last dimension of `sp_input.indices` is discarded and replaced with the values of `sp_input`. If `sp_input.shape = [D0, D1, ..., Dn, K]`, then `output.shape = [D0, D1, ..., Dn, vocab_size]`, where output[d_0, d_1, ..., d_n, sp_input[d_0, d_1, ..., d_n, k]] = True and False elsewhere in `output`. For example, if `sp_input.shape = [2, 3, 4]` with non-empty values: [0, 0, 0]: 0 [0, 1, 0]: 10 [1, 0, 3]: 103 [1, 1, 2]: 150 [1, 1, 3]: 149 [1, 1, 4]: 150 [1, 2, 1]: 121 and `vocab_size = 200`, then the output will be a `[2, 3, 200]` dense bool tensor with False everywhere except at positions (0, 0, 0), (0, 1, 10), (1, 0, 103), (1, 1, 149), (1, 1, 150), (1, 2, 121). Note that repeats are allowed in the input SparseTensor. This op is useful for converting `SparseTensor`s into dense formats for compatibility with ops that expect dense tensors. The input `SparseTensor` must be in row-major order. ## Args: * <b>`sp_input`</b>: A `SparseTensor` with `values` property of type `int32` or `int64`. * <b>`vocab_size`</b>: A scalar int64 Tensor (or Python int) containing the new size of the last dimension, `all(0 <= sp_input.values < vocab_size)`. * <b>`name`</b>: A name prefix for the returned tensors (optional) ## Returns: A dense bool indicator tensor representing the indices with specified value. ## Raises: * <b>`TypeError`</b>: If `sp_input` is not a `SparseTensor`. - - - `tf.sparse_merge(sp_ids, sp_values, vocab_size, name=None)` {#sparse_merge} Combines a batch of feature ids and values into a single `SparseTensor`. The most common use case for this function occurs when feature ids and their corresponding values are stored in `Example` protos on disk. `parse_example` will return a batch of ids and a batch of values, and this function joins them into a single logical `SparseTensor` for use in functions such as `<API key>`, `sparse_to_dense`, etc. The `SparseTensor` returned by this function has the following properties: - `indices` is equivalent to `sp_ids.indices` with the last dimension discarded and replaced with `sp_ids.values`. - `values` is simply `sp_values.values`. - If `sp_ids.shape = [D0, D1, ..., Dn, K]`, then `output.shape = [D0, D1, ..., Dn, vocab_size]`. For example, consider the following feature vectors: vector1 = [-3, 0, 0, 0, 0, 0] vector2 = [ 0, 1, 0, 4, 1, 0] vector3 = [ 5, 0, 0, 9, 0, 0] These might be stored sparsely in the following Example protos by storing only the feature ids (column number if the vectors are treated as a matrix) of the non-zero elements and the corresponding values: examples = [Example(features={ "ids": Feature(int64_list=Int64List(value=[0])), "values": Feature(float_list=FloatList(value=[-3]))}), Example(features={ "ids": Feature(int64_list=Int64List(value=[1, 4, 3])), "values": Feature(float_list=FloatList(value=[1, 1, 4]))}), Example(features={ "ids": Feature(int64_list=Int64List(value=[0, 3])), "values": Feature(float_list=FloatList(value=[5, 9]))})] The result of calling parse_example on these examples will produce a dictionary with entries for "ids" and "values". Passing those two objects to this function along with vocab_size=6, will produce a `SparseTensor` that sparsely represents all three instances. Namely, the `indices` property will contain the coordinates of the non-zero entries in the feature matrix (the first dimension is the row number in the matrix, i.e., the index within the batch, and the second dimension is the column number, i.e., the feature id); `values` will contain the actual values. `shape` will be the shape of the original matrix, i.e., (3, 6). For our example above, the output will be equal to: SparseTensor(indices=[[0, 0], [1, 1], [1, 3], [1, 4], [2, 0], [2, 3]], values=[-3, 1, 4, 1, 5, 9], shape=[3, 6]) ## Args: * <b>`sp_ids`</b>: A `SparseTensor` with `values` property of type `int32` or `int64`. * <b>`sp_values`</b>: A`SparseTensor` of any type. * <b>`vocab_size`</b>: A scalar `int64` Tensor (or Python int) containing the new size of the last dimension, `all(0 <= sp_ids.values < vocab_size)`. * <b>`name`</b>: A name prefix for the returned tensors (optional) ## Returns: A `SparseTensor` compactly representing a batch of feature ids and values, useful for passing to functions that expect such a `SparseTensor`. ## Raises: * <b>`TypeError`</b>: If `sp_ids` or `sp_values` are not a `SparseTensor`. ## Manipulation - - - `tf.sparse_concat(concat_dim, sp_inputs, name=None, <API key>=False)` {#sparse_concat} Concatenates a list of `SparseTensor` along the specified dimension. Concatenation is with respect to the dense versions of each sparse input. It is assumed that each inputs is a `SparseTensor` whose elements are ordered along increasing dimension number. If <API key> is False, all inputs' shapes must match, except for the concat dimension. If <API key> is True, then inputs' shapes are allowd to vary among all inputs. The `indices`, `values`, and `shapes` lists must have the same length. If <API key> is False, then the output shape is identical to the inputs', except along the concat dimension, where it is the sum of the inputs' sizes along that dimension. If <API key> is True, then the output shape along the non-concat dimensions will be expand to be the largest among all inputs, and it is the sum of the inputs sizes along the concat dimension. The output elements will be resorted to preserve the sort order along increasing dimension number. This op runs in `O(M log M)` time, where `M` is the total number of non-empty values across all inputs. This is due to the need for an internal sort in order to concatenate efficiently across an arbitrary dimension. For example, if `concat_dim = 1` and the inputs are sp_inputs[0]: shape = [2, 3] [0, 2]: "a" [1, 0]: "b" [1, 1]: "c" sp_inputs[1]: shape = [2, 4] [0, 1]: "d" [0, 2]: "e" then the output will be shape = [2, 7] [0, 2]: "a" [0, 4]: "d" [0, 5]: "e" [1, 0]: "b" [1, 1]: "c" Graphically this is equivalent to doing [ a] concat [ d e ] = [ a d e ] [b c ] [ ] [b c ] Another example, if 'concat_dim = 1' and the inputs are sp_inputs[0]: shape = [3, 3] [0, 2]: "a" [1, 0]: "b" [2, 1]: "c" sp_inputs[1]: shape = [2, 4] [0, 1]: "d" [0, 2]: "e" if <API key> = False, this will result in an error. But if <API key> = True, this will result in: shape = [3, 7] [0, 2]: "a" [0, 4]: "d" [0, 5]: "e" [1, 0]: "b" [2, 1]: "c" Graphically this is equivalent to doing [ a] concat [ d e ] = [ a d e ] [b ] [ ] [b ] [ c ] [ c ] ## Args: * <b>`concat_dim`</b>: Dimension to concatenate along. * <b>`sp_inputs`</b>: List of `SparseTensor` to concatenate. * <b>`name`</b>: A name prefix for the returned tensors (optional). * <b>`<API key>`</b>: Whether to allow the expansion in the non-concat dimensions. Defaulted to False. ## Returns: A `SparseTensor` with the concatenated output. ## Raises: * <b>`TypeError`</b>: If `sp_inputs` is not a list of `SparseTensor`. - - - `tf.sparse_reorder(sp_input, name=None)` {#sparse_reorder} Reorders a `SparseTensor` into the canonical, row-major ordering. Note that by convention, all sparse ops preserve the canonical ordering along increasing dimension number. The only time ordering can be violated is during manual manipulation of the indices and values to add entries. Reordering does not affect the shape of the `SparseTensor`. For example, if `sp_input` has shape `[4, 5]` and `indices` / `values`: [0, 3]: b [0, 1]: a [3, 1]: d [2, 0]: c then the output will be a `SparseTensor` of shape `[4, 5]` and `indices` / `values`: [0, 1]: a [0, 3]: b [2, 0]: c [3, 1]: d ## Args: * <b>`sp_input`</b>: The input `SparseTensor`. * <b>`name`</b>: A name prefix for the returned tensors (optional) ## Returns: A `SparseTensor` with the same shape and non-empty values, but in canonical ordering. ## Raises: * <b>`TypeError`</b>: If `sp_input` is not a `SparseTensor`. - - - `tf.sparse_reshape(sp_input, shape, name=None)` {#sparse_reshape} Reshapes a `SparseTensor` to represent values in a new dense shape. This operation has the same semantics as `reshape` on the represented dense tensor. The indices of non-empty values in `sp_input` are recomputed based on the new dense shape, and a new `SparseTensor` is returned containing the new indices and new shape. The order of non-empty values in `sp_input` is unchanged. If one component of `shape` is the special value -1, the size of that dimension is computed so that the total dense size remains constant. At most one component of `shape` can be -1. The number of dense elements implied by `shape` must be the same as the number of dense elements originally represented by `sp_input`. For example, if `sp_input` has shape `[2, 3, 6]` and `indices` / `values`: [0, 0, 0]: a [0, 0, 1]: b [0, 1, 0]: c [1, 0, 0]: d [1, 2, 3]: e and `shape` is `[9, -1]`, then the output will be a `SparseTensor` of shape `[9, 4]` and `indices` / `values`: [0, 0]: a [0, 1]: b [1, 2]: c [4, 2]: d [8, 1]: e ## Args: * <b>`sp_input`</b>: The input `SparseTensor`. * <b>`shape`</b>: A 1-D (vector) int64 `Tensor` specifying the new dense shape of the represented `SparseTensor`. * <b>`name`</b>: A name prefix for the returned tensors (optional) ## Returns: A `SparseTensor` with the same non-empty values but with indices calculated by the new dense shape. ## Raises: * <b>`TypeError`</b>: If `sp_input` is not a `SparseTensor`. - - - `tf.sparse_split(split_dim, num_split, sp_input, name=None)` {#sparse_split} Split a `SparseTensor` into `num_split` tensors along `split_dim`. If the `sp_input.shape[split_dim]` is not an integer multiple of `num_split` each slice starting from 0:`shape[split_dim] % num_split` gets extra one dimension. For example, if `split_dim = 1` and `num_split = 2` and the input is: input_tensor = shape = [2, 7] [ a d e ] [b c ] Graphically the output tensors are: output_tensor[0] = [ a ] [b c ] output_tensor[1] = [ d e ] [ ] ## Args: * <b>`split_dim`</b>: A 0-D `int32` `Tensor`. The dimension along which to split. * <b>`num_split`</b>: A Python integer. The number of ways to split. * <b>`sp_input`</b>: The `SparseTensor` to split. * <b>`name`</b>: A name for the operation (optional). ## Returns: `num_split` `SparseTensor` objects resulting from splitting `value`. ## Raises: * <b>`TypeError`</b>: If `sp_input` is not a `SparseTensor`. - - - `tf.sparse_retain(sp_input, to_retain)` {#sparse_retain} Retains specified non-empty values within a `SparseTensor`. For example, if `sp_input` has shape `[4, 5]` and 4 non-empty string values: [0, 1]: a [0, 3]: b [2, 0]: c [3, 1]: d and `to_retain = [True, False, False, True]`, then the output will be a `SparseTensor` of shape `[4, 5]` with 2 non-empty values: [0, 1]: a [3, 1]: d ## Args: * <b>`sp_input`</b>: The input `SparseTensor` with `N` non-empty elements. * <b>`to_retain`</b>: A bool vector of length `N` with `M` true values. ## Returns: A `SparseTensor` with the same shape as the input and `M` non-empty elements corresponding to the true positions in `to_retain`. ## Raises: * <b>`TypeError`</b>: If `sp_input` is not a `SparseTensor`. - - - `tf.sparse_reset_shape(sp_input, new_shape=None)` {#sparse_reset_shape} Resets the shape of a `SparseTensor` with indices and values unchanged. If `new_shape` is None, returns a copy of `sp_input` with its shape reset to the tight bounding box of `sp_input`. If `new_shape` is provided, then it must be larger or equal in all dimensions compared to the shape of `sp_input`. When this condition is met, the returned SparseTensor will have its shape reset to `new_shape` and its indices and values unchanged from that of `sp_input.` For example: Consider a `sp_input` with shape [2, 3, 5]: [0, 0, 1]: a [0, 1, 0]: b [0, 2, 2]: c [1, 0, 3]: d - It is an error to set `new_shape` as [3, 7] since this represents a rank-2 tensor while `sp_input` is rank-3. This is either a ValueError during graph construction (if both shapes are known) or an OpError during run time. - Setting `new_shape` as [2, 3, 6] will be fine as this shape is larger or eqaul in every dimension compared to the original shape [2, 3, 5]. - On the other hand, setting new_shape as [2, 3, 4] is also an error: The third dimension is smaller than the original shape [2, 3, 5] (and an `<API key>` will be raised). - If `new_shape` is None, the returned SparseTensor will have a shape [2, 3, 4], which is the tight bounding box of `sp_input`. ## Args: * <b>`sp_input`</b>: The input `SparseTensor`. * <b>`new_shape`</b>: None or a vector representing the new shape for the returned `SpraseTensor`. ## Returns: A `SparseTensor` indices and values unchanged from `input_sp`. Its shape is `new_shape` if that is set. Otherwise it is the tight bounding box of `input_sp` ## Raises: * <b>`TypeError`</b>: If `sp_input` is not a `SparseTensor`. * <b>`ValueError`</b>: If `new_shape` represents a tensor with a different rank from that of `sp_input` (if shapes are known when graph is constructed). * <b>`OpError`</b>: - If `new_shape` has dimension sizes that are too small. - If shapes are not known during graph construction time, and during run time it is found out that the ranks do not match. - - - `tf.<API key>(sp_input, default_value, name=None)` {#<API key>} Fills empty rows in the input 2-D `SparseTensor` with a default value. This op adds entries with the specified `default_value` at index `[row, 0]` for any row in the input that does not already have a value. For example, suppose `sp_input` has shape `[5, 6]` and non-empty values: [0, 1]: a [0, 3]: b [2, 0]: c [3, 1]: d Rows 1 and 4 are empty, so the output will be of shape `[5, 6]` with values: [0, 1]: a [0, 3]: b [1, 0]: default_value [2, 0]: c [3, 1]: d [4, 0]: default_value Note that the input may have empty columns at the end, with no effect on this op. The output `SparseTensor` will be in row-major order and will have the same shape as the input. This op also returns an indicator vector such that empty_row_indicator[i] = True iff row i was an empty row. ## Args: * <b>`sp_input`</b>: A `SparseTensor` with shape `[N, M]`. * <b>`default_value`</b>: The value to fill for empty rows, with the same type as `sp_input.` * <b>`name`</b>: A name prefix for the returned tensors (optional) ## Returns: * <b>`sp_ordered_output`</b>: A `SparseTensor` with shape `[N, M]`, and with all empty rows filled in with `default_value`. * <b>`empty_row_indicator`</b>: A bool vector of length `N` indicating whether each input row was empty. ## Raises: * <b>`TypeError`</b>: If `sp_input` is not a `SparseTensor`. ## Reduction - - - `tf.sparse_reduce_sum(sp_input, reduction_axes=None, keep_dims=False)` {#sparse_reduce_sum} Computes the sum of elements across dimensions of a SparseTensor. This Op takes a SparseTensor and is the sparse counterpart to `tf.reduce_sum()`. In particular, this Op also returns a dense `Tensor` instead of a sparse one. Reduces `sp_input` along the dimensions given in `reduction_axes`. Unless `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in `reduction_axes`. If `keep_dims` is true, the reduced dimensions are retained with length 1. If `reduction_axes` has no entries, all dimensions are reduced, and a tensor with a single element is returned. Additionally, the axes can be negative, similar to the indexing rules in Python. For example: python # 'x' represents [[1, ?, 1] # where ? is implictly-zero. tf.sparse_reduce_sum(x) ==> 3 tf.sparse_reduce_sum(x, 0) ==> [1, 1, 1] tf.sparse_reduce_sum(x, 1) ==> [2, 1] # Can also use -1 as the axis. tf.sparse_reduce_sum(x, 1, keep_dims=True) ==> [[2], [1]] tf.sparse_reduce_sum(x, [0, 1]) ==> 3 ## Args: * <b>`sp_input`</b>: The SparseTensor to reduce. Should have numeric type. * <b>`reduction_axes`</b>: The dimensions to reduce; list or scalar. If `None` (the default), reduces all dimensions. * <b>`keep_dims`</b>: If true, retain reduced dimensions with length 1. ## Returns: The reduced Tensor. ## Math Operations - - - `tf.sparse_add(a, b, thresh=0)` {#sparse_add} Adds two tensors, at least one of each is a `SparseTensor`. If one `SparseTensor` and one `Tensor` are passed in, returns a `Tensor`. If both arguments are `SparseTensor`s, this returns a `SparseTensor`. The order of arguments does not matter. Use vanilla `tf.add()` for adding two dense `Tensor`s. The indices of any input `SparseTensor` are assumed ordered in standard lexicographic order. If this is not the case, before this step run `SparseReorder` to restore index ordering. If both arguments are sparse, we perform "clipping" as follows. By default, if two values sum to zero at some index, the output `SparseTensor` would still include that particular location in its index, storing a zero in the corresponding value slot. To override this, callers can specify `thresh`, indicating that if the sum has a magnitude strictly smaller than `thresh`, its corresponding value and index would then not be included. In particular, `thresh == 0.0` (default) means everything is kept and actual thresholding happens only for a positive value. For example, suppose the logical sum of two sparse operands is (densified): [ 2] [.1 0] [ 6 -.2] Then, - thresh == 0 (the default): all 5 index/value pairs will be returned. - thresh == 0.11: only .1 and 0 will vanish, and the remaining three index/value pairs will be returned. - thresh == 0.21: .1, 0, and -.2 will vanish. ## Args: * <b>`a`</b>: The first operand; `SparseTensor` or `Tensor`. * <b>`b`</b>: The second operand; `SparseTensor` or `Tensor`. At least one operand must be sparse. * <b>`thresh`</b>: A 0-D `Tensor`. The magnitude threshold that determines if an output value/index pair takes space. Its dtype should match that of the values if they are real; if the latter are complex64/complex128, then the dtype should be float32/float64, correspondingly. ## Returns: A `SparseTensor` or a `Tensor`, representing the sum. ## Raises: * <b>`TypeError`</b>: If both `a` and `b` are `Tensor`s. Use `tf.add()` instead. - - - `tf.sparse_softmax(sp_input, name=None)` {#sparse_softmax} Applies softmax to a batched N-D `SparseTensor`. The inputs represent an N-D SparseTensor with logical shape `[..., B, C]` (where `N >= 2`), and with indices sorted in the canonical lexicographic order. This op is equivalent to applying the normal `tf.nn.softmax()` to each innermost logical submatrix with shape `[B, C]`, but with the catch that *the implicitly zero elements do not participate*. Specifically, the algorithm is equivalent to: (1) Applies `tf.nn.softmax()` to a densified view of each innermost submatrix with shape `[B, C]`, along the size-C dimension; (2) Masks out the original implicitly-zero locations; (3) Renormalizes the remaining elements. Hence, the `SparseTensor` result has exactly the same non-zero indices and shape. Example: python # First batch: # Second batch: # [e e ] shape = [2, 2, 2] # 3-D SparseTensor values = np.asarray([[[0., np.e], [1., 0.]], [[np.e, 0.], [np.e, np.e]]]) indices = np.vstack(np.where(values)).astype(np.int64).T result = tf.sparse_softmax(tf.SparseTensor(indices, values, shape)) # ...returning a 3-D SparseTensor, equivalent to: # [? 1.] [1 ?] # [1. ? ] and [.5 .5] # where ? means implicitly zero. ## Args: * <b>`sp_input`</b>: N-D `SparseTensor`, where `N >= 2`. * <b>`name`</b>: optional name of the operation. ## Returns: * <b>`output`</b>: N-D `SparseTensor` representing the results. - - - `tf.<API key>(sp_a, b, adjoint_a=False, adjoint_b=False, name=None)` {#<API key>} Multiply SparseTensor (of rank 2) "A" by dense matrix "B". No validity checking is performed on the indices of A. However, the following input format is recommended for optimal behavior: if adjoint_a == false: A should be sorted in lexicographically increasing order. Use sparse_reorder if you're not sure. if adjoint_a == true: A should be sorted in order of increasing dimension 1 (i.e., "column major" order instead of "row major" order). Deciding when to use <API key> vs. matmul(sp_a=True): There are a number of questions to ask in the decision process, including: * Will the SparseTensor A fit in memory if densified? * Is the column count of the product large (>> 1)? * Is the density of A larger than approximately 15%? If the answer to several of these questions is yes, consider converting the SparseTensor to a dense one and using tf.matmul with sp_a=True. This operation tends to perform well when A is more sparse, if the column size of the product is small (e.g. matrix-vector multiplication), if sp_a.shape takes on large values. Below is a rough speed comparison between <API key>, labelled 'sparse', and matmul(sp_a=True), labelled 'dense'. For purposes of the comparison, the time spent converting from a SparseTensor to a dense Tensor is not included, so it is overly conservative with respect to the time ratio. Benchmark system: CPU: Intel Ivybridge with HyperThreading (6 cores) dL1:32KB dL2:256KB dL3:12MB GPU: NVidia Tesla k40c Compiled with: -c opt --config=cuda --copt=-mavx tensorflow/python/<API key> --benchmarks A sparse [m, k] with % nonzero values between 1% and 80% B dense [k, n] % nnz n gpu m k dt(dense) dt(sparse) dt(sparse)/dt(dense) 0.01 1 True 100 100 0.000221166 0.00010154 0.459112 0.01 1 True 100 1000 0.00033858 0.000109275 0.322745 0.01 1 True 1000 100 0.000310557 9.85661e-05 0.317385 0.01 1 True 1000 1000 0.0008721 0.000100875 0.115669 0.01 1 False 100 100 0.000208085 0.000107603 0.51711 0.01 1 False 100 1000 0.000327112 9.51118e-05 0.290762 0.01 1 False 1000 100 0.000308222 0.00010345 0.335635 0.01 1 False 1000 1000 0.000865721 0.000101397 0.117124 0.01 10 True 100 100 0.000218522 0.000105537 0.482958 0.01 10 True 100 1000 0.000340882 0.000111641 0.327506 0.01 10 True 1000 100 0.000315472 0.000117376 0.372064 0.01 10 True 1000 1000 0.000905493 0.000123263 0.136128 0.01 10 False 100 100 0.000221529 9.82571e-05 0.44354 0.01 10 False 100 1000 0.000330552 0.000112615 0.340687 0.01 10 False 1000 100 0.000341277 0.000114097 0.334324 0.01 10 False 1000 1000 0.000819944 0.000120982 0.147549 0.01 25 True 100 100 0.000207806 0.000105977 0.509981 0.01 25 True 100 1000 0.000322879 0.00012921 0.400181 0.01 25 True 1000 100 0.00038262 0.000141583 0.370035 0.01 25 True 1000 1000 0.000865438 0.000202083 0.233504 0.01 25 False 100 100 0.000209401 0.000104696 0.499979 0.01 25 False 100 1000 0.000321161 0.000130737 0.407076 0.01 25 False 1000 100 0.000377012 0.000136801 0.362856 0.01 25 False 1000 1000 0.000861125 0.00020272 0.235413 0.2 1 True 100 100 0.000206952 9.69219e-05 0.46833 0.2 1 True 100 1000 0.000348674 0.000147475 0.422959 0.2 1 True 1000 100 0.000336908 0.00010122 0.300439 0.2 1 True 1000 1000 0.001022 0.000203274 0.198898 0.2 1 False 100 100 0.000207532 9.5412e-05 0.459746 0.2 1 False 100 1000 0.000356127 0.000146824 0.41228 0.2 1 False 1000 100 0.000322664 0.000100918 0.312764 0.2 1 False 1000 1000 0.000998987 0.000203442 0.203648 0.2 10 True 100 100 0.000211692 0.000109903 0.519165 0.2 10 True 100 1000 0.000372819 0.000164321 0.440753 0.2 10 True 1000 100 0.000338651 0.000144806 0.427596 0.2 10 True 1000 1000 0.00108312 0.000758876 0.70064 0.2 10 False 100 100 0.000215727 0.000110502 0.512231 0.2 10 False 100 1000 0.000375419 0.0001613 0.429653 0.2 10 False 1000 100 0.000336999 0.000145628 0.432132 0.2 10 False 1000 1000 0.00110502 0.000762043 0.689618 0.2 25 True 100 100 0.000218705 0.000129913 0.594009 0.2 25 True 100 1000 0.000394794 0.00029428 0.745402 0.2 25 True 1000 100 0.000404483 0.0002693 0.665788 0.2 25 True 1000 1000 0.0012002 0.00194494 1.62052 0.2 25 False 100 100 0.000221494 0.0001306 0.589632 0.2 25 False 100 1000 0.000396436 0.000297204 0.74969 0.2 25 False 1000 100 0.000409346 0.000270068 0.659754 0.2 25 False 1000 1000 0.00121051 0.00193737 1.60046 0.5 1 True 100 100 0.000214981 9.82111e-05 0.456836 0.5 1 True 100 1000 0.000415328 0.000223073 0.537101 0.5 1 True 1000 100 0.000358324 0.00011269 0.314492 0.5 1 True 1000 1000 0.00137612 0.000437401 0.317851 0.5 1 False 100 100 0.000224196 0.000101423 0.452386 0.5 1 False 100 1000 0.000400987 0.000223286 0.556841 0.5 1 False 1000 100 0.000368825 0.00011224 0.304318 0.5 1 False 1000 1000 0.00136036 0.000429369 0.31563 0.5 10 True 100 100 0.000222125 0.000112308 0.505608 0.5 10 True 100 1000 0.000461088 0.00032357 0.701753 0.5 10 True 1000 100 0.000394624 0.000225497 0.571422 0.5 10 True 1000 1000 0.00158027 0.00190898 1.20801 0.5 10 False 100 100 0.000232083 0.000114978 0.495418 0.5 10 False 100 1000 0.000454574 0.000324632 0.714146 0.5 10 False 1000 100 0.000379097 0.000227768 0.600817 0.5 10 False 1000 1000 0.00160292 0.00190168 1.18638 0.5 25 True 100 100 0.00023429 0.000151703 0.647501 0.5 25 True 100 1000 0.000497462 0.000598873 1.20386 0.5 25 True 1000 100 0.000460778 0.000557038 1.20891 0.5 25 True 1000 1000 0.00170036 0.00467336 2.74845 0.5 25 False 100 100 0.000228981 0.000155334 0.678371 0.5 25 False 100 1000 0.000496139 0.000620789 1.25124 0.5 25 False 1000 100 0.00045473 0.000551528 1.21287 0.5 25 False 1000 1000 0.00171793 0.00467152 2.71927 0.8 1 True 100 100 0.000222037 0.000105301 0.47425 0.8 1 True 100 1000 0.000410804 0.000329327 0.801664 0.8 1 True 1000 100 0.000349735 0.000131225 0.375212 0.8 1 True 1000 1000 0.00139219 0.000677065 0.48633 0.8 1 False 100 100 0.000214079 0.000107486 0.502085 0.8 1 False 100 1000 0.000413746 0.000323244 0.781261 0.8 1 False 1000 100 0.000348983 0.000131983 0.378193 0.8 1 False 1000 1000 0.00136296 0.000685325 0.50282 0.8 10 True 100 100 0.000229159 0.00011825 0.516017 0.8 10 True 100 1000 0.000498845 0.000532618 1.0677 0.8 10 True 1000 100 0.000383126 0.00029935 0.781336 0.8 10 True 1000 1000 0.00162866 0.00307312 1.88689 0.8 10 False 100 100 0.000230783 0.000124958 0.541452 0.8 10 False 100 1000 0.000493393 0.000550654 1.11606 0.8 10 False 1000 100 0.000377167 0.000298581 0.791642 0.8 10 False 1000 1000 0.00165795 0.00305103 1.84024 0.8 25 True 100 100 0.000233496 0.000175241 0.75051 0.8 25 True 100 1000 0.00055654 0.00102658 1.84458 0.8 25 True 1000 100 0.000463814 0.000783267 1.68875 0.8 25 True 1000 1000 0.00186905 0.00755344 4.04132 0.8 25 False 100 100 0.000240243 0.000175047 0.728625 0.8 25 False 100 1000 0.000578102 0.00104499 1.80763 0.8 25 False 1000 100 0.000485113 0.000776849 1.60138 0.8 25 False 1000 1000 0.00211448 0.00752736 3.55992 ## Args: * <b>`sp_a`</b>: SparseTensor A, of rank 2. * <b>`b`</b>: A dense Matrix with the same dtype as sp_a. * <b>`adjoint_a`</b>: Use the adjoint of A in the matrix multiply. If A is complex, this is transpose(conj(A)). Otherwise it's transpose(A). * <b>`adjoint_b`</b>: Use the adjoint of B in the matrix multiply. If B is complex, this is transpose(conj(B)). Otherwise it's transpose(B). * <b>`name`</b>: A name prefix for the returned tensors (optional) ## Returns: A dense matrix (pseudo-code in dense np.matrix notation): A = A.H if adjoint_a else A B = B.H if adjoint_b else B return A*B - - - `tf.sparse_maximum(sp_a, sp_b, name=None)` {#sparse_maximum} Returns the element-wise max of two SparseTensors. Assumes the two SparseTensors have the same shape, i.e., no broadcasting. Example: python sp_zero = ops.SparseTensor([[0]], [0], [7]) sp_one = ops.SparseTensor([[1]], [1], [7]) res = tf.sparse_maximum(sp_zero, sp_one).eval() # "res" should be equal to SparseTensor([[0], [1]], [0, 1], [7]). ## Args: * <b>`sp_a`</b>: a `SparseTensor` operand whose dtype is real, and indices lexicographically ordered. * <b>`sp_b`</b>: the other `SparseTensor` operand with the same requirements (and the same shape). * <b>`name`</b>: optional name of the operation. ## Returns: * <b>`output`</b>: the output SparseTensor. - - - `tf.sparse_minimum(sp_a, sp_b, name=None)` {#sparse_minimum} Returns the element-wise min of two SparseTensors. Assumes the two SparseTensors have the same shape, i.e., no broadcasting. Example: python sp_zero = ops.SparseTensor([[0]], [0], [7]) sp_one = ops.SparseTensor([[1]], [1], [7]) res = tf.sparse_minimum(sp_zero, sp_one).eval() # "res" should be equal to SparseTensor([[0], [1]], [0, 0], [7]). ## Args: * <b>`sp_a`</b>: a `SparseTensor` operand whose dtype is real, and indices lexicographically ordered. * <b>`sp_b`</b>: the other `SparseTensor` operand with the same requirements (and the same shape). * <b>`name`</b>: optional name of the operation. ## Returns: * <b>`output`</b>: the output SparseTensor.
package com.icfcc.cache.support; import com.icfcc.cache.Cache; import java.util.Collection; /** * Simple cache manager working against a given collection of caches. * Useful for testing or simple caching declarations. * * @author Costin Leau * @since 3.1 */ public class SimpleCacheManager extends <API key> { private Collection<? extends Cache> caches; /** * Specify the collection of Cache instances to use for this CacheManager. */ public void setCaches(Collection<? extends Cache> caches) { this.caches = caches; } @Override protected Collection<? extends Cache> loadCaches() { return this.caches; } }
title: Floating IPs redirect_from: latest/usage/openstack/floating-ips canonical_url: 'https://docs.projectcalico.org/v2.6/usage/openstack/floating-ips' networking-calico includes beta support for floating IPs. Currently this requires running {{site.prodname}} as a Neutron core plugin (i.e. `core_plugin = calico`) instead of as an ML2 mechanism driver. > **Note**: We would like it to work as an ML2 mechanism driver too—patches > and/or advice welcome! {: .alert .alert-info} To set up a floating IP, you need the same pattern of Neutron data model objects as you do for Neutron in general, which means: - a tenant network, with an instance attached to it, that will be the target of the floating IP - a Neutron router, with the tenant network connected to it - a provider network with `router:external True` that is set as the router's gateway (e.g. with `neutron router-gateway-set`), and with a subnet with a CIDR that floating IPs will be allocated from - a floating IP, allocated from the provider network subnet, that maps onto the instance attached to the tenant network. For example: # Create tenant network and subnet neutron net-create --shared calico neutron subnet-create --gateway 10.65.0.1 --enable-dhcp --ip-version 4 --name calico-v4 calico 10.65.0.0/24 # Boot a VM on that network, and find its Neutron port ID. nova boot [...] neutron port-list # Create external network and subnet - this is where floating # IPs will be allocated from. neutron net-create public --router:external True neutron subnet-create public 172.16.1.0/24 # Create a router connecting the tenant and external networks. neutron router-create router1 neutron <API key> router1 <tenant-subnet-id> neutron router-gateway-set router1 public # Create a floating IP and associate it with the target VM. neutron floatingip-create public neutron <API key> <floatingip-id> <target-VM-port-id> Then the {{site.prodname}} agents will arrange that the floating IP is routed to the instance's compute host, and then DNAT'd to the instance's fixed IP address: core@compute-node01:~$ ip r default via 10.240.0.1 dev eth0 10.65.0.13 dev tap9a7e0868-da scope link 10.65.0.14 via 192.168.8.4 dev l2tpeth8-3 proto bird 10.65.0.23 via 192.168.8.4 dev l2tpeth8-3 proto bird 10.240.0.1 dev eth0 scope link 172.16.1.3 dev tap9a7e0868-da scope link 192.168.8.0/24 dev l2tpeth8-3 proto kernel scope link src 192.168.8.3 192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 core@compute-node01:~$ sudo iptables -L -n -v -t nat [...] Chain felix-FIP-DNAT (2 references) pkts bytes target prot opt in out source destination 0 0 DNAT all -- * * 0.0.0.0/0 172.16.1.3 to:10.65.0.13 Chain felix-FIP-SNAT (1 references) pkts bytes target prot opt in out source destination 0 0 SNAT all -- * * 10.65.0.13 10.65.0.13 to:172.16.1.3 Chain felix-OUTPUT (1 references) pkts bytes target prot opt in out source destination 1 60 felix-FIP-DNAT all -- * * 0.0.0.0/0 0.0.0.0/0 Chain felix-POSTROUTING (1 references) pkts bytes target prot opt in out source destination 1 60 felix-FIP-SNAT all -- * * 0.0.0.0/0 0.0.0.0/0 Chain felix-PREROUTING (1 references) pkts bytes target prot opt in out source destination 0 0 felix-FIP-DNAT all -- * * 0.0.0.0/0 0.0.0.0/0 0 0 DNAT tcp -- * * 0.0.0.0/0 169.254.169.254 tcp dpt:80 to:127.0.0.1:8775 [...]
package fr.fablabmars.model; import java.util.ArrayList; import fr.fablabmars.observer.Observable; import fr.fablabmars.observer.Observer; /** * Observable contenant le menu courant. * * @author Guillaume Perouffe * @see Observable */ public class CardMenu implements Observable { /** * Liste des observateurs de cet observable. */ private ArrayList<Observer> listObserver = new ArrayList<Observer>(); /** * Indice du menu courant */ private int panel; public CardMenu(){ panel = 0; } /** * Change le panneau courant et notifie les observateurs. * * @param panel * Indice du nouveau menu. * * @see CardMenu#panel * @see Observable#notifyObservers() */ public void setPanel(int panel){ this.panel = panel; notifyObservers(); } @Override public void addObserver(Observer obs) { listObserver.add(obs); } @Override public void removeObserver(Observer obs) { listObserver.remove(obs); } @Override public void notifyObservers() { for(Observer obs:listObserver){ obs.update(this); } } /** * Retourne le menu courant * * @return Menu courant * * @see CardMenu#panel */ @Override public int getState(){ return panel; } }
package ru.job4j.collections.tree; public class BinaryTree<E extends Comparable<E>> extends Tree<E> { private Node<E> node; private int size; private class Node<E> { private E value; private Node<E> left; private Node<E> right; private Node(E value) { this.value = value; } } public void add(E e) { if (node == null) { node = new Node<>(e); size++; } else { addNewElement(e, node); } } private void addNewElement(E e, Node<E> n) { if (e.compareTo(n.value) < 0) { if (n.left == null) { n.left = new Node<>(e); size++; } else { addNewElement(e, n.left); } } else if (e.compareTo(n.value) > 0) { if (n.right == null) { n.right = new Node<>(e); size++; } else { addNewElement(e, n.right); } } } public int getSize() { return size; } }
<?php include_once('procedures.php'); ?> <?php include("top.php"); ?> <script src="./js/visualRound.js"></script> <style> #bottomBar { position: fixed; left: 0px; bottom: 0px; width: 100%; height: 40px; background-color: #EEE; border-top-width: 1px; border-top-color: #999; border-top-style: solid; overflow: hidden; z-index: 100; } #bottomBarText { position: relative; left: 20px; top: 5px; font-size: 20px; color: black; opacity: 1.0; } .bottom_gray_text { position: relative; top: 9px; font-size: 15px; color: gray; opacity: 1.0; } .footer { margin-bottom: 50px; } .button { background-color: #9999FF; cursor: pointer; } .left { float: left; } .right { float:right; } .pointer { cursor: pointer; } .timer { top: 12px; } #bottomBarTextOld { left: 40px; } #bottomCounter { right: 10px; } #timersEditor { right: 5px; } </style> <div class = "container content"> </div> <div id = "dataContainer" class = "container content"> <?php $roundId = intval($_GET['round']); $roundData = getRoundData($roundId); ?> <div class = "centeredText"> <h2>Раунд "<?php echo $roundData['name']; ?>" игры "<?php echo $roundData['gameName']; ?>" от <?php echo $roundData['date']; ?></h2> </div> <h3>Результаты раунда</h3> <table class = "table table-bordered"> <tr align = center> <td>Пользователь</td> <td>Счет</td> </tr> <?php $result = <API key>($roundId); $i = -1; foreach ($result as $row) { $i++; ?> <tr class="tableRow" title="<?php echo $i; ?>" id="r<?php echo $row['id']; ?>" align = "center"> <td> <?php echo $row['name']; ?></td> <td id="c<?php echo $row['id']; ?>"><?php echo 0; ?></td> </tr> <?php } ?> </table> <br> </div> <script> round = <?php echo $roundId; ?>; startVisualization(); </script> <div id="bottomBar"> <button id="pause" class="btn btn-info left" onClick="pause();">Начать</button> <button class="btn btn-info left" onClick="step();">Далее</button> <p id="bottomBarText" class="left"></p> <p id="bottomBarTextOld" class="bottom_gray_text left"></p> <p id="timersEditor" class="glyphicon glyphicon-time pointer timer right" onClick="showTimersDialog();"></p> <p id="bottomCounter" class="bottom_gray_text right"></p> </div> <?php include("bottom.php"); ?>
# -*- coding: utf-8 -*- """ Linguistic and other taggers. Tagging each token in a sentence with supplementary information, such as its part-of-speech (POS) tag, and named entity (NE) tag. """ __all__ = [ "PerceptronTagger", "pos_tag", "pos_tag_sents", "tag_provinces", "chunk_parse", "NER", ] from pythainlp.tag.locations import tag_provinces from pythainlp.tag.pos_tag import pos_tag, pos_tag_sents from pythainlp.tag._tag_perceptron import PerceptronTagger from pythainlp.tag.chunk import chunk_parse from pythainlp.tag.named_entity import NER
#[doc = r" Value read from the register"] pub struct R { bits: u32, } #[doc = r" Value to write to the register"] pub struct W { bits: u32, } impl super::CMAR3 { #[doc = r" Modifies the contents of the register"] #[inline(always)] pub fn modify<F>(&self, f: F) where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, { let bits = self.register.get(); let r = R { bits: bits }; let mut w = W { bits: bits }; f(&r, &mut w); self.register.set(w.bits); } #[doc = r" Reads the contents of the register"] #[inline(always)] pub fn read(&self) -> R { R { bits: self.register.get(), } } #[doc = r" Writes to the register"] #[inline(always)] pub fn write<F>(&self, f: F) where F: FnOnce(&mut W) -> &mut W, { let mut w = W::reset_value(); f(&mut w); self.register.set(w.bits); } #[doc = r" Writes the reset value to the register"] #[inline(always)] pub fn reset(&self) { self.write(|w| w) } } #[doc = r" Value of the field"] pub struct MAR { bits: u32, } impl MAR { #[doc = r" Value of the field as raw bits"] #[inline(always)] pub fn bits(&self) -> u32 { self.bits } } #[doc = r" Proxy"] pub struct _MAW<'a> { w: &'a mut W, } impl<'a> _MAW<'a> { #[doc = r" Writes raw bits to the field"] #[inline(always)] pub fn bits(self, value: u32) -> &'a mut W { const MASK: u32 = 4294967295; const OFFSET: u8 = 0; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } impl R { #[doc = r" Value of the register as raw bits"] #[inline(always)] pub fn bits(&self) -> u32 { self.bits } #[doc = "Bits 0:31 - Memory address"] #[inline(always)] pub fn ma(&self) -> MAR { let bits = { const MASK: u32 = 4294967295; const OFFSET: u8 = 0; ((self.bits >> OFFSET) & MASK as u32) as u32 }; MAR { bits } } } impl W { #[doc = r" Reset value of the register"] #[inline(always)] pub fn reset_value() -> W { W { bits: 0 } } #[doc = r" Writes raw bits to the register"] #[inline(always)] pub unsafe fn bits(&mut self, bits: u32) -> &mut Self { self.bits = bits; self } #[doc = "Bits 0:31 - Memory address"] #[inline(always)] pub fn ma(&mut self) -> _MAW { _MAW { w: self } } }
<?php namespace Topxia\WebBundle\Listener; use Symfony\Component\HttpKernel\KernelEvents; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\EventDispatcher\<API key>; class LocaleListener implements <API key> { private $defaultLocale; public function __construct($defaultLocale) { if ($defaultLocale == 'en') { $defaultLocale = 'en_US'; } $this->defaultLocale = $defaultLocale; } public function onKernelRequest(GetResponseEvent $event) { $request = $event->getRequest(); if (!$request->hasPreviousSession()) { return; } $locale = $request->getSession()->get('_locale', $request->cookies->get('_last_logout_locale') ?: $this->defaultLocale); $request->setLocale($locale); } public static function getSubscribedEvents() { return array( // must be registered after the default Locale listener KernelEvents::REQUEST => array(array('onKernelRequest', 15)) ); } }
package com.dexvis.simple.transform; import javafx.scene.web.HTMLEditor; import org.simpleframework.xml.transform.Transform; public class HTMLEditorTransform implements Transform<HTMLEditor> { public HTMLEditor read(String value) throws Exception { HTMLEditor editor = new HTMLEditor(); editor.setHtmlText(value); return editor; } @Override public String write(HTMLEditor value) throws Exception { return value.getHtmlText(); } }
package ecologylab.bigsemantics.service.crawler; import java.io.IOException; /** * A general framework for crawling resources. * * @author quyin */ public interface ResourceCrawler<T> { /** * Queue a resource with the given URI. * * @param uri */ void queue(String uri); /** * If the crawler has more resources to crawl. * * @return true if there are still resources to crawl. */ boolean hasNext(); /** * Retrieve the next resource. * * @return The next crawled resource. * @throws IOException * If the resource cannot be accessed. */ T next() throws IOException; /** * Expand a given resource. * * @param resource */ void expand(T resource); /** * @return The number of resources queued. */ int countQueued(); /** * @return The number of resources that are to be crawled. */ int countWaiting(); /** * @return The number of resources that have been accessed. */ int countAccessed(); /** * @return The number of resources that have been accessed successfully. */ int countSuccess(); /** * @return The number of resources that have been accessed unsuccessfully. */ int countFailure(); }
package net.sf.anpr.rcp.widget; import java.awt.Color; import java.awt.Graphics; import java.awt.Rectangle; import java.awt.image.BufferedImage; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.SwingConstants; public class JCanvasPanel extends JLabel { private static final long serialVersionUID = 1L; private Rectangle focusArea=new Rectangle(); private BufferedImage image; public JCanvasPanel() { super(); this.<API key>(SwingConstants.TOP); this.<API key>(SwingConstants.LEFT); } protected void paintComponent(Graphics g) { super.paintComponent(g); if(focusArea==null) return ; if (focusArea.width >= 0 && focusArea.height >= 0) { Color c = g.getColor(); g.setColor(Color.RED); g.drawRect(focusArea.x, focusArea.y, focusArea.width, focusArea.height); g.setColor(c); } g.dispose(); } protected void setImage(BufferedImage image){ this.image=image; this.setIcon(new ImageIcon(image)); } public void setFocusArea(Rectangle focusArea) { this.focusArea = focusArea; } protected BufferedImage getImage() { return image; } }
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="es"> <head> <!-- Generated by javadoc (version 1.7.0_51) on Thu Apr 10 11:52:58 CEST 2014 --> <title>State</title> <meta name="date" content="2014-04-10"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><! if (location.href.indexOf('is-external=true') == -1) { parent.document.title="State"; } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar_top"> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../JSHOP2/package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../deprecated-list.html">Deprecated</a></li> <li><a href="../index-all.html">Index</a></li> <li><a href="../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../JSHOP2/SolverThread.html" title="class in JSHOP2"><span class="strong">Prev Class</span></a></li> <li><a href="../JSHOP2/StdLib.html" title="class in JSHOP2"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../index.html?JSHOP2/State.html" target="_top">Frames</a></li> <li><a href="State.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li> <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li> <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_top"> </a></div> <div class="header"> <div class="subTitle">JSHOP2</div> <h2 title="Class State" class="title">Class State</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>JSHOP2.State</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <hr> <br> <pre>public class <span class="strong">State</span> extends java.lang.Object</pre> <div class="block">This class is used to represent the current state of the world.</div> <dl><dt><span class="strong">Version:</span></dt> <dd>1.0.3</dd> <dt><span class="strong">Author:</span></dt> <dd>Okhtay Ilghami, <a href="http: </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="field_summary"> </a> <h3>Field Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Field and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>private java.util.Vector&lt;<a href="../JSHOP2/Term.html" title="class in JSHOP2">Term</a>&gt;[]</code></td> <td class="colLast"><code><strong><a href="../JSHOP2/State.html#atoms">atoms</a></strong></code> <div class="block">The atoms in the current state of the world as an array of <code>Vector</code>s.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private <a href="../JSHOP2/Axiom.html" title="class in JSHOP2">Axiom</a>[][]</code></td> <td class="colLast"><code><strong><a href="../JSHOP2/State.html#axioms">axioms</a></strong></code> <div class="block">The axioms in the domain description as a two-dimensional array.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>private java.util.Vector&lt;<a href="../JSHOP2/NumberedPredicate.html" title="class in JSHOP2">NumberedPredicate</a>&gt;[]</code></td> <td class="colLast"><code><strong><a href="../JSHOP2/State.html#protections">protections</a></strong></code> <div class="block">The protections in the current state of the world as an array of <code>Vector</code>s.</div> </td> </tr> </table> </li> </ul> <ul class="blockList"> <li class="blockList"><a name="constructor_summary"> </a> <h3>Constructor Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><strong><a href="../JSHOP2/State.html#State(int, JSHOP2.Axiom[][])">State</a></strong>(int&nbsp;size, <a href="../JSHOP2/Axiom.html" title="class in JSHOP2">Axiom</a>[][]&nbsp;axiomsIn)</code> <div class="block">To initialize the state of the world.</div> </td> </tr> </table> </li> </ul> <ul class="blockList"> <li class="blockList"><a name="method_summary"> </a> <h3>Method Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../JSHOP2/State.html#add(JSHOP2.Predicate)">add</a></strong>(<a href="../JSHOP2/Predicate.html" title="class in JSHOP2">Predicate</a>&nbsp;p)</code> <div class="block">To add a predicate to the current state of the world.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../JSHOP2/State.html#addProtection(JSHOP2.Predicate)">addProtection</a></strong>(<a href="../JSHOP2/Predicate.html" title="class in JSHOP2">Predicate</a>&nbsp;p)</code> <div class="block">To protect a given predicate in the current state of the world.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../JSHOP2/State.html#clear()">clear</a></strong>()</code> <div class="block">To empty the world state.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><strong><a href="../JSHOP2/State.html#del(JSHOP2.Predicate)">del</a></strong>(<a href="../JSHOP2/Predicate.html" title="class in JSHOP2">Predicate</a>&nbsp;p)</code> <div class="block">To delete a predicate from the current state of the world.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../JSHOP2/State.html#delProtection(JSHOP2.Predicate)">delProtection</a></strong>(<a href="../JSHOP2/Predicate.html" title="class in JSHOP2">Predicate</a>&nbsp;p)</code> <div class="block">To unprotect a given predicate.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>java.util.ArrayList&lt;java.lang.String&gt;</code></td> <td class="colLast"><code><strong><a href="../JSHOP2/State.html#getState()">getState</a></strong>()</code> <div class="block">Returns an ArrayList of strings that represents the state.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../JSHOP2/State.html#isProtected(JSHOP2.Predicate)">isProtected</a></strong>(<a href="../JSHOP2/Predicate.html" title="class in JSHOP2">Predicate</a>&nbsp;p)</code> <div class="block">To check if a predicate is protected.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../JSHOP2/MyIterator.html" title="class in JSHOP2">MyIterator</a></code></td> <td class="colLast"><code><strong><a href="../JSHOP2/State.html#iterator(int)">iterator</a></strong>(int&nbsp;head)</code> <div class="block">To initialize and return the appropriate iterator when looking for ways to satisfy a given predicate.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../JSHOP2/Term.html" title="class in JSHOP2">Term</a>[]</code></td> <td class="colLast"><code><strong><a href="../JSHOP2/State.html#nextBinding(JSHOP2.Predicate, JSHOP2.MyIterator)">nextBinding</a></strong>(<a href="../JSHOP2/Predicate.html" title="class in JSHOP2">Predicate</a>&nbsp;p, <a href="../JSHOP2/MyIterator.html" title="class in JSHOP2">MyIterator</a>&nbsp;me)</code> <div class="block">This function returns the bindings that can satisfy a given precondition one-by-one.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../JSHOP2/State.html#print()">print</a></strong>()</code> <div class="block">This function is used to print the current state of the world.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../JSHOP2/State.html#undo(java.util.Vector[])">undo</a></strong>(java.util.Vector[]&nbsp;delAdd)</code> <div class="block">This function is used, in case of a backtrack, to undo the changes that were made to the current state of the world because of the backtracked decision.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="<API key>.lang.Object"> </a> <h3>Methods inherited from class&nbsp;java.lang.Object</h3> <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="field_detail"> </a> <h3>Field Detail</h3> <a name="atoms"> </a> <ul class="blockList"> <li class="blockList"> <h4>atoms</h4> <pre>private&nbsp;java.util.Vector&lt;<a href="../JSHOP2/Term.html" title="class in JSHOP2">Term</a>&gt;[] atoms</pre> <div class="block">The atoms in the current state of the world as an array of <code>Vector</code>s. The array is indexed by the possible heads (i.e., the constant symbol that comes first) of the possible predicates.</div> </li> </ul> <a name="axioms"> </a> <ul class="blockList"> <li class="blockList"> <h4>axioms</h4> <pre>private&nbsp;<a href="../JSHOP2/Axiom.html" title="class in JSHOP2">Axiom</a>[][] axioms</pre> <div class="block">The axioms in the domain description as a two-dimensional array. The array is indexed first by the head of the predicates each axiom can prove and second by the axioms themselves.</div> </li> </ul> <a name="protections"> </a> <ul class="blockListLast"> <li class="blockList"> <h4>protections</h4> <pre>private&nbsp;java.util.Vector&lt;<a href="../JSHOP2/NumberedPredicate.html" title="class in JSHOP2">NumberedPredicate</a>&gt;[] protections</pre> <div class="block">The protections in the current state of the world as an array of <code>Vector</code>s. The array is indexed by the heads of protected predicates.</div> </li> </ul> </li> </ul> <ul class="blockList"> <li class="blockList"><a name="constructor_detail"> </a> <h3>Constructor Detail</h3> <a name="State(int, JSHOP2.Axiom[][])"> </a> <ul class="blockListLast"> <li class="blockList"> <h4>State</h4> <pre>public&nbsp;State(int&nbsp;size, <a href="../JSHOP2/Axiom.html" title="class in JSHOP2">Axiom</a>[][]&nbsp;axiomsIn)</pre> <div class="block">To initialize the state of the world.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>size</code> - the number of possible heads of predicates (i.e., the number of constant symbols that can come first in a predicate).</dd><dd><code>axiomsIn</code> - the axioms in the domain description as a two-dimensional array. The array is indexed first by the head of the predicates each axiom can prove and second by the axioms themselves.</dd></dl> </li> </ul> </li> </ul> <ul class="blockList"> <li class="blockList"><a name="method_detail"> </a> <h3>Method Detail</h3> <a name="add(JSHOP2.Predicate)"> </a> <ul class="blockList"> <li class="blockList"> <h4>add</h4> <pre>public&nbsp;boolean&nbsp;add(<a href="../JSHOP2/Predicate.html" title="class in JSHOP2">Predicate</a>&nbsp;p)</pre> <div class="block">To add a predicate to the current state of the world.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>p</code> - the predicate to be added.</dd> <dt><span class="strong">Returns:</span></dt><dd><code>true</code> if the predicate was added (i.e., it was not already in the current state of the world), <code>false</code> otherwise.</dd></dl> </li> </ul> <a name="addProtection(JSHOP2.Predicate)"> </a> <ul class="blockList"> <li class="blockList"> <h4>addProtection</h4> <pre>public&nbsp;boolean&nbsp;addProtection(<a href="../JSHOP2/Predicate.html" title="class in JSHOP2">Predicate</a>&nbsp;p)</pre> <div class="block">To protect a given predicate in the current state of the world.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>p</code> - the predicate to be protected.</dd> <dt><span class="strong">Returns:</span></dt><dd>this function always returns <code>true</code>.</dd></dl> </li> </ul> <a name="clear()"> </a> <ul class="blockList"> <li class="blockList"> <h4>clear</h4> <pre>public&nbsp;void&nbsp;clear()</pre> <div class="block">To empty the world state.</div> </li> </ul> <a name="del(JSHOP2.Predicate)"> </a> <ul class="blockList"> <li class="blockList"> <h4>del</h4> <pre>public&nbsp;int&nbsp;del(<a href="../JSHOP2/Predicate.html" title="class in JSHOP2">Predicate</a>&nbsp;p)</pre> <div class="block">To delete a predicate from the current state of the world.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>p</code> - the predicate to be deleted.</dd> <dt><span class="strong">Returns:</span></dt><dd>the index of the predicate that was deleted in the <code>Vector</code> if the predicate was deleted (i.e., it existed in the current state of the world), -1 otherwise. This index is used in case of a backtrack to undo this deletion by inserting the deleted predicate right back where it used to be.</dd></dl> </li> </ul> <a name="delProtection(JSHOP2.Predicate)"> </a> <ul class="blockList"> <li class="blockList"> <h4>delProtection</h4> <pre>public&nbsp;boolean&nbsp;delProtection(<a href="../JSHOP2/Predicate.html" title="class in JSHOP2">Predicate</a>&nbsp;p)</pre> <div class="block">To unprotect a given predicate.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>p</code> - the predicate to be unprotected.</dd> <dt><span class="strong">Returns:</span></dt><dd><code>true</code> if the protected is unprotected successfully, <code>false</code> otherwise (i.e., when the predicate was not protected before).</dd></dl> </li> </ul> <a name="isProtected(JSHOP2.Predicate)"> </a> <ul class="blockList"> <li class="blockList"> <h4>isProtected</h4> <pre>public&nbsp;boolean&nbsp;isProtected(<a href="../JSHOP2/Predicate.html" title="class in JSHOP2">Predicate</a>&nbsp;p)</pre> <div class="block">To check if a predicate is protected.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>p</code> - the predicate to be checked.</dd> <dt><span class="strong">Returns:</span></dt><dd><code>true</code> if the predicate is protected, <code>false</code> otherwise.</dd></dl> </li> </ul> <a name="iterator(int)"> </a> <ul class="blockList"> <li class="blockList"> <h4>iterator</h4> <pre>public&nbsp;<a href="../JSHOP2/MyIterator.html" title="class in JSHOP2">MyIterator</a>&nbsp;iterator(int&nbsp;head)</pre> <div class="block">To initialize and return the appropriate iterator when looking for ways to satisfy a given predicate.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>head</code> - the index of the constant symbol that is the head of the predicate (i.e., that comes first in the predicate).</dd> <dt><span class="strong">Returns:</span></dt><dd>the iterator to be used to find the satisfiers for this predicate.</dd></dl> </li> </ul> <a name="nextBinding(JSHOP2.Predicate, JSHOP2.MyIterator)"> </a> <ul class="blockList"> <li class="blockList"> <h4>nextBinding</h4> <pre>public&nbsp;<a href="../JSHOP2/Term.html" title="class in JSHOP2">Term</a>[]&nbsp;nextBinding(<a href="../JSHOP2/Predicate.html" title="class in JSHOP2">Predicate</a>&nbsp;p, <a href="../JSHOP2/MyIterator.html" title="class in JSHOP2">MyIterator</a>&nbsp;me)</pre> <div class="block">This function returns the bindings that can satisfy a given precondition one-by-one.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>p</code> - the predicate to be satisfied.</dd><dd><code>me</code> - the iterator that keeps track of where we are with the satisfiers so that the next time this function is called, we can take off where we stopped last time.</dd> <dt><span class="strong">Returns:</span></dt><dd>the next binding as an array of terms indexed by the indeices of the variable symbols in the given predicate.</dd></dl> </li> </ul> <a name="print()"> </a> <ul class="blockList"> <li class="blockList"> <h4>print</h4> <pre>public&nbsp;void&nbsp;print()</pre> <div class="block">This function is used to print the current state of the world.</div> </li> </ul> <a name="getState()"> </a> <ul class="blockList"> <li class="blockList"> <h4>getState</h4> <pre>public&nbsp;java.util.ArrayList&lt;java.lang.String&gt;&nbsp;getState()</pre> <div class="block">Returns an ArrayList of strings that represents the state. Used in conjunction with JSHOP2GUI (Added 5/28/06)</div> <dl><dt><span class="strong">Returns:</span></dt><dd>- An ArrayList<String> representing the state</dd></dl> </li> </ul> <a name="undo(java.util.Vector[])"> </a> <ul class="blockListLast"> <li class="blockList"> <h4>undo</h4> <pre>public&nbsp;void&nbsp;undo(java.util.Vector[]&nbsp;delAdd)</pre> <div class="block">This function is used, in case of a backtrack, to undo the changes that were made to the current state of the world because of the backtracked decision.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>delAdd</code> - a 4-member array of type <code>Vector</code>. These four members are the deleted atoms, the added atoms, the deleted protections and the added protections respectively.</dd></dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <div class="bottomNav"><a name="navbar_bottom"> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="<API key>"> </a> <ul class="navList" title="Navigation"> <li><a href="../JSHOP2/package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../deprecated-list.html">Deprecated</a></li> <li><a href="../index-all.html">Index</a></li> <li><a href="../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../JSHOP2/SolverThread.html" title="class in JSHOP2"><span class="strong">Prev Class</span></a></li> <li><a href="../JSHOP2/StdLib.html" title="class in JSHOP2"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../index.html?JSHOP2/State.html" target="_top">Frames</a></li> <li><a href="State.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li> <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li> <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_bottom"> </a></div> </body> </html>
using SolrNetLight; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using SolrNetLight.Facet; namespace SolrNetLight { [DataContract] public class SolrResponse<T> { [DataMember(Name="response")] public SolrResponseBase<T> Response { get; set; } [DataMember(Name = "facet_counts")] public FacetCounts Facets { get; set; } } }
package com.action.design.pattern.chain; public class ChainPatternDemo { private static AbstractLogger getChainOfLoggers() { AbstractLogger errorLogger = new ErrorLogger(AbstractLogger.ERROR); AbstractLogger fileLogger = new FileLogger(AbstractLogger.DEBUG); AbstractLogger consoleLogger = new ConsoleLogger(AbstractLogger.INFO); errorLogger.setNextLogger(fileLogger); fileLogger.setNextLogger(consoleLogger); return errorLogger; } public static void main(String[] args) { AbstractLogger loggerChain = getChainOfLoggers(); loggerChain.logMessage(AbstractLogger.INFO, "This is an information."); loggerChain.logMessage(AbstractLogger.DEBUG, "This is an debug level information."); loggerChain.logMessage(AbstractLogger.ERROR, "This is an error information."); } }
package adamin90.com.wpp.model.mostsearch; import java.util.ArrayList; import java.util.List; import javax.annotation.Generated; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; @Generated("org.jsonschema2pojo") public class MostSearchData { @SerializedName("data") @Expose private List<Datum> data = new ArrayList<Datum>(); @SerializedName("code") @Expose private Integer code; /** * * @return * The data */ public List<Datum> getData() { return data; } /** * * @param data * The data */ public void setData(List<Datum> data) { this.data = data; } /** * * @return * The code */ public Integer getCode() { return code; } /** * * @param code * The code */ public void setCode(Integer code) { this.code = code; } }
<html dir="LTR"> <head> <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" /> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" /> <title>ConfigFileExtension Property</title> <xml> </xml> <link rel="stylesheet" type="text/css" href="MSDN.css" /> </head> <body id="bodyID" class="dtBODY"> <div id="nsbanner"> <div id="bannerrow1"> <table class="bannerparthead" cellspacing="0"> <tr id="hdr"> <td class="runninghead">Apache log4net™ SDK Documentation - Microsoft .NET Framework 4.0</td> <td class="product"> </td> </tr> </table> </div> <div id="TitleRow"> <h1 class="dtH1"><API key>.ConfigFileExtension Property</h1> </div> </div> <div id="nstext"> <p> Gets or sets the extension of the configuration file. </p> <div class="syntax"> <span class="lang">[Visual Basic]</span> <br />Public Property ConfigFileExtension As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/<API key>.htm">String</a></div> <div class="syntax"> <span class="lang">[C#]</span> <br />public <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/<API key>.htm">string</a> ConfigFileExtension {get; set;}</div> <p> </p> <h4 class="dtH4">Property Value</h4> <p> The extension of the configuration file. </p> <h4 class="dtH4">Remarks</h4> <p> If specified this is the extension for the configuration file. The path to the config file is built by using the <b>application base</b> directory (<a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/<API key>.htm">BaseDirectory</a>), the <b>assembly file name</b> and the config file extension. </p> <p> If the <b>ConfigFileExtension</b> is set to <code>MyExt</code> then possible config file names would be: <code>MyConsoleApp.exe.MyExt</code> or <code>MyClassLibrary.dll.MyExt</code>. </p> <p> The <a href="log4net.Config.<API key>.ConfigFile.html">ConfigFile</a> takes priority over the <b>ConfigFileExtension</b>. </p> <h4 class="dtH4">See Also</h4><p><a href="log4net.Config.<API key>.html"><API key> Class</a> | <a href="log4net.Config.html">log4net.Config Namespace</a></p><object type="application/x-oleobject" classid="clsid:<API key>" viewastext="true" style="display: none;"><param name="Keyword" value="ConfigFileExtension property"></param><param name="Keyword" value="ConfigFileExtension property, <API key> class"></param><param name="Keyword" value="<API key>.ConfigFileExtension property"></param></object><hr /><div id="footer"><a href='http: </body> </html>
var activeElements = []; var sleepElements = []; var promises = []; $.ajax("https://osiproghackuc2015.osisoft.com/piwebapi/assetdatabases/<API key>/elements", { type : 'GET', headers: { "Authorization" : "Basic " + btoa("osiproghack\\hackuser051:bO2rA53P2")}, success: function(results){ for (var i = 0; i < results.Items.length; i++) { var item = results.Items[i]; getSubElements(item); } } }).done(function(){ $.when.apply($,promises).done(function(){ spinner.stop(target); var blackout = document.getElementById('blackout'); $('#blackout').css('opacity', '0'); $('#blackout').css('width', '0%'); $('#blackout').css('height', '0%'); }); }); var getSubElements = function(personElement){ promises.push($.ajax("https://osiproghackuc2015.osisoft.com/piwebapi/elements/" + personElement.WebId + "/elements", { type : 'GET', headers: { "Authorization" : "Basic " + btoa("osiproghack\\hackuser051:bO2rA53P2")}, success: function(results){ for (var i = 0; i < results.Items.length; i++) { var innerItem = results.Items[i]; if (innerItem.TemplateName == "Fitbit Activity Template") { <API key>({ Person : personElement.Name, Child : "Fitbit Activity", ChildWebId : innerItem.WebId }); } else if (innerItem.TemplateName == "Fitbit Sleep Template") { <API key>({ Person : personElement.Name, Child : "Fitbit Sleep", ChildWebId : innerItem.WebId }); } }}})); } var <API key> = function(object) { promises.push($.ajax("https://osiproghackuc2015.osisoft.com/piwebapi/elements/" + object.ChildWebId + "/attributes",{ type : 'GET', headers: { "Authorization" : "Basic " + btoa("osiproghack\\hackuser051:bO2rA53P2")}, success: function(results){ object.Attributes = []; activeElements.push(object); for (var i = 0; i < results.Items.length; i++) { var attribute = results.Items[i]; object.Attributes.push({ Attribute : attribute.Name, AttributeWebId : attribute.WebId }); }; } })); } var <API key> = function(object) { promises.push($.ajax("https://osiproghackuc2015.osisoft.com/piwebapi/elements/" + object.ChildWebId + "/attributes",{ type : 'GET', headers: { "Authorization" : "Basic " + btoa("osiproghack\\hackuser051:bO2rA53P2")}, success: function(results){ object.Attributes = []; sleepElements.push(object); for (var i = 0; i < results.Items.length; i++) { var attribute = results.Items[i]; object.Attributes.push({ Attribute : attribute.Name, AttributeWebId : attribute.WebId }); }; } })); }
import { Seq, Set as ISet } from 'immutable'; import { atom, unwrap } from '../derivable'; import { equals } from './equals'; describe('util/equals', () => { it('should check equality of primitives', () => { expect(equals(NaN, NaN)).toBe(true); expect(equals(4, 2 + 2)).toBe(true); expect(equals(0, 0)).toBe(true); expect(equals('abcd', 'ab' + 'cd')).toBe(true); }); it('should check identity on ordinary object', () => { expect(equals({}, {})).toBe(false); expect(equals([], [])).toBe(false); const arr: never[] = []; const obj = {}; expect(equals(arr, arr)).toBe(true); expect(equals(obj, obj)).toBe(true); }); it('should check equality on immutable objects', () => { const seq = Seq.Indexed.of(1, 2, 3); const set = ISet.of(1, 2, 3); expect(equals(seq, set)).toBe(false); expect(equals(seq.toSetSeq(), set)).toBe(true); expect(equals(seq, [1, 2, 3])).toBe(false); }); it('should check the equality of derivables', () => { const a = atom('foo'); const b = atom('foo'); const notA = atom('bar'); const aDerivable = a.derive(v => v.toUpperCase()); const bDerivable = b.derive(v => v.toUpperCase()); const withObj1 = atom({ hello: 'world' }); const withObj2 = atom({ hello: 'world' }); expect(equals(a, a)).toBe(true); expect(equals(b, b)).toBe(true); expect(equals(a, notA)).toBe(false); expect(equals(a, b)).toBe(false); expect(equals(aDerivable, bDerivable)).toBe(false); expect(equals(withObj1, withObj1)).toBe(true); expect(equals(withObj1, withObj2)).toBe(false); }); it('should test for reference equality, not derivable value equality', () => { const personA = { name$: atom('Sherlock') }; const personB = { name$: atom('Sherlock') }; const person$ = atom(personA); const nameOfPerson$ = person$.derive(p => p.name$).derive(unwrap).autoCache(); expect(nameOfPerson$.get()).toBe('Sherlock'); person$.set(personB); expect(nameOfPerson$.get()).toBe('Sherlock'); personB.name$.set('Moriarty'); expect(nameOfPerson$.get()).toBe('Moriarty'); }); });
# Config For each project a list of branches can be configured, to which submits should not be allowed, until a merge commit has been merged.
// Generated from /POI/java/org/apache/poi/hpsf/VariantBool.java #pragma once #include <fwd-POI.hpp> #include <org/apache/poi/hpsf/fwd-POI.hpp> #include <org/apache/poi/util/fwd-POI.hpp> #include <java/lang/Object.hpp> struct default_init_tag; class poi::hpsf::VariantBool : public virtual ::java::lang::Object { public: typedef ::java::lang::Object super; private: static ::poi::util::POILogger* LOG_; public: /* package */ static constexpr int32_t SIZE { int32_t(2) }; private: bool _value { }; protected: void ctor(); public: /* package */ virtual void read(::poi::util::<API key>* lei); virtual bool getValue(); virtual void setValue(bool value); // Generated VariantBool(); protected: VariantBool(const ::default_init_tag&); public: static ::java::lang::Class *class_(); static void clinit(); private: static ::poi::util::POILogger*& LOG(); virtual ::java::lang::Class* getClass0(); };
package com.hangon.saying.viewPager; import android.content.Context; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AbsListView; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.toolbox.ImageLoader; import com.android.volley.toolbox.ImageRequest; import com.android.volley.toolbox.NetworkImageView; import com.example.fd.ourapplication.R; import com.hangon.common.Constants; import com.hangon.common.MyApplication; import com.hangon.common.ViewHolder; import com.hangon.common.VolleyBitmapCache; import java.util.ArrayList; import java.util.List; public class GradAdapter extends BaseAdapter implements AbsListView.OnScrollListener { Context context; List list = new ArrayList(); private static ImageLoader mImageLoader; // imageLoaderNetworkImageView private int mItemHeight = 0; GradAdapter(Context context, List list) { this.context = context; this.list = list; mImageLoader = new ImageLoader(MyApplication.queues, new VolleyBitmapCache()); // loader } @Override public int getCount() { return list.size(); } @Override public Object getItem(int position) { return list.get(position); } @Override public long getItemId(int position) { return position; } ViewGradHolder gradHolder; public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { gradHolder = new ViewGradHolder(); convertView = LayoutInflater.from(context).inflate(R.layout.<API key>, null); gradHolder.img = (ImageView) convertView.findViewById(R.id.item_grida_image); convertView.setTag(gradHolder); } else { gradHolder = (ViewGradHolder) convertView.getTag(); } NetworkImageView networkImageView = (NetworkImageView) gradHolder.img; networkImageView.<API key>(R.drawable.default_photo); networkImageView.setErrorImageResId(R.drawable.error_photo); if (list.get(position) != null && !list.get(position).equals("")) { //getImag(list.get(position).toString()); networkImageView.setImageUrl(Constants.LOAD_SAYING_IMG_URL + list.get(position), mImageLoader); } return convertView; } class ViewGradHolder { ImageView img; } private void getImag(String path) { String url = Constants.LOAD_SAYING_IMG_URL + path; ImageRequest request = new ImageRequest(url, new Response.Listener<Bitmap>() { @Override public void onResponse(Bitmap bitmap) { gradHolder.img.setImageBitmap(bitmap); } }, 0, 0, Bitmap.Config.ARGB_8888, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError volleyError) { Toast.makeText(context, "", Toast.LENGTH_SHORT).show(); } }); MyApplication.getHttpQueues().add(request); } /** * item */ public void setItemHeight(int height) { if (height == mItemHeight) { return; } mItemHeight = height; <API key>(); } @Override public void <API key>(AbsListView view, int scrollState) { // GridViewGridView if (scrollState == SCROLL_STATE_IDLE) { // loadBitmaps(mFirstVisibleItem, mVisibleItemCount); } else { // cancelAllTasks(); } } @Override public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { } }
/* * MaiKe Labs (2016 - 2026) * * Written by Jack Tan <jiankemeng@gmail.com> * * Connect VCC of the SSD1306 OLED to 3.3V * Connect GND to Ground * Connect SCL to i2c clock - GPIO21 * Connect SDA to i2c data - GPIO22 * Connect DC to GND (The scanned i2c address is 0x3C) * */ #include <stdio.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_system.h" #include "nvs_flash.h" #include "U8glib.h" <API key> u8g(U8G_I2C_OPT_NONE); // I2C / TWI void draw(void) { u8g.setFont(u8g_font_unifont); u8g.drawStr(0, 22, "Hello World!"); } void ssd1306_task(void *pvParameter) { // assign default color value if (u8g.getMode() == U8G_MODE_R3G3B2) { u8g.setColorIndex(255); // white } else if (u8g.getMode() == U8G_MODE_GRAY2BIT) { u8g.setColorIndex(3); // max intensity } else if (u8g.getMode() == U8G_MODE_BW) { u8g.setColorIndex(1); // pixel on } else if (u8g.getMode() == U8G_MODE_HICOLOR) { u8g.setHiColorByRGB(255, 255, 255); } while(1) { // picture loop u8g.firstPage(); do { draw(); } while (u8g.nextPage()); draw(); vTaskDelay(1000 / portTICK_RATE_MS); } } extern "C" void app_main() { nvs_flash_init(); printf("Welcome to Noduino!\r\n"); printf("Start to test SSD1306 OLED!\r\n"); xTaskCreate(&ssd1306_task, "ssd1306_task", 2048, NULL, 5, NULL); }
<table border="1" id="table1" style="border-collapse: collapse"> <tr> <td height="25" align="center"><span style="font-size: 16px"></span></td> <td height="25" align="center"><span style="font-size: 16px">245</span></td> <td height="25" align="center"><span style="font-size: 16px"></span></td> <td height="25px" align="center"><span style="font-size: 16px"></span></td> </tr> <tr> <td colspan="4"> <table border="0" width="100%"> <tr> <td valign="top"> <b></b></td> <td> <div> 245 245 245 245</div></td> </tr> </table> </td> </tr> <tr> <td colspan="4"> <table border="0" width="100%"> <tr> <td valign="top"> <b></b></td> <td> <div> 186——245</div></td> </tr> </table> </td> </tr> <tr> <td colspan="4"> <table border="0" width="100%"> <tr> <td valign="top"> <b></b></td> <td> <div> 183——245219222229244 171——245197243 245——246——245223239 245——246——245243</div></td> </tr> </table> </td> </tr> <tr> <td colspan="4"> <table border="0" width="100%"> <tr> <td valign="top"> <b></b></td> <td> <div></div></td> </tr> </table> </td> </tr> <tr> </tr></table>
# encoding: UTF-8 module TwitterCldr module Shared class Hyphenator class <API key> < StandardError; end BASE_RESOURCE_PATH = %w(shared hyphenation).freeze <API key> = 2 <API key> = 2 DEFAULT_NO_HYPHEN = "-'’".freeze class << self def get(locale) locale = <API key>(locale) unless locale raise <API key>, "'#{locale}' is not a supported hyphenation locale" end cache[locale] ||= begin resource = resource_for(locale) new(resource[:rules], locale, resource[:options]) end end def supported_locale?(locale) !!<API key>(locale) end def supported_locales @supported_locales ||= begin <API key> = TwitterCldr.<API key>( File.join(BASE_RESOURCE_PATH) ) files = Dir.glob(File.join(<API key>, '*.yml')) files.map { |f| File.basename(f).chomp('.yml') } end end private def <API key>(locale) maximized_locale = Locale.parse(locale.to_s).maximize maximized_locale.permutations('-').find do |locale_candidate| TwitterCldr.resource_exists?( *BASE_RESOURCE_PATH, locale_candidate ) end end def cache @cache ||= {} end def resource_for(locale) TwitterCldr.get_resource(*BASE_RESOURCE_PATH, locale) end end attr_reader :rules, :locale, :options, :trie def initialize(rules, locale, options) @rules = rules @locale = locale @options = options @trie = build_trie_from(rules) end # 0x00AD is a soft hyphen def hyphenate(text, hyphen = "\u00AD") each_chunk(text).to_a.join(hyphen) end def each_chunk(text) if block_given? last_pos = 0 each_position(text) do |pos| yield text[last_pos...pos].tap { last_pos = pos } end if last_pos < text.size yield text[last_pos..text.size] end else to_enum(__method__, text) end end def each_position(text) if block_given? text = ".#{text}." break_weights = break_weights_for(text) left = left_hyphen_min right = text.size - right_hyphen_min - 2 (left...right).each do |idx| yield idx if break_weights[idx].odd? end else to_enum(__method__, text) end end private def break_weights_for(text) break_weights = Array.new(text.size - 1, 0) text.each_char.with_index do |char, idx| subtrie = trie.root counter = idx while subtrie subtrie = subtrie.child(text[counter]) counter += 1 if subtrie && subtrie.has_value? <API key>(subtrie.value, break_weights, idx) end end end <API key>(break_weights, text) end def <API key>(pattern, break_weights, start_idx) pattern_idx = 0 pattern.each_char do |segment| if segment =~ /\d/ int_seg = segment.to_i idx = (start_idx + pattern_idx) - 1 break if idx >= break_weights.size break_weights[idx] = if break_weights[idx] > int_seg break_weights[idx] else int_seg end else pattern_idx += 1 end end end def <API key>(break_weights, text) break_weights.map.with_index do |break_weight, idx| next break_weight if idx.zero? next 0 if no_hyphen.include?(text[idx - 1]) break_weight end end def left_hyphen_min @left_hyphen_min ||= options.fetch(:lefthyphenmin, <API key>).to_i end def right_hyphen_min @right_hyphen_min ||= options.fetch(:righthyphenmin, <API key>).to_i end def no_hyphen @no_hyphen ||= options.fetch(:nohyphen, DEFAULT_NO_HYPHEN) end def build_trie_from(rules) TwitterCldr::Utils::Trie.new.tap do |trie| rules.each do |rule| trie.add(rule.gsub(/\d/, '').each_char, rule) end end end end end end
#include <aws/mediaconvert/model/<API key>.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace MediaConvert { namespace Model { <API key>::<API key>() : <API key>(false), <API key>(<API key>::NOT_SET), <API key>(false), m_baseUrlHasBeenSet(false), <API key>(false), <API key>(false), <API key>(false), m_fragmentLength(0), <API key>(false), m_hbbtvCompliance(<API key>::NOT_SET), <API key>(false), <API key>(<API key>::NOT_SET), <API key>(false), <API key>(false), m_minBufferTime(0), <API key>(false), <API key>(0.0), <API key>(false), m_mpdProfile(DashIsoMpdProfile::NOT_SET), <API key>(false), <API key>(<API key>::NOT_SET), <API key>(false), m_segmentControl(<API key>::NOT_SET), <API key>(false), m_segmentLength(0), <API key>(false), <API key>(<API key>::NOT_SET), <API key>(false), <API key>(<API key>::NOT_SET), <API key>(false) { } <API key>::<API key>(JsonView jsonValue) : <API key>(false), <API key>(<API key>::NOT_SET), <API key>(false), m_baseUrlHasBeenSet(false), <API key>(false), <API key>(false), <API key>(false), m_fragmentLength(0), <API key>(false), m_hbbtvCompliance(<API key>::NOT_SET), <API key>(false), <API key>(<API key>::NOT_SET), <API key>(false), <API key>(false), m_minBufferTime(0), <API key>(false), <API key>(0.0), <API key>(false), m_mpdProfile(DashIsoMpdProfile::NOT_SET), <API key>(false), <API key>(<API key>::NOT_SET), <API key>(false), m_segmentControl(<API key>::NOT_SET), <API key>(false), m_segmentLength(0), <API key>(false), <API key>(<API key>::NOT_SET), <API key>(false), <API key>(<API key>::NOT_SET), <API key>(false) { *this = jsonValue; } <API key>& <API key>::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("additionalManifests")) { Array<JsonView> <API key> = jsonValue.GetArray("additionalManifests"); for(unsigned <API key> = 0; <API key> < <API key>.GetLength(); ++<API key>) { <API key>.push_back(<API key>[<API key>].AsObject()); } <API key> = true; } if(jsonValue.ValueExists("<API key>")) { <API key> = <API key>::<API key>(jsonValue.GetString("<API key>")); <API key> = true; } if(jsonValue.ValueExists("baseUrl")) { m_baseUrl = jsonValue.GetString("baseUrl"); m_baseUrlHasBeenSet = true; } if(jsonValue.ValueExists("destination")) { m_destination = jsonValue.GetString("destination"); <API key> = true; } if(jsonValue.ValueExists("destinationSettings")) { <API key> = jsonValue.GetObject("destinationSettings"); <API key> = true; } if(jsonValue.ValueExists("encryption")) { m_encryption = jsonValue.GetObject("encryption"); <API key> = true; } if(jsonValue.ValueExists("fragmentLength")) { m_fragmentLength = jsonValue.GetInteger("fragmentLength"); <API key> = true; } if(jsonValue.ValueExists("hbbtvCompliance")) { m_hbbtvCompliance = <API key>::<API key>(jsonValue.GetString("hbbtvCompliance")); <API key> = true; } if(jsonValue.ValueExists("imageBasedTrickPlay")) { <API key> = <API key>::<API key>(jsonValue.GetString("imageBasedTrickPlay")); <API key> = true; } if(jsonValue.ValueExists("<API key>")) { <API key> = jsonValue.GetObject("<API key>"); <API key> = true; } if(jsonValue.ValueExists("minBufferTime")) { m_minBufferTime = jsonValue.GetInteger("minBufferTime"); <API key> = true; } if(jsonValue.ValueExists("<API key>")) { <API key> = jsonValue.GetDouble("<API key>"); <API key> = true; } if(jsonValue.ValueExists("mpdProfile")) { m_mpdProfile = <API key>::<API key>(jsonValue.GetString("mpdProfile")); <API key> = true; } if(jsonValue.ValueExists("<API key>")) { <API key> = <API key>::<API key>(jsonValue.GetString("<API key>")); <API key> = true; } if(jsonValue.ValueExists("segmentControl")) { m_segmentControl = <API key>::<API key>(jsonValue.GetString("segmentControl")); <API key> = true; } if(jsonValue.ValueExists("segmentLength")) { m_segmentLength = jsonValue.GetInteger("segmentLength"); <API key> = true; } if(jsonValue.ValueExists("<API key>")) { <API key> = <API key>::<API key>(jsonValue.GetString("<API key>")); <API key> = true; } if(jsonValue.ValueExists("<API key>")) { <API key> = <API key>::<API key>(jsonValue.GetString("<API key>")); <API key> = true; } return *this; } JsonValue <API key>::Jsonize() const { JsonValue payload; if(<API key>) { Array<JsonValue> <API key>(<API key>.size()); for(unsigned <API key> = 0; <API key> < <API key>.GetLength(); ++<API key>) { <API key>[<API key>].AsObject(<API key>[<API key>].Jsonize()); } payload.WithArray("additionalManifests", std::move(<API key>)); } if(<API key>) { payload.WithString("<API key>", <API key>::<API key>(<API key>)); } if(m_baseUrlHasBeenSet) { payload.WithString("baseUrl", m_baseUrl); } if(<API key>) { payload.WithString("destination", m_destination); } if(<API key>) { payload.WithObject("destinationSettings", <API key>.Jsonize()); } if(<API key>) { payload.WithObject("encryption", m_encryption.Jsonize()); } if(<API key>) { payload.WithInteger("fragmentLength", m_fragmentLength); } if(<API key>) { payload.WithString("hbbtvCompliance", <API key>::<API key>(m_hbbtvCompliance)); } if(<API key>) { payload.WithString("imageBasedTrickPlay", <API key>::<API key>(<API key>)); } if(<API key>) { payload.WithObject("<API key>", <API key>.Jsonize()); } if(<API key>) { payload.WithInteger("minBufferTime", m_minBufferTime); } if(<API key>) { payload.WithDouble("<API key>", <API key>); } if(<API key>) { payload.WithString("mpdProfile", <API key>::<API key>(m_mpdProfile)); } if(<API key>) { payload.WithString("<API key>", <API key>::<API key>(<API key>)); } if(<API key>) { payload.WithString("segmentControl", <API key>::<API key>(m_segmentControl)); } if(<API key>) { payload.WithInteger("segmentLength", m_segmentLength); } if(<API key>) { payload.WithString("<API key>", <API key>::<API key>(<API key>)); } if(<API key>) { payload.WithString("<API key>", <API key>::<API key>(<API key>)); } return payload; } } // namespace Model } // namespace MediaConvert } // namespace Aws
(function(jQuery) { "use strict"; var control = Echo.Control.manifest("Echo.Tests.Controls.TestControl"); if (Echo.Control.isDefined(control)) return; control.init = function() { if (!Echo.Variables) { Echo.Variables = {}; } Echo.Variables.TestControl = "production"; this.ready(); }; control.config = {}; control.templates.main = ""; Echo.Control.create(control); })(Echo.jQuery);
package com.sadc.game.gameobject.trackobject; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.sadc.game.GameConstants; import com.sadc.game.gameobject.GameUtils; import com.sadc.game.gameobject.Player; /** * @author f536985 (Tom Farello) */ public class Wall extends TrackObject { public Wall(float distance, float angle) { setActive(true); setDistance(distance); setAngle(angle); setWidth(22); setTexture(new Texture("brickWall.png")); } @Override public void update(float delta, Player player) { if (collide(player)) { player.crash(); setActive(false); } } @Override public void draw(float delta, float playerDistance, SpriteBatch spriteBatch) { float drawDistance = (float)Math.pow(2 , playerDistance - (getDistance())); GameUtils.<API key>(drawDistance, spriteBatch); spriteBatch.draw(getTexture(), GameConstants.SCREEN_WIDTH / 2 - 50, 15, 50, GameConstants.SCREEN_HEIGHT / 2 - 15, 100, 70, drawDistance, drawDistance, getAngle(), 0, 0, 100, 70, false, false); } }
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_111) on Wed Feb 22 09:55:43 CET 2017 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>org.togglz.slack (Togglz 2.4.0.Final API)</title> <meta name="date" content="2017-02-22"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../script.js"></script> </head> <body> <h1 class="bar"><a href="../../../org/togglz/slack/package-summary.html" target="classFrame">org.togglz.slack</a></h1> <div class="indexContainer"> <h2 title="Classes">Classes</h2> <ul title="Classes"> <li><a href="<API key>.html" title="class in org.togglz.slack" target="classFrame"><API key></a></li> </ul> </div> </body> </html>
class <API key> < <API key> after_action :verify_authorized after_action :<API key>, only: [:index] before_action :require_login before_action :set_job_application, only: [:show, :edit, :update, :destroy, :followup] # GET /posting/1/job_application # GET /posting/1/job_application.json # def index # @posting = Posting.unscoped.find(params[:posting_id]) # authorize @posting, :show? # @job_applications = JobApplication.all # end # GET /posting/1/job_application # GET /posting/1/job_application.json def show end # GET /posting/1/job_application/new def new @job_application = JobApplication.new authorize @job_application end # GET /posting/1/job_application/edit def edit end # POST /posting/1/job_application # POST /posting/1/job_application.json def create @job_application = JobApplication.new(<API key>) @job_application.posting = Posting.unscoped.find(params[:posting_id]) authorize @job_application authorize @job_application.posting, :update? respond_to do |format| if @job_application.save # TODO: Is this line still needed? @<API key> = true format.html { redirect_to @job_application.posting, notice: 'Job application was successfully created.' } format.json { render action: 'show', status: :created } else format.html { render action: 'new' } format.json { render json: @job_application.errors, status: :<API key> } end end end # PATCH/PUT /posting/1/job_application/followup.json def followup respond_to do |format| if @job_application.update(followup: Time.now) format.json { render action: 'show' } else format.json { render json: @job_application.errors, status: :<API key> } end end end # PATCH/PUT /posting/1/job_application # PATCH/PUT /posting/1/job_application.json def update respond_to do |format| if @job_application.update(<API key>) format.html { redirect_to @job_application.posting, notice: 'Changes saved!' } format.json { render action: 'show', notice: 'Changes saved!' } else format.html { render action: 'edit' } format.json { render json: @job_application.errors, status: :<API key> } end end end # DELETE /posting/1/job_application # DELETE /posting/1/job_application.json def destroy @job_application.destroy respond_to do |format| format.html { redirect_to @job_application.posting } format.json { head :no_content } end end private # Use callbacks to share common setup or constraints between actions. def set_job_application @job_application = Posting.unscoped.find(params[:posting_id]).job_application authorize @job_application end # Never trust parameters from the scary internet, only allow the white list through. def <API key> params.require(:job_application).permit(:date_sent, :cover_letter, :posting_id) end end
<!DOCTYPE HTML PUBLIC "- <!--NewPage <HTML> <HEAD> <!-- Generated by javadoc (build 1.5.0_08) on Wed Jan 10 16:02:59 PST 2007 --> <TITLE> Uses of Interface org.apache.hadoop.mapred.<API key> (Hadoop 0.10.1 API) </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="Uses of Interface org.apache.hadoop.mapred.<API key> (Hadoop 0.10.1 API)"; } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <A NAME="navbar_top"></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../org/apache/hadoop/mapred/<API key>.html" title="interface in org.apache.hadoop.mapred"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?org/apache/hadoop/mapred//<API key>.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="<API key>.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <! if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <HR> <CENTER> <H2> <B>Uses of Interface<br>org.apache.hadoop.mapred.<API key></B></H2> </CENTER> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> Packages that use <A HREF="../../../../../org/apache/hadoop/mapred/<API key>.html" title="interface in org.apache.hadoop.mapred"><API key></A></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><A HREF="#org.apache.hadoop.mapred"><B>org.apache.hadoop.mapred</B></A></TD> <TD>A system for scalable, fault-tolerant, distributed computation over large data collections.&nbsp;</TD> </TR> </TABLE> &nbsp; <P> <A NAME="org.apache.hadoop.mapred"></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> Uses of <A HREF="../../../../../org/apache/hadoop/mapred/<API key>.html" title="interface in org.apache.hadoop.mapred"><API key></A> in <A HREF="../../../../../org/apache/hadoop/mapred/package-summary.html">org.apache.hadoop.mapred</A></FONT></TH> </TR> </TABLE> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="<API key>"> <TH ALIGN="left" COLSPAN="2">Classes in <A HREF="../../../../../org/apache/hadoop/mapred/package-summary.html">org.apache.hadoop.mapred</A> that implement <A HREF="../../../../../org/apache/hadoop/mapred/<API key>.html" title="interface in org.apache.hadoop.mapred"><API key></A></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;class</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../../org/apache/hadoop/mapred/JobTracker.html" title="class in org.apache.hadoop.mapred">JobTracker</A></B></CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JobTracker is the central location for submitting and tracking MR jobs in a network environment.</TD> </TR> </TABLE> &nbsp; <P> <HR> <A NAME="navbar_bottom"></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="<API key>"></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../org/apache/hadoop/mapred/<API key>.html" title="interface in org.apache.hadoop.mapred"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?org/apache/hadoop/mapred//<API key>.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="<API key>.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <! if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } </SCRIPT> <NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <HR> Copyright &copy; 2006 The Apache Software Foundation </BODY> </HTML>
package dx.exec import dx.api.{DxApi, DxFile} import dx.core.io.ExecLinkInfo import dx.core.languages.wdl.{TypeSerialization, <API key>} import spray.json._ import wdlTools.eval.WdlValues import wdlTools.types.WdlTypes case class WfFragInput(blockPath: Vector[Int], env: Map[String, (WdlTypes.T, WdlValues.V)], execLinkInfo: Map[String, ExecLinkInfo]) case class WfFragInputOutput(typeAliases: Map[String, WdlTypes.T], <API key>: <API key>, dxApi: DxApi) { private def revTransformVarName(varName: String): String = { varName.replaceAll("___", "\\.") } private def <API key>( metaInfo: Map[String, JsValue] ): (Map[String, ExecLinkInfo], Vector[Int], Map[String, WdlTypes.T]) = { // meta information used for running workflow fragments val execLinkInfo: Map[String, ExecLinkInfo] = metaInfo.get("execLinkInfo") match { case None => Map.empty case Some(JsObject(fields)) => fields.map { case (key, ali) => key -> ExecLinkInfo.readJson(dxApi, ali, typeAliases) } case other => throw new Exception(s"Bad value ${other}") } val blockPath: Vector[Int] = metaInfo.get("blockPath") match { case None => Vector.empty case Some(JsArray(arr)) => arr.map { case JsNumber(n) => n.toInt case _ => throw new Exception("Bad value ${arr}") } case other => throw new Exception(s"Bad value ${other}") } val fqnDictTypes: Map[String, WdlTypes.T] = metaInfo.get("fqnDictTypes") match { case Some(JsObject(fields)) => fields.map { case (key, JsString(value)) => // Transform back to a fully qualified name with dots val orgKeyName = revTransformVarName(key) val wdlType = TypeSerialization(typeAliases).fromString(value) orgKeyName -> wdlType case other => throw new Exception(s"Bad value ${other}") } case other => throw new Exception(s"Bad value ${other}") } (execLinkInfo, blockPath, fqnDictTypes) } // 1. Convert the inputs to WDL values // 2. Setup an environment to evaluate the sub-block. This should // look to the WDL code as if all previous code had been evaluated. def loadInputs(inputs: JsValue, metaInfo: JsValue): WfFragInput = { val regularFields: Map[String, JsValue] = inputs.asJsObject.fields .filter { case (fieldName, _) => !fieldName.endsWith(<API key>.FLAT_FILES_SUFFIX) } // Extract the meta information needed to setup the closure for the subblock val (execLinkInfo, blockPath, fqnDictTypes) = <API key>(metaInfo.asJsObject.fields) // What remains are inputs from other stages. Convert from JSON to WDL values val env: Map[String, (WdlTypes.T, WdlValues.V)] = regularFields.map { case (name, jsValue) => val fqn = revTransformVarName(name) val wdlType = fqnDictTypes.get(fqn) match { case None => throw new Exception(s"Did not find variable ${fqn} (${name}) in the block environment") case Some(x) => x } val value = <API key>.unpackJobInput(fqn, wdlType, jsValue) fqn -> (wdlType, value) } WfFragInput(blockPath, env, execLinkInfo) } // find all the dx:files that are referenced from the inputs def findRefDxFiles(inputs: JsValue, metaInfo: JsValue): Vector[DxFile] = { val regularFields: Map[String, JsValue] = inputs.asJsObject.fields .filter { case (fieldName, _) => !fieldName.endsWith(<API key>.FLAT_FILES_SUFFIX) } val (_, _, fqnDictTypes) = <API key>(metaInfo.asJsObject.fields) // Convert from JSON to WDL values regularFields .map { case (name, jsValue) => val fqn = revTransformVarName(name) if (!fqnDictTypes.contains(fqn)) { throw new Exception( s"Did not find variable ${fqn} (${name}) in the block environment" ) } dxApi.findFiles(jsValue) } .toVector .flatten } }
import java.io.IOException; import java.io.OutputStream; import java.net.InetSocketAddress; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; import java.util.Properties; import java.util.stream.Stream; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import com.google.common.base.Optional; import com.google.common.collect.Iterables; import com.sun.net.httpserver.HttpExchange; import com.sun.net.httpserver.HttpHandler; import com.sun.net.httpserver.HttpServer; import org.daisy.pipeline.client.PipelineClient; import org.daisy.pipeline.webservice.jaxb.job.Job; import org.daisy.pipeline.webservice.jaxb.job.JobStatus; import org.daisy.pipeline.webservice.jaxb.job.Messages; import org.daisy.pipeline.webservice.jaxb.request.Callback; import org.daisy.pipeline.webservice.jaxb.request.CallbackType; import org.daisy.pipeline.webservice.jaxb.request.Input; import org.daisy.pipeline.webservice.jaxb.request.Item; import org.daisy.pipeline.webservice.jaxb.request.JobRequest; import org.daisy.pipeline.webservice.jaxb.request.ObjectFactory; import org.daisy.pipeline.webservice.jaxb.request.Script; import org.daisy.pipeline.webservice.jaxb.request.Priority; import org.junit.Assert; import org.junit.Test; public class <API key> extends Base { private static final PipelineClient client = newClient(TestClientJobs.CREDS_DEF.clientId, TestClientJobs.CREDS_DEF.secret); @Override protected PipelineClient client() { return client; } @Override protected Properties systemProperties() { Properties p = super.systemProperties(); // client authentication is required for push notifications p.setProperty("org.daisy.pipeline.ws.authentication", "true"); p.setProperty("org.daisy.pipeline.ws.authentication.key", TestClientJobs.CREDS_DEF.clientId); p.setProperty("org.daisy.pipeline.ws.authentication.secret", TestClientJobs.CREDS_DEF.secret); return p; } @Test public void <API key>() throws Exception { AbstractCallback <API key> = new AbstractCallback() { JobStatus lastStatus = null; BigDecimal lastProgress = BigDecimal.ZERO; Iterator<BigDecimal> mustSee = stream(".25", ".375", ".5", ".55", ".675", ".8", ".9").map(d -> new BigDecimal(d)).iterator(); BigDecimal mustSeeNext = mustSee.next(); List<BigDecimal> seen = new ArrayList<BigDecimal>(); @Override void handleStatus(JobStatus status) { lastStatus = status; } @Override void handleMessages(Messages messages) { BigDecimal progress = messages.getProgress(); if (progress.compareTo(lastProgress) != 0) { Assert.assertTrue("Progress must be monotonic non-decreasing", progress.compareTo(lastProgress) >= 0); if (mustSeeNext != null) { if (progress.compareTo(mustSeeNext) == 0) { seen.clear(); mustSeeNext = mustSee.hasNext() ? mustSee.next() : null; } else { seen.add(progress); Assert.assertTrue("Expected " + mustSeeNext + " but got " + seen, progress.compareTo(mustSeeNext) < 0); } } lastProgress = progress; } } @Override void finalTest() { Assert.assertEquals(JobStatus.SUCCESS, lastStatus); Assert.assertTrue("Expected " + mustSeeNext + " but got " + seen, mustSeeNext == null); } }; HttpServer server; { server = HttpServer.create(new InetSocketAddress(8080), 0); server.createContext("/notify", <API key>); server.setExecutor(null); server.start(); } try { JobRequest req; { ObjectFactory oFactory = new ObjectFactory(); req = oFactory.createJobRequest(); Script script = oFactory.createScript(); { Optional<String> href = getScriptHref("<API key>"); Assert.assertTrue(href.isPresent()); script.setHref(href.get()); } req.<API key>().add(script); Input input = oFactory.createInput(); { Item source = oFactory.createItem(); source.setValue(getResource("hello.xml").toURI().toString()); input.getItem().add(source); input.setName("source"); } req.<API key>().add(input); req.<API key>().add(oFactory.createNicename("NICE_NAME")); req.<API key>().add(oFactory.createPriority(Priority.LOW)); Callback callback = oFactory.createCallback(); { callback.setType(CallbackType.MESSAGES); callback.setHref("http://localhost:8080/notify"); callback.setFrequency("1"); } req.<API key>().add(callback); callback = oFactory.createCallback(); { callback.setType(CallbackType.STATUS); callback.setHref("http://localhost:8080/notify"); callback.setFrequency("1"); } req.<API key>().add(callback); } Job job = client().sendJob(req); deleteAfterTest(job); waitForStatus(JobStatus.SUCCESS, job, 10000); // wait until all updates have been pushed Thread.sleep(1000); <API key>.finalTest(); } finally { server.stop(1); } } public static abstract class AbstractCallback implements HttpHandler { abstract void handleStatus(JobStatus status); abstract void handleMessages(Messages messages); abstract void finalTest(); @Override public void handle(HttpExchange t) throws IOException { Job job; { try { job = (Job)JAXBContext.newInstance(Job.class).createUnmarshaller().unmarshal(t.getRequestBody()); } catch (JAXBException e) { throw new RuntimeException(e); } } handleStatus(job.getStatus()); Optional<Messages> messages = getMessages(job); if (messages.isPresent()) handleMessages(messages.get()); String response = "got it"; t.sendResponseHeaders(200, response.length()); OutputStream os = t.getResponseBody(); os.write(response.getBytes()); os.close(); } } static Optional<Messages> getMessages(Job job) { return Optional.fromNullable( Iterables.getOnlyElement( Iterables.filter( job.<API key>(), Messages.class), null)); } static <T> Stream<T> stream(T... array) { return Arrays.<T>stream(array); } }
<?php require_once __DIR__.'/../bootstrap/pustaka.php'; $pustaka = new Pustaka\Applications(); return $pustaka->run();
# Geranium subacaulescens var. subacutum Boiss. VARIETY # Status SYNONYM # According to GRIN Taxonomy for Plants # Published in Fl. orient. 1:872. 1867 # Original name null Remarks null
package es.npatarino.android.gotchallenge.chat.message.viewmodel; import android.net.Uri; import es.npatarino.android.gotchallenge.chat.message.model.Payload; public class StickerPayLoad implements Payload { private String stickerFilePath; public StickerPayLoad(String stickerFilePath) { this.stickerFilePath = stickerFilePath; } public String getStickerFilePath() { return stickerFilePath; } public Uri getSticker() { return Uri.parse(stickerFilePath); } }
exports.view = function() { this.render(); }; exports.async = function() { this.render(); };
module.exports = { readFiles: readFiles }; var filewalker = require('filewalker'); var _ = require('kling/kling.js'); var fs = require('fs'); function readFiles(directory, fileSuffix) { return new Promise(function(resolve, reject) { var files = []; filewalker(directory) .on('file', function(file) { if (file.endsWith(fileSuffix)) { files.push(file); } }) .on('done', function() { var <API key> = _.curry(addLazyReader); resolve(_.fmap(<API key>(directory), files)); }) .walk(); }); } function addLazyReader(directory, file) { return { name: directory+file, getContents: function() { return fs.readFileSync(directory+file, 'utf8'); } }; }
# Search dictionary symbol style Find symbols within the mil2525d specification that match a keyword. ![](screenshot.png) ## Use case You can use support for military symbology to allow users to report changes in the field using the correct military symbols. ## How to use the sample By default, leaving the fields blank and hitting search will find all symbols. To search for certain symbols, enter text into one or more search boxes and click 'Search for symbols'. Results are shown in a list. Pressing 'Clear' will reset the search. ## How it works 1. Create a symbol dictionary with the mil2525d specification by passing the string "mil2525d" and the path to a .stylx file to the `SymbolDictionary` constructor. 2. Create `<API key>`. 3. Add members to the `names`, `tags`, `symbolClasses`, `categories`, and `keys` list fields of the search parameters. 4. Search for symbols using the parameters with `<API key>.searchSymbols(<API key>)`. 5. Get the `Symbol` from the list of returned `<API key>`s. ## Relevant API * <API key> * Symbol * <API key> * <API key> ## Offline Data Read more about how to set up the sample's offline data [here](http://links.esri.com/<API key>#<API key>). Link | Local Location |[Mil2525d Stylx File](https: ## Additional information This sample features the mil2525D specification. ArcGIS Runtime supports other military symbology standards, including mil2525C and mil2525B(change 2). See the [Military Symbology Styles](https://solutions.arcgis.com/defense/help/<API key>/) overview on *ArcGIS Solutions for Defense* for more information about support for military symbology. While developing, you can omit the path to the **.stylx** style file; Runtime will refer to a copy installed with the SDK. For production, you should take care to deploy the proper style files and explicitly specify the path to that file when creating the symbol dictionary. See the [Military Symbology Styles](https://solutions.arcgis.com/defense/help/<API key>/) overview on *ArcGIS Solutions for Defense* for more information about support for military symbology. ## Tags CIM, defense, look up, MIL-STD-2525B, MIL-STD-2525C, MIL-STD-2525D, mil2525b, mil2525c, mil2525d, military, military symbology, search, symbology
package com.hundsun.network.gates.wulin.biz.service.pojo.auction; import com.hundsun.network.gates.luosi.biz.security.ServiceException; import com.hundsun.network.gates.luosi.common.enums.EnumActiveStatus; import com.hundsun.network.gates.luosi.common.enums.EnumBidCheckStatus; import com.hundsun.network.gates.luosi.common.enums.EnumBidPriceStatus; import com.hundsun.network.gates.luosi.common.enums.EnumOperatorType; import com.hundsun.network.gates.luosi.common.remote.ServiceResult; import com.hundsun.network.gates.luosi.wulin.reomte.enums.EnumAuctionErrors; import com.hundsun.network.gates.luosi.wulin.reomte.request.<API key>; import com.hundsun.network.gates.luosi.wulin.reomte.request.<API key>; import com.hundsun.network.gates.wulin.biz.dao.auction.AuctionBidderDAO; import com.hundsun.network.gates.wulin.biz.dao.auction.AuctionFreeBidDAO; import com.hundsun.network.gates.wulin.biz.dao.auction.AuctionHallDAO; import com.hundsun.network.gates.wulin.biz.dao.auction.AuctionLogDAO; import com.hundsun.network.gates.wulin.biz.domain.auction.AuctionBidder; import com.hundsun.network.gates.wulin.biz.domain.auction.AuctionFreeBid; import com.hundsun.network.gates.wulin.biz.domain.auction.AuctionLog; import com.hundsun.network.gates.wulin.biz.domain.auction.<API key>; import com.hundsun.network.gates.wulin.biz.domain.query.<API key>; import com.hundsun.network.gates.wulin.biz.domain.query.<API key>; import com.hundsun.network.gates.wulin.biz.service.BaseService; import com.hundsun.network.gates.wulin.biz.service.auction.MulitAuctionService; import com.hundsun.network.gates.wulin.biz.service.message.<API key>; import com.hundsun.network.gates.wulin.biz.service.project.<API key>; import com.hundsun.network.melody.common.util.StringUtil; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Locale; import org.apache.commons.logging.Log; import org.codehaus.jackson.map.ObjectMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.MessageSource; import org.springframework.stereotype.Service; import org.springframework.transaction.TransactionStatus; import org.springframework.transaction.support.TransactionCallback; import org.springframework.transaction.support.TransactionTemplate; @Service("mulitAuctionService") public class <API key> extends BaseService implements MulitAuctionService { @Autowired private <API key> <API key>; @Autowired private AuctionFreeBidDAO auctionFreeBidDAO; @Autowired private AuctionBidderDAO auctionBidderDAO; @Autowired private AuctionLogDAO auctionLogDAO; @Autowired private MessageSource messageSource; @Autowired private AuctionHallDAO auctionHallDAO; @Autowired private <API key> <API key>; public ServiceResult review(final <API key> request) { ServiceResult serviceResult = new ServiceResult(); if ((null == request) || (StringUtil.isEmpty(request.getBidderAccount())) || (StringUtil.isEmpty(request.getReviewer())) || (StringUtil.isEmpty(request.getProjectCode())) || (StringUtil.isEmpty(request.getRemark()))) { serviceResult.setErrorNOInfo(Integer.valueOf(EnumAuctionErrors.PARAMETER_ERROR.getValue()), EnumAuctionErrors.PARAMETER_ERROR.getInfo()); return serviceResult; } <API key> query = new <API key>(); query.setReviewer(request.getReviewer()); query.setProjectCode(request.getProjectCode()); List projectList = this.<API key>.<API key>(query); if ((null == projectList) || (projectList.size() <= 0)) { serviceResult.setErrorNOInfo(Integer.valueOf(EnumAuctionErrors.<API key>.getValue()), EnumAuctionErrors.<API key>.getInfo()); return serviceResult; } AuctionFreeBid auctionFreeBid = <API key>(request.getProjectCode(), request.getBidderAccount()); if (null == auctionFreeBid) { serviceResult.setErrorNOInfo(Integer.valueOf(EnumAuctionErrors.PARAMETER_ERROR.getValue()), EnumAuctionErrors.PARAMETER_ERROR.getInfo()); return serviceResult; } /* 100 */ AuctionBidder auctionBidder = this.auctionBidderDAO.<API key>(request.getProjectCode(), request.getBidderAccount()); /* 102 */ if (null == auctionBidder) { /* 103 */ serviceResult.setErrorNOInfo(Integer.valueOf(EnumAuctionErrors.CHECK_BIDDER_NULL.getValue()), EnumAuctionErrors.CHECK_BIDDER_NULL.getInfo()); /* 105 */ return serviceResult; } /* 107 */ ObjectMapper mapper = new ObjectMapper(); /* 108 */ String auctionBidderJson = ""; try { /* 110 */ auctionBidderJson = mapper.writeValueAsString(auctionBidder); } catch (IOException e) { /* 112 */ if (this.log.isErrorEnabled()) { /* 113 */ this.log.error("convert auctionBidder to json format fail,", e); } } /* 116 */ final String fAuctionBidderJson = auctionBidderJson; /* 117 */ final AuctionFreeBid fAuctionFreeBid = auctionFreeBid; /* 118 */ final String logRemark = getMessage("project.auction.mulitbid.review.log.remark", new String[] { request.getReviewer(), auctionBidder.getBidderAccount() }); /* 120 */ final AuctionBidder fAuctionBidder = auctionBidder; /* 121 */ final <API key> <API key> = (<API key>)projectList.get(0); /* 123 */ serviceResult = (ServiceResult)this.transactionTemplate.execute(new TransactionCallback() { public ServiceResult doInTransaction(TransactionStatus status) { /* 125 */ ServiceResult result = new ServiceResult(); /* 126 */ Object savePoint = status.createSavepoint(); try { /* 129 */ AuctionFreeBid auctionFreeBid = new AuctionFreeBid(); /* 130 */ auctionFreeBid.setBidderAccount(fAuctionFreeBid.getBidderAccount()); /* 131 */ auctionFreeBid.setBidderTrademark(fAuctionFreeBid.getBidderTrademark()); /* 132 */ auctionFreeBid.<API key>(fAuctionFreeBid.<API key>()); /* 133 */ auctionFreeBid.setCheckRemark(request.getRemark()); /* 134 */ auctionFreeBid.setCheckStatus(EnumBidCheckStatus.Fail.getValue()); /* 135 */ auctionFreeBid.setIp(fAuctionFreeBid.getIp()); /* 136 */ auctionFreeBid.setOperator(request.getOperator()); /* 137 */ auctionFreeBid.setPrice(fAuctionFreeBid.getPrice()); /* 138 */ auctionFreeBid.setProjectCode(request.getProjectCode()); /* 139 */ auctionFreeBid.setStatus(fAuctionFreeBid.getStatus()); /* 140 */ <API key>.this.auctionFreeBidDAO.insert(auctionFreeBid); /* 143 */ if (<API key>.this.auctionBidderDAO.<API key>(request.getProjectCode(), request.getBidderAccount()) <= 0) { /* 145 */ throw new ServiceException(EnumAuctionErrors.<API key>.getInfo(), Integer.valueOf(EnumAuctionErrors.<API key>.getValue())); } /* 150 */ if (EnumActiveStatus.Yes.getValue().equals(fAuctionBidder.getIsPriority())) { /* 151 */ HashMap actionHallMap = new HashMap(); /* 152 */ actionHallMap.put("priorityNumSub", Integer.valueOf(1)); /* 153 */ actionHallMap.put("whereProjectCode", request.getProjectCode()); /* 154 */ if (<API key>.this.auctionHallDAO.updateByMap(actionHallMap) <= 0) { /* 155 */ throw new ServiceException(EnumAuctionErrors.<API key>.getInfo(), Integer.valueOf(EnumAuctionErrors.<API key>.getValue())); } } /* 172 */ <API key> <API key> = new <API key>(); /* 173 */ <API key>.setSendAccount(EnumOperatorType.SYSTEM.getValue()); /* 174 */ <API key>.setContent(<API key>.this.getMessage("project.auction.mulitbid.review.message.content", new String[] { <API key>.getProjectTitle(), request.getRemark() })); /* 177 */ <API key>.setTitle(<API key>.this.getMessage("project.auction.mulitbid.review.message.title", new String[0])); /* 179 */ List userAccountList = new ArrayList(); /* 180 */ userAccountList.add(fAuctionBidder.getBidderAccount()); /* 181 */ <API key>.setUserAccountList(userAccountList); /* 182 */ <API key>.this.<API key>.sendSystemMessage(<API key>); /* 185 */ AuctionLog auctionLog = new AuctionLog(); /* 186 */ auctionLog.setDataJson(fAuctionBidderJson); /* 187 */ auctionLog.setProjectCode(request.getProjectCode()); /* 188 */ auctionLog.setRemark(logRemark); /* 189 */ auctionLog.setOperatorType(EnumOperatorType.REVIEWER.getValue()); /* 190 */ auctionLog.setOperator(request.getReviewer()); /* 191 */ <API key>.this.auctionLogDAO.insert(auctionLog); } catch (ServiceException e) { /* 194 */ status.rollbackToSavepoint(savePoint); /* 195 */ <API key>.this.log.error("<API key> review fail", e); /* 196 */ result.setErrorNO(e.getErrorNO()); /* 197 */ result.setErrorInfo(e.getErrorInfo()); } catch (Exception e) { /* 199 */ status.rollbackToSavepoint(savePoint); /* 200 */ <API key>.this.log.error("<API key> review error", e); /* 201 */ result.setErrorNO(Integer.valueOf(EnumAuctionErrors.INTERNAL_ERROR.getValue())); /* 202 */ result.setErrorInfo(EnumAuctionErrors.INTERNAL_ERROR.getInfo()); } /* 204 */ return result; } }); /* 208 */ return serviceResult; } public AuctionFreeBid <API key>(String projectCode, String bidderAccount) { /* 213 */ <API key> query = new <API key>(); /* 214 */ query.setBidderAccount(bidderAccount); /* 215 */ query.setCheckStatus(EnumBidCheckStatus.Pass); /* 216 */ query.setProjectCode(projectCode); /* 217 */ query.setStatus(EnumBidPriceStatus.EFFECTIVE); /* 218 */ return this.auctionFreeBidDAO.<API key>(query); } protected String getMessage(String code, String[] args) { /* 222 */ return this.messageSource.getMessage(code, args, Locale.CHINA); } }
layout: post title: "LeetCode EFS" subtitle: "" date: 2019-12-20 author: "Jiayi.Liu" header-img: "img/post-bg-2015.jpg" catalog: true tags: - LeetCode - Interview ## 935. Knight Dialer &nbsp;&nbsp;&nbsp;&nbsp;This question is a great example of seeing a problem from **forward or backward**! &nbsp;&nbsp;&nbsp;&nbsp;Also, it looks like we should always think about separating the program into **stages** and **transition function**. ## 785. Is Graph Bipartite? &nbsp;&nbsp;&nbsp;&nbsp;There are a few steps for solving a programming problem: 1. Analyze the problem and find a way of solving the problem **with natural language**. In this step, we need to understand the problem and think of analytical solution or programmatic solution (search). If no idea, using brute-force method should be considered in this step. 2. Find a programming **pattern** (Search? Traversal? Backtracking? DP? etc.) can fit the 'natural language solution'. Actually step 2 and step 1 are somewhat related because we can also use programming patterns to help finding the natural language solution. 3. See if we can do further optimization with some tricks such as shown in the following problem. ## 837. New 21 Game > The purpose of DP is **reduce duplicated** calculations! So, once you noticed duplicated calculation in your algorithm, try to use DP. &nbsp;&nbsp;&nbsp;&nbsp;Thinking the brute-force method can really help us understand the problem. For this problem, the brute-force method takes exponential complexity and DP is a easily found better solution. &nbsp;&nbsp;&nbsp;&nbsp;We can learn a trick from this problem : if we want to sum over an array, it can be simplified as `sum(m::n) = sum(1::n) - sum(1::m)`. This is especially usefull with DP. ## 742. Closest Leaf in a Binary Tree &nbsp;&nbsp;&nbsp;&nbsp;When we face the case we need to *go backward* in a tree, *change it to a graph* can be a good idea. Because the action of going backward basically breaked the meaning of a tree structure, thus we can expand a tree to a more abstract structure that still preserved the relation between nodes. &nbsp;&nbsp;&nbsp;&nbsp;Changing a tree representation to a graph breaks the *parent-children* relationship in tree. The *parent-children* relation can be constrains and also helpers. For example, when we search for the longest path from leaf to leaf, we can use the parent-children relation as a hint and use DP! ## 373. Find K Pairs with Smallest Sums &nbsp;&nbsp;&nbsp;&nbsp;For this question, it can be super helpful if you think about representing the result with matrix. But even if you don't, you can still do something to **minimize the cost** such as only consider the *first k element in both arrays*. ## 1182. Shortest Distance to Target Color &nbsp;&nbsp;&nbsp;&nbsp;This is a typical searching problem, and even the brute-force searching looks ok we may be able to improve that. The key of searching is to see **what is the critieria we are searching for** and **how we can get rid of candidates ASAP**. Using critieria as index is a good idea to get rid of candidates. ## 1261. Find Elements in a Contaminated Binary Tree &nbsp;&nbsp;&nbsp;&nbsp;In this problem we can see that we always have different ways of optimizing. Here we can calculate the path from root to the node which will cause `O(logN)` time complexity and `O(1)` extra memory. However, if we want to optimize for find latency, we can always use a set to store all nodes value. &nbsp;&nbsp;&nbsp;&nbsp;Another point needs to learn from this problem is **make sure you understand what option is needed**, for example 'find existance', 'search with critieria' etc. ## 1130. Minimum Cost Tree From Leaf Values &nbsp;&nbsp;&nbsp;&nbsp;[This solution](https://leetcode.com/problems/<API key>/discuss/340004/Python-Easy-DP) is a typical **divide & conquer** method! If the result of mother problem can be divided into result of smaller problem, we should consider both **DP** and **divide & conqure**.
package com.afollestad.breadcrumb; import android.annotation.TargetApi; import android.app.Activity; import android.content.Context; import android.graphics.RectF; import android.graphics.drawable.Drawable; import android.os.Build; import android.support.annotation.NonNull; import android.support.v4.view.ViewCompat; import android.text.TextUtils; import android.util.AttributeSet; import android.util.Log; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.<API key>; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * @author Aidan Follestad (afollestad) */ public class LinearBreadcrumb extends <API key> implements View.OnClickListener { public static class Crumb implements Serializable { public Crumb(String path,String attachMsg) { mPath = path; mAttachMsg = attachMsg; } private final String mPath; private final String mAttachMsg; private int mScrollY; private int mScrollOffset; public int getScrollY() { return mScrollY; } public int getScrollOffset() { return mScrollOffset; } public void setScrollY(int scrollY) { this.mScrollY = scrollY; } public void setScrollOffset(int scrollOffset) { this.mScrollOffset = scrollOffset; } public String getPath() { return mPath; } public String getTitle() { return (!TextUtils.isEmpty(mAttachMsg)) ? mAttachMsg : mPath; } public String getmAttachMsg() { return mAttachMsg; } @Override public boolean equals(Object o) { return (o instanceof Crumb) && ((Crumb) o).getPath().equals(getPath()); } @Override public String toString() { return "Crumb{" + "mAttachMsg='" + mAttachMsg + '\'' + ", mPath='" + mPath + '\'' + ", mScrollY=" + mScrollY + ", mScrollOffset=" + mScrollOffset + '}'; } } public interface SelectionCallback { void onCrumbSelection(Crumb crumb, String absolutePath, int count, int index); } public LinearBreadcrumb(Context context) { super(context); init(); } public LinearBreadcrumb(Context context, AttributeSet attrs) { super(context, attrs); init(); } public LinearBreadcrumb(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); init(); } private List<Crumb> mCrumbs; private List<Crumb> mOldCrumbs; private LinearLayout mChildFrame; private int mActive; private SelectionCallback mCallback; private void init() { setMinimumHeight((int) getResources().getDimension(R.dimen.breadcrumb_height)); setClipToPadding(false); mCrumbs = new ArrayList<>(); mChildFrame = new LinearLayout(getContext()); addView(mChildFrame, new ViewGroup.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.MATCH_PARENT)); } @TargetApi(Build.VERSION_CODES.JELLY_BEAN) private void setAlpha(View view, int alpha) { if (view instanceof ImageView && Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { ((ImageView) view).setImageAlpha(alpha); } else { ViewCompat.setAlpha(view, alpha); } } public void addCrumb(@NonNull Crumb crumb, boolean refreshLayout) { LinearLayout view = (LinearLayout) LayoutInflater.from(getContext()).inflate(R.layout.bread_crumb, this, false); view.setTag(mCrumbs.size()); view.setClickable(true); view.setFocusable(true); view.setOnClickListener(this); mChildFrame.addView(view, new ViewGroup.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT)); mCrumbs.add(crumb); if (refreshLayout) { mActive = mCrumbs.size() - 1; requestLayout(); } <API key>(); } @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { super.onLayout(changed, l, t, r, b); //RTL works fine like this View child = mChildFrame.getChildAt(mActive); if (child != null) smoothScrollTo(child.getLeft(), 0); } public Crumb findCrumb(@NonNull String forDir) { for (int i = 0; i < mCrumbs.size(); i++) { if (mCrumbs.get(i).getPath().equals(forDir)) return mCrumbs.get(i); } return null; } public void clearCrumbs() { try { mOldCrumbs = new ArrayList<>(mCrumbs); mCrumbs.clear(); mChildFrame.removeAllViews(); } catch (<API key> e) { e.printStackTrace(); } } public Crumb getCrumb(int index) { return mCrumbs.get(index); } public void setCallback(SelectionCallback callback) { mCallback = callback; } public boolean setActive(Crumb newActive) { mActive = mCrumbs.indexOf(newActive); for(int i = size()-1;size()>mActive+1;i removeCrumbAt(i); } ((LinearLayout)mChildFrame.getChildAt(mActive)).getChildAt(1).setVisibility(View.GONE); boolean success = mActive > -1; if (success) requestLayout(); return success; } private void <API key>() { for (int i = 0; i < mCrumbs.size(); i++) { Crumb crumb = mCrumbs.get(i); invalidateActivated(mChildFrame.getChildAt(i), mActive == mCrumbs.indexOf(crumb), i < mCrumbs.size() - 1).setText(crumb.getTitle()); } } public void removeCrumbAt(int index) { mCrumbs.remove(index); mChildFrame.removeViewAt(index); } private void updateIndices() { for (int i = 0; i < mChildFrame.getChildCount(); i++) mChildFrame.getChildAt(i).setTag(i); } private boolean isValidPath(String path) { return path == null; } public int size() { return mCrumbs.size(); } private TextView invalidateActivated(View view, boolean isActive, boolean isShowSeparator) { LinearLayout child = (LinearLayout) view; if (isShowSeparator) child.getChildAt(1).setVisibility(View.VISIBLE); return (TextView) child.getChildAt(0); } public int getActiveIndex() { return mActive; } @Override public void onClick(View v) { if (mCallback != null) { int index = (Integer) v.getTag(); if (index >= 0 && index < (size()-1)) { setActive(mCrumbs.get(index)); mCallback.onCrumbSelection(mCrumbs.get(index), getAbsolutePath(mCrumbs.get(index), "/"), mCrumbs.size(), index); } } } public static class SavedStateWrapper implements Serializable { public final int mActive; public final List<Crumb> mCrumbs; public final int mVisibility; public SavedStateWrapper(LinearBreadcrumb view) { mActive = view.mActive; mCrumbs = view.mCrumbs; mVisibility = view.getVisibility(); } } public SavedStateWrapper getStateWrapper() { return new SavedStateWrapper(this); } public void <API key>(SavedStateWrapper mSavedState, Activity context) { if (mSavedState != null) { mActive = mSavedState.mActive; for (Crumb c : mSavedState.mCrumbs) { addCrumb(c, false); } requestLayout(); setVisibility(mSavedState.mVisibility); } } public String getAbsolutePath(Crumb crumb, @NonNull String separator) { StringBuilder builder = new StringBuilder(); if (size() > 1 && !crumb.equals(mCrumbs.get(0))) { List<Crumb> crumbs = mCrumbs.subList(1, size()); for (Crumb mCrumb : crumbs) { builder.append(mCrumb.getPath()); builder.append(separator); if (mCrumb.equals(crumb)) { break; } } String path = builder.toString(); return path.substring(0, path.length() -1); } else { return null; } } public String getCurAbsolutePath(@NonNull String separator){ return getAbsolutePath(getCrumb(mActive),separator); } public void addRootCrumb() { clearCrumbs(); addCrumb(new Crumb("/","root"), true); } public void addPath(@NonNull String path,@NonNull String sha, @NonNull String separator) { clearCrumbs(); addCrumb(new Crumb("",""), false); String[] paths = path.split(separator); Crumb lastCrumb = null; for (String splitPath : paths) { lastCrumb = new Crumb(splitPath,sha); addCrumb(lastCrumb, false); } if (lastCrumb != null) { setActive(lastCrumb); } } }
package org.b3log.solo.processor; import org.apache.commons.lang.StringUtils; import org.b3log.solo.AbstractTestCase; import org.b3log.solo.<API key>; import org.b3log.solo.<API key>; import org.testng.Assert; import org.testng.annotations.Test; @Test(suiteName = "processor") public class <API key> extends AbstractTestCase { /** * Init. * * @throws Exception exception */ @Test public void init() throws Exception { super.init(); } /** * showErrorPage. */ @Test(dependsOnMethods = "init") public void showErrorPage() { final <API key> request = mockRequest(); request.setRequestURI("/error/403"); final <API key> response = mockResponse(); <API key>(request, response); final String content = response.body(); Assert.assertTrue(StringUtils.contains(content, "<title>403 Forbidden! - Solo </title>")); } }
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_171) on Fri Apr 16 05:17:59 UTC 2021 --> <title><API key>.Builder</title> <meta name="date" content="2021-04-16"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> <body> <script type="text/javascript"><! try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="<API key>.Builder"; } } catch(err) { } var methods = {"i0":10,"i1":10,"i2":10,"i3":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar.top"> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../com/solidfire/element/api/<API key>.html" title="class in com.solidfire.element.api"><span class="typeNameLink">Prev&nbsp;Class</span></a></li> <li><a href="../../../../com/solidfire/element/api/<API key>.html" title="class in com.solidfire.element.api"><span class="typeNameLink">Next&nbsp;Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/solidfire/element/api/<API key>.Builder.html" target="_top">Frames</a></li> <li><a href="<API key>.Builder.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.top"> </a></div> <div class="header"> <div class="subTitle">com.solidfire.element.api</div> <h2 title="Class <API key>.Builder" class="title">Class <API key>.Builder</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>com.solidfire.element.api.<API key>.Builder</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>Enclosing class:</dt> <dd><a href="../../../../com/solidfire/element/api/<API key>.html" title="class in com.solidfire.element.api"><API key></a></dd> </dl> <hr> <br> <pre>public static class <span class="typeNameLabel"><API key>.Builder</span> extends java.lang.Object</pre> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="method.summary"> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code><a href="../../../../com/solidfire/element/api/<API key>.html" title="class in com.solidfire.element.api"><API key></a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/solidfire/element/api/<API key>.Builder.html#build--">build</a></span>()</code>&nbsp;</td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code><a href="../../../../com/solidfire/element/api/<API key>.Builder.html" title="class in com.solidfire.element.api"><API key>.Builder</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/solidfire/element/api/<API key>.Builder.html#<API key>.lang.Long:A-">optionalInitiators</a></span>(java.lang.Long[]&nbsp;initiators)</code>&nbsp;</td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code><a href="../../../../com/solidfire/element/api/<API key>.Builder.html" title="class in com.solidfire.element.api"><API key>.Builder</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/solidfire/element/api/<API key>.Builder.html#optionalLimit-java.lang.Long-">optionalLimit</a></span>(java.lang.Long&nbsp;limit)</code>&nbsp;</td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code><a href="../../../../com/solidfire/element/api/<API key>.Builder.html" title="class in com.solidfire.element.api"><API key>.Builder</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/solidfire/element/api/<API key>.Builder.html#<API key>.lang.Long-"><API key></a></span>(java.lang.Long&nbsp;startInitiatorID)</code>&nbsp;</td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> </a> <h3>Methods inherited from class&nbsp;java.lang.Object</h3> <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="method.detail"> </a> <h3>Method Detail</h3> <a name="build </a> <ul class="blockList"> <li class="blockList"> <h4>build</h4> <pre>public&nbsp;<a href="../../../../com/solidfire/element/api/<API key>.html" title="class in com.solidfire.element.api"><API key></a>&nbsp;build()</pre> </li> </ul> <a name="<API key>.lang.Long-"> </a> <ul class="blockList"> <li class="blockList"> <h4><API key></h4> <pre>public&nbsp;<a href="../../../../com/solidfire/element/api/<API key>.Builder.html" title="class in com.solidfire.element.api"><API key>.Builder</a>&nbsp;<API key>(java.lang.Long&nbsp;startInitiatorID)</pre> </li> </ul> <a name="optionalLimit-java.lang.Long-"> </a> <ul class="blockList"> <li class="blockList"> <h4>optionalLimit</h4> <pre>public&nbsp;<a href="../../../../com/solidfire/element/api/<API key>.Builder.html" title="class in com.solidfire.element.api"><API key>.Builder</a>&nbsp;optionalLimit(java.lang.Long&nbsp;limit)</pre> </li> </ul> <a name="<API key>.lang.Long:A-"> </a> <ul class="blockListLast"> <li class="blockList"> <h4>optionalInitiators</h4> <pre>public&nbsp;<a href="../../../../com/solidfire/element/api/<API key>.Builder.html" title="class in com.solidfire.element.api"><API key>.Builder</a>&nbsp;optionalInitiators(java.lang.Long[]&nbsp;initiators)</pre> </li> </ul> </li> </ul> </li> </ul> </div> </div> <div class="bottomNav"><a name="navbar.bottom"> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../com/solidfire/element/api/<API key>.html" title="class in com.solidfire.element.api"><span class="typeNameLink">Prev&nbsp;Class</span></a></li> <li><a href="../../../../com/solidfire/element/api/<API key>.html" title="class in com.solidfire.element.api"><span class="typeNameLink">Next&nbsp;Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/solidfire/element/api/<API key>.Builder.html" target="_top">Frames</a></li> <li><a href="<API key>.Builder.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> </a></div> </body> </html>
// JMP -- flat files don't need a SEP at the end of the last column #define EOL_HANDLING #ifdef DOS #define PATH_SEP '\\' #else #ifdef ATT #define STDLIB_HAS_GETOPT #ifdef SQLSERVER #define WIN32 #else /* the 64 bit defines are for the Metaware compiler */ #define SUPPORT_64BITS #define DSS_HUGE long long #define RNG_A <API key> #define RNG_C 1ull #define HUGE_FORMAT "%LLd" #define HUGE_DATE_FORMAT "%02LLd" #endif /* SQLSERVER or MP/RAS */ #endif /* ATT */ #ifdef HP #define <API key> #define STDLIB_HAS_GETOPT #define SUPPORT_64BITS #define DSS_HUGE long #define HUGE_COUNT 2 #define HUGE_FORMAT "%ld" #define HUGE_DATE_FORMAT "%02lld" #define RNG_C 1ull #define RNG_A <API key> #endif #ifdef IBM #define STDLIB_HAS_GETOPT #define SUPPORT_64BITS #define DSS_HUGE long long #define HUGE_FORMAT "%lld" #define HUGE_DATE_FORMAT "%02lld" #define RNG_A <API key> #define RNG_C 1ull #endif /* IBM */ #ifdef LINUX #define STDLIB_HAS_GETOPT #define SUPPORT_64BITS #define DSS_HUGE long long int #define HUGE_FORMAT "%lld" #define HUGE_DATE_FORMAT "%02lld" #define RNG_A <API key> #define RNG_C 1ull #endif /* LINUX */ #ifdef SUN #define STDLIB_HAS_GETOPT #define RNG_A <API key> #define RNG_C 1ull #define SUPPORT_64BITS #define DSS_HUGE long long #define HUGE_FORMAT "%lld" #define HUGE_DATE_FORMAT "%02lld" #endif /* SUN */ #ifdef SGI #define STDLIB_HAS_GETOPT #define SUPPORT_64BITS #define DSS_HUGE __int64_t #endif /* SGI */ #if (defined(WIN32)&&!defined(_POSIX_)) #define pid_t int #define SET_HANDLER(proc) signal(SIGINT, proc) #define KILL(pid) \ TerminateProcess(OpenProcess(PROCESS_TERMINATE,FALSE,pid),3) #if (defined (__WATCOMC__)) #define SPAWN() spawnv(P_NOWAIT, spawn_args[0], spawn_args) #define WAIT(res, pid) cwait(res, pid, WAIT_CHILD) #else #define SPAWN() _spawnv(_P_NOWAIT, spawn_args[0], spawn_args) #define WAIT(res, pid) _cwait(res, pid, _WAIT_CHILD) #define getpid _getpid #endif /* WATCOMC */ #define SIGS_DEFINED #define PATH_SEP '\\' #define SUPPORT_64BITS #define DSS_HUGE __int64 #define RNG_A <API key> #define RNG_C 1uI64 #define HUGE_FORMAT "%I64d" #define HUGE_DATE_FORMAT "%02I64d" /* need to define process termination codes to match UNIX */ /* these are copied from Linux/GNU and need to be verified as part of a rework of */ /* process handling under NT (29 Apr 98) */ #define WIFEXITED(s) ((s & 0xFF) == 0) #define WIFSIGNALED(s) (((unsigned int)((status)-1) & 0xFFFF) < 0xFF) #define WIFSTOPPED(s) (((s) & 0xff) == 0x7f) #define WTERMSIG(s) ((s) & 0x7f) #define WSTOPSIG(s) (((s) & 0xff00) >> 8) /* requried by move to Visual Studio 2005 */ #define strdup(x) _strdup(x) #endif /* WIN32 */ #ifndef SIGS_DEFINED #define KILL(pid) kill(SIGUSR1, pid) #define SET_HANDLER(proc) signal(SIGUSR1, proc) #define SPAWN fork #define WAIT(res, pid) wait(res) #endif /* DEFAULT */ #endif /* DOS */ #ifndef PATH_SEP #define PATH_SEP '/' #endif /* PATH_SEP */ #ifndef DSS_HUGE #error Support for a 64-bit datatype is required in this release #endif #ifndef DOUBLE_CAST #define DOUBLE_CAST (double) #endif /* DOUBLE_CAST */
package com.stdnull.v2api.model; import android.os.Bundle; import android.os.Parcelable; import java.util.ArrayList; import java.util.List; public class V2MainFragModel { private static final String KEY_V2EXBEAN = "KEY_V2EXBEAN"; private List<V2ExBean> mContentListModel = new ArrayList<>(); public List<V2ExBean> getContentListModel() { return mContentListModel; } public void addContentListModel(List<V2ExBean> contentListModel) { if(contentListModel != null) { this.mContentListModel.addAll(contentListModel); } } public boolean isModelEmpty(){ return mContentListModel.isEmpty() ; } public void clearModel(){ mContentListModel.clear(); } public void save(Bundle bundle){ bundle.<API key>(KEY_V2EXBEAN, (ArrayList<? extends Parcelable>) mContentListModel); } public boolean restore(Bundle bundle){ if(bundle == null){ return false; } mContentListModel = bundle.<API key>(KEY_V2EXBEAN); return mContentListModel != null && !mContentListModel.isEmpty(); } }
DROP TABLE IF EXISTS tags; DROP TABLE IF EXISTS invitations; DROP TABLE IF EXISTS tasks; DROP TABLE IF EXISTS projects; DROP TABLE IF EXISTS teams_users; DROP TABLE IF EXISTS teams; DROP TABLE IF EXISTS orgs_users; DROP TABLE IF EXISTS organizations; DROP TABLE IF EXISTS users; CREATE TABLE users ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(50) NOT NULL, email varchar(100) NOT NULL, password varchar(100) NOT NULL, enabled tinyint(1) DEFAULT NULL, locked tinyint(1) DEFAULT NULL, activation_token varchar(100) DEFAULT NULL, <API key> varchar(100) DEFAULT NULL, created_by int(11) DEFAULT NULL, created_date date DEFAULT NULL, updated_by int(11) DEFAULT NULL, updated_date date DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY EMAIL_UNIQUE (email) ); CREATE TABLE organizations ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(100) NOT NULL, owner_user_id int(11) NOT NULL, created_by int(11) DEFAULT NULL, created_date date DEFAULT NULL, updated_by int(11) DEFAULT NULL, updated_date date DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY ORG_NAME_UNIQUE (owner_user_id,name), CONSTRAINT fk_owner_user_id FOREIGN KEY (owner_user_id) REFERENCES users (id) ); CREATE TABLE orgs_users ( org_id int(11) NOT NULL, user_id int(11) NOT NULL, disabled tinyint(1) DEFAULT NULL, PRIMARY KEY (org_id,user_id) ); CREATE TABLE teams ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(100) NOT NULL, org_id int(11) NOT NULL, created_by int(11) DEFAULT NULL, created_date date DEFAULT NULL, updated_by int(11) DEFAULT NULL, updated_date date DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY TEAM_NAME_UNIQUE (org_id,name), CONSTRAINT fk_team_org_id FOREIGN KEY (org_id) REFERENCES organizations (id) ); CREATE TABLE teams_users ( team_id int(11) NOT NULL, user_id int(11) NOT NULL, disabled tinyint(1) DEFAULT NULL, PRIMARY KEY (team_id,user_id) ); CREATE TABLE projects ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(100) NOT NULL, team_id int(11) NOT NULL, owner_user_id int(11) NOT NULL, created_by int(11) DEFAULT NULL, created_date date DEFAULT NULL, updated_by int(11) DEFAULT NULL, updated_date date DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY <API key> (team_id,name), CONSTRAINT fk_proj_team_id FOREIGN KEY (team_id) REFERENCES teams (id), CONSTRAINT <API key> FOREIGN KEY (owner_user_id) REFERENCES users (id) ); CREATE TABLE tasks ( id int(11) NOT NULL AUTO_INCREMENT, title varchar(200) NOT NULL, description longtext, proj_id int(11) NOT NULL, assigned_user_id int(11) DEFAULT NULL, due_date date DEFAULT NULL, created_by int(11) DEFAULT NULL, created_date date DEFAULT NULL, updated_by int(11) DEFAULT NULL, updated_date date DEFAULT NULL, PRIMARY KEY (id), CONSTRAINT fk_proj_task_id FOREIGN KEY (proj_id) REFERENCES projects (id), CONSTRAINT fk_task_user_id FOREIGN KEY (assigned_user_id) REFERENCES users (id) ); CREATE TABLE tags ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(100) NOT NULL, org_id int(11) NOT NULL, created_by int(11) DEFAULT NULL, created_date date DEFAULT NULL, updated_by int(11) DEFAULT NULL, updated_date date DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY TAG_NAME_UNIQUE (org_id,name), CONSTRAINT fk_tag_org_id FOREIGN KEY (org_id) REFERENCES organizations (id) ); CREATE TABLE invitations ( id int(11) NOT NULL AUTO_INCREMENT, from_email varchar(100) NOT NULL, to_email varchar(100) NOT NULL, org_id int(11) NOT NULL, invitation_code varchar(100) NOT NULL, accepted tinyint(1) DEFAULT NULL, created_by int(11) DEFAULT NULL, created_date date DEFAULT NULL, updated_by int(11) DEFAULT NULL, updated_date date DEFAULT NULL, PRIMARY KEY (id), CONSTRAINT fk_invite_org_id FOREIGN KEY (org_id) REFERENCES organizations (id), CONSTRAINT <API key> FOREIGN KEY (from_email) REFERENCES users (email) );
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>canvas-nest.js</title> </head> <body> <! Canvas-nest.js color="255,0,0" opacity="0.5" 0.5-1 count="99" <script type="text/javascript" color="255,0,0" opacity='0.7' zIndex="-2" count="200" src="../../../s/canvas-nest/canvas-nest.min.js"></script> </body> </html>
<html xmlns:wicket="http://wicket.apache.org"> <wicket:head> <meta NAME="ROBOTS" CONTENT="noindex" /> </wicket:head> <wicket:extend> </wicket:extend> </html>
#ifndef CELLO_SIMULATION_H #define CELLO_SIMULATION_H #include <algorithm> #include <stdexcept> #include <map> #include <memory> #include <queue> #include <string> #include <vector> #include <gameplay.h> #include <core/Delegate.h> #include <core/SimulationTypes.h> #include <json/json.h> #include <ui/Atlas.h> #include <util/Util.h> using std::map; using std::queue; using std::runtime_error; using std::string; using std::vector; using gameplay::PhysicsController; namespace cello { class Component; class ComponentFactory; class Simulation : NonCopyable { public: /** * The reserved ID for the System entity */ static const EntityID SYSTEM_ENTITY_ID = 0; /** * The reserved ID to represent an invalid entity */ static const EntityID INVALID_ENTITY_ID = -1; explicit Simulation(Atlas* atlas); virtual ~Simulation(); Atlas* getAtlas() const { return _atlas; } /** * Get a reference to a component of the specified entity and component type. * Returns nullptr if the component or the entity is not found */ template<class ComponentClass> ComponentClass* getComponent(int entityID) const { ComponentType componentType = ComponentClass::getType(); auto entityMapIt = _entityMap.find(entityID); if (_entityMap.end() == entityMapIt) { return nullptr; } ComponentTypeMap& componentTypeMap = *(entityMapIt->second); auto componentTypeMapIt = componentTypeMap.find(componentType); if (componentTypeMap.end() == componentTypeMapIt) { return nullptr; } return static_cast<ComponentClass*>(componentTypeMapIt->second); } /* * Returns a list of all components of the specified type */ template<class ComponentClass> ComponentList* getComponentsOfType() { ComponentType componentType = ComponentClass::getType(); // If no components of the required type currently exist, a new list // will be created and returned return &_componentMap[componentType]; } bool isLevelLoaded() const { return _levelLoaded; } void loadLevel(string levelFile, Json::Value levelData); Json::Value saveLevel(); string getLevelFile() const { return _levelFile; } string getLevelName() const { return _levelName; } string getScriptName() const { return _scriptName; } void init(); ComponentTypeMap* getComponentTypeMap(EntityID entity); EntityID spawnEntity(string templateName); /** * Queue an entity for destruction. The entity and it's components are removed from * the simulation but the components still exist in memory to allow other * components/systems time to remove references to them */ void killEntity(EntityID entity); /** * Kill entity and immediately destroy it. */ void destroyEntity(EntityID entity); Delegate<EntityID>& onEntityCreated() { return <API key>; } Delegate<EntityID>& onEntityKilled() { return <API key>; } private: bool _levelLoaded; string _levelFile; string _levelName; string _scriptName; /** * The value at which automatic ID generation starts */ static const EntityID START_ENTITY_ID = 100; /** * Get the next available unique ID to assign to the next created entity */ inline EntityID getNextEntityID() { return _nextEntityID++; } int _nextEntityID; static const string INHERIT_KEY; static const string LOAD_EXTERNAL_KEY; static const string ENTITY_ID_KEY; static const string ENTITIES_LIST_KEY; static const string GAME_STATE_KEY; static const string <API key>; void <API key>(Component* component, Json::Value& componentData); Json::Value serializeComponent(Component* component, Json::Value& parentComponentData, bool copyAll); /** * Construct an empty entity from data and returns the Entity ID */ EntityID constructEntity(Json::Value entityData); /** * Construct a component from data, adds it to the specified entity and returns a reference to it */ void constructComponent(EntityID entityID, string componentTypeStr, Json::Value componentData); Json::Value <API key>(Json::Value entityData); Json::Value <API key>(Json::Value entityData); Json::Value getExternalData(string filename); /** * Add a component to an entity */ void addComponent(EntityID entityID, ComponentType componentType, Component* component); /** * Remove a component from an entity */ void removeComponent(EntityID entityID, ComponentType); /** * For every entity there is a map of ComponentType=>Component */ map<EntityID, ComponentTypeMap*> _entityMap; /** * Stores the list of entities to be destroyed at the end of a turn. * Entities cannot be destroyed mid-turn */ map<EntityID, ComponentTypeMap*> _killedEntityMap; /** * Stores a list of components for every component type */ map<ComponentType, ComponentList> _componentMap; /** * Delete the components of the entities in the map */ void destroyEntities(map<EntityID, ComponentTypeMap*>& entityMap); void <API key>(ComponentTypeMap* componentTypeMap); /** * Stores the original template the entity was loaded from. This will * enable us to generate smaller save files */ map<EntityID, string> _entityTemplateMap; ComponentFactory* _componentFactory; Atlas* _atlas; Delegate<EntityID> <API key>; Delegate<EntityID> <API key>; }; } #endif
package org.b3log.solo.model; public final class Link { /** * Link. */ public static final String LINK = "link"; /** * Links. */ public static final String LINKS = "links"; /** * Key of title. */ public static final String LINK_TITLE = "linkTitle"; /** * Key of address. */ public static final String LINK_ADDRESS = "linkAddress"; /** * Key of description. */ public static final String LINK_DESCRIPTION = "linkDescription"; /** * Key of order. */ public static final String LINK_ORDER = "linkOrder"; /** * Private constructor. */ private Link() { } }
import {ShopOrderDetail} from './ShopOrderDetail'; export class ShopOrder { order_id: string; user_id: number; username: string; is_vip: number; payment: number; order_no: number; shopway: number; status: number; employee_id: string; buytime: Date; orderdealtime: Date; phone: string; address: string; soft_delete: string; subPrice:number; shopOrderDetails: ShopOrderDetail[]; }
layout: post title: -OC objective-c NSArray * b = @[@5,@2,@3,@1,@8]; NSMutableArray *a = @[].mutableCopy; for (int i=0; i<11; i++) { a[i] = @0; } for (NSNumber *num in b) { int index = [num intValue]; if(a[index]){ a[index] = @([a[index] intValue] + 1); } else { a[index] = @0; } } for (int i = 0; i<a.count; i++) { if([a[i] intValue]>0){ NSLog(@"%d",i); } }
package jenkins.plugins.hygieia; public class <API key> extends <API key> { // private HttpClientStub httpClientStub; public <API key>(String host, String token, String name) { super(host, token, name); } // @Override // public HttpClientStub getHttpClient() { // return httpClientStub; // public void setHttpClient(HttpClientStub httpClientStub) { // this.httpClientStub = httpClientStub; }
package cn.aezo.demo.rabbitmq.c05_model_topic; import cn.aezo.demo.rabbitmq.util.RabbitmqU; import com.rabbitmq.client.AMQP; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.DefaultConsumer; import com.rabbitmq.client.Envelope; import java.io.IOException; /** * topic * * * consumer1[aezo.order.vip] 0 * consumer2[smalle.vip] 2 * consumer1[aezo.user] 1 * consumer1[smalle.vip] 2 * consumer1[aezo.order.vip] 3 * consumer1[aezo.user] 4 * * @author smalle * @date 2020-08-29 16:31 */ public class Consumer { private static final String EXCHANGE_NAME = "topic_logs"; public static void main(String[] args) throws IOException { consumer1(); consumer2(); } public static void consumer1() throws IOException { Connection connection = RabbitmqU.getConnection(); Channel channel = connection.createChannel(); channel.exchangeDeclare(EXCHANGE_NAME, "topic"); // Queues-Features"AD"(autoDelete)"Excl"(exclusive) String queueName = channel.queueDeclare().getQueue(); channel.queueBind(queueName, EXCHANGE_NAME, "aezo. channel.queueBind(queueName, EXCHANGE_NAME, "*.vip"); channel.basicConsume(queueName, true, new DefaultConsumer(channel) { @Override public void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body) throws IOException { System.out.println("consumer1" + new String(body, "UTF-8")); } }); } public static void consumer2() throws IOException { Connection connection = RabbitmqU.getConnection(); Channel channel = connection.createChannel(); channel.exchangeDeclare(EXCHANGE_NAME, "topic"); String queueName = channel.queueDeclare().getQueue(); // * aezo.order.vip aezo.vip.hello channel.queueBind(queueName, EXCHANGE_NAME, "*.vip"); channel.basicConsume(queueName, true, new DefaultConsumer(channel) { @Override public void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body) throws IOException { System.out.println("consumer2" + new String(body, "UTF-8")); } }); } }
# AUTOGENERATED FILE FROM balenalib/aarch64-debian:stretch-run ENV NODE_VERSION 10.23.1 ENV YARN_VERSION 1.22.4 RUN buildDeps='curl libatomic1' \ && set -x \ && for key in \ <API key> \ ; do \ gpg --batch --keyserver pgp.mit.edu --recv-keys "$key" || \ gpg --batch --keyserver keyserver.pgp.com --recv-keys "$key" || \ gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \ done \ && apt-get update && apt-get install -y $buildDeps --<API key> \
# AUTOGENERATED FILE FROM balenalib/qemux86-debian:buster-run ENV GO_VERSION 1.15.8 # gcc for cgo RUN apt-get update && apt-get install -y --<API key> \ g++ \ gcc \ libc6-dev \ make \ pkg-config \ git \
<?php include("config.php"); $content = file_get_contents($data_munched); $data = json_decode($content, true); function sort_by_order ($a, $b) { return $b['amount']['total'] - $a['amount']['total']; } usort($data["exchanges"], 'sort_by_order'); print_r($data); ?>
@import url('/static/libs/alice/poptip/1.2.0/poptip.css'); .poptip { top: 0; left: 0; }
class <API key> attr_accessor :access_rights # :internal => :external def self.attribute_map { :access_rights => :accessRights } end def initialize(attributes = {}) # Morph attribute keys into undescored rubyish style if attributes.to_s != "" if <API key>.attribute_map["access_rights".to_sym] != nil name = "access_rights".to_sym value = attributes["accessRights"] send("#{name}=", value) if self.respond_to?(name) end end end def to_body body = {} <API key>.attribute_map.each_pair do |key,value| body[value] = self.send(key) unless self.send(key).nil? end body end end
<!DOCTYPE HTML PUBLIC "- <!--NewPage <HTML> <HEAD> <!-- Generated by javadoc on Mon Sep 30 21:58:47 GMT-05:00 2002 --> <TITLE> Index () </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> </HEAD> <SCRIPT> function asd() { parent.document.title="Index ()"; } </SCRIPT> <BODY BGCOLOR="white" onload="asd();"> <A NAME="navbar_top"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Index</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="index-all.html" TARGET="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp; <SCRIPT> <! if(window==top) { document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } </SCRIPT> <NOSCRIPT> <A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A HREF="#_A_">A</A> <A HREF="#_B_">B</A> <A HREF="#_C_">C</A> <A HREF="#_D_">D</A> <A HREF="#_E_">E</A> <A HREF="#_F_">F</A> <A HREF="#_G_">G</A> <A HREF="#_H_">H</A> <A HREF="#_I_">I</A> <A HREF="#_L_">L</A> <A HREF="#_M_">M</A> <A HREF="#_N_">N</A> <A HREF="#_P_">P</A> <A HREF="#_R_">R</A> <A HREF="#_S_">S</A> <A HREF="#_T_">T</A> <HR> <A NAME="_A_"></A><H2> <B>A</B></H2> <DL> <DT><A HREF="com/jamonapi/AccumulateMonitor.html"><B>AccumulateMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A>.<DD>AccumulateMonitors represent Monitors that increase in value.<DT><A HREF="com/jamonapi/AccumulateMonitor.html#AccumulateMonitor()"><B>AccumulateMonitor()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Default constructor. <DT><A HREF="com/jamonapi/AccumulateMonitor.html#AccumulateMonitor(com.jamonapi.<API key>)"><B>AccumulateMonitor(<API key>)</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Monitors use the Gang of 4 decorator pattern where each monitor points to and calls the next monitor in the chain. <DT><A HREF="com/jamonapi/<API key>.html"><B><API key></B></A> - interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A>.<DD>This is very similar to the Monitor interface.<DT><A HREF="com/jamonapi/ActiveStatsMonitor.html"><B>ActiveStatsMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/ActiveStatsMonitor.html">ActiveStatsMonitor</A>.<DD>Tracks statistics for Monitors that are currently running.<DT><A HREF="com/jamonapi/ActiveStatsMonitor.html#ActiveStatsMonitor()"><B>ActiveStatsMonitor()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/ActiveStatsMonitor.html">ActiveStatsMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/ActiveStatsMonitor.html#ActiveStatsMonitor(com.jamonapi.<API key>)"><B>ActiveStatsMonitor(<API key>)</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/ActiveStatsMonitor.html">ActiveStatsMonitor</A> <DD>Constructor that uses the Gang Of 4's decorator pattern. <DT><A HREF="com/jamonapi/MonitorComposite.html#addCompositeNode(java.lang.String, com.jamonapi.utils.CompositeNode)"><B>addCompositeNode(String, CompositeNode)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Add a CompositeNode to the data structure if it doesn't exist. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#addCompositeNode(java.lang.String, com.jamonapi.utils.CompositeNode)"><B>addCompositeNode(String, CompositeNode)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html#addLeafNode(java.lang.String, com.jamonapi.utils.LeafNode)"><B>addLeafNode(String, LeafNode)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Add a LeafNode to the data structure if it doesn't exist. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#addLeafNode(java.lang.String, com.jamonapi.utils.LeafNode)"><B>addLeafNode(String, LeafNode)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppBaseException.html"><B>AppBaseException</B></A> - exception com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppBaseException.html">AppBaseException</A>.<DD>&nbsp;<DT><A HREF="com/jamonapi/utils/AppBaseException.html#AppBaseException()"><B>AppBaseException()</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppBaseException.html">AppBaseException</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppBaseException.html#AppBaseException(java.lang.String)"><B>AppBaseException(String)</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppBaseException.html">AppBaseException</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppBaseException.html#AppBaseException(java.lang.String, java.lang.String)"><B>AppBaseException(String, String)</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppBaseException.html">AppBaseException</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppConstants.html"><B>AppConstants</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppConstants.html">AppConstants</A>.<DD>&nbsp;<DT><A HREF="com/jamonapi/utils/AppConstants.html#AppConstants()"><B>AppConstants()</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppConstants.html">AppConstants</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppMap.html"><B>AppMap</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppMap.html">AppMap</A>.<DD>Case Insensitive HashMap() - If the maps key is a string then the following keys are all considered equal: myKey<br> MYKEY<br> MyKey<br> <DT><A HREF="com/jamonapi/utils/AppMap.html#AppMap()"><B>AppMap()</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppMap.html">AppMap</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#arrayListToString(java.util.ArrayList)"><B>arrayListToString(ArrayList)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method converts an ArrayList, containing string arrays of ResultSet row data, into a two dimensional string array. </DL> <HR> <A NAME="_B_"></A><H2> <B>B</B></H2> <DL> <DT><A HREF="com/jamonapi/BaseMonitor.html"><B>BaseMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A>.<DD>Abstract base class for other Monitors<DT><A HREF="com/jamonapi/BaseMonitor.html#BaseMonitor()"><B>BaseMonitor()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/BasicTimingMonitor.html"><B>BasicTimingMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/BasicTimingMonitor.html">BasicTimingMonitor</A>.<DD>The most basic of timing Monitors.<DT><A HREF="com/jamonapi/<API key>.html#basicTimingMonitor()"><B>basicTimingMonitor()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/BasicTimingMonitor.html#BasicTimingMonitor()"><B>BasicTimingMonitor()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/BasicTimingMonitor.html">BasicTimingMonitor</A> <DD>&nbsp; </DL> <HR> <A NAME="_C_"></A><H2> <B>C</B></H2> <DL> <DT><A HREF="com/jamonapi/package-summary.html"><B>com.jamonapi</B></A> - package com.jamonapi<DD>This package contains classes and interfaces used to monitor Java applications.<DT><A HREF="com/jamonapi/utils/package-summary.html"><B>com.jamonapi.utils</B></A> - package com.jamonapi.utils<DD>This package contains utility classes used by the JAMon implementation that are of general use beyond JAMon.<DT><A HREF="com/jamonapi/utils/Command.html"><B>Command</B></A> - interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/Command.html">Command</A>.<DD>Simple interface that is used in the implementation of the Gang Of 4 Command pattern in Java.<DT><A HREF="com/jamonapi/utils/CommandIterator.html"><B>CommandIterator</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/CommandIterator.html">CommandIterator</A>.<DD>Used with the Command interface to implement the Gang of 4 Command pattern to execute some logic for every entry of various iterators.<DT><A HREF="com/jamonapi/utils/CompositeNode.html"><B>CompositeNode</B></A> - interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A>.<DD>A CompositeNode works with NodeTrees and LeafNodes to create heirarchical object trees.<DT><A HREF="com/jamonapi/MonitorComposite.html#compositeNodeExists(java.lang.String)"><B>compositeNodeExists(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Does the passed in CompositeNode exist. <DT><A HREF="com/jamonapi/utils/NodeTree.html#compositeNodeExists(java.lang.String)"><B>compositeNodeExists(String)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/NodeTree.html">NodeTree</A> <DD>Determine if the CompositeNode represented by the locator string exists. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#compositeNodeExists(java.lang.String)"><B>compositeNodeExists(String)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>Returns true if the compositeNodeExists <DT><A HREF="com/jamonapi/utils/AppMap.html#containsKey(java.lang.Object)"><B>containsKey(Object)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppMap.html">AppMap</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html#createInstance()"><B>createInstance()</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#createInstance()"><B>createInstance()</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppMap.html#createInstance()"><B>createInstance()</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppMap.html">AppMap</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html#createInstance(java.lang.String)"><B>createInstance(String)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorLeafFactory.html#createInstance(java.lang.String)"><B>createInstance(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorLeafFactory.html">MonitorLeafFactory</A> <DD>This is the method that creates monitors. </DL> <HR> <A NAME="_D_"></A><H2> <B>D</B></H2> <DL> <DT><A HREF="com/jamonapi/<API key>.html#debugFactoryMonitor()"><B>debugFactoryMonitor()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorLeafFactory.html#DEFAULT"><B>DEFAULT</B></A> - Static variable in class com.jamonapi.<A HREF="com/jamonapi/MonitorLeafFactory.html">MonitorLeafFactory</A> <DD>&nbsp; </DL> <HR> <A NAME="_E_"></A><H2> <B>E</B></H2> <DL> <DT><A HREF="com/jamonapi/utils/EnumIterator.html"><B>EnumIterator</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/EnumIterator.html">EnumIterator</A>.<DD>Simple Wrapper utility class that makes an Enumeration behave like an Iterator.<DT><A HREF="com/jamonapi/utils/EnumIterator.html#EnumIterator(java.util.Enumeration)"><B>EnumIterator(Enumeration)</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/EnumIterator.html">EnumIterator</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/Command.html#execute(java.lang.Object)"><B>execute(Object)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/Command.html">Command</A> <DD>&nbsp; </DL> <HR> <A NAME="_F_"></A><H2> <B>F</B></H2> <DL> <DT><A HREF="com/jamonapi/<API key>.html#factoryBasicMonitor()"><B>factoryBasicMonitor()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html#factoryMonitor()"><B>factoryMonitor()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/FileUtils.html"><B>FileUtils</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/FileUtils.html">FileUtils</A>.<DD>Reusable Utilities used for File manipulations such as reading a file as a String.<DT><A HREF="com/jamonapi/utils/FileUtils.html#FileUtils()"><B>FileUtils()</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/FileUtils.html">FileUtils</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#<API key>(java.util.ArrayList, java.sql.ResultSet)"><B><API key>(ArrayList, ResultSet)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method returns an ArrayList containing the ResultSet column names and data. <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#<API key>(java.sql.ResultSet)"><B><API key>(ResultSet)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method simply takes the ResultSet and converts it to a two dimensional array of strings containing the column names and data using calls to the <API key> and arrayListToString methods. </DL> <HR> <A NAME="_G_"></A><H2> <B>G</B></H2> <DL> <DT><A HREF="com/jamonapi/utils/AppMap.html#get(java.util.Map, java.lang.Object)"><B>get(Map, Object)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppMap.html">AppMap</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppMap.html#get(java.lang.Object)"><B>get(Object)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppMap.html">AppMap</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TimingMonitor.html#getAccrued()"><B>getAccrued()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>Returns the time that the Monitor has been running <DT><A HREF="com/jamonapi/TimeStatsMonitor.html#getAccrued()"><B>getAccrued()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimeStatsMonitor.html">TimeStatsMonitor</A> <DD>Returned the total accrued time for this monitor <DT><A HREF="com/jamonapi/<API key>.html#getAccrued()"><B>getAccrued()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html#getAccrued()"><B>getAccrued()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Returns the accrued value of all Monitors underneath this MonitorComposite. <DT><A HREF="com/jamonapi/MinimalMonitor.html#getAccrued()"><B>getAccrued()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MinimalMonitor.html">MinimalMonitor</A> <DD>Return the accrued value. <DT><A HREF="com/jamonapi/BaseMonitor.html#getAccrued()"><B>getAccrued()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/ActiveStatsMonitor.html#getAccrued()"><B>getAccrued()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/ActiveStatsMonitor.html">ActiveStatsMonitor</A> <DD>Return the number of Active Monitors of this instance <DT><A HREF="com/jamonapi/AccumulateMonitor.html#getAccrued()"><B>getAccrued()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Get the value of the monitor. <DT><A HREF="com/jamonapi/MonitorComposite.html#getAccruedString()"><B>getAccruedString()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Return the accrued value in String format <DT><A HREF="com/jamonapi/BaseMonitor.html#getAccruedString()"><B>getAccruedString()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/AccumulateMonitor.html#getAccruedString()"><B>getAccruedString()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Return the accrued value in String format <DT><A HREF="com/jamonapi/utils/Misc.html#getClassName(java.lang.Object)"><B>getClassName(Object)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Misc.html">Misc</A> <DD>Returns an Objects ClassName minus the package name Sample Call: String className=Misc.getClassName("My Object"); // returns "String" <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#getColumnNames(java.sql.ResultSetMetaData)"><B>getColumnNames(ResultSetMetaData)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method returns an array of strings containing the column names for a given ResultSetMetaData object. <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#getColumnNames(java.sql.ResultSetMetaData, int[])"><B>getColumnNames(ResultSetMetaData, int[])</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method returns an array of strings containing the column names for a given ResultSetMetaData object. <DT><A HREF="com/jamonapi/<API key>.html#getComposite(java.lang.String)"><B>getComposite(String)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#getComposite(java.lang.String)"><B>getComposite(String)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Returns the composite monitor specified in the argument. <DT><A HREF="com/jamonapi/MonitorComposite.html#getCompositeNode(java.lang.String)"><B>getCompositeNode(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>This is CompositeNode interface method that returns the child MonitorComposite identified by the given label or it creates a new CompositeMonitor. <DT><A HREF="com/jamonapi/utils/NodeTree.html#getCompositeNode(java.lang.String)"><B>getCompositeNode(String)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/NodeTree.html">NodeTree</A> <DD>Return the NodeTree's CompositeNode object that is identified by the locator. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#getCompositeNode(java.lang.String)"><B>getCompositeNode(String)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>Return the composite node pointed to by the node name <DT><A HREF="com/jamonapi/MonitorComposite.html#getCompositeNodeKey(java.lang.String)"><B>getCompositeNodeKey(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>getCompositeNodeKey(...) and getLeafNodeKey(...) are used to ensure that composite nodes are not replaced by leaf nodes and vice versa. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#getCompositeNodeKey(java.lang.String)"><B>getCompositeNodeKey(String)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html#getData()"><B>getData()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorConverter.html#getData()"><B>getData()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorConverter.html">MonitorConverter</A> <DD>end inner class MonitorReport <DT><A HREF="com/jamonapi/MonitorComposite.html#getData()"><B>getData()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Return the contents of this MonitorComposite as a 2 dimensional array of Strings. <DT><A HREF="com/jamonapi/TimingMonitor.html#getData(java.util.ArrayList)"><B>getData(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html#getData(java.util.ArrayList)"><B>getData(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html#getData(java.util.ArrayList)"><B>getData(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MinimalMonitor.html#getData(java.util.ArrayList)"><B>getData(ArrayList)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MinimalMonitor.html">MinimalMonitor</A> <DD>Add this elements value to the ArrayList. <DT><A HREF="com/jamonapi/BaseMonitor.html#getData(java.util.ArrayList)"><B>getData(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/AccumulateMonitor.html#getData(java.util.ArrayList)"><B>getData(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Populate the ArrayList with data from this Monitor as well as all other Monitors in the decorator chain <DT><A HREF="com/jamonapi/<API key>.html#getData(java.lang.String)"><B>getData(String)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorConverter.html#getData(java.lang.String)"><B>getData(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorConverter.html">MonitorConverter</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html#getData(java.lang.String)"><B>getData(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Return the contents of this MonitorComposite as a 2 dimensional array of Strings. <DT><A HREF="com/jamonapi/MonitorConverter.html#getData(java.lang.String, int, java.lang.String)"><B>getData(String, int, String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorConverter.html">MonitorConverter</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#getDebugFactory()"><B>getDebugFactory()</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Returns the factory for creating debug monitors. <DT><A HREF="com/jamonapi/MonitorFactory.html#getDebugFactory(int)"><B>getDebugFactory(int)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Returns the factory for creating debug monitors. <DT><A HREF="com/jamonapi/utils/AppBaseException.html#getErrorIndicator()"><B>getErrorIndicator()</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppBaseException.html">AppBaseException</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html#<API key>(java.lang.String)"><B><API key>(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Returns the CompositeNode if it exists. <DT><A HREF="com/jamonapi/MonitorComposite.html#getExistingLeafNode(java.lang.String)"><B>getExistingLeafNode(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Returns the LeafNode if it exists. <DT><A HREF="com/jamonapi/utils/FileUtils.html#getFileContents(java.lang.String)"><B>getFileContents(String)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/FileUtils.html">FileUtils</A> <DD>Read text files contents in as a String. <DT><A HREF="com/jamonapi/<API key>.html#getHeader()"><B>getHeader()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorLeafFactory.html#getHeader()"><B>getHeader()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorLeafFactory.html">MonitorLeafFactory</A> <DD>Get the header used in the monitor html report. <DT><A HREF="com/jamonapi/TimingMonitor.html#getHeader(java.util.ArrayList)"><B>getHeader(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html#getHeader(java.util.ArrayList)"><B>getHeader(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html#getHeader(java.util.ArrayList)"><B>getHeader(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MinimalMonitor.html#getHeader(java.util.ArrayList)"><B>getHeader(ArrayList)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MinimalMonitor.html">MinimalMonitor</A> <DD>Add this elements header value to an ArrayList. <DT><A HREF="com/jamonapi/BaseMonitor.html#getHeader(java.util.ArrayList)"><B>getHeader(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/AccumulateMonitor.html#getHeader(java.util.ArrayList)"><B>getHeader(ArrayList)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Add the display header that is associated with this Monitor to the header (as an ArrayList entry). <DT><A HREF="com/jamonapi/MonitorComposite.html#getLeafNode(java.lang.String, java.lang.String)"><B>getLeafNode(String, String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>This is CompositeNode interface method that returns a leaf node identified by the given label or it creates a new leaf node by calling the Leaf. <DT><A HREF="com/jamonapi/utils/NodeTree.html#getLeafNode(java.lang.String, java.lang.String)"><B>getLeafNode(String, String)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/NodeTree.html">NodeTree</A> <DD>Return the NodeTree's LeafNode object that is identified by the locator and type. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#getLeafNode(java.lang.String, java.lang.String)"><B>getLeafNode(String, String)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>Return the leaf node pointed to by the node name. <DT><A HREF="com/jamonapi/MonitorComposite.html#getLeafNodeKey(java.lang.String)"><B>getLeafNodeKey(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>getCompositeNodeKey(...) and getLeafNodeKey(...) are used to ensure that composite nodes are not replaced by leaf nodes and vice versa. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#getLeafNodeKey(java.lang.String)"><B>getLeafNodeKey(String)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html#getReport()"><B>getReport()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#getReport()"><B>getReport()</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Returns all gathered statistics as an HTML table as a String. <DT><A HREF="com/jamonapi/MonitorConverter.html#getReport()"><B>getReport()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorConverter.html">MonitorConverter</A> <DD>Return an html table in String format in the default sort order <DT><A HREF="com/jamonapi/MonitorComposite.html#getReport()"><B>getReport()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Return the contents of this MonitorComposite as an HTML table. <DT><A HREF="com/jamonapi/MonitorConverter.html#getReport(int, java.lang.String)"><B>getReport(int, String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorConverter.html">MonitorConverter</A> <DD>Return an html table in String format that is sorted by the passed column in ascending or descending order <DT><A HREF="com/jamonapi/MonitorComposite.html#getReport(int, java.lang.String)"><B>getReport(int, String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Return the contents of this MonitorComposite as an HTML table sorted by the specified column number in ascending or descending order. <DT><A HREF="com/jamonapi/MonitorFactory.html#getReport(java.lang.String)"><B>getReport(String)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Returns gathered statistics underneath lower in the heirarchy than the locator string. <DT><A HREF="com/jamonapi/<API key>.html#getRootMonitor()"><B>getRootMonitor()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#getRootMonitor()"><B>getRootMonitor()</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Returns the topmost Composite Monitor <DT><A HREF="com/jamonapi/MonitorComposite.html#getRootNode()"><B>getRootNode()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Return this MonitorComposite as a CompositeNode <DT><A HREF="com/jamonapi/utils/NodeTree.html#getRootNode()"><B>getRootNode()</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/NodeTree.html">NodeTree</A> <DD>Return the highest level CompositeNode in the NodeTree. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#getRootNode()"><B>getRootNode()</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>Return the NodeTrees root CompositeNode i.e. <DT><A HREF="com/jamonapi/utils/AppBaseException.html#getRuntimeException(java.lang.Exception)"><B>getRuntimeException(Exception)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppBaseException.html">AppBaseException</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/AccumulateMonitor.html#getType()"><B>getType()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Display this Monitors type <DT><A HREF="com/jamonapi/AccumulateMonitor.html#getUnits()"><B>getUnits()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Dispay the units appropriate for this monitor </DL> <HR> <A NAME="_H_"></A><H2> <B>H</B></H2> <DL> <DT><A HREF="com/jamonapi/utils/EnumIterator.html#hasNext()"><B>hasNext()</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/EnumIterator.html">EnumIterator</A> <DD>&nbsp; </DL> <HR> <A NAME="_I_"></A><H2> <B>I</B></H2> <DL> <DT><A HREF="com/jamonapi/<API key>.html#increase()"><B>increase()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html#increase()"><B>increase()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>increase the stored value for this Monitor <DT><A HREF="com/jamonapi/AccumulateMonitor.html#increase()"><B>increase()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Increase the monitors accrued value by 1 unit. <DT><A HREF="com/jamonapi/TimingMonitor.html#increase(long)"><B>increase(long)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>increase the time by the specified ammount of milliseconds. <DT><A HREF="com/jamonapi/<API key>.html#increase(long)"><B>increase(long)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html#increase(long)"><B>increase(long)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Call increase(long) on all Monitors that this MonitorComposite instance contains <DT><A HREF="com/jamonapi/MinimalMonitor.html#increase(long)"><B>increase(long)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MinimalMonitor.html">MinimalMonitor</A> <DD>Increase the monitors value <DT><A HREF="com/jamonapi/BaseMonitor.html#increase(long)"><B>increase(long)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/AccumulateMonitor.html#increase(long)"><B>increase(long)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Increase the monitors accrued value by the ammount specified in the parameter, and call increase on all monitors in the decorator chain. <DT><A HREF="com/jamonapi/utils/Misc.html#isObjectString(java.lang.Object)"><B>isObjectString(Object)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Misc.html">Misc</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TimingMonitor.html#isPrimary()"><B>isPrimary()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/NullMonitor.html#isPrimary()"><B>isPrimary()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/NullMonitor.html">NullMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html#isPrimary()"><B>isPrimary()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/Monitor.html#isPrimary()"><B>isPrimary()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/Monitor.html">Monitor</A> <DD>Is this a primary Monitor. <DT><A HREF="com/jamonapi/<API key>.html#isPrimary()"><B>isPrimary()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>indicates whether or not this Monitor is primary or not. <DT><A HREF="com/jamonapi/AccumulateMonitor.html#isPrimary()"><B>isPrimary()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Indicates whether or not this Monitor is primary. <DT><A HREF="com/jamonapi/utils/CommandIterator.html#iterate(java.util.Collection, com.jamonapi.utils.Command)"><B>iterate(Collection, Command)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/CommandIterator.html">CommandIterator</A> <DD>Iterate through a Collection passing the Command object each element in the collection. <DT><A HREF="com/jamonapi/utils/CommandIterator.html#iterate(java.util.Enumeration, com.jamonapi.utils.Command)"><B>iterate(Enumeration, Command)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/CommandIterator.html">CommandIterator</A> <DD>Iterate through an Enumeration passing the Command object each element in the Collection <DT><A HREF="com/jamonapi/utils/CommandIterator.html#iterate(java.util.Iterator, com.jamonapi.utils.Command)"><B>iterate(Iterator, Command)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/CommandIterator.html">CommandIterator</A> <DD>Iterate passing each Command each Object that is being iterated <DT><A HREF="com/jamonapi/utils/CommandIterator.html#iterate(java.util.Map, com.jamonapi.utils.Command)"><B>iterate(Map, Command)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/CommandIterator.html">CommandIterator</A> <DD>Iterate through a Map passing Command object a Map.Entry. <DT><A HREF="com/jamonapi/utils/CommandIterator.html#iterate(java.sql.ResultSet, com.jamonapi.utils.Command)"><B>iterate(ResultSet, Command)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/CommandIterator.html">CommandIterator</A> <DD>Iterate through a ResultSet passing in a Command object. </DL> <HR> <A NAME="_L_"></A><H2> <B>L</B></H2> <DL> <DT><A HREF="com/jamonapi/LastAccessMonitor.html"><B>LastAccessMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/LastAccessMonitor.html">LastAccessMonitor</A>.<DD>Class that tracks when a Monitor was first and last called.<DT><A HREF="com/jamonapi/LastAccessMonitor.html#LastAccessMonitor()"><B>LastAccessMonitor()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/LastAccessMonitor.html">LastAccessMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/LastAccessMonitor.html#LastAccessMonitor(com.jamonapi.<API key>)"><B>LastAccessMonitor(<API key>)</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/LastAccessMonitor.html">LastAccessMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/LeafNode.html"><B>LeafNode</B></A> - interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/LeafNode.html">LeafNode</A>.<DD>A tag interface to indicate a leaf node in a tree/heirarchical relationship.<DT><A HREF="com/jamonapi/MonitorComposite.html#leafNodeExists(java.lang.String)"><B>leafNodeExists(String)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Does the passed in leaf node exist. <DT><A HREF="com/jamonapi/utils/NodeTree.html#leafNodeExists(java.lang.String)"><B>leafNodeExists(String)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/NodeTree.html">NodeTree</A> <DD>Determine if the leaf represented by the locator string exists. <DT><A HREF="com/jamonapi/utils/CompositeNode.html#leafNodeExists(java.lang.String)"><B>leafNodeExists(String)</B></A> - Method in interface com.jamonapi.utils.<A HREF="com/jamonapi/utils/CompositeNode.html">CompositeNode</A> <DD>Returns true if the leafNodeExists <DT><A HREF="com/jamonapi/utils/Logger.html#log(java.lang.Object)"><B>log(Object)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Logger.html">Logger</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/Logger.html#logDebug(java.lang.Object)"><B>logDebug(Object)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Logger.html">Logger</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/Logger.html"><B>Logger</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Logger.html">Logger</A>.<DD>Very Simple Utility class used for Logging.<DT><A HREF="com/jamonapi/utils/Logger.html#logInfo(java.lang.Object)"><B>logInfo(Object)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Logger.html">Logger</A> <DD>&nbsp; </DL> <HR> <A NAME="_M_"></A><H2> <B>M</B></H2> <DL> <DT><A HREF="com/jamonapi/TimingMonitor.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>Method with the classes test code <DT><A HREF="com/jamonapi/TimeStatsMonitor.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/TimeStatsMonitor.html">TimeStatsMonitor</A> <DD>The main method contains this classes test code <DT><A HREF="com/jamonapi/<API key>.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>Test method for this class <DT><A HREF="com/jamonapi/<API key>.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>Test class for performance numbers of JAMon. <DT><A HREF="com/jamonapi/TestClass.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/TestClass.html">TestClass</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Test code for the MonitorFactory class. <DT><A HREF="com/jamonapi/LastAccessMonitor.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/LastAccessMonitor.html">LastAccessMonitor</A> <DD>Test code for this class <DT><A HREF="com/jamonapi/ActiveStatsMonitor.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/ActiveStatsMonitor.html">ActiveStatsMonitor</A> <DD>Method that contains test data for this class <DT><A HREF="com/jamonapi/AccumulateMonitor.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Method that calls test code for this class. <DT><A HREF="com/jamonapi/utils/CommandIterator.html#main(java.lang.String[])"><B>main(String[])</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/CommandIterator.html">CommandIterator</A> <DD>Test code for this class <DT><A HREF="com/jamonapi/MinimalMonitor.html"><B>MinimalMonitor</B></A> - interface com.jamonapi.<A HREF="com/jamonapi/MinimalMonitor.html">MinimalMonitor</A>.<DD>Most basic interfaces that all monitors must implement.<DT><A HREF="com/jamonapi/utils/Misc.html"><B>Misc</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Misc.html">Misc</A>.<DD>Difficult to group Utilities<DT><A HREF="com/jamonapi/utils/Misc.html#Misc()"><B>Misc()</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Misc.html">Misc</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/Monitor.html"><B>Monitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/Monitor.html">Monitor</A>.<DD>The basic Monitor interface used by all of the Timing related Monitors.<DT><A HREF="com/jamonapi/utils/AppConstants.html#MONITOR_PREFIX"><B>MONITOR_PREFIX</B></A> - Static variable in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppConstants.html">AppConstants</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppConstants.html#<API key>"><B><API key></B></A> - Static variable in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppConstants.html">AppConstants</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/Monitor.html#Monitor()"><B>Monitor()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/Monitor.html">Monitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html"><B>MonitorComposite</B></A> - class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A>.<DD>MonitorComposite can contain other MonitorComposite and TimingMonitors (at the leaf level)<DT><A HREF="com/jamonapi/MonitorComposite.html#MonitorComposite()"><B>MonitorComposite()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorConverter.html"><B>MonitorConverter</B></A> - class com.jamonapi.<A HREF="com/jamonapi/MonitorConverter.html">MonitorConverter</A>.<DD>MonitorConverter is a utility class used by MonitorComposite to convert Monitor data to various formats.<DT><A HREF="com/jamonapi/MonitorFactory.html"><B>MonitorFactory</B></A> - class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A>.<DD>MonitorFactory - Class that controls monitors including creating, starting, enabling, disabling and resetting them.<DT><A HREF="com/jamonapi/MonitorFactory.html#MonitorFactory()"><B>MonitorFactory()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html"><B><API key></B></A> - interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A>.<DD>Interface used in the Monitor enabled and disabled factories<DT><A HREF="com/jamonapi/MonitorLeafFactory.html"><B>MonitorLeafFactory</B></A> - class com.jamonapi.<A HREF="com/jamonapi/MonitorLeafFactory.html">MonitorLeafFactory</A>.<DD>The MonitorLeafFactory is an important class in that it determines how to create Monitor objects.<DT><A HREF="com/jamonapi/MonitorLeafFactory.html#MonitorLeafFactory()"><B>MonitorLeafFactory()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/MonitorLeafFactory.html">MonitorLeafFactory</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html"><B><API key></B></A> - interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A>.<DD>Interface used to create Leaf level Monitors<DT><A HREF="com/jamonapi/<API key>.html"><B><API key></B></A> - interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A>.<DD>Interface used in relation to data and data display of Monitors</DL> <HR> <A NAME="_N_"></A><H2> <B>N</B></H2> <DL> <DT><A HREF="com/jamonapi/utils/EnumIterator.html#next()"><B>next()</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/EnumIterator.html">EnumIterator</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/NodeTree.html#nodeExists(java.lang.String)"><B>nodeExists(String)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/NodeTree.html">NodeTree</A> <DD>Determine if the Node represented by the locator string exists. <DT><A HREF="com/jamonapi/utils/NodeTree.html"><B>NodeTree</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/NodeTree.html">NodeTree</A>.<DD>A NodeTree works with Compositenodes and LeafNodes to create heirarchical object trees.<DT><A HREF="com/jamonapi/utils/NodeTree.html#NodeTree(com.jamonapi.utils.CompositeNode)"><B>NodeTree(CompositeNode)</B></A> - Constructor for class com.jamonapi.utils.<A HREF="com/jamonapi/utils/NodeTree.html">NodeTree</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html"><B><API key></B></A> - class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A>.<DD>Null implementation of the <API key>.<DT><A HREF="com/jamonapi/NullMonitor.html"><B>NullMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/NullMonitor.html">NullMonitor</A>.<DD>Null implementation of the Monitor interface.<DT><A HREF="com/jamonapi/<API key>.html#nullMonitor()"><B>nullMonitor()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html#nullMonitor2()"><B>nullMonitor2()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; </DL> <HR> <A NAME="_P_"></A><H2> <B>P</B></H2> <DL> <DT><A HREF="com/jamonapi/MonitorLeafFactory.html#PRIMARY"><B>PRIMARY</B></A> - Static variable in class com.jamonapi.<A HREF="com/jamonapi/MonitorLeafFactory.html">MonitorLeafFactory</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/utils/AppMap.html#put(java.lang.Object, java.lang.Object)"><B>put(Object, Object)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppMap.html">AppMap</A> <DD>&nbsp; </DL> <HR> <A NAME="_R_"></A><H2> <B>R</B></H2> <DL> <DT><A HREF="com/jamonapi/utils/EnumIterator.html#remove()"><B>remove()</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/EnumIterator.html">EnumIterator</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TimingMonitor.html#reset()"><B>reset()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>Resets the accrued time and restarts the Monitor <DT><A HREF="com/jamonapi/<API key>.html#reset()"><B>reset()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#reset()"><B>reset()</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Wipes out all statistics that have been gathered. <DT><A HREF="com/jamonapi/MonitorComposite.html#reset()"><B>reset()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Call reset() on all Monitors that this MonitorComposite instance contains <DT><A HREF="com/jamonapi/MinimalMonitor.html#reset()"><B>reset()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/MinimalMonitor.html">MinimalMonitor</A> <DD>Erase the values in the monitor <DT><A HREF="com/jamonapi/BaseMonitor.html#reset()"><B>reset()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/AccumulateMonitor.html#reset()"><B>reset()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Erase/wipe out any accrued statistics for this monitor, and call reset on all monitors in the decorator chain Sample Call: monitor.reset(); <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#<API key>(java.util.ArrayList, java.sql.ResultSet)"><B><API key>(ArrayList, ResultSet)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method returns an ArrayList containing the ResultSetMetaData column names. <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#<API key>(java.util.ArrayList, java.sql.ResultSet)"><B><API key>(ArrayList, ResultSet)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method returns an ArrayList containing the ResultSet column names and data. <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#resultSetToMap(java.util.Map, java.sql.ResultSet)"><B>resultSetToMap(Map, ResultSet)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method converts ResultSet data to a Map of object keys and values using an instance of HashMap. <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html#resultSetToString(java.sql.ResultSet)"><B>resultSetToString(ResultSet)</B></A> - Method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A> <DD>The following method simply takes the ResultSet and converts it to a two dimensional array of strings containing the column names and data using calls to the <API key> and arrayListToString methods. <DT><A HREF="com/jamonapi/utils/ResultSetUtils.html"><B>ResultSetUtils</B></A> - class com.jamonapi.utils.<A HREF="com/jamonapi/utils/ResultSetUtils.html">ResultSetUtils</A>.<DD>Purpose: Provides various methods for obtaining resultset data.<DT><A HREF="com/jamonapi/TestClass.html#run()"><B>run()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TestClass.html">TestClass</A> <DD>&nbsp; </DL> <HR> <A NAME="_S_"></A><H2> <B>S</B></H2> <DL> <DT><A HREF="com/jamonapi/MonitorFactory.html#setDebugEnabled(boolean)"><B>setDebugEnabled(boolean)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Enable or disable the debug factory. <DT><A HREF="com/jamonapi/MonitorFactory.html#<API key>(int)"><B><API key>(int)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Enable or disable the priority driven debug factory. <DT><A HREF="com/jamonapi/MonitorComposite.html#setDisplayDelimiter(java.lang.String)"><B>setDisplayDelimiter(String)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Delimiter to be used when displaying the monitor label returned by the getReport() and getData() methods. <DT><A HREF="com/jamonapi/MonitorFactory.html#setEnabled(boolean)"><B>setEnabled(boolean)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Enable or disable the factory. <DT><A HREF="com/jamonapi/MonitorFactory.html#setJAMonAdminPage(java.lang.String)"><B>setJAMonAdminPage(String)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Call this method if you don't want to use the default name or location for JAMonAdmin.jsp that is returned in the JAMon report. <DT><A HREF="com/jamonapi/TimingMonitor.html#setPrimary(boolean)"><B>setPrimary(boolean)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/NullMonitor.html#setPrimary(boolean)"><B>setPrimary(boolean)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/NullMonitor.html">NullMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html#setPrimary(boolean)"><B>setPrimary(boolean)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/Monitor.html#setPrimary(boolean)"><B>setPrimary(boolean)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/Monitor.html">Monitor</A> <DD>Indicate that this a primary Monitor. <DT><A HREF="com/jamonapi/<API key>.html#setPrimary(boolean)"><B>setPrimary(boolean)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>Specify whether or not this Monitor is primary. <DT><A HREF="com/jamonapi/AccumulateMonitor.html#setPrimary(boolean)"><B>setPrimary(boolean)</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Specify whether or not this Monitor is primary. <DT><A HREF="com/jamonapi/utils/Misc.html#sort(java.lang.Object[][], int, java.lang.String)"><B>sort(Object[][], int, String)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/Misc.html">Misc</A> <DD>Sort a 2 dimensional array based on 1 columns data in either ascending or descending order. <DT><A HREF="com/jamonapi/TimingMonitor.html#start()"><B>start()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>Start timing for the Monitor <DT><A HREF="com/jamonapi/<API key>.html#start()"><B>start()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html#start()"><B>start()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#start()"><B>start()</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Return a Monitor and begin gathering timing statistics for it. <DT><A HREF="com/jamonapi/BasicTimingMonitor.html#start()"><B>start()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BasicTimingMonitor.html">BasicTimingMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/BaseMonitor.html#start()"><B>start()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html#start()"><B>start()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>start() gathering statistics for this Monitor <DT><A HREF="com/jamonapi/AccumulateMonitor.html#start()"><B>start()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Start gathering statistics for this Monitor. <DT><A HREF="com/jamonapi/<API key>.html#start(java.lang.String)"><B>start(String)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#start(java.lang.String)"><B>start(String)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Return a Monitor and begin gathering timing statistics for it.<br> <DT><A HREF="com/jamonapi/utils/AppConstants.html#start(java.lang.String)"><B>start(String)</B></A> - Static method in class com.jamonapi.utils.<A HREF="com/jamonapi/utils/AppConstants.html">AppConstants</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html#startPrimary(java.lang.String)"><B>startPrimary(String)</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorFactory.html#startPrimary(java.lang.String)"><B>startPrimary(String)</B></A> - Static method in class com.jamonapi.<A HREF="com/jamonapi/MonitorFactory.html">MonitorFactory</A> <DD>Return a Monitor and begin gathering timing statistics for it. <DT><A HREF="com/jamonapi/TimingMonitor.html#stop()"><B>stop()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>Stop the Monitor and keep track of how long it was running. <DT><A HREF="com/jamonapi/<API key>.html#stop()"><B>stop()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/Monitor.html#stop()"><B>stop()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/Monitor.html">Monitor</A> <DD>Stop the montior <DT><A HREF="com/jamonapi/BasicTimingMonitor.html#stop()"><B>stop()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BasicTimingMonitor.html">BasicTimingMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/BaseMonitor.html#stop()"><B>stop()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html#stop()"><B>stop()</B></A> - Method in interface com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>stop() gathering statistics for this Monitor <DT><A HREF="com/jamonapi/AccumulateMonitor.html#stop()"><B>stop()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Stop gathering statistics for the Monitor. </DL> <HR> <A NAME="_T_"></A><H2> <B>T</B></H2> <DL> <DT><A HREF="com/jamonapi/TestClass.html"><B>TestClass</B></A> - class com.jamonapi.<A HREF="com/jamonapi/TestClass.html">TestClass</A>.<DD>Class used to test all classes in JAMon.<DT><A HREF="com/jamonapi/TestClass.html#TestClass(int, long, long, com.jamonapi.AccumulateMonitor)"><B>TestClass(int, long, long, AccumulateMonitor)</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/TestClass.html">TestClass</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html"><B><API key></B></A> - class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A>.<DD>Class used to test performance of JAMon.<DT><A HREF="com/jamonapi/<API key>.html#<API key>()"><B><API key>()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>Creates a new instance of <API key> <DT><A HREF="com/jamonapi/<API key>.html#<API key>(int)"><B><API key>(int)</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html"><B><API key></B></A> - class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A>.<DD><API key> keeps track of statistics for JAMon time ranges.<DT><A HREF="com/jamonapi/<API key>.html#<API key>()"><B><API key>()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html#<API key>(com.jamonapi.<API key>)"><B><API key>(<API key>)</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TimeStatsMonitor.html"><B>TimeStatsMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/TimeStatsMonitor.html">TimeStatsMonitor</A>.<DD>Monitor that keeps track of various timing statistics such as max, min, average, hits, total, and standard deviation.<DT><A HREF="com/jamonapi/TimeStatsMonitor.html#TimeStatsMonitor()"><B>TimeStatsMonitor()</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/TimeStatsMonitor.html">TimeStatsMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TimeStatsMonitor.html#TimeStatsMonitor(com.jamonapi.<API key>)"><B>TimeStatsMonitor(<API key>)</B></A> - Constructor for class com.jamonapi.<A HREF="com/jamonapi/TimeStatsMonitor.html">TimeStatsMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TimingMonitor.html"><B>TimingMonitor</B></A> - class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A>.<DD>This is the Monitor class that starts the decorator chain of Monitors.<DT><A HREF="com/jamonapi/<API key>.html#timingNoMonitor()"><B>timingNoMonitor()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/TimingMonitor.html#toString()"><B>toString()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/TimingMonitor.html">TimingMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/<API key>.html#toString()"><B>toString()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/<API key>.html"><API key></A> <DD>&nbsp; <DT><A HREF="com/jamonapi/MonitorComposite.html#toString()"><B>toString()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/MonitorComposite.html">MonitorComposite</A> <DD>Display the accrued value as a string <DT><A HREF="com/jamonapi/BaseMonitor.html#toString()"><B>toString()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/BaseMonitor.html">BaseMonitor</A> <DD>&nbsp; <DT><A HREF="com/jamonapi/AccumulateMonitor.html#toString()"><B>toString()</B></A> - Method in class com.jamonapi.<A HREF="com/jamonapi/AccumulateMonitor.html">AccumulateMonitor</A> <DD>Display this Monitor as well as all Monitor's in the decorator chain as Strings </DL> <HR> <A HREF="#_A_">A</A> <A HREF="#_B_">B</A> <A HREF="#_C_">C</A> <A HREF="#_D_">D</A> <A HREF="#_E_">E</A> <A HREF="#_F_">F</A> <A HREF="#_G_">G</A> <A HREF="#_H_">H</A> <A HREF="#_I_">I</A> <A HREF="#_L_">L</A> <A HREF="#_M_">M</A> <A HREF="#_N_">N</A> <A HREF="#_P_">P</A> <A HREF="#_R_">R</A> <A HREF="#_S_">S</A> <A HREF="#_T_">T</A> <A NAME="navbar_bottom"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="<API key>"></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Index</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="index-all.html" TARGET="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp; <SCRIPT> <! if(window==top) { document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } </SCRIPT> <NOSCRIPT> <A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <HR> </BODY> </HTML>
<reference path="Math.ts"/> class Entity { get X(): number { return this.Position.x; } get Y(): number { return this.Position.y; } get Z(): number { return this.Position.z; } constructor(public Position: Vec3) { } }
#pragma once #include "indexer/feature_decl.hpp" #include "geometry/point2d.hpp" #include "std/initializer_list.hpp" #include "std/limits.hpp" #include "std/string.hpp" #include "std/vector.hpp" #include "3party/osrm/osrm-backend/typedefs.h" namespace routing { using TNodeId = uint32_t; using TEdgeWeight = double; \brief Unique identification for a road edge between two junctions (joints). In case of OSRM it's NodeID and in case of RoadGraph (IndexGraph) it's mwm id, feature id, segment id and direction. struct UniNodeId { enum class Type { Osrm, Mwm, }; UniNodeId(Type type) : m_type(type) {} UniNodeId(FeatureID const & featureId, uint32_t segId, bool forward) : m_type(Type::Mwm), m_featureId(featureId), m_segId(segId), m_forward(forward) { } UniNodeId(uint32_t nodeId) : m_type(Type::Osrm), m_nodeId(nodeId) {} bool operator==(UniNodeId const & rh) const; bool operator<(UniNodeId const & rh) const; void Clear(); uint32_t GetNodeId() const; FeatureID const & GetFeature() const; uint32_t GetSegId() const; bool IsForward() const; private: Type m_type; \note In case of OSRM unique id is kept in |m_featureId.m_index|. So |m_featureId.m_mwmId|, |m_segId| and |m_forward| have default values. FeatureID m_featureId; // |m_featureId.m_index| is NodeID for OSRM. uint32_t m_segId = 0; // Not valid for OSRM. bool m_forward = true; // Segment direction in |m_featureId|. NodeID m_nodeId = SPECIAL_NODEID; }; string DebugPrint(UniNodeId::Type type); namespace turns { @todo(vbykoianko) It's a good idea to gather all the turns information into one entity. For the time being several separate entities reflect the turn information. Like Route::TTurns double constexpr <API key> = 3.0; /*! * \warning The order of values below shall not be changed. * TurnRight(TurnLeft) must have a minimal value and * TurnSlightRight(TurnSlightLeft) must have a maximum value * \warning The values of TurnDirection shall be synchronized with values of TurnDirection enum in * java. */ enum class TurnDirection { NoTurn = 0, GoStraight, TurnRight, TurnSharpRight, TurnSlightRight, TurnLeft, TurnSharpLeft, TurnSlightLeft, UTurnLeft, UTurnRight, TakeTheExit, EnterRoundAbout, LeaveRoundAbout, StayOnRoundAbout, StartAtEndOfStreet, <API key>, Count /**< This value is used for internals only. */ }; string DebugPrint(TurnDirection const l); /*! * \warning The values of <API key> shall be synchronized with values in java */ enum class PedestrianDirection { None = 0, Upstairs, Downstairs, LiftGate, Gate, <API key>, Count /**< This value is used for internals only. */ }; string DebugPrint(PedestrianDirection const l); /*! * \warning The values of LaneWay shall be synchronized with values of LaneWay enum in java. */ enum class LaneWay { None = 0, Reverse, SharpLeft, Left, SlightLeft, MergeToRight, Through, MergeToLeft, SlightRight, Right, SharpRight, Count /**< This value is used for internals only. */ }; string DebugPrint(LaneWay const l); typedef vector<LaneWay> TSingleLane; struct SingleLaneInfo { TSingleLane m_lane; bool m_isRecommended = false; SingleLaneInfo() = default; SingleLaneInfo(initializer_list<LaneWay> const & l) : m_lane(l) {} bool operator==(SingleLaneInfo const & other) const; }; string DebugPrint(SingleLaneInfo const & singleLaneInfo); struct TurnItem { TurnItem() : m_index(numeric_limits<uint32_t>::max()), m_turn(TurnDirection::NoTurn), m_exitNum(0), m_keepAnyway(false), m_pedestrianTurn(PedestrianDirection::None) { } TurnItem(uint32_t idx, TurnDirection t, uint32_t exitNum = 0) : m_index(idx), m_turn(t), m_exitNum(exitNum), m_keepAnyway(false) , m_pedestrianTurn(PedestrianDirection::None) { } TurnItem(uint32_t idx, PedestrianDirection p) : m_index(idx), m_turn(TurnDirection::NoTurn), m_exitNum(0), m_keepAnyway(false) , m_pedestrianTurn(p) { } bool operator==(TurnItem const & rhs) const { return m_index == rhs.m_index && m_turn == rhs.m_turn && m_lanes == rhs.m_lanes && m_exitNum == rhs.m_exitNum && m_sourceName == rhs.m_sourceName && m_targetName == rhs.m_targetName && m_keepAnyway == rhs.m_keepAnyway && m_pedestrianTurn == rhs.m_pedestrianTurn; } uint32_t m_index; /*!< Index of point on polyline (number of segment + 1). */ TurnDirection m_turn; /*!< The turn instruction of the TurnItem */ vector<SingleLaneInfo> m_lanes; /*!< Lane information on the edge before the turn. */ uint32_t m_exitNum; /*!< Number of exit on roundabout. */ string m_sourceName; /*!< Name of the street which the ingoing edge belongs to */ string m_targetName; /*!< Name of the street which the outgoing edge belongs to */ /*! * \brief m_keepAnyway is true if the turn shall not be deleted * and shall be demonstrated to an end user. */ bool m_keepAnyway; /*! * \brief m_pedestrianTurn is type of corresponding direction for a pedestrian, or None * if there is no pedestrian specific direction */ PedestrianDirection m_pedestrianTurn; }; string DebugPrint(TurnItem const & turnItem); struct TurnItemDist { TurnItem m_turnItem; double m_distMeters; }; string DebugPrint(TurnItemDist const & turnItemDist); string const GetTurnString(TurnDirection turn); bool IsLeftTurn(TurnDirection t); bool IsRightTurn(TurnDirection t); bool IsLeftOrRightTurn(TurnDirection t); bool IsStayOnRoad(TurnDirection t); bool <API key>(TurnDirection t); /*! * \param l A variant of going along a lane. * \param t A turn direction. * \return True if @l corresponds with @t exactly. For example it returns true * when @l equals to LaneWay::Right and @t equals to TurnDirection::TurnRight. * Otherwise it returns false. */ bool <API key>(LaneWay l, TurnDirection t); /*! * \param l A variant of going along a lane. * \param t A turn direction. * \return True if @l corresponds with @t approximately. For example it returns true * when @l equals to LaneWay::Right and @t equals to TurnDirection::TurnSlightRight. * Otherwise it returns false. */ bool <API key>(LaneWay l, TurnDirection t); /*! * \brief Parse lane information which comes from @lanesString * \param lanesString lane information. Example through|through|through|through;right * \param lanes the result of parsing. * \return true if @lanesString parsed successfully, false otherwise. * Note 1: if @lanesString is empty returns false. * Note 2: @laneString is passed by value on purpose. It'll be used(changed) in the method. */ bool ParseLanes(string lanesString, vector<SingleLaneInfo> & lanes); void SplitLanes(string const & lanesString, char delimiter, vector<string> & lanes); bool ParseSingleLane(string const & laneString, char delimiter, TSingleLane & lane); /*! * \returns pi minus angle from vector [junctionPoint, ingoingPoint] * to vector [junctionPoint, outgoingPoint]. A counterclockwise rotation. * Angle is in range [-pi, pi]. */ double <API key>(m2::PointD const & junctionPoint, m2::PointD const & ingoingPoint, m2::PointD const & outgoingPoint); } // namespace turns } // namespace routing
define(function (require) { var SymbolDraw = require('../helper/SymbolDraw'); var LargeSymbolDraw = require('../helper/LargeSymbolDraw'); require('../../echarts').extendChartView({ type: 'scatter', init: function () { this._normalSymbolDraw = new SymbolDraw(); this._largeSymbolDraw = new LargeSymbolDraw(); }, render: function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var largeSymbolDraw = this._largeSymbolDraw; var normalSymbolDraw = this._normalSymbolDraw; var group = this.group; var symbolDraw = seriesModel.get('large') && data.count() > seriesModel.get('largeThreshold') ? largeSymbolDraw : normalSymbolDraw; this._symbolDraw = symbolDraw; symbolDraw.updateData(data); group.add(symbolDraw.group); group.remove( symbolDraw === largeSymbolDraw ? normalSymbolDraw.group : largeSymbolDraw.group ); }, updateLayout: function (seriesModel) { this._symbolDraw.updateLayout(seriesModel); }, remove: function (ecModel, api) { this._symbolDraw && this._symbolDraw.remove(api, true); } }); });
/** * @author fanguozhu */ $(function() { var tab = new TabPanel("tab",true); var f_tree = new Fieldset("f_tree","",{ state: Fieldset.OPEN_STATE, topdown: false }); var mytree = new PorTreeT("tree", "-1", "",{isDefaultClick:0} ); var dw = new DataWrapper(); dw.service("PRtree"); mytree.dataWrapper(dw); tab.dataWrapper(dw); tab.addChangeObserver(function(src, msg){ var dw = this.dataWrapper(); if (!dw) return; var label = msg.data.label; var name = msg.data.name; for (var i=1;i<=3;i++) { if (label) { this.setTitle(i,"["+name+"]["+i+"]"); } else { this.setTitle(i,"["+i+"]"); } } },PorMessage.MSG_TREE_ONCLICK); var dw1 = new DataWrapper(); dw1.service("PR02"); var dw2 = new DataWrapper(); dw2.service("PR02"); var dw3 = new DataWrapper(); dw3.service("PR02"); var dg1 = new DataGrid("grid_1",{autoDraw:true,readonly:true}); dg1.dataWrapper(dw1); var dg2 = new DataGrid("grid_2",{autoDraw:true,readonly:true}); dg2.dataWrapper(dw2); var dg3 = new DataGrid("grid_3",{autoDraw:true,readonly:true}); dg3.dataWrapper(dw3); var mapping = { master:["label"], sub:["company"] }; PorUtil.linkTreeAndGrid( dw,[{ sub:dw1, mapping:mapping, tabs:{ tab:[0,1] //'tab'1tab } },{ sub:dw2, mapping:mapping, tabs:{ tab:[2] //'tab'2tab } },{ sub:dw3, mapping:mapping, tabs:{ tab:[3] //'tab'3tab } }]); mytree.init(); });
html { font-family: sans-serif; -ms-text-size-adjust: 100%; -<API key>: 100%; } body { margin: 0; } article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block; } audio, canvas, progress, video { display: inline-block; vertical-align: baseline; } audio:not([controls]) { display: none; height: 0; } [hidden], template { display: none; } a { background-color: transparent; } a:active, a:hover { outline: 0; } abbr[title] { border-bottom: 1px dotted; } b, strong { font-weight: bold; } dfn { font-style: italic; } h1 { font-size: 2em; margin: 0.67em 0; } mark { background: #ff0; color: #000; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { border: 0; } svg:not(:root) { overflow: hidden; } figure { margin: 1em 40px; } hr { box-sizing: content-box; height: 0; } pre { overflow: auto; } code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; } button, input, optgroup, select, textarea { color: inherit; font: inherit; margin: 0; } button { overflow: visible; } button, select { text-transform: none; } button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; } button[disabled], html input[disabled] { cursor: default; } button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } input { line-height: normal; } input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; } input[type="number"]::-<API key>, input[type="number"]::-<API key> { height: auto; } input[type="search"] { -webkit-appearance: textfield; box-sizing: content-box; } input[type="search"]::-<API key>, input[type="search"]::-<API key> { -webkit-appearance: none; } fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; } legend { border: 0; padding: 0; } textarea { overflow: auto; } optgroup { font-weight: bold; } table { border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; } @media print { *, *:before, *:after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } a[href^="#"]:after, a[href^="javascript:"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } .navbar { display: none; } .btn > .caret, .dropup > .btn > .caret { border-top-color: #000 !important; } .label { border: 1px solid #000; } .table { border-collapse: collapse !important; } .table td, .table th { background-color: #fff !important; } .table-bordered th, .table-bordered td { border: 1px solid #ddd !important; } } @font-face { font-family: 'Glyphicons Halflings'; src: url('../fonts/<API key>.eot'); src: url('../fonts/<API key>.eot?#iefix') format('embedded-opentype'), url('../fonts/<API key>.woff2') format('woff2'), url('../fonts/<API key>.woff') format('woff'), url('../fonts/<API key>.ttf') format('truetype'), url('../fonts/<API key>.svg#<API key>') format('svg'); } .glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; font-style: normal; font-weight: normal; line-height: 1; -<API key>: antialiased; -<API key>: grayscale; } .glyphicon-asterisk:before { content: "\002a"; } .glyphicon-plus:before { content: "\002b"; } .glyphicon-euro:before, .glyphicon-eur:before { content: "\20ac"; } .glyphicon-minus:before { content: "\2212"; } .glyphicon-cloud:before { content: "\2601"; } .glyphicon-envelope:before { content: "\2709"; } .glyphicon-pencil:before { content: "\270f"; } .glyphicon-glass:before { content: "\e001"; } .glyphicon-music:before { content: "\e002"; } .glyphicon-search:before { content: "\e003"; } .glyphicon-heart:before { content: "\e005"; } .glyphicon-star:before { content: "\e006"; } .<API key>:before { content: "\e007"; } .glyphicon-user:before { content: "\e008"; } .glyphicon-film:before { content: "\e009"; } .glyphicon-th-large:before { content: "\e010"; } .glyphicon-th:before { content: "\e011"; } .glyphicon-th-list:before { content: "\e012"; } .glyphicon-ok:before { content: "\e013"; } .glyphicon-remove:before { content: "\e014"; } .glyphicon-zoom-in:before { content: "\e015"; } .glyphicon-zoom-out:before { content: "\e016"; } .glyphicon-off:before { content: "\e017"; } .glyphicon-signal:before { content: "\e018"; } .glyphicon-cog:before { content: "\e019"; } .glyphicon-trash:before { content: "\e020"; } .glyphicon-home:before { content: "\e021"; } .glyphicon-file:before { content: "\e022"; } .glyphicon-time:before { content: "\e023"; } .glyphicon-road:before { content: "\e024"; } .<API key>:before { content: "\e025"; } .glyphicon-download:before { content: "\e026"; } .glyphicon-upload:before { content: "\e027"; } .glyphicon-inbox:before { content: "\e028"; } .<API key>:before { content: "\e029"; } .glyphicon-repeat:before { content: "\e030"; } .glyphicon-refresh:before { content: "\e031"; } .glyphicon-list-alt:before { content: "\e032"; } .glyphicon-lock:before { content: "\e033"; } .glyphicon-flag:before { content: "\e034"; } .<API key>:before { content: "\e035"; } .<API key>:before { content: "\e036"; } .<API key>:before { content: "\e037"; } .glyphicon-volume-up:before { content: "\e038"; } .glyphicon-qrcode:before { content: "\e039"; } .glyphicon-barcode:before { content: "\e040"; } .glyphicon-tag:before { content: "\e041"; } .glyphicon-tags:before { content: "\e042"; } .glyphicon-book:before { content: "\e043"; } .glyphicon-bookmark:before { content: "\e044"; } .glyphicon-print:before { content: "\e045"; } .glyphicon-camera:before { content: "\e046"; } .glyphicon-font:before { content: "\e047"; } .glyphicon-bold:before { content: "\e048"; } .glyphicon-italic:before { content: "\e049"; } .<API key>:before { content: "\e050"; } .<API key>:before { content: "\e051"; } .<API key>:before { content: "\e052"; } .<API key>:before { content: "\e053"; } .<API key>:before { content: "\e054"; } .<API key>:before { content: "\e055"; } .glyphicon-list:before { content: "\e056"; } .<API key>:before { content: "\e057"; } .<API key>:before { content: "\e058"; } .<API key>:before { content: "\e059"; } .glyphicon-picture:before { content: "\e060"; } .<API key>:before { content: "\e062"; } .glyphicon-adjust:before { content: "\e063"; } .glyphicon-tint:before { content: "\e064"; } .glyphicon-edit:before { content: "\e065"; } .glyphicon-share:before { content: "\e066"; } .glyphicon-check:before { content: "\e067"; } .glyphicon-move:before { content: "\e068"; } .<API key>:before { content: "\e069"; } .<API key>:before { content: "\e070"; } .glyphicon-backward:before { content: "\e071"; } .glyphicon-play:before { content: "\e072"; } .glyphicon-pause:before { content: "\e073"; } .glyphicon-stop:before { content: "\e074"; } .glyphicon-forward:before { content: "\e075"; } .<API key>:before { content: "\e076"; } .<API key>:before { content: "\e077"; } .glyphicon-eject:before { content: "\e078"; } .<API key>:before { content: "\e079"; } .<API key>:before { content: "\e080"; } .glyphicon-plus-sign:before { content: "\e081"; } .<API key>:before { content: "\e082"; } .<API key>:before { content: "\e083"; } .glyphicon-ok-sign:before { content: "\e084"; } .<API key>:before { content: "\e085"; } .glyphicon-info-sign:before { content: "\e086"; } .<API key>:before { content: "\e087"; } .<API key>:before { content: "\e088"; } .glyphicon-ok-circle:before { content: "\e089"; } .<API key>:before { content: "\e090"; } .<API key>:before { content: "\e091"; } .<API key>:before { content: "\e092"; } .glyphicon-arrow-up:before { content: "\e093"; } .<API key>:before { content: "\e094"; } .glyphicon-share-alt:before { content: "\e095"; } .<API key>:before { content: "\e096"; } .<API key>:before { content: "\e097"; } .<API key>:before { content: "\e101"; } .glyphicon-gift:before { content: "\e102"; } .glyphicon-leaf:before { content: "\e103"; } .glyphicon-fire:before { content: "\e104"; } .glyphicon-eye-open:before { content: "\e105"; } .glyphicon-eye-close:before { content: "\e106"; } .<API key>:before { content: "\e107"; } .glyphicon-plane:before { content: "\e108"; } .glyphicon-calendar:before { content: "\e109"; } .glyphicon-random:before { content: "\e110"; } .glyphicon-comment:before { content: "\e111"; } .glyphicon-magnet:before { content: "\e112"; } .<API key>:before { content: "\e113"; } .<API key>:before { content: "\e114"; } .glyphicon-retweet:before { content: "\e115"; } .<API key>:before { content: "\e116"; } .<API key>:before { content: "\e117"; } .<API key>:before { content: "\e118"; } .<API key>:before { content: "\e119"; } .<API key>:before { content: "\e120"; } .glyphicon-hdd:before { content: "\e121"; } .glyphicon-bullhorn:before { content: "\e122"; } .glyphicon-bell:before { content: "\e123"; } .<API key>:before { content: "\e124"; } .glyphicon-thumbs-up:before { content: "\e125"; } .<API key>:before { content: "\e126"; } .<API key>:before { content: "\e127"; } .glyphicon-hand-left:before { content: "\e128"; } .glyphicon-hand-up:before { content: "\e129"; } .glyphicon-hand-down:before { content: "\e130"; } .<API key>:before { content: "\e131"; } .<API key>:before { content: "\e132"; } .<API key>:before { content: "\e133"; } .<API key>:before { content: "\e134"; } .glyphicon-globe:before { content: "\e135"; } .glyphicon-wrench:before { content: "\e136"; } .glyphicon-tasks:before { content: "\e137"; } .glyphicon-filter:before { content: "\e138"; } .glyphicon-briefcase:before { content: "\e139"; } .<API key>:before { content: "\e140"; } .glyphicon-dashboard:before { content: "\e141"; } .glyphicon-paperclip:before { content: "\e142"; } .<API key>:before { content: "\e143"; } .glyphicon-link:before { content: "\e144"; } .glyphicon-phone:before { content: "\e145"; } .glyphicon-pushpin:before { content: "\e146"; } .glyphicon-usd:before { content: "\e148"; } .glyphicon-gbp:before { content: "\e149"; } .glyphicon-sort:before { content: "\e150"; } .<API key>:before { content: "\e151"; } .<API key>:before { content: "\e152"; } .<API key>:before { content: "\e153"; } .<API key>:before { content: "\e154"; } .<API key>:before { content: "\e155"; } .<API key>:before { content: "\e156"; } .glyphicon-unchecked:before { content: "\e157"; } .glyphicon-expand:before { content: "\e158"; } .<API key>:before { content: "\e159"; } .<API key>:before { content: "\e160"; } .glyphicon-log-in:before { content: "\e161"; } .glyphicon-flash:before { content: "\e162"; } .glyphicon-log-out:before { content: "\e163"; } .<API key>:before { content: "\e164"; } .glyphicon-record:before { content: "\e165"; } .glyphicon-save:before { content: "\e166"; } .glyphicon-open:before { content: "\e167"; } .glyphicon-saved:before { content: "\e168"; } .glyphicon-import:before { content: "\e169"; } .glyphicon-export:before { content: "\e170"; } .glyphicon-send:before { content: "\e171"; } .<API key>:before { content: "\e172"; } .<API key>:before { content: "\e173"; } .<API key>:before { content: "\e174"; } .<API key>:before { content: "\e175"; } .<API key>:before { content: "\e176"; } .<API key>:before { content: "\e177"; } .glyphicon-transfer:before { content: "\e178"; } .glyphicon-cutlery:before { content: "\e179"; } .glyphicon-header:before { content: "\e180"; } .<API key>:before { content: "\e181"; } .glyphicon-earphone:before { content: "\e182"; } .glyphicon-phone-alt:before { content: "\e183"; } .glyphicon-tower:before { content: "\e184"; } .glyphicon-stats:before { content: "\e185"; } .glyphicon-sd-video:before { content: "\e186"; } .glyphicon-hd-video:before { content: "\e187"; } .glyphicon-subtitles:before { content: "\e188"; } .<API key>:before { content: "\e189"; } .<API key>:before { content: "\e190"; } .glyphicon-sound-5-1:before { content: "\e191"; } .glyphicon-sound-6-1:before { content: "\e192"; } .glyphicon-sound-7-1:before { content: "\e193"; } .<API key>:before { content: "\e194"; } .<API key>:before { content: "\e195"; } .<API key>:before { content: "\e197"; } .<API key>:before { content: "\e198"; } .<API key>:before { content: "\e199"; } .<API key>:before { content: "\e200"; } .glyphicon-cd:before { content: "\e201"; } .glyphicon-save-file:before { content: "\e202"; } .glyphicon-open-file:before { content: "\e203"; } .glyphicon-level-up:before { content: "\e204"; } .glyphicon-copy:before { content: "\e205"; } .glyphicon-paste:before { content: "\e206"; } .glyphicon-alert:before { content: "\e209"; } .glyphicon-equalizer:before { content: "\e210"; } .glyphicon-king:before { content: "\e211"; } .glyphicon-queen:before { content: "\e212"; } .glyphicon-pawn:before { content: "\e213"; } .glyphicon-bishop:before { content: "\e214"; } .glyphicon-knight:before { content: "\e215"; } .<API key>:before { content: "\e216"; } .glyphicon-tent:before { content: "\26fa"; } .<API key>:before { content: "\e218"; } .glyphicon-bed:before { content: "\e219"; } .glyphicon-apple:before { content: "\f8ff"; } .glyphicon-erase:before { content: "\e221"; } .glyphicon-hourglass:before { content: "\231b"; } .glyphicon-lamp:before { content: "\e223"; } .glyphicon-duplicate:before { content: "\e224"; } .<API key>:before { content: "\e225"; } .glyphicon-scissors:before { content: "\e226"; } .glyphicon-bitcoin:before { content: "\e227"; } .glyphicon-btc:before { content: "\e227"; } .glyphicon-xbt:before { content: "\e227"; } .glyphicon-yen:before { content: "\00a5"; } .glyphicon-jpy:before { content: "\00a5"; } .glyphicon-ruble:before { content: "\20bd"; } .glyphicon-rub:before { content: "\20bd"; } .glyphicon-scale:before { content: "\e230"; } .glyphicon-ice-lolly:before { content: "\e231"; } .<API key>:before { content: "\e232"; } .glyphicon-education:before { content: "\e233"; } .<API key>:before { content: "\e234"; } .<API key>:before { content: "\e235"; } .<API key>:before { content: "\e236"; } .<API key>:before { content: "\e237"; } .glyphicon-oil:before { content: "\e238"; } .glyphicon-grain:before { content: "\e239"; } .<API key>:before { content: "\e240"; } .glyphicon-text-size:before { content: "\e241"; } .<API key>:before { content: "\e242"; } .<API key>:before { content: "\e243"; } .<API key>:before { content: "\e244"; } .<API key>:before { content: "\e245"; } .<API key>:before { content: "\e246"; } .<API key>:before { content: "\e247"; } .<API key>:before { content: "\e248"; } .<API key>:before { content: "\e249"; } .<API key>:before { content: "\e250"; } .<API key>:before { content: "\e251"; } .<API key>:before { content: "\e252"; } .<API key>:before { content: "\e253"; } .glyphicon-console:before { content: "\e254"; } .<API key>:before { content: "\e255"; } .glyphicon-subscript:before { content: "\e256"; } .glyphicon-menu-left:before { content: "\e257"; } .<API key>:before { content: "\e258"; } .glyphicon-menu-down:before { content: "\e259"; } .glyphicon-menu-up:before { content: "\e260"; } * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html { font-size: 10px; -<API key>: rgba(0, 0, 0, 0); } body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.42857143; color: #333333; background-color: #ffffff; } input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } a { color: #337ab7; text-decoration: none; } a:hover, a:focus { color: #23527c; text-decoration: underline; } a:focus { outline: 5px auto -<API key>; outline-offset: -2px; } figure { margin: 0; } img { vertical-align: middle; } .img-responsive, .thumbnail > img, .thumbnail a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img { display: block; max-width: 100%; height: auto; } .img-rounded { border-radius: 6px; } .img-thumbnail { padding: 4px; line-height: 1.42857143; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; display: inline-block; max-width: 100%; height: auto; } .img-circle { border-radius: 50%; } hr { margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #eeeeee; } .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } .sr-only-focusable:active, .sr-only-focusable:focus { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; } [role="button"] { cursor: pointer; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: inherit; font-weight: 500; line-height: 1.1; color: inherit; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small, h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small, .h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small { font-weight: normal; line-height: 1; color: #777777; } h1, .h1, h2, .h2, h3, .h3 { margin-top: 20px; margin-bottom: 10px; } h1 small, .h1 small, h2 small, .h2 small, h3 small, .h3 small, h1 .small, .h1 .small, h2 .small, .h2 .small, h3 .small, .h3 .small { font-size: 65%; } h4, .h4, h5, .h5, h6, .h6 { margin-top: 10px; margin-bottom: 10px; } h4 small, .h4 small, h5 small, .h5 small, h6 small, .h6 small, h4 .small, .h4 .small, h5 .small, .h5 .small, h6 .small, .h6 .small { font-size: 75%; } h1, .h1 { font-size: 36px; } h2, .h2 { font-size: 30px; } h3, .h3 { font-size: 24px; } h4, .h4 { font-size: 18px; } h5, .h5 { font-size: 14px; } h6, .h6 { font-size: 12px; } p { margin: 0 0 10px; } .lead { margin-bottom: 20px; font-size: 16px; font-weight: 300; line-height: 1.4; } @media (min-width: 768px) { .lead { font-size: 21px; } } small, .small { font-size: 85%; } mark, .mark { background-color: #fcf8e3; padding: .2em; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } .text-justify { text-align: justify; } .text-nowrap { white-space: nowrap; } .text-lowercase { text-transform: lowercase; } .text-uppercase { text-transform: uppercase; } .text-capitalize { text-transform: capitalize; } .text-muted { color: #777777; } .text-primary { color: #337ab7; } a.text-primary:hover, a.text-primary:focus { color: #286090; } .text-success { color: #3c763d; } a.text-success:hover, a.text-success:focus { color: #2b542c; } .text-info { color: #31708f; } a.text-info:hover, a.text-info:focus { color: #245269; } .text-warning { color: #8a6d3b; } a.text-warning:hover, a.text-warning:focus { color: #66512c; } .text-danger { color: #a94442; } a.text-danger:hover, a.text-danger:focus { color: #843534; } .bg-primary { color: #fff; background-color: #337ab7; } a.bg-primary:hover, a.bg-primary:focus { background-color: #286090; } .bg-success { background-color: #dff0d8; } a.bg-success:hover, a.bg-success:focus { background-color: #c1e2b3; } .bg-info { background-color: #d9edf7; } a.bg-info:hover, a.bg-info:focus { background-color: #afd9ee; } .bg-warning { background-color: #fcf8e3; } a.bg-warning:hover, a.bg-warning:focus { background-color: #f7ecb5; } .bg-danger { background-color: #f2dede; } a.bg-danger:hover, a.bg-danger:focus { background-color: #e4b9b9; } .page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid #eeeeee; } ul, ol { margin-top: 0; margin-bottom: 10px; } ul ul, ol ul, ul ol, ol ol { margin-bottom: 0; } .list-unstyled { padding-left: 0; list-style: none; } .list-inline { padding-left: 0; list-style: none; margin-left: -5px; } .list-inline > li { display: inline-block; padding-left: 5px; padding-right: 5px; } dl { margin-top: 0; margin-bottom: 20px; } dt, dd { line-height: 1.42857143; } dt { font-weight: bold; } dd { margin-left: 0; } @media (min-width: 768px) { .dl-horizontal dt { float: left; width: 160px; clear: left; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 180px; } } abbr[title], abbr[data-original-title] { cursor: help; border-bottom: 1px dotted #777777; } .initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 10px 20px; margin: 0 0 20px; font-size: 17.5px; border-left: 5px solid #eeeeee; } blockquote p:last-child, blockquote ul:last-child, blockquote ol:last-child { margin-bottom: 0; } blockquote footer, blockquote small, blockquote .small { display: block; font-size: 80%; line-height: 1.42857143; color: #777777; } blockquote footer:before, blockquote small:before, blockquote .small:before { content: '\2014 \00A0'; } .blockquote-reverse, blockquote.pull-right { padding-right: 15px; padding-left: 0; border-right: 5px solid #eeeeee; border-left: 0; text-align: right; } .blockquote-reverse footer:before, blockquote.pull-right footer:before, .blockquote-reverse small:before, blockquote.pull-right small:before, .blockquote-reverse .small:before, blockquote.pull-right .small:before { content: ''; } .blockquote-reverse footer:after, blockquote.pull-right footer:after, .blockquote-reverse small:after, blockquote.pull-right small:after, .blockquote-reverse .small:after, blockquote.pull-right .small:after { content: '\00A0 \2014'; } address { margin-bottom: 20px; font-style: normal; line-height: 1.42857143; } code, kbd, pre, samp { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; } code { padding: 2px 4px; font-size: 90%; color: #c7254e; background-color: #f9f2f4; border-radius: 4px; } kbd { padding: 2px 4px; font-size: 90%; color: #ffffff; background-color: #333333; border-radius: 3px; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); } kbd kbd { padding: 0; font-size: 100%; font-weight: bold; box-shadow: none; } pre { display: block; padding: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 1.42857143; word-break: break-all; word-wrap: break-word; color: #333333; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; } pre code { padding: 0; font-size: inherit; color: inherit; white-space: pre-wrap; background-color: transparent; border-radius: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } .container { margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; } @media (min-width: 768px) { .container { width: 750px; } } @media (min-width: 992px) { .container { width: 970px; } } @media (min-width: 1200px) { .container { width: 1170px; } } .container-fluid { margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; } .row { margin-left: -15px; margin-right: -15px; } .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px; } .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { float: left; } .col-xs-12 { width: 100%; } .col-xs-11 { width: 91.66666667%; } .col-xs-10 { width: 83.33333333%; } .col-xs-9 { width: 75%; } .col-xs-8 { width: 66.66666667%; } .col-xs-7 { width: 58.33333333%; } .col-xs-6 { width: 50%; } .col-xs-5 { width: 41.66666667%; } .col-xs-4 { width: 33.33333333%; } .col-xs-3 { width: 25%; } .col-xs-2 { width: 16.66666667%; } .col-xs-1 { width: 8.33333333%; } .col-xs-pull-12 { right: 100%; } .col-xs-pull-11 { right: 91.66666667%; } .col-xs-pull-10 { right: 83.33333333%; } .col-xs-pull-9 { right: 75%; } .col-xs-pull-8 { right: 66.66666667%; } .col-xs-pull-7 { right: 58.33333333%; } .col-xs-pull-6 { right: 50%; } .col-xs-pull-5 { right: 41.66666667%; } .col-xs-pull-4 { right: 33.33333333%; } .col-xs-pull-3 { right: 25%; } .col-xs-pull-2 { right: 16.66666667%; } .col-xs-pull-1 { right: 8.33333333%; } .col-xs-pull-0 { right: auto; } .col-xs-push-12 { left: 100%; } .col-xs-push-11 { left: 91.66666667%; } .col-xs-push-10 { left: 83.33333333%; } .col-xs-push-9 { left: 75%; } .col-xs-push-8 { left: 66.66666667%; } .col-xs-push-7 { left: 58.33333333%; } .col-xs-push-6 { left: 50%; } .col-xs-push-5 { left: 41.66666667%; } .col-xs-push-4 { left: 33.33333333%; } .col-xs-push-3 { left: 25%; } .col-xs-push-2 { left: 16.66666667%; } .col-xs-push-1 { left: 8.33333333%; } .col-xs-push-0 { left: auto; } .col-xs-offset-12 { margin-left: 100%; } .col-xs-offset-11 { margin-left: 91.66666667%; } .col-xs-offset-10 { margin-left: 83.33333333%; } .col-xs-offset-9 { margin-left: 75%; } .col-xs-offset-8 { margin-left: 66.66666667%; } .col-xs-offset-7 { margin-left: 58.33333333%; } .col-xs-offset-6 { margin-left: 50%; } .col-xs-offset-5 { margin-left: 41.66666667%; } .col-xs-offset-4 { margin-left: 33.33333333%; } .col-xs-offset-3 { margin-left: 25%; } .col-xs-offset-2 { margin-left: 16.66666667%; } .col-xs-offset-1 { margin-left: 8.33333333%; } .col-xs-offset-0 { margin-left: 0%; } @media (min-width: 768px) { .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { float: left; } .col-sm-12 { width: 100%; } .col-sm-11 { width: 91.66666667%; } .col-sm-10 { width: 83.33333333%; } .col-sm-9 { width: 75%; } .col-sm-8 { width: 66.66666667%; } .col-sm-7 { width: 58.33333333%; } .col-sm-6 { width: 50%; } .col-sm-5 { width: 41.66666667%; } .col-sm-4 { width: 33.33333333%; } .col-sm-3 { width: 25%; } .col-sm-2 { width: 16.66666667%; } .col-sm-1 { width: 8.33333333%; } .col-sm-pull-12 { right: 100%; } .col-sm-pull-11 { right: 91.66666667%; } .col-sm-pull-10 { right: 83.33333333%; } .col-sm-pull-9 { right: 75%; } .col-sm-pull-8 { right: 66.66666667%; } .col-sm-pull-7 { right: 58.33333333%; } .col-sm-pull-6 { right: 50%; } .col-sm-pull-5 { right: 41.66666667%; } .col-sm-pull-4 { right: 33.33333333%; } .col-sm-pull-3 { right: 25%; } .col-sm-pull-2 { right: 16.66666667%; } .col-sm-pull-1 { right: 8.33333333%; } .col-sm-pull-0 { right: auto; } .col-sm-push-12 { left: 100%; } .col-sm-push-11 { left: 91.66666667%; } .col-sm-push-10 { left: 83.33333333%; } .col-sm-push-9 { left: 75%; } .col-sm-push-8 { left: 66.66666667%; } .col-sm-push-7 { left: 58.33333333%; } .col-sm-push-6 { left: 50%; } .col-sm-push-5 { left: 41.66666667%; } .col-sm-push-4 { left: 33.33333333%; } .col-sm-push-3 { left: 25%; } .col-sm-push-2 { left: 16.66666667%; } .col-sm-push-1 { left: 8.33333333%; } .col-sm-push-0 { left: auto; } .col-sm-offset-12 { margin-left: 100%; } .col-sm-offset-11 { margin-left: 91.66666667%; } .col-sm-offset-10 { margin-left: 83.33333333%; } .col-sm-offset-9 { margin-left: 75%; } .col-sm-offset-8 { margin-left: 66.66666667%; } .col-sm-offset-7 { margin-left: 58.33333333%; } .col-sm-offset-6 { margin-left: 50%; } .col-sm-offset-5 { margin-left: 41.66666667%; } .col-sm-offset-4 { margin-left: 33.33333333%; } .col-sm-offset-3 { margin-left: 25%; } .col-sm-offset-2 { margin-left: 16.66666667%; } .col-sm-offset-1 { margin-left: 8.33333333%; } .col-sm-offset-0 { margin-left: 0%; } } @media (min-width: 992px) { .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { float: left; } .col-md-12 { width: 100%; } .col-md-11 { width: 91.66666667%; } .col-md-10 { width: 83.33333333%; } .col-md-9 { width: 75%; } .col-md-8 { width: 66.66666667%; } .col-md-7 { width: 58.33333333%; } .col-md-6 { width: 50%; } .col-md-5 { width: 41.66666667%; } .col-md-4 { width: 33.33333333%; } .col-md-3 { width: 25%; } .col-md-2 { width: 16.66666667%; } .col-md-1 { width: 8.33333333%; } .col-md-pull-12 { right: 100%; } .col-md-pull-11 { right: 91.66666667%; } .col-md-pull-10 { right: 83.33333333%; } .col-md-pull-9 { right: 75%; } .col-md-pull-8 { right: 66.66666667%; } .col-md-pull-7 { right: 58.33333333%; } .col-md-pull-6 { right: 50%; } .col-md-pull-5 { right: 41.66666667%; } .col-md-pull-4 { right: 33.33333333%; } .col-md-pull-3 { right: 25%; } .col-md-pull-2 { right: 16.66666667%; } .col-md-pull-1 { right: 8.33333333%; } .col-md-pull-0 { right: auto; } .col-md-push-12 { left: 100%; } .col-md-push-11 { left: 91.66666667%; } .col-md-push-10 { left: 83.33333333%; } .col-md-push-9 { left: 75%; } .col-md-push-8 { left: 66.66666667%; } .col-md-push-7 { left: 58.33333333%; } .col-md-push-6 { left: 50%; } .col-md-push-5 { left: 41.66666667%; } .col-md-push-4 { left: 33.33333333%; } .col-md-push-3 { left: 25%; } .col-md-push-2 { left: 16.66666667%; } .col-md-push-1 { left: 8.33333333%; } .col-md-push-0 { left: auto; } .col-md-offset-12 { margin-left: 100%; } .col-md-offset-11 { margin-left: 91.66666667%; } .col-md-offset-10 { margin-left: 83.33333333%; } .col-md-offset-9 { margin-left: 75%; } .col-md-offset-8 { margin-left: 66.66666667%; } .col-md-offset-7 { margin-left: 58.33333333%; } .col-md-offset-6 { margin-left: 50%; } .col-md-offset-5 { margin-left: 41.66666667%; } .col-md-offset-4 { margin-left: 33.33333333%; } .col-md-offset-3 { margin-left: 25%; } .col-md-offset-2 { margin-left: 16.66666667%; } .col-md-offset-1 { margin-left: 8.33333333%; } .col-md-offset-0 { margin-left: 0%; } } @media (min-width: 1200px) { .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { float: left; } .col-lg-12 { width: 100%; } .col-lg-11 { width: 91.66666667%; } .col-lg-10 { width: 83.33333333%; } .col-lg-9 { width: 75%; } .col-lg-8 { width: 66.66666667%; } .col-lg-7 { width: 58.33333333%; } .col-lg-6 { width: 50%; } .col-lg-5 { width: 41.66666667%; } .col-lg-4 { width: 33.33333333%; } .col-lg-3 { width: 25%; } .col-lg-2 { width: 16.66666667%; } .col-lg-1 { width: 8.33333333%; } .col-lg-pull-12 { right: 100%; } .col-lg-pull-11 { right: 91.66666667%; } .col-lg-pull-10 { right: 83.33333333%; } .col-lg-pull-9 { right: 75%; } .col-lg-pull-8 { right: 66.66666667%; } .col-lg-pull-7 { right: 58.33333333%; } .col-lg-pull-6 { right: 50%; } .col-lg-pull-5 { right: 41.66666667%; } .col-lg-pull-4 { right: 33.33333333%; } .col-lg-pull-3 { right: 25%; } .col-lg-pull-2 { right: 16.66666667%; } .col-lg-pull-1 { right: 8.33333333%; } .col-lg-pull-0 { right: auto; } .col-lg-push-12 { left: 100%; } .col-lg-push-11 { left: 91.66666667%; } .col-lg-push-10 { left: 83.33333333%; } .col-lg-push-9 { left: 75%; } .col-lg-push-8 { left: 66.66666667%; } .col-lg-push-7 { left: 58.33333333%; } .col-lg-push-6 { left: 50%; } .col-lg-push-5 { left: 41.66666667%; } .col-lg-push-4 { left: 33.33333333%; } .col-lg-push-3 { left: 25%; } .col-lg-push-2 { left: 16.66666667%; } .col-lg-push-1 { left: 8.33333333%; } .col-lg-push-0 { left: auto; } .col-lg-offset-12 { margin-left: 100%; } .col-lg-offset-11 { margin-left: 91.66666667%; } .col-lg-offset-10 { margin-left: 83.33333333%; } .col-lg-offset-9 { margin-left: 75%; } .col-lg-offset-8 { margin-left: 66.66666667%; } .col-lg-offset-7 { margin-left: 58.33333333%; } .col-lg-offset-6 { margin-left: 50%; } .col-lg-offset-5 { margin-left: 41.66666667%; } .col-lg-offset-4 { margin-left: 33.33333333%; } .col-lg-offset-3 { margin-left: 25%; } .col-lg-offset-2 { margin-left: 16.66666667%; } .col-lg-offset-1 { margin-left: 8.33333333%; } .col-lg-offset-0 { margin-left: 0%; } } table { background-color: transparent; } caption { padding-top: 8px; padding-bottom: 8px; color: #777777; text-align: left; } th { text-align: left; } .table { width: 100%; max-width: 100%; margin-bottom: 20px; } .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { padding: 8px; line-height: 1.42857143; vertical-align: top; border-top: 1px solid #dddddd; } .table > thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #dddddd; } .table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > th, .table > caption + thead > tr:first-child > td, .table > colgroup + thead > tr:first-child > td, .table > thead:first-child > tr:first-child > td { border-top: 0; } .table > tbody + tbody { border-top: 2px solid #dddddd; } .table .table { background-color: #ffffff; } .table-condensed > thead > tr > th, .table-condensed > tbody > tr > th, .table-condensed > tfoot > tr > th, .table-condensed > thead > tr > td, .table-condensed > tbody > tr > td, .table-condensed > tfoot > tr > td { padding: 5px; } .table-bordered { border: 1px solid #dddddd; } .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border: 1px solid #dddddd; } .table-bordered > thead > tr > th, .table-bordered > thead > tr > td { border-bottom-width: 2px; } .table-striped > tbody > tr:nth-of-type(odd) { background-color: #f9f9f9; } .table-hover > tbody > tr:hover { background-color: #f5f5f5; } table col[class*="col-"] { position: static; float: none; display: table-column; } table td[class*="col-"], table th[class*="col-"] { position: static; float: none; display: table-cell; } .table > thead > tr > td.active, .table > tbody > tr > td.active, .table > tfoot > tr > td.active, .table > thead > tr > th.active, .table > tbody > tr > th.active, .table > tfoot > tr > th.active, .table > thead > tr.active > td, .table > tbody > tr.active > td, .table > tfoot > tr.active > td, .table > thead > tr.active > th, .table > tbody > tr.active > th, .table > tfoot > tr.active > th { background-color: #f5f5f5; } .table-hover > tbody > tr > td.active:hover, .table-hover > tbody > tr > th.active:hover, .table-hover > tbody > tr.active:hover > td, .table-hover > tbody > tr:hover > .active, .table-hover > tbody > tr.active:hover > th { background-color: #e8e8e8; } .table > thead > tr > td.success, .table > tbody > tr > td.success, .table > tfoot > tr > td.success, .table > thead > tr > th.success, .table > tbody > tr > th.success, .table > tfoot > tr > th.success, .table > thead > tr.success > td, .table > tbody > tr.success > td, .table > tfoot > tr.success > td, .table > thead > tr.success > th, .table > tbody > tr.success > th, .table > tfoot > tr.success > th { background-color: #dff0d8; } .table-hover > tbody > tr > td.success:hover, .table-hover > tbody > tr > th.success:hover, .table-hover > tbody > tr.success:hover > td, .table-hover > tbody > tr:hover > .success, .table-hover > tbody > tr.success:hover > th { background-color: #d0e9c6; } .table > thead > tr > td.info, .table > tbody > tr > td.info, .table > tfoot > tr > td.info, .table > thead > tr > th.info, .table > tbody > tr > th.info, .table > tfoot > tr > th.info, .table > thead > tr.info > td, .table > tbody > tr.info > td, .table > tfoot > tr.info > td, .table > thead > tr.info > th, .table > tbody > tr.info > th, .table > tfoot > tr.info > th { background-color: #d9edf7; } .table-hover > tbody > tr > td.info:hover, .table-hover > tbody > tr > th.info:hover, .table-hover > tbody > tr.info:hover > td, .table-hover > tbody > tr:hover > .info, .table-hover > tbody > tr.info:hover > th { background-color: #c4e3f3; } .table > thead > tr > td.warning, .table > tbody > tr > td.warning, .table > tfoot > tr > td.warning, .table > thead > tr > th.warning, .table > tbody > tr > th.warning, .table > tfoot > tr > th.warning, .table > thead > tr.warning > td, .table > tbody > tr.warning > td, .table > tfoot > tr.warning > td, .table > thead > tr.warning > th, .table > tbody > tr.warning > th, .table > tfoot > tr.warning > th { background-color: #fcf8e3; } .table-hover > tbody > tr > td.warning:hover, .table-hover > tbody > tr > th.warning:hover, .table-hover > tbody > tr.warning:hover > td, .table-hover > tbody > tr:hover > .warning, .table-hover > tbody > tr.warning:hover > th { background-color: #faf2cc; } .table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th { background-color: #f2dede; } .table-hover > tbody > tr > td.danger:hover, .table-hover > tbody > tr > th.danger:hover, .table-hover > tbody > tr.danger:hover > td, .table-hover > tbody > tr:hover > .danger, .table-hover > tbody > tr.danger:hover > th { background-color: #ebcccc; } .table-responsive { overflow-x: auto; min-height: 0.01%; } @media screen and (max-width: 767px) { .table-responsive { width: 100%; margin-bottom: 15px; overflow-y: hidden; -ms-overflow-style: -<API key>; border: 1px solid #dddddd; } .table-responsive > .table { margin-bottom: 0; } .table-responsive > .table > thead > tr > th, .table-responsive > .table > tbody > tr > th, .table-responsive > .table > tfoot > tr > th, .table-responsive > .table > thead > tr > td, .table-responsive > .table > tbody > tr > td, .table-responsive > .table > tfoot > tr > td { white-space: nowrap; } .table-responsive > .table-bordered { border: 0; } .table-responsive > .table-bordered > thead > tr > th:first-child, .table-responsive > .table-bordered > tbody > tr > th:first-child, .table-responsive > .table-bordered > tfoot > tr > th:first-child, .table-responsive > .table-bordered > thead > tr > td:first-child, .table-responsive > .table-bordered > tbody > tr > td:first-child, .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .table-responsive > .table-bordered > thead > tr > th:last-child, .table-responsive > .table-bordered > tbody > tr > th:last-child, .table-responsive > .table-bordered > tfoot > tr > th:last-child, .table-responsive > .table-bordered > thead > tr > td:last-child, .table-responsive > .table-bordered > tbody > tr > td:last-child, .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .table-responsive > .table-bordered > tbody > tr:last-child > th, .table-responsive > .table-bordered > tfoot > tr:last-child > th, .table-responsive > .table-bordered > tbody > tr:last-child > td, .table-responsive > .table-bordered > tfoot > tr:last-child > td { border-bottom: 0; } } fieldset { padding: 0; margin: 0; border: 0; min-width: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: inherit; color: #333333; border: 0; border-bottom: 1px solid #e5e5e5; } label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: bold; } input[type="search"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; margin-top: 1px \9; line-height: normal; } input[type="file"] { display: block; } input[type="range"] { display: block; width: 100%; } select[multiple], select[size] { height: auto; } input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: 5px auto -<API key>; outline-offset: -2px; } output { display: block; padding-top: 7px; font-size: 14px; line-height: 1.42857143; color: #555555; } .form-control { display: block; width: 100%; height: 34px; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; color: #555555; background-color: #ffffff; background-image: none; border: 1px solid #cccccc; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; } .form-control:focus { border-color: #66afe9; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); } .form-control::-moz-placeholder { color: #999999; opacity: 1; } .form-control:-<API key> { color: #999999; } .form-control::-<API key> { color: #999999; } .form-control::-ms-expand { border: 0; background-color: transparent; } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background-color: #eeeeee; opacity: 1; } .form-control[disabled], fieldset[disabled] .form-control { cursor: not-allowed; } textarea.form-control { height: auto; } input[type="search"] { -webkit-appearance: none; } @media screen and (-<API key>: 0) { input[type="date"].form-control, input[type="time"].form-control, input[type="datetime-local"].form-control, input[type="month"].form-control { line-height: 34px; } input[type="date"].input-sm, input[type="time"].input-sm, input[type="datetime-local"].input-sm, input[type="month"].input-sm, .input-group-sm input[type="date"], .input-group-sm input[type="time"], .input-group-sm input[type="datetime-local"], .input-group-sm input[type="month"] { line-height: 30px; } input[type="date"].input-lg, input[type="time"].input-lg, input[type="datetime-local"].input-lg, input[type="month"].input-lg, .input-group-lg input[type="date"], .input-group-lg input[type="time"], .input-group-lg input[type="datetime-local"], .input-group-lg input[type="month"] { line-height: 46px; } } .form-group { margin-bottom: 15px; } .radio, .checkbox { position: relative; display: block; margin-top: 10px; margin-bottom: 10px; } .radio label, .checkbox label { min-height: 20px; padding-left: 20px; margin-bottom: 0; font-weight: normal; cursor: pointer; } .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] { position: absolute; margin-left: -20px; margin-top: 4px \9; } .radio + .radio, .checkbox + .checkbox { margin-top: -5px; } .radio-inline, .checkbox-inline { position: relative; display: inline-block; padding-left: 20px; margin-bottom: 0; vertical-align: middle; font-weight: normal; cursor: pointer; } .radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { margin-top: 0; margin-left: 10px; } input[type="radio"][disabled], input[type="checkbox"][disabled], input[type="radio"].disabled, input[type="checkbox"].disabled, fieldset[disabled] input[type="radio"], fieldset[disabled] input[type="checkbox"] { cursor: not-allowed; } .radio-inline.disabled, .checkbox-inline.disabled, fieldset[disabled] .radio-inline, fieldset[disabled] .checkbox-inline { cursor: not-allowed; } .radio.disabled label, .checkbox.disabled label, fieldset[disabled] .radio label, fieldset[disabled] .checkbox label { cursor: not-allowed; } .form-control-static { padding-top: 7px; padding-bottom: 7px; margin-bottom: 0; min-height: 34px; } .form-control-static.input-lg, .form-control-static.input-sm { padding-left: 0; padding-right: 0; } .input-sm { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-sm { height: 30px; line-height: 30px; } textarea.input-sm, select[multiple].input-sm { height: auto; } .form-group-sm .form-control { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .form-group-sm select.form-control { height: 30px; line-height: 30px; } .form-group-sm textarea.form-control, .form-group-sm select[multiple].form-control { height: auto; } .form-group-sm .form-control-static { height: 30px; min-height: 32px; padding: 6px 10px; font-size: 12px; line-height: 1.5; } .input-lg { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; } select.input-lg { height: 46px; line-height: 46px; } textarea.input-lg, select[multiple].input-lg { height: auto; } .form-group-lg .form-control { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; } .form-group-lg select.form-control { height: 46px; line-height: 46px; } .form-group-lg textarea.form-control, .form-group-lg select[multiple].form-control { height: auto; } .form-group-lg .form-control-static { height: 46px; min-height: 38px; padding: 11px 16px; font-size: 18px; line-height: 1.3333333; } .has-feedback { position: relative; } .has-feedback .form-control { padding-right: 42.5px; } .<API key> { position: absolute; top: 0; right: 0; z-index: 2; display: block; width: 34px; height: 34px; line-height: 34px; text-align: center; pointer-events: none; } .input-lg + .<API key>, .input-group-lg + .<API key>, .form-group-lg .form-control + .<API key> { width: 46px; height: 46px; line-height: 46px; } .input-sm + .<API key>, .input-group-sm + .<API key>, .form-group-sm .form-control + .<API key> { width: 30px; height: 30px; line-height: 30px; } .has-success .help-block, .has-success .control-label, .has-success .radio, .has-success .checkbox, .has-success .radio-inline, .has-success .checkbox-inline, .has-success.radio label, .has-success.checkbox label, .has-success.radio-inline label, .has-success.checkbox-inline label { color: #3c763d; } .has-success .form-control { border-color: #3c763d; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-success .form-control:focus { border-color: #2b542c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168; } .has-success .input-group-addon { color: #3c763d; border-color: #3c763d; background-color: #dff0d8; } .has-success .<API key> { color: #3c763d; } .has-warning .help-block, .has-warning .control-label, .has-warning .radio, .has-warning .checkbox, .has-warning .radio-inline, .has-warning .checkbox-inline, .has-warning.radio label, .has-warning.checkbox label, .has-warning.radio-inline label, .has-warning.checkbox-inline label { color: #8a6d3b; } .has-warning .form-control { border-color: #8a6d3b; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-warning .form-control:focus { border-color: #66512c; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b; } .has-warning .input-group-addon { color: #8a6d3b; border-color: #8a6d3b; background-color: #fcf8e3; } .has-warning .<API key> { color: #8a6d3b; } .has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline, .has-error.radio label, .has-error.checkbox label, .has-error.radio-inline label, .has-error.checkbox-inline label { color: #a94442; } .has-error .form-control { border-color: #a94442; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-error .form-control:focus { border-color: #843534; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483; } .has-error .input-group-addon { color: #a94442; border-color: #a94442; background-color: #f2dede; } .has-error .<API key> { color: #a94442; } .has-feedback label ~ .<API key> { top: 25px; } .has-feedback label.sr-only ~ .<API key> { top: 0; } .help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; } @media (min-width: 768px) { .form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; } .form-inline .form-control-static { display: inline-block; } .form-inline .input-group { display: inline-table; vertical-align: middle; } .form-inline .input-group .input-group-addon, .form-inline .input-group .input-group-btn, .form-inline .input-group .form-control { width: auto; } .form-inline .input-group > .form-control { width: 100%; } .form-inline .control-label { margin-bottom: 0; vertical-align: middle; } .form-inline .radio, .form-inline .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle; } .form-inline .radio label, .form-inline .checkbox label { padding-left: 0; } .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { position: relative; margin-left: 0; } .form-inline .has-feedback .<API key> { top: 0; } } .form-horizontal .radio, .form-horizontal .checkbox, .form-horizontal .radio-inline, .form-horizontal .checkbox-inline { margin-top: 0; margin-bottom: 0; padding-top: 7px; } .form-horizontal .radio, .form-horizontal .checkbox { min-height: 27px; } .form-horizontal .form-group { margin-left: -15px; margin-right: -15px; } @media (min-width: 768px) { .form-horizontal .control-label { text-align: right; margin-bottom: 0; padding-top: 7px; } } .form-horizontal .has-feedback .<API key> { right: 15px; } @media (min-width: 768px) { .form-horizontal .form-group-lg .control-label { padding-top: 11px; font-size: 18px; } } @media (min-width: 768px) { .form-horizontal .form-group-sm .control-label { padding-top: 6px; font-size: 12px; } } .btn { display: inline-block; margin-bottom: 0; font-weight: normal; text-align: center; vertical-align: middle; touch-action: manipulation; cursor: pointer; background-image: none; border: 1px solid transparent; white-space: nowrap; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; border-radius: 4px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .btn:focus, .btn:active:focus, .btn.active:focus, .btn.focus, .btn:active.focus, .btn.active.focus { outline: 5px auto -<API key>; outline-offset: -2px; } .btn:hover, .btn:focus, .btn.focus { color: #333333; text-decoration: none; } .btn:active, .btn.active { outline: 0; background-image: none; -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn.disabled, .btn[disabled], fieldset[disabled] .btn { cursor: not-allowed; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; box-shadow: none; } a.btn.disabled, fieldset[disabled] a.btn { pointer-events: none; } .btn-default { color: #333333; background-color: #ffffff; border-color: #cccccc; } .btn-default:focus, .btn-default.focus { color: #333333; background-color: #e6e6e6; border-color: #8c8c8c; } .btn-default:hover { color: #333333; background-color: #e6e6e6; border-color: #adadad; } .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default { color: #333333; background-color: #e6e6e6; border-color: #adadad; } .btn-default:active:hover, .btn-default.active:hover, .open > .dropdown-toggle.btn-default:hover, .btn-default:active:focus, .btn-default.active:focus, .open > .dropdown-toggle.btn-default:focus, .btn-default:active.focus, .btn-default.active.focus, .open > .dropdown-toggle.btn-default.focus { color: #333333; background-color: #d4d4d4; border-color: #8c8c8c; } .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default { background-image: none; } .btn-default.disabled:hover, .btn-default[disabled]:hover, fieldset[disabled] .btn-default:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, fieldset[disabled] .btn-default:focus, .btn-default.disabled.focus, .btn-default[disabled].focus, fieldset[disabled] .btn-default.focus { background-color: #ffffff; border-color: #cccccc; } .btn-default .badge { color: #ffffff; background-color: #333333; } .btn-primary { color: #ffffff; background-color: #337ab7; border-color: #2e6da4; } .btn-primary:focus, .btn-primary.focus { color: #ffffff; background-color: #286090; border-color: #122b40; } .btn-primary:hover { color: #ffffff; background-color: #286090; border-color: #204d74; } .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary { color: #ffffff; background-color: #286090; border-color: #204d74; } .btn-primary:active:hover, .btn-primary.active:hover, .open > .dropdown-toggle.btn-primary:hover, .btn-primary:active:focus, .btn-primary.active:focus, .open > .dropdown-toggle.btn-primary:focus, .btn-primary:active.focus, .btn-primary.active.focus, .open > .dropdown-toggle.btn-primary.focus { color: #ffffff; background-color: #204d74; border-color: #122b40; } .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary { background-image: none; } .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled.focus, .btn-primary[disabled].focus, fieldset[disabled] .btn-primary.focus { background-color: #337ab7; border-color: #2e6da4; } .btn-primary .badge { color: #337ab7; background-color: #ffffff; } .btn-success { color: #ffffff; background-color: #5cb85c; border-color: #4cae4c; } .btn-success:focus, .btn-success.focus { color: #ffffff; background-color: #449d44; border-color: #255625; } .btn-success:hover { color: #ffffff; background-color: #449d44; border-color: #398439; } .btn-success:active, .btn-success.active, .open > .dropdown-toggle.btn-success { color: #ffffff; background-color: #449d44; border-color: #398439; } .btn-success:active:hover, .btn-success.active:hover, .open > .dropdown-toggle.btn-success:hover, .btn-success:active:focus, .btn-success.active:focus, .open > .dropdown-toggle.btn-success:focus, .btn-success:active.focus, .btn-success.active.focus, .open > .dropdown-toggle.btn-success.focus { color: #ffffff; background-color: #398439; border-color: #255625; } .btn-success:active, .btn-success.active, .open > .dropdown-toggle.btn-success { background-image: none; } .btn-success.disabled:hover, .btn-success[disabled]:hover, fieldset[disabled] .btn-success:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, fieldset[disabled] .btn-success:focus, .btn-success.disabled.focus, .btn-success[disabled].focus, fieldset[disabled] .btn-success.focus { background-color: #5cb85c; border-color: #4cae4c; } .btn-success .badge { color: #5cb85c; background-color: #ffffff; } .btn-info { color: #ffffff; background-color: #5bc0de; border-color: #46b8da; } .btn-info:focus, .btn-info.focus { color: #ffffff; background-color: #31b0d5; border-color: #1b6d85; } .btn-info:hover { color: #ffffff; background-color: #31b0d5; border-color: #269abc; } .btn-info:active, .btn-info.active, .open > .dropdown-toggle.btn-info { color: #ffffff; background-color: #31b0d5; border-color: #269abc; } .btn-info:active:hover, .btn-info.active:hover, .open > .dropdown-toggle.btn-info:hover, .btn-info:active:focus, .btn-info.active:focus, .open > .dropdown-toggle.btn-info:focus, .btn-info:active.focus, .btn-info.active.focus, .open > .dropdown-toggle.btn-info.focus { color: #ffffff; background-color: #269abc; border-color: #1b6d85; } .btn-info:active, .btn-info.active, .open > .dropdown-toggle.btn-info { background-image: none; } .btn-info.disabled:hover, .btn-info[disabled]:hover, fieldset[disabled] .btn-info:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, fieldset[disabled] .btn-info:focus, .btn-info.disabled.focus, .btn-info[disabled].focus, fieldset[disabled] .btn-info.focus { background-color: #5bc0de; border-color: #46b8da; } .btn-info .badge { color: #5bc0de; background-color: #ffffff; } .btn-warning { color: #ffffff; background-color: #f0ad4e; border-color: #eea236; } .btn-warning:focus, .btn-warning.focus { color: #ffffff; background-color: #ec971f; border-color: #985f0d; } .btn-warning:hover { color: #ffffff; background-color: #ec971f; border-color: #d58512; } .btn-warning:active, .btn-warning.active, .open > .dropdown-toggle.btn-warning { color: #ffffff; background-color: #ec971f; border-color: #d58512; } .btn-warning:active:hover, .btn-warning.active:hover, .open > .dropdown-toggle.btn-warning:hover, .btn-warning:active:focus, .btn-warning.active:focus, .open > .dropdown-toggle.btn-warning:focus, .btn-warning:active.focus, .btn-warning.active.focus, .open > .dropdown-toggle.btn-warning.focus { color: #ffffff; background-color: #d58512; border-color: #985f0d; } .btn-warning:active, .btn-warning.active, .open > .dropdown-toggle.btn-warning { background-image: none; } .btn-warning.disabled:hover, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, fieldset[disabled] .btn-warning:focus, .btn-warning.disabled.focus, .btn-warning[disabled].focus, fieldset[disabled] .btn-warning.focus { background-color: #f0ad4e; border-color: #eea236; } .btn-warning .badge { color: #f0ad4e; background-color: #ffffff; } .btn-danger { color: #ffffff; background-color: #d9534f; border-color: #d43f3a; } .btn-danger:focus, .btn-danger.focus { color: #ffffff; background-color: #c9302c; border-color: #761c19; } .btn-danger:hover { color: #ffffff; background-color: #c9302c; border-color: #ac2925; } .btn-danger:active, .btn-danger.active, .open > .dropdown-toggle.btn-danger { color: #ffffff; background-color: #c9302c; border-color: #ac2925; } .btn-danger:active:hover, .btn-danger.active:hover, .open > .dropdown-toggle.btn-danger:hover, .btn-danger:active:focus, .btn-danger.active:focus, .open > .dropdown-toggle.btn-danger:focus, .btn-danger:active.focus, .btn-danger.active.focus, .open > .dropdown-toggle.btn-danger.focus { color: #ffffff; background-color: #ac2925; border-color: #761c19; } .btn-danger:active, .btn-danger.active, .open > .dropdown-toggle.btn-danger { background-image: none; } .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled.focus, .btn-danger[disabled].focus, fieldset[disabled] .btn-danger.focus { background-color: #d9534f; border-color: #d43f3a; } .btn-danger .badge { color: #d9534f; background-color: #ffffff; } .btn-link { color: #337ab7; font-weight: normal; border-radius: 0; } .btn-link, .btn-link:active, .btn-link.active, .btn-link[disabled], fieldset[disabled] .btn-link { background-color: transparent; -webkit-box-shadow: none; box-shadow: none; } .btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active { border-color: transparent; } .btn-link:hover, .btn-link:focus { color: #23527c; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { color: #777777; text-decoration: none; } .btn-lg, .btn-group-lg > .btn { padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; } .btn-sm, .btn-group-sm > .btn { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-xs, .btn-group-xs > .btn { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-block { display: block; width: 100%; } .btn-block + .btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .fade { opacity: 0; -webkit-transition: opacity 0.15s linear; -o-transition: opacity 0.15s linear; transition: opacity 0.15s linear; } .fade.in { opacity: 1; } .collapse { display: none; } .collapse.in { display: block; } tr.collapse.in { display: table-row; } tbody.collapse.in { display: table-row-group; } .collapsing { position: relative; height: 0; overflow: hidden; -<API key>: height, visibility; transition-property: height, visibility; -<API key>: 0.35s; transition-duration: 0.35s; -<API key>: ease; <API key>: ease; } .caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px dashed; border-top: 4px solid \9; border-right: 4px solid transparent; border-left: 4px solid transparent; } .dropup, .dropdown { position: relative; } .dropdown-toggle:focus { outline: 0; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; list-style: none; font-size: 14px; text-align: left; background-color: #ffffff; border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 4px; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); background-clip: padding-box; } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; } .dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.42857143; color: #333333; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { text-decoration: none; color: #262626; background-color: #f5f5f5; } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: #ffffff; text-decoration: none; outline: 0; background-color: #337ab7; } .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { color: #777777; } .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { text-decoration: none; background-color: transparent; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); cursor: not-allowed; } .open > .dropdown-menu { display: block; } .open > a { outline: 0; } .dropdown-menu-right { left: auto; right: 0; } .dropdown-menu-left { left: 0; right: auto; } .dropdown-header { display: block; padding: 3px 20px; font-size: 12px; line-height: 1.42857143; color: #777777; white-space: nowrap; } .dropdown-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 990; } .pull-right > .dropdown-menu { right: 0; left: auto; } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { border-top: 0; border-bottom: 4px dashed; border-bottom: 4px solid \9; content: ""; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 2px; } @media (min-width: 768px) { .navbar-right .dropdown-menu { left: auto; right: 0; } .navbar-right .dropdown-menu-left { left: 0; right: auto; } } .btn-group, .btn-group-vertical { position: relative; display: inline-block; vertical-align: middle; } .btn-group > .btn, .btn-group-vertical > .btn { position: relative; float: left; } .btn-group > .btn:hover, .btn-group-vertical > .btn:hover, .btn-group > .btn:focus, .btn-group-vertical > .btn:focus, .btn-group > .btn:active, .btn-group-vertical > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn.active { z-index: 2; } .btn-group .btn + .btn, .btn-group .btn + .btn-group, .btn-group .btn-group + .btn, .btn-group .btn-group + .btn-group { margin-left: -1px; } .btn-toolbar { margin-left: -5px; } .btn-toolbar .btn, .btn-toolbar .btn-group, .btn-toolbar .input-group { float: left; } .btn-toolbar > .btn, .btn-toolbar > .btn-group, .btn-toolbar > .input-group { margin-left: 5px; } .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; } .btn-group > .btn:first-child { margin-left: 0; } .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { <API key>: 0; <API key>: 0; } .btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) { <API key>: 0; <API key>: 0; } .btn-group > .btn-group { float: left; } .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child, .btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle { <API key>: 0; <API key>: 0; } .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child { <API key>: 0; <API key>: 0; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group > .btn + .dropdown-toggle { padding-left: 8px; padding-right: 8px; } .btn-group > .btn-lg + .dropdown-toggle { padding-left: 12px; padding-right: 12px; } .btn-group.open .dropdown-toggle { -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn-group.open .dropdown-toggle.btn-link { -webkit-box-shadow: none; box-shadow: none; } .btn .caret { margin-left: 0; } .btn-lg .caret { border-width: 5px 5px 0; border-bottom-width: 0; } .dropup .btn-lg .caret { border-width: 0 5px 5px; } .btn-group-vertical > .btn, .btn-group-vertical > .btn-group, .btn-group-vertical > .btn-group > .btn { display: block; float: none; width: 100%; max-width: 100%; } .btn-group-vertical > .btn-group > .btn { float: none; } .btn-group-vertical > .btn + .btn, .btn-group-vertical > .btn + .btn-group, .btn-group-vertical > .btn-group + .btn, .btn-group-vertical > .btn-group + .btn-group { margin-top: -1px; margin-left: 0; } .btn-group-vertical > .btn:not(:first-child):not(:last-child) { border-radius: 0; } .btn-group-vertical > .btn:first-child:not(:last-child) { <API key>: 4px; <API key>: 4px; <API key>: 0; <API key>: 0; } .btn-group-vertical > .btn:last-child:not(:first-child) { <API key>: 0; <API key>: 0; <API key>: 4px; <API key>: 4px; } .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, .btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle { <API key>: 0; <API key>: 0; } .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { <API key>: 0; <API key>: 0; } .btn-group-justified { display: table; width: 100%; table-layout: fixed; border-collapse: separate; } .btn-group-justified > .btn, .btn-group-justified > .btn-group { float: none; display: table-cell; width: 1%; } .btn-group-justified > .btn-group .btn { width: 100%; } .btn-group-justified > .btn-group .dropdown-menu { left: auto; } [data-toggle="buttons"] > .btn input[type="radio"], [data-toggle="buttons"] > .btn-group > .btn input[type="radio"], [data-toggle="buttons"] > .btn input[type="checkbox"], [data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] { position: absolute; clip: rect(0, 0, 0, 0); pointer-events: none; } .input-group { position: relative; display: table; border-collapse: separate; } .input-group[class*="col-"] { float: none; padding-left: 0; padding-right: 0; } .input-group .form-control { position: relative; z-index: 2; float: left; width: 100%; margin-bottom: 0; } .input-group .form-control:focus { z-index: 3; } .input-group-lg > .form-control, .input-group-lg > .input-group-addon, .input-group-lg > .input-group-btn > .btn { height: 46px; padding: 10px 16px; font-size: 18px; line-height: 1.3333333; border-radius: 6px; } select.input-group-lg > .form-control, select.input-group-lg > .input-group-addon, select.input-group-lg > .input-group-btn > .btn { height: 46px; line-height: 46px; } textarea.input-group-lg > .form-control, textarea.input-group-lg > .input-group-addon, textarea.input-group-lg > .input-group-btn > .btn, select[multiple].input-group-lg > .form-control, select[multiple].input-group-lg > .input-group-addon, select[multiple].input-group-lg > .input-group-btn > .btn { height: auto; } .input-group-sm > .form-control, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .btn { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-group-sm > .form-control, select.input-group-sm > .input-group-addon, select.input-group-sm > .input-group-btn > .btn { height: 30px; line-height: 30px; } textarea.input-group-sm > .form-control, textarea.input-group-sm > .input-group-addon, textarea.input-group-sm > .input-group-btn > .btn, select[multiple].input-group-sm > .form-control, select[multiple].input-group-sm > .input-group-addon, select[multiple].input-group-sm > .input-group-btn > .btn { height: auto; } .input-group-addon, .input-group-btn, .input-group .form-control { display: table-cell; } .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; } .input-group-addon, .input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle; } .input-group-addon { padding: 6px 12px; font-size: 14px; font-weight: normal; line-height: 1; color: #555555; text-align: center; background-color: #eeeeee; border: 1px solid #cccccc; border-radius: 4px; } .input-group-addon.input-sm { padding: 5px 10px; font-size: 12px; border-radius: 3px; } .input-group-addon.input-lg { padding: 10px 16px; font-size: 18px; border-radius: 6px; } .input-group-addon input[type="radio"], .input-group-addon input[type="checkbox"] { margin-top: 0; } .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), .input-group-btn:last-child > .btn-group:not(:last-child) > .btn { <API key>: 0; <API key>: 0; } .input-group-addon:first-child { border-right: 0; } .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group > .btn, .input-group-btn:last-child > .dropdown-toggle, .input-group-btn:first-child > .btn:not(:first-child), .input-group-btn:first-child > .btn-group:not(:first-child) > .btn { <API key>: 0; <API key>: 0; } .input-group-addon:last-child { border-left: 0; } .input-group-btn { position: relative; font-size: 0; white-space: nowrap; } .input-group-btn > .btn { position: relative; } .input-group-btn > .btn + .btn { margin-left: -1px; } .input-group-btn > .btn:hover, .input-group-btn > .btn:focus, .input-group-btn > .btn:active { z-index: 2; } .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group { margin-right: -1px; } .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group { z-index: 2; margin-left: -1px; } .nav { margin-bottom: 0; padding-left: 0; list-style: none; } .nav > li { position: relative; display: block; } .nav > li > a { position: relative; display: block; padding: 10px 15px; } .nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #eeeeee; } .nav > li.disabled > a { color: #777777; } .nav > li.disabled > a:hover, .nav > li.disabled > a:focus { color: #777777; text-decoration: none; background-color: transparent; cursor: not-allowed; } .nav .open > a, .nav .open > a:hover, .nav .open > a:focus { background-color: #eeeeee; border-color: #337ab7; } .nav .nav-divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; } .nav > li > a > img { max-width: none; } .nav-tabs { border-bottom: 1px solid #dddddd; } .nav-tabs > li { float: left; margin-bottom: -1px; } .nav-tabs > li > a { margin-right: 2px; line-height: 1.42857143; border: 1px solid transparent; border-radius: 4px 4px 0 0; } .nav-tabs > li > a:hover { border-color: #eeeeee #eeeeee #dddddd; } .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: #555555; background-color: #ffffff; border: 1px solid #dddddd; border-bottom-color: transparent; cursor: default; } .nav-tabs.nav-justified { width: 100%; border-bottom: 0; } .nav-tabs.nav-justified > li { float: none; } .nav-tabs.nav-justified > li > a { text-align: center; margin-bottom: 5px; } .nav-tabs.nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-tabs.nav-justified > li { display: table-cell; width: 1%; } .nav-tabs.nav-justified > li > a { margin-bottom: 0; } } .nav-tabs.nav-justified > li > a { margin-right: 0; border-radius: 4px; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border: 1px solid #dddddd; } @media (min-width: 768px) { .nav-tabs.nav-justified > li > a { border-bottom: 1px solid #dddddd; border-radius: 4px 4px 0 0; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border-bottom-color: #ffffff; } } .nav-pills > li { float: left; } .nav-pills > li > a { border-radius: 4px; } .nav-pills > li + li { margin-left: 2px; } .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { color: #ffffff; background-color: #337ab7; } .nav-stacked > li { float: none; } .nav-stacked > li + li { margin-top: 2px; margin-left: 0; } .nav-justified { width: 100%; } .nav-justified > li { float: none; } .nav-justified > li > a { text-align: center; margin-bottom: 5px; } .nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-justified > li { display: table-cell; width: 1%; } .nav-justified > li > a { margin-bottom: 0; } } .nav-tabs-justified { border-bottom: 0; } .nav-tabs-justified > li > a { margin-right: 0; border-radius: 4px; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border: 1px solid #dddddd; } @media (min-width: 768px) { .nav-tabs-justified > li > a { border-bottom: 1px solid #dddddd; border-radius: 4px 4px 0 0; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border-bottom-color: #ffffff; } } .tab-content > .tab-pane { display: none; } .tab-content > .active { display: block; } .nav-tabs .dropdown-menu { margin-top: -1px; <API key>: 0; <API key>: 0; } .navbar { position: relative; min-height: 50px; margin-bottom: 20px; border: 1px solid transparent; } @media (min-width: 768px) { .navbar { border-radius: 4px; } } @media (min-width: 768px) { .navbar-header { float: left; } } .navbar-collapse { overflow-x: visible; padding-right: 15px; padding-left: 15px; border-top: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); -<API key>: touch; } .navbar-collapse.in { overflow-y: auto; } @media (min-width: 768px) { .navbar-collapse { width: auto; border-top: 0; box-shadow: none; } .navbar-collapse.collapse { display: block !important; height: auto !important; padding-bottom: 0; overflow: visible !important; } .navbar-collapse.in { overflow-y: visible; } .navbar-fixed-top .navbar-collapse, .navbar-static-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { padding-left: 0; padding-right: 0; } } .navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { max-height: 340px; } @media (max-device-width: 480px) and (orientation: landscape) { .navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { max-height: 200px; } } .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: -15px; margin-left: -15px; } @media (min-width: 768px) { .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: 0; margin-left: 0; } } .navbar-static-top { z-index: 1000; border-width: 0 0 1px; } @media (min-width: 768px) { .navbar-static-top { border-radius: 0; } } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; z-index: 1030; } @media (min-width: 768px) { .navbar-fixed-top, .navbar-fixed-bottom { border-radius: 0; } } .navbar-fixed-top { top: 0; border-width: 0 0 1px; } .navbar-fixed-bottom { bottom: 0; margin-bottom: 0; border-width: 1px 0 0; } .navbar-brand { float: left; padding: 15px 15px; font-size: 18px; line-height: 20px; height: 50px; } .navbar-brand:hover, .navbar-brand:focus { text-decoration: none; } .navbar-brand > img { display: block; } @media (min-width: 768px) { .navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand { margin-left: -15px; } } .navbar-toggle { position: relative; float: right; margin-right: 15px; padding: 9px 10px; margin-top: 8px; margin-bottom: 8px; background-color: transparent; background-image: none; border: 1px solid transparent; border-radius: 4px; } .navbar-toggle:focus { outline: 0; } .navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; } .navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; } @media (min-width: 768px) { .navbar-toggle { display: none; } } .navbar-nav { margin: 7.5px -15px; } .navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; line-height: 20px; } @media (max-width: 767px) { .navbar-nav .open .dropdown-menu { position: static; float: none; width: auto; margin-top: 0; background-color: transparent; border: 0; box-shadow: none; } .navbar-nav .open .dropdown-menu > li > a, .navbar-nav .open .dropdown-menu .dropdown-header { padding: 5px 15px 5px 25px; } .navbar-nav .open .dropdown-menu > li > a { line-height: 20px; } .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-nav .open .dropdown-menu > li > a:focus { background-image: none; } } @media (min-width: 768px) { .navbar-nav { float: left; margin: 0; } .navbar-nav > li { float: left; } .navbar-nav > li > a { padding-top: 15px; padding-bottom: 15px; } } .navbar-form { margin-left: -15px; margin-right: -15px; padding: 10px 15px; border-top: 1px solid transparent; border-bottom: 1px solid transparent; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); margin-top: 8px; margin-bottom: 8px; } @media (min-width: 768px) { .navbar-form .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .navbar-form .form-control { display: inline-block; width: auto; vertical-align: middle; } .navbar-form .form-control-static { display: inline-block; } .navbar-form .input-group { display: inline-table; vertical-align: middle; } .navbar-form .input-group .input-group-addon, .navbar-form .input-group .input-group-btn, .navbar-form .input-group .form-control { width: auto; } .navbar-form .input-group > .form-control { width: 100%; } .navbar-form .control-label { margin-bottom: 0; vertical-align: middle; } .navbar-form .radio, .navbar-form .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle; } .navbar-form .radio label, .navbar-form .checkbox label { padding-left: 0; } .navbar-form .radio input[type="radio"], .navbar-form .checkbox input[type="checkbox"] { position: relative; margin-left: 0; } .navbar-form .has-feedback .<API key> { top: 0; } } @media (max-width: 767px) { .navbar-form .form-group { margin-bottom: 5px; } .navbar-form .form-group:last-child { margin-bottom: 0; } } @media (min-width: 768px) { .navbar-form { width: auto; border: 0; margin-left: 0; margin-right: 0; padding-top: 0; padding-bottom: 0; -webkit-box-shadow: none; box-shadow: none; } } .navbar-nav > li > .dropdown-menu { margin-top: 0; <API key>: 0; <API key>: 0; } .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { margin-bottom: 0; <API key>: 4px; <API key>: 4px; <API key>: 0; <API key>: 0; } .navbar-btn { margin-top: 8px; margin-bottom: 8px; } .navbar-btn.btn-sm { margin-top: 10px; margin-bottom: 10px; } .navbar-btn.btn-xs { margin-top: 14px; margin-bottom: 14px; } .navbar-text { margin-top: 15px; margin-bottom: 15px; } @media (min-width: 768px) { .navbar-text { float: left; margin-left: 15px; margin-right: 15px; } } @media (min-width: 768px) { .navbar-left { float: left !important; } .navbar-right { float: right !important; margin-right: -15px; } .navbar-right ~ .navbar-right { margin-right: 0; } } .navbar-default { background-color: #f8f8f8; border-color: #e7e7e7; } .navbar-default .navbar-brand { color: #777777; } .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { color: #5e5e5e; background-color: transparent; } .navbar-default .navbar-text { color: #777777; } .navbar-default .navbar-nav > li > a { color: #777777; } .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { color: #555555; background-color: #e7e7e7; } .navbar-default .navbar-nav > .disabled > a, .navbar-default .navbar-nav > .disabled > a:hover, .navbar-default .navbar-nav > .disabled > a:focus { color: #cccccc; background-color: transparent; } .navbar-default .navbar-toggle { border-color: #dddddd; } .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background-color: #dddddd; } .navbar-default .navbar-toggle .icon-bar { background-color: #888888; } .navbar-default .navbar-collapse, .navbar-default .navbar-form { border-color: #e7e7e7; } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { background-color: #e7e7e7; color: #555555; } @media (max-width: 767px) { .navbar-default .navbar-nav .open .dropdown-menu > li > a { color: #777777; } .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { color: #333333; background-color: transparent; } .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { color: #555555; background-color: #e7e7e7; } .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #cccccc; background-color: transparent; } } .navbar-default .navbar-link { color: #777777; } .navbar-default .navbar-link:hover { color: #333333; } .navbar-default .btn-link { color: #777777; } .navbar-default .btn-link:hover, .navbar-default .btn-link:focus { color: #333333; } .navbar-default .btn-link[disabled]:hover, fieldset[disabled] .navbar-default .btn-link:hover, .navbar-default .btn-link[disabled]:focus, fieldset[disabled] .navbar-default .btn-link:focus { color: #cccccc; } .navbar-inverse { background-color: #222222; border-color: #080808; } .navbar-inverse .navbar-brand { color: #9d9d9d; } .navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-text { color: #9d9d9d; } .navbar-inverse .navbar-nav > li > a { color: #9d9d9d; } .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { color: #ffffff; background-color: #080808; } .navbar-inverse .navbar-nav > .disabled > a, .navbar-inverse .navbar-nav > .disabled > a:hover, .navbar-inverse .navbar-nav > .disabled > a:focus { color: #444444; background-color: transparent; } .navbar-inverse .navbar-toggle { border-color: #333333; } .navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus { background-color: #333333; } .navbar-inverse .navbar-toggle .icon-bar { background-color: #ffffff; } .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { border-color: #101010; } .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus { background-color: #080808; color: #ffffff; } @media (max-width: 767px) { .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { border-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu .divider { background-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { color: #9d9d9d; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { color: #ffffff; background-color: transparent; } .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { color: #ffffff; background-color: #080808; } .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #444444; background-color: transparent; } } .navbar-inverse .navbar-link { color: #9d9d9d; } .navbar-inverse .navbar-link:hover { color: #ffffff; } .navbar-inverse .btn-link { color: #9d9d9d; } .navbar-inverse .btn-link:hover, .navbar-inverse .btn-link:focus { color: #ffffff; } .navbar-inverse .btn-link[disabled]:hover, fieldset[disabled] .navbar-inverse .btn-link:hover, .navbar-inverse .btn-link[disabled]:focus, fieldset[disabled] .navbar-inverse .btn-link:focus { color: #444444; } .breadcrumb { padding: 8px 15px; margin-bottom: 20px; list-style: none; background-color: #f5f5f5; border-radius: 4px; } .breadcrumb > li { display: inline-block; } .breadcrumb > li + li:before { content: "/\00a0"; padding: 0 5px; color: #cccccc; } .breadcrumb > .active { color: #777777; } .pagination { display: inline-block; padding-left: 0; margin: 20px 0; border-radius: 4px; } .pagination > li { display: inline; } .pagination > li > a, .pagination > li > span { position: relative; float: left; padding: 6px 12px; line-height: 1.42857143; text-decoration: none; color: #337ab7; background-color: #ffffff; border: 1px solid #dddddd; margin-left: -1px; } .pagination > li:first-child > a, .pagination > li:first-child > span { margin-left: 0; <API key>: 4px; <API key>: 4px; } .pagination > li:last-child > a, .pagination > li:last-child > span { <API key>: 4px; <API key>: 4px; } .pagination > li > a:hover, .pagination > li > span:hover, .pagination > li > a:focus, .pagination > li > span:focus { z-index: 2; color: #23527c; background-color: #eeeeee; border-color: #dddddd; } .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { z-index: 3; color: #ffffff; background-color: #337ab7; border-color: #337ab7; cursor: default; } .pagination > .disabled > span, .pagination > .disabled > span:hover, .pagination > .disabled > span:focus, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus { color: #777777; background-color: #ffffff; border-color: #dddddd; cursor: not-allowed; } .pagination-lg > li > a, .pagination-lg > li > span { padding: 10px 16px; font-size: 18px; line-height: 1.3333333; } .pagination-lg > li:first-child > a, .pagination-lg > li:first-child > span { <API key>: 6px; <API key>: 6px; } .pagination-lg > li:last-child > a, .pagination-lg > li:last-child > span { <API key>: 6px; <API key>: 6px; } .pagination-sm > li > a, .pagination-sm > li > span { padding: 5px 10px; font-size: 12px; line-height: 1.5; } .pagination-sm > li:first-child > a, .pagination-sm > li:first-child > span { <API key>: 3px; <API key>: 3px; } .pagination-sm > li:last-child > a, .pagination-sm > li:last-child > span { <API key>: 3px; <API key>: 3px; } .pager { padding-left: 0; margin: 20px 0; list-style: none; text-align: center; } .pager li { display: inline; } .pager li > a, .pager li > span { display: inline-block; padding: 5px 14px; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 15px; } .pager li > a:hover, .pager li > a:focus { text-decoration: none; background-color: #eeeeee; } .pager .next > a, .pager .next > span { float: right; } .pager .previous > a, .pager .previous > span { float: left; } .pager .disabled > a, .pager .disabled > a:hover, .pager .disabled > a:focus, .pager .disabled > span { color: #777777; background-color: #ffffff; cursor: not-allowed; } .label { display: inline; padding: .2em .6em .3em; font-size: 75%; font-weight: bold; line-height: 1; color: #ffffff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25em; } a.label:hover, a.label:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .label:empty { display: none; } .btn .label { position: relative; top: -1px; } .label-default { background-color: #777777; } .label-default[href]:hover, .label-default[href]:focus { background-color: #5e5e5e; } .label-primary { background-color: #337ab7; } .label-primary[href]:hover, .label-primary[href]:focus { background-color: #286090; } .label-success { background-color: #5cb85c; } .label-success[href]:hover, .label-success[href]:focus { background-color: #449d44; } .label-info { background-color: #5bc0de; } .label-info[href]:hover, .label-info[href]:focus { background-color: #31b0d5; } .label-warning { background-color: #f0ad4e; } .label-warning[href]:hover, .label-warning[href]:focus { background-color: #ec971f; } .label-danger { background-color: #d9534f; } .label-danger[href]:hover, .label-danger[href]:focus { background-color: #c9302c; } .badge { display: inline-block; min-width: 10px; padding: 3px 7px; font-size: 12px; font-weight: bold; color: #ffffff; line-height: 1; vertical-align: middle; white-space: nowrap; text-align: center; background-color: #777777; border-radius: 10px; } .badge:empty { display: none; } .btn .badge { position: relative; top: -1px; } .btn-xs .badge, .btn-group-xs > .btn .badge { top: 0; padding: 1px 5px; } a.badge:hover, a.badge:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .list-group-item.active > .badge, .nav-pills > .active > a > .badge { color: #337ab7; background-color: #ffffff; } .list-group-item > .badge { float: right; } .list-group-item > .badge + .badge { margin-right: 5px; } .nav-pills > li > a > .badge { margin-left: 3px; } .jumbotron { padding-top: 30px; padding-bottom: 30px; margin-bottom: 30px; color: inherit; background-color: #eeeeee; } .jumbotron h1, .jumbotron .h1 { color: inherit; } .jumbotron p { margin-bottom: 15px; font-size: 21px; font-weight: 200; } .jumbotron > hr { border-top-color: #d5d5d5; } .container .jumbotron, .container-fluid .jumbotron { border-radius: 6px; padding-left: 15px; padding-right: 15px; } .jumbotron .container { max-width: 100%; } @media screen and (min-width: 768px) { .jumbotron { padding-top: 48px; padding-bottom: 48px; } .container .jumbotron, .container-fluid .jumbotron { padding-left: 60px; padding-right: 60px; } .jumbotron h1, .jumbotron .h1 { font-size: 63px; } } .thumbnail { display: block; padding: 4px; margin-bottom: 20px; line-height: 1.42857143; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: border 0.2s ease-in-out; -o-transition: border 0.2s ease-in-out; transition: border 0.2s ease-in-out; } .thumbnail > img, .thumbnail a > img { margin-left: auto; margin-right: auto; } a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active { border-color: #337ab7; } .thumbnail .caption { padding: 9px; color: #333333; } .alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; } .alert h4 { margin-top: 0; color: inherit; } .alert .alert-link { font-weight: bold; } .alert > p, .alert > ul { margin-bottom: 0; } .alert > p + p { margin-top: 5px; } .alert-dismissable, .alert-dismissible { padding-right: 35px; } .alert-dismissable .close, .alert-dismissible .close { position: relative; top: -2px; right: -21px; color: inherit; } .alert-success { background-color: #dff0d8; border-color: #d6e9c6; color: #3c763d; } .alert-success hr { border-top-color: #c9e2b3; } .alert-success .alert-link { color: #2b542c; } .alert-info { background-color: #d9edf7; border-color: #bce8f1; color: #31708f; } .alert-info hr { border-top-color: #a6e1ec; } .alert-info .alert-link { color: #245269; } .alert-warning { background-color: #fcf8e3; border-color: #faebcc; color: #8a6d3b; } .alert-warning hr { border-top-color: #f7e1b5; } .alert-warning .alert-link { color: #66512c; } .alert-danger { background-color: #f2dede; border-color: #ebccd1; color: #a94442; } .alert-danger hr { border-top-color: #e4b9c0; } .alert-danger .alert-link { color: #843534; } @-webkit-keyframes <API key> { from { background-position: 40px 0; } to { background-position: 0 0; } } @keyframes <API key> { from { background-position: 40px 0; } to { background-position: 0 0; } } .progress { overflow: hidden; height: 20px; margin-bottom: 20px; background-color: #f5f5f5; border-radius: 4px; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); } .progress-bar { float: left; width: 0%; height: 100%; font-size: 12px; line-height: 20px; color: #ffffff; text-align: center; background-color: #337ab7; -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -webkit-transition: width 0.6s ease; -o-transition: width 0.6s ease; transition: width 0.6s ease; } .progress-striped .progress-bar, .<API key> { background-image: -<API key>(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 40px 40px; } .progress.active .progress-bar, .progress-bar.active { -webkit-animation: <API key> 2s linear infinite; -o-animation: <API key> 2s linear infinite; animation: <API key> 2s linear infinite; } .<API key> { background-color: #5cb85c; } .progress-striped .<API key> { background-image: -<API key>(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-info { background-color: #5bc0de; } .progress-striped .progress-bar-info { background-image: -<API key>(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .<API key> { background-color: #f0ad4e; } .progress-striped .<API key> { background-image: -<API key>(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-danger { background-color: #d9534f; } .progress-striped .progress-bar-danger { background-image: -<API key>(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .media { margin-top: 15px; } .media:first-child { margin-top: 0; } .media, .media-body { zoom: 1; overflow: hidden; } .media-body { width: 10000px; } .media-object { display: block; } .media-object.img-thumbnail { max-width: none; } .media-right, .media > .pull-right { padding-left: 10px; } .media-left, .media > .pull-left { padding-right: 10px; } .media-left, .media-right, .media-body { display: table-cell; vertical-align: top; } .media-middle { vertical-align: middle; } .media-bottom { vertical-align: bottom; } .media-heading { margin-top: 0; margin-bottom: 5px; } .media-list { padding-left: 0; list-style: none; } .list-group { margin-bottom: 20px; padding-left: 0; } .list-group-item { position: relative; display: block; padding: 10px 15px; margin-bottom: -1px; background-color: #ffffff; border: 1px solid #dddddd; } .list-group-item:first-child { <API key>: 4px; <API key>: 4px; } .list-group-item:last-child { margin-bottom: 0; <API key>: 4px; <API key>: 4px; } a.list-group-item, button.list-group-item { color: #555555; } a.list-group-item .<API key>, button.list-group-item .<API key> { color: #333333; } a.list-group-item:hover, button.list-group-item:hover, a.list-group-item:focus, button.list-group-item:focus { text-decoration: none; color: #555555; background-color: #f5f5f5; } button.list-group-item { width: 100%; text-align: left; } .list-group-item.disabled, .list-group-item.disabled:hover, .list-group-item.disabled:focus { background-color: #eeeeee; color: #777777; cursor: not-allowed; } .list-group-item.disabled .<API key>, .list-group-item.disabled:hover .<API key>, .list-group-item.disabled:focus .<API key> { color: inherit; } .list-group-item.disabled .<API key>, .list-group-item.disabled:hover .<API key>, .list-group-item.disabled:focus .<API key> { color: #777777; } .list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus { z-index: 2; color: #ffffff; background-color: #337ab7; border-color: #337ab7; } .list-group-item.active .<API key>, .list-group-item.active:hover .<API key>, .list-group-item.active:focus .<API key>, .list-group-item.active .<API key> > small, .list-group-item.active:hover .<API key> > small, .list-group-item.active:focus .<API key> > small, .list-group-item.active .<API key> > .small, .list-group-item.active:hover .<API key> > .small, .list-group-item.active:focus .<API key> > .small { color: inherit; } .list-group-item.active .<API key>, .list-group-item.active:hover .<API key>, .list-group-item.active:focus .<API key> { color: #c7ddef; } .<API key> { color: #3c763d; background-color: #dff0d8; } a.<API key>, button.<API key> { color: #3c763d; } a.<API key> .<API key>, button.<API key> .<API key> { color: inherit; } a.<API key>:hover, button.<API key>:hover, a.<API key>:focus, button.<API key>:focus { color: #3c763d; background-color: #d0e9c6; } a.<API key>.active, button.<API key>.active, a.<API key>.active:hover, button.<API key>.active:hover, a.<API key>.active:focus, button.<API key>.active:focus { color: #fff; background-color: #3c763d; border-color: #3c763d; } .<API key> { color: #31708f; background-color: #d9edf7; } a.<API key>, button.<API key> { color: #31708f; } a.<API key> .<API key>, button.<API key> .<API key> { color: inherit; } a.<API key>:hover, button.<API key>:hover, a.<API key>:focus, button.<API key>:focus { color: #31708f; background-color: #c4e3f3; } a.<API key>.active, button.<API key>.active, a.<API key>.active:hover, button.<API key>.active:hover, a.<API key>.active:focus, button.<API key>.active:focus { color: #fff; background-color: #31708f; border-color: #31708f; } .<API key> { color: #8a6d3b; background-color: #fcf8e3; } a.<API key>, button.<API key> { color: #8a6d3b; } a.<API key> .<API key>, button.<API key> .<API key> { color: inherit; } a.<API key>:hover, button.<API key>:hover, a.<API key>:focus, button.<API key>:focus { color: #8a6d3b; background-color: #faf2cc; } a.<API key>.active, button.<API key>.active, a.<API key>.active:hover, button.<API key>.active:hover, a.<API key>.active:focus, button.<API key>.active:focus { color: #fff; background-color: #8a6d3b; border-color: #8a6d3b; } .<API key> { color: #a94442; background-color: #f2dede; } a.<API key>, button.<API key> { color: #a94442; } a.<API key> .<API key>, button.<API key> .<API key> { color: inherit; } a.<API key>:hover, button.<API key>:hover, a.<API key>:focus, button.<API key>:focus { color: #a94442; background-color: #ebcccc; } a.<API key>.active, button.<API key>.active, a.<API key>.active:hover, button.<API key>.active:hover, a.<API key>.active:focus, button.<API key>.active:focus { color: #fff; background-color: #a94442; border-color: #a94442; } .<API key> { margin-top: 0; margin-bottom: 5px; } .<API key> { margin-bottom: 0; line-height: 1.3; } .panel { margin-bottom: 20px; background-color: #ffffff; border: 1px solid transparent; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); } .panel-body { padding: 15px; } .panel-heading { padding: 10px 15px; border-bottom: 1px solid transparent; <API key>: 3px; <API key>: 3px; } .panel-heading > .dropdown .dropdown-toggle { color: inherit; } .panel-title { margin-top: 0; margin-bottom: 0; font-size: 16px; color: inherit; } .panel-title > a, .panel-title > small, .panel-title > .small, .panel-title > small > a, .panel-title > .small > a { color: inherit; } .panel-footer { padding: 10px 15px; background-color: #f5f5f5; border-top: 1px solid #dddddd; <API key>: 3px; <API key>: 3px; } .panel > .list-group, .panel > .panel-collapse > .list-group { margin-bottom: 0; } .panel > .list-group .list-group-item, .panel > .panel-collapse > .list-group .list-group-item { border-width: 1px 0; border-radius: 0; } .panel > .list-group:first-child .list-group-item:first-child, .panel > .panel-collapse > .list-group:first-child .list-group-item:first-child { border-top: 0; <API key>: 3px; <API key>: 3px; } .panel > .list-group:last-child .list-group-item:last-child, .panel > .panel-collapse > .list-group:last-child .list-group-item:last-child { border-bottom: 0; <API key>: 3px; <API key>: 3px; } .panel > .panel-heading + .panel-collapse > .list-group .list-group-item:first-child { <API key>: 0; <API key>: 0; } .panel-heading + .list-group .list-group-item:first-child { border-top-width: 0; } .list-group + .panel-footer { border-top-width: 0; } .panel > .table, .panel > .table-responsive > .table, .panel > .panel-collapse > .table { margin-bottom: 0; } .panel > .table caption, .panel > .table-responsive > .table caption, .panel > .panel-collapse > .table caption { padding-left: 15px; padding-right: 15px; } .panel > .table:first-child, .panel > .table-responsive:first-child > .table:first-child { <API key>: 3px; <API key>: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child { <API key>: 3px; <API key>: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { <API key>: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { <API key>: 3px; } .panel > .table:last-child, .panel > .table-responsive:last-child > .table:last-child { <API key>: 3px; <API key>: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child { <API key>: 3px; <API key>: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { <API key>: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { <API key>: 3px; } .panel > .panel-body + .table, .panel > .panel-body + .table-responsive, .panel > .table + .panel-body, .panel > .table-responsive + .panel-body { border-top: 1px solid #dddddd; } .panel > .table > tbody:first-child > tr:first-child th, .panel > .table > tbody:first-child > tr:first-child td { border-top: 0; } .panel > .table-bordered, .panel > .table-responsive > .table-bordered { border: 0; } .panel > .table-bordered > thead > tr > th:first-child, .panel > .table-responsive > .table-bordered > thead > tr > th:first-child, .panel > .table-bordered > tbody > tr > th:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, .panel > .table-bordered > tfoot > tr > th:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, .panel > .table-bordered > thead > tr > td:first-child, .panel > .table-responsive > .table-bordered > thead > tr > td:first-child, .panel > .table-bordered > tbody > tr > td:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, .panel > .table-bordered > tfoot > tr > td:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .panel > .table-bordered > thead > tr > th:last-child, .panel > .table-responsive > .table-bordered > thead > tr > th:last-child, .panel > .table-bordered > tbody > tr > th:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, .panel > .table-bordered > tfoot > tr > th:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, .panel > .table-bordered > thead > tr > td:last-child, .panel > .table-responsive > .table-bordered > thead > tr > td:last-child, .panel > .table-bordered > tbody > tr > td:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, .panel > .table-bordered > tfoot > tr > td:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .panel > .table-bordered > thead > tr:first-child > td, .panel > .table-responsive > .table-bordered > thead > tr:first-child > td, .panel > .table-bordered > tbody > tr:first-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, .panel > .table-bordered > thead > tr:first-child > th, .panel > .table-responsive > .table-bordered > thead > tr:first-child > th, .panel > .table-bordered > tbody > tr:first-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { border-bottom: 0; } .panel > .table-bordered > tbody > tr:last-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, .panel > .table-bordered > tfoot > tr:last-child > td, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, .panel > .table-bordered > tbody > tr:last-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, .panel > .table-bordered > tfoot > tr:last-child > th, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { border-bottom: 0; } .panel > .table-responsive { border: 0; margin-bottom: 0; } .panel-group { margin-bottom: 20px; } .panel-group .panel { margin-bottom: 0; border-radius: 4px; } .panel-group .panel + .panel { margin-top: 5px; } .panel-group .panel-heading { border-bottom: 0; } .panel-group .panel-heading + .panel-collapse > .panel-body, .panel-group .panel-heading + .panel-collapse > .list-group { border-top: 1px solid #dddddd; } .panel-group .panel-footer { border-top: 0; } .panel-group .panel-footer + .panel-collapse .panel-body { border-bottom: 1px solid #dddddd; } .panel-default { border-color: #dddddd; } .panel-default > .panel-heading { color: #333333; background-color: #f5f5f5; border-color: #dddddd; } .panel-default > .panel-heading + .panel-collapse > .panel-body { border-top-color: #dddddd; } .panel-default > .panel-heading .badge { color: #f5f5f5; background-color: #333333; } .panel-default > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #dddddd; } .panel-primary { border-color: #337ab7; } .panel-primary > .panel-heading { color: #ffffff; background-color: #337ab7; border-color: #337ab7; } .panel-primary > .panel-heading + .panel-collapse > .panel-body { border-top-color: #337ab7; } .panel-primary > .panel-heading .badge { color: #337ab7; background-color: #ffffff; } .panel-primary > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #337ab7; } .panel-success { border-color: #d6e9c6; } .panel-success > .panel-heading { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; } .panel-success > .panel-heading + .panel-collapse > .panel-body { border-top-color: #d6e9c6; } .panel-success > .panel-heading .badge { color: #dff0d8; background-color: #3c763d; } .panel-success > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #d6e9c6; } .panel-info { border-color: #bce8f1; } .panel-info > .panel-heading { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; } .panel-info > .panel-heading + .panel-collapse > .panel-body { border-top-color: #bce8f1; } .panel-info > .panel-heading .badge { color: #d9edf7; background-color: #31708f; } .panel-info > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #bce8f1; } .panel-warning { border-color: #faebcc; } .panel-warning > .panel-heading { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; } .panel-warning > .panel-heading + .panel-collapse > .panel-body { border-top-color: #faebcc; } .panel-warning > .panel-heading .badge { color: #fcf8e3; background-color: #8a6d3b; } .panel-warning > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #faebcc; } .panel-danger { border-color: #ebccd1; } .panel-danger > .panel-heading { color: #a94442; background-color: #f2dede; border-color: #ebccd1; } .panel-danger > .panel-heading + .panel-collapse > .panel-body { border-top-color: #ebccd1; } .panel-danger > .panel-heading .badge { color: #f2dede; background-color: #a94442; } .panel-danger > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #ebccd1; } .embed-responsive { position: relative; display: block; height: 0; padding: 0; overflow: hidden; } .embed-responsive .<API key>, .embed-responsive iframe, .embed-responsive embed, .embed-responsive object, .embed-responsive video { position: absolute; top: 0; left: 0; bottom: 0; height: 100%; width: 100%; border: 0; } .<API key> { padding-bottom: 56.25%; } .<API key> { padding-bottom: 75%; } .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); } .well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, 0.15); } .well-lg { padding: 24px; border-radius: 6px; } .well-sm { padding: 9px; border-radius: 3px; } .close { float: right; font-size: 21px; font-weight: bold; line-height: 1; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.2; filter: alpha(opacity=20); } .close:hover, .close:focus { color: #000000; text-decoration: none; cursor: pointer; opacity: 0.5; filter: alpha(opacity=50); } button.close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; } .modal-open { overflow: hidden; } .modal { display: none; overflow: hidden; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; -<API key>: touch; outline: 0; } .modal.fade .modal-dialog { -webkit-transform: translate(0, -25%); -ms-transform: translate(0, -25%); -o-transform: translate(0, -25%); transform: translate(0, -25%); -webkit-transition: -webkit-transform 0.3s ease-out; -moz-transition: -moz-transform 0.3s ease-out; -o-transition: -o-transform 0.3s ease-out; transition: transform 0.3s ease-out; } .modal.in .modal-dialog { -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); -o-transform: translate(0, 0); transform: translate(0, 0); } .modal-open .modal { overflow-x: hidden; overflow-y: auto; } .modal-dialog { position: relative; width: auto; margin: 10px; } .modal-content { position: relative; background-color: #ffffff; border: 1px solid #999999; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); background-clip: padding-box; outline: 0; } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000000; } .modal-backdrop.fade { opacity: 0; filter: alpha(opacity=0); } .modal-backdrop.in { opacity: 0.5; filter: alpha(opacity=50); } .modal-header { padding: 15px; border-bottom: 1px solid #e5e5e5; } .modal-header .close { margin-top: -2px; } .modal-title { margin: 0; line-height: 1.42857143; } .modal-body { position: relative; padding: 15px; } .modal-footer { padding: 15px; text-align: right; border-top: 1px solid #e5e5e5; } .modal-footer .btn + .btn { margin-left: 5px; margin-bottom: 0; } .modal-footer .btn-group .btn + .btn { margin-left: -1px; } .modal-footer .btn-block + .btn-block { margin-left: 0; } .<API key> { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll; } @media (min-width: 768px) { .modal-dialog { width: 600px; margin: 30px auto; } .modal-content { -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); } .modal-sm { width: 300px; } } @media (min-width: 992px) { .modal-lg { width: 900px; } } .tooltip { position: absolute; z-index: 1070; display: block; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-style: normal; font-weight: normal; letter-spacing: normal; line-break: auto; line-height: 1.42857143; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; white-space: normal; word-break: normal; word-spacing: normal; word-wrap: normal; font-size: 12px; opacity: 0; filter: alpha(opacity=0); } .tooltip.in { opacity: 0.9; filter: alpha(opacity=90); } .tooltip.top { margin-top: -3px; padding: 5px 0; } .tooltip.right { margin-left: 3px; padding: 0 5px; } .tooltip.bottom { margin-top: 3px; padding: 5px 0; } .tooltip.left { margin-left: -3px; padding: 0 5px; } .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #ffffff; text-align: center; background-color: #000000; border-radius: 4px; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-width: 5px 5px 0; border-top-color: #000000; } .tooltip.top-left .tooltip-arrow { bottom: 0; right: 5px; margin-bottom: -5px; border-width: 5px 5px 0; border-top-color: #000000; } .tooltip.top-right .tooltip-arrow { bottom: 0; left: 5px; margin-bottom: -5px; border-width: 5px 5px 0; border-top-color: #000000; } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-width: 5px 5px 5px 0; border-right-color: #000000; } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-width: 5px 0 5px 5px; border-left-color: #000000; } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-width: 0 5px 5px; border-bottom-color: #000000; } .tooltip.bottom-left .tooltip-arrow { top: 0; right: 5px; margin-top: -5px; border-width: 0 5px 5px; border-bottom-color: #000000; } .tooltip.bottom-right .tooltip-arrow { top: 0; left: 5px; margin-top: -5px; border-width: 0 5px 5px; border-bottom-color: #000000; } .popover { position: absolute; top: 0; left: 0; z-index: 1060; display: none; max-width: 276px; padding: 1px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-style: normal; font-weight: normal; letter-spacing: normal; line-break: auto; line-height: 1.42857143; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; white-space: normal; word-break: normal; word-spacing: normal; word-wrap: normal; font-size: 14px; background-color: #ffffff; background-clip: padding-box; border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); } .popover.top { margin-top: -10px; } .popover.right { margin-left: 10px; } .popover.bottom { margin-top: 10px; } .popover.left { margin-left: -10px; } .popover-title { margin: 0; padding: 8px 14px; font-size: 14px; background-color: #f7f7f7; border-bottom: 1px solid #ebebeb; border-radius: 5px 5px 0 0; } .popover-content { padding: 9px 14px; } .popover > .arrow, .popover > .arrow:after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; } .popover > .arrow { border-width: 11px; } .popover > .arrow:after { border-width: 10px; content: ""; } .popover.top > .arrow { left: 50%; margin-left: -11px; border-bottom-width: 0; border-top-color: #999999; border-top-color: rgba(0, 0, 0, 0.25); bottom: -11px; } .popover.top > .arrow:after { content: " "; bottom: 1px; margin-left: -10px; border-bottom-width: 0; border-top-color: #ffffff; } .popover.right > .arrow { top: 50%; left: -11px; margin-top: -11px; border-left-width: 0; border-right-color: #999999; border-right-color: rgba(0, 0, 0, 0.25); } .popover.right > .arrow:after { content: " "; left: 1px; bottom: -10px; border-left-width: 0; border-right-color: #ffffff; } .popover.bottom > .arrow { left: 50%; margin-left: -11px; border-top-width: 0; border-bottom-color: #999999; border-bottom-color: rgba(0, 0, 0, 0.25); top: -11px; } .popover.bottom > .arrow:after { content: " "; top: 1px; margin-left: -10px; border-top-width: 0; border-bottom-color: #ffffff; } .popover.left > .arrow { top: 50%; right: -11px; margin-top: -11px; border-right-width: 0; border-left-color: #999999; border-left-color: rgba(0, 0, 0, 0.25); } .popover.left > .arrow:after { content: " "; right: 1px; border-right-width: 0; border-left-color: #ffffff; bottom: -10px; } .carousel { position: relative; } .carousel-inner { position: relative; overflow: hidden; width: 100%; } .carousel-inner > .item { display: none; position: relative; -webkit-transition: 0.6s ease-in-out left; -o-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } .carousel-inner > .item > img, .carousel-inner > .item > a > img { line-height: 1; } @media all and (transform-3d), (-webkit-transform-3d) { .carousel-inner > .item { -webkit-transition: -webkit-transform 0.6s ease-in-out; -moz-transition: -moz-transform 0.6s ease-in-out; -o-transition: -o-transform 0.6s ease-in-out; transition: transform 0.6s ease-in-out; -<API key>: hidden; -<API key>: hidden; backface-visibility: hidden; -webkit-perspective: 1000px; -moz-perspective: 1000px; perspective: 1000px; } .carousel-inner > .item.next, .carousel-inner > .item.active.right { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); left: 0; } .carousel-inner > .item.prev, .carousel-inner > .item.active.left { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); left: 0; } .carousel-inner > .item.next.left, .carousel-inner > .item.prev.right, .carousel-inner > .item.active { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); left: 0; } } .carousel-inner > .active, .carousel-inner > .next, .carousel-inner > .prev { display: block; } .carousel-inner > .active { left: 0; } .carousel-inner > .next, .carousel-inner > .prev { position: absolute; top: 0; width: 100%; } .carousel-inner > .next { left: 100%; } .carousel-inner > .prev { left: -100%; } .carousel-inner > .next.left, .carousel-inner > .prev.right { left: 0; } .carousel-inner > .active.left { left: -100%; } .carousel-inner > .active.right { left: 100%; } .carousel-control { position: absolute; top: 0; left: 0; bottom: 0; width: 15%; opacity: 0.5; filter: alpha(opacity=50); font-size: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); background-color: rgba(0, 0, 0, 0); } .carousel-control.left { background-image: -<API key>(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); } .carousel-control.right { left: auto; right: 0; background-image: -<API key>(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); } .carousel-control:hover, .carousel-control:focus { outline: 0; color: #ffffff; text-decoration: none; opacity: 0.9; filter: alpha(opacity=90); } .carousel-control .icon-prev, .carousel-control .icon-next, .carousel-control .<API key>, .carousel-control .<API key> { position: absolute; top: 50%; margin-top: -10px; z-index: 5; display: inline-block; } .carousel-control .icon-prev, .carousel-control .<API key> { left: 50%; margin-left: -10px; } .carousel-control .icon-next, .carousel-control .<API key> { right: 50%; margin-right: -10px; } .carousel-control .icon-prev, .carousel-control .icon-next { width: 20px; height: 20px; line-height: 1; font-family: serif; } .carousel-control .icon-prev:before { content: '\2039'; } .carousel-control .icon-next:before { content: '\203a'; } .carousel-indicators { position: absolute; bottom: 10px; left: 50%; z-index: 15; width: 60%; margin-left: -30%; padding-left: 0; list-style: none; text-align: center; } .carousel-indicators li { display: inline-block; width: 10px; height: 10px; margin: 1px; text-indent: -999px; border: 1px solid #ffffff; border-radius: 10px; cursor: pointer; background-color: #000 \9; background-color: rgba(0, 0, 0, 0); } .carousel-indicators .active { margin: 0; width: 12px; height: 12px; background-color: #ffffff; } .carousel-caption { position: absolute; left: 15%; right: 15%; bottom: 20px; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } .carousel-caption .btn { text-shadow: none; } @media screen and (min-width: 768px) { .carousel-control .<API key>, .carousel-control .<API key>, .carousel-control .icon-prev, .carousel-control .icon-next { width: 30px; height: 30px; margin-top: -10px; font-size: 30px; } .carousel-control .<API key>, .carousel-control .icon-prev { margin-left: -10px; } .carousel-control .<API key>, .carousel-control .icon-next { margin-right: -10px; } .carousel-caption { left: 20%; right: 20%; padding-bottom: 30px; } .carousel-indicators { bottom: 20px; } } .clearfix:before, .clearfix:after, .dl-horizontal dd:before, .dl-horizontal dd:after, .container:before, .container:after, .container-fluid:before, .container-fluid:after, .row:before, .row:after, .form-horizontal .form-group:before, .form-horizontal .form-group:after, .btn-toolbar:before, .btn-toolbar:after, .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after, .nav:before, .nav:after, .navbar:before, .navbar:after, .navbar-header:before, .navbar-header:after, .navbar-collapse:before, .navbar-collapse:after, .pager:before, .pager:after, .panel-body:before, .panel-body:after, .modal-header:before, .modal-header:after, .modal-footer:before, .modal-footer:after { content: " "; display: table; } .clearfix:after, .dl-horizontal dd:after, .container:after, .container-fluid:after, .row:after, .form-horizontal .form-group:after, .btn-toolbar:after, .btn-group-vertical > .btn-group:after, .nav:after, .navbar:after, .navbar-header:after, .navbar-collapse:after, .pager:after, .panel-body:after, .modal-header:after, .modal-footer:after { clear: both; } .center-block { display: block; margin-left: auto; margin-right: auto; } .pull-right { float: right !important; } .pull-left { float: left !important; } .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .hidden { display: none !important; } .affix { position: fixed; } @-ms-viewport { width: device-width; } .visible-xs, .visible-sm, .visible-md, .visible-lg { display: none !important; } .visible-xs-block, .visible-xs-inline, .<API key>, .visible-sm-block, .visible-sm-inline, .<API key>, .visible-md-block, .visible-md-inline, .<API key>, .visible-lg-block, .visible-lg-inline, .<API key> { display: none !important; } @media (max-width: 767px) { .visible-xs { display: block !important; } table.visible-xs { display: table !important; } tr.visible-xs { display: table-row !important; } th.visible-xs, td.visible-xs { display: table-cell !important; } } @media (max-width: 767px) { .visible-xs-block { display: block !important; } } @media (max-width: 767px) { .visible-xs-inline { display: inline !important; } } @media (max-width: 767px) { .<API key> { display: inline-block !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm { display: block !important; } table.visible-sm { display: table !important; } tr.visible-sm { display: table-row !important; } th.visible-sm, td.visible-sm { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm-block { display: block !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm-inline { display: inline !important; } } @media (min-width: 768px) and (max-width: 991px) { .<API key> { display: inline-block !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md { display: block !important; } table.visible-md { display: table !important; } tr.visible-md { display: table-row !important; } th.visible-md, td.visible-md { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md-block { display: block !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md-inline { display: inline !important; } } @media (min-width: 992px) and (max-width: 1199px) { .<API key> { display: inline-block !important; } } @media (min-width: 1200px) { .visible-lg { display: block !important; } table.visible-lg { display: table !important; } tr.visible-lg { display: table-row !important; } th.visible-lg, td.visible-lg { display: table-cell !important; } } @media (min-width: 1200px) { .visible-lg-block { display: block !important; } } @media (min-width: 1200px) { .visible-lg-inline { display: inline !important; } } @media (min-width: 1200px) { .<API key> { display: inline-block !important; } } @media (max-width: 767px) { .hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-lg { display: none !important; } } .visible-print { display: none !important; } @media print { .visible-print { display: block !important; } table.visible-print { display: table !important; } tr.visible-print { display: table-row !important; } th.visible-print, td.visible-print { display: table-cell !important; } } .visible-print-block { display: none !important; } @media print { .visible-print-block { display: block !important; } } .<API key> { display: none !important; } @media print { .<API key> { display: inline !important; } } .<API key> { display: none !important; } @media print { .<API key> { display: inline-block !important; } } @media print { .hidden-print { display: none !important; } } .bootstrap-time { width: 100%; } .bootstrap-time select { display: inline-block; width: auto; } .bootstrap-date { width: 100%; } .bootstrap-date select { display: inline-block; width: auto; margin-right: 5px; } .bootstrap-datetime .bootstrap-time, .bootstrap-datetime .bootstrap-date { display: inline-block; width: auto; } .form-group .bc-collection { margin-bottom: 0; } .form-group .bc-collection li + li { margin-top: 10px; } .form-group .bc-collection li:nth-last-child(1) { margin-bottom: 10px; } .form-inline .form-group { margin-left: 0; margin-right: 0; } .form-horizontal .col-lg-1 .col-1, .form-horizontal .col-lg-2 .col-1, .form-horizontal .col-lg-3 .col-1, .form-horizontal .col-lg-4 .col-1, .form-horizontal .col-lg-5 .col-1, .form-horizontal .col-lg-6 .col-1, .form-horizontal .col-lg-7 .col-1, .form-horizontal .col-lg-8 .col-1, .form-horizontal .col-lg-9 .col-1, .form-horizontal .col-lg-10 .col-1, .form-horizontal .col-lg-11 .col-1, .form-horizontal .col-lg12 .col-1, .form-horizontal .col-lg-1 .col-2, .form-horizontal .col-lg-2 .col-2, .form-horizontal .col-lg-3 .col-2, .form-horizontal .col-lg-4 .col-2, .form-horizontal .col-lg-5 .col-2, .form-horizontal .col-lg-6 .col-2, .form-horizontal .col-lg-7 .col-2, .form-horizontal .col-lg-8 .col-2, .form-horizontal .col-lg-9 .col-2, .form-horizontal .col-lg-10 .col-2, .form-horizontal .col-lg-11 .col-2, .form-horizontal .col-lg12 .col-2, .form-horizontal .col-lg-1 .col-3, .form-horizontal .col-lg-2 .col-3, .form-horizontal .col-lg-3 .col-3, .form-horizontal .col-lg-4 .col-3, .form-horizontal .col-lg-5 .col-3, .form-horizontal .col-lg-6 .col-3, .form-horizontal .col-lg-7 .col-3, .form-horizontal .col-lg-8 .col-3, .form-horizontal .col-lg-9 .col-3, .form-horizontal .col-lg-10 .col-3, .form-horizontal .col-lg-11 .col-3, .form-horizontal .col-lg12 .col-3, .form-horizontal .col-lg-1 .col-4, .form-horizontal .col-lg-2 .col-4, .form-horizontal .col-lg-3 .col-4, .form-horizontal .col-lg-4 .col-4, .form-horizontal .col-lg-5 .col-4, .form-horizontal .col-lg-6 .col-4, .form-horizontal .col-lg-7 .col-4, .form-horizontal .col-lg-8 .col-4, .form-horizontal .col-lg-9 .col-4, .form-horizontal .col-lg-10 .col-4, .form-horizontal .col-lg-11 .col-4, .form-horizontal .col-lg12 .col-4, .form-horizontal .col-lg-1 .col-5, .form-horizontal .col-lg-2 .col-5, .form-horizontal .col-lg-3 .col-5, .form-horizontal .col-lg-4 .col-5, .form-horizontal .col-lg-5 .col-5, .form-horizontal .col-lg-6 .col-5, .form-horizontal .col-lg-7 .col-5, .form-horizontal .col-lg-8 .col-5, .form-horizontal .col-lg-9 .col-5, .form-horizontal .col-lg-10 .col-5, .form-horizontal .col-lg-11 .col-5, .form-horizontal .col-lg12 .col-5, .form-horizontal .col-lg-1 .col-6, .form-horizontal .col-lg-2 .col-6, .form-horizontal .col-lg-3 .col-6, .form-horizontal .col-lg-4 .col-6, .form-horizontal .col-lg-5 .col-6, .form-horizontal .col-lg-6 .col-6, .form-horizontal .col-lg-7 .col-6, .form-horizontal .col-lg-8 .col-6, .form-horizontal .col-lg-9 .col-6, .form-horizontal .col-lg-10 .col-6, .form-horizontal .col-lg-11 .col-6, .form-horizontal .col-lg12 .col-6, .form-horizontal .col-lg-1 .col-7, .form-horizontal .col-lg-2 .col-7, .form-horizontal .col-lg-3 .col-7, .form-horizontal .col-lg-4 .col-7, .form-horizontal .col-lg-5 .col-7, .form-horizontal .col-lg-6 .col-7, .form-horizontal .col-lg-7 .col-7, .form-horizontal .col-lg-8 .col-7, .form-horizontal .col-lg-9 .col-7, .form-horizontal .col-lg-10 .col-7, .form-horizontal .col-lg-11 .col-7, .form-horizontal .col-lg12 .col-7, .form-horizontal .col-lg-1 .col-8, .form-horizontal .col-lg-2 .col-8, .form-horizontal .col-lg-3 .col-8, .form-horizontal .col-lg-4 .col-8, .form-horizontal .col-lg-5 .col-8, .form-horizontal .col-lg-6 .col-8, .form-horizontal .col-lg-7 .col-8, .form-horizontal .col-lg-8 .col-8, .form-horizontal .col-lg-9 .col-8, .form-horizontal .col-lg-10 .col-8, .form-horizontal .col-lg-11 .col-8, .form-horizontal .col-lg12 .col-8, .form-horizontal .col-lg-1 .col-9, .form-horizontal .col-lg-2 .col-9, .form-horizontal .col-lg-3 .col-9, .form-horizontal .col-lg-4 .col-9, .form-horizontal .col-lg-5 .col-9, .form-horizontal .col-lg-6 .col-9, .form-horizontal .col-lg-7 .col-9, .form-horizontal .col-lg-8 .col-9, .form-horizontal .col-lg-9 .col-9, .form-horizontal .col-lg-10 .col-9, .form-horizontal .col-lg-11 .col-9, .form-horizontal .col-lg12 .col-9, .form-horizontal .col-lg-1 .col-10, .form-horizontal .col-lg-2 .col-10, .form-horizontal .col-lg-3 .col-10, .form-horizontal .col-lg-4 .col-10, .form-horizontal .col-lg-5 .col-10, .form-horizontal .col-lg-6 .col-10, .form-horizontal .col-lg-7 .col-10, .form-horizontal .col-lg-8 .col-10, .form-horizontal .col-lg-9 .col-10, .form-horizontal .col-lg-10 .col-10, .form-horizontal .col-lg-11 .col-10, .form-horizontal .col-lg12 .col-10, .form-horizontal .col-lg-1 .col-11, .form-horizontal .col-lg-2 .col-11, .form-horizontal .col-lg-3 .col-11, .form-horizontal .col-lg-4 .col-11, .form-horizontal .col-lg-5 .col-11, .form-horizontal .col-lg-6 .col-11, .form-horizontal .col-lg-7 .col-11, .form-horizontal .col-lg-8 .col-11, .form-horizontal .col-lg-9 .col-11, .form-horizontal .col-lg-10 .col-11, .form-horizontal .col-lg-11 .col-11, .form-horizontal .col-lg12 .col-11, .form-horizontal .col-lg-1 .col-12, .form-horizontal .col-lg-2 .col-12, .form-horizontal .col-lg-3 .col-12, .form-horizontal .col-lg-4 .col-12, .form-horizontal .col-lg-5 .col-12, .form-horizontal .col-lg-6 .col-12, .form-horizontal .col-lg-7 .col-12, .form-horizontal .col-lg-8 .col-12, .form-horizontal .col-lg-9 .col-12, .form-horizontal .col-lg-10 .col-12, .form-horizontal .col-lg-11 .col-12, .form-horizontal .col-lg12 .col-12, .form-horizontal .col-lg-1 .col-sm-1, .form-horizontal .col-lg-2 .col-sm-1, .form-horizontal .col-lg-3 .col-sm-1, .form-horizontal .col-lg-4 .col-sm-1, .form-horizontal .col-lg-5 .col-sm-1, .form-horizontal .col-lg-6 .col-sm-1, .form-horizontal .col-lg-7 .col-sm-1, .form-horizontal .col-lg-8 .col-sm-1, .form-horizontal .col-lg-9 .col-sm-1, .form-horizontal .col-lg-10 .col-sm-1, .form-horizontal .col-lg-11 .col-sm-1, .form-horizontal .col-lg12 .col-sm-1, .form-horizontal .col-lg-1 .col-sm-2, .form-horizontal .col-lg-2 .col-sm-2, .form-horizontal .col-lg-3 .col-sm-2, .form-horizontal .col-lg-4 .col-sm-2, .form-horizontal .col-lg-5 .col-sm-2, .form-horizontal .col-lg-6 .col-sm-2, .form-horizontal .col-lg-7 .col-sm-2, .form-horizontal .col-lg-8 .col-sm-2, .form-horizontal .col-lg-9 .col-sm-2, .form-horizontal .col-lg-10 .col-sm-2, .form-horizontal .col-lg-11 .col-sm-2, .form-horizontal .col-lg12 .col-sm-2, .form-horizontal .col-lg-1 .col-sm-3, .form-horizontal .col-lg-2 .col-sm-3, .form-horizontal .col-lg-3 .col-sm-3, .form-horizontal .col-lg-4 .col-sm-3, .form-horizontal .col-lg-5 .col-sm-3, .form-horizontal .col-lg-6 .col-sm-3, .form-horizontal .col-lg-7 .col-sm-3, .form-horizontal .col-lg-8 .col-sm-3, .form-horizontal .col-lg-9 .col-sm-3, .form-horizontal .col-lg-10 .col-sm-3, .form-horizontal .col-lg-11 .col-sm-3, .form-horizontal .col-lg12 .col-sm-3, .form-horizontal .col-lg-1 .col-sm-4, .form-horizontal .col-lg-2 .col-sm-4, .form-horizontal .col-lg-3 .col-sm-4, .form-horizontal .col-lg-4 .col-sm-4, .form-horizontal .col-lg-5 .col-sm-4, .form-horizontal .col-lg-6 .col-sm-4, .form-horizontal .col-lg-7 .col-sm-4, .form-horizontal .col-lg-8 .col-sm-4, .form-horizontal .col-lg-9 .col-sm-4, .form-horizontal .col-lg-10 .col-sm-4, .form-horizontal .col-lg-11 .col-sm-4, .form-horizontal .col-lg12 .col-sm-4, .form-horizontal .col-lg-1 .col-sm-5, .form-horizontal .col-lg-2 .col-sm-5, .form-horizontal .col-lg-3 .col-sm-5, .form-horizontal .col-lg-4 .col-sm-5, .form-horizontal .col-lg-5 .col-sm-5, .form-horizontal .col-lg-6 .col-sm-5, .form-horizontal .col-lg-7 .col-sm-5, .form-horizontal .col-lg-8 .col-sm-5, .form-horizontal .col-lg-9 .col-sm-5, .form-horizontal .col-lg-10 .col-sm-5, .form-horizontal .col-lg-11 .col-sm-5, .form-horizontal .col-lg12 .col-sm-5, .form-horizontal .col-lg-1 .col-sm-6, .form-horizontal .col-lg-2 .col-sm-6, .form-horizontal .col-lg-3 .col-sm-6, .form-horizontal .col-lg-4 .col-sm-6, .form-horizontal .col-lg-5 .col-sm-6, .form-horizontal .col-lg-6 .col-sm-6, .form-horizontal .col-lg-7 .col-sm-6, .form-horizontal .col-lg-8 .col-sm-6, .form-horizontal .col-lg-9 .col-sm-6, .form-horizontal .col-lg-10 .col-sm-6, .form-horizontal .col-lg-11 .col-sm-6, .form-horizontal .col-lg12 .col-sm-6, .form-horizontal .col-lg-1 .col-sm-7, .form-horizontal .col-lg-2 .col-sm-7, .form-horizontal .col-lg-3 .col-sm-7, .form-horizontal .col-lg-4 .col-sm-7, .form-horizontal .col-lg-5 .col-sm-7, .form-horizontal .col-lg-6 .col-sm-7, .form-horizontal .col-lg-7 .col-sm-7, .form-horizontal .col-lg-8 .col-sm-7, .form-horizontal .col-lg-9 .col-sm-7, .form-horizontal .col-lg-10 .col-sm-7, .form-horizontal .col-lg-11 .col-sm-7, .form-horizontal .col-lg12 .col-sm-7, .form-horizontal .col-lg-1 .col-sm-8, .form-horizontal .col-lg-2 .col-sm-8, .form-horizontal .col-lg-3 .col-sm-8, .form-horizontal .col-lg-4 .col-sm-8, .form-horizontal .col-lg-5 .col-sm-8, .form-horizontal .col-lg-6 .col-sm-8, .form-horizontal .col-lg-7 .col-sm-8, .form-horizontal .col-lg-8 .col-sm-8, .form-horizontal .col-lg-9 .col-sm-8, .form-horizontal .col-lg-10 .col-sm-8, .form-horizontal .col-lg-11 .col-sm-8, .form-horizontal .col-lg12 .col-sm-8, .form-horizontal .col-lg-1 .col-sm-9, .form-horizontal .col-lg-2 .col-sm-9, .form-horizontal .col-lg-3 .col-sm-9, .form-horizontal .col-lg-4 .col-sm-9, .form-horizontal .col-lg-5 .col-sm-9, .form-horizontal .col-lg-6 .col-sm-9, .form-horizontal .col-lg-7 .col-sm-9, .form-horizontal .col-lg-8 .col-sm-9, .form-horizontal .col-lg-9 .col-sm-9, .form-horizontal .col-lg-10 .col-sm-9, .form-horizontal .col-lg-11 .col-sm-9, .form-horizontal .col-lg12 .col-sm-9, .form-horizontal .col-lg-1 .col-sm-10, .form-horizontal .col-lg-2 .col-sm-10, .form-horizontal .col-lg-3 .col-sm-10, .form-horizontal .col-lg-4 .col-sm-10, .form-horizontal .col-lg-5 .col-sm-10, .form-horizontal .col-lg-6 .col-sm-10, .form-horizontal .col-lg-7 .col-sm-10, .form-horizontal .col-lg-8 .col-sm-10, .form-horizontal .col-lg-9 .col-sm-10, .form-horizontal .col-lg-10 .col-sm-10, .form-horizontal .col-lg-11 .col-sm-10, .form-horizontal .col-lg12 .col-sm-10, .form-horizontal .col-lg-1 .col-sm-11, .form-horizontal .col-lg-2 .col-sm-11, .form-horizontal .col-lg-3 .col-sm-11, .form-horizontal .col-lg-4 .col-sm-11, .form-horizontal .col-lg-5 .col-sm-11, .form-horizontal .col-lg-6 .col-sm-11, .form-horizontal .col-lg-7 .col-sm-11, .form-horizontal .col-lg-8 .col-sm-11, .form-horizontal .col-lg-9 .col-sm-11, .form-horizontal .col-lg-10 .col-sm-11, .form-horizontal .col-lg-11 .col-sm-11, .form-horizontal .col-lg12 .col-sm-11, .form-horizontal .col-lg-1 .col-sm-12, .form-horizontal .col-lg-2 .col-sm-12, .form-horizontal .col-lg-3 .col-sm-12, .form-horizontal .col-lg-4 .col-sm-12, .form-horizontal .col-lg-5 .col-sm-12, .form-horizontal .col-lg-6 .col-sm-12, .form-horizontal .col-lg-7 .col-sm-12, .form-horizontal .col-lg-8 .col-sm-12, .form-horizontal .col-lg-9 .col-sm-12, .form-horizontal .col-lg-10 .col-sm-12, .form-horizontal .col-lg-11 .col-sm-12, .form-horizontal .col-lg12 .col-sm-12 { padding-left: 0; } form .has-error ul.help-block { list-style: none; padding-left: 0; } form .alert ul { list-style: none; padding-left: 0; }
package org.sd.token; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.TreeSet; import org.sd.nlp.NormalizedString; /** * An nlp.NormalizedString implementation based on this package's tokenization. * <p> * @author Spence Koehler */ public class <API key> implements NormalizedString { private <API key> normalizer; private StandardTokenizer tokenizer; private boolean lowerCaseFlag; private boolean computed; private Normalization _normalization; /** * Construct with default case-sensitive settings. */ public <API key>(String string) { this(<API key>.<API key>, new StandardTokenizer(string, <API key>.<API key>), false); } /** * Construct with the given settings. */ public <API key>(<API key> normalizer, StandardTokenizer tokenizer, boolean lowerCaseFlag) { this.normalizer = normalizer; this.tokenizer = tokenizer; this.lowerCaseFlag = lowerCaseFlag; this.computed = false; reset(); } public StandardTokenizer getTokenizer() { return tokenizer; } public void setLowerCaseFlag(boolean lowerCaseFlag) { if (lowerCaseFlag != this.lowerCaseFlag) { this.lowerCaseFlag = lowerCaseFlag; reset(); } } public boolean getLowerCaseFlag() { return lowerCaseFlag; } /** * Set a flag indicating whether to split on camel-casing. */ public void setSplitOnCamelCase(boolean splitOnCamelCase) { final Break curBreak = tokenizer.getOptions().getLowerUpperBreak(); final Break nextBreak = splitOnCamelCase ? Break.<API key> : Break.NO_BREAK; if (curBreak != nextBreak) { final <API key> newOptions = new <API key>(tokenizer.getOptions()); newOptions.setLowerUpperBreak(nextBreak); this.tokenizer = new StandardTokenizer(tokenizer.getText(), newOptions); reset(); } } private final void reset() { this.computed = false; } /** * Get the flag indicating whether to split on camel-casing. */ public boolean getSplitOnCamelCase() { return tokenizer.getOptions().getLowerUpperBreak() != Break.NO_BREAK; } /** * Get the length of the normalized string. */ public int getNormalizedLength() { return getNormalized().length(); } /** * Get the normalized string. * <p> * Note that the normalized string may apply to only a portion of the full * original string. */ public String getNormalized() { return getNormalization().getNormalized(); } public String toString() { return getNormalized(); } /** * Get the normalized string from the start (inclusive) to end (exclusive). * <p> * Note that the normalized string may apply to only a portion of the full * original string. */ public String getNormalized(int startPos, int endPos) { return getNormalized().substring(startPos, endPos); } /** * Get the original string that applies to the normalized string. */ public String getOriginal() { return tokenizer.getText(); } /** * Get the original string that applies to the normalized string from the * given index for the given number of normalized characters. */ public String getOriginal(int <API key>, int normalizedLength) { final int origStartIdx = getOriginalIndex(<API key>); final int origEndIdx = getOriginalIndex(<API key> + normalizedLength); return getOriginal().substring(origStartIdx, origEndIdx); } /** * Get the index in the original string corresponding to the normalized index. */ public int getOriginalIndex(int normalizedIndex) { final Integer result = getNormalization().getOriginalIndex(normalizedIndex); return result == null ? -1 : result; } /** * Get a new normalized string for the portion of this normalized string * preceding the normalized start index (exclusive). Remove extra whitespace * at the end of the returned string. Ensure that the returned string ends * on an end token boundary. * * @return the preceding normalized string or null if empty (after skipping white). */ public NormalizedString getPreceding(int <API key>) { return getPreceding(<API key>, true); } /** * Get a new normalized string for the portion of this normalized string * preceding the normalized start index (exclusive). Remove extra whitespace * at the end of the returned string. * * @param <API key> a token start position in the normalized string beyond the result * @param checkEndBreak when true, skip back over non breaking chars to ensure result ends at a break. * * @return the preceding normalized string or null if empty (after skipping white). */ public NormalizedString getPreceding(int <API key>, boolean checkEndBreak) { NormalizedString result = null; final int origIdx = getOriginalIndex(<API key>); if (origIdx >= 0) { final Token token = tokenizer.getToken(origIdx); if (token != null) { final String priorText = checkEndBreak ? tokenizer.getPriorText(token) : tokenizer.getText().substring(0, token.getStartIndex()).trim(); if (!"".equals(priorText)) { result = normalizer.normalize(priorText); } } } return result; } /** * Find the (normalized) index of the nth token preceding the normalizedPos. * <p> * If normalizedPos is -1, start from the end of the string. * If the beginning of the string is fewer than numTokens prior to normalizedPos, * return the beginning of the string. */ public int getPrecedingIndex(int normalizedPos, int numTokens) { int result = normalizedPos < 0 ? getNormalization().getNormalizedLength() : normalizedPos; // skip back to the numTokens-th start break. int numStarts = 0; for (; result > 0 && numStarts < numTokens; result = <API key>(result)) { ++numStarts; } return result; } /** * Find the start of the token before the normalizedPos. * <p> * If normalizedPos is at a token start, the prior token (or -1 if there is * no prior token) will be returned; otherwise, the start of the token of * which normalizedPos is a part will be returned. */ public int <API key>(int normalizedPos) { final Integer priorStart = getNormalization().getBreaks().lower(normalizedPos); return priorStart == null ? -1 : priorStart; } /** * Get a new normalized string for the portion of this normalized string * following the normalized start index (inclusive). Remove extra whitespace * at the beginning of the returned string. * * @return the following normalized string or null if empty (after skipping white). */ public NormalizedString getRemaining(int <API key>) { NormalizedString result = null; final int origIdx = getOriginalIndex(<API key>); if (origIdx >= 0) { final String origText = tokenizer.getText(); final int origLen = origText.length(); if (origIdx < origLen) { final String remainingText = origText.substring(origIdx).trim(); if (!"".equals(remainingText)) { result = normalizer.normalize(remainingText); } } } return result; } /** * Build a normalized string from this using the given normalized index range. */ public NormalizedString <API key>(int <API key>, int normalizedEndIndex) { NormalizedString result = null; final int origStartIdx = getOriginalIndex(<API key>); if (origStartIdx >= 0) { final int origEndIdx = getOriginalIndex(normalizedEndIndex); if (origEndIdx > origStartIdx) { final String origText = tokenizer.getText(); final int origLen = origText.length(); if (origStartIdx < origLen) { final String string = origText.substring(origStartIdx, Math.min(origEndIdx, origLen)); result = normalizer.normalize(string); } } } return result; } /** * Lowercase the normalized form in this instance. * * @return this instance. */ public NormalizedString toLowerCase() { getNormalization().toLowerCase(); return this; } /** * Get the normalized string's chars. */ public char[] getNormalizedChars() { return getNormalization().getNormalizedChars(); } /** * Get the normalized char at the given (normalized) index. * <p> * NOTE: Bounds checking is left up to the caller. */ public char getNormalizedChar(int index) { return getNormalization().getNormalizedChars()[index]; } /** * Get the original code point corresponding to the normalized char at the * (normalized) index. * <p> * NOTE: Bounds checking is left up to the caller. */ public int <API key>(int nIndex) { int result = 0; final int origIdx = getOriginalIndex(nIndex); if (origIdx >= 0) { final String origText = tokenizer.getText(); final int origLen = origText.length(); if (origIdx < origLen) { result = origText.codePointAt(origIdx); } } return result; } /** * Determine whether the original character corresponding to the normalized * index is a letter or digit. */ public boolean isLetterOrDigit(int nIndex) { return Character.isLetterOrDigit(<API key>(nIndex)); } /** * Get the ORIGINAL index of the first symbol (non-letter, digit, or white * character) prior to the NORMALIZED index in the full original string. * * @return -1 if no symbol is found or the index of the found symbol in the * original input string. */ public int <API key>(int nIndex) { int result = -1; final int origIdx = getOriginalIndex(nIndex); if (origIdx >= 0) { final String origText = tokenizer.getText(); final int origLen = origText.length(); for (result = Math.min(origIdx, origLen) - 1; result >= 0; --result) { final int cp = origText.codePointAt(result); if (cp != ' ' && !Character.isLetterOrDigit(cp)) break; } } return result; } /** * Determine whether the normalized string has a digit between the normalized * start (inclusive) and end (exclusive). */ public boolean hasDigit(int nStartIndex, int nEndIndex) { boolean result = false; final char[] nchars = getNormalization().getNormalizedChars(); nEndIndex = Math.min(nEndIndex, nchars.length); for (int idx = Math.max(nStartIndex, 0); idx < nEndIndex; ++idx) { final char c = nchars[idx]; if (c <= '9' && c >= '0') { result = true; break; } } return result; } /** * Count the number of normalized words in the given range. */ public int numWords(int nStartIndex, int nEndIndex) { int result = 0; final Normalization normalization = getNormalization(); final TreeSet<Integer> breaks = normalization.getBreaks(); final int nLen = normalization.getNormalizedLength(); nEndIndex = Math.min(nEndIndex, nLen); for (int idx = Math.max(nStartIndex, 0); idx < nEndIndex && idx >= 0; idx = breaks.higher(idx)) { if (idx == nEndIndex - 1) break; // nEndIdex as at the beginning of a word -- doesn't count ++result; } return result; } /** * Determine whether there is a break before the normalized startIndex. */ public boolean isStartBreak(int startIndex) { return getNormalization().isBreak(startIndex - 1); } /** * Determine whether there is a break after the normalized endIndex. */ public boolean isEndBreak(int endIndex) { return getNormalization().isBreak(endIndex + 1); } /** * Get (first) the normalized index that best corresponds to the original index. */ public int getNormalizedIndex(int originalIndex) { return getNormalization().getNormalizedIndex(originalIndex); } /** * Split into normalized token strings. */ public String[] split() { return getNormalization().getNormalized().split("\\s+"); } /** * Split into normalized token strings, removing stopwords. */ public String[] split(Set<String> stopwords) { final List<String> result = new ArrayList<String>(); for (NormalizedToken token = getToken(0, true); token != null; token = token.getNext(true)) { final String ntoken = token.getNormalized(); if (stopwords == null || !stopwords.contains(ntoken)) { result.add(ntoken); } } return result.toArray(new String[result.size()]); } /** * Split this normalized string into tokens. */ public NormalizedToken[] tokenize() { final List<NormalizedToken> result = new ArrayList<NormalizedToken>(); for (NormalizedToken token = getToken(0, true); token != null; token = token.getNext(true)) { result.add(token); } return result.toArray(new NormalizedToken[result.size()]); } /** * Get the token starting from the start position, optionally skipping to a * start break first. * * @return the token or null if there are no tokens to get. */ public NormalizedToken getToken(int startPos, boolean skipToBreak) { NormalizedToken result = null; startPos = getTokenStart(startPos, skipToBreak); if (startPos < getNormalization().getNormalizedLength()) { final int endPos = getTokenEnd(startPos); result = new NormalizedToken(this, startPos, endPos); } return result; } /** * Get the token after the given token, optionally skipping to a start * break first. */ public NormalizedToken getNextToken(NormalizedToken curToken, boolean skipToBreak) { NormalizedToken result = null; if (curToken != null) { final Normalization normalization = getNormalization(); final TreeSet<Integer> breaks = normalization.getBreaks(); final int nLen = normalization.getNormalizedLength(); int curEndPos = curToken.getEndPos(); if (skipToBreak && !normalization.isBreak(curEndPos)) { final Integer nextBreak = breaks.higher(curEndPos); curEndPos = (nextBreak == null) ? nLen : nextBreak; } if (curEndPos < nLen) { final int startPos = getTokenStart(curEndPos + 1, true); if (startPos < nLen) { final int nextEndPos = getTokenEnd(startPos); result = new NormalizedToken(this, startPos, nextEndPos); } } } return result; } /** * Get the normalized token start pos at or after (normalized) startPos * after optionally skipping to a token start position (if not already * at one.) */ private final int getTokenStart(int startPos, boolean skipToBreak) { final Normalization normalization = getNormalization(); final TreeSet<Integer> breaks = normalization.getBreaks(); final int nLen = normalization.getNormalizedLength(); if (skipToBreak && !isStartBreak(startPos)) { final Integer nextBreak = breaks.ceiling(startPos); startPos = nextBreak == null ? nLen : nextBreak + 1; } return startPos; } /** * Get the normalized index just after the token starting at (normalized) startPos. */ private final int getTokenEnd(int startPos) { final Normalization normalization = getNormalization(); final TreeSet<Integer> breaks = normalization.getBreaks(); final int nLen = normalization.getNormalizedLength(); final Integer endPos = breaks.higher(startPos); return endPos == null ? nLen : endPos; } protected final Normalization getNormalization() { if (!computed) { <API key>(); } return _normalization; } private final void <API key>() { this._normalization = <API key>(tokenizer, lowerCaseFlag); for (Token token = tokenizer.getToken(0); token != null; token = token.getNextToken()) { _normalization.updateWithToken(token); } this.computed = true; } protected Normalization <API key>(StandardTokenizer tokenizer, boolean lowerCaseFlag) { return new Normalization(tokenizer, lowerCaseFlag); } public static class Normalization { private StandardTokenizer tokenizer; private boolean lowerCaseFlag; private StringBuilder normalized; private Map<Integer, Integer> norm2orig; private TreeSet<Integer> breaks; private char[] _nchars; public Normalization(StandardTokenizer tokenizer, boolean lowerCaseFlag) { this.tokenizer = tokenizer; this.lowerCaseFlag = lowerCaseFlag; this.normalized = new StringBuilder(); this.norm2orig = new HashMap<Integer, Integer>(); this.breaks = new TreeSet<Integer>(); this._nchars = null; } public final StandardTokenizer getTokenizer() { return tokenizer; } public final boolean getLowerCaseFlag() { return lowerCaseFlag; } /** Get original input. */ public final String getInput() { return tokenizer.getText(); } /** Get the normalized string. */ public final String getNormalized() { return normalized.toString(); } public final char[] getNormalizedChars() { if (_nchars == null) { _nchars = normalized.toString().toCharArray(); } return _nchars; } public final int getNormalizedLength() { return normalized.length(); } public final int getOriginalIndex(int normalizedIndex) { final Integer result = (normalizedIndex == normalized.length()) ? tokenizer.getText().length() : norm2orig.get(normalizedIndex); return result == null ? -1 : result; } public final int getNormalizedIndex(int originalIndex) { int result = -1; for (Map.Entry<Integer, Integer> entry : norm2orig.entrySet()) { final int normIdx = entry.getKey(); final int origIdx = entry.getValue(); if (originalIndex == origIdx) { // maps to normalized char result = normIdx; break; } else if (originalIndex > origIdx) { // maps back to normalized white (break) result = normIdx - 1; break; } } return result; } /** * Determine whether there is a break at the given index. */ public final boolean isBreak(int normalizedIndex) { return !norm2orig.containsKey(normalizedIndex); } /** Get the normalized break positions (not including string start or end). */ public final TreeSet<Integer> getBreaks() { return breaks; } /** Lowercase this instance's normalized chars. */ public final void toLowerCase() { final String newNorm = normalized.toString().toLowerCase(); this.normalized.setLength(0); this.normalized.append(newNorm); this._nchars = null; } /** * Build the next normalized chars from the given token using * the "appendX" method calls. */ protected void updateWithToken(Token token) { final String tokenText = lowerCaseFlag ? token.getText().toLowerCase() : token.getText(); <API key>(token.getStartIndex(), tokenText, true); } /** * Append each normalized character originally starting at startIdx. */ protected final void <API key>(int startIdx, String normalizedTokenText) { <API key>(startIdx, normalizedTokenText, true); } /** * Append each normalized character originally starting at startIdx. */ protected final void <API key>(int startIdx, String normalizedTokenText, boolean addWhite) { final int len = normalizedTokenText.length(); for (int i = 0; i < len; ++i) { final char c = normalizedTokenText.charAt(i); <API key>(startIdx++, c, addWhite && i == 0); } } /** * Append the normalized character originally starting at origIdx. */ protected final void <API key>(int origIdx, char c, boolean addWhite) { int normIdx = normalized.length(); if (normIdx > 0 && addWhite) { normalized.append(' '); breaks.add(normIdx++); } norm2orig.put(normIdx, origIdx); normalized.append(c); _nchars = null; } /** * Append the normalized characters all expanding from the originalIdx. */ protected final void appendExpandedText(int origIdx, String chars) { appendExpandedText(origIdx, chars, true); } /** * Append the normalized characters all expanding from the originalIdx. */ protected final void appendExpandedText(int origIdx, String chars, boolean addWhite) { final int len = chars.length(); for (int i = 0; i < chars.length(); ++i) { final char c = chars.charAt(i); <API key>(origIdx, c, addWhite && i == 0); } } } }
package lodVader.spring.REST.models.degree; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import org.junit.Test; import com.mongodb.BasicDBList; import com.mongodb.BasicDBObject; import com.mongodb.DBCollection; import com.mongodb.DBCursor; import com.mongodb.DBObject; import lodVader.mongodb.DBSuperClass2; import lodVader.mongodb.collections.DatasetDB; import lodVader.mongodb.collections.DatasetLinksetDB; import lodVader.mongodb.collections.LinksetDB; import lodVader.mongodb.collections.ResourceDB; public class <API key> { public StringBuilder result = new StringBuilder(); public boolean isVocabulary = true; public boolean isDeadLinks = false; /** * MapReduce functions for indegree linksets */ public String <API key>; public String mapindegreeNoVocabs; public String reduceinDegree; class Result implements Comparator<Result>, Comparable<Result> { int targetDataset; int links = 0; HashSet<Integer> sourceDatasetList = new HashSet<>(); @Override public int compare(Result o1, Result o2) { return o1.links - o2.links; } @Override public int compareTo(Result o) { return this.sourceDatasetList.size() - o.sourceDatasetList.size(); } } HashMap<Integer, Result> tmpResults = new HashMap<Integer, Result>(); ArrayList<Result> finalList = new ArrayList<Result>(); @Test public void calc() { /** * MapReduce to find indegree with vocabularies */ result.append("===============================================================\n"); result.append("Comparing with vocabularies\n"); result.append("===============================================================\n\n"); DBCollection collection = DBSuperClass2.getDBInstance().getCollection(DatasetLinksetDB.COLLECTION_NAME); DBCursor instances; if(!isDeadLinks){ BasicDBList and = new BasicDBList(); // and.add(new BasicDBObject(DatasetLinksetDB.LINKS, new BasicDBObject("$gt", 0))); // and.add(new BasicDBObject(DatasetLinksetDB.DATASET_SOURCE, new BasicDBObject("$ne", DatasetLinksetDB.DATASET_TARGET))); instances = collection.find( new BasicDBObject(DatasetLinksetDB.LINKS, new BasicDBObject("$gt", 0))); } else{ BasicDBList and = new BasicDBList(); // and.add(new BasicDBObject(DatasetLinksetDB.DEAD_LINKS, new BasicDBObject("$gt", 0))); // and.add(new BasicDBObject(DatasetLinksetDB.DATASET_SOURCE, new BasicDBObject("$ne", DatasetLinksetDB.DATASET_TARGET))); // instances = collection.find( new BasicDBObject("$and", and)); instances = collection.find(new BasicDBObject(DatasetLinksetDB.DEAD_LINKS, new BasicDBObject("$gt", 0))); } for (DBObject object : instances) { DatasetLinksetDB linkset = new DatasetLinksetDB(object); if (linkset.<API key>() == isVocabulary) { Result result = tmpResults.get(linkset.getDatasetTarget()); if (result == null) { result = new Result(); } if (isDeadLinks) result.links = result.links + linkset.getDeadLinks(); else result.links = result.links + linkset.getLinks(); result.sourceDatasetList.add(linkset.getDatasetSource()); result.targetDataset = linkset.getDatasetTarget(); tmpResults.put(linkset.getDatasetTarget(), result); } } for (Integer r : tmpResults.keySet()) { finalList.add(tmpResults.get(r)); } result.append("\n===== Sorted by links======="); Collections.sort(finalList, new Result()); printTableindegree(); result.append("\n===== Sorted by number of datasets======="); Collections.sort(finalList); printTableindegree(); result.append("\n\n\n\n===============================================================\n"); result.append("Comparing without vocabularies\n"); result.append("===============================================================\n\n"); tmpResults = new HashMap<Integer, Result>(); finalList = new ArrayList<Result>(); isVocabulary = false; for (DBObject object : instances) { DatasetLinksetDB linkset = new DatasetLinksetDB(object); if (linkset.<API key>() == isVocabulary) { Result result = tmpResults.get(linkset.getDatasetTarget()); if (result == null) { result = new Result(); } if (isDeadLinks) result.links = result.links + linkset.getDeadLinks(); else result.links = result.links + linkset.getLinks(); result.sourceDatasetList.add(linkset.getDatasetSource()); result.targetDataset = linkset.getDatasetTarget(); tmpResults.put(linkset.getDatasetTarget(), result); } } for (Integer r : tmpResults.keySet()) { finalList.add(tmpResults.get(r)); } result.append("\n===== Sorted by links======="); Collections.sort(finalList, new Result()); printTableindegree(); result.append("\n===== Sorted by number of datasets======="); Collections.sort(finalList); printTableindegree(); } private void printTableindegree() { result.append("\n\nName\t indegree \t Links \n"); DatasetDB tmpDataset; for (Result r : finalList) { tmpDataset = new DatasetDB(r.targetDataset); result.append(tmpDataset.getTitle()); result.append("\t" + r.sourceDatasetList.size()); result.append("\t" + r.links); result.append("\n"); } result.append("\n\n\n"); } }
package no.api.regurgitator; import com.fasterxml.jackson.annotation.<API key>; import com.fasterxml.jackson.annotation.JsonProperty; import io.dropwizard.Configuration; import javax.validation.Valid; import javax.validation.constraints.NotNull; @<API key>(ignoreUnknown = true) public class <API key> extends Configuration { @Valid @NotNull @JsonProperty private int proxyPort; @Valid @JsonProperty private String archivedFolder; @Valid @NotNull @JsonProperty private Boolean recordOnStart; @Valid @NotNull @JsonProperty private String storageManager; public int getProxyPort() { return proxyPort; } public String getStorageManager() { return storageManager; } public Boolean getRecordOnStart() { return recordOnStart; } public String getArchivedFolder() { return archivedFolder; } }
package org.minimalj.example.petclinic.frontend; import org.minimalj.backend.Backend; import org.minimalj.example.petclinic.model.Vet; import org.minimalj.frontend.Frontend; import org.minimalj.frontend.editor.Editor.NewObjectEditor; import org.minimalj.frontend.form.Form; public class AddVetEditor extends NewObjectEditor<Vet> { @Override protected Form<Vet> createForm() { Form<Vet> form = new Form<>(); form.line(Vet.$.person.firstName); form.line(Vet.$.person.lastName); form.line(Vet.$.specialties); return form; } @Override protected Vet save(Vet owner) { return Backend.save(owner); } @Override protected void finished(Vet newVet) { Frontend.show(new VetTablePage()); } }
#!/usr/bin/env bash sudo apt-get update sudo apt-get -y install curl git vim git clone https://github.com/openstack-dev/devstack.git -b stable/icehouse devstack/ cd devstack/ wget https://gist.githubusercontent.com/everett-toews/<API key>/raw/<SHA1-like>/local.conf ./stack.sh
FILES_TO_SERVE=index.html dmcc.js dmcc.css all: $(addprefix Deploy/, $(FILES_TO_SERVE)) Deploy/build_rules.json Deploy/build_rules.json: Source/process_build_rules.py cd Source && ./process_build_rules.py > ../$@.tmp && mv ../$@.tmp ../$@ Deploy/%: Source/% cp $< $@ run_server_old: all cd Deploy && php -S localhost:8081 run_server: all cd Deploy && node ../Source/dmcc_server.js clean: rm -f $(addprefix Deploy/, $(FILES_TO_SERVE)) rm -f Deploy/build_rules.json
// Client+Extensions.h // MobileTech Conference 2014 // Ivo Wessel // Lehrter Str. 57, Haus 2 // D-10557 Berlin // Phone : +49-(0)30-89 62 64 77 // Mobile: +49-(0)177-4 86 93 77 // Skype : ivo.wessel // E-Mail: email@ivo-wessel.de @interface UIColor (Extensions) - (float) red; - (float) green; - (float) blue; - (float) alpha; - (NSString *) cacheKey; + (UIColor *) randomColor; + (UIColor *) colorWithRed:(int) nRed green:(int) nGreen blue:(int) nBlue; @end
module.exports = unbuild unbuild.usage = "npm unbuild <folder>\n(this is plumbing)" var readJson = require("read-package-json") , rm = require("./utils/gently-rm.js") , gentlyRm = require("./utils/gently-rm.js") , npm = require("./npm.js") , path = require("path") , fs = require("graceful-fs") , lifecycle = require("./utils/lifecycle.js") , asyncMap = require("slide").asyncMap , chain = require("slide").chain , log = require("npmlog") , build = require("./build.js") // args is a list of folders. // remove any bins/etc, and then DELETE the folder. function unbuild (args, silent, cb) { if (typeof silent === 'function') cb = silent, silent = false asyncMap(args, unbuild_(silent), cb) } function unbuild_ (silent) { return function (folder, cb_) { function cb (er) { cb_(er, path.relative(npm.root, folder)) } folder = path.resolve(folder) delete build._didBuild[folder] log.info(folder, "unbuild") readJson(path.resolve(folder, "package.json"), function (er, pkg) { // if no json, then just trash it, but no scripts or whatever. if (er) return rm(folder, cb) readJson.cache.del(folder) chain ( [ [lifecycle, pkg, "preuninstall", folder, false, true] , [lifecycle, pkg, "uninstall", folder, false, true] , !silent && function(cb) { console.log("unbuild " + pkg._id) cb() } , [rmStuff, pkg, folder] , [lifecycle, pkg, "postuninstall", folder, false, true] , [rm, folder] ] , cb ) }) }} function rmStuff (pkg, folder, cb) { // if it's global, and folder is in {prefix}/node_modules, // then bins are in {prefix}/bin // otherwise, then bins are in folder/../.bin var parent = path.dirname(folder) , gnm = npm.dir , top = gnm === parent readJson.cache.del(path.resolve(folder, "package.json")) log.verbose([top, gnm, parent], "unbuild " + pkg._id) asyncMap([rmBins, rmMans], function (fn, cb) { fn(pkg, folder, parent, top, cb) }, cb) } function rmBins (pkg, folder, parent, top, cb) { if (!pkg.bin) return cb() var binRoot = top ? npm.bin : path.resolve(parent, ".bin") log.verbose([binRoot, pkg.bin], "binRoot") asyncMap(Object.keys(pkg.bin), function (b, cb) { if (process.platform === "win32") { chain([ [rm, path.resolve(binRoot, b) + ".cmd"] , [rm, path.resolve(binRoot, b) ] ], cb) } else { gentlyRm( path.resolve(binRoot, b) , !npm.config.get("force") && folder , cb ) } }, cb) } function rmMans (pkg, folder, parent, top, cb) { if (!pkg.man || !top || process.platform === "win32" || !npm.config.get("global")) { return cb() } var manRoot = path.resolve(npm.config.get("prefix"), "share", "man") asyncMap(pkg.man, function (man, cb) { if (Array.isArray(man)) { man.forEach(rm) } else { rm(man) } function rm(man) { var parseMan = man.match(/(.*)\.([0-9]+)(\.gz)?$/) , stem = parseMan[1] , sxn = parseMan[2] , gz = parseMan[3] || "" , bn = path.basename(stem) , manDest = path.join( manRoot , "man"+sxn , (bn.indexOf(pkg.name) === 0 ? bn : pkg.name + "-" + bn) + "." + sxn + gz ) gentlyRm( manDest , !npm.config.get("force") && folder , cb ) } }, cb) }
package hu.akarnokd.rxjava; import java.util.concurrent.TimeUnit; import rx.*; import rx.plugins.RxJavaHooks; import rx.schedulers.Schedulers; public class TrackSubscriber1 { @SuppressWarnings("unchecked") public static void main(String[] args) throws Exception { RxJavaHooks.<API key>((observable, onSubscribe) -> { if (!onSubscribe.getClass().getName().toLowerCase().contains("map")) { return onSubscribe; } System.out.println("Started"); return (Observable.OnSubscribe<Object>)observer -> { class SignalTracker extends Subscriber<Object> { @Override public void onNext(Object o) { // handle onNext before or aftern notifying the downstream observer.onNext(o); } @Override public void onError(Throwable t) { // handle onError observer.onError(t); } @Override public void onCompleted() { // handle onComplete System.out.println("Completed"); observer.onCompleted(); } } SignalTracker t = new SignalTracker(); onSubscribe.call(t); }; }); Observable<Integer> observable = Observable.range(1, 5) .subscribeOn(Schedulers.io()) .observeOn(Schedulers.computation()) .map(integer -> { try { TimeUnit.SECONDS.sleep(1); } catch (<API key> e) { e.printStackTrace(); } return integer * 3; }); observable.subscribe(System.out::println); Thread.sleep(6000L); } }
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_74) on Fri Apr 01 14:41:57 CDT 2016 --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Uses of Class org.apache.solr.client.solrj.response.schema.SchemaResponse.SchemaNameResponse (Solr 6.0.0 API)</title> <meta name="date" content="2016-04-01"> <link rel="stylesheet" type="text/css" href="../../../../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../../../../script.js"></script> </head> <body> <script type="text/javascript"><! try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class org.apache.solr.client.solrj.response.schema.SchemaResponse.SchemaNameResponse (Solr 6.0.0 API)"; } } catch(err) { } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar.top"> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../../org/apache/solr/client/solrj/response/schema/SchemaResponse.SchemaNameResponse.html" title="class in org.apache.solr.client.solrj.response.schema">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../../index.html?org/apache/solr/client/solrj/response/schema/class-use/SchemaResponse.SchemaNameResponse.html" target="_top">Frames</a></li> <li><a href="SchemaResponse.SchemaNameResponse.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.top"> </a></div> <div class="header"> <h2 title="Uses of Class org.apache.solr.client.solrj.response.schema.SchemaResponse.SchemaNameResponse" class="title">Uses of Class<br>org.apache.solr.client.solrj.response.schema.SchemaResponse.SchemaNameResponse</h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../../../../../org/apache/solr/client/solrj/response/schema/SchemaResponse.SchemaNameResponse.html" title="class in org.apache.solr.client.solrj.response.schema">SchemaResponse.SchemaNameResponse</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.solr.client.solrj.request.schema">org.apache.solr.client.solrj.request.schema</a></td> <td class="colLast"> <div class="block">Convenience classes for making Schema API requests.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="org.apache.solr.client.solrj.request.schema"> </a> <h3>Uses of <a href="../../../../../../../../org/apache/solr/client/solrj/response/schema/SchemaResponse.SchemaNameResponse.html" title="class in org.apache.solr.client.solrj.response.schema">SchemaResponse.SchemaNameResponse</a> in <a href="../../../../../../../../org/apache/solr/client/solrj/request/schema/package-summary.html">org.apache.solr.client.solrj.request.schema</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../../../../org/apache/solr/client/solrj/request/schema/package-summary.html">org.apache.solr.client.solrj.request.schema</a> that return <a href="../../../../../../../../org/apache/solr/client/solrj/response/schema/SchemaResponse.SchemaNameResponse.html" title="class in org.apache.solr.client.solrj.response.schema">SchemaResponse.SchemaNameResponse</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>protected <a href="../../../../../../../../org/apache/solr/client/solrj/response/schema/SchemaResponse.SchemaNameResponse.html" title="class in org.apache.solr.client.solrj.response.schema">SchemaResponse.SchemaNameResponse</a></code></td> <td class="colLast"><span class="typeNameLabel">SchemaRequest.SchemaName.</span><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/solr/client/solrj/request/schema/SchemaRequest.SchemaName.html#createResponse-org.apache.solr.client.solrj.SolrClient-">createResponse</a></span>(<a href="../../../../../../../../org/apache/solr/client/solrj/SolrClient.html" title="class in org.apache.solr.client.solrj">SolrClient</a>&nbsp;client)</code>&nbsp;</td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <div class="bottomNav"><a name="navbar.bottom"> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../../org/apache/solr/client/solrj/response/schema/SchemaResponse.SchemaNameResponse.html" title="class in org.apache.solr.client.solrj.response.schema">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../../index.html?org/apache/solr/client/solrj/response/schema/class-use/SchemaResponse.SchemaNameResponse.html" target="_top">Frames</a></li> <li><a href="SchemaResponse.SchemaNameResponse.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.bottom"> </a></div> <p class="legalCopy"><small> <i>Copyright &copy; 2000-2016 Apache Software Foundation. All Rights Reserved.</i> <script src='../../../../../../../../prettify.js' type='text/javascript'></script> <script type='text/javascript'> (function(){ var oldonload = window.onload; if (typeof oldonload != 'function') { window.onload = prettyPrint; } else { window.onload = function() { oldonload(); prettyPrint(); } } })(); </script> </small></p> </body> </html>
package tk.zielony.carbonsamples.feature; import android.app.Activity; import android.os.Bundle; import tk.zielony.carbonsamples.R; public class TextMarkerActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_textmarker); } }
// nOpenWeb.h // janbin #import <UIKit/UIKit.h> @interface nOpenWeb_iphone : UIViewController<UIWebViewDelegate> { NSString *urlMain; NSString *type; NSString *link; } @property (strong, nonatomic) NSString *urlMain; @property (strong, nonatomic) NSString *type; @property (strong, nonatomic) NSString *link; @property (strong, nonatomic) IBOutlet UIWebView *webMain; @end
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_172) on Wed Mar 13 10:37:22 EDT 2019 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>API Help (jrugged-core 4.0.0-SNAPSHOT API)</title> <meta name="date" content="2019-03-13"> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> <script type="text/javascript" src="script.js"></script> </head> <body> <script type="text/javascript"><! try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="API Help (jrugged-core 4.0.0-SNAPSHOT API)"; } } catch(err) { } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar.top"> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="overview-summary.html">Overview</a></li> <li>Package</li> <li>Class</li> <li>Use</li> <li><a href="overview-tree.html">Tree</a></li> <li><a href="deprecated-list.html">Deprecated</a></li> <li><a href="index-all.html">Index</a></li> <li class="navBarCell1Rev">Help</li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="index.html?help-doc.html" target="_top">Frames</a></li> <li><a href="help-doc.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.top"> </a></div> <div class="header"> <h1 class="title">How This API Document Is Organized</h1> <div class="subTitle">This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.</div> </div> <div class="contentContainer"> <ul class="blockList"> <li class="blockList"> <h2>Overview</h2> <p>The <a href="overview-summary.html">Overview</a> page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.</p> </li> <li class="blockList"> <h2>Package</h2> <p>Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:</p> <ul> <li>Interfaces (italic)</li> <li>Classes</li> <li>Enums</li> <li>Exceptions</li> <li>Errors</li> <li>Annotation Types</li> </ul> </li> <li class="blockList"> <h2>Class/Interface</h2> <p>Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:</p> <ul> <li>Class inheritance diagram</li> <li>Direct Subclasses</li> <li>All Known Subinterfaces</li> <li>All Known Implementing Classes</li> <li>Class/interface declaration</li> <li>Class/interface description</li> </ul> <ul> <li>Nested Class Summary</li> <li>Field Summary</li> <li>Constructor Summary</li> <li>Method Summary</li> </ul> <ul> <li>Field Detail</li> <li>Constructor Detail</li> <li>Method Detail</li> </ul> <p>Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.</p> </li> <li class="blockList"> <h2>Annotation Type</h2> <p>Each annotation type has its own separate page with the following sections:</p> <ul> <li>Annotation Type declaration</li> <li>Annotation Type description</li> <li>Required Element Summary</li> <li>Optional Element Summary</li> <li>Element Detail</li> </ul> </li> <li class="blockList"> <h2>Enum</h2> <p>Each enum has its own separate page with the following sections:</p> <ul> <li>Enum declaration</li> <li>Enum description</li> <li>Enum Constant Summary</li> <li>Enum Constant Detail</li> </ul> </li> <li class="blockList"> <h2>Use</h2> <p>Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.</p> </li> <li class="blockList"> <h2>Tree (Class Hierarchy)</h2> <p>There is a <a href="overview-tree.html">Class Hierarchy</a> page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with <code>java.lang.Object</code>. The interfaces do not inherit from <code>java.lang.Object</code>.</p> <ul> <li>When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.</li> <li>When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.</li> </ul> </li> <li class="blockList"> <h2>Deprecated API</h2> <p>The <a href="deprecated-list.html">Deprecated API</a> page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.</p> </li> <li class="blockList"> <h2>Index</h2> <p>The <a href="index-all.html">Index</a> contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.</p> </li> <li class="blockList"> <h2>Prev/Next</h2> <p>These links take you to the next or previous class, interface, package, or related page.</p> </li> <li class="blockList"> <h2>Frames/No Frames</h2> <p>These links show and hide the HTML frames. All pages are available with or without frames.</p> </li> <li class="blockList"> <h2>All Classes</h2> <p>The <a href="allclasses-noframe.html">All Classes</a> link shows all classes and interfaces except non-static nested types.</p> </li> <li class="blockList"> <h2>Serialized Form</h2> <p>Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.</p> </li> <li class="blockList"> <h2>Constant Field Values</h2> <p>The <a href="constant-values.html">Constant Field Values</a> page lists the static final fields and their values.</p> </li> </ul> <span class="emphasizedPhrase">This help file applies to API documentation generated using the standard doclet.</span></div> <div class="bottomNav"><a name="navbar.bottom"> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="overview-summary.html">Overview</a></li> <li>Package</li> <li>Class</li> <li>Use</li> <li><a href="overview-tree.html">Tree</a></li> <li><a href="deprecated-list.html">Deprecated</a></li> <li><a href="index-all.html">Index</a></li> <li class="navBarCell1Rev">Help</li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="index.html?help-doc.html" target="_top">Frames</a></li> <li><a href="help-doc.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.bottom"> </a></div> <p class="legalCopy"><small>Copyright & </body> </html>
package com.hundsun.network.gates.houchao.biz.services.pojo; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Service; @Service("outFundTrans") @Scope("prototype") public class OutFundTrans extends InOutFundTrans { protected boolean isTrans() { return true; } protected boolean isOutFund() { return true; } protected boolean <API key>() { return false; } protected boolean isInOutTrans() { return true; } }
import type { IProviderSettings } from '@spinnaker/core'; import { SETTINGS } from '@spinnaker/core'; export interface <API key> extends IProviderSettings { defaults: { account?: string; }; } export const <API key>: <API key> = (SETTINGS.providers .appengine as <API key>) || { defaults: {} }; if (<API key>) { <API key>.resetToOriginal = SETTINGS.resetProvider('appengine'); }