text:
package outlier.densitybased;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.util.ToolRunner;

import outlier.LOFDriver;
import grid.GridDriver;

public class DetectOutliers {

	public static void main(String[] args) throws Exception {
		// if (args.length != 7) {
		// System.out
		// .printf("Usage: <input dir> <output dir> <epsilon> <pi> <sample size> <min cell count> <parallelizetion>\n");
		// System.exit(-1);
		// }
		System.out
				.printf("Usage: <input dir> <output dir> <epsilon> <pi> <sample size> <min cell count> <parallelizetion>\n");
		String inputDir = args[0];
		String outputDir = args[1];
		String epsilon = args[2];
		String pi = args[3];
		String sampleSize = args[4];
		int sampleSizeInt = Integer.parseInt(args[4]);
		int minCellCount = Integer.parseInt(args[5]);
		String parallelizetion = args[6];
		String maxSampleLeafSize = new String((sampleSizeInt / minCellCount)
				+ "");
		String[] gargs = new String[args.length - 1];
		gargs[0] = inputDir;
		gargs[1] = outputDir;
		gargs[2] = sampleSize;
		gargs[3] = maxSampleLeafSize;
		gargs[4] = epsilon;
		gargs[5] = parallelizetion;
		for (int i = 7; i < args.length; i++) {
			gargs[i - 1] = args[i];
		}
		int res = ToolRunner.run(new Configuration(), new GridDriver(), gargs);
		if (res != 0) {
			System.exit(res);
		}
		String[] oargs = new String[args.length - 2];
		oargs[0] = outputDir;
		oargs[1] = outputDir;
		oargs[2] = epsilon;
		oargs[3] = pi;
		oargs[4] = parallelizetion;
		for (int i = 7; i < args.length; i++) {
			oargs[i - 2] = args[i];
		}
		res = ToolRunner.run(new Configuration(),
				new LOFDriver(), oargs);
		System.exit(res);

	}

}


text:
layout: page-fullwidth
published: false
title:  "The Full-Width Page Template"
subheadline:  "Multi-Device Layouts"
teaser: "The full-width page format gives you all the space you need to show your content using the grid."
categories:
    - design
header:
   image_fullwidth: header_unsplash_leaf.jpg
---
*Feeling Responsive* is built on Foundation. And of course, we make use of the wonderful grid system and so can you. Find out more about [constructing  beautiful layouts][1] in the foundation documentation.

 [1]: http://foundation.zurb.com/docs/components/grid.html

redpajama_set_name: RedPajamaGithub


text:
package hammer.util;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public final class FileFinderImpl implements FileFinder {

    public File[] findFiles(File baseDir, final String suffix) {
        List<File> files = find(baseDir, suffix);
        return files.toArray(new File[files.size()]);
    }

    private List<File> find(File baseDir, String suffix) {
        List<File> result = new ArrayList<File>();
        File[] files = baseDir.listFiles();
        for (File file : files) {
            check(suffix, result, file);
        }
        return result;
    }

    private void check(String suffix, List<File> result, File file) {
        if (matchingFile(suffix, file)) {
            result.add(file);
        } else if (file.isDirectory()) {
            List<File> children = find(file, suffix);
            result.addAll(children);
        }
    }

    private boolean matchingFile(String suffix, File file) {
        String name = file.getName();
        return file.isFile() && name.endsWith(suffix);
    }
}


text:
/*
 ================================================
 ABElectronics UK I2C Switch
 See CHANGELOG.md for version number
 ================================================

 The PCA9546A I2C switch contains 4 channels.  Each channel can be
 switched on or off independently.

 Required package: libi2c-dev
 sudo apt-get install libi2c-dev
 */

#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <time.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <linux/i2c-dev.h>

#define RESETPIN 27 // GPIO Reset Pin

// values used for I2C and GPIO communication
#define OUT 1
#define IN  0
#define LOW  0
#define HIGH 1
#define VALUE_MAX 30
#define BUFFER_MAX 3
#define DIRECTION_MAX 35

// local methods

static int i2cbus;
static const char *fileName = "/dev/i2c-1"; // change to /dev/i2c-0 if you are using a revision 0002 or 0003 model B
static uint8_t buf[10] = { 0 };

static uint8_t read_byte_data(uint8_t address) {

	if ((i2cbus = open(fileName, O_RDWR)) < 0) {
		printf("Failed to open i2c port for read %s \n", strerror(errno));
		exit(1);
	}

	if (ioctl(i2cbus, I2C_SLAVE, address) < 0) {
		printf("Failed to write to i2c port for read\n");
		exit(1);
	}

	if (read(i2cbus, buf, 1) != 1) { // Read back data into buf[]
		printf("Failed to read from slave\n");
		exit(1);
	}

	close(i2cbus);

	return (buf[0]);
}

static void write_byte_data(uint8_t address, uint8_t value) {
	if ((i2cbus = open(fileName, O_RDWR)) < 0) {
		printf("Failed to open i2c port for write\n");
		exit(1);
	}

	if (ioctl(i2cbus, I2C_SLAVE, address) < 0) {
		printf("Failed to write to i2c port for write\n");
		exit(1);
	}

	buf[0] = value;

	if ((write(i2cbus, buf, 1)) != 1) {
		printf("Failed to write to i2c device for write\n");
		exit(1);
	}

	close(i2cbus);
}

static uint8_t updatebyte(uint8_t byte, uint8_t bit, uint8_t value) {
	/*
	 internal method for setting the value of a single bit within a byte
	 */
	if (value == 0) {
		return (byte &= ~(1 << bit));

	} else {
		return (byte |= 1 << bit);
	}

}

static uint8_t checkbit(uint8_t byte, uint8_t bit) {
	/*
	 internal method for reading the value of a single bit within a byte
	 */
	if (byte & (1 << bit)) {
		return (1);
	} else {
		return (0);
	}
}

static int gpio_export(int pin) {

	char buffer[BUFFER_MAX];
	ssize_t bytes_written;
	int fd;

	fd = open("/sys/class/gpio/export", O_WRONLY);
	if (-1 == fd) {
		fprintf(stderr, "Failed to open export for writing!\n");
		return(-1);
	}

	bytes_written = snprintf(buffer, BUFFER_MAX, "%d", pin);
	write(fd, buffer, bytes_written);
	close(fd);
	return(0);
}

static int gpio_direction(int pin, int dir) {
	static const char s_directions_str[]  = "in\0out";
	char path[DIRECTION_MAX];
	int fd;

	snprintf(path, DIRECTION_MAX, "/sys/class/gpio/gpio%d/direction", pin);
	fd = open(path, O_WRONLY);
	if (-1 == fd) {
		fprintf(stderr, "Failed to open gpio direction for writing!\n");
		return(-1);
	}

	if (-1 == write(fd, &s_directions_str[IN == dir ? 0 : 3], IN == dir ? 2 : 3)) {
		fprintf(stderr, "Failed to set direction!\n");
		return(-1);
	}

	close(fd);
	return(0);
}

static int gpio_write(int pin, int value) {
	static const char s_values_str[] = "01";

	char path[VALUE_MAX];
	int fd;

	snprintf(path, VALUE_MAX, "/sys/class/gpio/gpio%d/value", pin);
	fd = open(path, O_WRONLY);
	if (-1 == fd) {
		fprintf(stderr, "Failed to open gpio value for writing!\n");
		return(-1);
	}

	if (1 != write(fd, &s_values_str[LOW == value ? 0 : 1], 1)) {
		fprintf(stderr, "Failed to write value!\n");
		return(-1);
	}

	close(fd);
	return(0);
}

// public methods

char switch_channel(uint8_t address, uint8_t channel) {
	/**
	* Enable the specified I2C channel and disable other channels
	* @param address - I2C address for the target device. Default = 0x70
	* @param channel - 1 to 4
	* @returns - 0 = success, -1 = error setting state
	*/
	if (address < 0x70 || address > 0x77){
		fprintf(stderr, "I2C address out of range. 0x70 - 0x77\n");
		return(-1);
	}
	if (channel < 1 || channel > 4){
		fprintf(stderr, "channel out of range. 1 - 4\n");
		return(-1);
	}
	char cval = 0;
	cval = updatebyte(cval, channel - 1, 1);
	write_byte_data(address, cval);
	return(0);
}

char set_channel_state(uint8_t address, uint8_t channel, uint8_t state) {
	/**
	* Sets the state of the specified I2C channel.
	* All other channels keep their existing state.
	* @param address - I2C address for the target device. Default = 0x70
	* @param channel - 1 to 4
	* @param state - 0 or 1
	* @returns - 0 = success, -1 = error setting state
	*/
	if (address < 0x70 || address > 0x77){
		fprintf(stderr, "I2C address out of range. 0x70 - 0x77\n");
		return(-1);
	}
	if (channel < 1 || channel > 4){
		fprintf(stderr, "channel out of range. 1 - 4\n");
		return(-1);
	}
	if (state > 1){
		fprintf(stderr, "state out of range. 0 or 1\n");
		return(-1);
	}
	char cval = read_byte_data(address);
	cval = updatebyte(cval, channel -1, state);
	write_byte_data(address, cval);
	return(0);
}

char get_channel_state(uint8_t address, uint8_t channel) {
	/**
	* Gets the state of the specified I2C channel
	* @param address - I2C address for the target device. Default = 0x70
	* @param channel - 1 to 4
	* @returns - 1 = on, 0 = off, -1 = error getting state
	*/
	if (address < 0x70 || address > 0x77){
		fprintf(stderr, "I2C address out of range. 0x70 - 0x77\n");
		return(-1);
	}
	if (channel < 1 || channel > 4){
		fprintf(stderr, "channel out of range. 1 - 4\n");
		return(-1);
	}
	char cval = read_byte_data(address);
	return (checkbit(cval, channel - 1));
}

char reset(){
	/**
	* Reset the I2C switch.  All channels are set to off.
	* @returns - 0 = reset complete, -1 = reset failed
	*/
	char failed = 0;

	//Enable GPIO pins

		if (-1 == gpio_export(RESETPIN))
			failed = 1;

		/*
		 * Set GPIO directions
		 */
		if (-1 == gpio_direction(RESETPIN, OUT))
			failed = 1;

	// set reset pin low
	if (-1 == gpio_write(RESETPIN, 0)) {
		failed = 1;
	}

	// wait 1ms before setting reset pin high
	usleep (1000);

	if (-1 == gpio_write(RESETPIN, 1)) {
		failed = 1;
	}

	// wait 1ms for the switch to reset
	usleep (1000);

	if (failed == 1){
		fprintf(stderr, "Failed to reset switch. GPIO error!\n");
		return(-1);
	}
	else{
		return (0);
	}
}


text:
package org.apache.camel.support.processor.validation;

import org.apache.camel.Exchange;
import org.apache.camel.ValidationException;

/**
 * An exception thrown if the XML header is not available on the inbound message
 */
public class NoXmlHeaderValidationException extends ValidationException {
    private static final long serialVersionUID = 4502520681354358599L;

    public NoXmlHeaderValidationException(Exchange exchange, String header) {
        super(exchange, "XML header \"" + header + "\" could not be found on the input message");
    }

    public NoXmlHeaderValidationException(Exchange exchange, String header, Throwable cause) {
        super("XML header \"" + header + "\"  could not found on the input message", exchange, cause);
    }
}


text:
#if !defined(BOOST_SPIRIT_X3_CALC8_COMMON_HPP)
#define BOOST_SPIRIT_X3_CALC8_COMMON_HPP

#include <boost/spirit/home/x3.hpp>

namespace client { namespace parser
{
    using x3::raw;
    using x3::lexeme;
    using x3::alpha;
    using x3::alnum;

    struct identifier_class;
    typedef x3::rule<identifier_class, std::string> identifier_type;
    identifier_type const identifier = "identifier";

    auto const identifier_def = raw[lexeme[(alpha | '_') >> *(alnum | '_')]];

    BOOST_SPIRIT_DEFINE(identifier);
}}

#endif


text:
<?php
return array (
  'Confirm your new email address' => 'Confirma tu nueva dirección de correo electrónico',
  'Confirm' => 'Confirmar',
  'Hello' => 'Hola',
  'You have requested to change your e-mail address.
Your new e-mail address is {newemail}.

To confirm your new e-mail address please click on the button below.' => 'Has solicitado cambiar tu dirección de correo electrónico.
Tu nueva dirección de correo electrónico es {newemail}.

Para confirmar tu nueva dirección de correo electrónico, por favor, haz clic en el botón de abajo.',
);


text:
import bcrypt, os, sqlite3
from bottle import auth_basic, delete, get, post, put, request, route, run

"""
API
---
GET    /key/<user>
PUT    /key
DELETE /messages
DELETE /messages/<msg_id>
GET    /messages
GET    /messages/<msg_id>
GET    /messages/status
POST   /messages/<user>
PUT    /password
"""

db_root = '/home/restdrop/data'

def get_db_path():
    user = request.auth[0]
    host = request.headers.get('Host')
    db_path = os.path.join(db_root, host, user)
    return db_path

def valid_user():
    db_path = get_db_path()
    if not os.path.isfile(db_path):
        abort(404, "User not found.")
        return False
    else:
        return True

def valid_credentials():
    if valid_user():
        db_path = get_db_path()
        db = sqlite3.connect(db_path)
        c = db.cursor()
        c.execute('SELECT * FROM Auth WHERE Id=hashed_pw')
        hashed_pw_record = c.fetchone()
        db.close()
        # extract hashed_pw from hashed_pw_record
        return bcrypt.hashpw(password, hashed_pw) == hashed_pw

@get('/key/<user>')
@get('/key/<user>/')
def get_key(user):
    if valid_user(user):
        db_path = get_db_path(request)
        db = sqlite3.connect(db_path)
        c = db.cursor()
        c.execute('SELECT * FROM Auth WHERE Id=key')
        key_record = c.fetchone()
        # provide key to response object
        db.close()
        Response.status = 200

@put('/key')
@put('/key/')
@auth_basic(valid_credentials)
def update_key(user):
    db_path = get_db_path(request)
    db = sqlite3.connect(db_path)
    c = db.cursor()
    payload = (key, )
    c.execute('INSERT OR REPLACE INTO Auth VALUES(key, ?)', payload)
    db.close()
    Response.status = 200

@delete('/messages')
@delete('/messages/')
@auth_basic(valid_credentials)
def delete_message():
    pass

@delete('/messages/<msg_id>')
@delete('/messages/<msg_id>/')
@auth_basic(valid_credentials)
def delete_message():
    pass

@get('/messages')
@get('/messages/')
@auth_basic(valid_credentials)
def get_messages():
    if true:
        # return dict of queue contents
        pass
    else:
        response.status = 401

@get('/messages/<msg_id>')
@get('/messages/<msg_id>/')
@auth_basic(valid_credentials)
def retrieve_message(msg_id):
    pass

@post('/messages/<user>')
@post('/messages/<user>/')
def post_message(user):
    if valid_user():
        db_path = get_db_path()
        db = sqlite3.connect(db_path)
        c = db.cursor()
        payload = (id, message) # where does the message come from?
        c.execute('INSERT INTO Messages(?) VALUES(?)', payload)
        db.close()
        Response.status = 201

@put('/password')
@put('/password/')
@auth_basic(valid_credentials)
def update_password():
    hashed_pw = bcrypt.hashpw(request.auth[1], bcrypt.gensalt())
    db_path = get_db_path(request)
    db = sqlite3.connect(db_path)
    c = db.cursor()
    payload = (hashed_pw,)
    c.execute('INSERT OR REPLACE INTO Auth VALUES(hash, ?)', payload)
    db.close()
    Response.status = 201

run(host='localhost', port=8192, debug=True)
# bottle.run(server='bjoern')


text:
//*******************************************************************************************//
//                                                                                //
// Download Free Evaluation Version From: https://bytescout.com/download/web-installer       //
//                                                                                //
// Also available as Web API! Get Your Free API Key: https://app.pdf.co/signup               //
//                                                                                //
// Copyright © 2017-2020 ByteScout, Inc. All rights reserved.                                //
// https://www.bytescout.com                                                                 //
// https://pdf.co                                                                            //
//                                                                                //
//*******************************************************************************************//

using System;
using System.Windows.Forms;

namespace ImportExportFromWinFormsDataGrid.CSharp
{
    class Program
    {
		[STAThread]
        static void Main(string[] args)
        {
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			Application.Run(new Form1());
        }
    }
}


text:
module Rater
  class TrueSkillRater
    def self.update_ratings winner, loser
      ratings_to_trueskill = {}
      ratings_to_trueskill[winner.rating] = winner.rating.to_trueskill
      ratings_to_trueskill[loser.rating] = loser.rating.to_trueskill

      trueskills_to_rank = { [ratings_to_trueskill[winner.rating]] => 1, [ratings_to_trueskill[loser.rating]] => 2}
      graph = Saulabs::TrueSkill::FactorGraph.new trueskills_to_rank
      graph.update_skills

      ratings_to_trueskill.each do |rating, trueskill|
        rating.update_rating! trueskill
      end
    end
  end
end


text:
using System;
using System.Runtime.InteropServices;

namespace Senzible.SDL
{
    [StructLayout(LayoutKind.Sequential)]
    public struct SDL_TextInputEvent
    {
        public SDL_EventType type;
        public UInt32 timestamp;
        public UInt32 windowID;
        public long text0;
        public long text1;
        public long text2;
        public long text3;
    }
}


text:
#ifndef SQUISH_RANGEFIT_H
#define SQUISH_RANGEFIT_H

#include "squish.h"
#include "colourfit.h"
#include "maths.h"

namespace squish {

class ColourSet;

class RangeFit : public ColourFit
{
public:
	RangeFit( ColourSet const* colours, int flags, float* metric );

private:
	virtual void Compress3( void* block );
	virtual void Compress4( void* block );

	Vec3 m_metric;
	Vec3 m_start;
	Vec3 m_end;
	float m_besterror;
};

} // squish

#endif // ndef SQUISH_RANGEFIT_H


text:
function create() {
  if [ "$#" -ne 1 ]
  then
        echo "Incorrect number of arguments"
        echo "Please specify the name of the new fiddle"
        exit
  fi

  fiddleSubDir="python"
  bornOnDate=$(date +"%m-%d-%y";)
  echo ${bornOnDate}

  #try
  (
      if [[ -d "../fiddles/${fiddleSubDir}/$1" ]]; then rm -R "../fiddles/${fiddleSubDir}/$1"; fi
      $(cp -rf "../fiddles/${fiddleSubDir}/template" "../fiddles/${fiddleSubDir}/$1") || exit 1
      $(voidSubstr '{{FiddleName}}' $1 "../fiddles/${fiddleSubDir}/$1/README.markdown";) || exit 2
      $(voidSubstr '{{BornOnDate}}' ${bornOnDate} "../fiddles/${fiddleSubDir}/$1/README.markdown";) || exit 2

  )
  #catch
  rc=$?
  case ${rc} in
      0)  echo "Done. The \"../fiddles/${fiddleSubDir}/$1\" directory has been initialized."
          ;;
      1)  echo "foo bar! failed to create the \"../fiddles/${fiddleSubDir}/$1\" directory."
          ;;
      2)  echo "foo bar! failed trying to update the \"../fiddles/${fiddleSubDir}/$1/app.js\" file."
    if [[ -d "../fiddles/${fiddleSubDir}/$1" ]]; then rm -R "../fiddles/${fiddleSubDir}/$1"; fi
        ;;
      *)  echo "foo bar! Something went wrong."
          if [[ -d "../fiddles/${fiddleSubDir}/$1" ]]; then rm -R "../fiddles/${fiddleSubDir}/$1"; fi
          ;;
  esac
  #finally
  exit ${rc}
}


text:
layout: post
title: Overwriting Stack CANARY - Primer
category: Exploitation
tags: Exploitation PoC
comments: true
---

> [canaries]({{site.url}}/assets/canaries)

Hello,

This video/tutorial is showing an example of how information leaks can lead to bypassing stack canaries.
The process is mostly explained via CLI comments, feel free to pause the video and look around the debugger, register values etc...
The video is playing x2 the speed

{% highlight bash %}
➜  canaries/  checksec canaries
RELRO           STACK CANARY      NX            PIE             RPATH      RUNPATH  FORTIFY FORTIFIED FORTIFY-able  FILE
Partial RELRO   Canary found      NX enabled    No PIE          No RPATH   No RUNPATH   Yes 2       41  canaries
{% endhighlight %}

<script type="text/javascript" src="https://asciinema.org/a/27001.js" id="asciicast-27001" async data-speed="2"></script>

Source code of the binary:

{% highlight C %}
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "utils.h"

#define STDIN 0

//gcc --static -fstack-protector-all -mpreferred-stack-boundary=2 -o canaries canaries_primer.c

void selectAMessage() {
    char buf[512];
    scanf("%s", buf);
    printf(buf);
    if(strcmp(buf, "A") == 0){
        printA();
    }else if(strcmp(buf,"B") == 0){
        printB();
    }else if(*buf == "C"){
        printC();
    }else if(buf == 1337){
        printf("\nExcuse me. I wanna learn how to hack!\n");
        exit(EXIT_FAILURE);
    }else{
        printf("\nSorry. Try again.\n");
        selectAMessage();
    }
    return;
}

void printA(){

    printf("\n\n");
    printf("|#-----------------------------------------------------#|\n");
    printf("|#     BYPASSING STACK CANARIES - Phrack Issue 0x38    #|\n");
    printf("|#-----------------------------------------------------#|\n\n");
    printf("'When a buffer overwrites a pointer...  The story of a restless mind.'\n"\
            "This article is an attempt to demonstrate that it is possible to exploit\n"\
            "stack overflow vulnerabilities on systems secured by StackGuard or StackShield\n"\
            "even in hostile environments (such as when the stack is non-executable). \n\n");
}

void printB(){
    printf("\n\n");
    printf("|#-----------------------------------------------------#|\n");
    printf("|#                  There is no spoon                  #|\n");
    printf("|#-----------------------------------------------------#|\n\n");
    printf("I talked with Crispin Cowan <crispin@cse.ogi.edu>, one of the StackGuard\n"\
            "developers and he proposed a remediation against above hack.  Here's his idea:\n"\
            "The XOR Random Canary defense:  here, we adopt Aaron Grier's ancient\n"\
            "proposal to xor the random canary with the return address.  The canary\n"\
            "validation code used on exit from functions then XOR's the return address\n"\
            "with the proper random canary (assigned to this function at exec() time)\n"\
            "to compute what the recorded random canary on the stack should be.  If the\n"\
            "attacker has hacked the return address, then the xor'd random canary will\n"\
            "not match.  The attacker cannot compute the canary to put on the stack\n"\
            "without knowing the random canary value.  This is effectively encryption\n"\
            "of the return address with the random canary for this function.\n"\
            "\n"\
            "The challenge here is to keep the attacker from learning the random\n"\
            "canary value.  Previously, we had proposed to do that by just surrounding\n"\
            "the canary table with red pages, so that buffer overflows could not be\n"\
            "used to extract canary values.  However, Emsi's [described above] attack\n"\
            "lets him synthesize pointers to arbitrary addresses.\n");
}

void printC(){
    printf("\n\n");
    printf("|#-----------------------------------------------------#|\n");
    printf("|#                    Authors' note                    #|\n");
    printf("|#-----------------------------------------------------#|\n\n");
    printf("This article is intellectual property of Lam3rZ Group.\n"\
            "Knowledge presented here is the intellectual property of all of mankind,\n"\
            "especially those who can understand it. :)\n");
}

int main(int argc, char* argv[])
{
    disable_buffering(stdout);
    printf("\n\n\n");
    printf("|#-----------------------------------------------------#|\n"\
           "|#           Welcome to Stack Canaries Primer          #|\n"\
           "|#-----------------------------------------------------#|\n"\
           "\n"
           "\t==> We are going to learn about stack canaries. <==\n"\
           "\t[+] I have three very important messages for you. Please choose A, B or C: ");
    selectAMessage();

    printf("\n...I hope you learned something...\n");

    printf("\nMany thanks to quend for letting me reuse her code from one of the RPISEC MBE labs.\n");

    printf("\n\t[===] The End !\n\n");
    return EXIT_SUCCESS;
}
{% endhighlight %}

* Special thanks to 'quend' for letting me re-use her code from one of the RPISEC MBE labs !


text:
<?php
/**
 * Created by PhpStorm.
 * User: kkeiper
 * Date: 9/4/14
 * Time: 11:14 AM
 */

namespace Kkeiper1103\SentryManager\commands;

use Illuminate\Console\Command;
use Config;
use Sentry;

use Cartalyst\Sentry\Groups\GroupNotFoundException;

class InstallGroupsCommand extends Command {

    protected $name = "sm:install.groups";

    protected $description = "Install The Groups In SentryManager's Configuration File.";

    public function fire()
    {
        $groups = Config::get("sentry-manager::groups");

        // install the groups
        foreach( $groups as $key => $value )
        {
            try
            {
                $g = Sentry::findGroupByName( $value['name'] );

                $g->permissions = $value['permissions'];

                $g->save();
            }
            // if the group isn't found, simply create it and move on.
            catch( GroupNotFoundException $e )
            {
                $g = Sentry::createGroup($value);
            }

            $this->line("Updated Group {$key}.");
        }
    }

}


text:
use prelude::*;

use std::rand;

use components::Position;
use physic::AABB;
use render::Drawable;

pub const FOOD_SIZE: u32 = 20;

pub fn init(_space: &mut Space, blackboard: &mut Blackboard) {
    blackboard.insert("food_counter", 0u8);
}

pub struct Spawner {
    texture: Shared<Texture>,
    counter: BlackboardEntry<u8>
}

impl Spawner {
    pub fn new(blackboard: &Blackboard) -> Spawner {
        let counter = blackboard.get_entry("food_counter");
        let texture = make_shared(Texture::new_from_file("resources/food.png").unwrap());

        Spawner {
            texture: texture,
            counter: counter
        }
    }

    fn spawn(&self, position: Vector2f, em: &mut EntityMapper, cm: &mut ComponentMapper) {
        let spawned = em.create();
        em.set_group(spawned, "food");

        let mut sprite = Sprite::new_with_texture(self.texture.clone()).unwrap();
        sprite.set_position(&position);

        cm.insert(spawned, Position(position));
        cm.insert(spawned, AABB(sprite.get_global_bounds()));
        cm.insert(spawned, Drawable { sprite: sprite });

        *self.counter.borrow_mut() += 1;
        println!("food spawned: {:?}", position);
    }
}

impl System for Spawner {
    fn fixed_update(&mut self, em: &mut EntityMapper, cm: &mut ComponentMapper) {
        while *self.counter.borrow() < 2 {
            let position = Vector2f {
                x: ((rand::random::<u32>() % (WIN_WIDTH as u32/FOOD_SIZE))*FOOD_SIZE) as f32,
                y: ((rand::random::<u32>() % (WIN_HEIGHT as u32/FOOD_SIZE))*FOOD_SIZE) as f32
            };

            self.spawn(position, em, cm);
        }
    }

    fn on_entity_removed(&mut self, em: &EntityMapper, _cm: &ComponentMapper, entity: Entity) {
        if em.has_group(entity, "food") {
            *self.counter.borrow_mut() -= 1;
        }
    }
}


text:
<!doctype html>

    <title>Talk - Postgres Present and Future - PyGotham 2016</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../../../static/css/app.css">

    <meta name="msapplication-TileColor" content="#182833">
    <meta name="msapplication-TileImage" content="/static/img/metro-icon.png">
    <link rel="apple-touch-icon-precomposed" href="../../../static/img/apple-touch-icon.png">
    <link rel="icon" href="../../../static/img/favicon.png">

          Menu

              About

Code of Conduct

FAQ

Privacy Policy

What is PyGotham?

              Events

Social

Talk List

Talk Schedule

              Registration

Information

              Speaking

Call for Proposals

              Sponsors

Sponsors

Sponsorship Prospectus

              Venue

Hotels

Information

Postgres Present and Future

      03:15 PM - 03:40 PM on July 16, 2016, Room CR6

        Craig Kerstiens

Audience level:

novice

Watch:

https://www.youtube.com/watch?v=lgXJvAM2UJk

Description

Postgres 9.5 was just released a few months ago and has a number of of new improvements we'll walk through including new JSONB functions, some analytical tooling, and of course upsert. Then we'll dive into what's coming in Postgres 9.6, the next Postgres release. Finally, we'll round it out with some look at the ecosystem of extensions.

Abstract

Postgres 9.5 was just released a few months ago (as of the time of the talk). It has a number of new improvements including new JSONB functions, some analytical tooling, and of course upsert. We'll take a tour through each of these new features, how you use them with Python, Django, or just natively in SQL.

Then we'll dive into what's coming in Postgres 9.6 as it will be nearly feature freeze timeframe you can start to know what's coming in the next 6 month timeframe.

Finally we'll take a tour of some extensions. Extensions provide a great way to extend Postgres and the community around them has slowly built up over time. This includes Hyperloglog, hypothetical indexes, Citus, and possibly more.

        PyGotham 2016 is a production of Big Apple Py.

        Artwork by Jessie Sima. UX by Allison Cameron. Hosting provided by Rackspace.

        Questions? Comments? Please contact organizers@pygotham.org.


text:
package com.elastisys.scale.cloudpool.commons.basepool.poolfetcher.impl;

import static com.elastisys.scale.cloudpool.commons.basepool.alerts.AlertTopics.POOL_FETCH;
import static java.lang.String.format;

import java.util.Arrays;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;

import org.joda.time.DateTime;
import org.joda.time.Duration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.elastisys.scale.cloudpool.api.CloudPoolException;
import com.elastisys.scale.cloudpool.api.types.MachinePool;
import com.elastisys.scale.cloudpool.commons.basepool.StateStorage;
import com.elastisys.scale.cloudpool.commons.basepool.config.PoolFetchConfig;
import com.elastisys.scale.cloudpool.commons.basepool.poolfetcher.FetchOption;
import com.elastisys.scale.cloudpool.commons.basepool.poolfetcher.PoolFetcher;
import com.elastisys.scale.commons.json.persistence.PersistentState;
import com.elastisys.scale.commons.json.types.TimeInterval;
import com.elastisys.scale.commons.net.alerter.Alert;
import com.elastisys.scale.commons.net.alerter.AlertBuilder;
import com.elastisys.scale.commons.net.alerter.AlertSeverity;
import com.elastisys.scale.commons.net.alerter.Alerter;
import com.elastisys.scale.commons.util.time.UtcTime;
import com.google.common.eventbus.EventBus;

/**
 * A {@link PoolFetcher} that caches {@link MachinePool}s retrieved by a wrapped
 * {@link PoolFetcher} for a configurable time (thereby also masking failures to
 * retrieve pool members from the backing cloud API).
 */
public class CachingPoolFetcher implements PoolFetcher {
    private static final Logger LOG = LoggerFactory.getLogger(CachingPoolFetcher.class);

    /** Wrapped {@link PoolFetcher} to delegate actual fetching to. */
    private final PoolFetcher delegate;
    /** Controls fetch behavior. */
    private final PoolFetchConfig fetchConfig;
    /** The last pool fetch error. */
    private Throwable lastFetchError;
    /**
     * {@link CountDownLatch} that can be used to wait for the first fetch
     * attempt to complete (successful or not). See {@link #awaitFirstFetch()}.
     */
    private final CountDownLatch firstFetchComplete;

    /**
     * {@link EventBus} used to post {@link Alert} events that are to be
     * forwarded by configured {@link Alerter}s (if any).
     */
    private final EventBus eventBus;

    private final PersistentState<MachinePool> cachedMachinePool;

    /** Task that periodically refreshes the cached {@link MachinePool}. */
    private final ScheduledFuture<?> refreshTask;

    /**
     * Creates a {@link CachingPoolFetcher} with a given {@link PoolFetcher}
     * delegate and configuration. The first attempt to fetch the machine pool
     * will be executed immediately and can be waited for using
     * {@link #awaitFirstFetch()}.
     *
     * @param delegate
     *            Wrapped {@link PoolFetcher} to delegate actual fetching to.
     * @param fetchConfig
     *            Controls fetch behavior.
     */
    public CachingPoolFetcher(StateStorage stateStorage, PoolFetcher delegate, PoolFetchConfig fetchConfig,
            ScheduledExecutorService executor, EventBus eventBus) {
        this.delegate = delegate;
        this.fetchConfig = fetchConfig;
        this.eventBus = eventBus;

        this.cachedMachinePool = new PersistentState<MachinePool>(stateStorage.getCachedMachinePoolFile(),
                MachinePool.class);
        if (this.cachedMachinePool.get().isPresent()) {
            LOG.info("recovered cached machine pool: {}", this.cachedMachinePool.get().get());
        } else {
            LOG.info("no previously stored machine pool found.");
        }
        this.lastFetchError = null;
        this.firstFetchComplete = new CountDownLatch(1);

        this.refreshTask = startPeriodicalFetch(executor, fetchConfig);

        LOG.debug("started {}", getClass().getSimpleName());
    }

    private ScheduledFuture<?> startPeriodicalFetch(ScheduledExecutorService executor, PoolFetchConfig fetchConfig) {
        TimeInterval refreshInterval = fetchConfig.getRefreshInterval();
        return executor.scheduleWithFixedDelay(new PoolRefreshTask(this), 0L, refreshInterval.getTime(),
                refreshInterval.getUnit());
    }

    /**
     * Waits for the first pool fetch attempt to complete. The method returns
     * when the first attempt has completed (successful or not).
     *
     * @throws InterruptedException
     */
    public CachingPoolFetcher awaitFirstFetch() {
        try {
            this.firstFetchComplete.await();
            return this;
        } catch (InterruptedException e) {
            throw new RuntimeException(
                    String.format("interrupted while waiting for first pool fetch: %s", e.getMessage()), e);
        }
    }

    @Override
    public void close() {
        // stop periodical execution of cache update task
        LOG.debug("stopping {} ...", getClass().getSimpleName());
        if (this.refreshTask != null) {
            this.refreshTask.cancel(true);
        }
    }

    @Override
    public MachinePool get(FetchOption... options) throws CloudPoolException {
        if (forceRefresh(options)) {
            refreshCache();
            return this.cachedMachinePool.get().get();
        }

        if (cacheEmpty()) {
            LOG.debug("no machine pool in cache yet. failing ...");
            poolUnreachableFailure();
        }

        if (reachabilityTimeoutExceeded(this.cachedMachinePool.get().get())) {
            // pool has not been reachable since reachabilityTimeout
            LOG.debug("cached pool older than reachabilityTimeout. failing ...");
            reachabilityTimeoutFailure();
        }

        MachinePool cachedPool = this.cachedMachinePool.get().get();
        LOG.debug("responding with cached machine pool: {}", cachedPool);
        return cachedPool;
    }

    private void reachabilityTimeoutFailure() {
        throw new PoolReachabilityTimeoutException(String.format(
                "Could not serve a sufficiently up-to-date machine pool (%d %s). "
                        + "Cloud API presumably unreachable.",
                reachabilityTimeout().getTime(), reachabilityTimeout().getUnit().name().toLowerCase()));
    }

    private void poolUnreachableFailure() {
        Throwable lastError = this.lastFetchError;
        if (lastError != null) {
            throw new PoolUnreachableException(String.format(
                    "Could not serve machine pool: no fetch attempt " + "has been successful yet. Latest error: %s",
                    lastError.getMessage()), lastError);
        } else {
            throw new PoolUnreachableException("Could not serve machine pool: no fetch attempt has completed yet.");
        }
    }

    private boolean cacheEmpty() {
        return !this.cachedMachinePool.get().isPresent();
    }

    private TimeInterval reachabilityTimeout() {
        return this.fetchConfig.getReachabilityTimeout();
    }

    /**
     * Determines if the cached {@link MachinePool} is too old. That is, returns
     * true if the reachability timeout (or maximum fault masking
     * time) has been exceeded.
     *
     * @param machinePool
     * @return
     */
    private boolean reachabilityTimeoutExceeded(MachinePool machinePool) {
        DateTime now = UtcTime.now();

        DateTime cacheTimestamp = machinePool.getTimestamp();
        long cacheAgeSeconds = new Duration(cacheTimestamp, now).getStandardSeconds();

        TimeInterval reachabilityTimeout = reachabilityTimeout();
        long maxAgeSeconds = TimeUnit.SECONDS.convert(reachabilityTimeout.getTime(), reachabilityTimeout.getUnit());

        return cacheAgeSeconds >= maxAgeSeconds;
    }

    private boolean forceRefresh(FetchOption... options) {
        return options != null && Arrays.asList(options).contains(FetchOption.FORCE_REFRESH);
    }

    /**
     * Forces a refresh of the cached machine pool. In case of failure, an
     * {@link Alert} is posted on the {@link EventBus} and a
     * {@link CloudPoolException} is thrown.
     *
     * @throws CloudPoolException
     */
    void refreshCache() throws CloudPoolException {
        LOG.debug("refreshing cached cloud pool ...");
        try {
            this.cachedMachinePool.update(this.delegate.get(FetchOption.FORCE_REFRESH));
        } catch (Throwable e) {
            this.lastFetchError = e;
            String message = format("machine pool refresh failed: %s", e.getMessage());
            Alert alert = AlertBuilder.create().topic(POOL_FETCH.name()).severity(AlertSeverity.WARN).message(message)
                    .build();
            this.eventBus.post(alert);
            LOG.warn(message, e);
            throw new CloudPoolException(message, e);
        } finally {
            this.firstFetchComplete.countDown();
        }
    }

    /** Task that, when executed, updates the machine pool cache. */
    public static class PoolRefreshTask implements Runnable {
        private final CachingPoolFetcher poolFetcher;

        public PoolRefreshTask(CachingPoolFetcher poolFetcher) {
            this.poolFetcher = poolFetcher;
        }

        @Override
        public void run() {
            try {
                this.poolFetcher.refreshCache();
            } catch (Exception e) {
                // just catch exception to prevent periodical execution from
                // aborting
            }
        }
    }
}


text:
typedef void (^CDUnknownBlockType)(void); // return type and parameters are unknown

#pragma mark Typedef'd Structures

typedef struct {
    unsigned short _field1[64];
    struct __CFString *_field2;
    unsigned short *_field3;
    char *_field4;
    struct {
        long long _field1;
        long long _field2;
    } _field5;
    long long _field6;
    long long _field7;
} CDStruct_f9502b4c;

#pragma mark -

//
// File: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssistantServices.framework/AssistantServices
// UUID: BD3CFCBF-E058-36E2-B3B9-8FE550B8CA13
//
//                           Arch: x86_64
//                Current version: 1.0.0
//          Compatibility version: 1.0.0
//                 Source version: 813.1.0.0.0
//            Minimum iOS version: 8.0.0
//                    SDK version: 8.0.0
//
// Objective-C Garbage Collection: Unsupported
//

@protocol AFClientService <NSObject>
- (oneway void)_refreshAssistantValidation;
- (oneway void)_startSpeechWithURL:(NSURL *)arg1 isNarrowBand:(_Bool)arg2;
- (oneway void)_barrierWithReply:(void (^)(void))arg1;
- (oneway void)_clearAssistantInfoForAccountIdentifier:(NSString *)arg1;
- (oneway void)_fetchAppContextWithReply:(void (^)(NSArray *))arg1;
- (oneway void)_broadcastCommandDictionary:(NSDictionary *)arg1;
- (oneway void)_performCommandDictionary:(NSDictionary *)arg1 forBundleIdentifier:(NSString *)arg2 reply:(void (^)(NSDictionary *, NSError *))arg3;
- (oneway void)_sendLargeData:(NSData *)arg1 reply:(void (^)(NSString *, NSData *))arg2;
- (oneway void)_pingServiceForIdentifier:(NSString *)arg1 reply:(void (^)(NSDictionary *))arg2;
- (oneway void)_listInstalledServicesWithReply:(void (^)(NSDictionary *))arg1;
- (oneway void)recordFailureMetricsForError:(NSError *)arg1;
- (oneway void)recordMetrics:(AFMetrics *)arg1;
- (oneway void)markUsefulUserResultPresentationTimestamp:(double)arg1;
- (oneway void)telephonyRequestCompleted;
- (oneway void)prepareForPhoneCall;
- (oneway void)setAlertContextDirty;
- (oneway void)setOverriddenApplicationContext:(NSString *)arg1 withSMSContext:(NSDictionary *)arg2;
- (oneway void)setApplicationContextForApplicationInfos:(NSArray *)arg1;
- (oneway void)rollbackClearContext;
- (oneway void)clearContext;
- (oneway void)performGenericAceCommand:(NSDictionary *)arg1 interruptOutstandingRequest:(_Bool)arg2 reply:(void (^)(_Bool))arg3;
- (oneway void)requestStateUpdateWithReply:(void (^)(_Bool, unsigned int))arg1;
- (oneway void)stopSpeechWithOptions:(AFSpeechRequestOptions *)arg1;
- (oneway void)cancelSpeech;
- (oneway void)startSpeechCorrectionWithText:(NSString *)arg1 forCorrectionContext:(NSDictionary *)arg2;
- (oneway void)rollbackRequest;
- (oneway void)cancelRequest;
- (oneway void)updateSpeechOptions:(AFSpeechRequestOptions *)arg1;
- (oneway void)startAcousticIDRequestWithOptions:(AFSpeechRequestOptions *)arg1 context:(NSString *)arg2;
- (oneway void)startSpeechPronunciationRequestWithOptions:(AFSpeechRequestOptions *)arg1 pronunciationContext:(SASPronunciationContext *)arg2;
- (oneway void)startSpeechRequestWithOptions:(AFSpeechRequestOptions *)arg1;
- (oneway void)startContinuationRequestWithUserInfo:(NSDictionary *)arg1;
- (oneway void)startDirectActionRequest:(NSString *)arg1;
- (oneway void)sendAssistantRequest:(NSString *)arg1 reply:(void (^)(void))arg2;
- (oneway void)endSession;
- (oneway void)setVoiceOverIsActive:(_Bool)arg1;
- (oneway void)setIsStark:(_Bool)arg1;
- (oneway void)setLockState:(_Bool)arg1 showingLockScreen:(_Bool)arg2;
- (oneway void)forceAudioSessionActive;
@end

@protocol AFClientServiceDelegate <NSObject>
- (oneway void)speechRecognitionDidFail:(NSError *)arg1;
- (oneway void)speechRecognizedPartialResult:(SASSpeechPartialResult *)arg1;
- (oneway void)speechRecognized:(SASSpeechRecognized *)arg1;
- (oneway void)speechRecordingDidFail:(NSError *)arg1;
- (oneway void)speechRecordingDidCancel;
- (oneway void)speechRecordingDidEnd;
- (oneway void)speechRecordingDidUpdateAveragePower:(float)arg1 peakPower:(float)arg2;
- (oneway void)speechRecordingDidChangeAVRecordRoute:(NSString *)arg1;
- (oneway void)speechRecordingDidBeginOnAVRecordRoute:(NSString *)arg1;
- (oneway void)speechRecordingWillBegin;
- (oneway void)getBulletinContext:(void (^)(NSArray *))arg1;
- (oneway void)acousticIDRequestDidFinishWithSuccess:(_Bool)arg1;
- (oneway void)musicWasDetected;
- (oneway void)acousticIDRequestWillStart;
- (oneway void)requestRequestedDismissAssistant;
- (oneway void)requestRequestedOpenURL:(NSURL *)arg1 reply:(void (^)(_Bool))arg2;
- (oneway void)requestDidFailWithError:(NSError *)arg1 requestClass:(NSString *)arg2;
- (oneway void)requestDidReceiveCommand:(AceObject<SAAceCommand> *)arg1 reply:(void (^)(AceObject<SAAceCommand> *))arg2;
- (oneway void)requestDidFinish;
- (oneway void)shouldSpeakChanged:(_Bool)arg1;
@end

@protocol AFDictationService <NSObject>
- (oneway void)_startDictationWithURL:(NSURL *)arg1 isNarrowBand:(_Bool)arg2 language:(NSString *)arg3 options:(AFDictationOptions *)arg4;
- (oneway void)requestStateUpdateWithReply:(void (^)(unsigned int))arg1;
- (oneway void)endSession;
- (oneway void)preheat;
- (oneway void)sendSpeechCorrectionInfo:(AFSpeechCorrectionInfo *)arg1 forCorrectionContext:(NSDictionary *)arg2;
- (oneway void)updateSpeechOptions:(AFSpeechRequestOptions *)arg1;
- (oneway void)stopSpeechWithOptions:(AFSpeechRequestOptions *)arg1;
- (oneway void)cancelSpeech;
- (oneway void)startDictationWithLanguageCode:(NSString *)arg1 options:(AFDictationOptions *)arg2 speechOptions:(AFSpeechRequestOptions *)arg3;
- (oneway void)prepareWithOptions:(AFSpeechRequestOptions *)arg1;
@end

@protocol AFDictationServiceDelegate <NSObject>
- (oneway void)speechDidFinishWritingAudioFile:(NSFileHandle *)arg1 error:(NSError *)arg2;
- (oneway void)speechRecognitionDidFail:(NSError *)arg1;
- (oneway void)speechDidRecognizeTranscriptionObjects:(NSArray *)arg1 usingSpeechModel:(NSString *)arg2;
- (oneway void)speechDidRecognizeTokens:(NSArray *)arg1 usingSpeechModel:(NSString *)arg2;
- (oneway void)speechDidRecognizePhrases:(NSArray *)arg1 usingSpeechModel:(NSString *)arg2 correctionContext:(NSDictionary *)arg3;
- (oneway void)speechRecordingDidFail:(NSError *)arg1;
- (oneway void)speechRecordingDidCancel;
- (oneway void)speechRecordingDidEnd;
- (oneway void)speechRecordingDidUpdateAveragePower:(float)arg1 peakPower:(float)arg2;
- (oneway void)speechRecordingDidBegin;
- (oneway void)speechRecordingWillBegin;
@end

@protocol AFManagedStorageService <NSObject>
- (oneway void)fetchManagedStoreObjectForKey:(NSString *)arg1 reply:(void (^)(NSDictionary *))arg2;
- (oneway void)setManagedStoreObject:(NSDictionary *)arg1 forKey:(NSString *)arg2;
@end

@protocol AFManagedStore <NSObject>
- (void)setDomainObject:(NSDictionary *)arg1 forKey:(NSString *)arg2;
- (NSDictionary *)domainObjectForKey:(NSString *)arg1;
@end

@protocol AFSettingsService <NSObject>
- (oneway void)setLanguage:(NSString *)arg1 withCompletion:(void (^)(void))arg2;
- (oneway void)setOutputVoice:(AFVoiceInfo *)arg1 withCompletion:(void (^)(void))arg2;
- (oneway void)getAvailableVoices:(void (^)(NSArray *))arg1;
- (oneway void)_syncDataWithAnchorKeys:(NSArray *)arg1 forceReset:(_Bool)arg2 reply:(void (^)(NSArray *))arg3;
- (oneway void)barrierWithReply:(void (^)(void))arg1;
- (oneway void)_killDaemon;
- (oneway void)setDictationEnabled:(_Bool)arg1;
- (oneway void)setAssistantEnabled:(_Bool)arg1;
- (oneway void)setActiveAccountIdentifier:(NSString *)arg1;
- (oneway void)deleteAccountWithIdentifier:(NSString *)arg1;
- (oneway void)saveAccountWithMessageDictionary:(NSDictionary *)arg1 setActive:(_Bool)arg2;
- (oneway void)retrieveAccountMessageDictionariesWithReply:(void (^)(NSArray *))arg1;
- (oneway void)fetchSupportedLanguagesWithReply:(void (^)(NSArray *, NSError *))arg1;
@end

@protocol AFSiriResponseHandling <NSObject>
- (void)handleFailureOfRequest:(AFSiriRequest *)arg1 error:(NSError *)arg2;
- (void)handleSiriResponse:(AFSiriResponse *)arg1;
@end

@protocol AFSiriTaskHandling <NSObject>
- (void)handleSiriTask:(AFSiriTask *)arg1;
@end

@protocol AFSpeakableNamespaceProvider <NSObject>
- (NSString *)stringForExpression:(NSString *)arg1;

@optional
- (void)setAssistantBulletin:(AFBulletin *)arg1;
- (NSString *)identifier;
- (id)initWithAceObject:(AceObject *)arg1;
@end

@protocol AFTranscriptionType <NSObject, NSSecureCoding>
@end

@protocol BSXPCCoding <NSObject>
- (void)encodeWithXPCDictionary:(NSObject<OS_xpc_object> *)arg1;
- (id)initWithXPCDictionary:(NSObject<OS_xpc_object> *)arg1;
@end

@protocol NSCoding
- (id)initWithCoder:(NSCoder *)arg1;
- (void)encodeWithCoder:(NSCoder *)arg1;
@end

@protocol NSCopying
- (id)copyWithZone:(struct _NSZone *)arg1;
@end

@protocol NSObject
@property(readonly, copy) NSString *description;
@property(readonly) Class superclass;
@property(readonly) unsigned long long hash;
- (struct _NSZone *)zone;
- (unsigned long long)retainCount;
- (id)autorelease;
- (oneway void)release;
- (id)retain;
- (_Bool)respondsToSelector:(SEL)arg1;
- (_Bool)conformsToProtocol:(Protocol *)arg1;
- (_Bool)isMemberOfClass:(Class)arg1;
- (_Bool)isKindOfClass:(Class)arg1;
- (_Bool)isProxy;
- (id)performSelector:(SEL)arg1 withObject:(id)arg2 withObject:(id)arg3;
- (id)performSelector:(SEL)arg1 withObject:(id)arg2;
- (id)performSelector:(SEL)arg1;
- (id)self;
- (Class)class;
- (_Bool)isEqual:(id)arg1;

@optional
@property(readonly, copy) NSString *debugDescription;
@end

@protocol NSSecureCoding <NSCoding>
+ (_Bool)supportsSecureCoding;
@end

@protocol NSXPCListenerDelegate <NSObject>

@optional
- (_Bool)listener:(NSXPCListener *)arg1 shouldAcceptNewConnection:(NSXPCConnection *)arg2;
@end

@interface AFAccount : NSObject
{
    _Bool _isActive;
    NSString *_identifier;
    NSString *_label;
    NSString *_assistantIdentifier;
    NSString *_speechIdentifier;
    NSString *_hostname;
    NSString *_predefinedServer;
    NSString *_aceHost;
    NSDictionary *_connectionPolicy;
    NSDate *_connectionPolicyDate;
    NSString *_connectionPolicyHostname;
    NSString *_group;
    NSDictionary *_lastSyncDates;
    NSString *_localeIdentifier;
}

@property(readonly, nonatomic) _Bool isActive; // @synthesize isActive=_isActive;
@property(copy, nonatomic) NSString *localeIdentifier; // @synthesize localeIdentifier=_localeIdentifier;
@property(copy, nonatomic) NSDictionary *lastSyncDates; // @synthesize lastSyncDates=_lastSyncDates;
@property(copy, nonatomic) NSString *group; // @synthesize group=_group;
@property(copy, nonatomic) NSString *connectionPolicyHostname; // @synthesize connectionPolicyHostname=_connectionPolicyHostname;
@property(copy, nonatomic) NSDate *connectionPolicyDate; // @synthesize connectionPolicyDate=_connectionPolicyDate;
@property(copy, nonatomic) NSDictionary *connectionPolicy; // @synthesize connectionPolicy=_connectionPolicy;
@property(copy, nonatomic) NSString *aceHost; // @synthesize aceHost=_aceHost;
@property(copy, nonatomic) NSString *predefinedServer; // @synthesize predefinedServer=_predefinedServer;
@property(copy, nonatomic) NSString *hostname; // @synthesize hostname=_hostname;
@property(copy, nonatomic) NSString *speechIdentifier; // @synthesize speechIdentifier=_speechIdentifier;
@property(copy, nonatomic) NSString *assistantIdentifier; // @synthesize assistantIdentifier=_assistantIdentifier;
@property(copy, nonatomic) NSString *label; // @synthesize label=_label;
@property(copy, nonatomic) NSString *identifier; // @synthesize identifier=_identifier;
- (void).cxx_destruct;
- (id)messageDictionary;
- (id)initWithMessageDictionary:(id)arg1;
- (id)description;

@end

@interface AFAggregator : NSObject
{
    unsigned long long _type;
    double _startTime;
    _Bool _hasActiveRequest;
    _Bool _sessionIsRetrying;
    _Bool _retryPrefersWWAN;
}

+ (void)logPingTimeout;
+ (void)logDictationCancelled;
+ (void)logDictationSucceeded;
+ (void)logDictationFailedWithError:(id)arg1;
+ (void)logDictationStarted;
+ (void)logSiriRequestCancelled;
+ (void)logSiriRequestSucceeded;
+ (void)logSiriRequestFailedWithError:(id)arg1;
+ (void)logSiriOtherRequestStarted;
+ (void)logSiriSpeechRequestStarted;
+ (id)_fullAggDKeyWithPrefix:(id)arg1 error:(id)arg2;
+ (void)logRequestCancelAfterSeconds:(double)arg1;
+ (void)missedAlertContextForRequest;
+ (void)missedAppContextForRequest;
+ (void)logRequestCompletedWithDuration:(double)arg1;
+ (id)_stringForGatekeeperType:(unsigned long long)arg1;
+ (void)logStarkGatekeeperAppearedForType:(unsigned long long)arg1;
+ (void)logStarkGatekeeperDismissedManuallyForType:(unsigned long long)arg1;
+ (void)logHomeButtonPressToActivationDuration:(double)arg1;
+ (void)logTimeToBeepWithDuration:(double)arg1;
@property(nonatomic) _Bool hasActiveRequest; // @synthesize hasActiveRequest=_hasActiveRequest;
@property(nonatomic) unsigned long long connectionType; // @synthesize connectionType=_type;
- (void)speechResponseFailure;
- (void)speechResponseReceived;
- (void)startWaitingForSpeechResponse;
- (void)beginSessionRetryPreferringWWAN:(_Bool)arg1;
- (void)connectionDidDrop;
- (void)connectionDidFail;
- (void)recordSessionRetrySuccess;
- (void)recordFailure:(int)arg1 forConnectionType:(unsigned long long)arg2;
- (void)recordSuccessForConnectionType:(unsigned long long)arg1 isWarm:(_Bool)arg2 forTimeInterval:(double)arg3;

@end

@interface AFApplicationInfo : NSObject <NSSecureCoding>
{
    int _pid;
    NSString *_identifier;
}

+ (_Bool)supportsSecureCoding;
@property(nonatomic) int pid; // @synthesize pid=_pid;
@property(copy, nonatomic) NSString *identifier; // @synthesize identifier=_identifier;
- (void).cxx_destruct;
- (id)description;
- (unsigned long long)hash;
- (_Bool)isEqual:(id)arg1;
- (id)initWithCoder:(id)arg1;
- (void)encodeWithCoder:(id)arg1;

@end

@interface AFBulletin : NSObject <NSSecureCoding>
{
    _Bool _read;
    _Bool _allDay;
    NSString *_bulletinID;
    NSDate *_date;
    NSDate *_endDate;
    NSString *_message;
    NSString *_modalAlertContentMessage;
    NSDate *_recencyDate;
    NSString *_sectionID;
    NSString *_subtitle;
    NSString *_timeZone;
    NSString *_title;
    NSString *_displayName;
}

+ (_Bool)supportsSecureCoding;
@property(copy, nonatomic) NSString *displayName; // @synthesize displayName=_displayName;
@property(readonly, copy, nonatomic) NSString *title; // @synthesize title=_title;
@property(readonly, copy, nonatomic) NSString *timeZone; // @synthesize timeZone=_timeZone;
@property(readonly, copy, nonatomic) NSString *subtitle; // @synthesize subtitle=_subtitle;
@property(readonly, copy, nonatomic) NSString *sectionID; // @synthesize sectionID=_sectionID;
@property(readonly, copy, nonatomic) NSDate *recencyDate; // @synthesize recencyDate=_recencyDate;
@property(readonly, copy, nonatomic) NSString *modalAlertContentMessage; // @synthesize modalAlertContentMessage=_modalAlertContentMessage;
@property(readonly, copy, nonatomic) NSString *message; // @synthesize message=_message;
@property(readonly, nonatomic, getter=isAllDay) _Bool allDay; // @synthesize allDay=_allDay;
@property(readonly, copy, nonatomic) NSDate *endDate; // @synthesize endDate=_endDate;
@property(readonly, copy, nonatomic) NSDate *date; // @synthesize date=_date;
@property(readonly, copy, nonatomic) NSString *bulletinID; // @synthesize bulletinID=_bulletinID;
@property(nonatomic, getter=isRead) _Bool read; // @synthesize read=_read;
- (void).cxx_destruct;
- (void)encodeWithCoder:(id)arg1;
- (id)initWithCoder:(id)arg1;
- (void)setBulletin:(id)arg1;

@end

@interface AFConnection : NSObject
{
    NSXPCConnection *_connection;
    NSString *_outstandingRequestClass;
    NSArray *_cachedBulletins;
    _Bool _hasActiveRequest;
    _Bool _hasActiveTimeout;
    NSMutableDictionary *_replyHandlerForAceId;
    unsigned int _stateInSync:1;
    unsigned int _shouldSpeak:1;
    unsigned int _isCapturingSpeech:1;
    unsigned int _hasOutstandingRequest:1;
    unsigned int _audioSessionID;
    float _averagePower;
    float _peakPower;
    unsigned int _clientStateIsInSync:1;
    unsigned int _voiceOverIsActive:1;
    id <AFAssistantUIService> _delegate;
    id <AFSpeechDelegate> _speechDelegate;
}

+ (void)preheat;
+ (void)preheatWithStyle:(long long)arg1;
+ (void)defrost;
+ (id)outputVoice;
+ (_Bool)isReadyForLanguageCode:(id)arg1;
+ (id)currentLanguageCode;
+ (_Bool)userDataSyncNeeded;
+ (void)stopMonitoringAvailability;
+ (_Bool)isAvailable;
+ (void)beginMonitoringAvailability;
+ (_Bool)assistantIsSupported;
+ (_Bool)assistantIsSupportedForLanguageCode:(id)arg1 error:(id *)arg2;
+ (void)initialize;
@property(nonatomic) __weak id <AFSpeechDelegate> speechDelegate; // @synthesize speechDelegate=_speechDelegate;
@property(nonatomic) __weak id <AFAssistantUIService> delegate; // @synthesize delegate=_delegate;
- (void).cxx_destruct;
- (void)usefulUserResultWillPresent;
- (void)telephonyRequestCompleted;
- (void)prepareForPhoneCall;
- (void)setAlertContextWithBulletins:(id)arg1;
- (void)setOverriddenApplicationContext:(id)arg1 withSMSContext:(id)arg2;
- (void)setApplicationContextForApplicationInfos:(id)arg1;
- (void)clearContext;
- (void)sendReplyCommand:(id)arg1;
- (void)sendGenericAceCommand:(id)arg1 conflictHandler:(CDUnknownBlockType)arg2;
- (void)sendGenericAceCommand:(id)arg1;
- (float)peakPower;
- (float)averagePower;
- (unsigned int)audioSessionID;
- (_Bool)shouldSpeak;
@property(readonly, nonatomic) _Bool isRecording;
- (void)startRequestWithCorrectedText:(id)arg1 forSpeechIdentifier:(id)arg2;
- (void)rollbackRequest;
- (void)rollbackClearContext;
- (void)recordMetrics:(id)arg1;
- (void)updateSpeechOptions:(id)arg1;
- (void)stopSpeechWithOptions:(id)arg1;
- (void)stopSpeech;
- (void)cancelSpeech;
- (void)startAcousticIDRequestWithOptions:(id)arg1;
- (void)startSpeechPronunciationRequestWithOptions:(id)arg1 pronunciationContext:(id)arg2;
- (void)startSpeechRequestWithOptions:(id)arg1;
- (void)startContinuationRequestWithUserInfo:(id)arg1;
- (void)startDirectActionRequestWithString:(id)arg1;
- (void)startRequestWithText:(id)arg1;
- (void)setVoiceOverIsActive:(_Bool)arg1;
- (void)setIsStark:(_Bool)arg1;
- (void)setLockState:(_Bool)arg1 screenLocked:(_Bool)arg2;
- (void)forceAudioSessionActive;
- (void)preheatWithStyle:(long long)arg1;
- (void)preheat;
- (void)endSession;
- (void)_willCompleteRequest;
- (void)_willFailRequestWithError:(id)arg1;
- (void)_willCancelRequest;
- (void)_willStartRequestForSpeech:(_Bool)arg1;
- (void)_updateClientState;
- (void)_updateState;
- (void)_extendExistingRequestTimeout;
- (void)_extendRequestTimeout;
- (void)_cancelRequestTimeout;
- (void)_invokeRequestTimeout;
- (void)_scheduleRequestTimeout;
- (id)_connection;
- (void)_clearConnection;
- (void)_connectionInterrupted;
- (void)_tellSpeechDelegateRecognitionDidFail:(id)arg1;
- (void)_tellSpeechDelegateSpeechRecognizedPartialResult:(id)arg1;
- (void)_tellSpeechDelegateSpeechRecognized:(id)arg1;
- (void)_tellSpeechDelegateRecordingDidFail:(id)arg1;
- (void)_tellSpeechDelegateRecordingDidCancel;
- (void)_tellSpeechDelegateRecordingDidEnd;
- (void)_tellSpeechDelegateRecordingDidChangeAVRecordRoute:(id)arg1;
- (void)_tellSpeechDelegateRecordingDidBeginOnAVRecordRoute:(id)arg1;
- (void)_tellSpeechDelegateRecordingWillBegin;
- (void)_tellDelegateDidFinishAcousticIDRequestWithSuccess:(_Bool)arg1;
- (void)_tellDelegateDidDetectMusic;
- (void)_tellDelegateWillStartAcousticIDRequest;
- (void)_tellDelegateAudioSessionIDChanged:(unsigned int)arg1;
- (void)_tellDelegateShouldSpeakChanged:(_Bool)arg1;
- (void)_tellDelegateRequestFailed:(id)arg1 requestClass:(id)arg2;
- (void)_tellDelegateRequestFinished;
- (void)_tellDelegateRequestWillStart;
- (void)_speechRecordingDidUpdateAveragePower:(float)arg1 peakPower:(float)arg2;
- (void)_setAudioSessionID:(unsigned int)arg1;
- (void)_setShouldSpeak:(_Bool)arg1;
- (void)_doCommand:(id)arg1 reply:(CDUnknownBlockType)arg2;
- (void)_requestDidEnd;
- (void)_requestWillBeginWithRequestClass:(id)arg1 isSpeechRequest:(_Bool)arg2 isBackgroundRequest:(_Bool)arg3;
- (void)_requestWillBeginWithRequestClass:(id)arg1 isSpeechRequest:(_Bool)arg2;
- (void)_checkAndSetIsCapturingSpeech:(_Bool)arg1;
- (void)dealloc;
- (id)init;
- (void)cancelRequest;
- (void)startSpeechRequestWithSpeechFileAtURL:(id)arg1 isNarrowBand:(_Bool)arg2;
- (void)startSpeechRequestWithSpeechFileAtURL:(id)arg1;
- (id)_cachedBulletins;
- (id)_clientServiceWithErrorHandler:(CDUnknownBlockType)arg1;
- (id)_clientService;
- (void)_clearAssistantInfoForAccountWithIdentifier:(id)arg1;
- (void)_barrier;

@end

@interface AFConnectionClientServiceDelegate : NSObject <AFClientServiceDelegate>
{
    AFConnection *_connection;
}

- (void).cxx_destruct;
- (oneway void)speechRecognitionDidFail:(id)arg1;
- (oneway void)speechRecognizedPartialResult:(id)arg1;
- (oneway void)speechRecognized:(id)arg1;
- (oneway void)speechRecordingDidFail:(id)arg1;
- (oneway void)speechRecordingDidCancel;
- (oneway void)speechRecordingDidEnd;
- (oneway void)speechRecordingDidUpdateAveragePower:(float)arg1 peakPower:(float)arg2;
- (oneway void)speechRecordingDidChangeAVRecordRoute:(id)arg1;
- (oneway void)speechRecordingDidBeginOnAVRecordRoute:(id)arg1;
- (oneway void)speechRecordingWillBegin;
- (oneway void)shouldSpeakChanged:(_Bool)arg1;
- (oneway void)acousticIDRequestDidFinishWithSuccess:(_Bool)arg1;
- (oneway void)musicWasDetected;
- (oneway void)acousticIDRequestWillStart;
- (oneway void)getBulletinContext:(CDUnknownBlockType)arg1;
- (oneway void)requestDidFailWithError:(id)arg1 requestClass:(id)arg2;
- (oneway void)requestRequestedDismissAssistant;
- (oneway void)requestRequestedOpenURL:(id)arg1 reply:(CDUnknownBlockType)arg2;
- (oneway void)requestDidFinish;
- (oneway void)requestDidReceiveCommand:(id)arg1 reply:(CDUnknownBlockType)arg2;
- (id)_connectionDelegate;
- (id)initWithConnection:(id)arg1;

// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly, copy) NSString *description;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;

@end

@interface AFContextManager : NSObject
{
    struct __CFArray *_contextProviders;
    CPDistributedMessagingCenter *_center;
}

+ (id)defaultContextManager;
- (void).cxx_destruct;
- (void)dealloc;
- (void)removeContextProvider:(id)arg1;
- (_Bool)addContextProvider:(id)arg1;
- (void)_shutdownServer;
- (id)_collateContexts;
- (void)_collateContextsIntoArray:(id)arg1;
- (void)startCenter:(id)arg1;
- (void)nothing;
- (id)init;

@end

@interface AFDictationConnection : NSObject
{
    NSXPCConnection *_connection;
    NSString *_lastUsedLanguage;
    id <AFDictationDelegate> _delegate;
    unsigned int _stateInSync:1;
    unsigned int _audioSessionID;
    float _averagePower;
    float _peakPower;
    _Bool _isCapturingSpeech;
    _Bool _hasActiveRequest;
}

+ (void)fetchSupportedLanguageCodes:(CDUnknownBlockType)arg1;
+ (_Bool)dictationIsSupportedForLanguageCode:(id)arg1 error:(id *)arg2;
+ (_Bool)dictationIsEnabled;
@property(nonatomic) __weak id <AFDictationDelegate> delegate; // @synthesize delegate=_delegate;
- (void).cxx_destruct;
- (void)endSession;
- (float)peakPower;
- (float)averagePower;
- (unsigned int)audioSessionID;
- (void)prepareWithOptions:(id)arg1;
- (void)sendSpeechCorrection:(id)arg1 forIdentifier:(id)arg2;
- (void)stopSpeech;
- (void)stopSpeechWithOptions:(id)arg1;
- (void)cancelSpeech;
- (void)startDictationWithLanguageCode:(id)arg1 options:(id)arg2;
- (void)startDictationWithLanguageCode:(id)arg1 options:(id)arg2 speechOptions:(id)arg3;
@property(readonly, nonatomic) _Bool currentlyUsingLocalDication;
- (void)preheat;
- (void)_willCompleteDictation;
- (void)_willFailDictationWithError:(id)arg1;
- (void)_willCancelDictation;
- (void)_willStartDictation;
- (void)cancelAvailabilityMonitoring;
- (void)beginAvailabilityMonitoring;
- (_Bool)dictationIsAvailableForLanguage:(id)arg1;
- (void)_availabilityChanged:(id)arg1;
- (void)_extendRequestTimeout;
- (void)_invokeRequestTimeout;
- (void)_cancelRequestTimeout;
- (void)_scheduleRequestTimeout;
- (id)_dictationService;
- (id)_connection;
- (void)_registerInvalidationHandlerForXPCConnection:(id)arg1;
- (void)_clearConnections;
- (void)_connectionInterrupted;
- (void)_tellDelegateAudioSessionIDChanged:(unsigned int)arg1;
- (void)_tellSpeechDelegateAudioFileFinished:(id)arg1 error:(id)arg2;
- (void)_tellSpeechDelegateRecognitionDidFail:(id)arg1;
- (void)_tellSpeechDelegateDidRecognizeTranscriptionObjects:(id)arg1 languageModel:(id)arg2;
- (void)_tellSpeechDelegateDidRecognizeSpeechTokens:(id)arg1 languageModel:(id)arg2;
- (void)_tellSpeechDelegateDidRecognizeSpeechPhrases:(id)arg1 languageModel:(id)arg2 correctionIdentifier:(id)arg3;
- (void)_tellSpeechDelegateDidHypothesizeSpeechPhrases:(id)arg1 languageModel:(id)arg2;
- (void)_tellSpeechDelegateRecordingDidFail:(id)arg1;
- (void)_tellSpeechDelegateRecordingDidCancel;
- (void)_tellSpeechDelegateRecordingDidEnd;
- (void)_tellSpeechDelegateRecordingDidBegin;
- (void)_tellSpeechDelegateRecordingWillBegin;
- (void)_updateState;
- (void)_speechRecordingDidUpdateAveragePower:(float)arg1 peakPower:(float)arg2;
- (void)_setAudioSessionID:(unsigned int)arg1;
- (void)_checkAndSetIsCapturingSpeech:(_Bool)arg1;
- (void)dealloc;
- (id)init;
- (void)startDictationWithSpeechFileAtURL:(id)arg1 isNarrowBand:(_Bool)arg2 options:(id)arg3 forLanguage:(id)arg4;
- (void)startDictationWithSpeechFileAtURL:(id)arg1 options:(id)arg2 forLanguage:(id)arg3;

@end

@interface AFDictationConnectionServiceDelegate : NSObject <AFDictationServiceDelegate>
{
    AFDictationConnection *_connection;
}

- (void).cxx_destruct;
- (oneway void)speechDidFinishWritingAudioFile:(id)arg1 error:(id)arg2;
- (oneway void)speechRecognitionDidFail:(id)arg1;
- (oneway void)speechDidRecognizeTranscriptionObjects:(id)arg1 usingSpeechModel:(id)arg2;
- (oneway void)speechDidRecognizeTokens:(id)arg1 usingSpeechModel:(id)arg2;
- (oneway void)speechDidRecognizePhrases:(id)arg1 usingSpeechModel:(id)arg2 correctionContext:(id)arg3;
- (oneway void)speechRecordingDidFail:(id)arg1;
- (oneway void)speechRecordingDidCancel;
- (oneway void)speechRecordingDidEnd;
- (oneway void)speechRecordingDidUpdateAveragePower:(float)arg1 peakPower:(float)arg2;
- (oneway void)speechRecordingDidBegin;
- (oneway void)speechRecordingWillBegin;
- (id)initWithDictationConnection:(id)arg1;

// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly, copy) NSString *description;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;

@end

@interface AFDictationOptions : NSObject <NSSecureCoding, NSCopying>
{
    NSString *_applicationName;
    NSString *_applicationVersion;
    NSString *_fieldLabel;
    NSString *_fieldIdentifier;
    NSString *_interactionIdentifier;
    long long _keyboardType;
    NSString *_prefixText;
    NSString *_postfixText;
    NSString *_selectedText;
    long long _returnKeyType;
    long long _transcriptionMode;
    NSString *_languageCodeOverride;
}

+ (_Bool)supportsSecureCoding;
@property(copy, nonatomic) NSString *languageCodeOverride; // @synthesize languageCodeOverride=_languageCodeOverride;
@property(nonatomic) long long transcriptionMode; // @synthesize transcriptionMode=_transcriptionMode;
@property(nonatomic) long long returnKeyType; // @synthesize returnKeyType=_returnKeyType;
@property(copy, nonatomic) NSString *selectedText; // @synthesize selectedText=_selectedText;
@property(copy, nonatomic) NSString *postfixText; // @synthesize postfixText=_postfixText;
@property(copy, nonatomic) NSString *prefixText; // @synthesize prefixText=_prefixText;
@property(nonatomic) long long keyboardType; // @synthesize keyboardType=_keyboardType;
@property(copy, nonatomic) NSString *interactionIdentifier; // @synthesize interactionIdentifier=_interactionIdentifier;
@property(copy, nonatomic) NSString *fieldIdentifier; // @synthesize fieldIdentifier=_fieldIdentifier;
@property(copy, nonatomic) NSString *fieldLabel; // @synthesize fieldLabel=_fieldLabel;
@property(copy, nonatomic) NSString *applicationVersion; // @synthesize applicationVersion=_applicationVersion;
@property(copy, nonatomic) NSString *applicationName; // @synthesize applicationName=_applicationName;
- (void).cxx_destruct;
- (id)dictationOptionsWithoutTextContext;
- (id)copyWithZone:(struct _NSZone *)arg1;
- (id)initWithCoder:(id)arg1;
- (void)encodeWithCoder:(id)arg1;

@end

@interface AFError : NSObject
{
}

+ (id)errorWithCode:(long long)arg1;
+ (id)errorWithCode:(long long)arg1 description:(id)arg2 underlyingError:(id)arg3;

@end

@interface AFLocation : NSObject <AFTranscriptionType>
{
    NSURL *_addressBookID;
    NSString *_addressLabel;
    NSString *_contactName;
    NSData *_geoResult;
    long long _resultType;
}

+ (_Bool)supportsSecureCoding;
@property(nonatomic) long long resultType; // @synthesize resultType=_resultType;
@property(copy, nonatomic) NSData *geoResult; // @synthesize geoResult=_geoResult;
@property(copy, nonatomic) NSString *contactName; // @synthesize contactName=_contactName;
@property(copy, nonatomic) NSString *addressLabel; // @synthesize addressLabel=_addressLabel;
@property(copy, nonatomic) NSURL *addressBookID; // @synthesize addressBookID=_addressBookID;
- (void).cxx_destruct;
@property(readonly, copy) NSString *description;
- (void)encodeWithCoder:(id)arg1;
- (id)initWithCoder:(id)arg1;

// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;

@end

@interface AFManagedStorageConnection : NSObject <AFManagedStore>
{
    NSXPCConnection *_connection;
}

- (void).cxx_destruct;
- (void)setDomainObject:(id)arg1 forKey:(id)arg2;
- (id)domainObjectForKey:(id)arg1;
- (id)_managedStoreServiceWithErrorHandler:(CDUnknownBlockType)arg1;
- (id)_managedStoreService;
- (id)_connection;
- (void)_clearConnection;
- (void)dealloc;
- (id)init;

// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly, copy) NSString *description;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;

@end

@interface AFMetrics : NSObject <NSSecureCoding>
{
    NSString *_originalCommandId;
    long long _category;
    NSNumber *_duration;
}

+ (_Bool)supportsSecureCoding;
@property(retain, nonatomic) NSNumber *duration; // @synthesize duration=_duration;
@property(nonatomic) long long category; // @synthesize category=_category;
@property(copy, nonatomic) NSString *originalCommandId; // @synthesize originalCommandId=_originalCommandId;
- (void).cxx_destruct;
- (id)description;
- (id)categoryString;
- (double)_roundDouble:(double)arg1 toSignificantDigits:(unsigned long long)arg2;
- (id)aceMetrics;
- (id)initWithCoder:(id)arg1;
- (void)encodeWithCoder:(id)arg1;

@end

@interface AFPerson : NSObject <AFTranscriptionType>
{
    NSSet *_contactHandles;
    NSString *_fullName;
}

+ (_Bool)supportsSecureCoding;
@property(copy, nonatomic) NSString *fullName; // @synthesize fullName=_fullName;
@property(copy, nonatomic) NSSet *contactHandles; // @synthesize contactHandles=_contactHandles;
- (void).cxx_destruct;
@property(readonly, copy) NSString *description;
- (void)encodeWithCoder:(id)arg1;
- (id)initWithCoder:(id)arg1;

// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;

@end

@interface AFPreferences : NSObject
{
    _Bool _registeredForInternalPrefs;
    _Bool _registeredForLanguageCode;
    _Bool _registeredForOutputVoice;
    NSObject<OS_dispatch_queue> *_navTokenQueue;
    _Bool _navTokenIsValid;
    int _navToken;
}

+ (id)sharedPreferences;
- (void).cxx_destruct;
- (_Bool)fileLoggingIsEnabled;
- (void)setFileLoggingIsEnabled:(_Bool)arg1;
- (void)_setLoggingDefaultValue:(id)arg1 forKey:(id)arg2;
- (id)languagesMissingBirthCertificates;
- (void)setBirthCertificateData:(id)arg1 forLanguageCode:(id)arg2;
- (id)birthCertificateDataForLanguageCode:(id)arg1;
- (id)whitelistedLanguages;
- (void)setValue:(id)arg1 forSessionContextKey:(id)arg2;
- (id)valueForSessionContextPreferenceKey:(id)arg1;
- (void)_registerForNavStatusIfNeeded;
- (void)setOutputVoice:(id)arg1;
- (id)outputVoice;
- (void)synchronizeVoiceServicesLanguageCode;
- (void)setLanguageCode:(id)arg1;
- (id)languageCode;
- (void)setShouldShowReadyForLanguageCode:(id)arg1;
- (void)didShowReadyForLanguageCode:(id)arg1;
- (_Bool)shouldShowReadyForLanguageCode:(id)arg1;
- (void)setDisableAssistantWhilePasscodeLocked:(_Bool)arg1;
- (_Bool)disableAssistantWhilePasscodeLocked;
- (void)setStreamingDictationEnabled:(_Bool)arg1;
- (_Bool)streamingDictationEnabled;
- (void)setManualEndpointingThreshold:(id)arg1;
- (id)manualEndpointingThreshold;
- (void)setIgnoreServerManualEndpointingThreshold:(_Bool)arg1;
- (_Bool)ignoreServerManualEndpointingThreshold;
- (void)setHandsFreeMode:(long long)arg1;
- (long long)handsFreeMode;
- (void)setDebugButtonIsEnabled:(_Bool)arg1;
- (_Bool)debugButtonIsEnabled;
- (void)setBugReportingMode:(long long)arg1;
- (long long)bugReportingMode;
- (void)setDictationIsEnabled:(_Bool)arg1;
- (void)setAssistantIsEnabled:(_Bool)arg1;
- (void)_setDictationIsEnabledLocal:(_Bool)arg1;
- (void)_setAssistantIsEnabledLocal:(_Bool)arg1;
- (_Bool)dictationIsEnabled;
- (_Bool)assistantIsEnabled;
- (void)_registerForOutputVoice;
- (void)_registerForLanguageCode;
- (void)_registerForInteralPrefs;
- (void)synchronize;
- (void)dealloc;
- (id)init;
- (void)_ouputVoiceDidChangeExternally;
- (void)_languageCodeDidChangeExternally;
- (void)_internalPreferencesDidChangeExternally;
- (void)_preferencesDidChangeExternally;

@end

@interface AFSpeakableUtteranceParser : NSObject
{
    NSMutableDictionary *_providers;
    id _functionHandler;
    NSLocale *_locale;
}

+ (id)parseUserGeneratedMessage:(id)arg1;
+ (_Bool)_shouldAutomaticallyProvideFunctions;
- (void).cxx_destruct;
- (id)parseStringRemovingControlCharacters:(id)arg1 error:(id *)arg2;
- (id)parseStringWithFormat:(id)arg1 error:(id *)arg2;
- (id)parseStringWithFormat:(id)arg1 includeControlCharacters:(_Bool)arg2 error:(id *)arg3 hadEmpties:(_Bool *)arg4;
- (id)_handleControlCodeAtIndex:(unsigned int)arg1 withBuffer:(CDStruct_f9502b4c)arg2 totalLength:(unsigned long long)arg3 consumedLength:(unsigned int *)arg4 hadEmpties:(_Bool *)arg5;
- (id)_handleOptionalAtIndex:(unsigned int)arg1 withBuffer:(CDStruct_f9502b4c)arg2 totalLength:(unsigned long long)arg3 consumedLength:(unsigned int *)arg4;
- (id)_handleProviderAtIndex:(unsigned int)arg1 withBuffer:(CDStruct_f9502b4c)arg2 totalLength:(unsigned long long)arg3 consumedLength:(unsigned int *)arg4;
@property(nonatomic) _Bool handlesFunctions;
@property(nonatomic) _Bool handleTTSCodes;
- (void)registerProvider:(id)arg1 forNamespace:(id)arg2;
- (id)initWithLocale:(id)arg1;
- (id)init;

@end

@interface AFSUPFunctionProvider : AFSpeakableUtteranceParser <AFSpeakableNamespaceProvider>
{
    NSDateFormatter *_dateFormatter;
    NSDateFormatter *_timeFormatter;
    _Bool _useSpeechMode;
}

+ (_Bool)_shouldAutomaticallyProvideFunctions;
- (void).cxx_destruct;
- (id)stringForExpression:(id)arg1;
- (id)_callFunction:(id)arg1 withArguments:(id)arg2;
- (id)_deviceModel;
- (id)_lowercaseString:(id)arg1;
- (id)_tempInWeatherUnits:(id)arg1;
- (id)_currentWeekday:(id)arg1;
- (id)_currentShortDate:(id)arg1;
- (id)_currentLongDate:(id)arg1;
- (id)_currentTime:(id)arg1;
- (id)_dateFormattedWithFormatter:(id)arg1 arguments:(id)arg2;
- (void)useSpeechMode:(_Bool)arg1;
- (id)initWithLocale:(id)arg1;
- (id)init;

// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly, copy) NSString *description;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;

@end

@interface AFSettingsConnection : NSObject
{
    NSXPCConnection *_connection;
    NSObject<OS_dispatch_queue> *_voicesQueue;
    NSArray *_voices;
    AFVoiceInfo *_selectedVoice;
}

- (void).cxx_destruct;
- (void)setLanguage:(id)arg1 withCompletion:(CDUnknownBlockType)arg2;
- (void)setLanguage:(id)arg1;
- (void)setOutputVoice:(id)arg1 withCompletion:(CDUnknownBlockType)arg2;
- (void)setOutputVoice:(id)arg1;
- (void)getAvailableVoicesForRecognitionLanguage:(id)arg1 completion:(CDUnknownBlockType)arg2;
- (void)_updateVoicesWithCompletion:(CDUnknownBlockType)arg1;
- (void)_updateVoicesSync;
- (id)_filterVoices:(id)arg1 forLanguage:(id)arg2;
- (id)_voices;
- (void)_setVoices:(id)arg1;
- (void)barrier;
- (void)killDaemon;
- (void)setDictationEnabled:(_Bool)arg1;
- (void)setAssistantEnabled:(_Bool)arg1;
- (void)setActiveAccountIdentifier:(id)arg1;
- (void)deleteAccountWithIdentifier:(id)arg1;
- (void)saveAccount:(id)arg1 setActive:(_Bool)arg2;
- (id)accounts;
- (void)fetchSupportedLanguageCodes:(CDUnknownBlockType)arg1;
- (id)_settingsServiceWithErrorHandler:(CDUnknownBlockType)arg1;
- (id)_settingsService;
- (id)_connection;
- (void)_clearConnection;
- (void)dealloc;
- (id)init;
- (void)_syncDataWithAnchorKeys:(id)arg1 forceReset:(_Bool)arg2 completion:(CDUnknownBlockType)arg3;

@end

@interface AFSiriRequest : NSObject <NSSecureCoding>
{
    NSUUID *_identifier;
}

+ (_Bool)supportsSecureCoding;
- (void).cxx_destruct;
- (id)initWithCoder:(id)arg1;
- (void)encodeWithCoder:(id)arg1;
- (id)_identifier;
- (id)init;
- (id)_initWithIdentifier:(id)arg1;

@end

@interface AFSiriResponse : NSObject <NSSecureCoding>
{
    NSUUID *_requestIdentifier;
}

+ (_Bool)supportsSecureCoding;
- (void).cxx_destruct;
- (id)initWithCoder:(id)arg1;
- (void)encodeWithCoder:(id)arg1;
- (id)_requestIdentifier;
- (id)_initWithRequest:(id)arg1;
- (id)_initWithRequestIdentifier:(id)arg1;

@end

@interface AFSiriTask : NSObject <BSXPCCoding, NSSecureCoding>
{
    AFSiriRequest *_request;
    NSXPCListenerEndpoint *_remoteResponseListenerEndpoint;
}

+ (_Bool)supportsSecureCoding;
- (void).cxx_destruct;
- (id)initWithCoder:(id)arg1;
- (void)encodeWithCoder:(id)arg1;
- (id)initWithXPCDictionary:(id)arg1;
- (void)encodeWithXPCDictionary:(id)arg1;
- (void)completeWithResponse:(id)arg1;
- (void)failWithError:(id)arg1;
- (id)_responseHandlerProxyWithErrorHandler:(CDUnknownBlockType)arg1;
- (id)request;
- (id)_initWithRequest:(id)arg1 remoteResponseListenerEndpoint:(id)arg2;

// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly, copy) NSString *description;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;

@end

@interface AFSiriTaskService : NSObject <AFSiriTaskHandling, NSXPCListenerDelegate>
{
    NSObject<OS_dispatch_queue> *_queue;
    NSXPCListener *_listener;
    id <AFSiriTaskServiceDelegate> _delegate;
}

+ (id)appTaskService;
+ (id)_machServiceNameForAppTaskServiceWithBundleIdentifier:(id)arg1;
- (void).cxx_destruct;
- (_Bool)listener:(id)arg1 shouldAcceptNewConnection:(id)arg2;
- (void)handleSiriTask:(id)arg1;
- (void)setDelegate:(id)arg1;
- (void)resume;
- (id)initWithMachServiceName:(id)arg1;

// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly, copy) NSString *description;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;

@end

@interface AFSpeechCorrectionInfo : NSObject <NSSecureCoding>
{
    long long _alternativeSelectionCount;
    long long _characterModificationCount;
    NSString *_correctedText;
}

+ (_Bool)supportsSecureCoding;
@property(copy, nonatomic) NSString *correctedText; // @synthesize correctedText=_correctedText;
@property(nonatomic) long long characterModificationCount; // @synthesize characterModificationCount=_characterModificationCount;
@property(nonatomic) long long alternativeSelectionCount; // @synthesize alternativeSelectionCount=_alternativeSelectionCount;
- (void).cxx_destruct;
- (id)initWithCoder:(id)arg1;
- (void)encodeWithCoder:(id)arg1;

@end

@interface AFSpeechInterpretation : NSObject <NSSecureCoding>
{
    NSArray *_tokens;
}

+ (_Bool)supportsSecureCoding;
@property(copy, nonatomic) NSArray *tokens; // @synthesize tokens=_tokens;
- (void).cxx_destruct;
- (id)initWithCoder:(id)arg1;
- (void)encodeWithCoder:(id)arg1;
- (id)description;
- (long long)confidenceScore;
- (id)text;

@end

@interface AFSpeechPhrase : NSObject <NSSecureCoding>
{
    _Bool _isLowConfidence;
    NSArray *_interpretations;
}

+ (_Bool)supportsSecureCoding;
@property(nonatomic) _Bool isLowConfidence; // @synthesize isLowConfidence=_isLowConfidence;
@property(copy, nonatomic) NSArray *interpretations; // @synthesize interpretations=_interpretations;
- (void).cxx_destruct;
- (id)initWithCoder:(id)arg1;
- (void)encodeWithCoder:(id)arg1;
- (id)description;
- (id)bestInterpretation;

@end

@interface AFSpeechRequestOptions : NSObject <NSSecureCoding>
{
    _Bool _isEyesFree;
    _Bool _useAutomaticEndpointing;
    _Bool _useStreamingDictation;
    _Bool _isInitialBringUp;
    _Bool _acousticIdEnabled;
    long long _activationEvent;
    NSString *_btDeviceAddress;
    NSString *_serverCommandId;
    double _activationEventTime;
    double _expectedActivationEventTime;
    NSNumber *_homeButtonUpFromBeep;
    long long _audioFileType;
}

+ (_Bool)supportsSecureCoding;
@property(nonatomic) long long audioFileType; // @synthesize audioFileType=_audioFileType;
@property(nonatomic) _Bool acousticIdEnabled; // @synthesize acousticIdEnabled=_acousticIdEnabled;
@property(copy, nonatomic) NSNumber *homeButtonUpFromBeep; // @synthesize homeButtonUpFromBeep=_homeButtonUpFromBeep;
@property(nonatomic) _Bool isInitialBringUp; // @synthesize isInitialBringUp=_isInitialBringUp;
@property(nonatomic) double expectedActivationEventTime; // @synthesize expectedActivationEventTime=_expectedActivationEventTime;
@property(nonatomic) double activationEventTime; // @synthesize activationEventTime=_activationEventTime;
@property(nonatomic) _Bool useStreamingDictation; // @synthesize useStreamingDictation=_useStreamingDictation;
@property(nonatomic) _Bool useAutomaticEndpointing; // @synthesize useAutomaticEndpointing=_useAutomaticEndpointing;
@property(copy, nonatomic) NSString *serverCommandId; // @synthesize serverCommandId=_serverCommandId;
@property(nonatomic) _Bool isEyesFree; // @synthesize isEyesFree=_isEyesFree;
@property(copy, nonatomic) NSString *btDeviceAddress; // @synthesize btDeviceAddress=_btDeviceAddress;
@property(nonatomic) long long activationEvent; // @synthesize activationEvent=_activationEvent;
- (void).cxx_destruct;
- (id)initWithCoder:(id)arg1;
- (void)encodeWithCoder:(id)arg1;
- (id)initWithActivationEvent:(long long)arg1;

@end

@interface AFSpeechToken : NSObject <NSSecureCoding>
{
    _Bool _removeSpaceBefore;
    _Bool _removeSpaceAfter;
    NSString *_text;
    long long _confidenceScore;
    double _startTime;
    double _endTime;
}

+ (_Bool)supportsSecureCoding;
@property(nonatomic) _Bool removeSpaceAfter; // @synthesize removeSpaceAfter=_removeSpaceAfter;
@property(nonatomic) _Bool removeSpaceBefore; // @synthesize removeSpaceBefore=_removeSpaceBefore;
@property(nonatomic) double endTime; // @synthesize endTime=_endTime;
@property(nonatomic) double startTime; // @synthesize startTime=_startTime;
@property(nonatomic) long long confidenceScore; // @synthesize confidenceScore=_confidenceScore;
@property(copy, nonatomic) NSString *text; // @synthesize text=_text;
- (void).cxx_destruct;
- (id)initWithCoder:(id)arg1;
- (void)encodeWithCoder:(id)arg1;
- (id)description;

@end

@interface AFUserUtterance : NSObject
{
    NSMutableArray *_phrases;
    NSMutableArray *_tokens;
    NSString *_text;
    NSDictionary *_correctionIdentifier;
}

@property(readonly, nonatomic) NSDictionary *correctionIdentifier; // @synthesize correctionIdentifier=_correctionIdentifier;
- (void).cxx_destruct;
- (id)description;
- (id)streamingTokens;
@property(readonly, nonatomic) NSArray *dictationResult;
- (id)bestTextInterpretation;
- (id)initWithString:(id)arg1 correctionIdentifier:(id)arg2;
- (id)initWithTokens:(id)arg1 correctionIdentifier:(id)arg2;
- (id)initWithPhrases:(id)arg1 correctionIdentifier:(id)arg2;

@end

@interface AFVoiceInfo : NSObject <NSSecureCoding, NSCopying>
{
    _Bool _isCustom;
    NSString *_languageCode;
    long long _gender;
}

+ (_Bool)supportsSecureCoding;
@property(nonatomic) _Bool isCustom; // @synthesize isCustom=_isCustom;
@property(nonatomic) long long gender; // @synthesize gender=_gender;
@property(readonly, nonatomic) NSString *languageCode; // @synthesize languageCode=_languageCode;
- (void).cxx_destruct;
- (id)copyWithZone:(struct _NSZone *)arg1;
- (id)initWithCoder:(id)arg1;
- (void)encodeWithCoder:(id)arg1;
- (id)initWithDictionaryRepresentation:(id)arg1;
- (id)dictionaryRepresentation;
- (id)description;
- (unsigned long long)hash;
- (_Bool)isEqual:(id)arg1;
- (id)initWithLanguageCode:(id)arg1 gender:(long long)arg2 isCustom:(_Bool)arg3;

@end

@interface NSURL (AMOSExtensions)
- (_Bool)isAMOSCommittedIdentifier;
- (_Bool)isAMOSIdentifier;
@end

@interface NSXPCInterface (AFSiriResponseHandler)
+ (id)af_siriResponseHandlingInterface;
@end

@interface NSXPCInterface (AFSiriTaskHandling)
+ (id)af_siriTaskHandlingInterface;
@end

@interface SASInterpretation (AFSpeechTokenAdditions)
- (id)af_speechTokens;
@end

@interface SASPhrase (AFSpeechTokenAdditions)
- (id)af_speechInterpretations;
@end

@interface SASRecognition (AFSpeechTokenAdditions)
- (id)af_speechPhrases;
@end

@interface SASSpeechPartialResult (AFUserUtteranceAdditions)
- (id)af_bestTextInterpretation;
- (id)af_userUtteranceValue;
@end

@interface SASSpeechPartialResult (AssistantAdditions)
- (id)af_correctionContext;
@end

@interface SASSpeechRecognized (AFUserUtteranceAdditions)
- (id)af_bestTextInterpretation;
- (id)af_userUtteranceValue;
@end

@interface SASSpeechRecognized (AssistantAdditions)
- (id)af_correctionContext;
@end

@interface SASToken (AFSpeechTokenAdditions)
- (id)af_speechToken;
@end

@interface SAStructuredDictationItem (AssistantAdditions)
- (id)af_personTranscriptionResults;
- (id)af_locationTranscriptionResults;
@end

@interface _AFSpeakableUtterancePassThroughProvider : NSObject <AFSpeakableNamespaceProvider>
{
}

- (id)stringForExpression:(id)arg1;

// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly, copy) NSString *description;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;

@end


text:
<form class="form-horizontal" method="POST">

      ID

        <input type="text" class="form-control" id="inputEmail3" name="user_id" placeholder="ID를 입력하세요">

      Password

        <input type="password" class="form-control" id="inputPassword3" name="password" placeholder="비밀번호를 입력하세요">

        <input type="submit" value="Sign in" />

</form>


text:
#ifdef ENABLE_MPATROL
#include <mpatrol.h>
#endif

#ifndef __EX_REGISTER_H__
#define __EX_REGISTER_H__

#include <osipparser2/osip_parser.h>
#include <time.h>

#ifdef __cplusplus
extern "C"
{
#endif

/**
 * @file eX_register.h
 * @brief eXosip registration API
 *
 * This file provide the API needed to control registrations. You can
 * use it to:
 *
 *

 *
build initial REGISTER.

 *
build REGISTER.

 *
send REGISTER.

 *

 */

/**
 * @defgroup eXosip2_registration eXosip2 REGISTER and Registration Management
 * @ingroup eXosip2_msg
 * @{
 */

  struct eXosip_reg_t;

/**
 * Build initial REGISTER request.
 *
 * @param from      SIP url for caller.
 * @param proxy     Proxy used for registration.
 * @param contact   Contact address. (optional)
 * @param expires   The expires value for registration.
 * @param reg       The SIP request to build.
 */
  int eXosip_register_build_initial_register (const char *from, const char *proxy,
                                              const char *contact, int expires,
                                              osip_message_t ** reg);

/**
 * Build initial REGISTER request with qvalue for contact.
 *
 * @param from      SIP url for caller.
 * @param proxy     Proxy used for registration.
 * @param contact   Contact address. (optional)
 * @param expires   The expires value for registration.
 * @param qvalue    The qvalue value for contact header.
 * @param reg       The SIP request to build.
 */
  int eXosip_register_build_initial_register_withqvalue(const char *from, const char *proxy,
									   const char *contact, int expires,
									   const char *qvalue,
									   osip_message_t ** reg);

/**
 * Build a new REGISTER request for an existing registration.
 *
 * @param rid       A unique identifier for the registration context
 * @param expires   The expires value for registration.
 * @param reg       The SIP request to build.
 */
  int eXosip_register_build_register (int rid, int expires, osip_message_t ** reg);

/**
 * Send a REGISTER request for an existing registration.
 *
 * @param rid       A unique identifier for the registration context
 * @param reg       The SIP request to build. (NULL for default REGISTER)
 */
  int eXosip_register_send_register (int rid, osip_message_t * reg);

/**
 * Remove existing registration without sending REGISTER.
 *
 * @param rid       A unique identifier for the registration context
 */
  int eXosip_register_remove (int rid);

/** @} */

#ifdef __cplusplus
}
#endif

#endif


text:
title: Challenge Dcommenter HTML
localeTitle: HTML do Dcommenter de desafio
---
Comentários permitem que o código seja ignorado. Em HTML, os comentários são feitos colocando o código que você deseja ignorar com `<!--` e `-->` .
`<! - Ce texte n'apparaîtra pas puisqu'il est un commentaire ->`

Você pode facilmente descomentar o código HTML removendo itens de comentários.

**_Nota:_** Tenha cuidado ao descomentar o código HTML e lembre-se de remover os elementos do começo e do final do seu comentário!

**_Nota: Os_** comentários podem ser feitos de forma diferente em outras linguagens de programação, como JavaScript, mas a idéia geral de remover tudo o que representa um comentário se aplica.