/*
Adds a section to the given media query section - creates if necessary
438405
private void addResultSection(String mediaQueryPath, Section section) {
        Section qry = mediaQueries.get(mediaQueryPath);
        if (qry == null) {
            qry = new Section();
            qry.getSelectors().add(Collections.singletonList(mediaQueryPath));
            mediaQueries.put(mediaQueryPath, qry);
        }
        qry.addSubSection(section);
    }
608043
public function addSections() {
		foreach ($this->sectionBuffers as $section => $filePaths) {
			$this->add('# '.$section, 1, 1);
			foreach ($filePaths as $filePath => $tests) {
				$this->add('#### '.$filePath, 0, 1);
				foreach ($tests as $test => $lines) {
					$this->add('* '.$test, 0, 1);
					foreach ($lines as $line) {
						$this->add(" * Line {$line[0]}: `".str_replace('`', '\`', $line[1])."`", 0, 1);
					}
				}
				$this->add('', 1, 0);
			}
		}
	}
283199
function (rule, media) {
        if (media === undefined && Foundation.stylesheet) {
          Foundation.stylesheet.insertRule(rule, Foundation.stylesheet.cssRules.length);
        } else {
          var query = Foundation.media_queries[media];

          if (query !== undefined) {
            Foundation.stylesheet.insertRule('@media ' +
              Foundation.media_queries[media] + '{ ' + rule + ' }');
          }
        }
      }
1216191
def addSection(self, section):
        
        label = QLabel(section, self)
        label.setMinimumHeight(self.titleHeight())
        
        # setup font
        font = label.font()
        font.setBold(True)
        
        # setup palette
        palette = label.palette()
        palette.setColor(palette.WindowText, palette.color(palette.Mid))
        
        # setup label
        label.setFont(font)
        label.setAutoFillBackground(True)
        label.setPalette(palette)
        
        # create the widget action
        action = QWidgetAction(self)
        action.setDefaultWidget(label)
        self.addAction(action)
        
        return action
1254300
private void addCdataSectionElement(String URI_and_localName, Vector v)
    {

        StringTokenizer tokenizer =
            new StringTokenizer(URI_and_localName, "{}", false);
        String s1 = tokenizer.nextToken();
        String s2 = tokenizer.hasMoreTokens() ? tokenizer.nextToken() : null;

        if (null == s2)
        {
            // add null URI and the local name
            v.addElement(null);
            v.addElement(s1);
        }
        else
        {
            // add URI, then local name
            v.addElement(s1);
            v.addElement(s2);
        }
    }
27996
private Section parseSection(boolean mediaQuery) {
        Section section = new Section();
        parseSectionSelector(mediaQuery, section);
        tokenizer.consumeExpectedSymbol("{");
        while (tokenizer.more()) {
            if (tokenizer.current().isSymbol("}")) {
                tokenizer.consumeExpectedSymbol("}");
                return section;
            }
            // Parse "normal" attributes like "font-weight: bold;"
            if (isAtAttribute()) {
                Attribute attr = parseAttribute();
                section.addAttribute(attr);
            } else if (tokenizer.current().isKeyword(KEYWORD_MEDIA)) {
                // Take care of @media sub sections
                section.addSubSection(parseSection(true));
            } else if (tokenizer.current().isKeyword(KEYWORD_INCLUDE)) {
                parseInclude(section);
            } else if (tokenizer.current().isKeyword(KEYWORD_EXTEND)) {
                parseExtend(section);
            } else {
                // If it is neither an attribute, nor a media query or instruction - it is probably a sub section...
                section.addSubSection(parseSection(false));
            }
        }
        tokenizer.consumeExpectedSymbol("}");
        return section;
    }
705522
public void addTickMarkSection(final Section SECTION) {
        if (null == SECTION) return;
        tickMarkSections.add(SECTION);
        Collections.sort(tickMarkSections, new SectionComparator());
        fireUpdateEvent(REDRAW_EVENT);
    }
857992
def add_section(name)
      if section_exists?(name)
        raise IniParseError.new(_("Section %{name} is already defined, cannot redefine") % { name: name.inspect }, @file)
      end

      section = Section.new(name, @file)
      @contents << section

      section
    end
1063827
def add_section(self, section):
        
        self.config.read(self.filepath)
        self.config.add_section(section)
        with open(self.filepath, "w") as f:
            self.config.write(f)
1056006
def add_section(self, section, friendly_name = None):
  """"""
  if not isinstance(section, BASESTRING): # Make sure the user isn't expecting to use something stupid as a key.
   raise ValueError(section)
  # See if we've got this section already:
  if section in self.config:
   raise DuplicateSectionError(section) # Yep... Kick off.
  else:
   self.config[section] = OrderedDict() # Nope... Ad it
   if friendly_name == None:
    friendly_name = section.title()
   if '&' not in friendly_name:
    friendly_name = '&' + friendly_name
   self.section_names[section] = friendly_name
980531
public function addSection(Section $section)
    {
        $this->registry['sections'][] = $section;

        $this->currentSection = $section;

        return $this;
    }
471643
function (media_hash_id, new_media_data, cb) {

            if (new_media_data) {
                new_media_data._method = 'PUT';
            }

            _util.buildQuery('medias/' + media_hash_id, new_media_data, function (error, data) {

                return cb(error, data);

            });

        }
242226
protected function addSection($section, $contents, $overwrite = false)
    {
        if ($overwrite || !isset($this->sections[$section])) {
            $this->sections[$section] = $contents;
        }

        return $this;
    }
20507
public function addSection($key, $value = null)
    {
        if ($key instanceof Section) {
            $section = $key;
            $this->sections[$section->getKey()]
                = $section->getValue();
            return;
        }
        $this->sections[$key] = (string)$value;
    }
956666
public static function add( $section_id, array $args ) {
		$section = static::_section( $section_id, $args );
		static::$sections[ $section->get_id() ] = $section;
		return $section;
	}
104282
def add_section(self, section_name):
        
        if section_name == "DEFAULT":
            raise Exception("'DEFAULT' is reserved section name.")

        if section_name in self._sections:
            raise Exception(
                "Error! %s is already one of the sections" % section_name)
        else:
            self._sections[section_name] = Section(section_name)
547992
public function add_sections() {
		if ( ! empty( Kirki::$sections ) ) {
			foreach ( Kirki::$sections as $section_args ) {
				// Extra checks for nested sections.
				if ( isset( $section_args['section'] ) ) {
					if ( isset( Kirki::$sections[ $section_args['section'] ] ) ) {
						// Set the type to nested.
						$section_args['type'] = 'kirki-nested';
						// We need to check if the parent section is nested inside a panel.
						$parent_section = Kirki::$sections[ $section_args['section'] ];
						if ( isset( $parent_section['panel'] ) ) {
							$section_args['panel'] = $parent_section['panel'];
						}
					}
				}
				new Section( $section_args );
			}
		}
	}