/*
 * Copyright (c) 2018  Moddable Tech, Inc.
 *
 *   This file is part of the Moddable SDK Runtime.
 *
 *   The Moddable SDK Runtime is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU Lesser General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   The Moddable SDK Runtime is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU Lesser General Public License for more details.
 *
 *   You should have received a copy of the GNU Lesser General Public License
 *   along with the Moddable SDK Runtime.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
/*
	trivial example font engine.

	- font data is array of 8x8 one-bit bitmaps
	- glyphs are sequential starting with ASCII 0
	- metrics always the same: 8 pixel advance, 7 pixel ascent,
		 1 pixel descent, 1 pixel leading
*/

#include "commodettoFontEngine.h"
#include "commodettoPocoBlit.h"
#include "xsPlatform.h"

#if 0 != kPocoRotation
	#error unsupported rotation
#endif

struct CommodettoFontEngineRecord {
	CFEGlyphRecord		glyph;
	const uint8_t		*font;
	uint32_t			glyphCount;
};

typedef struct CommodettoFontEngineRecord CommodettoFontEngineRecord;
typedef struct CommodettoFontEngineRecord TinyFontRecord;
typedef struct CommodettoFontEngineRecord *TinyFont;

CommodettoFontEngine CFENew(void)
{
	CFEGlyph glyph;
	TinyFont tf = c_malloc(sizeof(TinyFontRecord));
	if (!tf)
		return NULL;

	glyph = &tf->glyph;
	glyph->sx = 0;
	glyph->sy = 0;
	glyph->w = 8;
	glyph->h = 8;
	glyph->dx = 0;
	glyph->dy = 0;
	glyph->advance = 8;
	glyph->format = kCommodettoBitmapMonochrome;

	return tf;
}

void CFEDispose(CommodettoFontEngine tf)
{
	if (tf)
		c_free(tf);
}

void CFELockCache(CommodettoFontEngine tf, uint8_t lock) {}

void CFESetFontData(CommodettoFontEngine tf, const void *fontData, uint32_t fontDataSize)
{
	tf->font = fontData;
	tf->glyphCount = fontDataSize >> 3;
}

void CFESetFontSize(CommodettoFontEngine tf, int32_t size) {}

void CFEGetFontMetrics(CommodettoFontEngine tf, int32_t *ascent, int32_t *descent, int32_t *leading)
{
	if (ascent)
		*ascent = 7;
	if (descent)
		*descent = 1;
	if (leading)
		*leading = 1;
}

CFEGlyph CFEGetGlyphFromGlyphID(CommodettoFontEngine tf, uint16_t glyphID, uint8_t needPixels)
{
	return CFEGetGlyphFromUnicode(tf, glyphID, needPixels);
}

CFEGlyph CFEGetGlyphFromUnicode(CommodettoFontEngine tf, uint32_t unicode, uint8_t needPixels)
{
	if (unicode >= tf->glyphCount)
		return NULL;

	tf->glyph.bits = (void *)(tf->font + (unicode << 3));

	return &tf->glyph;
}

int16_t CFEGetKerningOffset(CommodettoFontEngine tf, uint32_t unicode1, uint32_t unicode2)
{
	return 0;
}

int CFEShape(CommodettoFontEngine tf, const char *utf8In, int32_t byteLengthIn, char *utf8Out, int32_t byteLengthOut)
{
	return -1;
}

void CFELayoutRun(CommodettoFontEngine tf, const char *utf8, int32_t byteLength, CFERun run, int32_t runLength, int32_t width)
{
	const char *utf8End = utf8 + byteLength;

	while (utf8 < utf8End) {
		run->glyphID = (uint16_t)PocoNextFromUTF8((uint8_t **)&utf8);;
		run->advance = 8;

		runLength -= 1;
		if (1 == runLength)
			break;		//@@ report run array overflow
	}

	run->glyphID = kInvalidGlyphID;
}

void CFEGetOutlineFromUnicode(CommodettoFontEngine cfe, uint32_t unicode, uint8_t **outline, uint32_t *outlineSize)
{
	*outline = NULL;
	*outlineSize = 0;
}

void CFERenderOutline(CommodettoFontEngine cfe, uint8_t *outline, uint32_t outlineSize, double scaleX, double scaleY, CFEGlyph glyph) {}

{'repo_name': 'Moddable-OpenSource/moddable', 'stars': '556', 'repo_language': 'C', 'file_name': 'NOTICE', 'mime_type': 'text/plain', 'hash': 5066095216125084267, 'source_dataset': 'data'}


<?php
/**
 * @package    FrameworkOnFramework
 * @subpackage form
 * @copyright   Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
// Protect from unauthorized access
defined('FOF_INCLUDED') or die;

/**
 * Generic filter, drop-down based on fixed options
 *
 * @package  FrameworkOnFramework
 * @since    2.0
 */
class FOFFormHeaderFilterselectable extends FOFFormHeaderFieldselectable
{
	/**
	 * Get the header
	 *
	 * @return  string  The header HTML
	 */
	protected function getHeader()
	{
		return '';
	}
}

{'repo_name': 'SniperOJ/Attack-Defense-Challenges', 'stars': '125', 'repo_language': 'PHP', 'file_name': 'Mockery.php', 'mime_type': 'text/x-php', 'hash': 3373663176771121272, 'source_dataset': 'data'}


#This file is part of The Open GApps script of @mfonville.
#
#    The Open GApps scripts are free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    These scripts are distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
makearomaconfig(){
tee "$build/META-INF/com/google/android/aroma-config" > /dev/null <<'EOFILE'
#This file is part of The Open GApps script of @raulpetru.
#
#    The Open GApps scripts are free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    These scripts are distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#

# ROM Info
ini_set("rom_name", "Open GApps");
ini_set("rom_version", "Daily");
ini_set("rom_author", "Open GApps Team");
ini_set("rom_date", zipprop("g.prop", "ro.addon.open_version"));
ini_set("text_quit", "Exit");
ini_set("text_next", "Next");

##############################################
# UI/Font/Splash
##############################################
ini_set("force_colorspace", "rgba");
splash(
    3000,
    "open"
);
fontresload("0", "ttf/Roboto-Regular.ttf", "12");
fontresload("1", "ttf/Roboto-Regular.ttf", "14");
theme("material_green");

##############################################
# Welcome
##############################################
textbox(
  "Welcome",
  "With AROMA Open GApps you can choose which GApps to install!",
  "@welcome",
  "\n Package Information\n\n" +
    "   Name\t\t: <#scrollbar>" + ini_get("rom_name") + "</#>\n"+
    "   Author\t\t: <#scrollbar>" + ini_get("rom_author") + "</#>\n"+
    "   Supported devices: <#scrollbar>Any!</#>\n"+
    "   Supported Android: <#scrollbar>"+zipprop("g.prop", "ro.addon.platform")+"</#>\n"+
    "   Build date\t: <#scrollbar>" + ini_get("rom_date") + " </#>\n\n"+
    "For support and updates visit our site! <#scrollbar>(http://opengapps.org)</#>"
);

##############################################
# MENU
##############################################
menubox(
    "Open GApps",
    "Please select one of the choices below",
    "@apps",
    "menu.prop",
    "Customized installation",   "Select which apps you want",     "@personalize",      #-- selected = 1
    "Complete installation",     "Install the Super package",      "@default",         #-- selected = 2
    "Exit",              "Exit to recovery",    "@alert"      #-- selected = 3
);

#Exit
if prop("menu.prop", "selected")=="3" then
  if
    confirm(
      "Exit",
      "Are you sure want to exit the Installer?",
      "@alert"
    )=="yes"
  then
    exit("");
  endif;

  back("1");
endif;

##############################################
# Load Previous Choices
##############################################
checkviewbox(
  "Load Previous Choices",
  "Do you want to load your choices from a previous install?\n\n",
  "@welcome",
  "Load choices", "1", "loadselections"
);

if
    getvar("loadselections")=="1"
  then
    if
        getvar("reset")!="1"
    then
        resexec("scripts/tools.sh", "load");
        setvar("reset", "1");
    endif;
  else
    if
      getvar("reset")=="1" then
        resexec("scripts/tools.sh", "reset");
        setvar("reset","0");
    endif;
endif;

if prop("menu.prop", "selected")=="1" then
##############################################
# Customized installation
##############################################
form(
    "Apps",
    "Please select which apps you want to include or exclude</#>",
    "@default",
    aromagapps.prop,
    "inclorexcl",     "Choose to include or exclude the apps below",        "",                    "group",
      "1",     "Include",   "Choose the apps you WANT installed from the list below.",             "select.selected",
      "0",     "Exclude",   "Choose the apps you DON'T WANT installed from the list below.",       "select",

    "gapps",     "Choose GApps which you want to add on install/exclude list",        "",                                         "group",
      "ActionsServices",     "Actions Services",       "Requires Android 9.0 or later",                      "check",
      "AndroidAuto",     "Android Auto",       "Requires Android 5.0 or later",                      "check",
      "BatteryUsage",     "Device Health Services",       "Requires Android 7.1 or later",                      "check",
      "BetterTogether",     "Better Together",       "Requires Android 9.0 or later",                      "check",
      "Books",     "Google Play Books",       "",                      "check",
      "CalculatorGoogle",     "Google Calculator",       "Requires Android 5.0 or later",                      "check",
      "CalendarGoogle",     "Google Calendar",       "",                      "check",
      "CalSync",     "Google Calendar Sync",       "Installed by default when Google Calendar is NOT being installed",                      "check",
      "CameraGoogle",     "Google Camera",       "Requires Android 6.0 or later",                      "check",
      "CarrierServices",     "Carrier Services",       "Requires Android 6.0 or later, also required for Google Messages",                      "check",
      "Chrome",     "Google Chrome",       "",                      "check",
      "ClockGoogle",     "Google Clock",       "",                      "check",
      "CloudPrint",     "Google Cloud Print",       "",                      "check",
      "ContactsGoogle",     "Google Contacts",       "Requires Android 5.1 or later",                      "check",
      "DialerFramework",     "Dialer Framework",       "Necessary for Google Phone compatibility",                      "check",
      "DialerGoogle",     "Google Phone",       "Requires Android 6.0 or later",                      "check",
      "DMAgent",     "Google Apps Device Policy",       "",                      "check",
      "Docs",     "Google Docs",       "",                      "check",
      "Drive",     "Google Drive",       "",                      "check",
      "Duo",     "Google Duo",       "",                      "check",
      "Earth",     "Google Earth",       "",                      "check",
      "ExchangeGoogle",     "Google Exchange Services",       "",                      "check",
      "Fitness",     "Google Fit",       "",                      "check",
      "GCS",     "Google Connectivity Services",       "Requires Android 5.1 or later, To Exclude BOTH Google Connectivity Services AND Project Fi by Google <#f00>OR</#> To Include Google Connectivity Services",                      "check",
      "Gmail",     "Gmail",       "",                      "check",
      "GoogleNow",     "Google Now Launcher",       "Requires Android 4.4 ONLY, also requires Google Search",                      "check",
      "GooglePay",     "Google Pay",       "",                      "check",
      "GoogleTTS",     "Google Text-to-Speech Engine",       "Requires Android 6.0 or later",                      "check",
      "Hangouts",     "Google Hangouts",       "",                      "check",
      "Indic",     "Google Indic Keyboard",       "",                      "check",
      "Japanese",     "Google Japanese Input",       "",                      "check",
      "Keep",     "Google Keep",       "",                      "check",
      "KeyboardGoogle",     "Gboard (Google Keyboard)",       "",                      "check",
      "Korean",     "Google Korean Input",       "",                      "check",
      "Maps",     "Google Maps",       "",                      "check",
      "Markup",     "Google Markup",       "Requires Android 9.0 or later",                      "check",
      "Messenger",     "Google Messages",       "Requires Android 6.0 or later, also requires Carrier Services, NOT installed on tablets",                      "check",
      "Movies",     "Google Play Movies & TV",       "",                      "check",
      "Music",     "Google Play Music",       "",                      "check",
      "NewsStand",     "Google News",       "",                      "check",
      "PackageInstallerGoogle",     "Google Package Installer",       "Requires Android 6.0 or later, NOT installed on Android 7.0 and 7.1",                      "check",
      "Pinyin",     "Google Pinyin Input",       "",                      "check",
      "PixelIcons",     "Pixel Launcher Icons",       "Requires Android 7.1 ONLY and Pixel Launcher",                      "check",
      "PixelLauncher",     "Pixel Launcher",       "Requires Android 5.0 or later, also requires Google Wallpapers and Google Search",                      "check",
      "Photos",     "Google Photos",       "",                      "check",
      "PlayGames",     "Google Play Games",       "",                      "check",
      "PrintServiceGoogle",     "Print Service Recommendation Service",       "Requires Android 7.0 or later",                      "check",
      "ProjectFi",     "Project Fi",       "Requires Android 5.1 or later",                      "check",
      "Recorder",     "Google Recorder",       "Requires Android 9.0 or later",                      "check",
      "Sheets",     "Google Sheets",       "",                      "check",
      "Slides",     "Google Slides",       "",                      "check",
      "Search",     "Google Search",       "To Exclude Google Search AND Google Now Launcher/Pixel Launcher <#f00>OR</#> To Include Google Search",                      "check",
      "SoundPicker",     "Sound Picker",       "",                      "check",
      "Speech",     "Offline Speech Files",       "Required for offline voice dicatation support",                      "check",
      "StorageManagerGoogle",     "Google Smart Storage",       "Requires Android 7.0 or later",                      "check",
      "Street",     "Google Street View",       "",                      "check",
      "TagGoogle",     "Google Tags",       "Requires Android 5.0 or later",                      "check",
      "Talkback",     "Android Accessibility Suite",       "",                      "check",
      "Translate",     "Google Translate",       "",                      "check",
      "VRService",     "Google VR Services",       "Requires Android 7.0 or later",                      "check",
      "Wallpapers",     "Google Wallpapers",       "Requires Android 5.0 or later, To Exclude BOTH Google Wallpapers AND Pixel Launcher <#f00>OR</#> To Include Google Wallpapers",                      "check",
      "WebViewGoogle",     "Android System WebView",       "Requires Android 5.1 or later, WebViewStub is installed on Android 7.0+ instead when Google Chrome is selected",                      "check",
      "Wellbeing",     "Digital Wellbeing",       "Requires Android 9.0 or later",                      "check",
      "YouTube",     "YouTube",       "",                      "check",
      "Zhuyin",     "Google Zhuyin Input",       "",                      "check"
);
# Duplicate aromagapps.prop and rename it to gapps.prop - this is useful because the selections won't be erased by the complete installation (menu.prop selected ==2)
resexec("scripts/props.sh");
endif;

#IF COMPLETE INSTALLATION IS CHOOSEN - reset gapps.prop
if prop("menu.prop", "selected")=="2" then
  writetmpfile("gapps.prop", " ");
endif;

form(
    "Default removal bypass",
    "Careful, you can override the default removal of Stock/AOSP applications below",
    "@default",
    bypass.prop,
    "bypassrem",     "Bypass the automatic removal of Stock/AOSP apps.\nPlease only select if you are sure you want them installed alongside the Google replacement.",        "",     "group",
      "+Browser",     "+Browser",      "Don't remove Stock Browser, even if Google Chrome is being installed",    "check",
      "+CameraStock", "+CameraStock",  "Don't remove Stock Camera, even if Google Camera is being installed",    "check",
      "+DialerStock", "+DialerStock",  "Don't remove Stock Dialer, even if Google Phone is being installed",    "check",
      "+Email",     "+Email",      "Don't remove Stock Email, even if Gmail is being installed",        "check",
      "+Gallery",     "+Gallery",      "Don't remove Stock Gallery, even if Google Photos is being installed",    "check",
      "+Launcher",     "+Launcher",      "Don't remove Stock Launchers, even if Google Now Launcher or Pixel Launcher is being installed",  "check",
      "+MMS",     "+MMS",      "Don't remove Stock SMS app, even if Google Messages is being installed",            "check",
      "+PicoTTS",     "+PicoTTS",      "Don't remove PicoTTS, even if GoogleTTS is being installed",    "check"
);

form(
    "Remove",
    "Please select which Stock/AOSP apps you want to remove\n</#>",
    "@default",
    rem.prop,
    "remove",     "Choose apps which you want to remove",        "",                                         "group",
      "CMAccount",     "CyanogenMod Account",       "",                      "check",
      "CMAudioFX",     "CyanogenMod AudioFX",       "",                      "check",
      "CMBugReport",     "CyanogenMod Bug Report",       "",                      "check",
      "CMFileManager",     "CyanogenMod File Manager",       "",                      "check",
      "CMMusic",     "CyanogenMod Music",       "",                      "check",
      "CMScreenCast",     "CyanogenMod ScreenCast",       "",                      "check",
      "CMSetupWizard",     "CyanogenMod Setup Wizard",       "See notes for CMSetupWizard on the OpenGApps Wiki",                      "check",
      "CMUpdater",     "CyanogenMod Updater",       "",                      "check",
      "CMWallpapers",     "CyanogenMod Wallpapers",       "",                      "check",
      "CMWeatherProvider",     "CyanogenMod Weather Underground",       "",                      "check",
      "DashClock",     "DashClock Widget",       "A clock widget found in certain ROMs",                      "check",
      "Hexo",     "Hexo Libre CM Theme",       "",                      "check",
      "LRecorder",     "LineageOS Recorder",       "",                      "check",
      "LSetupWizard",     "LineageOS Setup Wizard",       "",                      "check",
      "LUpdater",     "LineageOS Updater",       "",                      "check",
      "Logcat",     "OmniSwitch MatLog",       "",                      "check",
      "OmniSwitch",     "OmniSwitch App Switcher",       "",                      "check",
      "BasicDreams",     "Basic Dreams Live Wallpaper",       "",                      "check",
      "Galaxy",     "Galaxy Live Wallpaper",       "",                      "check",
      "HoloSpiral",     "Holo Spiral Live Wallpaper",       "",                      "check",
      "NoiseField",     "NoiseField Live Wallpaper",       "",                      "check",
      "Phasebeam",     "Phasebeam Live Wallpaper",       "",                      "check",
      "PhotoPhase",     "PhotoPhase Live Wallpaper",       "",                      "check",
      "PhotoTable",     "PhotoTable Live Wallpaper",       "",                      "check",
      "Browser",     "Stock/AOSP Browser",       "Automatically removed when Google Chrome is installed",                      "check",
      "CalculatorStock",     "Stock/AOSP Calculator",       "Automatically removed when Google Calculator is installed",                      "check",
      "CalendarStock",     "Stock/AOSP Calendar",       "Automatically removed when Google Calendar is installed",                      "check",
      "CameraStock",     "Stock/AOSP/Moto Camera",       "Automatically removed when Google Camera is installed",                      "check",
      "ClockStock",     "Stock/AOSP Clock",       "Automatically removed when Google Clock is installed",                      "check",
      "DialerStock",     "Stock/AOSP Dialer",       "Automatically removed when Google Phone is installed",                      "check",
      "Email",     "Stock/AOSP Email",       "Automatically removed when Gmail is installed",                      "check",
      "ExchangeStock",     "Stock/AOSP Exchange Services",       "Automatically removed when Google Exchange Services is installed",                      "check",
      "FMRadio",     "Stock/AOSP FM Radio",       "Not found on all devices or ROMs",                      "check",
      "Gallery",     "Stock/AOSP Gallery",       "Automatically removed when Google Photos is installed",                      "check",
      "KeyboardStock",     "Stock/AOSP Keyboard",       "Automatically removed when Google Keyboard is installed",                      "check",
      "Launcher",     "Stock/AOSP Launcher(s)",       "Automatically removed when Google Now Launcher or Pixel Launcher is installed",                      "check",
      "LiveWallpapers",     "Live Wallpapers",       "",                      "check",
      "LockClock",     "Lock Clock",       "A clock widget found in certain ROMs",                      "check",
      "MMS",     "Stock/AOSP MMS",       "Automatically removed when Google Messages is installed",                      "check",
      "MzFileManager",     "Stock FlymeOS File Manager",       "",                      "check",
      "MzPay",     "Stock FlymeOS Pay System",       "This service is only available in China",                      "check",
      "MzSetupWizard",     "Stock FlymeOS SetupWizard",       "",                      "check",
      "MzUpdater",     "Stock FlymeOS Updater",       "",                      "check",
      "MzWeather",     "Stock FlymeOS Weather",       "This service is only available in China",                      "check",
      "PicoTTS",     "Stock/AOSP Text-to-Speech",       "Automatically removed when GoogleTTS is installed",                      "check",
      "PrintServiceStock",     "Stock Print Service Recommendation Service",       "Automatically removed when Google Print Service Recommendation Service is installed",                      "check",
      "SimToolKit",     "Stock/AOSP SIM ToolKit",       "",                      "check",
      "SoundRecorder",     "Stock/AOSP Sound Recorder",       "",                      "check",
      "StorageManagerStock",     "Stock/AOSP Storage Manager",       "Automatically removed when Google Smart Storage is installed",                      "check",
      "Studio",     "Stock/AOSP Movie Studio",       "",                      "check",
      "SykoPath",     "SykoPath Layers Manager",       "Found in certain ROMs",                      "check",
      "TagStock",     "Stock NFC Tags",       "Automatically removed when Google Tags is installed",                      "check",
      "Terminal",     "Terminal",       "",                      "check",
      "Themes",     "CyanogenMod Theme Engine",       "<#f00>NOTE:</#> Will break the link in Settings to Themes!",                      "check",
      "VisualizationWallpapers",     "Visualization Live Wallpaper",       "",                      "check",
      "WallpapersStock",     "Stock Wallpaper Picker",       "Automatically removed when Google Wallpapers is installed",                      "check",
      "WhisperPush",     "WhisperPush",       "",                      "check"
);
form(
    "Advanced Options",
    "Some advanced options that most likely don't need to be used.\n</#>",
    "@default",
    extra.prop,
    "extra",     "Advanced Options",        "",                                         "group",
      "exdebug",     "NoDebug",       "To disable the creation of the debug log",                      "check",
      "extest",     "Test",       "To perform a simulation generating a detailed log, but WILL NOT MAKE ANY CHANGES to your device.",                      "check",
      "exswype",     "SkipSwypelibs",       "To skip/remove the installation of the Google Swype libraries for the AOSP Keyboard",                      "check",
      "exsubstitute","SubstituteSwypelibs", "To overwrite the AOSP Keyboard libraries with the Google Swype libraries instead of adding",                      "check",
      "exclean",     "ForceClean",       "Ignores detection of dirty installations, force the installer to behave as if it is a clean install <#f00>DO NOT REPORT ANY BUGS IF USED</#>",                      "check",
      "GoogleAssistant",     "GoogleAssistant",       "To enable Google Assistant support in the build.prop",                      "check",
      "WebViewStub",     "WebViewStub",       "Placeholder for Google WebView, on 7.0+ automatically used instead of WebViewGoogle if Chrome is installed",                      "check"
);

##############################################
# Write the gapps-config file
##############################################
setvar("gapps","");

# ADVANCED OPTIONS
if
  prop("extra.prop", "exdebug")=="1"
then
  appendvar("gapps", "NoDebug\n");
endif;
if
  prop("extra.prop", "extest")=="1"
then
  appendvar("gapps", "Test\n");
endif;
if
  prop("extra.prop", "exswype")=="1"
then
  appendvar("gapps", "skipswypelibs\n");
endif;
if
  prop("extra.prop", "exsubstitute")=="1"
then
  appendvar("gapps", "substituteswypelibs\n");
endif;
if
  prop("extra.prop", "exclean")=="1"
then
  appendvar("gapps", "forceclean\n");
endif;
if
  prop("extra.prop", "GoogleAssistant")=="1"
then
  appendvar("gapps", "GoogleAssistant\n");
endif;
if
  prop("extra.prop", "WebViewStub")=="1"
then
  appendvar("gapps", "WebViewStub\n");
endif;

# INCLUDE/EXCLUDE
if
  prop("gapps.prop", "inclorexcl")=="1"
then
  appendvar("gapps", "Include");
else
  appendvar("gapps", "Exclude");
endif;

# APP CHOICES
appendvar("gapps", "\n\n");

if
  prop("gapps.prop", "ActionsServices")=="1"
then
  appendvar("gapps", "ActionsServices\n");
endif;

if
  prop("gapps.prop", "AndroidAuto")=="1"
then
  appendvar("gapps", "AndroidAuto\n");
endif;

if
  prop("gapps.prop", "BatteryUsage")=="1"
then
  appendvar("gapps", "BatteryUsage\n");
endif;

if
  prop("gapps.prop", "BetterTogether")=="1"
then
  appendvar("gapps", "BetterTogether\n");
endif;

if
  prop("gapps.prop", "Books")=="1"
then
  appendvar("gapps", "Books\n");
endif;

if
  prop("gapps.prop", "CalculatorGoogle")=="1"
then
  appendvar("gapps", "CalculatorGoogle\n");
endif;

if
  prop("gapps.prop", "CalendarGoogle")=="1"
then
  appendvar("gapps", "CalendarGoogle\n");
endif;

if
  prop("gapps.prop", "CalSync")=="1"
then
  appendvar("gapps", "CalSync\n");
endif;

if
  prop("gapps.prop", "CameraGoogle")=="1"
then
  appendvar("gapps", "CameraGoogle\n");
endif;

if
  prop("gapps.prop", "CarrierServices")=="1"
then
  appendvar("gapps", "CarrierServices\n");
endif;

if
  prop("gapps.prop", "Chrome")=="1"
then
  appendvar("gapps", "Chrome\n");
endif;

if
  prop("gapps.prop", "ClockGoogle")=="1"
then
  appendvar("gapps", "ClockGoogle\n");
endif;

if
  prop("gapps.prop", "CloudPrint")=="1"
then
  appendvar("gapps", "CloudPrint\n");
endif;

if
  prop("gapps.prop", "ContactsGoogle")=="1"
then
  appendvar("gapps", "ContactsGoogle\n");
endif;

if
  prop("gapps.prop", "DialerFramework")=="1"
then
  appendvar("gapps", "DialerFramework\n");
endif;

if
  prop("gapps.prop", "DialerGoogle")=="1"
then
  appendvar("gapps", "DialerGoogle\n");
endif;

if
  prop("gapps.prop", "DMAgent")=="1"
then
  appendvar("gapps", "DMAgent\n");
endif;

if
  prop("gapps.prop", "Docs")=="1"
then
  appendvar("gapps", "Docs\n");
endif;

if
  prop("gapps.prop", "Drive")=="1"
then
  appendvar("gapps", "Drive\n");
endif;

if
  prop("gapps.prop", "Duo")=="1"
then
  appendvar("gapps", "Duo\n");
endif;

if
  prop("gapps.prop", "Earth")=="1"
then
  appendvar("gapps", "Earth\n");
endif;

if
  prop("gapps.prop", "ExchangeGoogle")=="1"
then
  appendvar("gapps", "ExchangeGoogle\n");
endif;

if
  prop("gapps.prop", "Fitness")=="1"
then
  appendvar("gapps", "Fitness\n");
endif;

if
  prop("gapps.prop", "GCS")=="1"
then
  appendvar("gapps", "GCS\n");
endif;

if
  prop("gapps.prop", "Gmail")=="1"
then
  appendvar("gapps", "Gmail\n");
endif;

if
  prop("gapps.prop", "GoogleNow")=="1"
then
  appendvar("gapps", "GoogleNow\n");
endif;

if
  prop("gapps.prop", "GooglePay")=="1"
then
  appendvar("gapps", "GooglePay\n");
endif;

if
  prop("gapps.prop", "GoogleTTS")=="1"
then
  appendvar("gapps", "GoogleTTS\n");
endif;

if
  prop("gapps.prop", "Hangouts")=="1"
then
  appendvar("gapps", "Hangouts\n");
endif;

if
  prop("gapps.prop", "Indic")=="1"
then
  appendvar("gapps", "Indic\n");
endif;

if
  prop("gapps.prop", "Japanese")=="1"
then
  appendvar("gapps", "Japanese\n");
endif;

if
  prop("gapps.prop", "Keep")=="1"
then
  appendvar("gapps", "Keep\n");
endif;

if
  prop("gapps.prop", "KeyboardGoogle")=="1"
then
  appendvar("gapps", "KeyboardGoogle\n");
endif;

if
  prop("gapps.prop", "Korean")=="1"
then
  appendvar("gapps", "Korean\n");
endif;

if
  prop("gapps.prop", "Maps")=="1"
then
  appendvar("gapps", "Maps\n");
endif;

if
  prop("gapps.prop", "Markup")=="1"
then
  appendvar("gapps", "Markup\n");
endif;

if
  prop("gapps.prop", "Messenger")=="1"
then
  appendvar("gapps", "Messenger\n");
endif;

if
  prop("gapps.prop", "Movies")=="1"
then
  appendvar("gapps", "Movies\n");
endif;

if
  prop("gapps.prop", "Music")=="1"
then
  appendvar("gapps", "Music\n");
endif;

if
  prop("gapps.prop", "NewsStand")=="1"
then
  appendvar("gapps", "NewsStand\n");
endif;

if
  prop("gapps.prop", "PackageInstallerGoogle")=="1"
then
  appendvar("gapps", "PackageInstallerGoogle\n");
endif;

if
  prop("gapps.prop", "Pinyin")=="1"
then
  appendvar("gapps", "Pinyin\n");
endif;

if
  prop("gapps.prop", "PixelIcons")=="1"
then
  appendvar("gapps", "PixelIcons\n");
endif;

if
  prop("gapps.prop", "PixelLauncher")=="1"
then
  appendvar("gapps", "PixelLauncher\n");
endif;

if
  prop("gapps.prop", "Photos")=="1"
then
  appendvar("gapps", "Photos\n");
endif;

if
  prop("gapps.prop", "PlayGames")=="1"
then
  appendvar("gapps", "PlayGames\n");
endif;

if
  prop("gapps.prop", "PrintServiceGoogle")=="1"
then
  appendvar("gapps", "PrintServiceGoogle\n");
endif;

if
  prop("gapps.prop", "ProjectFi")=="1"
then
  appendvar("gapps", "ProjectFi\n");
endif;

if
  prop("gapps.prop", "Recorder")=="1"
then
  appendvar("gapps", "Recorder\n");
endif;

if
  prop("gapps.prop", "Sheets")=="1"
then
  appendvar("gapps", "Sheets\n");
endif;

if
  prop("gapps.prop", "Slides")=="1"
then
  appendvar("gapps", "Slides\n");
endif;

if
  prop("gapps.prop", "Search")=="1"
then
  appendvar("gapps", "Search\n");
endif;

if
  prop("gapps.prop", "SoundPicker")=="1"
then
  appendvar("gapps", "SoundPicker\n");
endif;

if
  prop("gapps.prop", "Speech")=="1"
then
  appendvar("gapps", "Speech\n");
endif;

if
  prop("gapps.prop", "StorageManagerGoogle")=="1"
then
  appendvar("gapps", "StorageManagerGoogle\n");
endif;

if
  prop("gapps.prop", "Street")=="1"
then
  appendvar("gapps", "Street\n");
endif;

if
  prop("gapps.prop", "TagGoogle")=="1"
then
  appendvar("gapps", "TagGoogle\n");
endif;

if
  prop("gapps.prop", "Talkback")=="1"
then
  appendvar("gapps", "Talkback\n");
endif;

if
  prop("gapps.prop", "Translate")=="1"
then
  appendvar("gapps", "Translate\n");
endif;

if
  prop("gapps.prop", "VRService")=="1"
then
  appendvar("gapps", "VRService\n");
endif;

if
  prop("gapps.prop", "Wallpapers")=="1"
then
  appendvar("gapps", "Wallpapers\n");
endif;

if
  prop("gapps.prop", "WebViewGoogle")=="1"
then
  appendvar("gapps", "WebViewGoogle\n");
endif;

if
  prop("gapps.prop", "Wellbeing")=="1"
then
  appendvar("gapps", "Wellbeing\n");
endif;

if
  prop("gapps.prop", "YouTube")=="1"
then
  appendvar("gapps", "YouTube\n");
endif;

if
  prop("gapps.prop", "Zhuyin")=="1"
then
  appendvar("gapps", "Zhuyin\n");
endif;

appendvar("gapps", "\n");

# REMOVALS

###################################
# Group 1 of removals on the Wiki
###################################
if
  prop("rem.prop", "CMAccount")=="1"
then
  appendvar("gapps", "CMAccount\n");
endif;

if
  prop("rem.prop", "CMAudioFX")=="1"
then
  appendvar("gapps", "CMAudioFX\n");
endif;

if
  prop("rem.prop", "CMBugReport")=="1"
then
  appendvar("gapps", "CMBugReport\n");
endif;

if
  prop("rem.prop", "CMFileManager")=="1"
then
  appendvar("gapps", "CMFileManager\n");
endif;

if
  prop("rem.prop", "CMMusic")=="1"
then
  appendvar("gapps", "CMMusic\n");
endif;

if
  prop("rem.prop", "CMScreenCast")=="1"
then
  appendvar("gapps", "CMScreenCast\n");
endif;

if
  prop("rem.prop", "CMSetupWizard")=="1"
then
  appendvar("gapps", "CMSetupWizard\n");
endif;

if
  prop("rem.prop", "CMUpdater")=="1"
then
  appendvar("gapps", "CMUpdater\n");
endif;

if
  prop("rem.prop", "CMWallpapers")=="1"
then
  appendvar("gapps", "CMWallpapers\n");
endif;

if
  prop("rem.prop", "CMWeatherProvider")=="1"
then
  appendvar("gapps", "CMWeatherProvider\n");
endif;

###################################
# Group 2 of removals on the Wiki
###################################
if
  prop("rem.prop", "DashClock")=="1"
then
  appendvar("gapps", "DashClock\n");
endif;

if
  prop("rem.prop", "Hexo")=="1"
then
  appendvar("gapps", "Hexo\n");
endif;

if
  prop("rem.prop", "LRecorder")=="1"
then
  appendvar("gapps", "LRecorder\n");
endif;

if
  prop("rem.prop", "LSetupWizard")=="1"
then
  appendvar("gapps", "LSetupWizard\n");
endif;

if
  prop("rem.prop", "LUpdater")=="1"
then
  appendvar("gapps", "LUpdater\n");
endif;

if
  prop("rem.prop", "Logcat")=="1"
then
  appendvar("gapps", "Logcat\n");
endif;

if
  prop("rem.prop", "OmniSwitch")=="1"
then
  appendvar("gapps", "OmniSwitch\n");
endif;

###################################
# Group 3 of removals on the Wiki
###################################
if
  prop("rem.prop", "BasicDreams")=="1"
then
  appendvar("gapps", "BasicDreams\n");
endif;

if
  prop("rem.prop", "Galaxy")=="1"
then
  appendvar("gapps", "Galaxy\n");
endif;

if
  prop("rem.prop", "HoloSpiral")=="1"
then
  appendvar("gapps", "HoloSpiral\n");
endif;

if
  prop("rem.prop", "NoiseField")=="1"
then
  appendvar("gapps", "NoiseField\n");
endif;

if
  prop("rem.prop", "Phasebeam")=="1"
then
  appendvar("gapps", "Phasebeam\n");
endif;

if
  prop("rem.prop", "PhotoPhase")=="1"
then
  appendvar("gapps", "PhotoPhase\n");
endif;

if
  prop("rem.prop", "PhotoTable")=="1"
then
  appendvar("gapps", "PhotoTable\n");
endif;

###################################
# Group 4 of removals on the Wiki
###################################
if
  prop("rem.prop", "Browser")=="1"
then
  appendvar("gapps", "Browser\n");
endif;

if
  prop("rem.prop", "CalculatorStock")=="1"
then
  appendvar("gapps", "CalculatorStock\n");
endif;

if
  prop("rem.prop", "CalendarStock")=="1"
then
  appendvar("gapps", "CalendarStock\n");
endif;

if
  prop("rem.prop", "CameraStock")=="1"
then
  appendvar("gapps", "CameraStock\n");
endif;

if
  prop("rem.prop", "ClockStock")=="1"
then
  appendvar("gapps", "ClockStock\n");
endif;

if
  prop("rem.prop", "DialerStock")=="1"
then
  appendvar("gapps", "DialerStock\n");
endif;

if
  prop("rem.prop", "Email")=="1"
then
  appendvar("gapps", "Email\n");
endif;

if
  prop("rem.prop", "ExchangeStock")=="1"
then
  appendvar("gapps", "ExchangeStock\n");
endif;

if
  prop("rem.prop", "FMRadio")=="1"
then
  appendvar("gapps", "FMRadio\n");
endif;

if
  prop("rem.prop", "Gallery")=="1"
then
  appendvar("gapps", "Gallery\n");
endif;

if
  prop("rem.prop", "KeyboardStock")=="1"
then
  appendvar("gapps", "KeyboardStock\n");
endif;

if
  prop("rem.prop", "Launcher")=="1"
then
  appendvar("gapps", "Launcher \n");
endif;

if
  prop("rem.prop", "LiveWallpapers")=="1"
then
  appendvar("gapps", "LiveWallpapers\n");
endif;

if
  prop("rem.prop", "LockClock")=="1"
then
  appendvar("gapps", "LockClock\n");
endif;

if
  prop("rem.prop", "MMS")=="1"
then
  appendvar("gapps", "MMS\n");
endif;

if
  prop("rem.prop", "MzFileManager")=="1"
then
  appendvar("gapps", "MzFileManager\n");
endif;

if
  prop("rem.prop", "MzPay")=="1"
then
  appendvar("gapps", "MzPay\n");
endif;

if
  prop("rem.prop", "MzSetupWizard")=="1"
then
  appendvar("gapps", "MzSetupWizard\n");
endif;

if
  prop("rem.prop", "MzUpdater")=="1"
then
  appendvar("gapps", "MzUpdater\n");
endif;

if
  prop("rem.prop", "MzWeather")=="1"
then
  appendvar("gapps", "MzWeather\n");
endif;

if
  prop("rem.prop", "PicoTTS")=="1"
then
  appendvar("gapps", "PicoTTS\n");
endif;

if
  prop("rem.prop", "PrintServiceStock")=="1"
then
  appendvar("gapps", "PrintServiceStock\n");
endif;

if
  prop("rem.prop", "SimToolKit")=="1"
then
  appendvar("gapps", "SimToolKit\n");
endif;

if
  prop("rem.prop", "SoundRecorder")=="1"
then
  appendvar("gapps", "SoundRecorder\n");
endif;

if
  prop("rem.prop", "StorageManagerStock")=="1"
then
  appendvar("gapps", "StorageManagerStock\n");
endif;

if
  prop("rem.prop", "Studio")=="1"
then
  appendvar("gapps", "Studio\n");
endif;

if
  prop("rem.prop", "SykoPath")=="1"
then
  appendvar("gapps", "SykoPath\n");
endif;

if
  prop("rem.prop", "TagStock")=="1"
then
  appendvar("gapps", "TagStock\n");
endif;

if
  prop("rem.prop", "Terminal")=="1"
then
  appendvar("gapps", "Terminal\n");
endif;

if
  prop("rem.prop", "Themes")=="1"
then
  appendvar("gapps", "Themes\n");
endif;

if
  prop("rem.prop", "VisualizationWallpapers")=="1"
then
  appendvar("gapps", "VisualizationWallpapers\n");
endif;

if
  prop("rem.prop", "WallpapersStock")=="1"
then
  appendvar("gapps", "WallpapersStock\n");
endif;

if
  prop("rem.prop", "WhisperPush")=="1"
then
  appendvar("gapps", "WhisperPush\n");
endif;

# BYPASS REMOVALS
appendvar("gapps", "\n\n");
if
  prop("bypass.prop", "+Browser")=="1"
then
  appendvar("gapps", "+Browser\n");
endif;
if
  prop("bypass.prop", "+CameraStock")=="1"
then
  appendvar("gapps", "+CameraStock\n");
endif;
if
  prop("bypass.prop", "+DialerStock")=="1"
then
  appendvar("gapps", "+DialerStock\n");
endif;
if
  prop("bypass.prop", "+Email")=="1"
then
  appendvar("gapps", "+Email\n");
endif;
if
  prop("bypass.prop", "+Gallery")=="1"
then
  appendvar("gapps", "+Gallery\n");
endif;
if
  prop("bypass.prop", "+Launcher")=="1"
then
  appendvar("gapps", "+Launcher\n");
endif;
if
  prop("bypass.prop", "+MMS")=="1"
then
  appendvar("gapps", "+MMS\n");
endif;
if
  prop("bypass.prop", "+PicoTTS")=="1"
then
  appendvar("gapps", "+PicoTTS\n");
endif;

# WRITE CONFIG TO TEMP AND DISPLAY IT
writetmpfile(".gapps-config", getvar("gapps"));

textbox(
    "gapps-config",
    "Your gapps-config file",
    "@update",
    read("tmp/aroma/.gapps-config")
);

##############################################
# Save Choices
##############################################
checkviewbox(
  "Save Choices",
  "Do you want to save your choices?\nThey are stored in /sdcard/Open-GApps\n\n",
  "@welcome",
  "Save Choices", "1", "saveselections"
);
if
    getvar("saveselections")=="1"
  then
    resexec("scripts/tools.sh", "save");
endif;

# Pre-Install
ini_set("text_next", "Install GApps");
textbox(
  "Save config and perform GApps install",
  "Are you ready to install GApps based on your preferences?",
  "@install",
  "\nPress Install GApps to perform the install.\n\n" +
  "If you want to review or change any of your settings, press Back."
);

# Install
ini_set("text_next", "Next");
install(
  "Installing",
  "Open GApps are being installed.\n\n" +
  "Please wait until the process is finished",
  "@install",
  "Press Next to continue."
);

# Post-Install
ini_set("text_next", "Finish");
checkviewbox(
  "Installed",
  "Open GApps has been installed into your device\n\n",
  "@welcome",
  "Reboot your device now", "0", "reboot_it"
);

#Reboot
if
  getvar("reboot_it")=="1"
then
  reboot("onfinish");
endif;
EOFILE
}

{'repo_name': 'opengapps/opengapps', 'stars': '4369', 'repo_language': 'Shell', 'file_name': 'HOWTO', 'mime_type': 'text/plain', 'hash': -8992910785787458699, 'source_dataset': 'data'}


/*
 *   Copyright (c) 2012, Michael Lehn, Klaus Pototzky
 *
 *   All rights reserved.
 *
 *   Redistribution and use in source and binary forms, with or without
 *   modification, are permitted provided that the following conditions
 *   are met:
 *
 *   1) Redistributions of source code must retain the above copyright
 *      notice, this list of conditions and the following disclaimer.
 *   2) Redistributions in binary form must reproduce the above copyright
 *      notice, this list of conditions and the following disclaimer in
 *      the documentation and/or other materials provided with the
 *      distribution.
 *   3) Neither the name of the FLENS development group nor the names of
 *      its contributors may be used to endorse or promote products derived
 *      from this software without specific prior written permission.
 *
 *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 *   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 *   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 *   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 *   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 *   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 *   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#ifndef CXXLAPACK_INTERFACE_LAHEF_TCC
#define CXXLAPACK_INTERFACE_LAHEF_TCC 1

#include <iostream>
#include "xflens/cxxlapack/interface/interface.h"
#include "xflens/cxxlapack/netlib/netlib.h"

namespace cxxlapack {

template <typename IndexType>
IndexType
lahef(char                  uplo,
      IndexType             n,
      IndexType             nb,
      IndexType             &kb,
      std::complex<float >  *A,
      IndexType             ldA,
      IndexType             *iPiv,
      std::complex<float >  *W,
      IndexType             ldW)
{
    CXXLAPACK_DEBUG_OUT("clahef");

    IndexType info;
    LAPACK_IMPL(clahef)(&uplo,
                        &n,
                        &nb,
                        &kb,
                        reinterpret_cast<float  *>(A),
                        &ldA,
                        iPiv,
                        reinterpret_cast<float  *>(W),
                        ldW,
                        &info);
#   ifndef NDEBUG
    if (info<0) {
        std::cerr << "info = " << info << std::endl;
    }
#   endif
    ASSERT(info>=0);
    return info;
}

template <typename IndexType>
IndexType
lahef(char                  uplo,
      IndexType             n,
      IndexType             nb,
      IndexType             &kb,
      std::complex<double>  *A,
      IndexType             ldA,
      IndexType             *iPiv,
      std::complex<double>  *W,
      IndexType             ldW)
{
    CXXLAPACK_DEBUG_OUT("zlahef");

    IndexType info;
    LAPACK_IMPL(zlahef)(&uplo,
                        &n,
                        &nb,
                        &kb,
                        reinterpret_cast<double *>(A),
                        &ldA,
                        iPiv,
                        reinterpret_cast<double *>(W),
                        ldW,
                        &info);
#   ifndef NDEBUG
    if (info<0) {
        std::cerr << "info = " << info << std::endl;
    }
#   endif
    ASSERT(info>=0);
    return info;
}

} // namespace cxxlapack

#endif // CXXLAPACK_INTERFACE_LAHEF_TCC

{'repo_name': 'xtensor-stack/xtensor-blas', 'stars': '105', 'repo_language': 'C++', 'file_name': 'stevr.tcc', 'mime_type': 'text/x-c++', 'hash': -7521426730969028916, 'source_dataset': 'data'}


{'repo_name': 'devarthurribeiro/covid19-brazil-api', 'stars': '260', 'repo_language': 'JavaScript', 'file_name': 'report.json', 'mime_type': 'text/plain', 'hash': 7352107077517802954, 'source_dataset': 'data'}


// Generated by LiveScript 1.5.0
/**
 * @package  Service worker cache
 * @category modules
 * @author   Nazar Mokrynskyi <nazar@mokrynskyi.com>
 * @license  0BSD
 */
(function(){
  if (navigator.serviceWorker) {
    navigator.serviceWorker.register('/modules/Service_worker_cache/assets/js/service-worker.js?' + cs.service_worker_cache.version, {
      scope: '/'
    });
  }
}).call(this);

{'repo_name': 'nazar-pc/CleverStyle-Framework', 'stars': '151', 'repo_language': 'PHP', 'file_name': 'readme.md', 'mime_type': 'text/plain', 'hash': -634157404736430589, 'source_dataset': 'data'}


/*-----------------------------------------------------------------------------+
Copyright (c) 2008-2009: Joachim Faulhaber
+------------------------------------------------------------------------------+
   Distributed under the Boost Software License, Version 1.0.
      (See accompanying file LICENCE.txt or copy at
           http://www.boost.org/LICENSE_1_0.txt)
+-----------------------------------------------------------------------------*/
#define BOOST_TEST_MODULE icl::split_interval_map unit test
#include <libs/icl/test/disable_test_warnings.hpp>
#include <string>
#include <boost/mpl/list.hpp>
#include "../unit_test_unwarned.hpp"

// interval instance types
#include "../test_type_lists.hpp"
#include "../test_value_maker.hpp"
#include "../test_functions.hpp"

#include <boost/icl/separate_interval_set.hpp>
#include <boost/icl/split_interval_set.hpp>
#include <boost/icl/split_interval_map.hpp>

using namespace std;
using namespace boost;
using namespace unit_test;
using namespace boost::icl;

// -----------------------------------------------------------------------------
// test_interval_set_shared are tests that should give identical results for all
// interval_sets: interval_set, separate_interval_set and split_interval_set.
#include "../test_interval_map_shared.hpp"

#define INTERVAL_MAP split_interval_map
#include "../test_interval_map_cases.hpp"

{'repo_name': 'blackberry/Boost', 'stars': '135', 'repo_language': 'C++', 'file_name': 'embedding.html', 'mime_type': 'text/html', 'hash': -1499800242058260752, 'source_dataset': 'data'}


/****************************************************************************
 Copyright (c) 2013-2017 Chukong Technologies Inc.

 http://www.cocos2d-x.org

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
 ****************************************************************************/

#ifndef _CC_PRIMITIVE_COMMAND_H__
#define _CC_PRIMITIVE_COMMAND_H__

#include "renderer/CCPrimitive.h"
#include "renderer/CCRenderCommand.h"

/**
 * @addtogroup renderer
 * @{
 */

NS_CC_BEGIN
class GLProgramState;
/**
 Command used to render primitive, similar to QuadCommand.
 Every QuadCommand will have generate material ID by give textureID, glProgramState, Blend function.
 However, primitive command could not be batched.
 */
class CC_DLL PrimitiveCommand : public RenderCommand
{
public:
    /**@{
     Constructor and Destructor.
     */
    PrimitiveCommand();
    ~PrimitiveCommand();

    /**@}*/

    /** Initializes the command.
     @param globalOrder GlobalZOrder of the command.
     @param textureID The openGL handle of the used texture.
     @param glProgramState The specified glProgram and its uniform.
     @param blendType Blend function for the command.
     @param primitive Rendered primitive for the command.
     @param mv ModelView matrix for the command.
     @param flags to indicate that the command is using 3D rendering or not.
     */
    void init(float globalOrder, GLuint textureID, GLProgramState* glProgramState, BlendFunc blendType, Primitive* primitive, const Mat4& mv, uint32_t flags);
    CC_DEPRECATED_ATTRIBUTE void init(float globalOrder, GLuint textureID, GLProgramState* glProgramState, BlendFunc blendType, Primitive* primitive,const Mat4& mv);

    /**Get the generated material ID.*/
    uint32_t getMaterialID() const { return _materialID; }
    /**Get the texture ID used for drawing.*/
    GLuint getTextureID() const { return _textureID; }
    /**Get the glprogramstate used for drawing.*/
    GLProgramState* getGLProgramState() const { return _glProgramState; }
    /**Get the blend function for drawing.*/
    BlendFunc getBlendType() const { return _blendType; }
    /**Get the modelview matrix when draw the primitive.*/
    const Mat4& getModelView() const { return _mv; }
    /**Execute and draw the command, called by renderer.*/
    void execute() const;
protected:

    uint32_t _materialID;
    GLuint _textureID;
    GLProgramState* _glProgramState;
    BlendFunc _blendType;
    Primitive* _primitive;
    Mat4 _mv;
};

NS_CC_END

/**
 end of support group
 @}
 */
#endif //_CC_PRIMITIVE_COMMAND_H__

{'repo_name': 'ZhouWeikuan/DouDiZhu', 'stars': '169', 'repo_language': 'C++', 'file_name': 'lopcodes.c', 'mime_type': 'text/x-c', 'hash': -4784732932521371411, 'source_dataset': 'data'}


/*
 * Copyright (C) 2020 Intel Corporation. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include <vm_config.h>

struct pt_intx_config vm0_pt_intx[1U];

{'repo_name': 'projectacrn/acrn-hypervisor', 'stars': '556', 'repo_language': 'C', 'file_name': 'acrn-shell.rst', 'mime_type': 'text/plain', 'hash': -2950177585090445247, 'source_dataset': 'data'}


function area = polyArea(v,varargin)
% area of a flat polygon given by vertices v1, v2, ..., v_n
%
% Input
%  v - @vector3d
%
% Output
%  area - area the polygon v1, v2, ..., v_n
%

nv = length(v);
if nv<3, area = 0; return; end

% formula from http://geomalgorithms.com/a01-_area.html
v1 = v.subSet(1);
N = normalize(mean(cross(v.subSet(2)-v1,v.subSet(3:nv-1)-v1)));

area = dot(N, sum(cross(v.subSet(1:nv-1),v.subSet(2:nv))))./2;

{'repo_name': 'mtex-toolbox/mtex', 'stars': '108', 'repo_language': 'MATLAB', 'file_name': 'eval.m', 'mime_type': 'text/plain', 'hash': -4151968464993907407, 'source_dataset': 'data'}


{'repo_name': 'LeaPhant/skyblock-stats', 'stars': '106', 'repo_language': 'JavaScript', 'file_name': 'stats.ejs', 'mime_type': 'text/plain', 'hash': -7922606056716831270, 'source_dataset': 'data'}


#ifndef SRC_LIB_SERVICEROUTINESV2_OPTIONSPOSTONLY_H_
#define SRC_LIB_SERVICEROUTINESV2_OPTIONSPOSTONLY_H_

/*
*
* Copyright 2017 Telefonica Investigacion y Desarrollo, S.A.U
*
* This file is part of Orion Context Broker.
*
* Orion Context Broker is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* Orion Context Broker is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
* General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Orion Context Broker. If not, see http://www.gnu.org/licenses/.
*
* For those usages not covered by this license please contact with
* iot_support at tid dot es
*
* Author: Burak Karaboga - ATOS Research & Innovation
*/
#include <string>
#include <vector>

#include "rest/ConnectionInfo.h"
#include "ngsi/ParseData.h"

/* ****************************************************************************
*
* optionsPostOnly -
*/
extern std::string optionsPostOnly
(
  ConnectionInfo*            ciP,
  int                        components,
  std::vector<std::string>&  compV,
  ParseData*                 parseDataP
);

#endif  // SRC_LIB_SERVICEROUTINESV2_OPTIONSPOSTONLY_H_

{'repo_name': 'telefonicaid/fiware-orion', 'stars': '125', 'repo_language': 'C++', 'file_name': 'vagrant.md', 'mime_type': 'text/plain', 'hash': -731305666295178515, 'source_dataset': 'data'}


=============================================================
Welcome to Apache Jackrabbit  <http://jackrabbit.apache.org/>
=============================================================

Apache Jackrabbit is a fully conforming implementation of the
Content Repository for Java Technology API (JCR, specified in
JSR 170 and 283).

A content repository is a hierarchical content store with support
for structured and unstructured content, full text search,
versioning, transactions, observation, and more.

Apache Jackrabbit is a project of the Apache Software Foundation.

Building Jackrabbit
===================

You can build Jackrabbit like this:

    mvn clean install

You need Maven 3 (or higher) with Java 8 (or higher) for the
build. For more instructions, please see the documentation at:

   http://jackrabbit.apache.org/building-jackrabbit.html

License (see also LICENSE.txt)
==============================

Collective work: Copyright 2014 The Apache Software Foundation.

Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.  See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License.  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Mailing Lists
=============

To get involved with the Apache Jackrabbit project, start by having a
look at our website and joining our mailing lists. For more details about
Jackrabbit mailing lists as well as links to list archives, please see:

   http://jackrabbit.apache.org/mailing-lists.html

Latest development
==================

The latest Jackrabbit source code is available via Subversion at

   https://svn.apache.org/repos/asf/jackrabbit/trunk/

or with ViewVC at

   https://svn.apache.org/viewvc/jackrabbit/trunk/

To checkout the main Jackrabbit source tree, run

   svn checkout https://svn.apache.org/repos/asf/jackrabbit/trunk jackrabbit

If you use Git, you can clone Jackrabbit with

   git clone git://git.apache.org/jackrabbit.git

Credits
=======

See http://jackrabbit.apache.org/jackrabbit-team.html for the list of
Jackrabbit committers and main contributors.

{'repo_name': 'apache/jackrabbit', 'stars': '261', 'repo_language': 'Java', 'file_name': 'ConnectionRequestInfoTest.java', 'mime_type': 'text/x-java', 'hash': -859335537742370477, 'source_dataset': 'data'}