text:
- **bump**: raise non zero error code when there's no elegible commit to bump
- **bump**: raise non zero error code when there's no elegible commit to bump

## v2.20.3 (2021-12-20)

### Fix

- **check**: filter out comment messege when checking

## v2.20.2 (2021-12-14)

### Fix

- **poetry**: add typing-exteions to dev

## v2.20.1 (2021-12-14)

### Refactor

- **conventional_commits**: remove duplicate patterns and import from defaults
- **config**: add CzSettings and Questions TypedDict
- **defaults**: add Settings typeddict
- **defaults**: move bump_map, bump_pattern, commit_parser from defaults to ConventionalCommitsCz

### Fix

- import TypedDict from type_extensions for backward compatibility

## v2.20.0 (2021-10-06)

### Feat

- **cli.py**: add shortcut for signoff command
- add signoff parameter to commit command

## v2.19.0 (2021-09-27)

### Feat

- utility for showing system information

## v2.18.2 (2021-09-27)

### Fix

- **cli**: handle argparse different behavior after python 3.9

## v2.18.1 (2021-09-12)

### Fix

- **commit**: correct the stage checker before commiting

## v2.18.0 (2021-08-13)

### Refactor

- **shortcuts**: move check for shortcut config setting to apply to any list select

### Feat

- **prompt**: add keyboard shortcuts with config option

## v2.17.13 (2021-07-14)

## v2.17.12 (2021-07-06)

### Fix

- **git.py**: ensure signed commits in changelog when git config log.showsignature=true

## v2.17.11 (2021-06-24)

### Fix

- correct indentation for json config for better readability

## v2.17.10 (2021-06-22)

### Fix

- add support for jinja2 v3

## v2.17.9 (2021-06-11)

### Fix

- **changelog**: generating changelog after a pre-release

## v2.17.8 (2021-05-28)

### Fix

- **changelog**: annotated tags not generating proper changelog

## v2.17.7 (2021-05-26)

### Fix

- **bump**: fix error due to bumping version file without eol through regex
- **bump**: fix offset error due to partially match

## v2.17.6 (2021-05-06)

### Fix

- **cz/conventional_commits**: optionally expect '!' right before ':' in schema_pattern

## v2.17.5 (2021-05-06)

## v2.17.4 (2021-04-22)

### Fix

- version update in a docker-compose.yaml file

## v2.17.3 (2021-04-19)

### Fix

- fix multiple versions bumps when version changes the string size

## v2.17.2 (2021-04-10)

### Fix

- **bump**: replace all occurances that match regex
- **wip**: add test for current breaking change

## v2.17.1 (2021-04-08)

### Fix

- **commands/init**: fix toml config format error

## v2.17.0 (2021-04-02)

### Feat

- Support versions on random positions

## v2.16.0 (2021-03-08)

### Feat

- **bump**: send incremental changelog to stdout and bump output to stderr

## v2.15.3 (2021-02-26)

### Fix

- add utf-8 encode when write toml file

## v2.15.2 (2021-02-24)

### Fix

- **git**: fix get_commits deliminator

## v2.15.1 (2021-02-21)

### Fix

- **config**: change read mode from `r` to `rb`

## v2.15.0 (2021-02-21)

### Feat

- **changelog**: add support for multiline BREAKING paragraph

## v2.14.2 (2021-02-06)

### Fix

- **git**: handle the empty commit and empty email cases

## v2.14.1 (2021-02-02)

### Fix

- remove yaml warnings when using '.cz.yaml'

## v2.14.0 (2021-01-20)

### Feat

- **#271**: enable creation of annotated tags when bumping

## v2.13.0 (2021-01-01)

### Refactor

- raise an InvalidConfigurationError
- **#323**: address PR feedback
- move expected COMMITS_TREE to global

### Feat

- **#319**: add optional change_type_order

## v2.12.1 (2020-12-30)

### Fix

- read commit_msg_file with utf-8

## v2.12.0 (2020-12-30)

### Feat

- **deps**: Update and relax tomlkit version requirement

## v2.11.1 (2020-12-16)

### Fix

- **commit**: attach user info to backup for permission denied issue

## v2.11.0 (2020-12-10)

### Feat

- add yaml as a config option

### feat

- **config**: add support for the new class YAMLConfig at the root of the confi internal package

## v2.10.0 (2020-12-02)

### Feat

- **commitizen/cli**: add the integration with argcomplete

## v2.9.0 (2020-12-02)

### Fix

- **json_config**: fix the emtpy_config_content method

### Feat

- **Init**: add the json config support as an option at Init
- **commitizen/config/json_config**: add json support for configuration

## v2.8.2 (2020-11-21)

### Fix

- support `!` in cz check command

## v2.8.1 (2020-11-21)

### Fix

- prevent prerelase from creating a bump when there are no commits

## v2.8.0 (2020-11-15)

### Feat

- allow files-only to set config version and create changelog

## v2.7.0 (2020-11-14)

### Feat

- **bump**: add flag `--local-version` that supports bumping only the local version instead of the public

## v2.6.0 (2020-11-04)

### Feat

- **commands/bump**: add config option to create changelog on bump

## v2.5.0 (2020-11-04)

### Feat

- **commands/changelog**: add config file options for start_rev and incremental

## v2.4.2 (2020-10-26)

### Fix

- **init.py**: mypy error (types)
- **commands/bump**: Add NoneIncrementExit to fix git fatal error when creating existing tag

### Refactor

- **commands/bump**: Remove comment and changed ... for pass

## v2.4.1 (2020-10-04)

### Fix

- **cz_customize**: make schema_pattern customiziable through config for cz_customize

## v2.4.0 (2020-09-18)

### Feat

- **cz_check**: cz check can read commit message from pipe

## v2.3.1 (2020-09-07)

### Fix

- conventional commit schema

## v2.3.0 (2020-09-03)

### Fix

- **cli**: add guideline for subject input
- **cli**: wrap the word enter with brackets

### Feat

- **cli**: rewrite cli instructions to be more succinct about what they require

## v2.2.0 (2020-08-31)

### Feat

- **cz_check**: cz check can read from a string input

## v2.1.0 (2020-08-06)

### Refactor

- **cz_check**: Refactor _get_commits to return GitCommit instead of dict

### Feat

- **cz_check**: Add rev to all displayed ill-formatted commits
- **cz_check**: Update to show all ill-formatted commits

## v2.0.2 (2020-08-03)

### Fix

- **git**: use double quotation mark in get_tags

## v2.0.1 (2020-08-02)

### Fix

- **commands/changelog**: add exception message when failing to find an incremental revision
- **commands/bump**: display message variable properly

## v2.0.0 (2020-07-26)

### Fix

- add missing `pyyaml` dependency
- **cli**: make command required for commitizen

### Feat

- **init**: enable setting up pre-commit hook through "cz init"

### Refactor

- **config**: drop "files" configure support. Please use "version_files" instead
- **config**: remove ini configuration support
- **cli**: remove "--version" argument

### BREAKING CHANGE

- setup.cfg, .cz and .cz.cfg are no longer supported
- Use "cz verion" instead
- "cz --debug" will no longer work

## v1.25.0 (2020-07-26)

### Feat

- **conventional_commits**: use and proper support for conventional commits v1.0.0

## v1.24.0 (2020-07-26)

### Feat

- add author and author_email to git commit

## v1.23.4 (2020-07-26)

### Refactor

- **changelog**: remove pkg_resources dependency

## v1.23.3 (2020-07-25)

### Fix

- **commands/bump**: use `return_code` in commands used by bump
- **commands/commit**: use return_code to raise commit error, not stderr

### Refactor

- **cmd**: add return code to Command

## v1.23.2 (2020-07-25)

### Fix

- **bump**: add changelog file into stage when running `cz bump --changelog`

## v1.23.1 (2020-07-14)

### Fix

- Raise NotAGitProjectError only in git related command

## v1.23.0 (2020-06-14)

### Refactor

- **exception**: rename MissingConfigError as MissingCzCustomizeConfigError
- **exception**: Rename CommitFailedError and TagFailedError with Bump prefix
- **commands/init**: add test case and remove unaccessible code
- **exception**: move output message related to exception into exception
- **exception**: implement message handling mechanism for CommitizenException
- **cli**: do not show traceback if the raised exception is CommitizenException
- introduce DryRunExit, ExpectedExit, NoCommandFoundError, InvalidCommandArgumentError
- use custom exception for error handling
- **error_codes**: remove unused NO_COMMIT_MSG error code

### Feat

- **cli**: enable displaying all traceback for CommitizenException when --debug flag is used

## v1.22.3 (2020-06-10)

## v1.22.2 (2020-05-29)

### Fix

- **changelog**: empty lines at the beginning of the CHANGELOG

## v1.22.1 (2020-05-23)

### Fix

- **templates**: remove trailing space in keep_a_changelog

## v1.22.0 (2020-05-13)

### Fix

- **changelog**: rename `message_hook` -> `changelog_message_builder_hook`

### Feat

- **changelog**: add support for `changelog_hook` when changelog finishes the generation
- **changelog**: add support for `message_hook` method
- **changelog**: add support for modifying the change_type in the title of the changelog

## v1.21.0 (2020-05-09)

### Feat

- **commands/bump**: add "--check-consistency" optional

## v1.20.0 (2020-05-06)

### Feat

- **bump**: add optional --no-verify argument for bump command

## v1.19.3 (2020-05-04)

### Fix

- **docs**: change old url woile.github.io to commitizen-tools.github.io
- **changelog**: generate today's date when using an unreleased_version

## v1.19.2 (2020-05-03)

### Fix

- **changelog**: sort the commits properly to their version

## v1.19.1 (2020-05-03)

### Fix

- **commands/check**: Show warning if no commit to check when running `cz check --rev-range`

### Refactor

- **cli**: add explicit category for deprecation warnings

## v1.19.0 (2020-05-02)

### Fix

- **git**: missing dependency removed
- **changelog**: check get_metadata for existing changelog file

### Feat

- **changelog**: add support for any commit rule system
- **changelog**: add incremental flag

## v1.18.3 (2020-04-22)

### Refactor

- **commands/init**: fix typo

## v1.18.2 (2020-04-22)

### Refactor

- **git**: replace GitCommit.message code with one-liner
- **changelog**: use functions from changelog.py
- **changelog**: rename category to change_type to fit 'keep a changelog'
- **templates**: rename as "keep_a_changelog_template.j2"
- **templates**: remove unneeded __init__ file
- **cli**: reorder commands
- **templates**: move changelog_template from cz to templates
- **tests/utils**: move create_file_and_commit to tests/utils
- **commands/changelog**: remove redundant if statement
- **commands/changelog**: use jinja2 template instead of string concatenation to build changelog

### Fix

- **git**: fix returned value for GitCommit.message when body is empty
- **cz/conventional_commits**: fix schema_pattern break due to rebase
- **changelog_template**: fix list format
- **commitizen/cz**: set changelog_map, changelog_pattern to none as default
- **commands/changelog**: remove --skip-merge argument
- **cli**: add changelog arguments

### Feat

- **commands/changelog**: make changelog_file an option in config
- **commands/changelog**: exit when there is no commit exists
- **commands/changlog**: add --start-rev argument to `cz changelog`
- **changelog**: generate changelog based on git log
- **commands/changelog**: generate changelog_tree from all past commits
- **cz/conventinal_commits**: add changelog_map, changelog_pattern and implement process_commit
- **cz/base**: add default process_commit for processing commit message
- **changelog**: changelog tree generation from markdown

## v1.18.1 (2020-04-16)

### Fix

- **config**: display ini config deprecation warning only when commitizen config is inside

## v1.18.0 (2020-04-13)

### Refactor

- **cz/customize**: remove unused mypy ignore
- **mypy**: fix mypy check by checking version.pre exists
- **cz**: add type annotation to registry
- **commands/check**: fix type annotation
- **config/base**: use Dict to replace dict in base_config
- **cz/base**: fix config type used in base cz
- **cz**: add type annotation for each function in cz
- **config**: fix mypy warning for _conf

### Fix

- **cz/customize**: add error handling when customize detail is not set

### Feat

- **bump**: support for ! as BREAKING change in commit message

## v1.17.1 (2020-03-24)

### Fix

- **commands/check**: add help text for check command without argument

### Refactor

- **cli**: fix typo

## v1.17.0 (2020-03-15)

### Refactor

- **tests/bump**: use parameterize to group similliar tests
- **cz/connventional_commit**: use \S to check scope
- **git**: remove unnecessary dot between git range

### Fix

- **bump**: fix bump find_increment error

### Feat

- **commands/check**: add --rev-range argument for checking commits within some range

## v1.16.4 (2020-03-03)

### Fix

- **commands/init**: fix clean up file when initialize commitizen config

### Refactor

- **defaults**: split config files into long term support and deprecated ones

## v1.16.3 (2020-02-20)

### Fix

- replace README.rst with docs/README.md in config files

### Refactor

- **docs**: remove README.rst and use docs/README.md

## v1.16.2 (2020-02-01)

### Fix

- **commands/check**: add bump into valid commit message of convention commit pattern

## v1.16.1 (2020-02-01)

### Fix

- **pre-commit**: set pre-commit check stage to commit-msg

## v1.16.0 (2020-01-21)

### Refactor

- **commands/bump**: rename parameter into bump_setting to distinguish bump_setting and argument
- **git**: rename get tag function to distinguish return str and GitTag
- **cmd**: reimplement how cmd is run
- **git**: Use GitCommit, GitTag object to store commit and git information
- **git**: make arguments other then start and end in get_commit keyword arguments
- **git**: Change get_commits into returning commits instead of lines of messsages

### Feat

- **git**: get_commits default from first_commit

## v1.15.1 (2020-01-20)

## v1.15.0 (2020-01-20)

### Refactor

- **tests/commands/bump**: use tmp_dir to replace self implemented tmp dir behavior
- **git**: make find_git_project_root return None if it's not a git project
- **config/base_config**: make set_key not implemented
- **error_codes**: move all the error_codes to a module
- **config**: replace string type path with pathlib.Path
- **test_bump_command**: rename camel case variables
- **tests/commands/check**: use pytest fixture tmpdir replace self implemented contextmanager
- **test/commands/other**: replace unit test style mock with mocker fixture
- **tests/commands**: separate command unit tests into modules
- **tests/commands**: make commands related tests a module

### Fix

- **git**: remove breakline in the return value of find_git_project_root
- **cli**: fix --version not functional

### Feat

- **config**: look up configuration in git project root
- **git**: add find_git_project_root

## v1.14.2 (2020-01-14)

### Fix

- **github_workflow/pythonpublish**: use peaceiris/actions-gh-pages@v2 to publish docs

## v1.14.1 (2020-01-11)

## v1.14.0 (2020-01-06)

### Refactor

- **pre-commit-hooks**: add metadata for the check hook

### Feat

- **pre-commit-hooks**: add pre-commit hook

### Fix

- **cli**: fix the way default handled for name argument
- **cli**: fix name cannot be overwritten through config in newly refactored config design

## v1.13.1 (2019-12-31)

### Fix

- **github_workflow/pythonpackage**: set git config for unit testing
- **scripts/test**: ensure the script fails once the first failure happens

## v1.13.0 (2019-12-30)

### Feat

- add project version to command init

## v1.12.0 (2019-12-30)

### Feat

- new init command

## v1.10.3 (2019-12-29)

### Refactor

- **commands/bump**: use "version_files" internally
- **config**: set "files" to alias of "version_files"

## v1.10.2 (2019-12-27)

### Refactor

- new config system where each config type has its own class
- **config**: add type annotation to config property
- **config**: fix wrongly type annoated functions
- **config/ini_config**: move deprecation warning into class initialization
- **config**: use add_path instead of directly assigning _path
- **all**: replace all the _settings invoke with settings.update
- **cz/customize**: remove unnecessary statement "raise NotImplementedError("Not Implemented yet")"
- **config**: move default settings back to defaults
- **config**: Make config a class and each type of config (e.g., toml, ini) a child class

### Fix

- **config**: handle empty config file
- **config**: fix load global_conf even if it doesn't exist
- **config/ini_config**: replase outdated _parse_ini_settings with _parse_settings

## v1.10.1 (2019-12-10)

### Fix

- **cli**: overwrite "name" only when it's not given
- **config**: fix typo

## v1.10.0 (2019-11-28)

### Feat

- support for different commitizens in `cz check`
- **bump**: new argument --files-only

## v1.9.2 (2019-11-23)

### Fix

- **commands/check.py**: --commit-msg-file is now a required argument

## v1.9.1 (2019-11-23)

### Fix

- **cz/exceptions**: exception AnswerRequiredException not caught (#89)

## v1.9.0 (2019-11-22)

### Feat

- **Commands/check**: enforce the project to always use conventional commits
- **config**: add deprecation warning for loading config from ini files
- **cz/customize**: add jinja support to enhance template flexibility
- **cz/filters**: add required_validator and multiple_line_breaker
- **cz/cz_customize**: implement info to support info and info_path
- **cz/cz_customize**: enable bump_pattern bump_map customization
- **cz/cz_customize**: implement customizable cz
- **Commands/commit**: add ´--dry-run´ flag to the Commit command
- new 'git-cz' entrypoint

### Refactor

- **config**: remove has_pyproject which is no longer used
- **cz/customize**: make jinja2 a custom requirement. if not installed use string.Tempalte instead
- **cz/utils**: rename filters as utils
- **cli**: add back --version and remove subcommand required constraint

### Fix

- commit dry-run doesnt require staging to be clean
- correct typo to spell "convention"
- removing folder in windows throwing a PermissionError
- **scripts**: add back the delelte poetry prefix
- **test_cli**: testing the version command

## v1.8.0 (2019-11-12)

### Fix

- **commands/commit**: catch exception raised by customization cz
- **cli**: handle the exception that command is not given
- **cli**: enforce subcommand as required

### Refactor

- **cz/conventional_commit**: make NoSubjectException inherit CzException and add error message
- **command/version**: use out.write instead of out.line
- **command**: make version a command instead of an argument

### Feat

- **cz**: add a base exception for cz customization
- **commands/commit**: abort commit if there is nothing to commit
- **git**: add is_staging_clean to check if there is any file in git staging

## v1.7.0 (2019-11-08)

### Fix

- **cz**: fix bug in BaseCommitizen.style
- **cz**: fix merge_style usage error
- **cz**: remove breakpoint

### Refactor

- **cz**: change the color of default style

### Feat

- **config**: update style instead of overwrite
- **config**: parse style in config
- **commit**: make style configurable for commit command

## v1.6.0 (2019-11-05)

### Feat

- **commit**: new retry argument to execute previous commit again

## v1.5.1 (2019-06-04)

### Fix

- #28 allows poetry add on py36 envs

## v1.5.0 (2019-05-11)

### Feat

- **bump**: it is now possible to specify a pattern in the files attr to replace the version

## v1.4.0 (2019-04-26)

### Fix

- **bump**: handle commit and create tag failure

### Feat

- added argument yes to bump in order to accept questions

## v1.3.0 (2019-04-24)

### Feat

- **bump**: new commit message template

## v1.2.1 (2019-04-21)

### Fix

- **bump**: prefixes like docs, build, etc no longer generate a PATCH

## v1.2.0 (2019-04-19)

### Feat

- custom cz plugins now support bumping version

## v1.1.1 (2019-04-18)

### Refactor

- changed stdout statements
- **schema**: command logic removed from commitizen base
- **info**: command logic removed from commitizen base
- **example**: command logic removed from commitizen base
- **commit**: moved most of the commit logic to the commit command

### Fix

- **bump**: commit message now fits better with semver
- conventional commit 'breaking change' in body instead of title

## v1.1.0 (2019-04-14)

### Feat

- new working bump command
- create version tag
- update given files with new version
- **config**: new set key, used to set version to cfg
- support for pyproject.toml
- first semantic version bump implementaiton

### Fix

- removed all from commit
- fix config file not working

### Refactor

- added commands folder, better integration with decli

## v1.0.0 (2019-03-01)

### Refactor

- removed delegator, added decli and many tests

## 1.0.0b2 (2019-01-18)

## v1.0.0b1 (2019-01-17)

### Feat

- py3 only, tests and conventional commits 1.0

## v0.9.11 (2018-12-17)

### Fix

- **config**: load config reads in order without failing if there is no commitizen section

## v0.9.10 (2018-09-22)

### Fix

- parse scope (this is my punishment for not having tests)

## v0.9.9 (2018-09-22)

### Fix

- parse scope empty

## v0.9.8 (2018-09-22)

### Fix

- **scope**: parse correctly again

## v0.9.7 (2018-09-22)

### Fix

- **scope**: parse correctly

## v0.9.6 (2018-09-19)

### Refactor

- **conventionalCommit**: moved fitlers to questions instead of message

### Fix

- **manifest**: inluded missing files

## v0.9.5 (2018-08-24)

### Fix

- **config**: home path for python versions between 3.0 and 3.5

## v0.9.4 (2018-08-02)

### Feat

- **cli**: added version

## v0.9.3 (2018-07-28)

### Feat

- **commiter**: conventional commit is a bit more intelligent now

## v0.9.2 (2017-11-11)

## v0.9.1 (2017-11-11)

### Fix

- **setup.py**: future is now required for every python version

## v0.9.0 (2017-11-08)

### Refactor

- python 2 support

## v0.8.6 (2017-11-08)

## v0.8.5 (2017-11-08)

## v0.8.4 (2017-11-08)

## v0.8.3 (2017-11-08)

## v0.8.2 (2017-10-08)

## v0.8.1 (2017-10-08)

## v0.8.0 (2017-10-08)

### Feat

- **cz**: jira smart commits

## v0.7.0 (2017-10-08)

### Refactor

- **cli**: renamed all to ls command
- **cz**: renamed angular cz to conventional changelog cz

## v0.6.0 (2017-10-08)

### Feat

- info command for angular

## v0.5.0 (2017-10-07)

## v0.4.0 (2017-10-07)

## v0.3.0 (2017-10-07)

## v0.2.0 (2017-10-07)

### Feat

- **config**: new loads from ~/.cz and working project .cz .cz.cfg and setup.cfg
- package discovery

### Refactor

- **cz_angular**: improved messages


text:
  View source  Improve this doc
ngNonBindable

directive in module ng

Description

The ngNonBindable directive tells Angular not to compile or bind the contents of the current
DOM element. This is useful if the element contains what appears to be Angular directives and
bindings but which should be ignored by Angular. This could be the case if you have a site that
displays snippets of code, for instance.

Usage

as attribute
<ANY ng-non-bindable>
   ...
</ANY>

as class
<ANY class="ng-non-bindable">
   ...
</ANY>

Directive info

This directive executes at priority level 1000.

Example

Source

Demo

redpajama_set_name: RedPajamaGithub


text:
#ifndef __VARONT_UTIL_HPP__
#define __VARONT_UTIL_HPP__

#include <vector>

namespace varont {

class Sequence;

namespace util {

/**
 * Get the minimum sequence from an array of {@link com.lmax.varont.Sequence}s.
 *
 * @param sequences to compare.
 * @return the minimum sequence found or Long.MAX_VALUE if the array is empty.
 */
long getMinimumSequence(std::vector<Sequence*>& sequences);

int bitCount(int);

}
}

#endif /* __VARONT_UTIL_HPP__ */


text:
<?php
global $docs_type;
$docs_type = 'O';
cw_load('doc');

$search_data = &cw_session_register('search_data');

$search_data['orders'][$docs_type]['warehouse_area'] = $customer_id;

if ($doc_id) {
    $doc_data = cw_call('cw_doc_get', array($request_prepared['doc_id'], 0));
    if ($customer_id != $doc_data['info']['warehouse_customer_id'])
        cw_header_location("index.php?target=error_message&error=access_denied&id=40");
    cw_include('include/orders/order.php');
}
else
    cw_include('include/orders/orders.php');

$smarty->assign('page_acl', '__18');

$smarty->assign('current_section_dir', 'orders');
?>


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>BaseDevAppServerTestConfig</title>
<meta name="date" content="2013-11-14">
<link rel="stylesheet" type="text/css" href="../../../../../../dev_javadoc.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

com.google.appengine.tools.development.testing

Class BaseDevAppServerTestConfig

java.lang.Object

com.google.appengine.tools.development.testing.BaseDevAppServerTestConfig

All Implemented Interfaces:

DevAppServerTestConfig

public abstract class BaseDevAppServerTestConfig
extends java.lang.Object
implements DevAppServerTestConfig

Base DevAppServerTestConfig implementation with common defaults:
 Use <app dir>/WEB-INF/web.xml.
 Use <app dir>/WEB-INF/appengine-web.xml.
 Install the security manager.
 Make the dev appserver port available in a system property named
 DEFAULT_PORT_SYSTEM_PROPERTY.

Field Summary

Fields

Modifier and Type
Field and Description

static java.lang.String
DEFAULT_PORT_SYSTEM_PROPERTY

Constructor Summary

Constructors

Constructor and Description

BaseDevAppServerTestConfig()

Method Summary

Methods

Modifier and Type
Method and Description

java.io.File
getAppEngineWebXml()

java.lang.String
getPortSystemProperty()

java.io.File
getWebXml()

boolean
installSecurityManager()

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface com.google.appengine.tools.development.testing.DevAppServerTestConfig

getAppDir, getClasspath, getSdkRoot

Field Detail

DEFAULT_PORT_SYSTEM_PROPERTY

public static final java.lang.String DEFAULT_PORT_SYSTEM_PROPERTY

See Also:

Constant Field Values

Constructor Detail

BaseDevAppServerTestConfig

public BaseDevAppServerTestConfig()

Method Detail

getWebXml

public java.io.File getWebXml()

Specified by:

getWebXml in interface DevAppServerTestConfig

Returns:

The location of web.xml.  If null,
 DevAppServerTestConfig.getAppDir()/WEB-INF/web.xml will be used.

getAppEngineWebXml

public java.io.File getAppEngineWebXml()

Specified by:

getAppEngineWebXml in interface DevAppServerTestConfig

Returns:

The location of appengine-web.xml.  If null,
 DevAppServerTestConfig.getAppDir()/WEB-INF/appengine-web.xml will be used.

installSecurityManager

public boolean installSecurityManager()

Specified by:

installSecurityManager in interface DevAppServerTestConfig

Returns:

If true, the dev appserver will be installed with the
 local app engine SecurityManager.  It is strongly recommended you
 install the SecurityManager unless your testing environment does not
 allow SecurityManager to be installed.

getPortSystemProperty

public java.lang.String getPortSystemProperty()

Specified by:

getPortSystemProperty in interface DevAppServerTestConfig

Returns:

The name of the system property that can be consulted to retrieve
 the port on which the dev appserver is running.

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method


text:
<?xml version="1.0" encoding="utf-8"?>
<resources name="ru" flag="ru" title="Russian">
	<string_add name="_bx_groups_page_title_sys_entries_in_context"><![CDATA[Группы в контексте]]></string_add>
    <string_add name="_bx_groups_page_title_entries_in_context"><![CDATA[Группы в {display_name}]]></string_add>
	<string_add name="_bx_groups_page_title_browse_by_context"><![CDATA[Группы в {display_name}]]></string_add>
	<string_add name="_bx_groups_page_block_title_entries_in_context_link"><![CDATA[Группы в {display_name}]]></string_add>
    <string_add name="_bx_groups_page_block_title_entries_in_context"><![CDATA[Группы в контексте]]></string_add>
    <string_add name="_bx_groups_page_block_title_sys_entries_in_context"><![CDATA[Группы в контексте]]></string_add>
	<string_add name="_bx_groups_page_block_title_entry_context"><![CDATA[Опубликовано в]]></string_add>
	<string_add name="_bx_groups_menu_item_title_system_view_entries_in_context"><![CDATA[Группы]]></string_add>
    <string_add name="_bx_groups_menu_item_title_view_entries_in_context"><![CDATA[Группы]]></string_add>
	<string_add name="_bx_groups_txt_all_entries_in"><![CDATA[Все группы в {1} ({2})]]></string_add>
</resources>


text:
from __future__ import annotations

import logging
import shutil
from tarsafe import TarSafe
import tempfile
import uuid
from contextlib import contextmanager
from datetime import datetime
from pathlib import Path
from typing import Text, ContextManager, Tuple, Union

import rasa.utils.common
import rasa.shared.utils.io
from rasa.engine.storage.storage import (
    ModelMetadata,
    ModelStorage,
)
from rasa.engine.graph import GraphModelConfiguration
from rasa.engine.storage.resource import Resource
from rasa.exceptions import UnsupportedModelVersionError
from rasa.shared.core.domain import Domain
import rasa.model

logger = logging.getLogger(__name__)

# Paths within model archive
MODEL_ARCHIVE_COMPONENTS_DIR = "components"
MODEL_ARCHIVE_METADATA_FILE = "metadata.json"

class LocalModelStorage(ModelStorage):
    """Stores and provides output of `GraphComponents` on local disk."""

    def __init__(self, storage_path: Path) -> None:
        """Creates storage (see parent class for full docstring)."""
        self._storage_path = storage_path

    @classmethod
    def create(cls, storage_path: Path) -> ModelStorage:
        """Creates a new instance (see parent class for full docstring)."""
        return cls(storage_path)

    @classmethod
    def from_model_archive(
        cls, storage_path: Path, model_archive_path: Union[Text, Path]
    ) -> Tuple[LocalModelStorage, ModelMetadata]:
        """Initializes storage from archive (see parent class for full docstring)."""
        if next(storage_path.glob("*"), None):
            raise ValueError(
                f"The model storage with path '{storage_path}' is "
                f"not empty. You can only unpack model archives into an "
                f"empty model storage."
            )

        with tempfile.TemporaryDirectory() as temporary_directory:
            temporary_directory = Path(temporary_directory)

            cls._extract_archive_to_directory(model_archive_path, temporary_directory)
            logger.debug(f"Extracted model to '{temporary_directory}'.")

            cls._initialize_model_storage_from_model_archive(
                temporary_directory, storage_path
            )

            metadata = cls._load_metadata(temporary_directory)

            return (
                cls(storage_path),
                metadata,
            )

    @classmethod
    def metadata_from_archive(
        cls, model_archive_path: Union[Text, Path]
    ) -> ModelMetadata:
        """Retrieves metadata from archive (see parent class for full docstring)."""
        with tempfile.TemporaryDirectory() as temporary_directory:
            temporary_directory = Path(temporary_directory)

            cls._extract_archive_to_directory(model_archive_path, temporary_directory)
            metadata = cls._load_metadata(temporary_directory)

            return metadata

    @staticmethod
    def _extract_archive_to_directory(
        model_archive_path: Union[Text, Path], temporary_directory: Path,
    ) -> None:
        with TarSafe.open(model_archive_path, mode="r:gz") as tar:
            tar.extractall(temporary_directory)
        LocalModelStorage._assert_not_rasa2_archive(temporary_directory)

    @staticmethod
    def _assert_not_rasa2_archive(temporary_directory: Path,) -> None:
        fingerprint_file = Path(temporary_directory) / "fingerprint.json"
        if fingerprint_file.is_file():
            serialized_fingerprint = rasa.shared.utils.io.read_json_file(
                fingerprint_file
            )
            raise UnsupportedModelVersionError(
                model_version=serialized_fingerprint["version"]
            )

    @staticmethod
    def _initialize_model_storage_from_model_archive(
        temporary_directory: Path, storage_path: Path
    ) -> None:
        for path in (temporary_directory / MODEL_ARCHIVE_COMPONENTS_DIR).glob("*"):
            shutil.move(
                str(path), str(storage_path),
            )

    @staticmethod
    def _load_metadata(directory: Path) -> ModelMetadata:
        serialized_metadata = rasa.shared.utils.io.read_json_file(
            directory / MODEL_ARCHIVE_METADATA_FILE
        )

        return ModelMetadata.from_dict(serialized_metadata)

    @contextmanager
    def write_to(self, resource: Resource) -> ContextManager[Path]:
        """Persists data for a resource (see parent class for full docstring)."""
        logger.debug(f"Resource '{resource.name}' was requested for writing.")
        directory = self._directory_for_resource(resource)

        if not directory.exists():
            directory.mkdir()

        yield directory

        logger.debug(f"Resource '{resource.name}' was persisted.")

    def _directory_for_resource(self, resource: Resource) -> Path:
        return self._storage_path / resource.name

    @contextmanager
    def read_from(self, resource: Resource) -> ContextManager[Path]:
        """Provides the data of a `Resource` (see parent class for full docstring)."""
        logger.debug(f"Resource '{resource.name}' was requested for reading.")
        directory = self._directory_for_resource(resource)

        if not directory.exists():
            raise ValueError(
                f"Resource '{resource.name}' does not exist. Please make "
                f"sure that the graph component providing the resource "
                f"is a parent node of the current graph node "
                f"(in case this happens during training) or that the "
                f"resource was actually persisted during training "
                f"(in case this happens during inference)."
            )

        yield directory

    def create_model_package(
        self,
        model_archive_path: Union[Text, Path],
        model_configuration: GraphModelConfiguration,
        domain: Domain,
    ) -> ModelMetadata:
        """Creates model package (see parent class for full docstring)."""
        logger.debug(f"Start to created model package for path '{model_archive_path}'.")

        with tempfile.TemporaryDirectory() as temp_dir:
            temporary_directory = Path(temp_dir)

            shutil.copytree(
                self._storage_path, temporary_directory / MODEL_ARCHIVE_COMPONENTS_DIR
            )

            model_metadata = self._create_model_metadata(domain, model_configuration)
            self._persist_metadata(model_metadata, temporary_directory)

            if not model_archive_path.parent.exists():
                model_archive_path.parent.mkdir(parents=True)

            with TarSafe.open(model_archive_path, "w:gz") as tar:
                tar.add(temporary_directory, arcname="")

        logger.debug(f"Model package created in path '{model_archive_path}'.")

        return model_metadata

    @staticmethod
    def _persist_metadata(metadata: ModelMetadata, temporary_directory: Path,) -> None:

        rasa.shared.utils.io.dump_obj_as_json_to_file(
            temporary_directory / MODEL_ARCHIVE_METADATA_FILE, metadata.as_dict()
        )

    @staticmethod
    def _create_model_metadata(
        domain: Domain, model_configuration: GraphModelConfiguration
    ) -> ModelMetadata:
        return ModelMetadata(
            trained_at=datetime.utcnow(),
            rasa_open_source_version=rasa.__version__,
            model_id=uuid.uuid4().hex,
            domain=domain,
            train_schema=model_configuration.train_schema,
            predict_schema=model_configuration.predict_schema,
            training_type=model_configuration.training_type,
            project_fingerprint=rasa.model.project_fingerprint(),
            language=model_configuration.language,
            core_target=model_configuration.core_target,
            nlu_target=model_configuration.nlu_target,
        )


text:
package sfix.msgcodec.message.codec;

import io.netty.buffer.ByteBuf;

/**
 * Specification for a MessageDeserializer, takes a ByteBuf as input and returns the deserialized message object.
 */
public interface MessageDeserializer {
    /**
     * Deserialize a ByteBuf input into a message and return it.
     *
     * @param input The input buffer.
     * @return The deserialized message.
     */
    Object deserialize(ByteBuf input);
}


text:
@import AVFoundation;
@import Accounts;
@import CoreMedia;
@import Foundation;
@import Social;
@import TwitterCore;
@import UIKit;
#else
#import <AVFoundation/AVFoundation.h>
#import <Accounts/Accounts.h>
#import <CoreMedia/CoreMedia.h>
#import <Foundation/Foundation.h>
#import <Social/Social.h>
#import <TwitterCore/TwitterCore.h>
#import <UIKit/UIKit.h>
#endif

#if __IPHONE_OS_VERSION_MIN_REQUIRED < 80000
#error "TwitterKit doesn't support iOS 7.x and lower. Please, change your minimum deployment target to iOS 8.0"
#endif

#import <TwitterKit/Twitter.h>
#import <TwitterKit/TWTRAPIClient.h>
#import <TwitterKit/TWTRCardConfiguration.h>
#import <TwitterKit/TWTRCollectionTimelineDataSource.h>
#import <TwitterKit/TWTRComposer.h>
#import <TwitterKit/TWTRComposerTheme.h>
#import <TwitterKit/TWTRComposerViewController.h>
#import <TwitterKit/TWTRJSONConvertible.h>
#import <TwitterKit/TWTRListTimelineDataSource.h>
#import <TwitterKit/TWTRLogInButton.h>
#import <TwitterKit/TWTRMediaEntitySize.h>
#import <TwitterKit/TWTRMoPubAdConfiguration.h>
#import <TwitterKit/TWTRMoPubNativeAdContainerView.h>
#import <TwitterKit/TWTRNotificationConstants.h>
#import <TwitterKit/TWTROAuthSigning.h>
#import <TwitterKit/TWTRSearchTimelineDataSource.h>
#import <TwitterKit/TWTRTimelineDataSource.h>
#import <TwitterKit/TWTRTimelineType.h>
#import <TwitterKit/TWTRTimelineViewController.h>
#import <TwitterKit/TWTRTweet.h>
#import <TwitterKit/TWTRTweetCashtagEntity.h>
#import <TwitterKit/TWTRTweetDetailViewController.h>
#import <TwitterKit/TWTRTweetEntity.h>
#import <TwitterKit/TWTRTweetHashtagEntity.h>
#import <TwitterKit/TWTRTweetTableViewCell.h>
#import <TwitterKit/TWTRTweetUrlEntity.h>
#import <TwitterKit/TWTRTweetUserMentionEntity.h>
#import <TwitterKit/TWTRTweetView.h>
#import <TwitterKit/TWTRTweetViewDelegate.h>
#import <TwitterKit/TWTRUser.h>
#import <TwitterKit/TWTRUserTimelineDataSource.h>
#import <TwitterKit/TWTRVideoMetaData.h>


text:
package org.example.key_value;

import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.glassfish.jersey.client.JerseyWebTarget;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriBuilder;
import java.io.IOException;
import java.net.URI;

import static javax.ws.rs.client.Entity.text;
import static javax.ws.rs.core.Response.Status.*;
import static org.assertj.core.api.Assertions.assertThat;
import static org.example.key_value.status.DeploymentStatus.RUNNING;
import static org.glassfish.jersey.client.JerseyClientBuilder.createClient;

public class ServiceTestIT {

  private JerseyWebTarget webTarget;

  private Server server;
  private String baseUri;

  @BeforeClass
  public void setUp() throws Exception {
    server = new Server() {
      private Servlet servlet = new Servlet();

      @Override
      public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
        try {
          servlet.service(request, response);
          baseRequest.setHandled(true);
        } catch (RuntimeException | IOException | ServletException e) {
          throw e;
        } catch (Exception e) {
          throw new ServletException(e);
        }
      }
    };
    ServerConnector connector = new ServerConnector(server);
    connector.setHost("127.0.0.1");
    server.addConnector(connector);
    server.start();
    baseUri = "http://127.0.0.1:" + connector.getLocalPort();
    webTarget = createClient().target(baseUri);
  }

  @AfterClass(alwaysRun = true)
  public void tearDown() throws Exception {
    server.stop();
  }

  @Test
  public void get_status__put_status() throws Exception {
    // setup
    Response response;

    // when
    response = webTarget.path("status").request().get();

    // then
    assertThat(response.getStatus()).isEqualTo(SERVICE_UNAVAILABLE.getStatusCode());
    assertThat(response.readEntity(String.class)).startsWith("service.state: BOOTING");

    // when
    response = webTarget.path("status").request().put(text(RUNNING.name()));

    // then
    assertThat(response.getStatus()).isEqualTo(OK.getStatusCode());
    assertThat(response.readEntity(String.class)).startsWith("service.state: RUNNING");
  }

  @Test(dependsOnMethods = "get_status__put_status")
  public void head_status() throws Exception {
    // setup
    Response response;

    // when
    response = webTarget.path("status").request().head();

    // then
    assertThat(response.getStatus()).isEqualTo(OK.getStatusCode());
    assertThat(response.getHeaderString("Content-Length")).isEqualTo("51");
    assertThat(response.readEntity(String.class)).isEmpty();
  }

  @Test(dependsOnMethods = "get_status__put_status")
  public void posting_values() throws Exception {
    // setup
    Response response;

    // when
    response = webTarget.path("store").request().get();

    // then
    assertEmptyResponse(response);

    // when
    response = webTarget.path("store").request().head();

    // then
    assertEmptyResponse(response);

    // when
    response = webTarget.path("store").request().post(text("posted value"));

    // then
    assertThat(response.getStatus()).isEqualTo(CREATED.getStatusCode());
    assertThat(response.getLocation().toASCIIString())
        .startsWith(UriBuilder.fromUri(baseUri).path("store/").build().toASCIIString());
    assertThat(response.readEntity(String.class)).isEqualTo("posted value");

    // given
    URI uri = response.getLocation();

    // when
    response = createClient().target(uri).request().get();

    //then
    assertResponse(response, OK, "posted value");

    // when
    response = webTarget.path("store").request().get();

    // then
    assertThat(response.getStatus()).isEqualTo(OK.getStatusCode());
    assertThat(response.readEntity(String.class).split("\r?\n")).contains(uri.toASCIIString());

    // when
    response = webTarget.path("store").request().head();

    // then
    assertResponse(response, OK, "");
    assertThat(response.getHeaderString("Content-Length")).isEqualTo(Integer.toString(uri.toASCIIString().length() + 2));

    // when
    response = createClient().target(uri).request().delete();

    //then
    assertResponse(response, OK, "posted value");

    // when
    response = webTarget.path("store").request().get();

    // then
    assertEmptyResponse(response);
  }

  @Test(dependsOnMethods = "posting_values")
  public void putting_values() throws Exception {
    // setup
    Response response;

    // when
    response = webTarget.path("store").request().get();

    // then
    assertEmptyResponse(response);

    // when
    response = webTarget.path("store/key").request().get();

    // then
    assertResponse(response, NOT_FOUND, "Not found: key\n");

    // when
    response = webTarget.path("store/key").request().head();

    // then
    assertResponse(response, NOT_FOUND, "");

    // when
    response = webTarget.path("store/key").request().put(text("putted value"));

    // then
    assertResponse(response, CREATED, "putted value");
    assertThat(response.getLocation().toASCIIString())
        .isEqualTo(baseUri + "/store/key");

    // when
    response = webTarget.path("store/key").request().get();

    // then
    assertResponse(response, OK, "putted value");

    // when
    response = webTarget.path("store/key").request().head();

    // then
    assertResponse(response, OK, "");
    assertThat(response.getHeaderString("Content-Length")).isEqualTo("12");

    // when
    response = webTarget.path("store/key").request().put(text("different putted value"));

    // then
    assertResponse(response, OK, "different putted value");

    // when
    response = webTarget.path("store/key").request().get();

    // then
    assertResponse(response, OK, "different putted value");

    // when
    response = webTarget.path("store/key").request().head();

    // then
    assertResponse(response, OK, "");
    assertThat(response.getHeaderString("Content-Length")).isEqualTo("22");

    // when
    response = webTarget.path("store").request().get();

    // then
    assertThat(response.getStatus()).isEqualTo(OK.getStatusCode());
    assertThat(response.readEntity(String.class).split("\r?\n")).containsOnly(baseUri + "/store/key");

    // when
    response = webTarget.path("store/key").request().delete();

    // then
    assertResponse(response, OK, "different putted value");

    // when
    response = webTarget.path("store").request().get();

    // then
    assertEmptyResponse(response);

    // when
    response = webTarget.path("store/key").request().get();

    // then
    assertResponse(response, NOT_FOUND, "Not found: key\n");
  }

  @Test
  public void options_for_collection() throws Exception {

    final Response response = webTarget.path("store").request().options();

    assertResponse(response, OK, "");
    assertThat(response.getHeaderString("Content-Length")).contains("0");
    assertThat(response.getHeaderString("Allow").split(" *, *")).containsOnly("GET", "HEAD", "OPTIONS", "POST");
  }

  @Test
  public void method_not_allowed_response_for_collection() throws Exception {

    final Response response = webTarget.path("store").request().delete();

    assertResponse(response, METHOD_NOT_ALLOWED, "");
    assertThat(response.getHeaderString("Content-Length")).contains("0");
    assertThat(response.getHeaderString("Allow").split(" *, *")).containsOnly("GET", "HEAD", "OPTIONS", "POST");
  }

  @Test
  public void options_for_key() throws Exception {

    final Response response = webTarget.path("store/key").request().options();

    assertResponse(response, OK, "");
    assertThat(response.getHeaderString("Content-Length")).contains("0");
    assertThat(response.getHeaderString("Allow").split(" *, *")).containsOnly("GET", "HEAD", "OPTIONS", "PUT", "DELETE");
  }

  @Test
  public void method_not_allowed_response_for_key() throws Exception {

    final Response response = webTarget.path("store/key").request().post(text(""));

    assertResponse(response, METHOD_NOT_ALLOWED, "");
    assertThat(response.getHeaderString("Content-Length")).contains("0");
    assertThat(response.getHeaderString("Allow").split(" *, *")).containsOnly("GET", "HEAD", "OPTIONS", "PUT", "DELETE");
  }

  private void assertResponse(Response response, Response.Status status, String messageBody) {
    assertThat(response.getStatus()).isEqualTo(status.getStatusCode());
    assertThat(response.readEntity(String.class)).isEqualTo(messageBody);
  }

  private void assertEmptyResponse(Response response) {
    assertThat(response.getStatus()).isEqualTo(NO_CONTENT.getStatusCode());
    assertThat(response.readEntity(String.class)).isNullOrEmpty();
  }
}


text:
package org.cc.fun.dbf;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author william
 */
public class DBFBase {

    public static void __release(ResultSet rs) throws SQLException {
        if (rs != null) {
            rs.close();
            rs = null;
        }
    }

    public static void __release(PreparedStatement ps) throws SQLException {
        if (ps != null) {
            ps.close();
            ps = null;
        }
    }

}


text:
package org.broadleafcommerce.profile.core.service;

import org.broadleafcommerce.profile.core.domain.CountrySubdivision;
import java.util.List;

/**
 * @author Elbert Bautista (elbertbautista)
 */
public interface CountrySubdivisionService {

    public List<CountrySubdivision> findSubdivisions();

    public List<CountrySubdivision> findSubdivisions(String countryAbbreviation);

    public List<CountrySubdivision> findSubdivisionsByCountryAndCategory(String countryAbbreviation, String category);

    public CountrySubdivision findSubdivisionByAbbreviation(String abbreviation);

    public CountrySubdivision save(CountrySubdivision subdivision);

}


text:
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.IO;
using System.Text;
using GameRes.Formats.Strings;
using GameRes.Utility;

namespace GameRes.Formats.Ego
{
    [Export(typeof(ArchiveFormat))]
    public class DatOpener : ArchiveFormat
    {
        public override string         Tag { get { return "DAT/EGO"; } }
        public override string Description { get { return "Studio e.go! engine resource archive"; } }
        public override uint     Signature { get { return 0; } }
        public override bool  IsHierarchic { get { return true; } }
        public override bool     CanCreate { get { return true; } }

        public DatOpener ()
        {
            Extensions = new string[] { "dat" };
        }

        public override ArcFile TryOpen (ArcView file)
        {
            uint data_offset = 4 + file.View.ReadUInt32 (0);
            if (data_offset <= 0x14 || data_offset >= file.MaxOffset)
                return null;
            var dir = new List<Entry>();
            long index_offset = 4;
            while (index_offset < data_offset)
            {
                uint entry_len = file.View.ReadUInt32 (index_offset);
                if (entry_len <= 0x10 || entry_len > 0x100 || index_offset + entry_len > data_offset)
                    return null;
                var name = file.View.ReadString (index_offset+0x10, entry_len-0x10);
                var entry = FormatCatalog.Instance.Create<Entry> (name);
                entry.Offset = file.View.ReadUInt32 (index_offset+8);
                entry.Size   = file.View.ReadUInt32 (index_offset+12);
                if (entry.Offset < data_offset || !entry.CheckPlacement (file.MaxOffset))
                    return null;
                dir.Add (entry);
                index_offset += entry_len;
            }
            return new ArcFile (file, this, dir);
        }

        public override void Create (Stream output, IEnumerable<Entry> list, ResourceOptions options,
                                     EntryCallback callback)
        {
            using (var writer = new BinaryWriter (output, Encoding.ASCII, true))
            {
                var encoding = Encodings.cp932.WithFatalFallback();
                int callback_count = 0;
                if (null != callback)
                    callback (callback_count++, null, arcStrings.MsgWritingIndex);

                writer.Write (0);
                byte[] name_buf = new byte[256];
                uint index_size = 0;
                var entry_sizes = new List<int>();

                // first, write names only
                foreach (var entry in list)
                {
                    try
                    {
                        int size = encoding.GetBytes (entry.Name, 0, entry.Name.Length, name_buf, 0);
                        if (name_buf.Length == size)
                            throw new InvalidFileName (entry.Name, arcStrings.MsgFileNameTooLong);
                        name_buf[size] = 0;
                        int entry_size = size+17;
                        writer.Write (entry_size);
                        writer.BaseStream.Seek (12, SeekOrigin.Current);
                        writer.Write (name_buf, 0, size+1);
                        entry_sizes.Add (entry_size);
                        index_size += (uint)entry_size;
                    }
                    catch (EncoderFallbackException X)
                    {
                        throw new InvalidFileName (entry.Name, arcStrings.MsgIllegalCharacters, X);
                    }
                    catch (ArgumentException X)
                    {
                        throw new InvalidFileName (entry.Name, arcStrings.MsgFileNameTooLong, X);
                    }
                }

                // now, write files and remember offset/sizes
                long current_offset = writer.BaseStream.Position;
                foreach (var entry in list)
                {
                    if (null != callback)
                        callback (callback_count++, entry, arcStrings.MsgAddingFile);

                    entry.Offset = current_offset;
                    using (var input = File.OpenRead (entry.Name))
                    {
                        var file_size = input.Length;
                        if (file_size > uint.MaxValue || current_offset + file_size > uint.MaxValue)
                            throw new FileSizeException();
                        current_offset += file_size;
                        entry.Size = (uint)file_size;
                        input.CopyTo (output);
                    }
                }

                if (null != callback)
                    callback (callback_count++, null, arcStrings.MsgUpdatingIndex);

                // at last, go back to directory and write offset/sizes
                writer.BaseStream.Position = 0;
                writer.Write (index_size);
                long index_offset = 4+8;
                int i = 0;
                foreach (var entry in list)
                {
                    writer.BaseStream.Position = index_offset;
                    int entry_size = entry_sizes[i++];
                    index_offset += entry_size;
                    writer.Write ((uint)entry.Offset);
                    writer.Write (entry.Size);
                }
            }
        }
    }
}


text:
<?php
declare(strict_types = 1);

namespace App\Service\Authorization\Middleware;

use App\Service\Authorization\AuthorizationServiceInterface;
use App\Service\Authorization\Role\AttendeeRole;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Zend\Diactoros\Response\HtmlResponse;
use Zend\Expressive\Template\TemplateRendererInterface;
use Zend\Stratigility\MiddlewareInterface;

final class HasAttendeeRoleMiddleware implements MiddlewareInterface
{
    /**
     * @var AuthorizationServiceInterface
     */
    private $authorizationService;

    /**
     * @var TemplateRendererInterface
     */
    private $renderer;

    public function __construct(
        AuthorizationServiceInterface $authorizationService,
        TemplateRendererInterface $renderer
    ) {
        $this->authorizationService = $authorizationService;
        $this->renderer = $renderer;
    }

    /**
     * {@inheritdoc}
     * @throws \InvalidArgumentException
     */
    public function __invoke(Request $request, Response $response, callable $out = null) : Response
    {
        if (!$this->authorizationService->hasRole(new AttendeeRole())) {
            return new HtmlResponse($this->renderer->render('error/403'), 403);
        }

        return $out($request, $response);
    }
}


text:
ĐĂNG KÝ TÀI KHOẢN MIỄN PHÍ

			Có được danh sách và tham gia hàng ngàn doanh nghiệp đã có trên Wahanda

				<form class="form-horizontal" id="business_signup_form" method="post" action="./venuedetail">

							TÊN THƯƠNG MẠI

							<input name="business_name" class="form-control required" type="text" />
							Tên bạn sẽ dùng để quảng cáo với khách hàng

							POST CODE

							<input name="post_code" class="form-control required" type="text" />

							<select name="country_id" class="form-control">
								<option value="234">United Kingdom</option>
								<option value="235">United States</option>
								<option value="87">France</option>
								<option value="94">Germany</option>
								<option value="205">Spain</option>
								<option value="117">Italy</option>
							</select>

							HỌ TÊN

							<input name="full_name" class="form-control required" type="text" />

							EMAIL

							<input name="email" class="form-control required email" type="text" />

							<button type="submit" class="btn btn-warning pull-right">
								TIẾP TỤC
							</button>

				</form>

MỘT CHÚT VỀ CHÚNG TÔI

1)  We're the world's fastest growing online health and beauty marketplace

2)  Getting psted improves your web presence, making your business easier to find

3)  Our free onpne booking system makes managing your business simple and gives you the option to sell through Wahanda

4)  Pay just 20% plus  VAT commission on sales we send you and receive payment within 15 days

5)  Any data you share with us belongs to you and we promise to keep it secure


text:
from parser import parse_file, parse_string
from node import Node


text:
motion_require "../module/aliasing"

class Range
  # Extends the default Range#include? to support range comparisons.
  #  (1..5).include?(1..5) # => true
  #  (1..5).include?(2..3) # => true
  #  (1..5).include?(2..6) # => false
  #
  # The native Range#include? behavior is untouched.
  #  ('a'..'f').include?('c') # => true
  #  (5..9).include?(11) # => false
  def include_with_range?(value)
    if value.is_a?(::Range)
      # 1...10 includes 1..9 but it does not include 1..10.
      operator = exclude_end? && !value.exclude_end? ? :< : :<=
      include_without_range?(value.first) && value.last.send(operator, last)
    else
      include_without_range?(value)
    end
  end

  alias_method_chain :include?, :range
end


text:
#region Licence...

#endregion Licence...

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Xml.Linq;
using IO = System.IO;

namespace WixSharp
{
    ///
    /// Base class for all Wix# related types
    ///
    public class WixObject
    {
        ///
        /// Collection of Attribute/Value pairs for WiX element attributes not supported directly by Wix# objects.
        /// <para>You should use <c>Attributes</c> if you want to inject specific XML attributes
        /// for a given WiX element.</para>
        /// <para>For example <c>Hotkey</c> attribute is not supported by Wix# <see cref="T:WixSharp.Shortcut"/>
        /// but if you want them to be set in the WiX source file you may achieve this be setting
        /// <c>WixEntity.Attributes</c> member variable:
        /// <para> new Shortcut { Attributes= new { {"Hotkey", "0"} } </para>
        /// <remarks>
        /// You can also inject attributes into WiX components "related" to the <see cref="WixEntity"/> but not directly
        /// represented in the Wix# entities family. For example if you need to set a custom attribute for the WiX <c>Component</c>
        /// XML element you can use corresponding <see cref="T:WixSharp.File"/> attributes. The only difference from
        /// the <c>Hotkey</c> example is the composite (column separated) key name:
        /// <para> new File { Attributes= new { {"Component:SharedDllRefCount", "yes"} } </para>
        /// The code above will force the Wix# compiler to insert "SharedDllRefCount" attribute into <c>Component</c>
        /// XML element, which is automatically generated for the <see cref="T:WixSharp.File"/>.
        /// <para>Currently the only supported "related" attribute is  <c>Component</c>.</para>
        /// <para>Note the attribute key can include xml namespace prefix:
        ///
        /// { "{dep}ProviderKey", "01234567-8901-2345-6789-012345678901" }
        ///
        /// Though in this case the required namespace must be already added to the element/document.</para>
        /// </remarks>
        /// </para>
        ///
        public Dictionary<string, string> Attributes
        {
            get
            {
                ProcessAttributesDefinition();
                return attributes;
            }
            set
            {
                attributes = value;
            }
        }

        Dictionary<string, string> attributes = new Dictionary<string, string>();

        ///
        /// Optional attributes of the <c>WiX Element</c> (e.g. Secure:YesNoPath) expressed as a string KeyValue pairs (e.g. "StartOnInstall=Yes; Sequence=1").
        /// <para>OptionalAttributes just redirects all access calls to the <see cref="T:WixEntity.Attributes"/> member.</para>
        /// <para>You can also use <see cref="T:WixEntity.AttributesDefinition"/> to keep the code cleaner.</para>
        /// <para>Note <c>name</c> can include xml namespace prefix:
        ///
        /// AttributesDefinition = "{dep}ProviderKey=01234567-8901-2345-6789-012345678901"
        ///
        /// Though in this case the required namespace must be already added to the element/document.</para>
        ///
        /// <example>
        ///
        /// var webSite = new WebSite
        /// {
        ///     Description = "MyWebSite",
        ///     Attributes = new Dictionary<string, string> { { "StartOnInstall", "Yes" },  { "Sequence", "1" } }
        ///     //or
        ///     AttributesDefinition = "StartOnInstall=Yes; Sequence=1"
        ///     ...
        ///
        /// </example>
        public string AttributesDefinition { get; set; }

        internal Dictionary<string, string> attributesBag = new Dictionary<string, string>();

        void ProcessAttributesDefinition()
        {
            if (!AttributesDefinition.IsEmpty())
            {
                try
                {
                    this.Attributes = AttributesDefinition.ToDictionary();
                }
                catch (Exception e)
                {
                    throw new Exception("Invalid AttributesDefinition", e);
                }
            }

            foreach (var item in attributesBag)
                this.attributes[item.Key] = item.Value;
        }

        internal string GetAttributeDefinition(string name)
        {
            var preffix = name + "=";

            return (AttributesDefinition ?? "").Trim()
                                               .Split(";".ToCharArray(), StringSplitOptions.RemoveEmptyEntries)
                                               .Where(x => x.StartsWith(preffix))
                                               .Select(x => x.Substring(preffix.Length))
                                               .FirstOrDefault();
        }

        internal void SetAttributeDefinition(string name, string value, bool append = false)
        {
            var preffix = name + "=";

            var allItems = (AttributesDefinition ?? "").Trim()
                                                       .Split(";".ToCharArray(), StringSplitOptions.RemoveEmptyEntries)
                                                       .ToList();

            var items = allItems;

            if (value.IsNotEmpty())
            {
                if (append)
                {
                    //add index to the items with the same key
                    var similarNamedItems = allItems.Where(x => x.StartsWith(name)).ToArray();
                    items.Add(name + similarNamedItems.Count() + "=" + value);
                }
                else
                {
                    //reset items with the same key
                    items.RemoveAll(x => x.StartsWith(preffix));
                    items.Add(name + "=" + value);
                }
            }

            AttributesDefinition = string.Join(";", items.ToArray());
        }

        ///
        /// <see cref="Feature"></see> the Wix object belongs to. This member is processed only for the
        /// WiX objects/elements that can be associated with the features (e.g. WebSite, FirewallException, ODBCDataSource, User,
        /// EnvironmentVariable, Merge, Dir, RegFile, RegValue, Shortcut, SqlDatabase, SqlScript).
        /// <remarks>
        /// <para>
        /// Wix# makes an emphasis on the main stream scenarios when an entity (e.g. File) belongs to a single feature.
        /// And this member is to serve these scenarios via constructors or initializers.
        /// </para>
        /// However MSI/WiX allows the same component to be included into multiple features. If it is what your deployment logic dictates
        /// then you need to use <see cref="WixSharp.WixObject.Features"/>.
        /// </remarks>
        ///
        public Feature Feature
        {
            set { feature = value; }
            internal get { return feature; }
        }

        Feature feature;

        ///
        /// The collection of <see cref="Feature"></see>s the Wix object belongs to. This member is processed only for the
        /// WiX objects/elements that can be associated with the features (e.g. WebSite, FirewallException, ODBCDataSource, User,
        /// EnvironmentVariable, Merge, Dir, RegFile, RegValue, Shortcut, SqlDatabase).
        /// <remarks>
        /// Note, this member is convenient for scenarios where the same component is to be included into multiple features.
        /// However, if the component is to be associated only with a single feature then <see cref="WixSharp.WixObject.Feature"/>
        /// is a more convenient choice as it can be initialized either via constructors or object initializers.eature.
        /// </remarks>
        ///
        public Feature[] Features = new Feature[0];

        ///
        /// Gets the actual list of features associated with the Wix object/element. It is a combined
        /// collection of <see cref="WixSharp.WixObject.Features"/> and <see cref="WixSharp.WixObject.Feature"/>.  union of the
        ///
        /// <value>
        /// The actual features.
        /// </value>
        public Feature[] ActualFeatures
        {
            get
            {
                return Features.Concat(this.feature.ToItems())
                               .Where(x => x != null)
                               .Distinct()
                               .ToArray();
            }
        }

        ///
        /// Maps the component to features. If no features specified then the component is added to the default ("Complete") feature.
        ///
        /// <param name="componentId">The component identifier.</param>
        /// <param name="features">The features.</param>
        /// <param name="context">The context.</param>
        public static void MapComponentToFeatures(string componentId, Feature[] features, ProcessingContext context)
        {
            var project = (Project)context.Project;

            if (features.Any())
                context.FeatureComponents.Map(features, componentId);
            else if (context.FeatureComponents.ContainsKey(project.DefaultFeature))
                context.FeatureComponents[project.DefaultFeature].Add(componentId);
            else
                context.FeatureComponents[project.DefaultFeature] = new List<string> { componentId };
        }
    }

    ///
    /// Alias for the <c>Dictionary<string, string> </c> type.
    ///
    public class Attributes : Dictionary<string, string>
    {
    }

    ///
    /// Generic <see cref="T:WixSharp.WixEntity"/> container for defining WiX <c>Package</c> element attributes.
    /// <para>These attributes are the properties of the package to be placed in the Summary Information Stream. These are visible from COM through the IStream interface, and can be seen in Explorer.</para>
    ///<example>The following is an example of defining the <c>Package</c> attributes.
    ///
    /// var project =
    ///     new Project("My Product",
    ///         new Dir(@"%ProgramFiles%\My Company\My Product",
    ///
    ///     ...
    ///
    /// project.Package.AttributesDefinition = @"AdminImage=Yes;
    ///                                          Comments=Release Candidate;
    ///                                          Description=Fantastic product...";
    ///
    /// Compiler.BuildMsi(project);
    ///
    /// </example>
    ///
    public class Package : WixEntity
    {
    }

    ///
    /// Base class for all Wix# types representing WiX XML elements (entities)
    ///
    public class WixEntity : WixObject
    {
        internal void MoveAttributesTo(WixEntity dest)
        {
            var attrs = this.Attributes;
            var attrsDefinition = this.AttributesDefinition;
            this.Attributes.Clear();
            this.AttributesDefinition = null;
            dest.Attributes = attrs;
            dest.AttributesDefinition = attrsDefinition;
        }

        internal string GenerateComponentId(Project project, string suffix = "")
        {
            return this.GetExplicitComponentId() ??
                   project.ComponentId($"Component.{this.Id}{suffix}");
        }

        internal string GetExplicitComponentId()
        {
            var attrs = this.AttributesDefinition.ToDictionary();
            if (attrs.ContainsKey("Component:Id"))
                return attrs["Component:Id"];
            else
                return null;
        }

        ///
        /// Gets or sets the id of the Component element that is to contain XML equivalent of the <see cref="WixEntity"/>.
        ///
        /// <value>
        /// The component identifier.
        /// </value>
        public string ComponentId
        {
            get => GetAttributeDefinition("Component:Id");
            set => SetAttributeDefinition("Component:Id", value);
        }

        ///
        /// Gets or sets the Condition attribute of the Component element that is to contain XML equivalent of the
        /// <see cref="WixEntity"/>.
        /// <para>Note, some WiW elements may not be contained by Component elements (e.g. 'CloseApplication').
        /// Thus attempt to set parent component Condition attribute will always fail.</para>
        ///
        /// <value>
        /// The component condition.
        /// </value>
        public string ComponentCondition
        {
            // Component:element_Condition=base64_SU5TVEFMTF9PREJDID0gInllcyI=
            get => (GetAttributeDefinition("Component:element_Condition") ?? "").Replace("base64_", "").Base64Decode();
            set => SetAttributeDefinition("Component:element_Condition", "base64_" + value.Base64Encode());
        }

        // public string ComponentCondition;

        // public Condition ComponentCondition;

        internal void AddInclude(string xmlFile, string parentElement)
        {
            SetAttributeDefinition("WixSharpCustomAttributes:xml_include", parentElement + "|" + xmlFile, append: true);
        }

        ///
        /// Name of the <see cref="WixEntity"/>.
        /// <para>This value is used as a <c>Name</c> for the corresponding WiX XML element.</para>
        ///
        public string Name = "";

        ///
        /// Gets or sets the <c>Id</c> value of the <see cref="WixEntity"/>.
        /// <para>This value is used as a <c>Id</c> for the corresponding WiX XML element.</para>
        /// <para>If the <see cref="Id"/> value is not specified explicitly by the user the Wix# compiler
        /// generates it automatically insuring its uniqueness.</para>
        /// <remarks>
        ///  Note: The ID auto-generation is triggered on the first access (evaluation) and in order to make the id
        ///  allocation deterministic the compiler resets ID generator just before the build starts. However if you
        ///  accessing any auto-id before the Build*() is called you can it interferes with the ID auto generation and eventually
        ///  lead to the WiX ID duplications. To prevent this from happening either:
        ///  <para> - Avoid evaluating the auto-generated IDs values before the call to Build*()</para>
        ///  <para> - Set the IDs (to be evaluated) explicitly</para>
        ///  <para> - Prevent resetting auto-ID generator by setting WixEntity.DoNotResetIdGenerator to true";</para>
        /// </remarks>
        ///
        /// <value>The id.</value>
        public string Id
        {
            get
            {
                if (id.IsEmpty())
                {
                    if (this is Feature)
                    {
                        // break point parking spot
                    }
                    id = Compiler.AutoGeneration.CustomIdAlgorithm?.Invoke(this) ?? IncrementalIdFor(this);
                }

                return id;
            }
            set
            {
                id = value;
                isAutoId = false;
            }
        }

        ///
        /// Index based Id generation algorithm.
        /// <para>It is the default algorithm, which generates the most human readable Id. Thus if the
        /// project has two `index.html` files one will be assigned Id `index.html` and another one
        /// `index.html.1`.</para>
        /// <para> Limitations: If two files have the same name it is non-deterministic which one gets
        /// clear Id and which one the indexed one.</para>
        ///
        /// <param name="entity">The entity.</param>
        /// <returns></returns>
        public static string IncrementalIdFor(WixEntity entity)
        {
            lock (idMaps)
            {
                if (!idMaps.ContainsKey(entity.GetType()))
                    idMaps[entity.GetType()] = new Dictionary<string, int>();

                var rawName = entity.Name.Expand();
                if (rawName.IsEmpty())
                    rawName = entity.GetType().Name;

                if (IO.Path.IsPathRooted(entity.Name))
                    rawName = IO.Path.GetFileName(entity.Name).Expand();

                if (entity.GetType() != typeof(Dir) && entity.GetType().BaseType != typeof(Dir) && entity.Name.IsNotEmpty())
                    rawName = IO.Path.GetFileName(entity.Name).Expand();

                //Maximum allowed length for a stream name is 62 characters long; In some cases more but to play it safe keep 62 limit
                //
                //Note: the total limit 62 needs to include in some cases MSI auto prefix (e.g. table name) ~15 chars
                // our hash code (max 10 chars) and our decoration (separators). So 30 seems to be a safe call
                //
                int maxLength = 30;
                if (rawName.Length > maxLength)
                {
                    //some chars are illegal as star if the ID so work around this with '_' prefix
                    rawName = "_..." + rawName.Substring(rawName.Length - maxLength);
                }

                string rawNameKey = rawName.ToLower();

                /*
                 "bin\Release\similarFiles.txt" and "bin\similarfiles.txt" will produce the following IDs
                 "Component.similarFiles.txt" and "Component.similariles.txt", which will be treated by Wix compiler as duplication
                 */

                if (!idMaps[entity.GetType()].ContainsSimilarKey(rawName)) //this Type has not been generated yet
                {
                    idMaps[entity.GetType()][rawNameKey] = 0;
                    entity.id = rawName;
                    if (char.IsDigit(entity.id.Last()))
                        entity.id += "_"; // work around for https://wixsharp.codeplex.com/workitem/142
                                          // to avoid potential collision between ids that end with digit
                                          // and auto indexed (e.g. [rawName + "." + index])
                }
                else
                {
                    //The Id has been already generated for this Type with this rawName
                    //so just increase the index
                    var index = idMaps[entity.GetType()][rawNameKey] + 1;

                    entity.id = rawName + "." + index;
                    idMaps[entity.GetType()][rawNameKey] = index;
                }

                //Trace.WriteLine(">>> " + GetType() + " >>> " + id);

                if (rawName.IsNotEmpty() && char.IsDigit(rawName[0]))
                    entity.id = "_" + entity.id;

                while (alreadyTakenIds.Contains(entity.id)) //last line of defense against duplication
                    entity.id += "_";

                alreadyTakenIds.Add(entity.id);

                return entity.id;
            }
        }

        static readonly List<string> alreadyTakenIds = new List<string>();

        internal bool isAutoId = true;

        ///
        /// Backing value of <see cref="Id"/>.
        ///
        protected string id;

        internal string RawId { get { return id; } }

        ///
        /// The do not reset auto-ID generator before starting the build.
        ///
        static public bool DoNotResetIdGenerator = false;

        static readonly Dictionary<Type, Dictionary<string, int>> idMaps = new Dictionary<Type, Dictionary<string, int>>();

        ///
        /// Resets the <see cref="Id"/> generator. This method is exercised by the Wix# compiler before any
        /// <c>Build</c> operations to ensure reproducibility of the <see cref="Id"/> set between <c>Build()</c>
        /// calls.
        ///
        static public void ResetIdGenerator()
        {
            idMaps.Clear();
            alreadyTakenIds.Clear();
        }

        static internal void ResetIdGenerator(bool supressWarning)
        {
            if (!DoNotResetIdGenerator)
            {
                // ServiceInstaller and SvcEvent are the only types that are expected to be allocated before
                // the BuildMsi calls. This is because they are triggered on setting `ServiceInstaller.StartOn`
                // and other similar service actions.
                bool anyAlreadyAllocatedIds = idMaps.Keys.Any(x => x != typeof(ServiceInstaller) && x != typeof(SvcEvent));

                if (anyAlreadyAllocatedIds && !supressWarning)
                {
                    var message = "----------------------------\n" +
                    "Warning: Wix# compiler detected that some IDs has been auto-generated before the build started. " +
                    "This can lead to the WiX ID duplications on consecutive 'Build*' calls.\n" +
                    "To prevent this from happening either:\n" +
                    "   - Avoid evaluating the auto-generated IDs values before the call to Build*\n" +
                    "   - Set the IDs (to be evaluated) explicitly\n" +
                    "   - Prevent resetting auto-ID generator by setting WixEntity.DoNotResetIdGenerator to true\n" +
                    "----------------------------";
                    Compiler.OutputWriteLine(message);
                }
                ResetIdGenerator();
            }
        }

        internal bool IsIdSet()
        {
            return !id.IsEmpty();
        }
    }
}


text:
namespace SWITCH_OVER.Shared.Commands
{
	public abstract class CommandRequest : Command
	{
	}
}


text:
.class Landroid/service/carrier/CarrierMessagingService$ICarrierMessagingWrapper$3;
.super Ljava/lang/Object;
.source "CarrierMessagingService.java"

# interfaces
.implements Landroid/service/carrier/CarrierMessagingService$ResultCallback;

# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Landroid/service/carrier/CarrierMessagingService$ICarrierMessagingWrapper;->sendDataSms([BILjava/lang/String;ILandroid/service/carrier/ICarrierMessagingCallback;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/service/carrier/CarrierMessagingService$ResultCallback",
        "<",
        "Landroid/service/carrier/CarrierMessagingService$SendSmsResult;",
        ">;"
    }
.end annotation

# instance fields
.field final synthetic this$1:Landroid/service/carrier/CarrierMessagingService$ICarrierMessagingWrapper;

.field final synthetic val$callback:Landroid/service/carrier/ICarrierMessagingCallback;

# direct methods
.method constructor <init>(Landroid/service/carrier/CarrierMessagingService$ICarrierMessagingWrapper;Landroid/service/carrier/ICarrierMessagingCallback;)V
    .locals 0

    .prologue
    .line 373
    iput-object p1, p0, Landroid/service/carrier/CarrierMessagingService$ICarrierMessagingWrapper$3;->this$1:Landroid/service/carrier/CarrierMessagingService$ICarrierMessagingWrapper;

    iput-object p2, p0, Landroid/service/carrier/CarrierMessagingService$ICarrierMessagingWrapper$3;->val$callback:Landroid/service/carrier/ICarrierMessagingCallback;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

# virtual methods
.method public onReceiveResult(Landroid/service/carrier/CarrierMessagingService$SendSmsResult;)V
    .locals 3
    .param p1, "result"    # Landroid/service/carrier/CarrierMessagingService$SendSmsResult;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    .line 376
    iget-object v0, p0, Landroid/service/carrier/CarrierMessagingService$ICarrierMessagingWrapper$3;->val$callback:Landroid/service/carrier/ICarrierMessagingCallback;

    invoke-virtual {p1}, Landroid/service/carrier/CarrierMessagingService$SendSmsResult;->getSendStatus()I

    move-result v1

    invoke-virtual {p1}, Landroid/service/carrier/CarrierMessagingService$SendSmsResult;->getMessageRef()I

    move-result v2

    invoke-interface {v0, v1, v2}, Landroid/service/carrier/ICarrierMessagingCallback;->onSendSmsComplete(II)V

    .line 377
    return-void
.end method

.method public bridge synthetic onReceiveResult(Ljava/lang/Object;)V
    .locals 0
    .param p1, "x0"    # Ljava/lang/Object;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    .line 373
    check-cast p1, Landroid/service/carrier/CarrierMessagingService$SendSmsResult;

    .end local p1    # "x0":Ljava/lang/Object;
    invoke-virtual {p0, p1}, Landroid/service/carrier/CarrierMessagingService$ICarrierMessagingWrapper$3;->onReceiveResult(Landroid/service/carrier/CarrierMessagingService$SendSmsResult;)V

    return-void
.end method


text:
<!DOCTYPE html>

	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>403 Forbidden</title>
	<link rel="stylesheet" href="/@admin/assets/css/defaults.css">

403

Access forbidden.

The server understood the request, but is refusing to fulfill it.

			Back To Homepage


text:
package com.github.webdriverextensions.junitrunner.annotations;

import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface IgnoreBrowsers {
    public IgnoreAndroid[] android() default {};
    public IgnoreChrome[] chrome() default {};
    public IgnoreFirefox[] firefox() default {};
    public IgnoreHtmlUnit[] htmlUnit() default {};
    public IgnoreIPhone[] iPhone() default {};
    public IgnoreIPad[] iPad() default {};
    public IgnoreInternetExplorer[] internetExplorer() default {};
    public IgnoreOpera[] opera() default {};
    public IgnorePhantomJS[] phantomJS() default {};
    public IgnoreSafari[] safari() default {};
    public IgnoreBrowser[] browser() default {};
}