Add examples you should never follow. DO NOT use the following as examples of what to do: these are examples of what NOT to do.
179420
private void addAntiPatternExamples() {
		add(new WHeading(HeadingLevel.H2, "WLabel anti-patterns"));
		add(new ExplanatoryText("These are here for testing purposes and must not be used as examples to follow.\n"
						+ "Turn on debugging (bordertech.wcomponents.debug.enabled=true) to get much more information."));
		add(new WHeading(HeadingLevel.H3, "Poor but not erroneous uses of WLabel"));
		WPanel errorLayoutPanel = new WPanel();
		errorLayoutPanel.setLayout(new FlowLayout(FlowLayout.VERTICAL, Size.LARGE));
		add(errorLayoutPanel);
		//label not for anything should not be a WLabel
		errorLayoutPanel.add(new WLabel("I am not 'for' anything"));
		//WLabel for something which is not labellable
		errorLayoutPanel.add(new WLabel("I am for a component which should not be labelled", errorLayoutPanel));
		// If the WLabel is 'for' something that is not in the tree it becomes 'for' the WApplication. This is not necessarily a good thing!!!
		WCheckBox notHere = new WCheckBox();
		errorLayoutPanel.add(new WLabel("My component wasn't added", notHere));

		/*
		 * The examples which follow MUST NEVER BE USED! They cause ERRORS.
		 * They are here purely for framework testing.
		 */
		add(new WHeading(HeadingLevel.H3, "Very bad uses of WLabel"));
		errorLayoutPanel = new WPanel();
		errorLayoutPanel.setLayout(new FlowLayout(FlowLayout.VERTICAL, Size.LARGE));
		add(errorLayoutPanel);

		/*
		 * Nested WLabels: very bad
		 */
		errorLayoutPanel.add(new ExplanatoryText(
				"This example shows nested WLabels. This is a contravention of the HTML specification."));

		WPanel nestingErrorPanel = new WPanel();
		nestingErrorPanel.setLayout(new ColumnLayout(new int[]{50, 50}, Size.LARGE, Size.MEDIUM));
		errorLayoutPanel.add(nestingErrorPanel);
		WTextField outerField = new WTextField();
		WLabel outerLabel = new WLabel("I am an outer label", outerField);
		nestingErrorPanel.add(outerLabel);

		WTextField innerField = new WTextField();
		WLabel innerLabel = new WLabel("Inner label", innerField);
		//add the inner label to the outer label: this is the ERROR
		outerLabel.add(innerLabel);
		nestingErrorPanel.add(innerField);
		nestingErrorPanel.add(outerField);

		/*
		 * It is permissible to place certain simple form control components into
		 * a WLabel under the following conditions:
		 * there must be no more than one such component in the WLabel;
		 * the component MUST be one which outputs a simple HTML form control
		 * (and I am not going to tell you which they are);
		 * The WLabel must be 'for' the nested component or not 'for' anything.
		 */
		errorLayoutPanel.add(new ExplanatoryText("This example shows a WLabel with a nested simple form control WTextField but the WLabel is not "
				+ "'for' the WTextField. This is a contravention of the HTML specification."));

		WTextField notMyField = new WTextField();
		notMyField.setToolTip("This field should not be in the label it is in");

		WTextField myField = new WTextField();
		WLabel myFieldLabel = new WLabel("I am not the label for my nested text field", myField);
		nestingErrorPanel = new WPanel();
		nestingErrorPanel.setLayout(new ColumnLayout(new int[]{50, 50}, 12, 6));
		errorLayoutPanel.add(nestingErrorPanel);
		nestingErrorPanel.add(myFieldLabel);
		nestingErrorPanel.add(myField);

		//adding the 'wrong' WTextField to a WLabel is what causes this error
		myFieldLabel.add(notMyField);

		add(new ExplanatoryText("The next field has a label explicitly set to only white space."));
		WTextField emptyLabelTextField = new WTextField();
		WLabel emptyLabel = new WLabel(" ", emptyLabelTextField);
		add(emptyLabel);
		add(emptyLabelTextField);

		add(new WHeading(HeadingLevel.H2, "Unlabelled controls"));
		add(new ExplanatoryText("These controls must be labelled but are not."));
		WFieldLayout fieldsFlat = new WFieldLayout();
		add(fieldsFlat);
		fieldsFlat.addField((WLabel) null, new WTextField());
		fieldsFlat.addField((WLabel) null, new WTextArea());
		fieldsFlat.addField((WLabel) null, new WDateField());
		fieldsFlat.addField((WLabel) null, new WCheckBox());
		fieldsFlat.addField((WLabel) null, new WCheckBoxSelect(
				new String[]{"Apple", "Cherry", "Orange", "Pineapple"}));
	}
870165
private void skip() {
        try {
            int blockSize;
            do {
                blockSize = read();
                rawData.position(rawData.position() + blockSize);
            } while (blockSize > 0);
        } catch (IllegalArgumentException ex) {
        }
    }
2889
public void selectExample(final ExampleData example) {
		try {
			StringBuilder exampleName = new StringBuilder();
			if (example.getExampleGroupName() != null && !example.getExampleGroupName().equals("")) {
				exampleName.append(example.getExampleGroupName()).append(" - ");
			}
			exampleName.append(example.getExampleName());
			selectExample(example.getExampleClass().newInstance(), exampleName.toString());
		} catch (Exception e) {
			WMessages.getInstance(this).error("Error selecting example \"" + example.
					getExampleName() + '"');
			selectExample(new ErrorComponent(e.getMessage(), e), "Error");
		}
	}
1150378
function warn(file, id, violation, suggestion, node, note, condition, joiner) {
  var warning

  if (suggestion) {
    if (!('join' in suggestion)) {
      suggestion = keys(suggestion)
    }

    if (isCapitalized(violation)) {
      suggestion = capitalize(suggestion)
    }
  }

  warning = message(violation, suggestion, condition, joiner)
  warning = file.warn(warning, node, [source, id].join(':'))

  if (note) {
    warning.note = note
  }
}
315730
public void addNotBetween(Object attribute, Object value1, Object value2)
    {
        // PAW
		// addSelectionCriteria(ValueCriteria.buildNotBeweenCriteria(attribute, value1, value2, getAlias()));
		addSelectionCriteria(ValueCriteria.buildNotBeweenCriteria(attribute, value1, value2, getUserAlias(attribute)));
    }
20718
def fix_examples_data
      each_item do |ex|
        ex["name"] = ex["url"] unless ex["name"]

        unless ex["url"] =~ /^https?:\/\//
          ex["url"] = @opts.examples_base_url + ex["url"]
        end
        unless ex["icon"] =~ /^https?:\/\//
          ex["icon"] = @opts.examples_base_url + ex["icon"]
        end

        unless ex["title"]
          ex["title"] = ex["text"]
          ex.delete("text")
        end
        unless ex["description"]
          ex["description"] = ex["desc"]
          ex.delete("desc")
        end
      end
    end
49096
def create_examples_all():
    
    remove_examples_all()
    examples_all_dir().mkdir()

    for lib in libraries():
        maindir = examples_all_dir() / lib.upper()[0:1] / lib
#        libraries_dir() /
        maindir.makedirs_p()

        for ex in lib_examples(lib):
            d = lib_example_dir(lib, ex)
            if hasattr(os, 'symlink'):
                d.symlink(maindir / ex)
            else:
                d.copytree(maindir / ex)
218955
function not(pred, thisArg) {
    function notPred() {
        return !(notPred.pred.apply(notPred.thisArg, arguments));
    }
    notPred.pred = pred;
    notPred.thisArg = thisArg;
    return notPred;
}
1373621
def request_examples(self, attack_config, criteria, run_counts, batch_size):
    
    raise NotImplementedError(str(type(self)) +
                              "needs to implement request_examples")
348413
public void addExamples(ExampleStatements exampleStatements)
    {
		this.statements.put(exampleStatements.getDatasourceName(), exampleStatements.getClusters());
		if (LOGGER.isDebugEnabled()) {
        	LOGGER.debug("converted json object" + new JSONObject(statements));
        }
    }
1070698
def addnot(self, action=None, subject=None, **conditions):
        
        self.add_rule(Rule(False, action, subject, **conditions))
736094
public void withFollowings(boolean followings) {
    if (followings) {
      addQueryParameter(Constants.WITH_PARAM, Constants.WITH_FOLLOWINGS);
    } else {
      removeQueryParameter(Constants.WITH_PARAM);
    }
  }
446420
public void skip(long n) throws IllegalArgumentException, NoSuchElementException
   {
      if (n < 0)
      {
         throw new IllegalArgumentException("skip(" + n + ")");
      }

      for (long i = 0; i < n; i++)
      {
         next();
      }
   }
865633
public void addTo(String to) {
        if (this.to.length() > 0) {
            this.to.append(",");
        }
        this.to.append(to);
    }
667240
def excepthook(cls, error, trace):
    
    global _excepthooks
    new_hooks = []

    for hook_ref in _excepthooks:
        hook = hook_ref()
        if hook:
            hook(cls, error, trace)
            new_hooks.append(hook_ref)

    _excepthook = new_hooks
    sys.__excepthook__(cls, error, trace)
419217
def example_failed(example, counter, failure)
      first_time = true

      failure.exception.backtrace.reverse.each do |frame|
        file, line, message = parse_backtrace(frame)
        message = failure.header if message.blank?

        if first_time and failure.exception.message.present?
          first_time = false
          message += failure.exception.message
        end

        @output.puts "%s:%d %d %s" % [file, line, counter, message]
        @output.flush

        MULTI_LINE_ERRORS or break
      end
    end
1310768
function commandExamples(examples) {
  if (!examples || !examples.length) {
    return ''
  }
  let exampleRender = `**Examples**${newLine}`
  exampleRender += '\`\`\`bash\n'
  examples.forEach((ex) => {
    console.log('ex', ex)
    exampleRender += `${ex}\n`
  })
  exampleRender += `\`\`\`${newLine}`
  return exampleRender
}