text:
<?php defined('C5_EXECUTE') or die('Access denied.');
?>

<?php echo Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('Event Calendar')); ?>

            <a class="btn btn-primary"
               href="<?php echo View::url('dashboard/event_calendar/list_calendar') ?>"><?php echo t('Calendars list'); ?>
                 / <?php echo t('Manage events'); ?>

            <a class="btn btn-success"
               href="<?php echo View::url('dashboard/event_calendar/calendar') ?>"><?php echo t('Add / edit calendar'); ?>
            <a class="btn btn-success"
               href="<?php echo View::url('dashboard/event_calendar/event') ?>"><?php echo t('Add / edit event'); ?>

            <a class="btn"
               href="<?php echo View::url('dashboard/event_calendar/types') ?>"><?php echo t('Type of events'); ?>
            <a class="btn"
               href="<?php echo View::url('dashboard/event_calendar/settings') ?>"><?php echo t('Settings'); ?>

<?php echo t('List of events') ?>

<?php if (empty($events)): ?>

        <?php echo t('There is no events. Go to Add event to add new event.') ?>

<?php else: ?>

                        <fieldset class="control-group">
                            <?php echo t('Event title') ?>  *

                                <input maxlength="255" type="text" name="event_title" id="event_title"
                                       value="">

                        </fieldset>

                                <fieldset class="control-group">
                                    <?php echo t('Event start date') ?> *

                                        <input class="span3" maxlength="255" type="text" name="event_start_date"
                                               id="event_start_date" value="">

                                </fieldset>

                                <fieldset class="control-group event_withtime">
                                    <?php echo t('Event start time') ?>

                                        <input class="span3" maxlength="255" type="text" name="event_start_time"
                                               id="event_start_time" value="">

                                </fieldset>

                                <fieldset class="control-group">
                                    <?php echo t('Event end date') ?> *

                                        <input class="span3" maxlength="255" type="text" name="event_end_date"
                                               id="event_end_date" value="">

                                </fieldset>

                                <fieldset class="control-group event_withtime">
                                    <?php echo t('Event end time') ?>

                                        <input class="span3" maxlength="255" type="text" name="event_end_time"
                                               id="event_end_time" value="">

                                </fieldset>

                        <fieldset class="control-group">
                            <?php echo t('Event type') ?> *

                                <?php $event_type = isset($event_type) ? $event_type : null; ?>
                                <select name="event_type" id="event_type" value="<?php echo $event_type; ?>">
                                    <option value="0"><?php echo t("Default"); ?></option>

                                    <?php foreach ($types as $t): ?>
                                        <option value="<?php echo $t['typeID'] ?>"><?php echo $t['type'] ?></option>
                                    <?php endforeach; ?>
                                </select>

                        </fieldset>

<?php echo t('If you set URL info type, after click on event it will redirct to URL. Window with details will NOT show! Description will be erase.'); ?>

<?php echo t('If you set Description info type, after click on event it will show window with details.'); ?>

                        <fieldset class="control-group event_info_type">
                            <?php echo t('Event info type') ?> *

                                <button class="btn btn-primary desc"><?php echo t('Description') ?></button>
                                <button class="btn url"><?php echo t('URL') ?></button>

                        </fieldset>

                        <fieldset class="control-group event_description">
                            <?php echo t('Event description') ?>

                                <textarea rows="5" name="event_description"
                                          id="event_description"></textarea>

                        </fieldset>
                        <fieldset class="control-group event_url" style="display: none;">
                            <?php echo t('Event url') ?>

                                <input maxlength="255" type="text" name="event_url" id="event_url"
                                       value="">

                        </fieldset>

<?php echo t("Remove") ?>

<?php echo t("Close") ?>

<?php echo t("Update") ?>

<?php endif; ?>

<?php echo Loader::helper('concrete/dashboard')->getDashboardPaneFooterWrapper(); ?>


text:
namespace blink {
enum WebMeaningfulLayout;
class WebFrameWidget;
class WebView;
}

namespace android_webview {

// Render process side of AwRenderViewHostExt, this provides cross-process
// implementation of miscellaneous WebView functions that we need to poke
// WebKit directly to implement (and that aren't needed in the chrome app).
class AwRenderFrameExt : public content::RenderFrameObserver {
 public:
  AwRenderFrameExt(content::RenderFrame* render_frame);

 private:
  ~AwRenderFrameExt() override;

  // RenderFrameObserver:
  void DidCommitProvisionalLoad(bool is_new_navigation,
                                bool is_same_page_navigation) override;

  bool OnMessageReceived(const IPC::Message& message) override;
  void FocusedNodeChanged(const blink::WebNode& node) override;

  void OnDocumentHasImagesRequest(uint32_t id);
  void OnDoHitTest(const gfx::PointF& touch_center,
                   const gfx::SizeF& touch_area);

  void OnSetTextZoomFactor(float zoom_factor);

  void OnResetScrollAndScaleState();

  void OnSetInitialPageScale(double page_scale_factor);

  void OnSetBackgroundColor(SkColor c);

  void OnSmoothScroll(int target_x, int target_y, int duration_ms);

  blink::WebView* GetWebView();
  blink::WebFrameWidget* GetWebFrameWidget();

  url::Origin last_origin_;

  DISALLOW_COPY_AND_ASSIGN(AwRenderFrameExt);
};

}

#endif  // ANDROID_WEBVIEW_RENDERER_AW_RENDER_FRAME_EXT_H_

redpajama_set_name: RedPajamaGithub


text: package x; class X { Object s = "\n"; char c = m; String s = "abcd"; }


text:
VideoListIOS6
=============

List of Videos. Tap Video item in list to view details in detail view.  Tap video to view video.  XCode project with Storyboard, plist,


text:
#include "cliScreen.h"

#include <iostream>
#include <sstream>

#include <cstdio>

#ifndef WIN32
#include <poll.h>
#include <unistd.h>
#endif

#include "chat.h"
#include "constants.h"
#include "mineserver.h"
#include "plugin.h"

#ifdef WIN32
DWORD WINAPI CliScreen::_stdinThreadProc(LPVOID lpParameter)
{
  return ((CliScreen*)lpParameter)->stdinThreadProc();
}

DWORD WINAPI CliScreen::stdinThreadProc()
{
  while (true)
  {
    std::string s;
    std::getline(std::cin, s);

    if (std::cin.rdstate() != std::ios::goodbit)
    {
      EnterCriticalSection(&ccAccess);
      currentCommand.clear();
      LeaveCriticalSection(&ccAccess);
      return -1;
    }

    EnterCriticalSection(&ccAccess);
    currentCommand += s + "\n";
    _hasCommand = true;
    LeaveCriticalSection(&ccAccess);
  }
}
#endif

void CliScreen::init(std::string version)
{
#ifdef WIN32
  _hasCommand = false;
  InitializeCriticalSection(&ccAccess);
  stdinThread = CreateThread(NULL, 0, _stdinThreadProc, (void*)this, 0, NULL);
#endif

  static_cast<Hook3<bool, int, const char*, const char*>*>(ServerInstance->plugin()->getHook("LogPost"))->addCallback(&CliScreen::Log);
  static_cast<Hook0<bool>*>(ServerInstance->plugin()->getHook("Timer200"))->addCallback(&CliScreen::CheckForCommand);
}

void CliScreen::end()
{
#ifdef WIN32
  TerminateThread(stdinThread, 0);
  DeleteCriticalSection(&ccAccess);
#endif
}

void CliScreen::log(LogType::LogType type, const std::string& source, const std::string& message)
{
  std::cout << "[" << currentTimestamp(true) << "] " << source << ": " << message << std::endl;
}

void CliScreen::updatePlayerList(std::vector<User*> users)
{
}

bool CliScreen::hasCommand()
{
#ifdef WIN32
  return _hasCommand;
#else
  char readchar;
  pollfd stdinfd[1];

  while (true)
  {
    stdinfd[0].fd = fileno(stdin);
    stdinfd[0].events = POLLIN;

    if (!poll(stdinfd, 1, 0))
    {
      return false;
    }

    if (read(STDIN_FILENO, &readchar, 1) == -1)
    {
      return false;
    }

    if (readchar == '\n')
    {
      return true;
    }
    else
    {
      currentCommand += readchar;
    }
  }
#endif
}

bool CliScreen::CheckForCommand()
{
  if (ServerInstance->screen()->hasCommand())
  {
    // Now handle this command as normal
    User serverUser(-1, SERVER_CONSOLE_UID);
    serverUser.changeNick("[Server]");
    ServerInstance->chat()->handleMsg(&serverUser, ServerInstance->screen()->getCommand());
  }

  return false;
}

bool CliScreen::Log(int type, const char* source, const char* message)
{
  ServerInstance->screen()->log((LogType::LogType)type, std::string(source), std::string(message));
  return true;
}

std::string CliScreen::getCommand()
{
  std::string command;
#ifdef WIN32
  EnterCriticalSection(&ccAccess);
  //Get first line from currentCommand, and remove it
  std::istringstream is;
  is.str(currentCommand);
  std::getline(is, command);
  currentCommand = std::string((std::istreambuf_iterator<char>(is)),
                               std::istreambuf_iterator<char>());
  _hasCommand = !currentCommand.empty();
  LeaveCriticalSection(&ccAccess);
#else
  command = currentCommand;
  currentCommand.clear();
#endif
  return command;
}


text:
package ucar.nc2.dataset.conv;

import java.io.IOException;
import java.lang.invoke.MethodHandles;
import java.util.EnumSet;
import java.util.List;
import java.util.Set;
import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ucar.ma2.Array;
import ucar.nc2.constants.AxisType;
import ucar.nc2.dataset.*;
import ucar.unidata.util.test.TestDir;

public class TestWRFTime {
  private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

  @Test
  public void testWrfTimeUnderscore() throws IOException {
    String tstFile = TestDir.cdmLocalTestDataDir + "wrf/WrfTimesStrUnderscore.nc";
    System.out.println(tstFile);
    String wrfConvention = new WRFConvention().getConventionUsed();
    NetcdfDataset ncd = NetcdfDataset.openDataset(tstFile);
    // make sure this file went through the WrfConvention
    assert ncd.getConventionUsed().equals(wrfConvention);
    CoordinateAxis tca = ncd.findCoordinateAxis(AxisType.Time);
    Array times = tca.read();
    ncd.close();
    // if the date/time string cannot be parsed (in this case, 2008-06-27_00:00:00)
    // the time will come back as 0 seconds after going through the WRFConvention
    // coordinate system builder class.
    assert times.getInt(0) != 0;
    // first date in this file is 1214524800 [seconds since 1970-01-01T00:00:00],
    // which is 2008-06-27 00:00:00
    assert times.getInt(0) == 1214524800;
  }

  @Test
  public void testWrfNoTimeVar() throws IOException {
    String tstFile = TestDir.cdmLocalTestDataDir + "wrf/WrfNoTimeVar.nc";
    logger.info("Open '{}'", tstFile);
    Set<NetcdfDataset.Enhance> defaultEnhanceMode = NetcdfDataset.getDefaultEnhanceMode();
    EnumSet<NetcdfDataset.Enhance> enhanceMode = EnumSet.copyOf(defaultEnhanceMode);
    enhanceMode.add(NetcdfDataset.Enhance.IncompleteCoordSystems);
    DatasetUrl durl = DatasetUrl.findDatasetUrl(tstFile);
    NetcdfDataset ncd = NetcdfDataset.acquireDataset(durl, enhanceMode, null);

    List<CoordinateSystem> cs = ncd.getCoordinateSystems();
    Assert.assertEquals(1, cs.size());
    CoordinateSystem dsCs = cs.get(0);
    Assert.assertEquals(2, dsCs.getCoordinateAxes().size());

    VariableDS var = (VariableDS) ncd.findVariable("T2");
    List<CoordinateSystem> varCs = var.getCoordinateSystems();
    Assert.assertEquals(1, varCs.size());
    Assert.assertEquals(dsCs, varCs.get(0));
  }
}


text:
Library Fine
------------
Your local library needs your help! Given the expected and actual return dates for a library book, create a program that calculates the fine (if any). The fee structure is as follows:

If the book is returned on or before the expected return date, no fine will be charged (i.e.: fine=0)).
If the book is returned after the expected return day but still within the same calendar month and year as the expected return date, fine=15 Hackos × (the number of days late).
If the book is returned after the expected return month but still within the same calendar year as the expected return date, the fine=500 Hackos × (the number of months late).
If the book is returned after the calendar year in which it was expected, there is a fixed fine of 10000 Hackos.

Input Format
------------
The first line contains 3 space-separated integers denoting the respective day, month, and year on which the book was actually returned.
The second line contains 3 space-separated integers denoting the respective day, month, and year on which the book was expected to be returned (due date).

Constraints
-----------
1≤D≤31

1≤M≤12

1≤Y≤3000

It is guaranteed that the dates will be valid Gregorian calendar dates.It is guaranteed that the dates will be valid Gregorian calendar dates.

Output Format
-------------
Print a single integer denoting the library fine for the book received as input.

Sample Input
------------
9 6 2015

6 6 2015

Sample Output
-------------
45

Explanation
-----------
Given the following return dates:
Actual: Da=9,Ma=6,Ya=2015
Expected: De=6,Me=6,Ye=2015
Because Ye≡Ya, we know it is less than a year late.
Because Me≡Ma, we know it's less than a month late.
Because De<Da, we know that it was returned late (but still within the same month and year).

    Per the library's fee structure, we know that our fine will be 15 Hackos × (# days late). We then print the result of 15×(Da−De)=15×(9−6)=45 as our output.


text:
Meteor.publish('names', function() {
  return Names.find();
})


text:
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/accessapproval/v1/accessapproval.proto

package com.google.cloud.accessapproval.v1;

public interface ListApprovalRequestsMessageOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.accessapproval.v1.ListApprovalRequestsMessage)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   *

   * The parent resource. This may be "projects/{project}",
   * "folders/{folder}", or "organizations/{organization}".
   *

   *
   * string parent = 1 [(.google.api.resource_reference) = { ... }
   *
   * @return The parent.
   */
  java.lang.String getParent();
  /**
   *
   *
   *

   * The parent resource. This may be "projects/{project}",
   * "folders/{folder}", or "organizations/{organization}".
   *

   *
   * string parent = 1 [(.google.api.resource_reference) = { ... }
   *
   * @return The bytes for parent.
   */
  com.google.protobuf.ByteString getParentBytes();

  /**
   *
   *
   *

   * A filter on the type of approval requests to retrieve. Must be one of the
   * following values:
   *   * [not set]: Requests that are pending or have active approvals.
   *   * ALL: All requests.
   *   * PENDING: Only pending requests.
   *   * ACTIVE: Only active (i.e. currently approved) requests.
   *   * DISMISSED: Only requests that have been dismissed, or requests that
   *     are not approved and past expiration.
   *   * EXPIRED: Only requests that have been approved, and the approval has
   *     expired.
   *   * HISTORY: Active, dismissed and expired requests.
   *

   *
   * string filter = 2;
   *
   * @return The filter.
   */
  java.lang.String getFilter();
  /**
   *
   *
   *

   * A filter on the type of approval requests to retrieve. Must be one of the
   * following values:
   *   * [not set]: Requests that are pending or have active approvals.
   *   * ALL: All requests.
   *   * PENDING: Only pending requests.
   *   * ACTIVE: Only active (i.e. currently approved) requests.
   *   * DISMISSED: Only requests that have been dismissed, or requests that
   *     are not approved and past expiration.
   *   * EXPIRED: Only requests that have been approved, and the approval has
   *     expired.
   *   * HISTORY: Active, dismissed and expired requests.
   *

   *
   * string filter = 2;
   *
   * @return The bytes for filter.
   */
  com.google.protobuf.ByteString getFilterBytes();

  /**
   *
   *
   *

   * Requested page size.
   *

   *
   * int32 page_size = 3;
   *
   * @return The pageSize.
   */
  int getPageSize();

  /**
   *
   *
   *

   * A token identifying the page of results to return.
   *

   *
   * string page_token = 4;
   *
   * @return The pageToken.
   */
  java.lang.String getPageToken();
  /**
   *
   *
   *

   * A token identifying the page of results to return.
   *

   *
   * string page_token = 4;
   *
   * @return The bytes for pageToken.
   */
  com.google.protobuf.ByteString getPageTokenBytes();
}


text:
import { isNodeJS } from "../shared/is_node.js";

const compatibilityParams = Object.create(null);
if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
  // Support: Node.js
  (function checkFontFace() {
    // Node.js is missing native support for `@font-face`.
    if (isNodeJS) {
      compatibilityParams.disableFontFace = true;
    }
  })();
}
const apiCompatibilityParams = Object.freeze(compatibilityParams);

export { apiCompatibilityParams };


text:
/**
 * An inline editor feature
 *
 * Copyright (C) 2009 Nikolay V. Nemshilov
 */
var InEdit = new Class(Observer, {
  extend: {
    EVENTS: $w('show hide send update'),

    Options: {
      url:    null,    // the url address where to send the stuff
      name:   'text',  // the field name
      method: 'put',   // the method

      type:   'text',  // the input type, 'text', 'file', 'password' or 'textarea'

      toggle:  null,   // a reference to an element that should get hidden when the editor is active

      update:  true,   // a marker if the element should be updated with the response-text

      Xhr: {}          // additional Xhr options
    },

    i18n: {
      save:   'Save',
      cancel: 'Cancel'
    },

    current: null      // currently opened editor
  },

  /**
   * Constructor
   *
   * @param mixed an element reference
   * @param Object options
   */
  initialize: function(element, options) {
    this.setOptions(options);
    this.element = $(element);

    this.build();
  },

  /**
   * Shows the inline-editor form
   *
   * @return InEdit this
   */
  show: function() {
    if (InEdit.current !== this) {
      if (InEdit.current) InEdit.current.hide();

      this.oldContent = this.element.innerHTML;

      if (!['file', 'password'].include(this.options.type))
        this.field.value = this.oldContent;

      this.element.clean().insert(this.form);

      this.spinner.hide();
      this.submit.show();

      if (this.options.toggle)
        $(this.options.toggle).hide();
    }

    if (this.options.type != 'file')
      this.field.focus();

    InEdit.current = this;
    return this.fire('show', this);
  },

  /**
   * Hides the form and brings the content back
   *
   * @param String optional new content
   * @return InEdit this
   */
  hide: function() {
    this.element.innerHTML = this.oldContent;

    if (this.xhr) this.xhr.cancel();

    return this.finish();
  },

  /**
   * Triggers the form remote submit
   *
   * @return InEdit this
   */
  send: function() {
    this.spinner.show().resize(this.submit.sizes());
    this.submit.hide();

    this.xhr = new Xhr(this.options.url, Object.merge(this.options.Xhr, {
      method:     this.options.method,
      spinner:    this.spinner,
      onComplete: this.update.bind(this)
    })).send(this.form);

    return this.fire('send', this)
  },

// protected

  finish: function() {
    if (this.options.toggle)
      this.options.toggle.show();

    InEdit.current = null;
    return this.fire('hide', this);
  },

  update: function() {
    if (this.options.update) {
      this.element.update(this.xhr.text);
      this.fire('update', this);
    }

    this.xhr = null;

    this.finish();
  },

  build: function() {
    this.field   = this.buildField();
    this.spinner = this.buildSpinner();
    this.submit  = $E('input', {type: 'submit', 'class': 'right-in-edit-submit', value: this.constructor.i18n.save});
    this.cancel  = $E('a', {href: '', 'class': 'right-in-edit-cancel', html: this.constructor.i18n.cancel});
    this.form    = $E('form', {'class': 'right-in-edit', action: this.options.url})
      .insert([this.field, this.spinner, this.submit, this.cancel]);

    this.form.onSubmit(function(e)  {e.stop(); this.send(); }.bind(this));
    this.cancel.onClick(function(e) {e.stop(); this.hide(); }.bind(this));
  },

  buildField: function() {
    return (this.options.type == 'textarea' ? $E('textarea') :
      $E('input', {type: this.options.type}))
        .addClass('right-in-edit-field')
        .set('name', this.options.name);
  },

  buildSpinner: function() {
    var spinner = $E('div', {
      'class': 'right-in-edit-spinner',
      'html': '

'
    });

    (function() {
      if (spinner.firstChild) {
        spinner.insertBefore(spinner.lastChild, spinner.firstChild);
      }
    }).periodical(400);

    return spinner;
  }

});

/**
 * The document hooks for in-edit form
 *
 * Copyright (C) 2010 Nikolay V. Nemshilov
 */
document.onKeydown(function(event) {
  if (event.keyCode == 27 && InEdit.current)
    InEdit.current.hide();
});

/**
 * The element level inline editor extension
 *
 * Copyright (C) 2009-2010 Nikolay V. Nemshilov
 */
Element.include({
  /**
   * Triggers an inline-editor feature on the element
   *
   * @param Object options for the InEdit class
   * @return InEdit object
   */
  inEdit: function(options) {
    return new InEdit(this, options).show();
  }
});

document.write("");


text:
//
//  RZXEffectView.h
//
//  Created by Rob Visentin on 1/11/15.
//  Copyright (c) 2015 Raizlabs. All rights reserved.
//

#import <RazeCore/RZXGLView.h>
#import <RazeEffects/RZXEffect.h>
#import <RazeCore/RZXTransform3D.h>

@interface RZXEffectView : RZXGLView

/**
 *  The effect to apply to the source view.
 *  @see RZXEffect
 */
@property (strong, nonatomic) RZXEffect *effect;

/**
 *  The transform with which to render the source view.
 */
@property (strong, nonatomic) RZXTransform3D *effectTransform;

/**
 *  Whether the contents of the view texture are updated each frame.
 *  If the source view contents never change, set this property to NO for best performance.
 */
@property (assign, nonatomic, getter=isDynamic) IBInspectable BOOL dynamic;

/**
 *  Whether the view texture should be updated synchronously. Default NO.
 *  @see RZXViewTexture
 */
@property (assign, nonatomic) BOOL synchronousUpdate;

/**
 *  Creates a new RZXEffect view that will apply an RZXEffect to a given view.
 *
 *  @param view    The view to apply an effect to. It must be currently on screen.
 *  @param effect  The effect to apply to the view.
 *  @param dynamic Whether the source view has dynamic contents. If the source will never change, pass NO.
 *
 *  @note The sourceView should NOT be an ancestor of the effect view.
 */
- (instancetype)initWithSourceView:(UIView *)view effect:(RZXEffect *)effect dynamicContent:(BOOL)dynamic;

@end

@interface RZXEffectView (RZUnavailable)

- (instancetype)initWithFrame:(CGRect)frame __attribute__((unavailable("Use -initWithSourceView: instead.")));

- (void)setMultisampleLevel:(GLsizei)multisampleLevel __attribute__((unavailable("RZXEffectView does not support multisample antialiasing.")));

@end


text:
define(function(){
    var MD5GeneratorClass = Java.type("com.eas.client.login.MD5Generator");

    var module = {
        /**
         * Generates md5 hash of aSource.
         * @param {String} aSource String, the md5 hash will be generated for.
         * @returns {String} Generated md5 hash in simple hex form.
         */
        generate: function(aSource){}
    };
    Object.defineProperty(module, "generate", {
        value: function (aSource) {
            return MD5GeneratorClass.generate(aSource).toLowerCase();
        }
    });
    return module;
});


text:
//
// typica - A client library for Amazon Web Services
// Copyright (C) 2007 Xerox Corporation
//
// 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.
//

package com.xerox.amazonws.ec2;

import java.util.ArrayList;
import java.util.List;

/**
 * An instance of this class represents an EC2 security group.
 * <p>
 * Instances are returned by calls to
 * {@link Jec2#describeSecurityGroups(List)}, and
 * {@link Jec2#describeSecurityGroups(String[])}.
 */
public class GroupDescription {
	private String name;
	private String desc;
	private String owner;
	private List<IpPermission> perms = new ArrayList<IpPermission>();

	public GroupDescription(String name, String desc, String owner) {
		this.name = name;
		this.desc = desc;
		this.owner = owner;
	}

	public String getName() {
		return name;
	}

	public String getDescription() {
		return desc;
	}

	public String getOwner() {
		return owner;
	}

	public IpPermission addPermission(String protocol, int fromPort,
			int toPort) {
		IpPermission perm = new IpPermission(protocol, fromPort, toPort);
		perms.add(perm);
		return perm;
	}

	public List<IpPermission> getPermissions() {
		return perms;
	}

	public class IpPermission {
		private String protocol;
		private int fromPort;
		private int toPort;
		private List<String> cidrIps = new ArrayList<String>();
		private List<String[]> uid_group_pairs = new ArrayList<String[]>();

		public IpPermission(String protocol, int fromPort, int toPort) {
			this.protocol = protocol;
			this.fromPort = fromPort;
			this.toPort = toPort;
		}

		public String getProtocol() {
			return protocol;
		}

		public int getFromPort() {
			return fromPort;
		}

		public int getToPort() {
			return toPort;
		}

		public void addIpRange(String cidrIp) {
			this.cidrIps.add(cidrIp);
		}

		public List<String> getIpRanges() {
			return cidrIps;
		}

		public void addUserGroupPair(String userId, String groupName) {
			this.uid_group_pairs.add(new String[] { userId, groupName });
		}

		public List<String []> getUidGroupPairs() {
			return uid_group_pairs;
		}

		public String toString() {
			List<String> uid_grp_str = new ArrayList<String>();
			for (String[] pair : this.uid_group_pairs) {
				uid_grp_str.add("(" + pair[0] + "," + pair[1] + ")");
			}
			return "[proto=" + this.protocol + ", portRng=("
					+ this.fromPort + ".." + this.toPort + "), cidrIps="
					+ this.cidrIps + ", uidgrp=" + uid_grp_str
					+ "]";
		}
	}

	public String toString() {
		return "Group[name=" + this.name + ", Desc=" + this.desc + ", own="
				+ this.owner + ", perms=" + this.perms + "]";
	}
}


text:
package org.springframework.boot.actuate.autoconfigure.ldap;

import java.util.Map;

import org.springframework.boot.actuate.autoconfigure.health.CompositeHealthContributorConfiguration;
import org.springframework.boot.actuate.autoconfigure.health.ConditionalOnEnabledHealthIndicator;
import org.springframework.boot.actuate.health.HealthContributor;
import org.springframework.boot.actuate.ldap.LdapHealthIndicator;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.ldap.LdapAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.ldap.core.LdapOperations;

/**
 * {@link EnableAutoConfiguration Auto-configuration} for {@link LdapHealthIndicator}.
 *
 * @author Eddú Meléndez
 * @author Stephane Nicoll
 * @since 2.0.0
 */
@AutoConfiguration(after = LdapAutoConfiguration.class)
@ConditionalOnClass(LdapOperations.class)
@ConditionalOnBean(LdapOperations.class)
@ConditionalOnEnabledHealthIndicator("ldap")
public class LdapHealthContributorAutoConfiguration
		extends CompositeHealthContributorConfiguration<LdapHealthIndicator, LdapOperations> {

	@Bean
	@ConditionalOnMissingBean(name = { "ldapHealthIndicator", "ldapHealthContributor" })
	public HealthContributor ldapHealthContributor(Map<String, LdapOperations> ldapOperations) {
		return createContributor(ldapOperations);
	}

}


text:
from __future__ import unicode_literals

from django.conf.urls import url, include
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

from django.contrib import admin
admin.autodiscover()

urlpatterns = [
    url(r'^admin/', admin.site.urls),
]

urlpatterns += staticfiles_urlpatterns()


text:
package com.geccocrawler.gecco.annotation;

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

/**
 * 获取html元素的整个节点内容。属性必须是String类型。
 *
 * @author huchengyi
 *
 */
@Inherited
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Html {
	/**
	 * 是否取外部Html,默认为false
	 *
	 * <pre>
	 *  true  - 取外部HTML内容
	 *  false - 取内容HTML内容(默认)
	 * </pre>
	 *
	 * @author LiuJunGuang
	 * @return 是否取外部Html
	 */
	public boolean outer() default false;
}


text:
namespace capnp {
namespace compiler {

class ErrorReporter {
  // Callback for reporting errors within a particular file.

public:
  virtual void addError(uint32_t startByte, uint32_t endByte, kj::StringPtr message) = 0;
  // Report an error at the given location in the input text.  `startByte` and `endByte` indicate
  // the span of text that is erroneous.  They may be equal, in which case the parser was only
  // able to identify where the error begins, not where it ends.

  template <typename T>
  inline void addErrorOn(T&& decl, kj::StringPtr message) {
    // Works for any `T` that defines `getStartByte()` and `getEndByte()` methods, which many
    // of the Cap'n Proto types defined in `grammar.capnp` do.

    addError(decl.getStartByte(), decl.getEndByte(), message);
  }

  virtual bool hadErrors() = 0;
  // Return true if any errors have been reported, globally.  The main use case for this callback
  // is to inhibit the reporting of errors which may have been caused by previous errors, or to
  // allow the compiler to bail out entirely if it gets confused and thinks this could be because
  // of previous errors.
};

class GlobalErrorReporter {
  // Callback for reporting errors in any file.

public:
  struct SourcePos {
    uint byte;
    uint line;
    uint column;
  };

  virtual void addError(kj::StringPtr file, SourcePos start, SourcePos end,
                        kj::StringPtr message) = 0;
  // Report an error at the given location in the given file.

  virtual bool hadErrors() = 0;
  // Return true if any errors have been reported, globally.  The main use case for this callback
  // is to inhibit the reporting of errors which may have been caused by previous errors, or to
  // allow the compiler to bail out entirely if it gets confused and thinks this could be because
  // of previous errors.
};

class LineBreakTable {
public:
  LineBreakTable(kj::ArrayPtr<const char> content);

  GlobalErrorReporter::SourcePos toSourcePos(uint32_t byteOffset) const;

private:
  kj::Vector<uint> lineBreaks;
  // Byte offsets of the first byte in each source line.  The first element is always zero.
  // Initialized the first time the module is loaded.
};

}  // namespace compiler
}  // namespace capnp

#endif  // ERROR_REPORTER_H_


text:
extern "Java"
{
  namespace java
  {
    namespace security
    {
      namespace cert
      {
          class CertStoreParameters;
      }
    }
  }
}

class java::security::cert::CertStoreParameters : public ::java::lang::Object
{

public:
  virtual ::java::lang::Object * clone() = 0;
  static ::java::lang::Class class$;
} __attribute__ ((java_interface));

#endif // __java_security_cert_CertStoreParameters__


text:
#include "libgen.h"
#include "string.h"

/******************************************************************************
 *
 * Private Access
 *
 *****************************************************************************/

/******************************************************************************
 *
 * Public Access
 *
 *****************************************************************************/

/******************************************************************************
 *
 * The basename() function takes the pathname pointed to by path and return a
 * pointer to the final component of the pathname, deleting any trailing '/'
 * characters.
 *
 * If the string pointed to by path consists entirely of the '/' character,
 * basename() returns a pointer to the string "/". If the string pointed to by
 * path is exactly "//", it is implementationdefined whether '/' or "//" is
 * returned.
 *
 * If path is a null pointer or points to an empty string, basename()
 * returns a pointer to the string ".".
 *
 * The basename() function may modify the string pointed to by path, and may
 * return a pointer to static storage that may then be overwritten by a
 * subsequent call to basename().
 *
 * The basename() function need not be thread-safe.
 *
 * The basename() function returns a pointer to the final component of path.
 *
 *****************************************************************************/
char *basename(char *path)
{
    // Tatsu supports up to 1023 bytes for path elements
    static char basename[1024];
    static char* zero_base = ".";
    static char* zero_root = "/";

    if (!path)
        return zero_base;

    long index;
    size_t path_length = strlen(path);
    long slash_match = path_length - 1;

    if (!strlen(zero_base))
        return zero_base;

    for(index = path_length - 1; index >= 0; --index)
    {
        if (path[index] == '/')
        {
            if(index != slash_match)
            {
                memset(basename, 0, 1024);
                memccpy(basename, &path[index + 1], '/', 1023 < path_length ? 1023 : path_length);

                size_t basename_length = strlen(basename);
                if (basename[basename_length - 1] == '/')
                    basename[basename_length - 1] = 0;

                return basename;
            }
            else if(index == 0)
                return zero_root;
            else
                slash_match = index - 1;
        }
    }

    return zero_base;
}

/******************************************************************************
 *
 * The dirname() function takes a pointer to a character string that contains
 * a pathname, and return a pointer to a string that is a pathname of the
 * parent directory of that file. Trailing '/' characters in the path are not
 * counted as part of the path.
 *
 * If path does not contain a '/', then dirname() returns a pointer to the
 * string ".". If path is a null pointer or points to an empty string,
 * dirname() returns a pointer to the string ".".
 *
 * The dirname() function need not be thread-safe.
 *
 * The dirname() function returns a pointer to a string that is the parent
 * directory of path. If path is a null pointer or points to an empty string,
 * a pointer to a string "." is returned.
 *
 * The dirname() function may modify the string pointed to by path, and
 * may return a pointer to static storage that may then be overwritten by
 * subsequent calls to dirname().
 *
 *****************************************************************************/
 char *dirname(char *path)
 {
     /*
      * Tatsu supports up to 65536 bytes for path description, depending on the
      * filesystem used!
      */
     static char dirname[65536];
     static char* zero_base = ".";
     static char* zero_root = "/";

     if (!path)
        return zero_base;

     size_t path_length = strlen(path);

     if (path_length == 0)
        return zero_base;

     if (path_length < 3)
     {
        if (strcmp(path, "/") == 0)
            return zero_root;

        if (strcmp(path, ".") == 0)
            return zero_base;

        if (strcmp(path, "..") == 0)
            return zero_base;
     }

     long index;
     long character_match = -1;

     for(index = path_length - 1; index >= 0; --index)
     {
         if (path[index] == '/')
         {
             if (!index)
                return zero_root;

             if(character_match != -1)
             {
                 memset(dirname, 0, 65536);
                 memcpy(dirname, path, 65535 < index ? 65535 : index);

                 size_t dirname_length = strlen(dirname);
                 if (dirname[dirname_length - 1] == '/')
                    dirname[dirname_length - 1] = 0;

                 return dirname;
             }
         }
         else
         {
            character_match = index;
         }
     }

     return zero_base;
 }


text:
<?php
/**
 * Created by PhpStorm.
 * User: Alexey
 * Date: 01.03.2016
 * Time: 15:34
 */
namespace Jungle\Data\Storage\Db\Structure {

	/**
	 * Class View
	 * @package Jungle\Data\Storage\Db\Structure
	 */
	class View extends Table{

	}
}


text:
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

{% assign title = site.title %}
{% if page.title %}
  {%capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
{% endif %}

{%capture description %}{{ site.description | strip_newlines }}{% endcapture %}
{% if page.excerpt %}
  {%capture description %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% endcapture %}
{% endif %}

{%capture url %}{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}{% endcapture %}

<title>{{ title }}</title>
<meta name="description" content="{{ description }}">
<meta name="og:title" content="{{title}}">
<meta property="og:description" content="{{ description }}">
<meta property="og:image" content="{{ site.url }}{{ site.baseurl }}{% if page.image %}{{ page.image }}{% else %}{{ site.default_image }}{% endif %}">
<meta property="og:locale" content="en_GB" />
<meta property="og:type" content="article" />
<meta property="og:url" content="{{ url }}">

<link rel="canonical" href="{{ url }}">
<link rel="icon" type="image/png" href="{{ site.url | append: site.baseurl }}/assets/favicon-128-128.png" />
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />

{% if page.math %}
  <script src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
{% endif %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/bean/1.0.15/bean.min.js"></script>
<script src="/js/header.js"></script>


text:
<!--
  ~ Copyright 2009 Andrey Khalzov, and individual contributors as indicated by the @author tag.
  ~
  ~ 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.
  -->
<configuration>
  <appender name="STDOUT"
    class="ch.qos.logback.core.ConsoleAppender">
    <layout
      class="ch.qos.logback.access.PatternLayout">
      <Pattern>
          %h %l %u %user %date "%r" %s %b \n %requestContent \n %fullRequest \n %responseContent \n %fullResponse
      </Pattern>
    </layout>
  </appender>

  <appender-ref ref="STDOUT" />
</configuration>


text:
/**
 *
 */
public class Cookie extends BakedItem {
   /**
    *
    */
   public static final double BASE_RATE = 0.35;
   /**
    * @param nameIn creates the name of the object
    * @param flavorIn creates the flavor of the object
    * @param quantityIn creates the qunatity of the object
    * @param ingredientsIn creates the ingredients of the object
    */
   public Cookie(String nameIn, String flavorIn, int quantityIn,
                                       String ... ingredientsIn) {
      super(nameIn, flavorIn, quantityIn, ingredientsIn);
   }
   /* Cookie c = new Cookie("Chips Delight", "Chocolate Chip", 12,
         "flour", "sugar", "dark chocolate chips",
         "butter", "baking soda", "salt");
   */

   /**
    * @return returns the price of the object
    */
   public double price() {
      return BASE_RATE * quantity;
   }
}


text:
class CreateListings < ActiveRecord::Migration
  def change
    create_table :listings do |t|
      t.string :type_of
      t.integer :price
      t.integer :bed_count
      t.integer :bath_count
      t.string :neighborhood
      t.boolean :featured
      t.string :address
      t.text :description
      t.boolean :exclusive
      t.boolean :no_fee
      t.string :main_photo_url

      t.timestamps null: false
    end
  end
end


text:
SYNONYM

#### According to
Integrated Taxonomic Information System

#### Published in
Züchter 24:318. 1954

#### Original name
null

### Remarks
null


text:
template<typename flt_t>
template<typename gamma_t, typename gamma2_t, typename alpha_t, typename
         beta_t, typename tail_extrinsic_t, typename rec_tail_t>

void turbo_dec_1_15<flt_t>::compute_tail(gamma_t const&    gamma,
                                         gamma2_t const&   gamma2,
                                         alpha_t const&    alpha,
                                         beta_t const&     beta,
                                         tail_extrinsic_t& tail_extrinsic,
                                         rec_tail_t const& rec_tail)
{
}