text:
module Data.DotNet.TimeSpan.Internal where

--------------------------------------------------------------------------------
import Data.Int
import Data.Monoid
import Prelude

--------------------------------------------------------------------------------
-- | .NET TimeSpan: Represents a time interval.
newtype TimeSpan = TimeSpan Int64 deriving (Eq, Ord)

--------------------------------------------------------------------------------
instance Show TimeSpan where
    show = timeSpanString

--------------------------------------------------------------------------------
millisPerSecond :: Int64
millisPerSecond = 1000

--------------------------------------------------------------------------------
millisPerMinute :: Int64
millisPerMinute = millisPerSecond * 60

--------------------------------------------------------------------------------
millisPerHour :: Int64
millisPerHour = millisPerMinute * 60

--------------------------------------------------------------------------------
millisPerDay :: Int64
millisPerDay = millisPerHour * 24

--------------------------------------------------------------------------------
ticksPerMillisecond :: Int64
ticksPerMillisecond = 10000

--------------------------------------------------------------------------------
ticksPerSecond :: Int64
ticksPerSecond = ticksPerMillisecond * 1000

--------------------------------------------------------------------------------
ticksPerMinute :: Int64
ticksPerMinute = ticksPerSecond * 60

--------------------------------------------------------------------------------
ticksPerHour :: Int64
ticksPerHour = ticksPerMinute * 60

--------------------------------------------------------------------------------
ticksPerDay :: Int64
ticksPerDay = ticksPerHour * 24

--------------------------------------------------------------------------------
daysPerTick :: Double
daysPerTick = 1 / (realToFrac ticksPerDay)

--------------------------------------------------------------------------------
hoursPerTick :: Double
hoursPerTick = 1 / (realToFrac ticksPerHour)

--------------------------------------------------------------------------------
minutesPerTick :: Double
minutesPerTick = 1 / (realToFrac ticksPerMinute)

--------------------------------------------------------------------------------
secondsPerTick :: Double
secondsPerTick = 1 / (realToFrac ticksPerSecond)

--------------------------------------------------------------------------------
millisPerTick :: Double
millisPerTick = 1 / (realToFrac ticksPerMillisecond)

--------------------------------------------------------------------------------
maxMillis :: Int64
maxMillis =
    truncate
    (((realToFrac (maxBound :: Int64) :: Double)
      / realToFrac ticksPerMillisecond) :: Double)

--------------------------------------------------------------------------------
minMillis :: Int64
minMillis =
    truncate
    (((realToFrac (minBound :: Int64) :: Double)
      / realToFrac ticksPerMillisecond) :: Double)

--------------------------------------------------------------------------------
-- | Initializes a new instance of the TimeSpan structure to the specified
--   number of ticks.
timeSpanTicks :: Int64 -> TimeSpan
timeSpanTicks = TimeSpan

--------------------------------------------------------------------------------
-- | Initializes a new instance of the TimeSpan structure to a specified number
--   of hours, minutes, and seconds.
timeSpanHoursMinsSecs :: Int64 -> Int64 -> Int64 -> TimeSpan
timeSpanHoursMinsSecs hh mm ss = TimeSpan $ totalSecs * ticksPerSecond
  where
    totalSecs = (hh * 3600) + (mm * 60) + ss

--------------------------------------------------------------------------------
-- | Initializes a new instance of the TimeSpan structure to a specified number
--   of days, hours, minutes, and seconds.
timeSpanDaysHoursMinsSecs :: Int64 -> Int64 -> Int64 -> Int64 -> TimeSpan
timeSpanDaysHoursMinsSecs dd hh mm ss =
    timeSpanDaysHoursMinsSecsMillis dd hh mm ss 0

--------------------------------------------------------------------------------
-- | Initializes a new instance of the TimeSpan structure to a specified number
--   of days, hours, minutes, seconds, and milliseconds.
timeSpanDaysHoursMinsSecsMillis :: Int64
                                -> Int64
                                -> Int64
                                -> Int64
                                -> Int64
                                -> TimeSpan
timeSpanDaysHoursMinsSecsMillis dd hh mm ss ms =
    TimeSpan $ _totalMillis * ticksPerMillisecond
  where
    _totalMillis = ((dd * 3600 * 24) +
                    (hh * 3600)       +
                    (mm * 60)         +
                    ss) * 1000 + ms

--------------------------------------------------------------------------------
-- | Gets the number of ticks that represent the value of the current 'TimeSpan'
--   structure.
ticks :: TimeSpan -> Int64
ticks (TimeSpan i) = i

--------------------------------------------------------------------------------
-- | Gets the days component of the time interval represented by the current
--   'TimeSpan' structure.
days :: TimeSpan -> Int64
days (TimeSpan i) = truncate $ (realToFrac i :: Double) /
                               (realToFrac ticksPerDay)

--------------------------------------------------------------------------------
-- | Gets the hours component of the time interval represented by the current
--   'TimeSpan' structure.
hours :: TimeSpan -> Int64
hours (TimeSpan i) = mod (truncate $
                          (realToFrac i :: Double) /
                          (realToFrac ticksPerHour)) 24

--------------------------------------------------------------------------------
-- | Gets the minutes component of the time interval represented by the current
--   'TimeSpan' structure.
minutes :: TimeSpan -> Int64
minutes (TimeSpan i) = mod (truncate $
                            (realToFrac i :: Double) /
                            (realToFrac ticksPerMinute)) 60

--------------------------------------------------------------------------------
-- | Gets the seconds component of the time interval represented by the current
--   'TimeSpan' structure.
seconds :: TimeSpan -> Int64
seconds (TimeSpan i) = mod (truncate $
                            (realToFrac i :: Double) /
                            (realToFrac ticksPerSecond)) 60

--------------------------------------------------------------------------------
-- | Gets the milliseconds component of the time interval represented by the
--   current 'TimeSpan' structure.
millis :: TimeSpan -> Int64
millis (TimeSpan i) = mod (truncate $
                           (realToFrac i :: Double) /
                           (realToFrac ticksPerMillisecond)) 1000

--------------------------------------------------------------------------------
-- | Returns a 'TimeSpan' that represents a specified number of seconds, where
--   the specification is accurate to the nearest millisecond.
fromSeconds :: Double -> TimeSpan
fromSeconds i = interval i millisPerSecond

--------------------------------------------------------------------------------
-- | Returns a 'TimeSpan' that represents a specified number of minutes, where
--   the specification is accurate to the nearest millisecond.
fromMinutes :: Double -> TimeSpan
fromMinutes i = interval i millisPerMinute

--------------------------------------------------------------------------------
-- | Returns a 'TimeSpan' that represents a specified number of hours, where the
--   specification is accurate to the nearest millisecond.
fromHours :: Double -> TimeSpan
fromHours i = interval i millisPerHour

--------------------------------------------------------------------------------
-- | Returns a 'TimeSpan' that represents a specified number of days, where the
--   specification is accurate to the nearest millisecond.
fromDays :: Double -> TimeSpan
fromDays i = interval i millisPerDay

--------------------------------------------------------------------------------
-- | Gets the value of the current 'TimeSpan' structure expressed in whole and
--   fractional days.
totalDays :: TimeSpan -> Double
totalDays (TimeSpan i) = (realToFrac i) * daysPerTick

--------------------------------------------------------------------------------
-- | Gets the value of the current 'TimeSpan' structure expressed in whole and
--   fractional hours.
totalHours :: TimeSpan -> Double
totalHours (TimeSpan i) = (realToFrac i) * hoursPerTick

--------------------------------------------------------------------------------
-- | Gets the value of the current 'TimeSpan' structure expressed in whole and
--   fractional minutes.
totalMinutes :: TimeSpan -> Double
totalMinutes (TimeSpan i) = (realToFrac i) * minutesPerTick

--------------------------------------------------------------------------------
-- | Gets the value of the current 'TimeSpan' structure expressed in whole and
--   fractional seconds.
totalSeconds :: TimeSpan -> Double
totalSeconds (TimeSpan i) = (realToFrac i) * secondsPerTick

--------------------------------------------------------------------------------
-- | Gets the value of the current 'TimeSpan' structure expressed in whole and
--   fractional milliseconds.
totalMillis :: TimeSpan -> Double
totalMillis (TimeSpan i) =
    let tmp = (realToFrac i) * millisPerTick in
    if tmp > (realToFrac maxMillis) then realToFrac maxMillis
    else if tmp < (realToFrac minMillis) then realToFrac minMillis
         else tmp

--------------------------------------------------------------------------------
data FormatLiteral = Positive | Negative

--------------------------------------------------------------------------------
padded :: Int -> a -> [a] -> [a]
padded n p xs = replicate diff p ++ xs
  where
    len_xs = length xs
    diff   = n - len_xs

--------------------------------------------------------------------------------
timeSpanString :: TimeSpan -> String
timeSpanString (TimeSpan _ticks) =
    start    <>
    genDay   <>
    genHours <>
    genMins  <>
    genSecs  <>
    genFract

  where
    ticksPerHourD   = realToFrac ticksPerHour   :: Double
    ticksPerDayD    = realToFrac ticksPerDay    :: Double
    ticksPerMinuteD = realToFrac ticksPerMinute :: Double
    ticksPerSecondD = realToFrac ticksPerSecond :: Double

    day :: Int64
    day = truncate $ realToFrac _ticks / ticksPerDayD

    time = _ticks `mod` ticksPerDay

    cday  = if _ticks < 0 then negate day else day
    ctime = if _ticks < 0 then negate time else time

    _hours :: Int64
    _hours = mod (truncate (realToFrac ctime / ticksPerHourD)) 24

    mins :: Int64
    mins = mod (truncate (realToFrac ctime / ticksPerMinuteD)) 60

    secs :: Int64
    secs = mod (truncate (realToFrac ctime / ticksPerSecondD)) 60

    fraction :: Int64
    fraction = ctime `mod` ticksPerSecond

    literal = if _ticks < 0 then Negative else Positive

    start =
        case literal of
            Positive -> ""
            Negative -> "-"

    genDay =
        if cday /= 0
        then show cday <> "."
        else mempty

    genHours = padded 2 '0' (show _hours) <> ":"
    genMins  = padded 2 '0' (show mins)  <> ":"
    genSecs  = padded 2 '0' (show secs)

    genFract =
        if fraction /= 0
        then "." <> padded 7 '0' (show fraction)
        else mempty

--------------------------------------------------------------------------------
interval :: Double -> Int64 -> TimeSpan
interval value scale =
    let tmp     = value * (realToFrac scale)
        _millis = tmp + (if value >= 0 then 0.5 else (-0.5))
        res     = truncate (_millis * (realToFrac ticksPerMillisecond)) in
    TimeSpan res


text:
package org.gradle.internal.enterprise.impl.legacy;

import org.gradle.internal.exceptions.Contextual;

@Contextual
public class UnsupportedBuildScanPluginVersionException extends IllegalStateException {

    UnsupportedBuildScanPluginVersionException(String s) {
        super(s);
    }

}

redpajama_set_name: RedPajamaGithub


text:
'use strict';

/**
 * Module dependencies
 */
var path = require('path'),
  mongoose = require('mongoose'),
  Comment = mongoose.model('Comment'),
  Subject = mongoose.model('Subject'),
  Article = mongoose.model('Article'),
  errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')),
  User = mongoose.model('User'),
  _ = require('lodash'),
  markdown = require('markdown').markdown;

/**
 * Create an comment
 */
exports.create = function (req, res) {
  console.log(req.body);
  var comment = new Comment(req.body);
  var obj = req.body.obj;
  comment.user = req.user;
  comment.content = req.body.content ? markdown.toHTML(req.body.content) : '';
  comment.markdown = req.body.content;

  if (obj === 'articles') {
    comment.articles = req.body.value;
    comment.save(function (err, comment) {
      if (err) {
        return res.status(400).send({
          message: errorHandler.getErrorMessage(err)
        });
      } else {
        res.send(comment);
      }
    });
  } else if (obj === 'subjects') {
    comment.subjects = req.body.value;
    comment.save(function (err, comment) {
      if (err) {
        return res.status(400).send({
          message: errorHandler.getErrorMessage(err)
        });
      } else {
        res.send(comment);
        Subject.findOneAndUpdate({ _id: req.body.value }, { $inc: { pv: 1 }, $push: { comment: comment._id } }, function (err) {
          if (err) {
            console.log(err);
          }
        });
      }
    });
  } else {
    comment.save(function (err) {
      if (err) {
        return res.status(422).send({
          message: errorHandler.getErrorMessage(err)
        });
      } else {
        res.json(comment);
      }
    });
  }
};

/**
 * Show the current comment
 */
exports.read = function (req, res) {
  // convert mongoose document to JSON
  var comment = req.comment ? req.comment.toJSON() : {};

  // Add a custom field to the Comment, for determining if the current User is the "owner".
  // NOTE: This field is NOT persisted to the database, since it doesn't exist in the Comment model.
  comment.isCurrentUserOwner = !!(req.user && comment.user && comment.user._id.toString() === req.user._id.toString());

  res.json(comment);
};

/**
 * Update an comment
 */
exports.update = function (req, res) {
  var comment = req.comment;

  comment.title = req.body.title;
  comment.content = req.body.content;

  comment.save(function (err) {
    if (err) {
      return res.status(422).send({
        message: errorHandler.getErrorMessage(err)
      });
    } else {
      res.json(comment);
    }
  });
};

/**
 * Delete an comment
 */
exports.delete = function (req, res) {
  var comment = req.comment;

  comment.remove(function (err) {
    if (err) {
      return res.status(422).send({
        message: errorHandler.getErrorMessage(err)
      });
    } else {
      res.json(comment);
    }
  });
};

/**
 * List of Comments
 */
exports.list = function (req, res) {
  var obj = req.query.obj;
  if (obj === 'articles') {
    Comment.find({ articles: req.query.value }).sort('created').populate('user', 'nickName profileImageURL created').exec(function (err, comments) {
      if (err) {
        return res.status(400).send({
          message: errorHandler.getErrorMessage(err)
        });
      } else {
        res.jsonp(comments);
      }
    });
  } else if (obj === 'subjects') {
    Comment.find({ subjects: req.query.value }).sort('created').populate('user', 'nickName profileImageURL created').exec(function (err, comments) {
      if (err) {
        return res.status(400).send({
          message: errorHandler.getErrorMessage(err)
        });
      } else {
        res.jsonp(comments);
      }
    });
  } else {
    Comment.find().sort('created').populate('user', 'nickName profileImageURL created').populate('subjects', 'title').populate('articles', 'title').exec(function (err, comments) {
      if (err) {
        console.log(err);
      }
      res.json(comments);
    });
  }
};

/**
 * Count of Comments
 */
exports.count = function(req, res) {
  Comment.count().exec(function (err, comments) {
    if (err) {
      return res.status(400).send({
        message: errorHandler.getErrorMessage(err)
      });
    } else {
      res.json(comments);
    }
  });
};

/**
 *  count of User comments
 */
exports.userCount = function (req, res) {
  Comment.count({ user: req.user._id }, function (err, count) {
    if (err) {
      return res.status(400).send({
        message: errorHandler.getErrorMessage(err)
      });
    } else {
      res.jsonp(count);
    }
  });
};

/**
 * Modify a Comment
 */
exports.modify = function(req, res) {
  var commentObj = req.body;
  Comment.findOneAndUpdate({ _id: commentObj._id }, { subcat: commentObj.subcat, name: commentObj.name, title: commentObj.title, price: commentObj.price }, function (err, comment) {
    if (err) {
      console.log(err);
      return res.status(400).send({
        message: errorHandler.getErrorMessage(err)
      });
    } else {
      res.jsonp(comment);
    }
  });
};

/**
 * Comment middleware
 */
exports.commentByID = function (req, res, next, id) {

  if (!mongoose.Types.ObjectId.isValid(id)) {
    return res.status(400).send({
      message: 'Comment is invalid'
    });
  }

  Comment.findById(id).populate('user', 'displayName').exec(function (err, comment) {
    if (err) {
      return next(err);
    } else if (!comment) {
      return res.status(404).send({
        message: 'No comment with that identifier has been found'
      });
    }
    req.comment = comment;
    next();
  });
};


text:
layout: default
---

    {% for event in site.data.events reversed %}

          {{ event.quando }}
          {{ event.dove }}

{{ event.titolo }}

          {% if event.descrizione %}
{{ event.descrizione }}
{% endif %}

    {% endfor %}
  </ul


text:
gitpath=`git rev-parse --git-dir`
projectpath="$(dirname $gitpath)/"
if test "$projectpath" = './'; then
  projectpath="$(pwd)/"
fi
ln -s -f "$projectpath.githooks/pre-commit" "$gitpath/hooks/pre-commit"


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

<title>schema (Oracle NoSQL Database Examples)</title>
<meta name="date" content="2015-12-03">
<link rel="stylesheet" type="text/css" href="../style.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Oracle NoSQL Database Examples
 version 12cR1.3.5.2

Prev Package

Next Package

Frames

No Frames

All Classes

Package schema

A client application that illustrates basic schema design.

See: Description

Interface Summary

Interface
Description

WriteOperations.LOBStreamListener

For any entity that invokes one of the following methods of the
 WriteOperations utility class, that entity must supply an
 implementation of this interface:

  putLOB
  putLOBIfAbsent
  putLOBIfPresent

 The getInputStream method specified by this interface
 returns an instance of InputStream for the LOB to which the
 desired LOB operation is applied; where the stream that is returned can
 be either a new stream or a reset stream positioned at the first byte of
 the associated LOB.

Class Summary

Class
Description

Bindings

Contains the Avro schemas and bindings used to perform serialization of the
 Value in a kv pair.

InputData

Boring static input data.

KeyDefinition

Defines the use of Keys in this application.

LoginSession

Holds the session duration attribute that is stored as the Value for the "/user/EMAIL/-/login/TIMESTAMP" Key.

LoginSummary

Holds the session summary attributes that are stored as the Value for the "/user/EMAIL/-/login" Key.

RunOperation

Utility class to run a KVStore operation and handle FaultExceptions according to this application's policies.

SchemaExample

A KVStore client application that illustrates basic schema design.

UserImage

Holds the image user attribute that is stored as the Value
 for the "/user/EMAIL/-/image" Key.

UserInfo

Holds the collection of user attributes that is stored as the
 Value for the "/user/EMAIL/-/info" Key.

WriteOperations

Performs write operations and retries the operation when a FaultException occurs in order to handle transient network failures.

Enum Summary

Enum
Description

Gender

Enumeration of Gender values.

Package schema Description

A client application that illustrates basic schema design.
The code can be found in KVHOME/examples/schema/, starting with
the main class SchemaExample.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Oracle NoSQL Database Examples
 version 12cR1.3.5.2

Prev Package

Next Package

Frames

No Frames

All Classes

Copyright (c) 2011, 2015 Oracle and/or its affiliates.  All rights reserved.


text:
import { OUT_OF_BUSINESS } from './action-types'
import { store } from '../../index'

export async function updateOutOfBusiness(isOutOfBusiness) {
	const response = await fetch(
		`/api/pregnancy-centers/${store.getState().resource._id}/out-of-business`,
		{
			method: 'PUT',
			credentials: 'include',
			headers: {
				Accept: 'application/json',
				'Content-Type': 'application/json',
			},
			body: JSON.stringify({ outOfBusiness: !!isOutOfBusiness }),
		},
	)
	const jsonResponse = await response.json()

	store.dispatch(updateOutOfBusinessActionCreator(jsonResponse.outOfBusiness))

	return jsonResponse
}

export function updateOutOfBusinessActionCreator(outOfBusiness) {
	return {
		type: OUT_OF_BUSINESS,
		outOfBusiness,
	}
}


text:
//
//  GTReference.h
//  ObjectiveGitFramework
//
//  Created by Timothy Clem on 3/2/11.
//
//  Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files (the "Software"), to deal
//  in the Software without restriction, including without limitation the rights
//  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//  copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions:
//
//  The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
//
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.
//

#import "GTObject.h"

@class GTOID;
@class GTReflog;
@class GTSignature;

typedef enum {
	GTReferenceErrorCodeInvalidReference = -4,
} GTReferenceErrorCode;

typedef enum {
	GTReferenceTypeInvalid =    GIT_REF_INVALID,  /** Invalid reference */
	GTReferenceTypeOid =        GIT_REF_OID,      /** A reference which points at an object id */
	GTReferenceTypeSymbolic =   GIT_REF_SYMBOLIC, /** A reference which points at another reference */
} GTReferenceType;

@class GTRepository;

/// A git reference object
///
/// References are considered to be equivalent iff both their `name` and
/// `unresolvedTarget` are equal.
@interface GTReference : NSObject

@property (nonatomic, readonly, strong) GTRepository *repository;
@property (nonatomic, readonly) GTReferenceType referenceType;
@property (nonatomic, readonly) const git_oid *git_oid;
@property (nonatomic, strong, readonly) GTOID *OID;

// Whether this is a remote-tracking branch.
@property (nonatomic, readonly, getter = isRemote) BOOL remote;

// The reflog for the reference.
@property (nonatomic, readonly, strong) GTReflog *reflog;

// Convenience initializers
+ (id)referenceByLookingUpReferencedNamed:(NSString *)refName inRepository:(GTRepository *)theRepo error:(NSError **)error;
- (id)initByLookingUpReferenceNamed:(NSString *)refName inRepository:(GTRepository *)theRepo error:(NSError **)error;

+ (id)referenceByResolvingSymbolicReference:(GTReference *)symbolicRef error:(NSError **)error;
- (id)initByResolvingSymbolicReference:(GTReference *)symbolicRef error:(NSError **)error;

- (id)initWithGitReference:(git_reference *)ref repository:(GTRepository *)repository;

// The underlying `git_reference` object.
- (git_reference *)git_reference __attribute__((objc_returns_inner_pointer));

// The target (either GTObject or GTReference) to which the reference points.
@property (nonatomic, readonly, copy) id unresolvedTarget;

// The resolved object to which the reference points.
@property (nonatomic, readonly, copy) id resolvedTarget;

// The last direct reference in a chain
@property (nonatomic, readonly, copy) GTReference *resolvedReference;

// The SHA of the target object
@property (nonatomic, readonly, copy) NSString *targetSHA;

// Updates the on-disk reference to point to the target and returns the updated
// reference.
//
// Note that this does *not* change the receiver's target.
//
// newTarget - The target for the new reference. This must not be nil.
// signature - A signature for the committer updating this ref, used for
//             creating a reflog entry. This may be nil.
// message   - A message to use when creating the reflog entry for this action.
//             This may be nil.
// error     - The error if one occurred.
//
// Returns the updated reference, or nil if an error occurred.
- (GTReference *)referenceByUpdatingTarget:(NSString *)newTarget committer:(GTSignature *)signature message:(NSString *)message error:(NSError **)error;

// The name of the reference.
@property (nonatomic, readonly, copy) NSString *name;

// Updates the on-disk reference to the name and returns the renamed reference.
//
// Note that this does *not* change the receiver's name.
//
// newName - The new name for the reference. Cannot be nil.
// error   - The error if one occurred.
//
// Returns the renamed reference, or nil if an error occurred.
- (GTReference *)referenceByRenaming:(NSString *)newName error:(NSError **)error;

// Delete this reference.
//
// error - The error if one occurred.
//
// Returns whether the deletion was successful.
- (BOOL)deleteWithError:(NSError **)error;

// Resolve this reference as a symbolic ref
//
// error(out) - will be filled if an error occurs
//
// returns the peeled GTReference or nil if an error occurred.
- (GTReference *)resolvedReferenceWithError:(NSError **)error;

// Reload the reference from disk.
//
// error - The error if one occurred.
//
// Returns the reloaded reference, or nil if an error occurred.
- (GTReference *)reloadedReferenceWithError:(NSError **)error;

// An error indicating that the git_reference is no longer valid.
+ (NSError *)invalidReferenceError;

// Checks if a reference name is acceptable.
//
// refName - The name to be checked.
//
// Returns YES if the name is valid or NO otherwise.
+ (BOOL)isValidReferenceName:(NSString *)refName;

@end


text:
#ifndef __HSFFI_H__
#define __HSFFI_H__

typedef unsigned char      hugs_uint8_t;
typedef unsigned short     hugs_uint16_t;
typedef unsigned int       hugs_uint32_t;
typedef signed   char      hugs_int8_t;
typedef signed   short     hugs_int16_t;
typedef signed   int       hugs_int32_t;
# ifdef _MSC_VER
typedef unsigned __int64   hugs_uint64_t;
typedef          __int64   hugs_int64_t;
# else
typedef unsigned long long hugs_uint64_t;
typedef signed   long long hugs_int64_t;
# endif

/*
 * The ifdef Args is a crude way of testing whether this file is
 * #included into Hugs.  Use it to eliminate non-portable stuff.
 */

#ifdef Args /* #included into Hugs */

typedef Int            HsInt;
typedef Int8           HsInt8;
typedef Int16          HsInt16;
typedef Int            HsInt32;
typedef unsigned int   HsWord;
typedef unsigned char  HsWord8;
typedef unsigned short HsWord16;
typedef unsigned int   HsWord32;

#else /* #included into user-provided C code */

typedef int            HsInt;
typedef hugs_int8_t    HsInt8;
typedef hugs_int16_t   HsInt16;
typedef hugs_int32_t   HsInt32;
typedef unsigned int   HsWord;
typedef hugs_uint8_t   HsWord8;
typedef hugs_uint16_t  HsWord16;
typedef hugs_uint32_t  HsWord32;

#endif

/*
 * Here we deviate from the FFI specification:
 * If we make them both float, then there's no way to pass a double
 * to C which means we can't call common C functions like sin.
 */
typedef float          HsFloat;
typedef double         HsDouble;

typedef hugs_int64_t   HsInt64;
typedef hugs_uint64_t  HsWord64;
typedef int            HsChar;
typedef int            HsBool;
typedef void*          HsAddr;
typedef void*          HsPtr;
typedef void           (*HsFunPtr)(void);
typedef void*          HsForeignPtr;
typedef void*          HsStablePtr;

#define HS_CHAR_MIN             0
#define HS_CHAR_MAX             0xFF
#define HS_BOOL_FALSE           0
#define HS_BOOL_TRUE            1
#define HS_BOOL_MIN             HS_BOOL_FALSE
#define HS_BOOL_MAX             HS_BOOL_TRUE
#define HS_INT_MIN              __INT32_MIN
#define HS_INT_MAX              __INT32_MAX
#define HS_INT8_MIN             __INT8_MIN
#define HS_INT8_MAX             __INT8_MAX
#define HS_INT16_MIN            __INT16_MIN
#define HS_INT16_MAX            __INT16_MAX
#define HS_INT32_MIN            __INT32_MIN
#define HS_INT32_MAX            __INT32_MAX
#define HS_INT64_MIN            __INT64_MIN
#define HS_INT64_MAX            __INT64_MAX
#define HS_WORD8_MAX            __UINT8_MAX
#define HS_WORD16_MAX           __UINT16_MAX
#define HS_WORD32_MAX           __UINT32_MAX
#define HS_WORD64_MAX           __UINT64_MAX

#ifndef Args

#include <float.h>

#define HS_FLOAT_RADIX         FLT_RADIX
#define HS_FLOAT_ROUNDS        FLT_ROUNDS
#define HS_FLOAT_EPSILON       FLT_EPSILON
#define HS_FLOAT_DIG           FLT_DIG
#define HS_FLOAT_MANT_DIG      FLT_MANT_DIG
#define HS_FLOAT_MIN           FLT_MIN
#define HS_FLOAT_MIN_EXP       FLT_MIN_EXP
#define HS_FLOAT_MIN_10_EXP    FLT_MIN_10_EXP
#define HS_FLOAT_MAX           FLT_MAX
#define HS_FLOAT_MAX_EXP       FLT_MAX_EXP
#define HS_FLOAT_MAX_10_EXP    FLT_MAX_10_EXP

#define HS_DOUBLE_RADIX         DBL_RADIX
#define HS_DOUBLE_ROUNDS        DBL_ROUNDS
#define HS_DOUBLE_EPSILON       DBL_EPSILON
#define HS_DOUBLE_DIG           DBL_DIG
#define HS_DOUBLE_MANT_DIG      DBL_MANT_DIG
#define HS_DOUBLE_MIN           DBL_MIN
#define HS_DOUBLE_MIN_EXP       DBL_MIN_EXP
#define HS_DOUBLE_MIN_10_EXP    DBL_MIN_10_EXP
#define HS_DOUBLE_MAX           DBL_MAX
#define HS_DOUBLE_MAX_EXP       DBL_MAX_EXP
#define HS_DOUBLE_MAX_10_EXP    DBL_MAX_10_EXP

#endif /* included into user code */

typedef int            HugsStackPtr;
typedef void*          HugsForeign;
typedef int            HugsStablePtr;

typedef void (*HugsPrim) (HugsStackPtr); /* primitive function	   */

#ifndef Args
struct hugs_primitive {		         /* table of primitives		   */
    char*  ref;				 /* primitive reference string	   */
    int	   arity;			 /* primitive function arity	   */
    HugsPrim imp;		         /* primitive implementation	   */
};

struct hugs_primInfo {
    void                  (*controlFun)(int);
    struct hugs_primitive *primFuns;
    struct hugs_primInfo  *nextPrimInfo;
};
#else
#define hugs_primInfo primInfo
#endif

/* API Version number */
#define HUGS_API_VERSION 5

typedef struct {

  /* evaluate next argument */
  HsBool         (*getBool)        (void);
  HsInt          (*getInt)         (void);
  HsWord         (*getWord)        (void);
  HsAddr    	 (*getAddr)        (void);
  HsFloat        (*getFloat)       (void);
  HsDouble       (*getDouble)      (void);
  HsChar         (*getChar)        (void);
  HugsForeign    (*getForeign)     (void);
  HsStablePtr    (*getStablePtr4)  (void);
  HsInt8         (*getInt8)        (void);
  HsInt16        (*getInt16)       (void);
  HsInt32        (*getInt32)       (void);
  HsInt64        (*getInt64)       (void);
  HsWord8        (*getWord8)       (void);
  HsWord16       (*getWord16)      (void);
  HsWord32       (*getWord32)      (void);
  HsWord64       (*getWord64)      (void);
  HsPtr          (*getPtr)         (void);
  HsFunPtr       (*getFunPtr)      (void);
  HsForeignPtr   (*getForeignPtr)  (void);

  /* push result   */
  void           (*putBool)        (HsBool);
  void           (*putInt)         (HsInt);
  void      	 (*putWord)        (HsWord);
  void      	 (*putAddr)        (HsAddr);
  void           (*putFloat)       (HsFloat);
  void           (*putDouble)      (HsDouble);
  void           (*putChar)        (HsChar);
  void      	 (*putForeign)     (HugsForeign, void (*)(HugsForeign));
  void           (*putInt8)        (HsInt8);
  void           (*putInt16)       (HsInt16);
  void           (*putInt32)       (HsInt32);
  void           (*putInt64)       (HsInt64);
  void           (*putWord8)       (HsWord8);
  void           (*putWord16)      (HsWord16);
  void           (*putWord32)      (HsWord32);
  void           (*putWord64)      (HsWord64);
  void           (*putPtr)         (HsPtr);
  void           (*putFunPtr)      (HsFunPtr);
  void           (*putForeignPtr)  (HsForeignPtr);
  void           (*putStablePtr4)  (HsStablePtr);

  /* return in IO monad or Id monad */
  void      	 (*returnIO)       (HugsStackPtr, int);
  int      	 (*runIO)          (int);
  void           (*returnId)       (HugsStackPtr, int);
  int            (*runId)          (int);

  /* register the prim table */
  void      	 (*registerPrims)  (struct hugs_primInfo*);

  HugsStablePtr  (*lookupName)     (char*, char*);
  void           (*ap)             (int);
  void           (*getUnit)        (void);
  void*          (*mkThunk)        (HsFunPtr, HugsStablePtr);
  void           (*freeThunk)      (void*);

  HugsStablePtr  (*makeStablePtr4) (void);
  void           (*derefStablePtr4)(HugsStablePtr);
  void      	 (*freeStablePtr4) (HsStablePtr);
} HugsAPI5;

/* Note: the change in going from version 4 to 5 is that
   with 5 (and later), the DLLs specify the HugsAPI version
   assumed by the DLL primitives. The HugsAPI method table
   is _not_ identical to 4's; it has been re-orged and
   tidied up.
*/

extern  HugsAPI5* hugsAPI5     (void);
typedef void (*InitModuleFun5) (HugsAPI5*);
typedef int  (*APIVersionFun)  (void);

/* To ensure backward compatibility, HugsAPI4 is also supported:
 * (due to the HugsAPI4 vtbl being an extension of HugsAPI3's and
 *  HugsAPI2's, support for these two comes for free.)
 */
typedef struct {

  /* evaluate next argument */
  HsInt          (*getInt)         (void);
  HsWord         (*getWord)        (void);
  HsAddr    	 (*getAddr)        (void);
  HsFloat        (*getFloat)       (void);
  HsDouble       (*getDouble)      (void);
  char           (*getChar)        (void);
  HugsForeign    (*getForeign)     (void);
  HugsStablePtr  (*getStablePtr)   (void); /* deprecated */

  /* push part of result   */
  void           (*putInt)         (HsInt);
  void      	 (*putWord)        (HsWord);
  void      	 (*putAddr)        (HsAddr);
  void           (*putFloat)       (HsFloat);
  void           (*putDouble)      (HsDouble);
  void           (*putChar)        (char);
  void      	 (*putForeign)     (HugsForeign, void (*)(HugsForeign));
  void           (*putStablePtr)   (HugsStablePtr); /* deprecated */

  /* return n values in IO monad or Id monad */
  void      	 (*returnIO)       (HugsStackPtr, int);
  void      	 (*returnId)       (HugsStackPtr, int);
  int      	 (*runIO)          (int);

  /* free a stable pointer */
  void      	 (*freeStablePtr)  (HugsStablePtr); /* deprecated */

  /* register the prim table */
  void      	 (*registerPrims)  (struct hugs_primInfo*);

  /* garbage collect */
  void		 (*garbageCollect) (void);

  /* API3 additions follow */
  HugsStablePtr  (*lookupName)     (char*, char*);
  void           (*ap)             (int);
  void           (*getUnit)        (void);
  void*          (*mkThunk)        (HsFunPtr, HugsStablePtr);
  void           (*freeThunk)      (void*);
  HsBool         (*getBool)        (void);
  void           (*putBool)        (HsBool);

  /* API4 additions follow */
  HsInt8         (*getInt8)        (void);
  HsInt16        (*getInt16)       (void);
  HsInt32        (*getInt32)       (void);
  HsInt64        (*getInt64)       (void);
  HsWord8        (*getWord8)       (void);
  HsWord16       (*getWord16)      (void);
  HsWord32       (*getWord32)      (void);
  HsWord64       (*getWord64)      (void);
  HsPtr          (*getPtr)         (void);
  HsFunPtr       (*getFunPtr)      (void);
  HsForeignPtr   (*getForeignPtr)  (void);

  void           (*putInt8)        (HsInt8);
  void           (*putInt16)       (HsInt16);
  void           (*putInt32)       (HsInt32);
  void           (*putInt64)       (HsInt64);
  void           (*putWord8)       (HsWord8);
  void           (*putWord16)      (HsWord16);
  void           (*putWord32)      (HsWord32);
  void           (*putWord64)      (HsWord64);
  void           (*putPtr)         (HsPtr);
  void           (*putFunPtr)      (HsFunPtr);
  void           (*putForeignPtr)  (HsForeignPtr);

  HugsStablePtr  (*makeStablePtr4) (void);
  void           (*derefStablePtr4)(HugsStablePtr);

  void           (*putStablePtr4)  (HsStablePtr);
  HsStablePtr    (*getStablePtr4)  (void);
  void      	 (*freeStablePtr4) (HsStablePtr);

  int      	 (*runId)          (int);
} HugsAPI4;

extern  HugsAPI4* hugsAPI4     (void);
typedef void (*InitModuleFun4) (HugsAPI4*);

extern void hs_perform_gc(void);
extern void hs_free_stable_ptr(HsStablePtr x);

/* Copied verbatim from prelude.h */

#ifdef _MSC_VER /* Microsoft Visual C++ */
#define DLLIMPORT(rty) __declspec(dllimport) rty
#define DLLEXPORT(rty) __declspec(dllexport) rty
#elif defined __BORLANDC__
#define DLLIMPORT(rty) rty far _import
#define DLLEXPORT(rty) rty far _export
#else
#define DLLIMPORT(rty) rty
#define DLLEXPORT(rty) rty
#endif /* Don't need to declare DLL exports */

#endif /* __HSFFI_H__ */


text:
@CHARSET "UTF-8";

table.dataTable th {
	border-bottom: 3px solid #d57c24 !important;
}
table.dataTable td {
	background-color: white !important;
}
div.dataTables_info, div.dataTables_paginate {
	margin: 25px 0 0 10px !important;
}
div.dataTables_paginate {
	margin: 25px 10px 0 0;
}
span.hit {
	color: #d57c24;
}
div#tableShowAllLess span {
	cursor: pointer;
	padding: 3px 5px;
	border: 1px solid gray;
	font-size: 11px;
	background-color: #F4F4F4;
	border: 1px solid #CDC8B1;
}
div#foundEntries, div#tableShowAllLess {
	padding-left: 10px;
}
div#mpi2-search table.dataTable th {
	cursor: text !important; /* still need to do this even though dataTable is told not to sort by bSort: false */
}

/*
TableTools styles: posted as fix for bootstrap buttons from datatables.net
https://github.com/DataTables/Plugins/commit/9556be3b19c5c46e393b7ebaae7f402c03d992cb
See http://datatables.net/forums/discussion/11885/problem-with-the-tabletools-using-twitter-bootstrap/p1
*/
.table tbody tr.active td,
.table tbody tr.active th {
background-color: #08C;
color: white;
}

.table tbody tr.active:hover td,
.table tbody tr.active:hover th {
background-color: #0075b0 !important;
}

.table-striped tbody tr.active:nth-child(odd) td,
.table-striped tbody tr.active:nth-child(odd) th {
background-color: #017ebc;
}

table.DTTT_selectable tbody tr {
cursor: pointer;
*cursor: hand;
}

div.DTTT .btn {
color: #333 !important;
font-size: 12px;
}

div.DTTT .btn:hover {
text-decoration: none !important;
}

ul.DTTT_dropdown.dropdown-menu a {
color: #333 !important; /* needed only when demo_page.css is included */
}

ul.DTTT_dropdown.dropdown-menu li {
position: relative;
}

ul.DTTT_dropdown.dropdown-menu li:hover a {
background-color: #0088cc;
color: white !important;
}

/* TableTools information display */
div.DTTT_print_info.modal {
height: 150px;
margin-top: -75px;
text-align: center;
}

div.DTTT_print_info h6 {
font-weight: normal;
font-size: 28px;
line-height: 28px;
margin: 1em;
}

div.DTTT_print_info p {
font-size: 14px;
line-height: 20px;
}


text: Experiments with PureScript as part of my learning process


text:
namespace ArgentPonyWarcraftClient.Tests.GameDataApi;

public class AzeriteEssenceApiTests
{
    [Fact]
    public async Task GetAzeriteEssencesIndexAsync_Gets_AzeriteEssencesIndex()
    {
        IAzeriteEssenceApi warcraftClient = ClientFactory.BuildMockClient(
            requestUri: "https://us.api.blizzard.com/data/wow/azerite-essence/index?namespace=static-us&locale=en_US",
            responseContent: Resources.AzeriteEssencesIndexResponse);

        RequestResult<AzeriteEssencesIndex> result = await warcraftClient.GetAzeriteEssencesIndexAsync("static-us");
        Assert.NotNull(result.Value);
    }

    [Fact]
    public async Task GetAzeriteEssenceAsync_Gets_AzeriteEssence()
    {
        IAzeriteEssenceApi warcraftClient = ClientFactory.BuildMockClient(
            requestUri: "https://us.api.blizzard.com/data/wow/azerite-essence/2?namespace=static-us&locale=en_US",
            responseContent: Resources.AzeriteEssenceResponse);

        RequestResult<AzeriteEssence> result = await warcraftClient.GetAzeriteEssenceAsync(2, "static-us");
        Assert.NotNull(result.Value);
    }

    [Fact]
    public async Task GetAzeriteEssenceMediaAsync_Gets_AzeriteEssenceMedia()
    {
        IAzeriteEssenceApi warcraftClient = ClientFactory.BuildMockClient(
            requestUri: "https://us.api.blizzard.com/data/wow/media/azerite-essence/2?namespace=static-us&locale=en_US",
            responseContent: Resources.AzeriteEssenceMediaResponse);

        RequestResult<AzeriteEssenceMedia> result = await warcraftClient.GetAzeriteEssenceMediaAsync(2, "static-us");
        Assert.NotNull(result.Value);
    }
}


text:
{% include components/head.html %}
{% include components/navbar-noburger.html %}

    {{ content }}

{% include components/login-scripts.html %}


text:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
    <!-- Main VLC Interface -->
    <string name="ok">Tamam</string>
    <string name="cancel">İptal</string>
    <string name="other">Diğer</string>
    <string name="sortby">Sıralama…</string>
    <string name="sortby_name">Ad</string>
    <string name="sortby_name_desc">Ad (azalan)</string>
    <string name="sortby_length">Uzunluk</string>
    <string name="sortby_length_desc">Uzunluk (azalan)</string>
    <string name="sortby_date">Tarih</string>
    <string name="sortby_date_desc">Tarih (azalan)</string>
    <string name="searchable_hint">Arama…</string>
    <string name="history">Geçmiş</string>
    <plurals name="search_found_results_quantity">
        <item quantity="one">%d sonuç bulundu</item>
        <item quantity="other">%d sonuç bulundu</item>
    </plurals>
    <string name="play">Oynat</string>
    <string name="play_from_start">En baştan oynat</string>
    <string name="play_as_audio">Ses olarak oynat</string>
    <string name="play_as_video">Görüntü olarak oynat</string>
    <string name="play_as_audio_background">Görüntüler artalanda oynatılsın</string>
    <string name="play_as_audio_background_summary">Aygıt ekranı kapatıldığında ya da ANASAYFA düğmesine basıldığında görüntüler artalanda oynatılmaya devam edilir.</string>
    <string name="append">Ekle</string>
    <string name="play_all">Tümünü oynat</string>
    <string name="append_all">Tümünü ekle</string>
    <string name="last_playlist">Son oynatma listesi</string>
    <string name="delete">Sil</string>
    <string name="remove">Kaldır</string>
    <string name="set_song">Zil sesi olarak ata</string>
    <string name="info">Bilgiler</string>
    <string name="confirm_delete"> \'%1$s\' dosyası silinsin mi?</string>
    <string name="confirm_delete_folder">\'%1$s\' klasörü ve tüm içeriği silinsin mi?</string>
    <string name="confirm_delete_playlist">\'%1$s\' oynatma listesi silinsin mi?</string>
    <string name="ringtone_set">\'%1$s\' dosyası zil sesi olarak ayarlanmış.</string>
    <string name="ringtone_error">Zil sesi olarak atanırken bir hata oluştu.</string>
    <string name="pause">Duraklat</string>
    <string name="not_show_again">Bu iletiyi bir daha gösterme</string>
    <string name="info_title">VLC</string>
    <string name="unknown_artist">Bilinmeyen Sanatçı</string>
    <string name="unknown_album">Bilinmeyen Albüm</string>
    <string name="unknown_genre">Bilinmeyen Tür</string>
    <string name="songs">Parçalar</string>
    <plurals name="songs_quantity">
        <item quantity="one">1 parça</item>
        <item quantity="other">%d parça</item>
    </plurals>
    <string name="artists">Sanatçılar</string>
    <string name="albums">Albümler</string>
    <plurals name="albums_quantity">
        <item quantity="one">1 albüm</item>
        <item quantity="other">%d albüm</item>
    </plurals>
    <plurals name="subfolders_quantity">
        <item quantity="one">1 altklasör</item>
        <item quantity="other">%d altklasör</item>
    </plurals>
    <plurals name="mediafiles_quantity">
        <item quantity="one">1 ortam dosyası</item>
        <item quantity="other">%d ortam dosyası</item>
    </plurals>
    <plurals name="videos_quantity">
        <item quantity="one">1 görüntü</item>
        <item quantity="other">%d görüntü</item>
    </plurals>
    <string name="internal_memory">İç bellek</string>
    <string name="parent_folder">Üst klasör</string>
    <string name="audio">Ses</string>
    <string name="video">Görüntü</string>
    <string name="bookmarks">Yer İmleri</string>
    <string name="equalizer">Dengeleyici</string>
    <string name="all_albums">Tüm albümler</string>
    <string name="genres">Türler</string>
    <string name="playlists">Oynatma listeleri</string>
    <string name="title">Başlık</string>
    <string name="artist">Sanatçı</string>
    <string name="album">Albüm</string>
    <string name="directory">Klasör</string>
    <string name="directories">Klasörler</string>
    <string name="loading">Yükleniyor</string>
    <string name="please_wait">Lütfen bekleyin…</string>
    <string name="nomedia">Herhangi bir ortam dosyası bulunamadı, aygıtınıza bazı ortam dosyaları aktarın ya da ayarlarınızı denetleyin.</string>
    <string name="noplaylist">Oynatma listesi bulunamadı.</string>
    <string name="mediafiles">Ortam dosyaları</string>
    <string name="notavailable">kullanılamaz</string>
    <string name="nosubdirectory">Alt klasör yok.</string>
    <string name="directorynotfound">\'%1$s\' klasör yolu bulunamadı.</string>
    <string name="nohistory">Henüz oynatma geçmişiniz yok.</string>
    <string name="validation">Emin misiniz?</string>
    <string name="cover_art">Kapak görseli</string>
    <string name="shuffle">Karıştırma Kapalı</string>
    <string name="shuffle_on">Karıştırma Açık</string>
    <string name="repeat">Yineleme yok</string>
    <string name="repeat_single">Parça yinelensin</string>
    <string name="repeat_all">Tümü yinelensin</string>
    <string name="previous">Önceki</string>
    <string name="stop">Durdur</string>
    <string name="next">Sonraki</string>
    <string name="firstsong">Oynatma listesinin ilk parçası</string>
    <string name="lastsong">Oynatma listesinin son parçası</string>
    <string name="locked">Kilitli</string>
    <string name="unlocked">Kilitsiz</string>
    <string name="surface_best_fit">En uygun</string>
    <string name="surface_fit_horizontal">Yatay sığdır</string>
    <string name="surface_fit_vertical">Dikey sığdır</string>
    <string name="surface_fill">Doldur</string>
    <string name="surface_original">Ortala</string>
    <string name="thumbnail">Küçük resim</string>
    <string name="unseekable_stream">Arama yapılamayan akış</string>
    <string name="refresh">Yenile</string>
    <string name="track_audio">Ses izi</string>
    <string name="track_video">Görüntü izi</string>
    <string name="track_text">Alt yazı izi</string>
    <string name="track_unknown">Bilinmeyen iz</string>
    <string name="track_codec_info">Kodlayıcı/Çözücü: %1$s\n</string>
    <string name="track_language_info">Dil: %1$s\n</string>
    <string name="volume">Ses Düzeyi</string>
    <string name="sound_on">Ses Açık</string>
    <string name="sound_off">Ses Kapalı</string>
    <string name="brightness">Parlaklık</string>
    <string name="navmenu">gezinti menüsü</string>
    <string name="advanced">gelişmiş ayarlar</string>
    <plurals name="track_channels_info_quantity">
        <item quantity="one">1 kanal\n</item>
        <item quantity="other">%1$d kanal\n</item>
    </plurals>
    <string name="track_samplerate_info">Örnekleme hızı: %1$d Hz\n</string>
    <string name="track_resolution_info">Çözünürlük: %1$dx%2$d\n</string>
    <string name="track_framerate_info">Kare hızı: %1$.3f\n</string>
    <string name="tools">Araçlar</string>
    <string name="playback_speed">Oynatma hızı</string>
    <string name="sleep_title">Uyku zamanlayıcı</string>
    <string name="sleep_in">Uykuya dalma süresi</string>
    <string name="sleep_cancel">Uyku zamanlayıcıyı iptal et</string>
    <string name="jump_to_time">Sıçranacak Zaman</string>
    <string name="subtitle_label">Altyazı dosyası ekle</string>
    <string name="subtitle_select">Altyazı dosyasını seçin</string>
    <string name="no_file_picker_found">Sisteminizde bir dosya seçicisi yok.</string>
    <string name="open">Aç</string>
    <string name="open_mrl">Akış</string>
    <string name="open_mrl_dialog_title">Ağ akışı aç</string>
    <string name="open_mrl_dialog_msg">Ağ akışının adresini yazın: örneğin http://, mms:// or rtsp://</string>
    <string name="error_not_compatible">Malesef, bu Android™ için VLC sürümü aygıtınızı desteklemiyor.</string>
    <string name="error_problem">Malesef, Android için VLC yüklenirken bir sorun çıktı ve kapatılması gerekti.</string>
    <string name="error_message_is">Hata iletisi (hata ayıklarken bu iletiyi aktarın):\n</string>
    <string name="encountered_error_title">Oynatım hatası</string>
    <string name="encountered_error_message">VLC bu ortamı kullanırken bir sorun çıktı.\nLütfen ortam kitaplığını yenilemeyi deneyin.</string>
    <string name="invalid_location">%1$s konumu oynatılamadı.</string>
    <string name="search">Arama</string>
    <string name="search_history">Arama geçmişi</string>
    <string name="hardware_acceleration_error_title">Donanım hızlandırma hatası</string>
    <string name="hardware_acceleration_error_message">Donanım hızlandırması kullanılırken bir hata oluştu. Devre dışı bırakarak yeniden denemek ister misiniz?</string>
    <!--Tips-->
    <string name="video_player_tips">Görüntü oynatıcı ipuçları:</string>
    <string name="seek">Arama</string>
    <string name="subtitles">Altyazılar</string>
    <string name="audio_sub">Ses izleri\nve altyazılar</string>
    <string name="resize">Boyutlandır</string>
    <string name="options">Ayarlar</string>
    <string name="lock">Kilitle</string>
    <string name="ok_got_it">Anladım, boşver</string>
    <string name="playlist_tips">Oynatma listesi ipuçları</string>
    <string name="remove_song">Şarkıyı kaldır</string>
    <string name="rearrange_order">Sıralamayı değiştir</string>
    <string name="hold_to_seek">Basılı tutarak tarayın</string>
    <string name="audio_player_tips">Ses oynatıcı ipuçları</string>
    <string name="previous_next_song">Önceki/Sonraki parça</string>
    <string name="show_playlist">Oynatma Listesi Görüntülensin</string>
    <string name="hold_to_stop">Basılı tutarak durdurun</string>
    <!-- About -->
    <string name="app_name_full">Android™ için VLC</string>
    <string name="licence">Lisans</string>
    <string name="revision">Değişiklik</string>
    <string name="about">Hakkında</string>
    <string name="about_text">Android™ için VLC, çok kullanılan açık kaynaklı VLC ortam oynatıcının bir parçasıdır. Android™ sürümü çoğu dosya ve ağ akışlarını okuyabilir.</string>
    <string name="compiled_by">Bu VLC sürümü şu kişiler tarafından geliştirilmiştir:</string>
    <string name="vlc_authors">VLC Geliştiricileri.</string>
    <!-- Preferences -->
    <string name="preferences">Ayarlar</string>
    <string name="general_prefs_category">Genel</string>
    <string name="directories_summary">Ortam kitaplığına katılacak klasörleri seçin</string>
    <string name="add_custom_path">Özel klasör ekle</string>
    <string name="add_custom_path_description">Taranacak özel klasörü yazın:</string>
    <string name="remove_custom_path">Özel klasörü sil</string>
    <string name="hardware_acceleration">Donanım Hızlandırma</string>
    <string name="hardware_acceleration_summary">Devre dışı: daha iyi kararlılık.\nKod çözme: başarımı arttırabilir.\nTam: başarımı daha çok arttırabilir.</string>
    <string name="hardware_acceleration_disabled">Devre Dışı</string>
    <string name="hardware_acceleration_decoding">Kod çözme hızlandırması</string>
    <string name="hardware_acceleration_full">Tam hızlandırma</string>
    <string name="dev_hardware_decoder">Gelişmiş donanımsal kod çözücü</string>
    <string name="dev_hardware_decoder_summary">Donanımsal kod çözücü dayatılsın, yalnız deneyimli kullanıcılar</string>
    <string name="dev_hardware_decoder_omx">iomx</string>
    <string name="dev_hardware_decoder_omx_dr">iomx-dr</string>
    <string name="dev_hardware_decoder_mediacodec">mediacodec</string>
    <string name="dev_hardware_decoder_mediacodec_dr">mediacodec-dr</string>
    <string name="automatic">Kendiliğinden</string>
    <string name="screen_orientation">Görüntü ekranı doğrultusu</string>
    <string name="screen_orientation_sensor">Kendiliğinden (almaç)</string>
    <string name="screen_orientation_start_lock">Başlangıçta kilitli</string>
    <string name="screen_orientation_portrait">Dikey</string>
    <string name="screen_orientation_landscape">Yatay</string>
    <string name="screen_orientation_reverse_portrait">Ters dikey</string>
    <string name="screen_orientation_reverse_landscape">Ters yatay</string>
    <string name="enable_black_theme">Siyah tema kullanılsın</string>
    <string name="enable_black_theme_summary">Düşük ışıklı ortamlarda daha rahat kullanım için arayüz renklerini değiştirir.</string>
    <string name="subtitle_text_encoding">Altyazı metin kodlaması</string>
    <string name="extra_prefs_category">Ek ayarlar</string>
    <string name="interface_prefs_screen">Arayüz</string>
    <string name="interface_secondary_display_category">Arayüz - İkinci Ekran</string>
    <string name="interface_secondary_display_category_summary">İkinci bir ekranın bağlandığı (HDMI/Miracast) durumdaki ayarlar.</string>
    <string name="enable_clone_mode">Yineleme yeğlensin</string>
    <string name="enable_clone_mode_summary">İkinci bir ekran bağlandığında uzaktan kumandayı kullanmadan aygıt ekranı ikinci ekrana yinelenir.</string>
    <string name="interface_other_category">Arayüz - Diğer</string>
    <string name="enable_brightness_gesture">El hareketi ile parlaklık ayarı</string>
    <string name="enable_brightness_gesture_summary">Görüntü oynatılırken parlaklık el hareketi ile ayarlanabilir</string>
    <string name="enable_seek_buttons">Arama düğmelerini etkinleştir</string>
    <string name="enable_seek_buttons_summary">Görüntü arayüzünde geri ve ileri sarma düğmelerini görüntüle</string>
    <string name="force_list_portrait">Dikey doğrultuda ızgara olmasın</string>
    <string name="force_list_portrait_summary">Dikey konumda görüntüler ızgara yerine liste şeklinde görüntülenir</string>
    <string name="audio_title_alignment">Ses başlığının hizası</string>
    <string name="enable_headset_detection">Kulaklık algılansın</string>
    <string name="enable_headset_detection_summary">Kulaklık çıkarıldığında duraklansın; takıldığında sürdürülsün</string>
    <string name="enable_steal_remote_control">Özel kulaklık kumandası</string>
    <string name="enable_steal_remote_control_summary">Uzaktan kumandanın başka uygulamalar tarafından kullanılması önlenir. Böylece HTC telefonlardaki çift tıklandığında arama özelliği engellenir.</string>
    <string name="audio_title_alignment_default">Varsayılan</string>
    <string name="audio_title_alignment_left">Solda</string>
    <string name="audio_title_alignment_centre">Ortada</string>
    <string name="audio_title_alignment_right">Sağda</string>
    <string name="audio_title_alignment_marquee">Marka</string>
    <string name="performance_prefs_category">Başarım</string>
    <string name="chroma_format">Dayatılacak renk doygunluğu</string>
    <string name="chroma_format_summary">RGB 32-bit: varsayılan renk-uzayı\nRGB 16-bit: daha iyi başarım ama düşük kalite\nYUV: en iyi başarım ama tüm cihazlarda çalışmaz. Yalnız Android 2.3 ve sonrası için.</string>
    <string name="deblocking">Engel kaldırma süzgeci ayarları</string>
    <string name="deblocking_summary">Engel kaldırma süzgeci ayarları görüntü kalitesini iyileştirebilir. Yalnız deneyimli kullanıcılar için.</string>
    <string name="deblocking_always">Tam engel kaldırma (en yavaş)</string>
    <string name="deblocking_nonref">Orta engel kaldırma</string>
    <string name="deblocking_nonkey">Düşük engel kaldırma</string>
    <string name="deblocking_all">Engel kaldırma yok (en hızlı)</string>
    <string name="enable_frame_skip">Kare atlanabilsin</string>
    <string name="enable_frame_skip_summary">Kod çözmeyi hızlandırır ancak görüntü kalitesini düşürür.</string>
    <string name="enable_time_stretching_audio">Zamana yaymalı ses</string>
    <string name="enable_time_stretching_audio_summary">Tonu değiştirmeden sesi hızlandırır ya da yavaşlatır (hızlı bir aygıt gerekir)</string>
    <string name="advanced_prefs_category">Gelişmiş</string>
    <string name="aout">Ses çıkışı</string>
    <string name="aout_summary">VLC tarafından kullanılan ses üretme yöntemini değiştirir.</string>
    <string name="vout">Görüntü çıkışı</string>
    <string name="vout_summary">VLC tarafından kullanılan görüntü çıkışı yöntemini değiştirir.</string>
    <string name="vout_android_surface">Android yüzeyi</string>
    <string name="clear_media_db">Ortam veritabanını temizle</string>
    <string name="clear_history">Arama geçmişini temizle</string>
    <string name="media_db_cleared">Ortam veritabanı temizlendi!</string>
    <string name="set_locale">Yerel ayar</string>
    <string name="set_locale_detail">Sıfırlamak için boş bırakın</string>
    <string name="set_locale_popup">Değişikliklerin geçerli olması için VLC yazılımını kapatıp yeniden açın.</string>
    <string name="network_caching">Ağ ön bellekleme değeri</string>
    <string name="network_caching_summary">Milisaniye cinsinden, ağ ortamının ön belleğe alınacağı süre. Donanımsal kod çözme ile birlikte çalışmaz. Sıfırlamak için boş bırakın.</string>
    <string name="developer_prefs_category">Geliştirici</string>
    <string name="auto_rescan">Otomatik yeniden tarama</string>
    <string name="auto_rescan_summary">Uygulama başlangıcında aygıtı yeni ya da silinmiş ortamlar için tarar</string>
    <string name="enable_verbose_mode">Ayrıntıları göster</string>
    <string name="enable_verbose_mode_summary">Ayrıntıyı arttırın (günlük)</string>
    <string name="debug_logs">Hata ayıklama günlükleri</string>
    <string name="start_logging">Günlüğe kaydedilsin</string>
    <string name="stop_logging">Günlüğe kaydedilmesin</string>
    <string name="clear_log">Günlük temizlensin</string>
    <string name="log_service_title">VLC kayıt günlükleri</string>
    <string name="log_service_text">Günlük panelini açın</string>
    <string name="copy_to_clipboard">Panoya kopyalayın</string>
    <string name="copied_to_clipboard">Günlük panoya kopyalandı.</string>
    <string name="quit">Çıkıp uygulamayı yeniden başlatın</string>
    <string name="dump_logcat">Logcat günlüğünü kaydedin</string>
    <string name="dump_logcat_success">Logcat %1$s dosyasına kaydedildi!</string>
    <string name="dump_logcat_failure">Logcat kaydedilemedi.</string>
    <string name="serious_crash">Malesef önemli bir hata oluştuğundan VLC uygulaması kapatılacak.</string>
    <string name="help_us_send_log">Bu çökme kaydını göndererek VLC uygulamasının geliştirilmesine yardımcı olun:</string>
    <string name="restart_vlc">VLC uygulamasını yeniden başlatın</string>
    <string name="send_log">Günlüğü gönder</string>
    <string name="sending_log">Günlük gönderiliyor...</string>
    <string name="drawer_open">Gezinti çekmecesini aç</string>
    <string name="drawer_close">Gezinti çekmecesini kapat</string>
    <string name="network_browsing">Yerel Ağ</string>
    <string name="file_size">Dosya boyutu:</string>
    <string name="file_other">Gezinti çekmecesini kapat</string>
    <string name="audio_delay">Ses gecikmesi</string>
    <string name="spu_delay">Altyazı gecikmesi</string>
    <string name="sleep_time_not_set">hiçbiri ayarlanmamış</string>
    <string name="network_shares_discovery">Ağ paylaşımları aranıyor...</string>
    <string name="network_empty">Bu klasör boş.</string>
    <string name="network_connection_needed">Yerel ağ bağlantısı yok.</string>
    <string name="search_hint">Ortam arayın</string>
    <string name="directory_show_medialib">Ortam Kitaplığında Görüntüle</string>
    <string name="directory_hide_medialib">Ortam Kitaplığında Gizle</string>
    <string name="playlist_save">Oynatma Listesini Kaydet</string>
    <string name="playlist_name_hint">oynatma listesi adı</string>
    <string name="go_to_chapter">Bölüme gidin...</string>
    <string name="chapter">Bölüm</string>
    <string name="resume_from_position">Oaynatmayı kalınan konumdan sürdür</string>
    <string name="confirm_resume">Oynatma kalınan konumdan sürdürülsün mü?</string>
    <string name="confirm_resume_title">Sürdürme onayı istensin</string>
    <string name="confirm_resume_summary">Bu seçenek etkinlleştirildiğinde, oynatılan bir görüntünün kalınan konumdan sürdürülmesi için onay istenir</string>
    <string name="directory_empty">Klasör boş</string>
    <!--Accessibility-->
    <string name="more_actions">Diğer İşlemler</string>
    <string name="move">Taşı</string>
    <string name="back_quit_lock">Çıkmak için yeniden geriye basın</string>
    <string name="playlist_deleted">Oynatma listesi silindi</string>
    <string name="file_deleted">Dosya silindi</string>
    <string name="no_subs_found">Bu klasörde altyazı yok</string>
    <string name="music_now_playing">Şimdi Oynatılan</string>
    <!--Widget-->
    <string name="widget_name_w">Beyaz VLC Gereci</string>
    <string name="widget_name_b">Koyu VLC Gereci</string>
</resources>


text:
DROP EXTERNAL TABLE IF EXISTS exttab_conc_1 CASCADE;
DROP EXTERNAL TABLE IF EXISTS exttab_conc_2 CASCADE;

-- Generate the file with very few errors
\! python @script@ 10 2 > @data_dir@/exttab_conc_1.tbl

-- does not reach reject limit
CREATE EXTERNAL TABLE exttab_conc_1( i int, j text )
LOCATION ('gpfdist://@host@:@port@/exttab_conc_1.tbl') FORMAT 'TEXT' (DELIMITER '|')
LOG ERRORS SEGMENT REJECT LIMIT 10;

-- Generate the file with lot of errors
\! python @script@ 200 50 > @data_dir@/exttab_conc_2.tbl

CREATE EXTERNAL TABLE exttab_conc_2( i int, j text )
LOCATION ('gpfdist://@host@:@port@/exttab_conc_2.tbl') FORMAT 'TEXT' (DELIMITER '|')
LOG ERRORS SEGMENT REJECT LIMIT 100;


text:
<!DOCTYPE HTML>

		<title>Barcode Example 1</title>

Barcode Example 1

Decoded Barcode: 978-0262018029

Decoded Barcode: 978-0262018029


text:
from django.http import HttpResponseRedirect
from django.urls import reverse
from django.shortcuts import render
from django.contrib.auth.decorators import login_required

@login_required
def profile_show(request):
    context = {"title": "profile"}
    return render(request, "modules/profile.html", context)


text:
import { Observable } from 'rxjs';

export abstract class SocketManager {

  public abstract connect(): Observable<void>;
}


text:
@implementation OfflineFetchText

- (void)main {
    dispatch_sync(dispatch_get_main_queue(), ^{
        self.appDelegate = [NewsBlurAppDelegate sharedAppDelegate];
    });

    while (YES) {
        BOOL fetched = [self fetchText];
        if (!fetched) break;
    }
}

- (BOOL)fetchText {
    if (self.isCancelled) {
        NSLog(@"Text cancelled.");
        return NO;
    }

    NSLog(@"Fetching text...");
    NSArray *pendingTextDictionaries = [self uncachedTextDictionaries];

    if (![[[NSUserDefaults standardUserDefaults]
           objectForKey:@"offline_text_download"] boolValue] ||
        ![[[NSUserDefaults standardUserDefaults]
           objectForKey:@"offline_allowed"] boolValue] ||
        [pendingTextDictionaries count] == 0) {
        NSLog(@"Finished caching text. %ld total", (long)self.appDelegate.totalUncachedTextCount);
        dispatch_async(dispatch_get_main_queue(), ^{
            if ([[NSUserDefaults standardUserDefaults] boolForKey:@"offline_image_download"]) {
                [self.appDelegate.feedsViewController showCachingNotifier:@"Images" progress:0 hoursBack:1];
                [self.appDelegate startOfflineFetchImages];
            } else {
                [self.appDelegate.feedsViewController showDoneNotifier];
                [self.appDelegate.feedsViewController hideNotifier];
                [self.appDelegate finishBackground];
            }
        });
        return NO;
    }

    if (![self.appDelegate isReachableForOffline]) {
        dispatch_async(dispatch_get_main_queue(), ^{
            [self.appDelegate.feedsViewController showDoneNotifier];
            [self.appDelegate.feedsViewController hideNotifier];
        });
        return NO;
    }

    NSString *urlString = [NSString stringWithFormat:@"%@/rss_feeds/original_text", self.appDelegate.url];
    NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
    AFHTTPSessionManager *manager = [[AFHTTPSessionManager alloc] initWithSessionConfiguration:configuration];
    manager.completionQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0);

    dispatch_group_t group = dispatch_group_create();

    for (NSDictionary *pendingTextDictionary in pendingTextDictionaries) {
        id storyHash = pendingTextDictionary[@"story_hash"];
        id feedId = pendingTextDictionary[@"story_feed_id"];
        NSInteger storyTimestamp = [pendingTextDictionary[@"story_timestamp"] integerValue];

        NSMutableDictionary *params = [NSMutableDictionary dictionary];
        [params setObject:storyHash forKey:@"story_id"];
        [params setObject:feedId forKey:@"feed_id"];

        dispatch_group_enter(group);
        //        NSLog(@" ---> Fetching offline text: %@", urlString);
        [manager POST:urlString parameters:params progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
            //            NSLog(@" ---> Fetched %@: %@", storyHash, urlString);
            NSString *text = [responseObject objectForKey:@"original_text"];

            if ([text isKindOfClass:[NSString class]]) {
                [self storeText:text forStoryHash:storyHash storyTimestamp:storyTimestamp];
            } else {
                [self storeFailedTextForStoryHash:storyHash];
            }
            dispatch_group_leave(group);
        } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
            //            NSLog(@" ---> Failed to fetch text %@: %@", storyHash, urlString);
            [self storeFailedTextForStoryHash:storyHash];
            dispatch_group_leave(group);
        }];
    }

//    dispatch_sync(dispatch_get_main_queue(), ^{
//        [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
//    });
    dispatch_group_wait(group, DISPATCH_TIME_FOREVER);
    NSLog(@"Queue finished: %ld total (%ld remaining)", (long)self.appDelegate.totalUncachedTextCount, (long)self.appDelegate.remainingUncachedTextCount);

    [self updateProgress];

//    dispatch_async(dispatch_get_main_queue(), ^{
//        [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
//    });

    return YES;
}

- (NSArray *)uncachedTextDictionaries {
    NSMutableArray *pendingTextDictionaries = [NSMutableArray array];

    [self.appDelegate.database inDatabase:^(FMDatabase *db) {
        NSString *commonQuery = @"FROM cached_text c "
        "INNER JOIN unread_hashes u ON (c.story_hash = u.story_hash) "
        "WHERE c.text_json is null ";
        int count = [db intForQuery:[NSString stringWithFormat:@"SELECT COUNT(1) %@", commonQuery]];
        if (self.appDelegate.totalUncachedTextCount == 0) {
            self.appDelegate.totalUncachedTextCount = count;
            self.appDelegate.remainingUncachedTextCount = self.appDelegate.totalUncachedTextCount;
        } else {
            self.appDelegate.remainingUncachedTextCount = count;
        }

        int limit = 120;
        NSString *order;
        if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"default_order"] isEqualToString:@"oldest"]) {
            order = @"ASC";
        } else {
            order = @"DESC";
        }
        NSString *sql = [NSString stringWithFormat:@"SELECT * %@ ORDER BY u.story_timestamp %@ LIMIT %d", commonQuery, order, limit];
        FMResultSet *cursor = [db executeQuery:sql];

        while ([cursor next]) {
            [pendingTextDictionaries addObject:[cursor resultDictionary]];
        }

        [cursor close];
    }];

    return pendingTextDictionaries;
}

- (void)updateProgress {
    if (self.isCancelled) return;

    NSInteger start = (NSInteger)[[NSDate date] timeIntervalSince1970];
    NSInteger end = self.appDelegate.latestCachedTextDate;
    NSInteger seconds = start - (end ? end : start);
    __block int hours = (int)round(seconds / 60.f / 60.f);

    __block float progress = 0.f;
    if (self.appDelegate.totalUncachedTextCount) {
        progress = 1.f - ((float)self.appDelegate.remainingUncachedTextCount /
                          (float)self.appDelegate.totalUncachedTextCount);
    }
    dispatch_async(dispatch_get_main_queue(), ^{
        [self.appDelegate.feedsViewController showCachingNotifier:@"Text" progress:progress hoursBack:hours];
    });
}

- (void)storeText:(NSString *)text forStoryHash:(NSString *)storyHash storyTimestamp:(NSInteger)storyTimestamp {
    if (self.isCancelled) {
        NSLog(@"Text cancelled.");
        return;
    }

    NSDictionary *textDictionary = @{@"text" : text};

    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW,
                                             (unsigned long)NULL), ^{
        [self storeTextDictionary:textDictionary forStoryHash:storyHash];

        if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"default_order"] isEqualToString:@"oldest"]) {
            if (storyTimestamp > self.appDelegate.latestCachedTextDate) {
                self.appDelegate.latestCachedTextDate = storyTimestamp;
            }
        } else {
            if (!self.appDelegate.latestCachedTextDate || storyTimestamp < self.appDelegate.latestCachedTextDate) {
                self.appDelegate.latestCachedTextDate = storyTimestamp;
            }
        }

        @synchronized (self) {
            self.appDelegate.remainingUncachedTextCount--;
            if (self.appDelegate.remainingUncachedTextCount % 10 == 0) {
                [self updateProgress];
            }
        }
    });
}

- (void)storeFailedTextForStoryHash:(NSString *)storyHash {
    NSDictionary *textDictionary = @{@"failed" : @YES};

    [self storeTextDictionary:textDictionary forStoryHash:storyHash];
}

- (void)storeTextDictionary:(NSDictionary *)textDictionary forStoryHash:(NSString *)storyHash {
    [self.appDelegate.database inDatabase:^(FMDatabase *db) {
        [db executeUpdate:@"UPDATE cached_text SET text_json = ? WHERE story_hash = ?",
         [textDictionary JSONRepresentation],
         storyHash];
    }];
}

@end


text:
([Homepage in English](http://translate.google.com/translate?hl=en&sl=zh-CN&u=http://amazeui.org/&prev=search) translated by Google)

Amaze UI is an open-sourced responsive front-end framework.

## The Product

### Mobile First

Amaze UI believes in Mobile First. Beginning with mobile phone screens, Amaze UI is extending the adaption to larger screens such as tablet and PC.

### Web Components

Amaze UI contains almost 20 CSS components, 10 JS components and 17 other web components which include 60 different themes. All these components are designed to help you develop more efficiently and create responsive pages with awesome user interface and excellent user experience.

### Localization

Compared with existing front-end frameworks, Amaze UI focuses on optimizing page layout in Chinese by adjusting font to different operating systems automatically. Amaze UI provides better compatibility for currently popular browsers and browsers built in Apps, saving you a lot of time for compatibility debugging.

### Light yet Powerful

Amaze UI puts a lot of efforts on performance. Using CSS 3 for animation makes it more interactive, smooth, efficient and suitable for mobile devices, and allows your web app to load fast.

## Download

Users can download packed templates from the Amaze UI official site.

All documents are saved in the directory of `docs/`. To view the demo more conveniently, we suggest you check the documents by visiting [the official website](http://amazeui.org/).

## Develop

Developers can build extensions on top of Amaze UI.

### Project Structure

```
amazeui
|-- HISTORY.md
|-- LICENSE
|-- README.md
|-- package.json
|-- dist        # Contains all compiled and minified CSS and JavaScript files
|-- docs        # Contains all documentation
|-- fonts       # Icon font, using http://staticfile.org/
|-- gulpfile.js # Gulp config
|-- js          # JavaScript scource
|-- less        # LESS scource
|-- tools       # Related tools
|-- vendor      # Contains external libraries, like Zepto and others that are used by Amaze UI
|   |-- amazeui.partials.js
|   |-- handlebars
|   |-- json.format.js
|   |-- seajs
|   `-- zepto
`-- widget      # Web components
```

### Building

Amaze UI use [gulp.js](http://gulpjs.com/) to build files。

The following shows the steps:

```
npm install -g gulp

git clone https://github.com/allmobilize/amazeui.git

npm install

gulp
```

## Bug feedback & Requests

### Bug feedback

You are welcome to [submit bug report](https://github.com/allmobilize/amazeui/issues) to the Amaze UI team.

To explain your problems clearly, we suggest that you provide a demonstration when you give us feedback.

The following links are pages we have built with online debugging tools, using Amaze UI layouts and scripts. You can fork and send a bug report, linking to example pages.

- [Debug Amaze UI 1.0 in JSBin](http://jsbin.com/qasoxibuje/1/edit?html,output)

### Submit Request

User can submit your requests through Issue system or leave us message on our official website. Any request that match our product concepts will be considered.

## Code Contribution

You are welcome to join our debugging team! You are also very welcome to share the Web components you explored by "Fork" this item and submit request afterwards.

__Development Document__

All the development documents are saved in the directory of `docs/rules`. You can also check those documents on our [official website](http://amazeui.org/).

- [Amaze UI HTML/CSS Specifications](http://amazeui.org/getting-started/html-css)
- [Amaze UI JavaScript Specifications](http://amazeui.org/getting-started/javascript)
- [Amaze UI Web Components Specifications](http://amazeui.org/getting-started/widget)

## Referenced & Used Open-source Projects

* [Zepto.js](https://github.com/madrobby/zepto) ([MIT
License](https://github.com/madrobby/zepto/blob/master/MIT-LICENSE))
* [Sea.js](https://github.com/seajs/seajs) ([MIT License](https://github.com/seajs/seajs/blob/master/LICENSE.md))
* [Handlebars.js](https://github.com/wycats/handlebars.js) ([MIT
License](https://github.com/wycats/handlebars.js/blob/master/LICENSE))
* [normalize.css](https://github.com/necolas/normalize.css) ([MIT
License](https://github.com/necolas/normalize.css/blob/master/LICENSE.md))
* [FontAwesome](https://github.com/FortAwesome/Font-Awesome/) ([CC BY 3.0 License](http://creativecommons.org/licenses/by/3.0/))
* [Bootstrap](https://github.com/twbs/bootstrap) ([MIT License](https://github.com/twbs/bootstrap/blob/master/LICENSE))
* [UIkit](https://github.com/uikit/uikit) ([MIT License](https://github.com/uikit/uikit/blob/master/LICENSE.md))
* [Foundation](https://github.com/zurb/foundation) ([MIT
License](https://github.com/zurb/foundation/blob/master/LICENSE))
* [Framework7](https://github.com/nolimits4web/Framework7) ([MIT
License](https://github.com/nolimits4web/Framework7/blob/master/LICENSE))
* [Alice](https://github.com/aliceui/aliceui.org/) ([MIT
License](https://github.com/aliceui/aliceui.org/blob/master/LICENSE))
* [Arale](https://github.com/aralejs/aralejs.org/) ([MIT
License](https://github.com/aralejs/aralejs.org/blob/master/LICENSE))
* [Pure](https://github.com/yui/pure) ([BSD License](https://github.com/yui/pure/blob/master/LICENSE.md))
* [Semantic UI](https://github.com/Semantic-Org/Semantic-UI) ([MIT
License](https://github.com/Semantic-Org/Semantic-UI/blob/master/LICENSE.md))
* [FastClick](https://github.com/ftlabs/fastclick) ([MIT
License](https://github.com/ftlabs/fastclick/blob/master/LICENSE))
* [screenfull.js](https://github.com/sindresorhus/screenfull.js) ([MIT
License](https://github.com/sindresorhus/screenfull.js/blob/gh-pages/license))
* [FlexSlider](https://github.com/woothemes/FlexSlider) ([GPL 2.0](http://www.gnu.org/licenses/gpl-2.0.html))
* [Hammer.js](https://github.com/hammerjs/hammer.js) ([MIT License](https://github.com/hammerjs/hammer.js/blob/master/LICENSE.md))
* [Flat UI](https://github.com/designmodo/Flat-UI) ([CC BY 3.0 and MIT License](https://github.com/designmodo/Flat-UI#copyright-and-license))
* [store.js](https://github.com/marcuswestin/store.js) ([MIT License](https://github.com/marcuswestin/store.js/blob/master/LICENSE))
* [bootstrap-datepicker.js](http://www.eyecon.ro/bootstrap-datepicker/) ([Apache License 2.0](http://www.eyecon.ro/bootstrap-datepicker/js/bootstrap-datepicker.js))
* [iScroll](http://iscrolljs.com/) ([MIT License](http://iscrolljs.com/#license))

There might be some missing and we will keep updating.

### Developed with Open Source Licensed [WebStorm](http://www.jetbrains.com/webstorm/)


text:
<!doctype html>

		<title>Zabuun - Learn Egyptian Arabic for English speakers</title>
		<meta name="description" content="">
		<?php include $_SERVER['DOCUMENT_ROOT'].'/layout/head.php';?>

		<?php include $_SERVER['DOCUMENT_ROOT'].'/layout/ie8.php';?>
		<?php include $_SERVER['DOCUMENT_ROOT'].'/layout/header.php';?>

			<?php include $_SERVER['DOCUMENT_ROOT'].'/layout/side.php';?>

Essays > A Social Media Fast

						Expand All | Collapse All

A Social Media Fast

Ironically, the details of these fasts can be found on social networking sites all over the Internet. The reasons people undertake a fast are varied. Some people want to reconnect with their families or friends by disconnecting from their cell phones. Some people want to be more productive at work. What did some fasters do instead of logging on? Some decided to connect with friends by actually sitting down and having face-to-face conversations. If friends or loved ones were far away, they would call them on the telephone instead. Some even wrote handwritten postcards or letters. The results were mixed. Some people felt that not using social media made them more anxious. Others developed more positive habits like journaling or meditating.

		<?php include $_SERVER['DOCUMENT_ROOT'].'/layout/footer.php';?>
		<?php include $_SERVER['DOCUMENT_ROOT'].'/layout/scripts.php';?>


text:
def getAllWinProcessName():
    import ctypes;

    # __metaclass__ = type;

    class PROCESSENTRY32(ctypes.Structure):
        _fields_ = [
            ("dwSize",ctypes.c_ulong),
            ("cntUsage",ctypes.c_ulong),
            ("th32ProcessID",ctypes.c_ulong),
            ("th32DefaultHeapID",ctypes.c_void_p),
            ("th32ModuleID",ctypes.c_ulong),
            ("cntThreads",ctypes.c_ulong),
            ("th32ParentProcessID",ctypes.c_ulong),
            ("pcPriClassBase",ctypes.c_long),
            ("dwFlags",ctypes.c_ulong),
            ("szExeFile",ctypes.c_char*260)
        ]

    kernel32 = ctypes.windll.LoadLibrary("kernel32.dll");
    pHandle = kernel32.CreateToolhelp32Snapshot(0x2,0x0);

    if pHandle==-1:
        return []

    proc = PROCESSENTRY32();
    proc.dwSize = ctypes.sizeof(proc);

    names = []
    while kernel32.Process32Next(pHandle,ctypes.byref(proc)):
        names.append(ctypes.string_at(proc.szExeFile))
        # print("ProcessName : %s - ProcessID : %d"%(ctypes.string_at(proc.szExeFile),proc.th32ProcessID));
    kernel32.CloseHandle(pHandle);
    return names

if __name__ == '__main__':
    print getAllWinProcessName()


text:
package com.netease.course.spring_mybatis;

import com.netease.course.spring_jdbc.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

/**
 * Created by Eric on 3/14/16.
 */
public class TestMybatis {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("less04-jdbc-context.xml");
        MybatisUserDao dao = context.getBean("mybatisUserDao", MybatisUserDao.class);
        List<User> userList = dao.getUserList();

        for (User user : userList) {
            System.out.println(user.getFirstName() + ", " + user.getLastName());
        }

        User lilei = dao.getUser("Lei");
        System.out.println(lilei.getFirstName() + ", " + lilei.getLastName());

        ((ConfigurableApplicationContext) context).close();
    }
}


text:
package com.songchao.mybilibili.model;

/**
 * Author: SongCHao
 * Date: 2017/9/5/10:52
 * Email: 15704762346@163.com
 */

public class MyVideo {
    public int vid;
    public String vcontent;
    public String vicon;
    public String vuserName;
    public String vhighUrl;
    public String vpic;
    public Integer vcount;
}


text:
package Code.graphics.searchGame;

import edu.cmu.ri.createlab.terk.robot.finch.Finch;

/**
 * @author Eric Cheek (echeek@andrew.cmu.edu)
 *
 */
final class SearchGameTiltControl
   {
   Finch myFinch;
   private int minX, minY, maxX, maxY, xPosition, yPosition;
   private double xScale = 1, yScale = 1;

   SearchGameTiltControl(Finch f)
      {
      myFinch = f;

      minX = minY = -100;
      maxX = maxY = 100;

      xPosition = 0;
      yPosition = 0;
      }

   public void setLimits(int minX, int minY, int maxX, int maxY)
      {
      this.minX = minX;
      this.minY = minY;
      this.maxX = maxX;
      this.maxY = maxY;
      }

   public void setScales(double x, double y)
      {
      xScale = x;
      yScale = y;
      }

   public void setPosition(int x, int y)
      {
      xPosition = x;
      yPosition = y;
      }

   public void centerPosition()
      {
      xPosition = (minX + maxX) / 2;
      yPosition = (minX + maxX) / 2;
      }

   public int getX()
      {
      return xPosition;
      }

   public int getY()
      {
      return yPosition;
      }

   /**
    * Fetch finch tilt and move x, y positions appropriately
    */
   public void update()
      {
      //X,Y axis switched for more intuitive control
      //note that x movement is inverted.
      int dx = (int)(-xScale * myFinch.getYAcceleration());

      int dy = (int)(yScale * myFinch.getXAcceleration());

      //update x and y positions
      xPosition += dx;
      yPosition += dy;

      //test to prevent x/y from leaving set bounds
      if (xPosition < minX)
         {
         xPosition = minX;
         }
      if (yPosition < minY)
         {
         yPosition = minY;
         }
      if (xPosition > maxX)
         {
         xPosition = maxX;
         }
      if (yPosition > maxY)
         {
         yPosition = maxY;
         }
      }
   }


text:
package com.asakusafw.lang.compiler.optimizer.basic;

import java.util.HashMap;
import java.util.Map;

import com.asakusafw.lang.compiler.model.graph.Operator;
import com.asakusafw.lang.compiler.model.graph.OperatorInput;
import com.asakusafw.lang.compiler.model.graph.OperatorOutput;
import com.asakusafw.lang.compiler.optimizer.OperatorEstimate;

/**
 * Estimated information of {@link Operator}s.
 */
public class BasicOperatorEstimate implements OperatorEstimate {

    private final Map<Class<?>, Object> attributes = new HashMap<>();

    private final Map<OperatorInput, PortInfo> inputs = new HashMap<>();

    private final Map<OperatorOutput, PortInfo> outputs = new HashMap<>();

    @Override
    public double getSize(OperatorInput port) {
        return getSize(inputs, port);
    }

    @Override
    public double getSize(OperatorOutput port) {
        return getSize(outputs, port);
    }

    @Override
    public <T> T getAttribute(Class<T> attributeType) {
        return getAttribute(attributes, attributeType);
    }

    @Override
    public <T> T getAttribute(OperatorInput port, Class<T> attributeType) {
        return getAttribute(inputs, port, attributeType);
    }

    @Override
    public <T> T getAttribute(OperatorOutput port, Class<T> attributeType) {
        return getAttribute(outputs, port, attributeType);
    }

    private static <T> double getSize(Map<T, PortInfo> ports, T port) {
        PortInfo info = ports.get(port);
        if (info == null) {
            return UNKNOWN_SIZE;
        }
        return info.size;
    }

    private static <T, A> A getAttribute(Map<T, PortInfo> ports, T port, Class<A> attributeType) {
        PortInfo info = ports.get(port);
        if (info == null) {
            return null;
        }
        return getAttribute(info.attributes, attributeType);
    }

    private static <A> A getAttribute(Map<Class<?>, ?> attributes, Class<A> attributeType) {
        Object attribute = attributes.get(attributeType);
        if (attribute == null) {
            return null;
        }
        return attributeType.cast(attribute);
    }

    /**
     * Sets the input estimated size.
     * @param port the target port
     * @param size the estimated size
     */
    public void putSize(OperatorInput port, double size) {
        putSize(inputs, port, size);
    }

    /**
     * Sets the output estimated size.
     * @param port the target port
     * @param size the estimated size
     */
    public void putSize(OperatorOutput port, double size) {
        putSize(outputs, port, size);
    }

    /**
     * Sets the input attribute.
     * @param <T> the attribute type
     * @param type the attribute type
     * @param value the attribute value
     */
    public <T> void putAttribute(Class<T> type, T value) {
        attributes.put(type, value);
    }

    /**
     * Sets the input attribute.
     * @param <T> the attribute type
     * @param port the target port
     * @param type the attribute type
     * @param value the attribute value
     */
    public <T> void putAttribute(OperatorInput port, Class<T> type, T value) {
        putAttribute(inputs, port, type, value);
    }

    /**
     * Sets the output attribute.
     * @param <T> the attribute type
     * @param port the target port
     * @param type the attribute type
     * @param value the attribute value
     */
    public <T> void putAttribute(OperatorOutput port, Class<T> type, T value) {
        putAttribute(outputs, port, type, value);
    }

    private static <T> void putSize(Map<T, PortInfo> ports, T port, double size) {
        prepare(ports, port).size = size;
    }

    private static <T, A> void putAttribute(Map<T, PortInfo> ports, T port, Class<A> type, A value) {
        prepare(ports, port).attributes.put(type, value);
    }

    private static <T> PortInfo prepare(Map<T, PortInfo> ports, T port) {
        PortInfo info = ports.get(port);
        if (info == null) {
            info = new PortInfo();
            ports.put(port, info);
        }
        return info;
    }

    static class PortInfo {

        double size = OperatorEstimate.UNKNOWN_SIZE;

        final Map<Class<?>, Object> attributes = new HashMap<>();
    }
}


text:
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\models\search\DruserSearch */
/* @var $form yii\widgets\ActiveForm */
?>

    <?php $form = ActiveForm::begin([
        'action' => ['index'],
        'method' => 'get',
    ]); ?>

    <?= $form->field($model, 'id') ?>

    <?= $form->field($model, 'email') ?>

    <?= $form->field($model, 'name') ?>

    <?= $form->field($model, 'password') ?>

    <?= $form->field($model, 'delete')->checkbox() ?>

    <?php // echo $form->field($model, 'img') ?>

    <?php // echo $form->field($model, 'createTime') ?>

    <?php // echo $form->field($model, 'updateTime') ?>

        <?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
        <?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>

    <?php ActiveForm::end(); ?>


text:
package org.assertj.core.api.atomic.longarray;

import static org.assertj.core.test.LongArrays.arrayOf;

import org.assertj.core.api.AtomicLongArrayAssert;
import org.assertj.core.api.AtomicLongArrayAssertBaseTest;

import static org.mockito.Mockito.verify;

class AtomicLongArrayAssert_doesNotContain_Test extends AtomicLongArrayAssertBaseTest {

  @Override
  protected AtomicLongArrayAssert invoke_api_method() {
    return assertions.doesNotContain(6, 8);
  }

  @Override
  protected void verify_internal_effects() {
    verify(arrays).assertDoesNotContain(info(), internalArray(), arrayOf(6, 8));
  }
}


text:
package ru.job4j.collections.generic;

/**
 * Хранилище UserRole.
 *
 * @author Hincu Andrei (andreih1981@gmail.com) by 05.10.17;
 * @version $Id$
 * @since 0.1
 */
public class UserRole extends AbstractStore<Role> {
    /**
     * Констроуктор класса.
     * @param size размер хранилища.
     */
    public UserRole(int size) {
        super(size);
    }
}


text:
namespace ExampleApp
{
    namespace NavRouting
    {
        class NavRoutingStartLocationClearedMessage
        {

        };
    }
}


text:
package org.springside.examples.miniservice.tools;

import org.mortbay.jetty.Server;
import org.springside.modules.test.utils.JettyUtils;

/**
 * 使用Jetty运行调试Web应用,在Console输入回车停止服务.
 *
 * @author calvin
 */
public class Start {

	public static final int PORT = 8080;
	public static final String CONTEXT = "/mini-service";
	public static final String BASE_URL = "http://localhost:8080/mini-service";

	public static void main(String[] args) throws Exception {
		Server server = JettyUtils.buildNormalServer(PORT, CONTEXT);
		server.start();

		System.out.println("Hit Enter in console to stop server");
		if (System.in.read() != 0) {
			server.stop();
			System.out.println("Server stopped");
		}
	}
}


text:
<?php

namespace AppBundle\Repository;

use AppBundle\Entity\Post;
use AppBundle\Entity\PostComment;
use AppBundle\Entity\User;
use Doctrine\ORM\EntityRepository;

class PostCommentRepository extends EntityRepository
{
    public function set(PostComment $postComment, User $user, Post $post, $body, $em)
    {
        $postComment->setUserId($user);
        $postComment->setPostId($post);
        $postComment->setBody($body);
        $em->persist($postComment);
        $em->flush();
    }

    public function edit(PostComment $postComment, $body, $em)
    {
        $postComment->setBody($body);
        $em->persist($postComment);
        $em->flush();
    }

    public function getTotalComments()
    {
        $query = $this->getEntityManager()->createQuery(
            'SELECT COUNT(p.id) as total_posts_comments
            FROM AppBundle:PostComment p'
        );

        return $query->getResult();
    }

    public function delete(PostComment $postComment, $em)
    {
        $em->remove($postComment);
        $em->flush();
    }
}


text:
package com.crawl.jpa.dao;

import org.springframework.data.jpa.repository.JpaRepository;

import com.crawl.jpa.data.Producto;
public interface ProductoDao extends JpaRepository<Producto, Long>, ProductoDaoCustom{}


text:
Thread.abort_on_exception = true
$stdout.sync = true
$stderr.sync = true

module ApnsProxy
  class Worker

    def initialize
    end

    def run
      trap("SIGINT") { puts "Exiting..." ; Process.exit(0) }
      trap("SIGTERM") { puts "Exiting..." ; Process.exit(0) }
      puts "Started APNS Proxy worker"

      connections = {}
      channel = ApnsProxy::RabbitMq.create_channel
      channel.prefetch(1)
      queue = channel.queue("apnsproxy-notifications", :durable => true, :arguments => {'x-message-ttl' => 120000})
      queue.subscribe do |delivery_info, properties, body|
        begin
          payload = JSON.parse(body)
          puts payload.inspect

          if connections[payload['environment_id']]
            connection = connections[payload['environment_id']]
            puts "Using cached connection for #{payload['environment_id']}"
          else
            environment = Environment.find(payload['environment_id'])
            connection = connections[payload['environment_id']] = environment.create_apnotic_connection
            connection.on(:error) do |e|
              # If an error occurs on our HTTP socket, we'll print the details, delete this
              # connection from the pool.
              puts "Error on HTTP socket: #{e.class} (#{e.message})"
              puts e.backtrace
              connections.delete_if { |k,v| v == connection }
            end
            puts "Created connection for #{payload['environment_id']}"
          end

          if notification = Notification.find_by_id(payload['id'])
            response = connection.push(notification.apnotic_notification)
            if response.status == '200'
              notification.mark_as_pushed!
              puts "[N#{notification.id}] Sent successfully"
            else
              if response.status == '410' || (response.status == '400' && response.body['reason'] == 'BadDeviceToken')
                notification.device.unsubscribe!
              end
              notification.status_code = response.status
              notification.status_reason = response.body['reason']
              notification.save!
              puts "[N#{notification.id}] Failed to send notification (#{response.status}: #{response.body['reason']})"
            end
          end

          @should_retry = false
        rescue => e
          puts "Error while sending notification: #{e.class} (#{e.message})"
          puts e.backtrace
          connections.delete(payload['environment_id'])
          @should_retry = !@should_retry
          if @should_retry
            puts "Retrying once..."
            retry
          end
        end
      end

      loop { sleep 10 }
    end

  end
end


text:
package org.primeframework.mvc.http;

import io.fusionauth.http.server.HTTPRequest;
import io.fusionauth.http.server.HTTPResponse;
import org.primeframework.mvc.PrimeException;

/**
 * This class is a static storage location for the HTTP objects so that they can be later injected via providers.
 *
 * @author Brian Pontarelli
 */
public final class HTTPObjectsHolder {
  private final static ThreadLocal<HTTPRequest> Requests = new ThreadLocal<>();

  private final static ThreadLocal<HTTPResponse> Responses = new ThreadLocal<>();

  private HTTPObjectsHolder() {
  }

  /**
   * Removes the HTTP request for the current thread.
   */
  public static void clearRequest() {
    Requests.remove();
  }

  /**
   * Removes the HTTP response for the current thread.
   */
  public static void clearResponse() {
    Responses.remove();
  }

  /**
   * Gets the HTTP request for the current thread (if any).
   *
   * @return The HTTP request for the current thread.
   */
  public static HTTPRequest getRequest() {
    return Requests.get();
  }

  /**
   * Sets the HTTP request for the current thread.
   *
   * @param request The HTTP request for the current thread.
   */
  public static void setRequest(HTTPRequest request) {
    if (Requests.get() != null) {
      throw new PrimeException("Request is already set into the HTTPObjectsHolder");
    }

    Requests.set(request);
  }

  /**
   * Gets the HTTP response for the current thread (if any).
   *
   * @return The HTTP response for the current thread.
   */
  public static HTTPResponse getResponse() {
    return Responses.get();
  }

  /**
   * Sets the HTTP response for the current thread.
   *
   * @param response The HTTP response for the current thread.
   */
  public static void setResponse(HTTPResponse response) {
    if (Responses.get() != null) {
      throw new PrimeException("Response is already set into the HTTPObjectsHolder");
    }

    Responses.set(response);
  }
}


text:
@interface LHLAdViewController : UIViewController

@end


text:
module Yoolk
  module Liquid
    class CurrencyDrop < BaseDrop
      attributes :id, :code
    end
  end
end


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

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

Search Results

Loading...

References

Release Notes-UVM Connect

Report Macros

Reporting

run
producer

run_phase
producer

Running
examples/ connections/ README.txtexamples_ovm/ connections/ README.txt

Searching...

No Matches