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">
  <meta name="google-site-verification" content="k_7_quAfL1pppPVMhXjHqDaDpoDasBcKXRiBZNxNm_w" />

  <link rel="stylesheet" href="/css/styles.css">

  <title>How Much Does Google Know About You? - mjohnq3</title>

  <meta name="author" content="mjohnq3">

  <meta name="description" content="How Much Does Google Know About You? More than you realize.
  ">

  <link rel="canonical" href="https://mjohnq3.github.io/blog/2015/02/03/how-much-does-google-know-about-you/">

   ⇑

  <link rel="shortcut icon" href="/favicon.ico">

Blog

Archives

About

RSS

mjohnq3

Random thoughts about stuff I like...

How Much Does Google Know About You?

    <time datetime="2015-02-03T11:24:42-05:00"
          >Feb 3, 2015
    </time>

Time to read: less than one minute

Google began life as a search engine. But over the years it’s acquired over 150
companies, all of which collect data that you, often unknowingly, provide them.
Google’s main business is to sell advertising based on the data it collects about you.
If you’re concerned that so much of your personal data is collected and stored by
one company, my advice would be to stop using so many Google products and services.

The following Infographic shows some of the many ways Google collects data on you.

You can also find more infographics at Visualistan

Tags: google, privacy, web

Filed in: Technology

Share on Twitter

Permalink

    Related posts:

Yahoo! Acquires Tumblr for a Cool $1.1 Billion

20 Years of a Free and Open Web

      « Happy New Year - 2015

      A New Blog »

Categories

Web Development 8

Personal 4

Reading List 4

Technology 3

Programming 3

Computers 1

Recent

Time to Start Blogging Again

By the Riverside

Reading List - Sept

Blogging Features Pt. 1

What Is Octopress?

Maine Winter

Tags

    bartik blog cern drupal google hardware jekyll maine news nj octopress photos privacy rwd syllabus web windows winter www yahoo

Copyright © 2013 - 2016 - mjohnq3

Parts of this work are licensed under a
    Creative
    Commons Attribution-NonCommercial-ShareAlike 4.0 International License unless
    otherwise specified.

      Powered by Jekyll
        on GitHub

      Subscribe via RSS

<link href='//fonts.googleapis.com/css?family=Merriweather|Lato:700'
      rel='stylesheet' type='text/css'>


text:
#include "ImageTable.h"

namespace ImageTable {

const char* strings[NBR_IMAGES][NBR_IMAGE_SETS] = {
   { "", NULL },
   { "route_orig", NULL },
   { "route_dest", NULL },
   { "parkAndWalk", NULL },
   { "cityCentre_square", NULL },
   { "cityCentre", NULL },
   { "cityCentre_small_red", NULL },
   { "cityCentre_small_pink", NULL },
   { "cityCentre_point", NULL },
   { "cityCentre_point_small", NULL },
   { "tat_atm", NULL },
   { "tat_golfcourse", NULL },
   { "iceSkatingRink", NULL },
   { "marina", NULL },
   { "tat_carrepair", NULL },
   { "bowlingCentre", NULL },
   { "tat_bank", NULL },
   { "tat_casino", NULL },
   { "cityHall", NULL },
   { "commuter_rail_station", NULL },
   { "subway_station", NULL },
   { "courtHouse", NULL },
   { "tat_historicalmonument", NULL },
   { "museum", NULL },
   { "tat_nightlife", NULL },
   { "tat_churchchristian", NULL },
   { "tat_churchmoske", NULL },
   { "tat_churchsynagogue", NULL },
   { "hindu_temple", NULL },
   { "buddhist_temple", NULL },
   { "tat_postoffice", NULL },
   { "recreationFacility", NULL },
   { "rentAcarFacility", NULL },
   { "restArea", NULL },
   { "tat_skiresort", NULL },
   { "sportsActivity", NULL },
   { "tat_shop", NULL },
   { "tat_theatre", NULL },
   { "tat_touristattraction", NULL },
   { "university", NULL },
   { "winery", NULL },
   { "tat_parkinggarage", NULL },
   { "tat_parkandride", NULL },
   { "tat_openparkingarea", NULL },
   { "tat_amusementpark", NULL },
   { "library", NULL },
   { "school", NULL },
   { "tat_grocerystore", NULL },
   { "tat_petrolstation", NULL },
   { "tat_tramway", NULL },
   { "tat_ferryterminal", NULL },
   { "tat_cinema", NULL },
   { "tat_busstation", NULL },
   { "tat_railwaystation", NULL },
   { "tat_airport", NULL },
   { "tat_restaurant", NULL },
   { "cafe", NULL },
   { "tat_hotel", NULL },
   { "tat_touristoffice", NULL },
   { "policeStation", NULL },
   { "tat_hospital", NULL },
   { "tollRoad", NULL },
   { "tat_wifihotspot", NULL },
   { "tat_cheappetrolstation", NULL },
   { "tur_hospital", NULL },
   { "tat_trafficinformation", NULL },
   { "tat_roadwork", NULL },
   { "tat_speedcamera", NULL },
   { "user_defined_speedcamera", NULL },
   { "tat_speedtrap", NULL },
   { "tat_commutertrain", NULL },
   { "unknown", NULL },
   { "carRightU", NULL },
   { "carRight", NULL },
   { "carLeftU", NULL },
   { "carLeft", NULL },
   { "man", NULL },
   { "bikeRight", NULL },
   { "bikeLeft", NULL },
   { "mappin_centered", NULL },

   { "tat_airport", "cat_iphone_airport" },
   { "tat_atm", "cat_iphone_atm" },
   { "tat_bank", "cat_iphone_bank" },
   { "poi_cardealer", "cat_iphone_cardealer" },
   { "tat_cinema", "cat_iphone_cinema" },
   { "citycentre_dart", "cat_iphone_citycentre" },
   { "tat_hospital", "cat_iphone_hospital" },
   { "tat_ferryterminal",  "cat_iphone_ferryterminal" },
   { "tat_golfcourse", "cat_iphone_golfcourse" },
   { "tat_hotel", "cat_iphone_hotel" },
   { "commuter_rail_station", "cat_iphone_commuter_rail_station" },
   { "poi_historicalmonument_building", "cat_iphone_historicalmonument_building" },
   { "tat_historicalmonument", "cat_iphone_museum" },
   { "poi_musicstore", NULL },
   { "tat_nightlife", "cat_iphone_nightlife" },
   { "tat_openparkingarea", "cat_iphone_openparkingarea" },
   { "tat_parkinggarage", "cat_iphone_parkinggarage" },
   { "tat_petrolstation", "cat_iphone_petrolstation" },
   { "tat_pharmacy", "cat_iphone_pharmacy" },
   { "policeStation", "cat_iphone_policestation" },
   { "tat_postoffice", "cat_iphone_postoffice" },
   { "rentAcarFacility", "cat_iphone_rentacarfacility" },
   { "tat_restaurant", "cat_iphone_restaurant" },
   { "tat_grocerystore", "cat_iphone_grocerystore" },
   { "tat_skiresort", "cat_iphone_skiresort" },
   { "tat_theatre", "cat_iphone_theatre" },
   { "tat_touristoffice", "cat_iphone_touristoffice" },
   { "tat_railwaystation", "cat_iphone_railwaystation" },
   { "tat_carrepair", "cat_iphone_carrepair" },
   { "tat_nightlife", "cat_iphone_nightlife" },
   { "cafe", "cat_iphone_cafe" },
   { "tat_hospital", "cat_iphone_hospital" },
   { "tat_nightlife", "cat_iphone_nightlife" },
   { "tat_openparkingarea", "cat_iphone_openparkingarea" },
   { "subway_station", "cat_iphone_subway" },
   { "tat_grocerystore", "cat_iphone_shopping" },
   { "rentAcarFacility", "cat_iphone_rentacarfacility" },
   { "tat_wifihotspot", "cat_iphone_wifi" },
   { "tat_busstation", "cat_iphone_busstation" },
   { "tat_casino", "cat_iphone_casino" },
   { "tat_amusementpark", "cat_iphone_amusementpark" },
   { "tat_churchmoske", "cat_iphone_mosque" },
   { "tat_churchchristian", "cat_iphone_church" },
   { "tat_churchsynagogue", "cat_iphone_synagogue" },
   { "tat_touristattraction", "cat_iphone_touristattraction" },
   { "tat_tramway", "cat_iphone_tramstation" },
   { "tat_shop", "cat_iphone_generic" },
   { "tat_shop", "cat_iphone_generic" },

   { "search_heading_places", "search_heading_iphone_places" },
   { "search_heading_addresses", "search_heading_iphone_addresses" },
};

const char* getImage( ImageCode imageCode,
                      ImageSet imageSet /*= DEFAULT */ ) {
   const char* result = strings[ imageCode ][ imageSet ];

   if ( result == NULL && imageSet != DEFAULT ) {
      result = strings[ imageCode ][ DEFAULT ];
   }

   if ( result == NULL ) {
      result = "";
   }

   return result;
}

ImageSet getImageSetFromString( const MC2String& imageSetStr ) {
   if ( imageSetStr == "iphone" ) {
      return IPHONE;
   } else if ( imageSetStr == "default" ||
               imageSetStr == "" ) {
      return DEFAULT;
   } else {
      mc2log << warn << "Invalid image set: " << imageSetStr << endl;
      return DEFAULT;
   }
}

MC2String imageSetToString( ImageSet imageSet ) {
   switch ( imageSet ) {
      case DEFAULT:
         return "";
      case IPHONE:
         return "iphone";
      case NBR_IMAGE_SETS:
         MC2_ASSERT( false );
   }

   return "";
}

} // namespace ImageTable

redpajama_set_name: RedPajamaGithub


text:
Homepage of the dInvest project.

## ToDO
- include Slack channel


text:
<?php

namespace Checkout\Models\Sources;

use Checkout\Models\Address;

/**
 * Billing Address for SEPA source.
 *
 * @category SDK
 * @package  Checkout.com
 * @author   Platforms Development Team <platforms@checkout.com>
 * @license  https://opensource.org/licenses/mit-license.html MIT License
 * @link     https://docs.checkout.com/
 */
class SepaAddress extends Address
{

    /**
     * Qualified name of the class.
     *
     * @var string
     */
    const QUALIFIED_NAME = __CLASS__;

    /**
     * Name of the model.
     *
     * @var string
     */
    const MODEL_NAME = 'billing_address';

    /**
     * Magic Methods
     */

    /**
     * Initialize billing address for SEPA source.
     *
     * @param string $address1
     * @param string $city
     * @param string $zip
     * @param string $country
     */
    public function __construct($address1, $city, $zip, $country)
    {
        $this->address_line1 = $address1;
        $this->city = $city;
        $this->zip = $zip;
        $this->country = $country;
    }
}


text:
using System;
using System.Reflection;

namespace NakedFramework.Architecture.Component;

/// <summary>
///     Strategy used to determine facts about classes, such as whether an an obj of a particular class can be
///     used as a field. Alternative implementations could, for example, exclude types in a specific namespace.
/// </summary>
public interface IClassStrategy {
    bool IsIgnored(Type type);

    bool IsTypeRecognizedByReflector(Type type);

    bool IsTypeRecognizedBySystem(Type type);

    bool IsIgnored(MemberInfo member);

    bool IsService(Type type);

    bool LoadReturnType(MethodInfo method);
}

// Copyright (c) Naked Objects Group Ltd.


text:
#include "config.h"
#include "SVGElementInstance.h"

#include "ContainerNodeAlgorithms.h"
#include "Event.h"
#include "EventException.h"
#include "EventListener.h"
#include "EventNames.h"
#include "FrameView.h"
#include "SVGDocumentExtensions.h"
#include "SVGElement.h"
#include "SVGElementInstanceList.h"
#include "SVGUseElement.h"

#include <wtf/RefCountedLeakCounter.h>

namespace WebCore {

DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, instanceCounter, ("WebCoreSVGElementInstance"));

// EventTarget API
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), abort);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), blur);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), change);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), click);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), contextmenu);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), dblclick);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), error);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), focus);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), input);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), keydown);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), keypress);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), keyup);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), load);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), mousedown);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), mouseenter);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), mouseleave);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), mousemove);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), mouseout);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), mouseover);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), mouseup);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), mousewheel);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), wheel);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), beforecut);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), cut);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), beforecopy);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), copy);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), beforepaste);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), paste);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), dragenter);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), dragover);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), dragleave);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), drop);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), dragstart);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), drag);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), dragend);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), reset);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), resize);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), scroll);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), search);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), select);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), selectstart);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), submit);
DEFINE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(SVGElementInstance, correspondingElement(), unload);

PassRefPtr<SVGElementInstance> SVGElementInstance::create(SVGUseElement* correspondingUseElement, SVGUseElement* directUseElement, PassRefPtr<SVGElement> originalElement)
{
    return adoptRef(new SVGElementInstance(correspondingUseElement, directUseElement, originalElement));
}

SVGElementInstance::SVGElementInstance(SVGUseElement* correspondingUseElement, SVGUseElement* directUseElement, PassRefPtr<SVGElement> originalElement)
    : m_parentInstance(0)
    , m_correspondingUseElement(correspondingUseElement)
    , m_directUseElement(directUseElement)
    , m_element(originalElement)
    , m_previousSibling(0)
    , m_nextSibling(0)
    , m_firstChild(0)
    , m_lastChild(0)
{
    ASSERT(m_correspondingUseElement);
    ASSERT(m_element);

    // Register as instance for passed element.
    m_element->mapInstanceToElement(this);

#ifndef NDEBUG
    instanceCounter.increment();
#endif
}

SVGElementInstance::~SVGElementInstance()
{
    // Call detach because we may be deleted directly if we are a child of a detached instance.
    detach();

#ifndef NDEBUG
    instanceCounter.decrement();
#endif

    m_element = 0;
}

// It's important not to inline removedLastRef, because we don't want to inline the code to
// delete an SVGElementInstance at each deref call site.
void SVGElementInstance::removedLastRef()
{
#ifndef NDEBUG
    m_deletionHasBegun = true;
#endif
    delete this;
}

Node* SVGElementInstance::toNode()
{
    return shadowTreeElement();
}

void SVGElementInstance::detach()
{
    // Clear all pointers. When the node is detached from the shadow DOM it should be removed but,
    // due to ref counting, it may not be. So clear everything to avoid dangling pointers.

    for (SVGElementInstance* node = firstChild(); node; node = node->nextSibling())
        node->detach();

    // Deregister as instance for passed element, if we haven't already.
    if (m_element->instancesForElement().contains(this))
        m_element->removeInstanceMapping(this);
    // DO NOT clear ref to m_element because JavaScriptCore uses it for garbage collection

    m_shadowTreeElement = 0;

    m_directUseElement = 0;
    m_correspondingUseElement = 0;

    removeDetachedChildrenInContainer<SVGElementInstance, SVGElementInstance>(*this);
}

PassRefPtr<SVGElementInstanceList> SVGElementInstance::childNodes()
{
    return SVGElementInstanceList::create(this);
}

Document* SVGElementInstance::ownerDocument() const
{
    return m_element ? &m_element->document() : 0;
}

void SVGElementInstance::setShadowTreeElement(SVGElement* element)
{
    ASSERT(element);
    m_shadowTreeElement = element;
}

void SVGElementInstance::appendChild(PassRefPtr<SVGElementInstance> child)
{
    appendChildToContainer<SVGElementInstance, SVGElementInstance>(child.get(), *this);
}

void SVGElementInstance::invalidateAllInstancesOfElement(SVGElement* element)
{
    if (!element || !element->inDocument())
        return;

    if (element->instanceUpdatesBlocked())
        return;

    const HashSet<SVGElementInstance*>& set = element->instancesForElement();
    if (set.isEmpty())
        return;

    // Mark all use elements referencing 'element' for rebuilding
    const HashSet<SVGElementInstance*>::const_iterator end = set.end();
    for (HashSet<SVGElementInstance*>::const_iterator it = set.begin(); it != end; ++it) {
        ASSERT((*it)->shadowTreeElement());
        ASSERT((*it)->shadowTreeElement()->correspondingElement());
        ASSERT((*it)->shadowTreeElement()->correspondingElement() == (*it)->correspondingElement());
        ASSERT((*it)->correspondingElement() == element);
        (*it)->shadowTreeElement()->setCorrespondingElement(0);

        if (SVGUseElement* element = (*it)->correspondingUseElement()) {
            ASSERT(element->inDocument());
            element->invalidateShadowTree();
        }
    }

    element->document().updateStyleIfNeeded();
}

EventTargetInterface SVGElementInstance::eventTargetInterface() const
{
    return SVGElementInstanceEventTargetInterfaceType;
}

ScriptExecutionContext* SVGElementInstance::scriptExecutionContext() const
{
    return &m_element->document();
}

bool SVGElementInstance::addEventListener(const AtomicString& eventType, PassRefPtr<EventListener> listener, bool useCapture)
{
    return m_element->addEventListener(eventType, listener, useCapture);
}

bool SVGElementInstance::removeEventListener(const AtomicString& eventType, EventListener* listener, bool useCapture)
{
    return m_element->removeEventListener(eventType, listener, useCapture);
}

void SVGElementInstance::removeAllEventListeners()
{
    m_element->removeAllEventListeners();
}

bool SVGElementInstance::dispatchEvent(PassRefPtr<Event> event)
{
    SVGElement* element = shadowTreeElement();
    if (!element)
        return false;

    return element->dispatchEvent(event);
}

EventTargetData* SVGElementInstance::eventTargetData()
{
    // Since no event listeners are added to an SVGElementInstance, we don't have eventTargetData.
    return 0;
}

EventTargetData& SVGElementInstance::ensureEventTargetData()
{
    // EventTarget would use these methods if we were actually using its add/removeEventListener logic.
    // As we're forwarding those calls to the correspondingElement(), no one should ever call this function.
    ASSERT_NOT_REACHED();
    return *eventTargetData();
}

SVGElementInstance::InstanceUpdateBlocker::InstanceUpdateBlocker(SVGElement* targetElement)
    : m_targetElement(targetElement)
{
    if (m_targetElement)
        m_targetElement->setInstanceUpdatesBlocked(true);
}

SVGElementInstance::InstanceUpdateBlocker::~InstanceUpdateBlocker()
{
    if (m_targetElement)
        m_targetElement->setInstanceUpdatesBlocked(false);
}

}


text:
#include <aws/networkmanager/model/GetCoreNetworkChangeEventsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>

#include <utility>

using namespace Aws::NetworkManager::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;

GetCoreNetworkChangeEventsResult::GetCoreNetworkChangeEventsResult()
{
}

GetCoreNetworkChangeEventsResult::GetCoreNetworkChangeEventsResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
  *this = result;
}

GetCoreNetworkChangeEventsResult& GetCoreNetworkChangeEventsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
  JsonView jsonValue = result.GetPayload().View();
  if(jsonValue.ValueExists("CoreNetworkChangeEvents"))
  {
    Aws::Utils::Array<JsonView> coreNetworkChangeEventsJsonList = jsonValue.GetArray("CoreNetworkChangeEvents");
    for(unsigned coreNetworkChangeEventsIndex = 0; coreNetworkChangeEventsIndex < coreNetworkChangeEventsJsonList.GetLength(); ++coreNetworkChangeEventsIndex)
    {
      m_coreNetworkChangeEvents.push_back(coreNetworkChangeEventsJsonList[coreNetworkChangeEventsIndex].AsObject());
    }
  }

  if(jsonValue.ValueExists("NextToken"))
  {
    m_nextToken = jsonValue.GetString("NextToken");

  }

  return *this;
}


text:
import { CompilerOptions } from "./CompilerOptions";
import { DebugSourceRange } from "./DebugSourceRange";
import { ErrorType } from "./Parser/ErrorType";
import { InkParser } from "./Parser/InkParser";
import { Story } from "../engine/Story";
import { Story as ParsedStory } from "./Parser/ParsedHierarchy/Story";
import { DebugMetadata } from "../engine/DebugMetadata";
import { StringValue } from "../engine/Value";
import { asOrNull } from "../engine/TypeAssertion";

export { CompilerOptions } from "./CompilerOptions";
export { JsonFileHandler } from "./FileHandler/JsonFileHandler";
export { InkList, Story } from "../engine/Story";

export class Compiler {
  private _errors: string[] = [];
  get errors(): string[] {
    return this._errors;
  }

  private _warnings: string[] = [];
  get warnings(): string[] {
    return this._warnings;
  }

  private _authorMessages: string[] = [];
  get authorMessages(): string[] {
    return this._authorMessages;
  }

  private _inputString: string;
  get inputString(): string {
    return this._inputString;
  }

  private _options: CompilerOptions;
  get options(): CompilerOptions {
    return this._options;
  }

  private _parsedStory: ParsedStory | null = null;
  get parsedStory(): ParsedStory {
    if (!this._parsedStory) {
      throw new Error();
    }

    return this._parsedStory;
  }

  private _runtimeStory: Story | null = null;
  get runtimeStory(): Story {
    if (!this._runtimeStory) {
      throw new Error("Compilation failed.");
    }

    return this._runtimeStory;
  }

  private _parser: InkParser | null = null;
  get parser(): InkParser {
    if (!this._parser) {
      throw new Error();
    }

    return this._parser;
  }

  private _debugSourceRanges: DebugSourceRange[] = [];
  get debugSourceRanges(): DebugSourceRange[] {
    return this._debugSourceRanges;
  }

  constructor(inkSource: string, options: CompilerOptions | null = null) {
    this._inputString = inkSource;
    this._options = options || new CompilerOptions();
  }

  public readonly Compile = (): Story => {
    this._parser = new InkParser(
      this.inputString,
      this.options.sourceFilename || null,
      this.OnError,
      null,
      this.options.fileHandler
    );

    this._parsedStory = this.parser.ParseStory();

    if (this.errors.length === 0) {
      this.parsedStory.countAllVisits = this.options.countAllVisits;
      this._runtimeStory = this.parsedStory.ExportRuntime(this.OnError);
    } else {
      this._runtimeStory = null;
    }

    return this.runtimeStory;
  };

  public readonly RetrieveDebugSourceForLatestContent = (): void => {
    for (const outputObj of this.runtimeStory.state.outputStream) {
      const textContent = asOrNull(outputObj, StringValue);
      if (textContent !== null) {
        const range = new DebugSourceRange(
          textContent.value?.length || 0,
          textContent.debugMetadata,
          textContent.value || "unknown"
        );

        this.debugSourceRanges.push(range);
      }
    }
  };

  public readonly DebugMetadataForContentAtOffset = (
    offset: number
  ): DebugMetadata | null => {
    let currOffset = 0;

    let lastValidMetadata: DebugMetadata | null = null;
    for (const range of this.debugSourceRanges) {
      if (range.debugMetadata !== null) {
        lastValidMetadata = range.debugMetadata;
      }

      if (offset >= currOffset && offset < currOffset + range.length) {
        return lastValidMetadata;
      }

      currOffset += range.length;
    }

    return null;
  };

  public readonly OnError = (message: string, errorType: ErrorType) => {
    switch (errorType) {
      case ErrorType.Author:
        this._authorMessages.push(message);
        break;

      case ErrorType.Warning:
        this._warnings.push(message);
        break;

      case ErrorType.Error:
        this._errors.push(message);
        break;
    }

    if (this.options.errorHandler !== null) {
      this.options.errorHandler(message, errorType);
    }
  };
}


text:
using System.Runtime.CompilerServices;

[assembly:InternalsVisibleTo("Stamp.Fody.Tests")]


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UsefullAlgorithms.ChainedExecution
{
    internal class ChainedTaskClass : InternalTaskExecutor
    {
        private Type type;
        private object[] args;

        public ChainedTaskClass(Type type, object[] args, TaskExecutionStarted delegateStarted, TaskExecutionStopped delegateStopped, ProgressChange progressChange)
            : base(delegateStarted, delegateStopped, progressChange)
        {
            this.type = type;
            this.args = args;
        }

        protected override Task Execute(TaskExecutionContext context, ProgressChange onProgressChange)
            => CreateTask().Execute(context, onProgressChange);

        private ChainedTaskBase CreateTask()
            => (ChainedTaskBase)Activator.CreateInstance(type, args);
    }
}


text:
//  Copyright 2021 Google Inc. All Rights Reserved.
//
//  Licensed 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.

using NtApiDotNet.Utilities.Reflection;
using System;

namespace NtApiDotNet.Win32.Security.Policy
{
    /// <summary>
    /// Access rights for an LSA secret.
    /// </summary>
    [Flags]
    public enum LsaSecretAccessRights : uint
    {
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
        None = 0,
        [SDKName("SECRET_SET_VALUE")]
        SetValue = 0x00000001,
        [SDKName("SECRET_QUERY_VALUE")]
        QueryValue = 0x00000002,
        [SDKName("GENERIC_READ")]
        GenericRead = GenericAccessRights.GenericRead,
        [SDKName("GENERIC_WRITE")]
        GenericWrite = GenericAccessRights.GenericWrite,
        [SDKName("GENERIC_EXECUTE")]
        GenericExecute = GenericAccessRights.GenericExecute,
        [SDKName("GENERIC_ALL")]
        GenericAll = GenericAccessRights.GenericAll,
        [SDKName("DELETE")]
        Delete = GenericAccessRights.Delete,
        [SDKName("READ_CONTROL")]
        ReadControl = GenericAccessRights.ReadControl,
        [SDKName("WRITE_DAC")]
        WriteDac = GenericAccessRights.WriteDac,
        [SDKName("WRITE_OWNER")]
        WriteOwner = GenericAccessRights.WriteOwner,
        [SDKName("MAXIMUM_ALLOWED")]
        MaximumAllowed = GenericAccessRights.MaximumAllowed,
        [SDKName("ACCESS_SYSTEM_SECURITY")]
        AccessSystemSecurity = GenericAccessRights.AccessSystemSecurity
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
    }
}


text:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const interface_1 = require("./interface");
class DelegateTree {
    constructor(_other) {
        this._other = _other;
    }
    branch() { return this._other.branch(); }
    merge(other, strategy) { this._other.merge(other, strategy); }
    get root() { return this._other.root; }
    // Readonly.
    read(path) { return this._other.read(path); }
    exists(path) { return this._other.exists(path); }
    get(path) { return this._other.get(path); }
    getDir(path) { return this._other.getDir(path); }
    visit(visitor) { return this._other.visit(visitor); }
    // Change content of host files.
    overwrite(path, content) {
        return this._other.overwrite(path, content);
    }
    beginUpdate(path) { return this._other.beginUpdate(path); }
    commitUpdate(record) { return this._other.commitUpdate(record); }
    // Structural methods.
    create(path, content) {
        return this._other.create(path, content);
    }
    delete(path) { return this._other.delete(path); }
    rename(from, to) { return this._other.rename(from, to); }
    apply(action, strategy) {
        return this._other.apply(action, strategy);
    }
    get actions() { return this._other.actions; }
    [interface_1.TreeSymbol]() {
        return this;
    }
}
exports.DelegateTree = DelegateTree;


text:
package com.github.mob41.osumer.ui;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import com.github.mob41.osumer.rmi.IUI;

public class UI extends UnicastRemoteObject implements IUI {

    private final AppMain appMain;

    public UI(AppMain appMain) throws RemoteException {
    	this.appMain = appMain;
    }

    @Override
    public void wake() throws RemoteException {
    	appMain.wake();
    }

    @Override
    public void onQueueStatusUpdate() throws RemoteException {
        appMain.onQueueStatusUpdate();
    }

}


text:
package builds

import (
	"fmt"

	g "github.com/onsi/ginkgo"
	o "github.com/onsi/gomega"

	exutil "github.com/openshift/origin/test/extended/util"
	s2istatus "github.com/openshift/source-to-image/pkg/util/status"
)

var _ = g.Describe("[builds][Conformance] s2i build with a root user image", func() {
	defer g.GinkgoRecover()

	var (
		buildFixture = exutil.FixturePath("testdata", "s2i-build-root.yaml")
		oc           = exutil.NewCLI("s2i-build-root", exutil.KubeConfigPath())
	)

	g.JustBeforeEach(func() {
		g.By("waiting for builder service account")
		err := exutil.WaitForBuilderAccount(oc.AdminKubeClient().Core().ServiceAccounts(oc.Namespace()))
		o.Expect(err).NotTo(o.HaveOccurred())
	})

	g.Describe("Building using an image with a root default user", func() {
		g.It("should fail the build immediately", func() {
			oc.SetOutputDir(exutil.TestContext.OutputDir)

			g.By(fmt.Sprintf("calling oc create -f %q", buildFixture))
			err := oc.Run("create").Args("-f", buildFixture).Execute()
			o.Expect(err).NotTo(o.HaveOccurred())

			g.By("starting a test build")
			// this uses the build-quota dir as the binary input source on purpose - we don't really care what we upload
			// to the build since it will fail before we ever consume the inputs.
			br, _ := exutil.StartBuildAndWait(oc, "s2i-build-root", "--from-dir", exutil.FixturePath("testdata", "build-quota"))
			br.AssertFailure()
			o.Expect(string(br.Build.Status.Reason)).To(o.Equal(string(s2istatus.ReasonPullBuilderImageFailed)))
			o.Expect(string(br.Build.Status.Message)).To(o.Equal(string(s2istatus.ReasonMessagePullBuilderImageFailed)))

		})
	})
})


text:
import esptool
import argparse
from time import sleep

import sys

ESP_ROM_BAUD = 115200

class Args:
    def __init__(self):
        self.port = "/dev/ttyUSB0"
        self.baud = ESP_ROM_BAUD
        self.flash_mode = "qio"
        self.flash_size = "4m"
        self.flash_freq = "40m"
        self.addr_filename = None
        self.no_progress = False
        self.verify = False

def flash(port, firmware_file, erase_flash):
    # Initialize parameters
    args = Args()
    args.port = port
    args.baud = 460800

    # Initialize device
    initial_baud = min(ESP_ROM_BAUD, args.baud)
    esp = esptool.ESPROM(args.port, initial_baud)

    if erase_flash:
        # Connect to the device
        esp.connect()

        # Erase flash
        esptool.erase_flash(esp, args)

    if not firmware_file:
        return

    # Reconnect
    esp.connect()

    # Prepare arguments for writing flash
    address = 0
    args.flash_size = "detect"
    args.addr_filename = [(address, open(firmware_file, "rb"))]

    # Write flash
    esptool.write_flash(esp, args)
    print "Done writing new firmware."

if __name__ == '__main__':
    try:
        parser = argparse.ArgumentParser()
        parser.add_argument('port', type=str)
        parser.add_argument('--fw', type=str, action='store')
        parser.add_argument('--erase', action='store_true')
        parser.add_argument('--debug', action='store_true')
        args = parser.parse_args()

        if args.debug:
            print "Character test: "
            for i in range(0, 256):
                print chr(i),
            print ""
        flash(args.port, args.fw, args.erase)
    except Exception as e:
        exit(1)
    exit(0)


text:
define([
    'streamhub-sdk/jquery',
    'streamhub-sdk/content/types/oembed',
    'streamhub-sdk/content/types/livefyre-content',
    'inherits'],
function($, Oembed, LivefyreContent, inherits) {
    'use strict';

    /**
     * An Oembed constructed from a StreamHub state of oEmbed type
     * @param json {Object} A state object from StreamHub APIs
     * @param json.content.oembed {Object} An Object conforming to the oEmbed spec
     * @exports streamhub-sdk/content/types/livefyre-oembed
     * @constructor
     */
    var LivefyreOembed = function(json) {
        LivefyreContent.call(this, json);
        Oembed.call(this, json.content.oembed);

        if (this.provider_name === "Facebook" && this.url &&
            this.thumbnail_url && (this.html === "" || this.html === null)) {
            this.html = "";
        }
    };
    inherits(LivefyreOembed, Oembed);
    $.extend(LivefyreOembed.prototype, LivefyreContent.prototype);

    return LivefyreOembed;
});


text:
<?php
namespace userBundle\Entity;

use FOS\UserBundle\Entity\User as BaseUser;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="usuarios")
 */
class usuario extends BaseUser
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    public function __construct()
    {
        parent::__construct();
        // your own logic
    }
}


text:
import { PagerComponent } from './pager.component';

describe('Pager', () => {
    it('should init with default values', () => {
        const pager = new PagerComponent();

        pager.paging = { page: 0, pageSize: 10, count: 0, total: 0 };
        pager.ngOnChanges();

        expect(pager.canGoNext).toBeFalse();
        expect(pager.canGoPrev).toBeFalse();

        expect(pager.itemFirst).toEqual(0);
        expect(pager.itemLast).toEqual(0);
    });

    it('should init with first full page', () => {
        const pager = new PagerComponent();

        pager.paging = { page: 0, pageSize: 10, count: 10, total: 100 };
        pager.ngOnChanges();

        expect(pager.canGoNext).toBeTrue();
        expect(pager.canGoPrev).toBeFalse();

        expect(pager.itemFirst).toEqual(1);
        expect(pager.itemLast).toEqual(10);
    });

    it('should init with middle page', () => {
        const pager = new PagerComponent();

        pager.paging = { page: 4, pageSize: 10, count: 10, total: 100 };
        pager.ngOnChanges();

        expect(pager.canGoNext).toBeTrue();
        expect(pager.canGoPrev).toBeTrue();

        expect(pager.itemFirst).toEqual(41);
        expect(pager.itemLast).toEqual(50);
    });

    it('should init with last full page', () => {
        const pager = new PagerComponent();

        pager.paging = { page: 9, pageSize: 10, count: 10, total: 100 };
        pager.ngOnChanges();

        expect(pager.canGoNext).toBeFalse();
        expect(pager.canGoPrev).toBeTrue();

        expect(pager.itemFirst).toEqual(91);
        expect(pager.itemLast).toEqual(100);
    });

    it('should init with last partly page', () => {
        const pager = new PagerComponent();

        pager.paging = { page: 9, pageSize: 10, count: 4, total: 100 };
        pager.ngOnChanges();

        expect(pager.canGoNext).toBeFalse();
        expect(pager.canGoPrev).toBeTrue();

        expect(pager.itemFirst).toEqual(91);
        expect(pager.itemLast).toEqual(94);
    });

    it('should init with last partly page 2', () => {
        const pager = new PagerComponent();

        pager.paging = { page: 9, pageSize: 10, count: 9, total: 100 };
        pager.ngOnChanges();

        expect(pager.canGoNext).toBeFalse();
        expect(pager.canGoPrev).toBeTrue();

        expect(pager.itemFirst).toEqual(91);
        expect(pager.itemLast).toEqual(99);
    });

    it('should init without total and full page size', () => {
        const pager = new PagerComponent();

        pager.paging = { page: 9, pageSize: 10, count: 10, total: -1 };
        pager.ngOnChanges();

        expect(pager.canGoNext).toBeTrue();
        expect(pager.canGoPrev).toBeTrue();

        expect(pager.itemFirst).toEqual(91);
        expect(pager.itemLast).toEqual(100);
    });

    it('should init without total and partial page size', () => {
        const pager = new PagerComponent();

        pager.paging = { page: 9, pageSize: 10, count: 5, total: -1 };
        pager.ngOnChanges();

        expect(pager.canGoNext).toBeFalse();
        expect(pager.canGoPrev).toBeTrue();

        expect(pager.itemFirst).toEqual(91);
        expect(pager.itemLast).toEqual(95);
    });

    it('should emit if changing size', () => {
        const pager = new PagerComponent();

        pager.paging = { page: 4, pageSize: 10, count: 10, total: 100 };
        pager.ngOnChanges();

        let emitted: any;

        pager.pagingChange.subscribe((value: any) => {
            emitted = value;
        });

        pager.setPageSize(20);

        expect(emitted).toEqual({ page: 0, pageSize: 20 });
    });

    it('should emit if going next', () => {
        const pager = new PagerComponent();

        pager.paging = { page: 4, pageSize: 10, count: 10, total: 100 };
        pager.ngOnChanges();

        let emitted: any;

        pager.pagingChange.subscribe((value: any) => {
            emitted = value;
        });

        pager.goNext();

        expect(emitted).toEqual({ page: 5, pageSize: 10 });
    });

    it('should emit if going prev', () => {
        const pager = new PagerComponent();

        pager.paging = { page: 4, pageSize: 10, count: 10, total: 100 };
        pager.ngOnChanges();

        let emitted: any;

        pager.pagingChange.subscribe((value: any) => {
            emitted = value;
        });

        pager.goPrev();

        expect(emitted).toEqual({ page: 3, pageSize: 10 });
    });
});


text:
using System.Windows.Forms;
namespace Project1
{
    partial class RamGec_About_Box1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.productVersionLabel = new System.Windows.Forms.Label();
            this.bottomPanel = new System.Windows.Forms.Panel();
            this.okButton = new System.Windows.Forms.Button();
            this.linkLabel = new System.Windows.Forms.LinkLabel();
            this.bottomPanel.SuspendLayout();
            this.SuspendLayout();
            //
            // productVersionLabel
            //
            this.productVersionLabel.AutoSize = true;
            this.productVersionLabel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.productVersionLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32)))));
            this.productVersionLabel.Location = new System.Drawing.Point(157, 98);
            this.productVersionLabel.Name = "productVersionLabel";
            this.productVersionLabel.Size = new System.Drawing.Size(99, 15);
            this.productVersionLabel.TabIndex = 5;
            this.productVersionLabel.Text = "{Product Version}";
            //
            // bottomPanel
            //
            this.bottomPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
            this.bottomPanel.Controls.Add(this.okButton);
            this.bottomPanel.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.bottomPanel.Location = new System.Drawing.Point(0, 230);
            this.bottomPanel.Name = "bottomPanel";
            this.bottomPanel.Size = new System.Drawing.Size(394, 42);
            this.bottomPanel.TabIndex = 7;
            //
            // okButton
            //
            this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.okButton.Location = new System.Drawing.Point(307, 9);
            this.okButton.Name = "okButton";
            this.okButton.Size = new System.Drawing.Size(75, 23);
            this.okButton.TabIndex = 0;
            this.okButton.Text = "&OK";
            this.okButton.UseVisualStyleBackColor = true;
            this.okButton.Click += new System.EventHandler(this.okButton_Click);
            //
            // linkLabel
            //
            this.linkLabel.AutoSize = true;
            this.linkLabel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.linkLabel.Location = new System.Drawing.Point(157, 191);
            this.linkLabel.Name = "linkLabel";
            this.linkLabel.Size = new System.Drawing.Size(37, 15);
            this.linkLabel.TabIndex = 8;
            this.linkLabel.TabStop = true;
            this.linkLabel.Text = "{Link}";
           //
            // RamGec_About_Box1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.White;
            this.ClientSize = new System.Drawing.Size(394, 272);
            this.Controls.Add(this.linkLabel);
            this.Controls.Add(this.bottomPanel);
            this.Controls.Add(this.productVersionLabel);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "RamGec_About_Box1";
            this.ShowIcon = false;
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text = "About";
            this.Load += new System.EventHandler(this.RamGec_About_Box1_Load);
            this.bottomPanel.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

      private Label productNameLabel;
        private Label companyNameLabel;
        private Label copyrightLabel;
        private Label productVersionLabel;
        private PictureBox mainPicture;
        private Panel bottomPanel;
        private Button okButton;
        private LinkLabel linkLabel;

    }
}


text:
int foo (wchar_t)
{
    return 0;
}

int foo (char);
int foo (signed char);
int foo (unsigned char);
int foo (short);
int foo (unsigned short);
int foo (int);
int foo (unsigned int);
int foo (long);
int foo (unsigned long);

int main ()
{
    wchar_t c;
    return foo (c);
}


text:
#pragma once
#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
#include <aws/core/utils/DateTime.h>
#include <utility>

namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;

namespace Utils
{
namespace Json
{
  class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoTTwinMaker
{
namespace Model
{
  class AWS_IOTTWINMAKER_API UpdateSceneResult
  {
  public:
    UpdateSceneResult();
    UpdateSceneResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
    UpdateSceneResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);

    /**
     *
The date and time when the scene was last updated.

     */
    inline const Aws::Utils::DateTime& GetUpdateDateTime() const{ return m_updateDateTime; }

    /**
     *
The date and time when the scene was last updated.

     */
    inline void SetUpdateDateTime(const Aws::Utils::DateTime& value) { m_updateDateTime = value; }

    /**
     *
The date and time when the scene was last updated.

     */
    inline void SetUpdateDateTime(Aws::Utils::DateTime&& value) { m_updateDateTime = std::move(value); }

    /**
     *
The date and time when the scene was last updated.

     */
    inline UpdateSceneResult& WithUpdateDateTime(const Aws::Utils::DateTime& value) { SetUpdateDateTime(value); return *this;}

    /**
     *
The date and time when the scene was last updated.

     */
    inline UpdateSceneResult& WithUpdateDateTime(Aws::Utils::DateTime&& value) { SetUpdateDateTime(std::move(value)); return *this;}

  private:

    Aws::Utils::DateTime m_updateDateTime;
  };

} // namespace Model
} // namespace IoTTwinMaker
} // namespace Aws


text:
set -e
source /pbba_build/shared/lib/library.sh
source /hbb/activate

header "Installing RVM"

KEYSERVERS=(
	hkp://keyserver.pgp.com
	hkp://keys.gnupg.net
	ha.pool.sks-keyservers.net
	hkp://p80.pool.sks-keyservers.net:80
	hkp://ipv4.pool.sks-keyservers.net
	keyserver.ubuntu.com
	hkp://keyserver.ubuntu.com:80
	hkp://pgp.mit.edu
	pgp.mit.edu
	-end-
)

KEYS=(
	409B6B1796C275462A1703113804BB82D39DC0E3
	7D2BAF1CF37B13E2069D6956105BD0E739499BDB
)

# We've had too many problems with keyservers. No matter which one we pick,
# it will fail some of the time for some people. So just try a whole bunch
# of them.
for KEY in "${KEYS[@]}"; do
	for KEYSERVER in "${KEYSERVERS[@]}"; do
		if [[ "$KEYSERVER" = -end- ]]; then
			echo 'ERROR: exhausted list of keyservers' >&2
			exit 1
		else
			echo "+ gpg --keyserver $KEYSERVER --recv-keys ${KEY}"
			gpg --keyserver "$KEYSERVER" --recv-keys "${KEY}" && break || echo 'Trying another keyserver...'
		fi
	done
done

run curl -L -o /tmp/install-rvm.sh https://get.rvm.io
run bash /tmp/install-rvm.sh stable
run /usr/local/rvm/bin/rvm autolibs disable


text:
GitDownFolder README
========================
WIP Tool for download selected-folder in selected-branch from a GitHub repository.

Coded in PowerShell.


text:
#include "Memory.h"
#include "../../legacymm/cpp/MemoryPrivate.hpp" // Fine, because this module is a part of legacy MM.

// Note that only C++ part of the runtime goes via those functions, Kotlin uses specialized versions.

extern "C" {

const MemoryModel CurrentMemoryModel = MemoryModel::kRelaxed;

OBJ_GETTER(AllocInstance, const TypeInfo* typeInfo) {
  RETURN_RESULT_OF(AllocInstanceRelaxed, typeInfo);
}

OBJ_GETTER(AllocArrayInstance, const TypeInfo* typeInfo, int32_t elements) {
  RETURN_RESULT_OF(AllocArrayInstanceRelaxed, typeInfo, elements);
}

OBJ_GETTER(InitThreadLocalSingleton, ObjHeader** location, const TypeInfo* typeInfo, void (*ctor)(ObjHeader*)) {
    RETURN_RESULT_OF(InitThreadLocalSingletonRelaxed, location, typeInfo, ctor);
}

OBJ_GETTER(InitSingleton, ObjHeader** location, const TypeInfo* typeInfo, void (*ctor)(ObjHeader*)) {
    RETURN_RESULT_OF(InitSingletonRelaxed, location, typeInfo, ctor);
}

RUNTIME_NOTHROW void ReleaseHeapRef(const ObjHeader* object) {
  ReleaseHeapRefRelaxed(object);
}

RUNTIME_NOTHROW void ReleaseHeapRefNoCollect(const ObjHeader* object) {
  ReleaseHeapRefNoCollectRelaxed(object);
}

RUNTIME_NOTHROW void ZeroStackRef(ObjHeader** location) {
  ZeroStackRefRelaxed(location);
}

RUNTIME_NOTHROW void SetStackRef(ObjHeader** location, const ObjHeader* object) {
  SetStackRefRelaxed(location, object);
}

RUNTIME_NOTHROW void SetHeapRef(ObjHeader** location, const ObjHeader* object) {
  SetHeapRefRelaxed(location, object);
}

RUNTIME_NOTHROW void UpdateHeapRef(ObjHeader** location, const ObjHeader* object) {
  UpdateHeapRefRelaxed(location, object);
}

RUNTIME_NOTHROW void UpdateReturnRef(ObjHeader** returnSlot, const ObjHeader* object) {
  UpdateReturnRefRelaxed(returnSlot, object);
}

RUNTIME_NOTHROW void EnterFrame(ObjHeader** start, int parameters, int count) {
  EnterFrameRelaxed(start, parameters, count);
}

RUNTIME_NOTHROW void LeaveFrame(ObjHeader** start, int parameters, int count) {
  LeaveFrameRelaxed(start, parameters, count);
}

RUNTIME_NOTHROW void UpdateStackRef(ObjHeader** location, const ObjHeader* object) {
    UpdateStackRefRelaxed(location, object);
}

RUNTIME_NOTHROW void UpdateHeapRefsInsideOneArray(const ArrayHeader* array, int fromIndex, int toIndex, int count) {
  UpdateHeapRefsInsideOneArrayRelaxed(array, fromIndex, toIndex, count);
}

}  // extern "C"


text:
import React from 'react';
import Immutable from 'immutable';
import { connect } from 'react-redux';
import { pushState } from 'redux-router';
import PureComponent from 'react-pure-render/component';

import { ServerActions } from 'webapp/actions';

const CLASS_NAME = 'cb-ctn-authorisation';

class AuthorisationContainer extends PureComponent {
  static propTypes = {
    dispatch: React.PropTypes.func.isRequired,
    ownUserId: React.PropTypes.string,
    user: React.PropTypes.instanceOf(Immutable.Map)
  };

  componentWillMount() {
    const { dispatch, user } = this.props;
    if (!user) {
      if (process.env.BROWSER) {
        dispatch(pushState(null, '/'));
      } else {
        dispatch(ServerActions.redirect('/'));
      }
    }
  }

  render() {
    const { children, user } = this.props;

    return (
      <div className={ `${CLASS_NAME} cb-height-full` }>
        { React.cloneElement(children, { user }) }
      </div>
    );
  }
}

export default connect()(AuthorisationContainer);


text:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:paddingLeft="5dp"
    android:paddingRight="5dp"
    android:paddingBottom="5dp"
    android:paddingTop="5dp">

    <TextView
        android:id="@+id/title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textSize="18dp"
        android:layout_marginRight="30dp"
        android:text="@string/titulo" />

    <TextView
        android:id="@+id/speaker"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/title"
        android:textSize="13dp"
        android:text="@string/palestrante" />

    <TextView
        android:id="@+id/space"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/speaker"
        android:textStyle="bold"
        android:textSize="13dp"
        android:text="@string/espaco" />

    <CheckBox
        android:id="@+id/watch"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"/>

    <TextView
        android:id="@+id/time"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/watch"
        android:layout_alignParentRight="true"
        android:textStyle="bold"
        android:textSize="24dp"
        android:text="@string/time" />

</RelativeLayout>


text:
package org.apache.hadoop.ozone.lease;

/**
 * This exception represents all lease related exceptions.
 */
public class LeaseException extends Exception {

  /**
   * Constructs an {@code LeaseException} with {@code null}
   * as its error detail message.
   */
  public LeaseException() {
    super();
  }

  /**
   * Constructs an {@code LeaseException} with the specified
   * detail message.
   *
   * @param message
   *        The detail message (which is saved for later retrieval
   *        by the {@link #getMessage()} method)
   */
  public LeaseException(String message) {
    super(message);
  }

}


text:
#include "VideoInterface.h"

class IVideoInterface_MMX : public IVideoInterface
{
public:
	IVideoInterface_MMX();
	virtual ~IVideoInterface_MMX();

	//virtual GEN_RESULT Init(void* hWnd, uint32 nWidth, uint32 nHeight, uint32 nDepth, bool bFullscreen);
	//virtual GEN_RESULT Term();

	//virtual GEN_RESULT BeginScene();
	//virtual GEN_RESULT EndScene();

	// Surface functions
	//virtual GEN_RESULT CreateSurface(HSURFACE &hSurface, int x, int y);
	//virtual GEN_RESULT CreateSurfaceFromRaw(HSURFACE &hSurface, int x, int y, const char* szFilename);
	//virtual GEN_RESULT ValidateSurface(HSURFACE hSurface);
	//virtual GEN_RESULT DrawSurface(HSURFACE hSurface, int x, int y, Rect2D *pRect = NULL);
	virtual GEN_RESULT DrawSurfaceAlpha(HSURFACE hSurface, int x, int y, float fAlpha, Rect2D *pRect = NULL);
	//virtual GEN_RESULT ReleaseSurface(HSURFACE hSurface);

	//virtual GEN_RESULT DrawText(const char* szText, int x, int y);

protected:
};

#endif


text:
<?php

namespace Msports\EventBundle\Entity;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Eko\FeedBundle\Item\Writer\RoutedItem;
use Symfony\Component\Validator\Constraints as Assert;
use Gedmo\Mapping\Annotation as Gedmo;
use Msports\EventBundle\Entity\Pilot;
use Msports\EventBundle\Entity\Championship;
use Msports\EventBundle\Entity\Course;
use Msports\EventBundle\Entity\Chrono;

/**
 * Article
 *
 * @ORM\Table(name="classement")
 * @ORM\Entity(repositoryClass="Msports\EventBundle\Entity\Repository\ClassementRepository")
 * @ORM\HasLifecycleCallbacks()
 */
class Classement
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @ORM\Column(type="string")
     *
     */
    protected $name;

    /**
     * Articles in the taxonomy
     *
     * @ORM\Column(type="bigint", nullable=true, options={"default" = 0})
     */
    protected $points;

    /**
     * Articles in the taxonomy
     *
     * @ORM\Column(type="integer", nullable=true, options={"default" = 0})
     */
    protected $rank;

     /**
     * Articles in the taxonomy
     *
     * @ORM\Column(type="integer", nullable=true, options={"default" = 0})
     */
    protected $tours;

    /**
     * @ORM\OneToMany(targetEntity="Msports\EventBundle\Entity\Chrono", mappedBy="classement", cascade={"persist", "remove"})
     */
    protected $times;

     /**
     * @ORM\ManyToOne(targetEntity="Msports\EventBundle\Entity\Pilot")
     * @ORM\JoinColumn(name="pilot_id", referencedColumnName="id", onDelete="CASCADE", nullable=true)
     */
    protected $pilot;

    /**
     * @ORM\ManyToOne(targetEntity="Msports\EventBundle\Entity\Championship", inversedBy="classements")
     * @ORM\JoinColumn(name="champ_id", referencedColumnName="id", onDelete="CASCADE", nullable=true)
     */
    protected $champ;

    /**
     * @ORM\ManyToOne(targetEntity="Msports\EventBundle\Entity\Course", inversedBy="classements")
     * @ORM\JoinColumn(name="course_id", referencedColumnName="id", onDelete="CASCADE", nullable=true)
     */
    protected $course;

    public function __construct()
    {
        $this->times= new ArrayCollection();
    }

    /**
     * @param mixed $id
     */
    public function setId($id)
    {
        $this->id = $id;

        return $this;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @return mixed
     */
    public function getPoints()
    {
        return $this->points;
    }

    /**
     * @param mixed $points
     */
    public function setPoints($points)
    {
        $this->points = $points;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getTours()
    {
        return $this->tours;
    }

    /**
     * @param mixed $points
     */
    public function setTours($points)
    {
        $this->tours = $points;
        return $this;
    }

    /**
     * @param mixed $points
     */
    public function setRank($rank)
    {
        $this->rank = $rank;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getRank()
    {
        return $this->rank;
    }

    public function getName()
    {
        return $this->name;
    }

    /**
    * @ORM\PreUpdate
    * @ORM\PrePersist
    */
    public function updateEntity()
    {
        $nam = "Classement ";
        $nam = $nam.$this->getPilot().' ';
        if ($this->getCourse())
            $nam = $nam.$this->getCourse();
        else
            $nam = $nam.$this->getChamp();
        $this->name = $nam;
    }

    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * @return mixed
     */
    public function getPilot()
    {
        return $this->pilot;
    }

    /**
     * @param mixed $parent
     */
    public function setPilot(Pilot $pilot=null)
    {
        $this->pilot = $pilot;

        return $this;
    }

    /**
     * @return mixed
     */
    public function getChamp()
    {
        return $this->champ;
    }

    /**
     * @param mixed $parent
     */
    public function setChamp(Championship $pilot=null)
    {
        $this->champ = $pilot;

        return $this;
    }

    /**
     * @return mixed
     */
    public function getCourse()
    {
        return $this->course;
    }

    /**
     * @param mixed $parent
     */
    public function setCourse(Course $pilot=null)
    {
        $this->course = $pilot;

        return $this;
    }

    public function __toString()
    {
        return $this->getName()."";
    }

    /**
     * @return mixed
     */
    public function getTimes()
    {
        return $this->times;
    }

    /**
     * @param mixed $comments
     */
    public function setTimes($times)
    {
        $this->times = $times;

        return $this;
    }

    public function addTime(Chrono $time)
    {
        if(!$this->times->contains($time))
        {
            $time->setClassement($this);
            $this->times->add($time);
        }
    }

    public function removeTime(Chrono $time)
    {
        if($this->times->contains($time))
        {
            $time->setClassement(null);
            $this->times->removeElement($time);
        }
    }

}


text:
package org.hillview.test.dataStructures;

import org.hillview.table.ColumnDescription;
import org.hillview.table.api.*;
import org.hillview.table.columns.DoubleArrayColumn;
import org.hillview.table.Table;
import org.hillview.test.BaseTest;
import org.hillview.utils.BlasConversions;
import org.hillview.utils.TestTables;
import org.jblas.DoubleMatrix;
import org.junit.Assert;
import org.junit.Test;

import java.util.*;

public class MatrixTest extends BaseTest {
    @Test
    public void testSimpleMatrix() {
        // Setting elements
        DoubleMatrix mat = new DoubleMatrix(2, 2);
        mat.put(0, 0, 2.3);
        mat.put(1, 0, 42.42);
        mat.put(0, 1, 3.14);
        mat.put(1, 1, 3.91992);
        Assert.assertEquals(mat.get(0, 0), 2.3, Math.ulp(2.3));
        Assert.assertEquals(mat.get(1, 0), 42.42, Math.ulp(42.42));
        Assert.assertEquals(mat.get(0, 1), 3.14, Math.ulp(3.14));
        Assert.assertEquals(mat.get(1, 1), 3.91992, Math.ulp(3.91992));

        // Matrix multiplied with its transpose should be symmetric.
        DoubleMatrix symMat = mat.mmul(mat.transpose());
        for (int i = 0; i < symMat.rows; i++) {
            for (int j = 0; j < symMat.columns; j++) {
                Assert.assertEquals(symMat.get(i, j), symMat.get(j, i), Math.ulp(symMat.get(i, j)));
            }
        }
    }

    @Test
    public void testMatrixFetch() {
        ITable table = TestTables.getIntTable(100, 3);
        List<String> colNames = new ArrayList<String>(2);
        colNames.add("Column0");
        colNames.add("Column1");

        DoubleMatrix mat = BlasConversions.toDoubleMatrix(table, colNames);
        IRowIterator it = table.getRowIterator();
        int row = it.getNextRow();
        int i = 0;
        List<IColumn> cols = table.getLoadedColumns(colNames);

        while (row >= 0) {
            for (int j = 0; j < colNames.size(); j++) {
                Assert.assertEquals(
                        mat.get(i, j),
                        cols.get(j).asDouble(row),
                        Math.ulp(mat.get(i, j))
                );
            }
            row = it.getNextRow();
            i++;
        }
        Assert.assertEquals(i, mat.rows);
    }

    @Test
    public void testMissingConversion() {
        int numCols = 5;
        int[] missing = {3, 5, 12, 20, 0};
        int numRows = 30;

        List<IColumn> columns = new ArrayList<IColumn>();
        for (int i = 0; i < numCols; i++) {
            ColumnDescription description = new ColumnDescription("Column" + i, ContentsKind.Double);
            DoubleArrayColumn column = new DoubleArrayColumn(description, numRows);
            for (int j = 0; j < missing[i]; j++) {
                column.setMissing(j);
            }
            columns.add(column);
        }

        ITable table = new Table(columns, null, null);
        List<String> colNames = table.getSchema().getColumnNames();
        DoubleMatrix mat = BlasConversions.toDoubleMatrix(table, colNames);
        DoubleMatrix missingCount = mat.isNaN().columnSums();
        for (int i = 0; i < numCols; i++) {
            Assert.assertEquals(missing[i], Math.round(missingCount.get(i)));
        }
    }
}


text:
using System;
using System.Collections.Generic;

namespace Mantle.Messaging
{
    public class CompositePublisherClient : IPublisherClient
    {
        private readonly List<IPublisherClient> publisherClients;

        public CompositePublisherClient(CompositePublisherEndpoint endpoint)
        {
            if (endpoint == null)
                throw new ArgumentNullException("endpoint");

            endpoint.Validate();

            publisherClients = new List<IPublisherClient>();

            foreach (string endpointKey in endpoint.ChildEndpoints.Keys)
                publisherClients.Add(endpoint.ChildEndpoints[endpointKey].GetClient());
        }

        public void Publish<T>(T message)
        {
            foreach (IPublisherClient publisherClient in publisherClients)
                publisherClient.Publish(message);
        }
    }
}


text:
<?php
/**
 * Created by PhpStorm.
 * User: mirel
 * Date: 07.07.2017
 * Time: 14:21
 */

namespace mpf\helpers;

use mpf\base\AdvancedMethodCallTrait;
use mpf\base\LogAwareObject;

/**
 * Class OpenGraph
 * @package mpf\helpers
 *
 * @method setTitle($title)
 * @method setType($type)
 * @method setUrl($url)
 * @method setDescription($description)
 * @method setDeterminer($word)
 * @method setLocale($locale)
 */
class OpenGraph extends LogAwareObject
{
    use AdvancedMethodCallTrait;

    protected $objectSettings = [];

    public function __set($name, $value)
    {
        if (is_array($value) && method_exists($this, 'set' . ucfirst($name))) {
            $this->callMethod('set' . ucfirst($name), $value);
        } else {
            $this->objectSettings[$name] = $value;
        }
    }

    /**
     * @param string $name
     * @param string[] $arguments
     * @return $this
     */
    public function __call($name, $arguments)
    {
        if ('set' == substr($name, 0, 3)) {
            $name = lcfirst(substr($name, 3));
        }
        $this->objectSettings[$name] = $arguments[0];
        return $this;
    }

    /**
     * @param string $url
     * @param string $secureURL
     * @param string $type
     * @param string $width
     * @param string $height
     * @param string[] $others
     * @return $this
     */
    public function setImage($url, $secureURL = null, $type = null, $width = null, $height = null, $others = [])
    {
        $this->objectSettings['image'] = $url;

        if ($secureURL)
            $this->objectSettings['image:secure_url'] = $secureURL;

        if ($type)
            $this->objectSettings['image:type'] = $type;

        if ($width)
            $this->objectSettings['image:width'] = $width;

        if ($height)
            $this->objectSettings['image:height'] = $height;

        foreach ($others as $k => $v) {
            $this->objectSettings['image:' . $k] = $v;
        }

        return $this;
    }

    /**
     * @param string $url
     * @param string $secureURL
     * @param string $type
     * @param string[] $others
     * @return $this
     */
    public function setAudio($url, $secureURL = null, $type = null, $others = [])
    {
        $this->objectSettings['audio'] = $url;

        if ($secureURL)
            $this->objectSettings['audio:secure_url'] = $secureURL;

        if ($type)
            $this->objectSettings['audio:type'] = $type;

        foreach ($others as $k => $v) {
            $this->objectSettings['audio:' . $k] = $v;
        }

        return $this;
    }

    /**
     * @param string $url
     * @param string $secureURL
     * @param string $type
     * @param string $width
     * @param string $height
     * @param string[] $others
     * @return $this
     */
    public function setVideo($url, $secureURL = null, $type = null, $width = null, $height = null, $others = [])
    {
        $this->objectSettings['video'] = $url;

        if ($secureURL)
            $this->objectSettings['video:secure_url'] = $secureURL;

        if ($type)
            $this->objectSettings['video:type'] = $type;

        if ($width)
            $this->objectSettings['video:width'] = $width;

        if ($height)
            $this->objectSettings['video:height'] = $height;

        foreach ($others as $k => $v) {
            $this->objectSettings['video:' . $k] = $v;
        }

        return $this;
    }

    /**
     * @param string[] $list
     * @return $this
     */
    public function setLocalesAlternate($list)
    {
        $this->objectSettings['locale:alternate'] = $list;
        return $this;
    }

    /**
     * @param string $name
     * @return $this
     */
    public function setSiteName($name)
    {
        $this->objectSettings['site_name'] = $name;
        return $this;
    }

    public function setArticle($publishedTime = null, $modifiedTime = null, $expirationTime = null, $author = null, $section = null, $tag = null)
    {

        return $this;
    }

    /**
     * @param null $author
     * @param null $isbn
     * @param null $releaseDate
     * @param null $tag
     * @return $this
     */
    public function setBook($author = null, $isbn = null, $releaseDate = null, $tag = null)
    {
        if ($author)
            $this->objectSettings['book:author'] = $author;
        if ($isbn)
            $this->objectSettings['book:isbn'] = $isbn;
        if ($releaseDate)
            $this->objectSettings['book:release_date'] = $releaseDate;
        if ($tag)
            $this->objectSettings['book:tag'] = $tag;
        return $this;
    }

    /**
     * @param null $firstName
     * @param null $lastName
     * @param null $username
     * @param null $gender
     * @return $this
     */
    public function setProfile($firstName = null, $lastName = null, $username = null, $gender = null)
    {
        if ($firstName)
            $this->objectSettings['profile:first_name'] = $firstName;
        if ($lastName)
            $this->objectSettings['profile:last_name'] = $firstName;
        if ($username)
            $this->objectSettings['profile:username'] = $firstName;
        if ($gender)
            $this->objectSettings['profile:gender'] = $firstName;
        return $this;
    }

    /**
     * Display in header the entire metadata;
     * @return string
     */
    public function display()
    {
        $headers = []; //
        foreach ($this->objectSettings as $k => $v) {
            $headers[] = "<meta property=\"og:$k\" content=\"$v\" />";
        }

        return implode("\n", $headers);
    }

    protected function applyParamsToClass()
    {
        return false;
    }
}


text:
sharedmock package
==================

Subpackages
-----------

.. toctree::

    sharedmock.test

Submodules
----------

sharedmock\.asserters module
----------------------------

.. automodule:: sharedmock.asserters
    :members:
    :undoc-members:
    :show-inheritance:

sharedmock\.mock module
-----------------------

.. automodule:: sharedmock.mock
    :members:
    :undoc-members:
    :show-inheritance:

Module contents
---------------

.. automodule:: sharedmock
    :members:
    :undoc-members:
    :show-inheritance: