text:
package br.uff.ic.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by guilherme on 07/05/17.
 */
@Entity
public class Documento implements Serializable{
    @Id
    @Column(name = "doc_id")
    private long identificador;

    @Column(name = "doc_datamodificacao")
    private String dataModificacao;

    @Column(name = "doc_titulo")
    private String titulo;

    @Lob
    @Column(name = "doc_conteudo")
    private String conteudo;

    @ManyToOne
    @JoinColumn(name = "editor_id")
    private Editor editor;

    @Column(name = "doc_inconf_erros")
    private Integer inconf_erros;

    @Column(name = "doc_inconf_avisos")
    private Integer inconf_avisos;

    @Column(name = "doc_inconf_notifs")
    private Integer inconf_notifs;

    @Column(name = "doc_tag")
    private String tag;

    public Documento() {
    }

    public Documento(String dataModificacao) {
        this(dataModificacao, null, null, null, null, null);
    }

    public Documento(String dataModificacao, String conteudo) {
        this(dataModificacao, conteudo, null, null, null, null);
    }

    public Documento(String dataModificacao, String titulo, String conteudo, Editor editor, Integer[] inconformidades, String tag){
        this.dataModificacao = dataModificacao;
        this.titulo = titulo;
        this.conteudo = conteudo;
        this.identificador = 1L;
        this.editor = editor;
        this.inconf_erros = inconformidades[0];
        this.inconf_avisos = inconformidades[1];
        this.inconf_notifs = inconformidades[2];
        this.tag = tag;
    }

    public long getIdentificador() {
        return identificador;
    }

    public String getDataModificacao() {
        return dataModificacao;
    }

    public String getConteudo() {
        return conteudo;
    }

    public String getTitulo() {
        return titulo;
    }

    public Editor getEditor() {
        return editor;
    }

    public int getInconf_erros() {
        return inconf_erros;
    }

    public int getInconf_avisos() {
        return inconf_avisos;
    }

    public int getInconf_notifs() {
        return inconf_notifs;
    }

    public String getTag() {
        return tag;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Documento documento = (Documento) o;

        if (getIdentificador() != documento.getIdentificador()) return false;
        return getConteudo().equals(documento.getConteudo());
    }

    @Override
    public int hashCode() {
        int result = (int) (getIdentificador() ^ (getIdentificador() >>> 32));
        result = 31 * result + getConteudo().hashCode();
        return result;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Documento{");
        sb.append("identificador=").append(identificador);
        sb.append(", dataModificacao='").append(dataModificacao).append('\'');
        sb.append(", titulo='").append(titulo).append('\'');
        sb.append(", conteudo='").append(conteudo).append('\'');
        sb.append(", editor=").append(editor);
        sb.append(", inconf_erros=").append(inconf_erros);
        sb.append(", inconf_avisos=").append(inconf_avisos);
        sb.append(", inconf_notifs=").append(inconf_notifs);
        sb.append(", tag='").append(tag).append('\'');
        sb.append('}');
        return sb.toString();
    }
}


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

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>F-Index</title>
<meta name="date" content="2017-07-10">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev Letter

Next Letter

Frames

No Frames

All Classes

C E F G M N P Q R S T Y

F

farming.app - package farming.app

farming.app.utilities - package farming.app.utilities

farmSize - Variable in class farming.app.EstimateIrrigation

The size of the area where the user is farming

C E F G M N P Q R S T Y

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev Letter

Next Letter

Frames

No Frames

All Classes

redpajama_set_name: RedPajamaGithub


text:
class DebuggerPlugin : public QObject, public ChigraphPlugin {
	Q_OBJECT
	Q_PLUGIN_METADATA(IID ChigraphPlugin_iid FILE "debugger.json")
	Q_INTERFACES(ChigraphPlugin)

public:
	DebuggerPlugin();

	BreakpointView& breakpointView() { return *mBreakpointView; }
	VariableView&   variableView() { return *mVariableView; }

	bool stopped() const { return mStopped; }

private slots:
	void toggleBreakpoint();
	void debugStart();
	void continueDebugging();

private:
	// ChigraphPlugin interface
	QVector<ToolView*> toolViews() override {
		return QVector<ToolView*>({mBreakpointView, mVariableView});
	}

	void hoverOverConnection(chi::NodeInstance& inst, int connID);

	bool mStopped = false;

	BreakpointView* mBreakpointView;
	VariableView*   mVariableView;

	QAction* toggleBreakpointAction;
	QAction* debugAction;
	QAction* stepAction;
	QAction* stepInAction;
	QAction* stepOutAction;
	QAction* continueAction;

	std::shared_ptr<chi::Debugger>        mDebugger;
	std::unique_ptr<DebuggerWorkerThread> mEventListener;
	QThread*                              mThread = nullptr;

	QtNodes::NodePainterDelegate* mCurrentNodeDecorator = nullptr;
	chi::NodeInstance*            mCurrentNode          = nullptr;
};

#endif  // CHIGRAPHGUI_DEBUGGER_DEBUGGER_PLUGIN_HPP


text:
using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;

namespace Microsoft.WindowsAzure.Management.SiteRecovery
{
    /// <summary>
    /// Definition of storage operations for the Site Recovery extension.
    /// </summary>
    public partial interface IStorageOperations
    {
        /// <summary>
        /// Get the list of all storages under the vault.
        /// </summary>
        /// <param name='serverId'>
        /// Server Id.
        /// </param>
        /// <param name='customRequestHeaders'>
        /// Request header parameters.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        /// <returns>
        /// The response model for the list storage operation.
        /// </returns>
        Task<StorageListResponse> ListAsync(string serverId, CustomRequestHeaders customRequestHeaders, CancellationToken cancellationToken);

        /// <summary>
        /// Get the list of all storages for the subscription
        /// </summary>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        /// <returns>
        /// The List Storage Accounts operation response.
        /// </returns>
        Task<StorageAccountListResponse> ListAzureStoragesAsync(string subscriptionId, CancellationToken cancellationToken);
    }
}


text:
#ifndef ALIVZEROSDIGIT_H
#define ALIVZEROSDIGIT_H

#include "AliDigit.h"

//_____________________________________________________________________________
class AliVZEROSDigit: public AliDigit  {

 public:
    AliVZEROSDigit();
    AliVZEROSDigit(Int_t pmnumber,
		   Int_t nbins,
		   Float_t *charges,
		   Int_t *labels = 0);
    virtual ~AliVZEROSDigit();
    virtual void Print(const Option_t* option="") const;

    Int_t   PMNumber()   const {return fPMNumber;}
    Int_t   GetNBins()   const {return fNBins;}
    Float_t*GetCharges() const {return fCharges;}
    virtual void Clear(const Option_t* opt="");

  private:
    AliVZEROSDigit(const AliVZEROSDigit& /*sdigit*/);
    AliVZEROSDigit& operator = (const AliVZEROSDigit& /*sdigit*/);

    Int_t   fPMNumber;      // PhotoMultiplier number (0 to 63)
    Int_t   fNBins;         // Number of charge bins
    Float_t*fCharges;       //[fNBins] Array with charges

    ClassDef(AliVZEROSDigit,1)  // VZERO SDigit class
};

#endif


text:
@interface GWLocation ()

// Private interface goes here.

@end

@implementation GWLocation

// Custom logic goes here.

@end


text:
var assertTrue = chrome.test.assertTrue;
var fail = chrome.test.callbackFail;
var pass = chrome.test.callbackPass;

var PERMISSION_DENIED_ERROR = "Permission to access device denied";

var kUUID = "00001101-0000-1000-8000-00805f9b34fb";
var kAddress1 = "11:12:13:14:15:16";

chrome.test.runTests([
  function permissionRequest() {
    chrome.permissions.request(
        {
          permissions: [
            {"bluetoothDevices":[{"deviceAddress":kAddress1}]}
          ]
        },
        pass(function(granted) {
          // They were not granted, and there should be no error.
          assertTrue(granted);
          assertTrue(chrome.runtime.lastError === undefined);

          chrome.bluetooth.connect(
              {
                "deviceAddress":kAddress1,
                "serviceUuid":kUUID
              },
              pass(function(socket) {
                chrome.bluetooth.disconnect(
                    {"socketId":socket.id},
                    pass(function(){})
                );
              }));
        }));
  },
  function permissionDenied() {
    chrome.bluetooth.connect(
        {"deviceAddress":"55:44:33:22:11:00","serviceUuid":kUUID},
        fail(PERMISSION_DENIED_ERROR));
  }
]);


text:
var Radio = React.createClass({
  propTypes: {
    name: React.PropTypes.string.isRequired,
    value: React.PropTypes.string.isRequired,
    label: React.PropTypes.string.isRequired,
    handleUpdate: React.PropTypes.func.isRequired,
  },

  updateValue: function (event) {
    this.props.handleUpdate(event.target.value)
  },

  render: function () {
    var name = this.props.name
    var value = this.props.value
    var label = this.props.label
    return React.createElement(
      'div',
      { className: 'form-element' },
      React.createElement('input', {
        type: 'radio',
        name: name,
        value: value,
        id: name + '-' + value,
        onChange: this.updateValue,
      }),
      React.createElement(
        'label',
        { htmlFor: name + '-' + value },
        label
      )
    )
  }
})

var Comment = React.createClass({
  propTypes: {
    name: React.PropTypes.string.isRequired,
    placeholder: React.PropTypes.string.isRequired,
    label: React.PropTypes.string.isRequired,
    handleUpdate: React.PropTypes.func.isRequired,
  },

  updateValue: function (event) {
    this.props.handleUpdate(event.target.value)
  },

  render: function () {
    var name = this.props.name
    var placeholder = this.props.placeholder
    var label = this.props.label
    return React.createElement(
      'div',
      { className: name },
      React.createElement(
        'label',
        { htmlFor: name },
        label
      ),
      React.createElement('textarea', {
        id: name,
        onChange: this.updateValue,
        placeholder: placeholder,
      })
    )
  }
})

var Form = React.createClass({
  propTypes: {
    onSubmitComplete: React.PropTypes.func.isRequired,
  },
  getInitialState: function () {
    return {
      isUseful: null,
      comment: null,
    }
  },
  handleSubmit: function () {
    if (this.state.isUseful) {
      window.newrelic.addPageAction('feedback', {
        isUseful: this.state.isUseful,
        comment: this.state.comment,
        currentPath: window.location.pathname,
        currentHash: window.location.hash,
      })
      this.props.onSubmitComplete()
    }
  },
  handleCommentUpdate: function (value) {
    this.setState({
      comment: value,
    })
  },
  handleUsefulFeedback: function (value) {
    this.setState({
      isUseful: value,
    })
  },
  render: function () {
    return React.createElement(
      'div',
      null,
      React.createElement(
        'div',
        { className: 'main' },
        React.createElement(
          'h2',
          null,
          'Was this document useful?'
        ),
        React.createElement(Radio, {
          name: 'feedback-useful',
          value: 'yes',
          label: 'Yes',
          handleUpdate: this.handleUsefulFeedback,
        }),
        React.createElement(Radio, {
          name: 'feedback-useful',
          value: 'no',
          label: 'No',
          handleUpdate: this.handleUsefulFeedback,
        }),
        React.createElement(
          'div',
          { className: 'form-element' },
          React.createElement(
            'button',
            { onClick: this.handleSubmit },
            'Submit Feedback'
          )
        )
      ),
      this.state.isUseful && React.createElement(
        'div',
        { className: 'extra' },
        React.createElement(Comment, {
          name: 'comments',
          label: 'Comments',
          placeholder: 'Optional, but appreciated.',
          handleUpdate: this.handleCommentUpdate,
        })
      )
    )
  }
})

var ThankYou = React.createClass({
  render: function () {
    return React.createElement('div', { className: 'thankyou' }, React.createElement(
      'h2',
      null,
      'Thank you for your feedback!'
    ))
  }
})

var Feedback = React.createClass({
  getInitialState: function () {
    return {
      completed: false,
    }
  },
  handleSubmit: function () {
    this.setState({
      completed: true,
    })
  },
  render: function () {
    return this.state.completed ? (
      React.createElement(ThankYou)
    ) : (
      React.createElement(Form, {
        onSubmitComplete: this.handleSubmit,
      })
    )
  },
})

var root = document.getElementById('feedback')
if (root) {
  ReactDOM.render(
    React.createElement(Feedback),
    root
  )
}


text:
package org.jgroups.util;

import org.jgroups.Address;

import java.util.*;
import java.util.stream.Collectors;

/**
 * Contains responses from all members. Marks faulty members.
 * A RspList is a response list used in peer-to-peer protocols. This class is unsynchronized
 */
public class RspList<T> extends HashMap<Address,Rsp<T>> implements Iterable<Rsp<T>> {
    private static final long serialVersionUID=6085009056724212815L;

    public RspList() {
    }

    public RspList(int size) {
        super(size);
    }

    public RspList(Map<Address,Rsp<T>> map) {
        putAll(map);
    }

    /**
     * Returns the value associated with address key
     * @param key
     * @return Object value
     */
    public T getValue(Object key) {
        Rsp<T> rsp=get(key);
        return rsp != null? rsp.getValue() : null;
    }

    public RspList<T> addRsp(Address sender, T retval) {
        Rsp<T> rsp=get(sender);
        if(rsp != null) {
            rsp.setValue(retval);
            return this;
        }
        put(sender, new Rsp<>(retval));
        return this;
    }

    public boolean isReceived(Address sender) {
        Rsp<T> rsp=get(sender);
        return rsp != null && rsp.wasReceived();
    }

    public int numSuspectedMembers() {
        return (int)values().stream().filter(Rsp::wasSuspected).count();
    }

    public int numReceived() {
        return (int)values().stream().filter(Rsp::wasReceived).count();
    }

    /** Returns the first value in the response set. This is random, but we try to return a non-null value first */
    public T getFirst() {
        Optional<Rsp<T>> retval=values().stream().filter(rsp -> rsp.getValue() != null).findFirst();
        return retval.map(Rsp::getValue).orElse(null);
    }

    /**
     * Returns the results from non-suspected members that are not null.
     */
    public List<T> getResults() {
        return values().stream().filter(rsp -> rsp.wasReceived() && rsp.getValue() != null)
          .collect(() -> new ArrayList<>(size()), (list,rsp) -> list.add(rsp.getValue()), (l,r) -> {});
    }

    public List<Address> getSuspectedMembers() {
        return entrySet().stream().filter(entry -> entry.getValue() != null && entry.getValue().wasSuspected())
          .map(Entry::getKey).collect(Collectors.toList());
    }

    public boolean isSuspected(Address sender) {
        Rsp<T> rsp=get(sender);
        return rsp != null && rsp.wasSuspected();
    }

    public String toString() {
        return entrySet().stream()
          .collect(StringBuilder::new,
                   (sb,entry) -> sb.append("[").append(entry.getKey()).append(": ").append(entry.getValue()).append("]\n"),
                   (l,r)->{}).toString();
    }

    boolean contains(Address sender) {
        return containsKey(sender);
    }

    public Iterator<Rsp<T>> iterator() {
        return values().iterator();
    }
}


text:
- Updated various names according to the RoboKassa API changes (#5, #7) ([@SilverFire], [andchir@gmail.com])
- Other minor changes ([@SilverFire], [andchir@gmail.com])

## [3.1.0] - 2019-01-11

- Improved `InvId` property handling ([@SilverFire])

## [3.0] - 2018-11-15

## [2.0] - 2018-11-15

- Implemented omnipay-robokassa merchant ([@SilverFire], [@hiqsol], [@BladeRoot])

## [Development started] - 2015-10-23

[@hiqsol]: https://github.com/hiqsol
[sol@hiqdev.com]: https://github.com/hiqsol
[@SilverFire]: https://github.com/SilverFire
[d.naumenko.a@gmail.com]: https://github.com/SilverFire
[@tafid]: https://github.com/tafid
[andreyklochok@gmail.com]: https://github.com/tafid
[@BladeRoot]: https://github.com/BladeRoot
[bladeroot@gmail.com]: https://github.com/BladeRoot
[Under development]: https://github.com/hiqdev/omnipay-robokassa/compare/3.1.0...HEAD
[2.0]: https://github.com/hiqdev/omnipay-robokassa/releases/tag/2.0
[3.0]: https://github.com/hiqdev/omnipay-robokassa/compare/2.0...3.0
[3.1]: https://github.com/hiqdev/omnipay-robokassa/compare/3.0...3.1
[3.1.0]: https://github.com/hiqdev/omnipay-robokassa/compare/3.0...3.1.0
[3.2.0]: https://github.com/hiqdev/omnipay-robokassa/compare/3.1.0...3.2.0


text:
package com.netflix.simianarmy.aws.janitor.crawler;

import java.util.ArrayList;
import java.util.Collections;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.apache.commons.lang.StringUtils;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.amazonaws.services.autoscaling.model.AutoScalingGroup;
import com.amazonaws.services.autoscaling.model.Instance;
import com.amazonaws.services.autoscaling.model.LaunchConfiguration;
import com.amazonaws.services.autoscaling.model.SuspendedProcess;
import com.amazonaws.services.autoscaling.model.TagDescription;
import com.netflix.simianarmy.Resource;
import com.netflix.simianarmy.ResourceType;
import com.netflix.simianarmy.aws.AWSResource;
import com.netflix.simianarmy.aws.AWSResourceType;
import com.netflix.simianarmy.client.aws.AWSClient;

/**
 * The crawler to crawl AWS auto scaling groups for janitor monkey.
 */
public class ASGJanitorCrawler extends AbstractAWSJanitorCrawler {

    /** The Constant LOGGER. */
    private static final Logger LOGGER = LoggerFactory.getLogger(ASGJanitorCrawler.class);

    /** The name representing the additional field name of instance ids. */
    public static final String ASG_FIELD_INSTANCES = "INSTANCES";

    /** The name representing the additional field name of max ASG size. */
    public static final String ASG_FIELD_MAX_SIZE = "MAX_SIZE";

    /** The name representing the additional field name of ELB names. */
    public static final String ASG_FIELD_ELBS = "ELBS";

    /** The name representing the additional field name of launch configuration name. */
    public static final String ASG_FIELD_LC_NAME = "LAUNCH_CONFIGURATION_NAME";

    /** The name representing the additional field name of launch configuration creation time. */
    public static final String ASG_FIELD_LC_CREATION_TIME = "LAUNCH_CONFIGURATION_CREATION_TIME";

    /** The name representing the additional field name of ASG suspension time from ELB. */
    public static final String ASG_FIELD_SUSPENSION_TIME = "ASG_SUSPENSION_TIME";

    private final Map<String, LaunchConfiguration> nameToLaunchConfig = new HashMap<String, LaunchConfiguration>();

    /** The regular expression patter below is for the termination reason added by AWS when
     * an ASG is suspended from ELB's traffic.
     */
    private static final Pattern SUSPENSION_REASON_PATTERN =
            Pattern.compile("User suspended at (\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}).*");

    /** The date format used to print or parse the suspension time value. **/
    public static final DateTimeFormatter SUSPENSION_TIME_FORMATTER =
            DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ss");

    /**
     * Instantiates a new basic ASG crawler.
     * @param awsClient
     *            the aws client
     */
    public ASGJanitorCrawler(AWSClient awsClient) {
        super(awsClient);
    }

    @Override
    public EnumSet<? extends ResourceType> resourceTypes() {
        return EnumSet.of(AWSResourceType.ASG);
    }

    @Override
    public List<Resource> resources(ResourceType resourceType) {
        if ("ASG".equals(resourceType.name())) {
            return getASGResources();
        }
        return Collections.emptyList();
    }

    @Override
    public List<Resource> resources(String... asgNames) {
        return getASGResources(asgNames);
    }

    private List<Resource> getASGResources(String... asgNames) {
        AWSClient awsClient = getAWSClient();

        List<LaunchConfiguration> launchConfigurations = awsClient.describeLaunchConfigurations();
        for (LaunchConfiguration lc : launchConfigurations) {
            nameToLaunchConfig.put(lc.getLaunchConfigurationName(), lc);
        }

        List<Resource> resources = new LinkedList<Resource>();
        for (AutoScalingGroup asg : awsClient.describeAutoScalingGroups(asgNames)) {
            Resource asgResource = new AWSResource().withId(asg.getAutoScalingGroupName())
                    .withResourceType(AWSResourceType.ASG).withRegion(awsClient.region())
                    .withLaunchTime(asg.getCreatedTime());
            for (TagDescription tag : asg.getTags()) {
                asgResource.setTag(tag.getKey(), tag.getValue());
            }
            asgResource.setDescription(String.format("%d instances", asg.getInstances().size()));
            asgResource.setOwnerEmail(getOwnerEmailForResource(asgResource));
            if (asg.getStatus() != null) {
                ((AWSResource) asgResource).setAWSResourceState(asg.getStatus());
            }
            Integer maxSize = asg.getMaxSize();
            if (maxSize != null) {
                asgResource.setAdditionalField(ASG_FIELD_MAX_SIZE, String.valueOf(maxSize));
            }
            // Adds instances and ELBs as additional fields.
            List<String> instances = new ArrayList<String>();
            for (Instance instance : asg.getInstances()) {
                instances.add(instance.getInstanceId());
            }
            asgResource.setAdditionalField(ASG_FIELD_INSTANCES, StringUtils.join(instances, ","));
            asgResource.setAdditionalField(ASG_FIELD_ELBS,
                    StringUtils.join(asg.getLoadBalancerNames(), ","));
            String lcName = asg.getLaunchConfigurationName();
            LaunchConfiguration lc = nameToLaunchConfig.get(lcName);
            if (lc != null) {
                asgResource.setAdditionalField(ASG_FIELD_LC_NAME, lcName);
            }
            if (lc != null && lc.getCreatedTime() != null) {
                asgResource.setAdditionalField(ASG_FIELD_LC_CREATION_TIME,
                        String.valueOf(lc.getCreatedTime().getTime()));
            }
            // sets the field for the time when the ASG's traffic is suspended from ELB
            for (SuspendedProcess sp : asg.getSuspendedProcesses()) {
                if ("AddToLoadBalancer".equals(sp.getProcessName())) {
                    String suspensionTime = getSuspensionTimeString(sp.getSuspensionReason());
                    if (suspensionTime != null) {
                        LOGGER.info(String.format("Suspension time of ASG %s is %s",
                                asg.getAutoScalingGroupName(), suspensionTime));
                        asgResource.setAdditionalField(ASG_FIELD_SUSPENSION_TIME, suspensionTime);
                        break;
                    }
                }
            }
            resources.add(asgResource);
        }
        return resources;
    }

    private String getSuspensionTimeString(String suspensionReason) {
        if (suspensionReason == null) {
            return null;
        }
        Matcher matcher = SUSPENSION_REASON_PATTERN.matcher(suspensionReason);
        if (matcher.matches()) {
            return matcher.group(1);
        }
        return null;
    }
}


text:
<!doctype html>

  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

  <title>The World Factbook</title>

  <meta name="description" content="">
  <meta name="viewport" content="width=device-width">

  <link href="../css/fullscreen-external.css" rel="stylesheet" type="text/css">

  <link rel="stylesheet" type="text/css" href="../styles/jquery.ui.core.css">
  <link rel="stylesheet" type="text/css" href="../styles/jquery.qtip.css">
  <link rel="stylesheet" type="text/css" href="../styles/listnav.css"/>
  <link rel="stylesheet" type="text/css" href="../styles/navigation.css">
  <link rel="stylesheet" type="text/css" href="../styles/wfb_styles.css">
  <link rel="stylesheet" type="text/css" href="../scripts/galleria/themes/classic/galleria.classic.css">

<link rel="stylesheet" type="text/css" href="../scripts/galleria/themes/classic/galleria.classic.css">

  Javascript must be enabled for the correct page display

       	skip to content

          <hgroup>

Central Intelligence Agency

The Work Of A Nation. The Center of Intelligence.

          </hgroup>

Report Threats

رعربيعربي

Contact

              <form id="ciaSearchForm" method="get" action="/search">
                <fieldset>
                  <legend class="visuallyhidden">Search CIA.gov</legend>
                  Search
                  <input name="q" type="text" class="text" id="q" maxlength="2047" placeholder="Search CIA.gov..."/>
				  <input type="hidden" name="site" value="CIA" />
				  <input type="hidden" name="output" value="xml_no_dtd" />
				  <input type="hidden" name="client" value="CIA" />
				  <input type="hidden" name="myAction" value="/search" />
				  <input type="hidden" name="proxystylesheet" value="CIA" />
				  <input type="hidden" name="submitMethod" value="get" />
                  <input type="submit" value="Search" class="submit" />
                </fieldset>
              </form>

عربي

中文

English

Français

Русский

Español

More Languages

Navigation

              Home

              About CIA

Today's CIA

Leadership

CIA Vision, Mission & Values

Tour Headquarters

CIA Museum

History of the CIA

FAQs

NoFEAR Act

Site Policies

About CIA

Discover the CIA history, mission, vision and values.

              Careers & Internships

  Career Opportunities

  Student Opportunities

  Application Process

  Life at CIA

  Diversity

  Military Transition

  Diversions & Information

  FAQs

Careers & Internships

Your talent. Your diverse skills. Our mission. Learn more about Careers Opportunities at CIA.

              Offices of CIA

  Intelligence & Analysis

  Clandestine Service

  Science & Technology

  Support to Mission

  Human Resources

  Public Affairs

  General Counsel

  Equal Employment Opportunity

  Congressional Affairs

  Inspector General

  Military Affairs

Offices of CIA

Learn how the CIA is organized into directorates and key offices, responsible for securing our nation.

              News & Information

  Press Releases & Statements

  Speeches & Testimony

  CIA & the War on Terrorism

  Featured Story Archive

  What’s New Archive

  Your News

News & Information

The most up-to-date CIA news, press releases, information and more.

              Library

  Publications

  Center for the Study of Intelligence

  Freedom of Information Act Electronic Reading Room

  Kent Center Occasional Papers

  Intelligence Literature

  Reports

  Related Links

  Video Center

Library

Our open-source library houses the thousands of documents, periodicals, maps and reports released to the public.

              Kids' Zone

  K-5th Grade

  6-12th Grade

  Parents & Teachers

  Games

  Related Links

  Privacy Statement

Kids' Zone

Learn more about the Agency – and find some top secret things you won't see anywhere else.

Library

Secondary Navigation

Library

                     Publications

The World Factbook

World Leaders

CIA Maps

Historical Collection Publications

Additional Publications

Center for the Study of Intelligence

Freedom of Information Act Electronic Reading Room

Kent Center Occasional Papers

Intelligence Literature: Suggested Reading List

Reports

Video Center

Related Links

Home

Library

Publications

The World Factbook

<map name="Map" id="Map">
	<area shape="poly" coords="478,17,624,17,615,0,490,0" href="https://www.cia.gov/library/publications/cia-maps-publications/index.html" target="_blank" />
</map>

<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />

	<form action="#" method="GET">
		<select name="selecter_links" class="selecter_links">
		<option value="">Please select a country to view</option>

				<option value="../geos/xx.html"> World </option>

				<option value="../geos/af.html"> Afghanistan </option>

				<option value="../geos/ax.html"> Akrotiri </option>

				<option value="../geos/al.html"> Albania </option>

				<option value="../geos/ag.html"> Algeria </option>

				<option value="../geos/aq.html"> American Samoa </option>

				<option value="../geos/an.html"> Andorra </option>

				<option value="../geos/ao.html"> Angola </option>

				<option value="../geos/av.html"> Anguilla </option>

				<option value="../geos/ay.html"> Antarctica </option>

				<option value="../geos/ac.html"> Antigua and Barbuda </option>

				<option value="../geos/xq.html"> Arctic Ocean </option>

				<option value="../geos/ar.html"> Argentina </option>

				<option value="../geos/am.html"> Armenia </option>

				<option value="../geos/aa.html"> Aruba </option>

				<option value="../geos/at.html"> Ashmore and Cartier Islands </option>

				<option value="../geos/zh.html"> Atlantic Ocean </option>

				<option value="../geos/as.html"> Australia </option>

				<option value="../geos/au.html"> Austria </option>

				<option value="../geos/aj.html"> Azerbaijan </option>

				<option value="../geos/bf.html"> Bahamas, The </option>

				<option value="../geos/ba.html"> Bahrain </option>

				<option value="../geos/um.html"> Baker Island </option>

				<option value="../geos/bg.html"> Bangladesh </option>

				<option value="../geos/bb.html"> Barbados </option>

				<option value="../geos/bo.html"> Belarus </option>

				<option value="../geos/be.html"> Belgium </option>

				<option value="../geos/bh.html"> Belize </option>

				<option value="../geos/bn.html"> Benin </option>

				<option value="../geos/bd.html"> Bermuda </option>

				<option value="../geos/bt.html"> Bhutan </option>

				<option value="../geos/bl.html"> Bolivia </option>

				<option value="../geos/bk.html"> Bosnia and Herzegovina </option>

				<option value="../geos/bc.html"> Botswana </option>

				<option value="../geos/bv.html"> Bouvet Island </option>

				<option value="../geos/br.html"> Brazil </option>

				<option value="../geos/io.html"> British Indian Ocean Territory </option>

				<option value="../geos/vi.html"> British Virgin Islands </option>

				<option value="../geos/bx.html"> Brunei </option>

				<option value="../geos/bu.html"> Bulgaria </option>

				<option value="../geos/uv.html"> Burkina Faso </option>

				<option value="../geos/bm.html"> Burma </option>

				<option value="../geos/by.html"> Burundi </option>

				<option value="../geos/cv.html"> Cabo Verde </option>

				<option value="../geos/cb.html"> Cambodia </option>

				<option value="../geos/cm.html"> Cameroon </option>

				<option value="../geos/ca.html"> Canada </option>

				<option value="../geos/cj.html"> Cayman Islands </option>

				<option value="../geos/ct.html"> Central African Republic </option>

				<option value="../geos/cd.html"> Chad </option>

				<option value="../geos/ci.html"> Chile </option>

				<option value="../geos/ch.html"> China </option>

				<option value="../geos/kt.html"> Christmas Island </option>

				<option value="../geos/ip.html"> Clipperton Island </option>

				<option value="../geos/ck.html"> Cocos (Keeling) Islands </option>

				<option value="../geos/co.html"> Colombia </option>

				<option value="../geos/cn.html"> Comoros </option>

				<option value="../geos/cg.html"> Congo, Democratic Republic of the </option>

				<option value="../geos/cf.html"> Congo, Republic of the </option>

				<option value="../geos/cw.html"> Cook Islands </option>

				<option value="../geos/cr.html"> Coral Sea Islands </option>

				<option value="../geos/cs.html"> Costa Rica </option>

				<option value="../geos/iv.html"> Cote d'Ivoire </option>

				<option value="../geos/hr.html"> Croatia </option>

				<option value="../geos/cu.html"> Cuba </option>

				<option value="../geos/cc.html"> Curacao </option>

				<option value="../geos/cy.html"> Cyprus </option>

				<option value="../geos/ez.html"> Czech Republic </option>

				<option value="../geos/da.html"> Denmark </option>

				<option value="../geos/dx.html"> Dhekelia </option>

				<option value="../geos/dj.html"> Djibouti </option>

				<option value="../geos/do.html"> Dominica </option>

				<option value="../geos/dr.html"> Dominican Republic </option>

				<option value="../geos/ec.html"> Ecuador </option>

				<option value="../geos/eg.html"> Egypt </option>

				<option value="../geos/es.html"> El Salvador </option>

				<option value="../geos/ek.html"> Equatorial Guinea </option>

				<option value="../geos/er.html"> Eritrea </option>

				<option value="../geos/en.html"> Estonia </option>

				<option value="../geos/et.html"> Ethiopia </option>

				<option value="../geos/fk.html"> Falkland Islands (Islas Malvinas) </option>

				<option value="../geos/fo.html"> Faroe Islands </option>

				<option value="../geos/fj.html"> Fiji </option>

				<option value="../geos/fi.html"> Finland </option>

				<option value="../geos/fr.html"> France </option>

				<option value="../geos/fp.html"> French Polynesia </option>

				<option value="../geos/fs.html"> French Southern and Antarctic Lands </option>

				<option value="../geos/gb.html"> Gabon </option>

				<option value="../geos/ga.html"> Gambia, The </option>

				<option value="../geos/gz.html"> Gaza Strip </option>

				<option value="../geos/gg.html"> Georgia </option>

				<option value="../geos/gm.html"> Germany </option>

				<option value="../geos/gh.html"> Ghana </option>

				<option value="../geos/gi.html"> Gibraltar </option>

				<option value="../geos/gr.html"> Greece </option>

				<option value="../geos/gl.html"> Greenland </option>

				<option value="../geos/gj.html"> Grenada </option>

				<option value="../geos/gq.html"> Guam </option>

				<option value="../geos/gt.html"> Guatemala </option>

				<option value="../geos/gk.html"> Guernsey </option>

				<option value="../geos/gv.html"> Guinea </option>

				<option value="../geos/pu.html"> Guinea-Bissau </option>

				<option value="../geos/gy.html"> Guyana </option>

				<option value="../geos/ha.html"> Haiti </option>

				<option value="../geos/hm.html"> Heard Island and McDonald Islands </option>

				<option value="../geos/vt.html"> Holy See (Vatican City) </option>

				<option value="../geos/ho.html"> Honduras </option>

				<option value="../geos/hk.html"> Hong Kong </option>

				<option value="../geos/um.html"> Howland Island </option>

				<option value="../geos/hu.html"> Hungary </option>

				<option value="../geos/ic.html"> Iceland </option>

				<option value="../geos/in.html"> India </option>

				<option value="../geos/xo.html"> Indian Ocean </option>

				<option value="../geos/id.html"> Indonesia </option>

				<option value="../geos/ir.html"> Iran </option>

				<option value="../geos/iz.html"> Iraq </option>

				<option value="../geos/ei.html"> Ireland </option>

				<option value="../geos/im.html"> Isle of Man </option>

				<option value="../geos/is.html"> Israel </option>

				<option value="../geos/it.html"> Italy </option>

				<option value="../geos/jm.html"> Jamaica </option>

				<option value="../geos/jn.html"> Jan Mayen </option>

				<option value="../geos/ja.html"> Japan </option>

				<option value="../geos/um.html"> Jarvis Island </option>

				<option value="../geos/je.html"> Jersey </option>

				<option value="../geos/um.html"> Johnston Atoll </option>

				<option value="../geos/jo.html"> Jordan </option>

				<option value="../geos/kz.html"> Kazakhstan </option>

				<option value="../geos/ke.html"> Kenya </option>

				<option value="../geos/um.html"> Kingman Reef </option>

				<option value="../geos/kr.html"> Kiribati </option>

				<option value="../geos/kn.html"> Korea, North </option>

				<option value="../geos/ks.html"> Korea, South </option>

				<option value="../geos/kv.html"> Kosovo </option>

				<option value="../geos/ku.html"> Kuwait </option>

				<option value="../geos/kg.html"> Kyrgyzstan </option>

				<option value="../geos/la.html"> Laos </option>

				<option value="../geos/lg.html"> Latvia </option>

				<option value="../geos/le.html"> Lebanon </option>

				<option value="../geos/lt.html"> Lesotho </option>

				<option value="../geos/li.html"> Liberia </option>

				<option value="../geos/ly.html"> Libya </option>

				<option value="../geos/ls.html"> Liechtenstein </option>

				<option value="../geos/lh.html"> Lithuania </option>

				<option value="../geos/lu.html"> Luxembourg </option>

				<option value="../geos/mc.html"> Macau </option>

				<option value="../geos/mk.html"> Macedonia </option>

				<option value="../geos/ma.html"> Madagascar </option>

				<option value="../geos/mi.html"> Malawi </option>

				<option value="../geos/my.html"> Malaysia </option>

				<option value="../geos/mv.html"> Maldives </option>

				<option value="../geos/ml.html"> Mali </option>

				<option value="../geos/mt.html"> Malta </option>

				<option value="../geos/rm.html"> Marshall Islands </option>

				<option value="../geos/mr.html"> Mauritania </option>

				<option value="../geos/mp.html"> Mauritius </option>

				<option value="../geos/mx.html"> Mexico </option>

				<option value="../geos/fm.html"> Micronesia, Federated States of </option>

				<option value="../geos/um.html"> Midway Islands </option>

				<option value="../geos/md.html"> Moldova </option>

				<option value="../geos/mn.html"> Monaco </option>

				<option value="../geos/mg.html"> Mongolia </option>

				<option value="../geos/mj.html"> Montenegro </option>

				<option value="../geos/mh.html"> Montserrat </option>

				<option value="../geos/mo.html"> Morocco </option>

				<option value="../geos/mz.html"> Mozambique </option>

				<option value="../geos/wa.html"> Namibia </option>

				<option value="../geos/nr.html"> Nauru </option>

				<option value="../geos/bq.html"> Navassa Island </option>

				<option value="../geos/np.html"> Nepal </option>

				<option value="../geos/nl.html"> Netherlands </option>

				<option value="../geos/nc.html"> New Caledonia </option>

				<option value="../geos/nz.html"> New Zealand </option>

				<option value="../geos/nu.html"> Nicaragua </option>

				<option value="../geos/ng.html"> Niger </option>

				<option value="../geos/ni.html"> Nigeria </option>

				<option value="../geos/ne.html"> Niue </option>

				<option value="../geos/nf.html"> Norfolk Island </option>

				<option value="../geos/cq.html"> Northern Mariana Islands </option>

				<option value="../geos/no.html"> Norway </option>

				<option value="../geos/mu.html"> Oman </option>

				<option value="../geos/zn.html"> Pacific Ocean </option>

				<option value="../geos/pk.html"> Pakistan </option>

				<option value="../geos/ps.html"> Palau </option>

				<option value="../geos/um.html"> Palmyra Atoll </option>

				<option value="../geos/pm.html"> Panama </option>

				<option value="../geos/pp.html"> Papua New Guinea </option>

				<option value="../geos/pf.html"> Paracel Islands </option>

				<option value="../geos/pa.html"> Paraguay </option>

				<option value="../geos/pe.html"> Peru </option>

				<option value="../geos/rp.html"> Philippines </option>

				<option value="../geos/pc.html"> Pitcairn Islands </option>

				<option value="../geos/pl.html"> Poland </option>

				<option value="../geos/po.html"> Portugal </option>

				<option value="../geos/rq.html"> Puerto Rico </option>

				<option value="../geos/qa.html"> Qatar </option>

				<option value="../geos/ro.html"> Romania </option>

				<option value="../geos/rs.html"> Russia </option>

				<option value="../geos/rw.html"> Rwanda </option>

				<option value="../geos/tb.html"> Saint Barthelemy </option>

				<option value="../geos/sh.html"> Saint Helena, Ascension, and Tristan da Cunha </option>

				<option value="../geos/sc.html"> Saint Kitts and Nevis </option>

				<option value="../geos/st.html"> Saint Lucia </option>

				<option value="../geos/rn.html"> Saint Martin </option>

				<option value="../geos/sb.html"> Saint Pierre and Miquelon </option>

				<option value="../geos/vc.html"> Saint Vincent and the Grenadines </option>

				<option value="../geos/ws.html"> Samoa </option>

				<option value="../geos/sm.html"> San Marino </option>

				<option value="../geos/tp.html"> Sao Tome and Principe </option>

				<option value="../geos/sa.html"> Saudi Arabia </option>

				<option value="../geos/sg.html"> Senegal </option>

				<option value="../geos/ri.html"> Serbia </option>

				<option value="../geos/se.html"> Seychelles </option>

				<option value="../geos/sl.html"> Sierra Leone </option>

				<option value="../geos/sn.html"> Singapore </option>

				<option value="../geos/sk.html"> Sint Maarten </option>

				<option value="../geos/lo.html"> Slovakia </option>

				<option value="../geos/si.html"> Slovenia </option>

				<option value="../geos/bp.html"> Solomon Islands </option>

				<option value="../geos/so.html"> Somalia </option>

				<option value="../geos/sf.html"> South Africa </option>

				<option value="../geos/oo.html"> Southern Ocean </option>

				<option value="../geos/sx.html"> South Georgia and South Sandwich Islands </option>

				<option value="../geos/od.html"> South Sudan </option>

				<option value="../geos/sp.html"> Spain </option>

				<option value="../geos/pg.html"> Spratly Islands </option>

				<option value="../geos/ce.html"> Sri Lanka </option>

				<option value="../geos/su.html"> Sudan </option>

				<option value="../geos/ns.html"> Suriname </option>

				<option value="../geos/sv.html"> Svalbard </option>

				<option value="../geos/wz.html"> Swaziland </option>

				<option value="../geos/sw.html"> Sweden </option>

				<option value="../geos/sz.html"> Switzerland </option>

				<option value="../geos/sy.html"> Syria </option>

				<option value="../geos/tw.html"> Taiwan </option>

				<option value="../geos/ti.html"> Tajikistan </option>

				<option value="../geos/tz.html"> Tanzania </option>

				<option value="../geos/th.html"> Thailand </option>

				<option value="../geos/tt.html"> Timor-Leste </option>

				<option value="../geos/to.html"> Togo </option>

				<option value="../geos/tl.html"> Tokelau </option>

				<option value="../geos/tn.html"> Tonga </option>

				<option value="../geos/td.html"> Trinidad and Tobago </option>

				<option value="../geos/ts.html"> Tunisia </option>

				<option value="../geos/tu.html"> Turkey </option>

				<option value="../geos/tx.html"> Turkmenistan </option>

				<option value="../geos/tk.html"> Turks and Caicos Islands </option>

				<option value="../geos/tv.html"> Tuvalu </option>

				<option value="../geos/ug.html"> Uganda </option>

				<option value="../geos/up.html"> Ukraine </option>

				<option value="../geos/ae.html"> United Arab Emirates </option>

				<option value="../geos/uk.html"> United Kingdom </option>

				<option value="../geos/us.html"> United States </option>

				<option value="../geos/um.html"> United States Pacific Island Wildlife Refuges </option>

				<option value="../geos/uy.html"> Uruguay </option>

				<option value="../geos/uz.html"> Uzbekistan </option>

				<option value="../geos/nh.html"> Vanuatu </option>

				<option value="../geos/ve.html"> Venezuela </option>

				<option value="../geos/vm.html"> Vietnam </option>

				<option value="../geos/vq.html"> Virgin Islands </option>

				<option value="../geos/wq.html"> Wake Island </option>

				<option value="../geos/wf.html"> Wallis and Futuna </option>

				<option value="../geos/we.html"> West Bank </option>

				<option value="../geos/wi.html"> Western Sahara </option>

				<option value="../geos/ym.html"> Yemen </option>

				<option value="../geos/za.html"> Zambia </option>

				<option value="../geos/zi.html"> Zimbabwe </option>

				<option value="../geos/ee.html"> European Union </option>

		</select>
	</form>

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

ABOUT

  History

  Copyright and Contributors

  Purchasing

  Did You Know?

REFERENCES

  Regional and World Maps

  Flags of the World

  Gallery of Covers

  Definitions and Notes

  Guide to Country Profiles

  Guide to Country Comparisons

  The World Factbook Users Guide

APPENDICES

  A: abbreviations

  B: international organizations and groups

  C: selected international environmental agreements

  D: cross-reference list of country data codes

  E: cross-reference list of hydrographic data codes

  F: cross-reference list of geographic names

  G: weights and measures

FAQs

  CONTACT

										Australia-Oceania :: Wallis and Futuna

(overseas collectivity of France)

							Page last updated on June 20, 2014

									 <img src="../graphics/flags/large/wf-lgflag.gif"
												border="0"
												style="cursor:pointer; border: 1px solid #CCC; "
												id="flagDialog2_wf"
												name="wf"
												regioncode="aus"
												countrycode="wf"
												countryname="Wallis and Futuna"
												flagsubfield="note"
												countryaffiliation="(overseas collectivity of France)"
												flagdescription="unofficial, local flag has a red field with four white isosceles triangles in the middle, representing the three native kings of the islands and the French administrator; the apexes of the triangles are oriented inward and at right angles to each other; the flag of France, outlined in white on two sides, is in the upper hoist quadrant the design is derived from an original red banner with a white cross pattee that was introduced in the 19th century by French missionaries; the flag of France is used for official occasions"
												flagdescriptionnote="the design is derived from an original red banner with a white cross pattee that was introduced in the 19th century by French missionaries; the flag of France is used for official occasions"
												region="Australia-Oceania"
												class="flagFit aus_lgflagborder"
												typeimage = "flag">

							 <img src="../graphics/locator/aus/wf_large_locator.gif"
											border="0"
											style="cursor:pointer; border: 1px solid #CCC;"
											id="locatorDialog2_wf"
											name="wf"
											regioncode="aus"
											countrycode="wf"
											countryname="Wallis and Futuna"
											flagsubfield=""
											countryaffiliation=""
											flagdescription=""
											flagdescriptionnote=""
											region="Australia-Oceania"
											class="locatorFit aus_lgflagborder"
											typeimage = "locator">

   no photos available

						EXPAND ALLCOLLAPSE ALL

<link rel="stylesheet" href="jClocksGMT-master/css/jClocksGMT.css">

Introduction ::Wallis and Futuna

										 Background:

								<a href="../fields/2028.html#wf" title="">

The Futuna island group was discovered by the Dutch in 1616 and Wallis by the British in 1767, but it was the French who declared a protectorate over the islands in 1842, and took official control of them between 1886 and 1888. Notably, Wallis and Futuna was the only French colony to side with the Vichy regime during World War II, a phase that ended in May of 1942 with the arrival of 2,000 American troops. In 1959, the inhabitants of the islands voted to become a French overseas territory and officially assumed this status in July 1961.

<link rel="stylesheet" href="jClocksGMT-master/css/jClocksGMT.css">

Geography ::Wallis and Futuna

										 Location:

								<a href="../fields/2144.html#wf" title="">

Oceania, islands in the South Pacific Ocean, about two-thirds of the way from Hawaii to New Zealand

												 Geographic coordinates:

												<a href="../fields/2011.html#wf" title="">

13 18 S, 176 12 W

												 Map references:

												<a href="../fields/2145.html#wf" title="">

  Oceania

												 Area:

												<a href="../fields/2147.html#wf" title="">

								total:

								142 sq km

											country comparison to the world:   221

									land:

									142 sq km

									water:

									0 sq km

										note:

									includes Ile Uvea (Wallis Island), Ile Futuna (Futuna Island), Ile Alofi, and 20 islets

												 Area - comparative:

												<a href="../fields/2023.html#wf" title="">

1.5 times the size of Washington, DC

												 Land boundaries:

												<a href="../fields/2096.html#wf" title="">

0 km

												 Coastline:

												<a href="../fields/2060.html#wf" title="">

129 km

												 Maritime claims:

												<a href="../fields/2106.html#wf" title="">

								territorial sea:

								12 nm

									exclusive economic zone:

									200 nm

												 Climate:

												<a href="../fields/2059.html#wf" title="">

tropical; hot, rainy season (November to April); cool, dry season (May to October); rains 2,500-3,000 mm per year (80% humidity); average temperature 26.6 degrees C

												 Terrain:

												<a href="../fields/2125.html#wf" title="">

volcanic origin; low hills

												 Elevation extremes:

												<a href="../fields/2020.html#wf" title="">

								lowest point:

								Pacific Ocean 0 m

									highest point:

									Mont Singavi (on Futuna) 765 m

												 Natural resources:

												<a href="../fields/2111.html#wf" title="">

NEGL

												 Land use:

												<a href="../fields/2097.html#wf" title="">

								arable land:

								7.14%

									permanent crops:

									35.71%

									other:

									57.15% (2011)

												 Irrigated land:

												<a href="../fields/2146.html#wf" title="">

NA

												 Natural hazards:

												<a href="../fields/2021.html#wf" title="">

NA

												 Environment - current issues:

												<a href="../fields/2032.html#wf" title="">

deforestation (only small portions of the original forests remain) largely as a result of the continued use of wood as the main fuel source; as a consequence of cutting down the forests, the mountainous terrain of Futuna is particularly prone to erosion; there are no permanent settlements on Alofi because of the lack of natural freshwater resources

												 Geography - note:

												<a href="../fields/2113.html#wf" title="">

both island groups have fringing reefs

<link rel="stylesheet" href="jClocksGMT-master/css/jClocksGMT.css">

People and Society ::Wallis and Futuna

										 Nationality:

								<a href="../fields/2110.html#wf" title="">

noun: Wallisian(s), Futunan(s), or Wallis and Futuna Islanders

									adjective:

									Wallisian, Futunan, or Wallis and Futuna Islander

												 Ethnic groups:

												<a href="../fields/2075.html#wf" title="">

Polynesian

												 Languages:

												<a href="../fields/2098.html#wf" title="">

Wallisian (indigenous Polynesian language) 58.9%, Futunian 30.1%, French (official) 10.8%, other 0.2% (2003 census)

												 Religions:

												<a href="../fields/2122.html#wf" title="">

Roman Catholic 99%, other 1%

												 Population:

												<a href="../fields/2119.html#wf" title="">

15,561 (July 2014 est.)

											country comparison to the world:   224

												 Age structure:

												<a href="../fields/2010.html#wf" title="">

								0-14 years:

								23.4% (male 1,902/female 1,741)

									15-24 years:

									17.8% (male 1,449/female 1,320)

									25-54 years:

									40.7% (male 3,147/female 3,183)

									55-64 years:

									9.2% (male 719/female 709)

									65 years and over:

									8.6% (male 663/female 728) (2014 est.)

										population pyramid: <a href="javascript:void();" title=""> <img src="../graphics/poppyramid_icon.jpg"
											border="0"
											style="cursor:pointer; border: 0px solid #CCC;"
											id="flagDialog2_wf"
											name="wf"
											regioncode="aus"
											countrycode="wf"
											countryname="Wallis and Futuna"
											flagsubfield="note"
											countryaffiliation="(overseas collectivity of France)"
											flagdescription="unofficial, local flag has a red field with four white isosceles triangles in the middle, representing the three native kings of the islands and the French administrator; the apexes of the triangles are oriented inward and at right angles to each other; the flag of France, outlined in white on two sides, is in the upper hoist quadrant"
											flagdescriptionnote="the design is derived from an original red banner with a white cross pattee that was introduced in the 19th century by French missionaries; the flag of France is used for official occasions"
											region="Australia-Oceania"
											typeimage="population"
											>

												 Median age:

												<a href="../fields/2177.html#wf" title="">

								total:

								30.3 years

									male:

									29.3 years

									female:

									31.5 years (2014 est.)

												 Population growth rate:

												<a href="../fields/2002.html#wf" title="">

0.33% (2014 est.)

											country comparison to the world:   168

												 Birth rate:

												<a href="../fields/2054.html#wf" title="">

13.56 births/1,000 population (2014 est.)

											country comparison to the world:   148

												 Death rate:

												<a href="../fields/2066.html#wf" title="">

4.95 deaths/1,000 population (2014 est.)

											country comparison to the world:   188

												 Net migration rate:

												<a href="../fields/2112.html#wf" title="">

-5.27 migrant(s)/1,000 population

											country comparison to the world:   195

										note:

									there has been steady emigration from Wallis and Futuna to New Caledonia (2014 est.)

												 Major urban areas - population:

												<a href="../fields/2219.html#wf" title="">

MATA-UTU (capital) 1,000 (2011)

												 Sex ratio:

												<a href="../fields/2018.html#wf" title="">

								at birth:

								1.05 male(s)/female

									0-14 years:

									1.09 male(s)/female

									15-24 years:

									1.1 male(s)/female

									25-54 years:

									0.99 male(s)/female

									55-64 years:

									1.03 male(s)/female

									65 years and over:

									0.89 male(s)/female

									total population:

									1.02 male(s)/female (2014 est.)

												 Infant mortality rate:

												<a href="../fields/2091.html#wf" title="">

								total:

								4.49 deaths/1,000 live births

											country comparison to the world:   187

									male:

									4.72 deaths/1,000 live births

									female:

									4.24 deaths/1,000 live births (2014 est.)

												 Life expectancy at birth:

												<a href="../fields/2102.html#wf" title="">

								total population:

								79.42 years

											country comparison to the world:   44

									male:

									76.43 years

									female:

									82.55 years (2014 est.)

												 Total fertility rate:

												<a href="../fields/2127.html#wf" title="">

1.76 children born/woman (2014 est.)

											country comparison to the world:   163

												 Sanitation facility access:

												<a href="../fields/2217.html#wf" title="">

								improved:

rural: 96% of population

total: 96% of population

									unimproved:

rural: 4% of population

total: 4% of population (2008 est.)

												 HIV/AIDS - adult prevalence rate:

												<a href="../fields/2155.html#wf" title="">

NA

												 HIV/AIDS - people living with HIV/AIDS:

												<a href="../fields/2156.html#wf" title="">

NA

												 HIV/AIDS - deaths:

												<a href="../fields/2157.html#wf" title="">

NA

												 Literacy:

												<a href="../fields/2103.html#wf" title="">

								definition:

								age 15 and over can read and write

									total population:

									50%

									male:

									50%

									female:

									50% (1969 est.)

<link rel="stylesheet" href="jClocksGMT-master/css/jClocksGMT.css">

Government ::Wallis and Futuna

										 Country name:

								<a href="../fields/2142.html#wf" title="">

conventional long form: Territory of the Wallis and Futuna Islands

									conventional short form:

									Wallis and Futuna

									local long form:

									Territoire des Iles Wallis et Futuna

									local short form:

									Wallis et Futuna

												 Dependency status:

												<a href="../fields/2006.html#wf" title="">

overseas territory of France

												 Government type:

												<a href="../fields/2128.html#wf" title="">

parliamentary representive democratic French overseas collectivity

												 Capital:

												<a href="../fields/2057.html#wf" title="">

								name:

								Mata-Utu (on Ile Uvea)

									geographic coordinates:

									13 57 S, 171 56 W

									time difference:

									UTC+12 (17 hours ahead of Washington, DC, during Standard Time)

												 Administrative divisions:

												<a href="../fields/2051.html#wf" title="">

none (overseas territory of France); there are no first-order administrative divisions as defined by the US Government, but there are three kingdoms at the second order named Alo, Sigave, Wallis

												 Independence:

												<a href="../fields/2088.html#wf" title="">

none (overseas territory of France)

												 National holiday:

												<a href="../fields/2109.html#wf" title="">

Bastille Day, 14 July (1789)

												 Constitution:

												<a href="../fields/2063.html#wf" title="">

4 October 1958 (French Constitution) (2013)

												 Legal system:

												<a href="../fields/2100.html#wf" title="">

French civil law

												 Suffrage:

												<a href="../fields/2123.html#wf" title="">

18 years of age; universal

												 Executive branch:

												<a href="../fields/2077.html#wf" title="">

								chief of state:

								President Francois HOLLANDE (since 15 May 2012); represented by High Administrator Michel JEANJEAN (since 10 June 2010)

									head of government:

									President of the Territorial Assembly Vetelino NAU (since 4 April 2012)

									cabinet:

									Council of the Territory consists of 3 kings and 3 members appointed by the high administrator on the advice of the Territorial Assembly

									(For more information visit the World Leaders website )

										note:

									there are 3 traditional kings with limited powers

									elections:

									French president elected by popular vote for a five-year term; high administrator appointed by the French president on the advice of the French Ministry of the Interior; the presidents of the Territorial Government and the Territorial Assembly elected by the members of the assembly

												 Legislative branch:

												<a href="../fields/2101.html#wf" title="">

unicameral Territorial Assembly or Assemblee Territoriale (20 seats; members elected by popular vote to serve five-year terms)

									elections:

									last held on 22 March 2012 (next to be held in March 2017)

									election results:

									percent of vote by party - NA; seats by party - PS 4, UMP 4, centrists, 3, other 9

										note:

									Wallis and Futuna elects one senator to the French Senate and one deputy to the French National Assembly; French Senate - elections last held on 21 September 2008 (next to be held by September 2014); results - percent of vote by party - NA; seats - UMP 1; French National Assembly - elections last held on 17 June 2012 (next to be held by 2017); results - percent of vote by party - NA; seats - UMP 1

												 Judicial branch:

												<a href="../fields/2094.html#wf" title="">

								highest court(s):

								Court of Appeal or Cour d'Appel, located in Noumea, New Caledonia

									judge selection and term of office:

									NA

									subordinate courts:

									note: justice generally administered under French law by the high administrator, but the three traditional kings administer customary law and there is a magistrate in Mata-Utu

												 Political parties and leaders:

												<a href="../fields/2118.html#wf" title="">

Lua Kae Tahi (Giscardians)

Mouvement des Radicaux de Gauche or MRG

Rally for the Republic or RPR (UMP)

Socialist Party or PS

Taumu'a Lelei

Union Populaire Locale or UPL

Union Pour la Democratie Francaise or UDF

												 Political pressure groups and leaders:

												<a href="../fields/2115.html#wf" title="">

NA

												 International organization participation:

												<a href="../fields/2107.html#wf" title="">

PIF (observer), SPC, UPU

												 Diplomatic representation in the US:

												<a href="../fields/2149.html#wf" title="">

none (overseas territory of France)

												 Diplomatic representation from the US:

												<a href="../fields/2007.html#wf" title="">

none (overseas territory of France)

												 Flag description:

												<a href="../fields/2081.html#wf" title="">

unofficial, local flag has a red field with four white isosceles triangles in the middle, representing the three native kings of the islands and the French administrator; the apexes of the triangles are oriented inward and at right angles to each other; the flag of France, outlined in white on two sides, is in the upper hoist quadrant

										note:

									the design is derived from an original red banner with a white cross pattee that was introduced in the 19th century by French missionaries; the flag of France is used for official occasions

												 National symbol(s):

												<a href="../fields/2230.html#wf" title="">

red saltire (Saint Andrew's Cross) on a white square on a red field

												 National anthem:

												<a href="../fields/2218.html#wf" title="">

										note:

								as a territory of France, "La Marseillaise" is official (see France)

										<link rel="stylesheet" type="text/css" href="../styles/jquery.ui.core.css"/>

<link rel="stylesheet" href="jClocksGMT-master/css/jClocksGMT.css">

Economy ::Wallis and Futuna

										 Economy - overview:

								<a href="../fields/2116.html#wf" title="">

The economy is limited to traditional subsistence agriculture, with 80% of labor force earnings from agriculture (coconuts and vegetables), livestock (mostly pigs), and fishing. About 4% of the population is employed in government. Revenues come from French Government subsidies, licensing of fishing rights to Japan and South Korea, import taxes, and remittances from expatriate workers in New Caledonia.

												 GDP (purchasing power parity):

												<a href="../fields/2001.html#wf" title="">

$60 million (2004 est.)

											country comparison to the world:   223

												 GDP (official exchange rate):

												<a href="../fields/2195.html#wf" title="">

$NA

												 GDP - real growth rate:

												<a href="../fields/2003.html#wf" title="">

NA%

												 GDP - per capita (PPP):

												<a href="../fields/2004.html#wf" title="">

$3,800 (2004 est.)

											country comparison to the world:   170

												 GDP - composition, by sector of origin:

												<a href="../fields/2012.html#wf" title="">

								agriculture:

								NA%

									industry:

									NA%

									services:

									NA%

												 Agriculture - products:

												<a href="../fields/2052.html#wf" title="">

coconuts, breadfruit, yams, taro, bananas; pigs, goats; fish

												 Industries:

												<a href="../fields/2090.html#wf" title="">

copra, handicrafts, fishing, lumber

												 Industrial production growth rate:

												<a href="../fields/2089.html#wf" title="">

NA%

												 Labor force:

												<a href="../fields/2095.html#wf" title="">

3,104 (2003)

											country comparison to the world:   226

												 Labor force - by occupation:

												<a href="../fields/2048.html#wf" title="">

								agriculture:

								80%

									industry:

									4%

									services:

									16% (2001 est.)

												 Unemployment rate:

												<a href="../fields/2129.html#wf" title="">

12.2% (2008)

											country comparison to the world:   124

												 Population below poverty line:

												<a href="../fields/2046.html#wf" title="">

NA%

												 Household income or consumption by percentage share:

												<a href="../fields/2047.html#wf" title="">

								lowest 10%:

								NA%

									highest 10%:

									NA%

												 Budget:

												<a href="../fields/2056.html#wf" title="">

								revenues:

								$29,730

									expenditures:

									$31,330 (2004)

												 Public debt:

												<a href="../fields/2186.html#wf" title="">

5.6% of GDP (2004 est.)

											country comparison to the world:   158

										note:

									offical data; data cover general government debt, and includes debt instruments issued (or owned) by government entities other than the treasury; the data include treasury debt held by foreign entities; the data include debt issued by subnational entities, as well as intra-governmental debt; intra-governmental debt consists of treasury borrowings from surpluses in the social funds, such as for retirement, medical care, and unemployment; debt instruments for the social funds are not sold at public auctions

												 Fiscal year:

												<a href="../fields/2080.html#wf" title="">

calendar year

												 Inflation rate (consumer prices):

												<a href="../fields/2092.html#wf" title="">

2.8% (2005)

											country comparison to the world:   105

												 Exports:

												<a href="../fields/2078.html#wf" title="">

$47,450 (2004)

											country comparison to the world:   222

												 Exports - commodities:

												<a href="../fields/2049.html#wf" title="">

copra, chemicals, construction materials

												 Imports:

												<a href="../fields/2087.html#wf" title="">

$61.17 million (2004)

											country comparison to the world:   217

												 Imports - commodities:

												<a href="../fields/2058.html#wf" title="">

chemicals, machinery, consumer goods

												 Debt - external:

												<a href="../fields/2079.html#wf" title="">

$3.67 million (2004)

											country comparison to the world:   199

												 Exchange rates:

												<a href="../fields/2076.html#wf" title="">

Comptoirs Francais du Pacifique francs (XPF) per US dollar -

90.01 (February 2012)

87.59 (2007)

<link rel="stylesheet" href="jClocksGMT-master/css/jClocksGMT.css">

<link rel="stylesheet" href="jClocksGMT-master/css/jClocksGMT.css">

Communications ::Wallis and Futuna

										 Telephone system:

								<a href="../fields/2124.html#wf" title="">

international: country code - 681

												 Broadcast media:

												<a href="../fields/2213.html#wf" title="">

the publicly owned French Overseas Network (RFO), which broadcasts to France's overseas departments and territories, is carried on the RFO Wallis and Fortuna TV and radio stations (2008)

												 Internet country code:

												<a href="../fields/2154.html#wf" title="">

.wf

												 Internet hosts:

												<a href="../fields/2184.html#wf" title="">

2,760 (2012)

											country comparison to the world:   157

												 Internet users:

												<a href="../fields/2153.html#wf" title="">

1,300 (2009)

											country comparison to the world:   212

<link rel="stylesheet" href="jClocksGMT-master/css/jClocksGMT.css">

Transportation ::Wallis and Futuna

										 Airports:

								<a href="../fields/2053.html#wf" title="">

2 (2013)

									country comparison to the world:  203

												 Airports - with paved runways:

												<a href="../fields/2030.html#wf" title="">

								total:

								2

									1,524 to 2,437 m:

									1

									914 to 1,523 m:

									1 (2013)

												 Ports and terminals:

												<a href="../fields/2120.html#wf" title="">

								major seaport(s):

								Leava, Mata-Utu

<link rel="stylesheet" href="jClocksGMT-master/css/jClocksGMT.css">

Military ::Wallis and Futuna

										 Manpower fit for military service:

								<a href="../fields/2025.html#wf" title="">

males age 16-49: 3,376

									females age 16-49:

									3,314 (2010 est.)

												 Manpower reaching militarily significant age annually:

												<a href="../fields/2026.html#wf" title="">

								male:

								168

									female:

									139 (2010 est.)

												 Military - note:

												<a href="../fields/2137.html#wf" title="">

defense is the responsibility of France

<link rel="stylesheet" href="jClocksGMT-master/css/jClocksGMT.css">

Transnational Issues ::Wallis and Futuna

										 Disputes - international:

								<a href="../fields/2070.html#wf" title="">

none

						EXPAND ALLCOLLAPSE ALL

About CIA

                           Today's CIA

                           Leadership

                           CIA Vision, Mission & Values

                           Headquarters Tour

                           CIA Museum

                           History of the CIA

                           FAQs

                           NoFEAR Act

                           Site Policies

Careers & Internships

                           Career Opportunities

                           Student Opportunities

                           Application Process

                           Life at CIA

                           Diversity

                           Military Transition

                           Diversions & Information

                           FAQs

Offices of CIA

                           Intelligence & Analysis

                           Clandestine Service

                           Science & Technology

                           Support to Mission

                           Human Resources

                           Public Affairs

                           General Counsel

                           Equal Employment Opportunity

                           Congressional Affairs

                           Inspector General

                           Military Affairs

News & Information

                           Press Releases & Statements

                           Speeches & Testimony

                           CIA & the War on Terrorism

                           Featured Story Archive

                           What’s New Archive

                           Your News

Library

                           Publications

                           Center for the Study of Intelligence

                           Freedom of Information Act Electronic Reading Room

                           Kent Center Occasional Papers

                           Intelligence Literature

                           Reports

                           Related Links

                           Video Center

Kids' Zone

                           K-5th Grade

                           6-12th Grade

                           Parents & Teachers

                           Games

                           Related Links

                           Privacy Statement

Connect with CIA

CIA YouTube

CIA Flickr PhotoStream

RSS

Contact Us

* Required plugins

Adobe® Flash Player

Adobe® Reader®

MS Word Viewer

Footer Navigation

Privacy

Copyright

Site Policies

USA.gov

FOIA

DNI.gov

NoFEAR Act

Inspector General

Mobile Site

Contact CIA

Site Map

GO TOP


text:
package com.gwk.weathers.fragment;

import org.androidannotations.annotations.EFragment;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.preference.PreferenceManager;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TableRow;
import android.widget.TextView;

import com.gwk.weathers.activity.ChooseAreaActivity;
import com.gwk.weathers.activity.TendencyActivity;
import com.gwk.weathers.adapter.RecentweatherItemAdapter;
import com.gwk.weathers.app.Myconfig;
import com.gwk.weathers.app.R;
import com.gwk.weathers.db.kLog;
import com.gwk.weathers.model.IWeather;
import com.gwk.weathers.util.HttpCallbackListener;
import com.gwk.weathers.util.HttpUtil;
import com.gwk.weathers.util.MyJSON2Weather;
import com.gwk.weathers.util.Utility;
import com.gwk.weathers.util.WeatherPic;
import com.gwk.weathers.util.pbybUtil;

/*
 *作者:葛文凯
 *邮箱:651517957@qq.com
 *电话:15928001543
 *时间:2015年11月18日下午5:02:28
 */
@EFragment(R.layout.fragment_index)
public class MainIndexFragment2 extends Fragment implements OnClickListener
{

	private View weatherFragmentView;
	/**
	 * 城市名
	 */
	private TextView cityname;
	/**
	 * 刷新天气Button
	 */
	private Button refreshWeather;
	/**
	 * 重新选择City的Button
	 */
	private ImageButton switchcity;

	/**
	 * 显示信息更新时间
	 */
	private TextView publishTime;

	/**
	 * 今日天气信息
	 */
	private View tempanddate;
	private ImageView todayWeatherIc;
	private TextView todayWeatherTxt;
	private TextView todayWeatherTmp;
	private TextView feelTemp;
	private TextView mpPolution;
	private TextView nowTmp;
	private ImageView tempIvminus;
	private ImageView tempIvOne;
	private ImageView tempIvTen;
	private ImageView tempIvHundred;
	private TableRow aqlinfoTB;

	/**
	 * //最近天气信息
	 */
	private View rencentdays;
	private ImageView renTodayIc;
	private TextView renTodayTxt;
	private TextView renTodayTmp;

	private ImageView renTomorrowIc;
	private TextView renTomorrowTxt;
	private TextView renTomorrowTmp;

	private ImageView renHoutianIc;
	private TextView renHoutianTxt;
	private TextView renHoutianTmp;
	/**
	 * 左边最近天气 List
	 */
	private ListView recentWeatherList;
	// Service对象

	private String cityNamestr;
	private String httpUrl;
	private IWeather getweather;

	public static final int show_response = 0;
	/**
	 * 请求返回的Json语句
	 */
	private String strResult;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState)
	{
		weatherFragmentView = inflater.inflate(R.layout.fragment_index,
				container, false);
		initView(weatherFragmentView);
		getDate();

		return weatherFragmentView;
	}

	private void initView(View v)
	{
		// 标题栏
		cityname = (TextView) v.findViewById(R.id.tv_fgin_cityname);
		refreshWeather = (Button) v.findViewById(R.id.btn_fgin_refreshweather);
		refreshWeather.setOnClickListener(this);
		switchcity = (ImageButton) v.findViewById(R.id.ib_fgin_switchcity);
		switchcity.setOnClickListener(this);
		publishTime = (TextView) v.findViewById(R.id.tv_fgin_publish_time);

		// 今日天气信息
		tempanddate = v.findViewById(R.id.tempanddate);
		todayWeatherIc = (ImageView) v
				.findViewById(R.id.iv_fgin_today_weather_icon);
		todayWeatherTxt = (TextView) v
				.findViewById(R.id.tv_fgin_today_weather_txt);
		todayWeatherTmp = (TextView) v
				.findViewById(R.id.tv_fgin_today_weather_tmp);
		feelTemp = (TextView) v.findViewById(R.id.tv_fgin_feeltemp);
		mpPolution = (TextView) v.findViewById(R.id.tv_fgin_polution);
		nowTmp = (TextView) v.findViewById(R.id.tv_now_temp);
		tempIvminus = (ImageView) v.findViewById(R.id.iv_temp_minus);
		tempIvOne = (ImageView) v.findViewById(R.id.iv_fgin_temp_one);
		tempIvTen = (ImageView) v.findViewById(R.id.iv_fgin_temp_ten);
		tempIvHundred = (ImageView) v.findViewById(R.id.iv_fgin_temp_hundred);
		aqlinfoTB = (TableRow) v.findViewById(R.id.tb_today_aqlinfo);

		// 最近天气信息
		rencentdays = v.findViewById(R.id.fragment_main_weather_rencentdays);
		renTodayIc = (ImageView) v
				.findViewById(R.id.tv_fgin_rencent_today_week);
		renTodayTxt = (TextView) v
				.findViewById(R.id.tvldr_fgin_rencent_today_txt);
		renTodayTmp = (TextView) v.findViewById(R.id.tv_fgin_rencent_today_tmp);
		renTomorrowIc = (ImageView) v
				.findViewById(R.id.tv_fgin_rencent_tomorrow_week);
		renTomorrowTxt = (TextView) v
				.findViewById(R.id.tv_fgin_rencent_tomorrow_txt);
		renTomorrowTmp = (TextView) v
				.findViewById(R.id.tv_fgin_rencent_tomorrow_tmp);
		renHoutianIc = (ImageView) v
				.findViewById(R.id.tv_fgin_rencent_houtian_week);
		renHoutianTxt = (TextView) v
				.findViewById(R.id.tv_fgin_rencent_houtian_txt);
		renHoutianTmp = (TextView) v
				.findViewById(R.id.tv_fgin_rencent_houtian_tmp);

		// 左边List
		recentWeatherList = (ListView) v
				.findViewById(R.id.index_recentweather_listview);
	}

	Handler handler = new Handler() {
		public void handleMessage(android.os.Message msg)
		{
			switch (msg.what)
			{
			case show_response:
				getweather = (IWeather) msg.obj;

				tempanddate.setVisibility(View.VISIBLE);

				cityname.setText(getweather.getCity());
				publishTime.setText(getweather.getRefreshDate()
						+ getweather.getRefreshTime());
				todayWeatherTxt.setText(getweather.getTodayWeather());
				todayWeatherIc.setImageBitmap(WeatherPic.getPic(getContext(),
						getweather.getPicIndex(), 0));

				todayWeatherTmp.setText(getweather.getComfortable());
				feelTemp.setText(getweather.getComforfeeltemp());

				if (!TextUtils.isEmpty(getweather.getPm25Polution()))
				{
					aqlinfoTB.setVisibility(View.VISIBLE);
					mpPolution.setText(getweather.getPm25Polution() + " "
							+ getweather.getQlty());
				}

				// nowTmp.setText(weather.getTodayTemperature());
				if (!TextUtils.isEmpty(getweather.getTodayTemperature()))
				{
					int noTmpint = Integer.parseInt(getweather
							.getTodayTemperature());
					if (noTmpint < 0)
					{
						tempIvminus.setVisibility(View.VISIBLE);
						noTmpint = -noTmpint;
					}
					tempIvOne.setVisibility(View.VISIBLE);
					tempIvOne.setImageBitmap(WeatherPic.getPic(getActivity(),
							noTmpint % 10, 0));

					if (noTmpint / 10 > 0)
					{// 两位数
						tempIvTen.setVisibility(View.VISIBLE);
						tempIvTen.setImageBitmap(WeatherPic.getPic(
								getActivity(), noTmpint / 10, 0));
					}

					rencentdays.setVisibility(View.VISIBLE);
					// 未来四天天气
					for (int i = 0; i < 3; i++)
					{
						String weatx = getweather.getWeather().get(i);
						String weama = getweather.getTemperatureMax().get(i);
						String weami = getweather.getTemperatureMin().get(i);
						int weapic = getweather.getTopPic().get(i);
						switch (i)
						{
						case 0:
							renTodayIc.setImageBitmap(WeatherPic.getPic(
									getContext(), weapic, 1));
							renTodayTxt.setText(weatx);
							renTodayTmp.setText(weami + "~" + weama);
							break;
						case 1:
							renTomorrowIc.setImageBitmap(WeatherPic.getPic(
									getContext(), weapic, 1));
							renTomorrowTxt.setText(weatx);
							renTomorrowTmp.setText(weami + "~" + weama);
							break;
						case 2:
							renHoutianIc.setImageBitmap(WeatherPic.getPic(
									getContext(), weapic, 1));
							renHoutianTxt.setText(weatx);
							renHoutianTmp.setText(weami + "~" + weama);
							break;

						default:
							break;
						}
					}
					recentWeatherList.setAdapter(new RecentweatherItemAdapter(
							getActivity(),
							R.layout.recentweather_fgin_list_item, getweather
									.getRecentWeatherList()));
					recentWeatherList
							.setOnItemClickListener(new OnItemClickListener() {

								@Override
								public void onItemClick(AdapterView<?> parent,
										View view, int position, long id)
								{
									TendencyActivity.StartTendencyActivity(getActivity(), getweather);
								}
							});
				}

				break;

			default:
				break;
			}
		};
	};

	/**
	 * 获取天气信息
	 *
	 * @return
	 */
	private void getDate()
	{
		// 处理传入的县级代号
		String countyCode = getActivity().getIntent().getStringExtra(
				Myconfig.COUNTYCODE);

		if (!TextUtils.isEmpty(countyCode))
		{ // 有CountyCode时就去查询天气信息
			cityname.setText(countyCode);
			publishTime.setText("同步中>>>");
			tempanddate.setVisibility(View.GONE);
			rencentdays.setVisibility(View.GONE);
			queryWeatherCode(countyCode);

		} else
		{
			// 没有CountyCode就直接显示本地存储的天气
			getActivity().runOnUiThread(new Runnable() {
				public void run()
				{
					showWeather();
				}
			});
		}

	}

	/**
	 * 根据CountyCode生成对应的http查询地址
	 *
	 * @param countyCode
	 */
	private void queryWeatherCode(String countyName)
	{
		this.cityNamestr = countyName;
		String countyCode = pbybUtil.converterToSpell(countyName);
		StringBuilder sb = new StringBuilder(
				"https://api.heweather.com/x3/weather?city=");
		httpUrl = sb.append(countyCode).append(Myconfig.MYKEY).toString();
		kLog.i("HttpURL", httpUrl);
		queryFromServer(httpUrl, cityNamestr);
	}

	/**
	 * 根据传入的地址和类型查询天气消息
	 *
	 * @param address
	 * @param type
	 */
	private void queryFromServer(final String address, final String cityNamestr)
	{
		HttpUtil.sendHttpRequest(address, new HttpCallbackListener() {

			@Override
			public void onFinish(String response)
			{
				if (!TextUtils.isEmpty(response))
				{

					// 把数据保存到本地
					Utility.saveWeatherInfo(getContext(), cityNamestr, response);
					// 解析从服务器返回的数据,并显示
					getActivity().runOnUiThread(new Runnable() {
						public void run()
						{
							showWeather();
						}
					});

				} else
				{
					publishTime.setText("同步失败");
				}
			}

			@Override
			public void onError(Exception e)
			{
				getActivity().runOnUiThread(new Runnable() {
					public void run()
					{
						publishTime.setText("同步失败");
					}
				});
			}
		});
	}

	/**
	 * 从SharedPreferences文件中读取存储的天气信息,解析出具体数据并显示到界面上
	 */
	private void showWeather()
	{

		SharedPreferences prefs = PreferenceManager
				.getDefaultSharedPreferences(getActivity());

		strResult = prefs.getString(Myconfig.WEATHERJSON, "");
		IWeather weather = MyJSON2Weather.parseJson(strResult);

		Message message = new Message();
		message.what = show_response;
		message.obj = weather;

		handler.sendMessage(message);

		/*
		 * ;
		 *
		 * renTodayIc; renTodayTxt; renTodayTmp;
		 *
		 * renTomorrowIc; renTomorrowTxt; renTomorrowTmp;
		 *
		 * renHoutianIc; renHoutianTxt; renHoutianTmp;
		 */
		// //激活AutoUpdateService服务
		// Intent intent=new Intent(this,AutoUpdateReceiver.class);
		// startService(intent);
	}

	@Override
	public void onClick(View v)
	{
		switch (v.getId())
		{
		case R.id.btn_fgin_refreshweather:
			// 刷新当前城市的天气数据
			publishTime.setText("同步中>>>");
			tempanddate.setVisibility(View.GONE);
			rencentdays.setVisibility(View.GONE);
			SharedPreferences prefs = PreferenceManager
					.getDefaultSharedPreferences(getActivity());
			String cityName = prefs.getString(Myconfig.COUNTYCODE, "");
			if (!TextUtils.isEmpty(cityName))
			{
				queryWeatherCode(cityName);
			}
			break;

		case R.id.ib_fgin_switchcity:
			Intent intent = new Intent(getActivity(), ChooseAreaActivity.class);
			intent.putExtra(Myconfig.FROMWEATHERFRAG, true);
			startActivity(intent);
			getActivity().finish();
			break;

		default:
			break;
		}

	}

}


text:
static NSString *const kMyTracksListLabel = @"My Tracks";
//static NSString *const kPublicTracks      = @"Hosted Tracks";
static NSString *const kPublicTracks = @"Public Tracks";
static NSString *const kENCODELabel       = @"ENCODE";
//
static NSString *const kFastaSequenceFileKey = @"fastaSequenceFile";
static NSString *const kSequenceLocationKey = @"sequenceLocation";
static NSString *const kGeneFileKey = @"geneFile";
static NSString *const kCytobandFileKey = @"cytobandFile";
static NSString *const kEncodeFileKey = @"encodeFile";
//
static NSString *const kTrackMenuKey = @"trackMenu";
static NSString *const kLMCategoryItemsKey = @"LMCategoryItems";
//
static NSString *const kGeneTrackName = @"Genes";
//
//static NSString *const kGenomesFilePath = @"http://www.broadinstitute.org/igvdata/ipad/genomes_dat/genomes.txt";
static NSString *const kGenomesFilePath = @"http://www.broadinstitute.org/igvdata/ipad/genomes/genomes.txt";

@class Cytoband;
@class PListPersistence;
@class FastaSequence;

@interface GenomeManager : NSObject

@property(nonatomic, retain) PListPersistence *userDefinedGenomePersistence;
@property(nonatomic, assign) dispatch_queue_t dataRetrievalQueue;
@property(nonatomic, retain) NSMutableDictionary *genomeStubs;
@property(nonatomic, retain) NSMutableDictionary *cytobands;
@property(nonatomic, retain) NSString *currentGenomeName;
@property(nonatomic, retain) NSDictionary *chromosomeNames;
@property(nonatomic, retain) NSDictionary *chromosomeAliasTable;

- (void)loadGenomeWithContinuation:(void (^)(NSString *selectedGenomeName, NSError *error))continuation;
- (BOOL)loadCytobandWithGenomeName:(NSString *)genomeName error:(NSError **)error;
- (BOOL)loadGenomeStubsWithGenomePath:(NSString *)genomePath error:(NSError **)error;
- (void)initializeTrackMenuRoot;
- (BOOL)loadTrackMenuWithGenomeName:(NSString *)genomeName error:(NSError **)error;

- (FastaSequence *)currentFastaSequence;
- (NSDictionary *)currentGenomeStub;
- (NSDictionary *)currentTrackMenu;
- (Cytoband *)currentCytoband;
- (NSArray *)currentChromosomeExtent;
- (NSString *)chromosomeAliasForString:(NSString *)string;
- (NSArray *)chromosomeExtentWithChromosomeName:(NSString *)chromosomeName;
- (long long int)deltaBetweenEndOfChromosomeName:(NSString *)chromosomeName andValue:(long long int)value;
- (NSString *)firstChromosomeName;
- (BOOL)cytobandExistsForGenomeName:(NSString *)genomeName;
- (NSArray *)chromosomeNamesWithGenomeName:(NSString *)genomeName;
- (NSIndexPath *)indexPathWithCurrentGenomeName;
- (NSArray *)genomeNames;
- (NSString *)tableViewLabelTextWithIndex:(NSInteger)index;

- (BOOL)encodeFileExistsForGenomeName:(NSString *)genomeName;

- (void)mergeUserDefinedGenomesIntoGenomeStubs;

+ (GenomeManager *)sharedGenomeManager;

- (BOOL)isUserDefinedGenomeAtIndex:(NSInteger)index;

+ (BOOL)isValideGenomeName:(NSString *)candidateGenomeName;

- (void)deleteUserDefinedGenomeAtIndex:(NSInteger)index continuation:(void (^)(void))continuation;
@end


text:
<assembly>
  <id>src</id>
  <formats>
    <format>zip</format>
  </formats>
  <includeBaseDirectory>false</includeBaseDirectory>
  <moduleSets>
      <moduleSet>
        <sources>
          <outputDirectory>jai-ext-1.0-SNAPSHOT/${artifactId}/</outputDirectory>
        </sources>
      </moduleSet>
  </moduleSets>
  <fileSets>
  <fileSet>
        <directory>.</directory>
        <outputDirectory>jai-ext-1.0-SNAPSHOT/</outputDirectory>
                          <includes>
                                  <include>pom.xml</include>
                          </includes>
     </fileSet>
  </fileSets>
</assembly>


text:
package com.qifun.sbtHaxe

import HaxeConfigurations._
import HaxeKeys._
import sbt.Keys._
import sbt._

/**
 * A Plugin used to compile Haxe sources to PHP sources.
 */
object HaxePhpPlugin extends AutoPlugin {

  override final def requires = BaseHaxePlugin

  override final lazy val projectSettings: Seq[Setting[_]] = {
    sbt.addArtifact(artifact in packageBin in HaxePhp, packageBin in HaxePhp) ++
      inConfig(Php)(SbtHaxe.baseHaxeSettings) ++
      inConfig(TestPhp)(SbtHaxe.baseHaxeSettings) ++
      inConfig(HaxePhp)(SbtHaxe.baseHaxeSettings) ++
      inConfig(HaxePhp)(SbtHaxe.extendSettings) ++
      inConfig(TestHaxePhp)(SbtHaxe.baseHaxeSettings) ++
      inConfig(TestHaxePhp)(SbtHaxe.extendTestSettings) ++
      SbtHaxe.injectSettings(HaxePhp, Php) ++
      SbtHaxe.injectSettings(TestHaxePhp, TestPhp) ++
      Seq(
        haxeXmls in Compile ++= (haxeXml in Php).value,
        haxeXmls in Test ++= (haxeXml in TestPhp).value,
        haxePlatformName in Php := "php",
        haxePlatformName in TestPhp := "php",
        haxeOutputPath in Php := Some((target in haxe in Php).value),
        haxeOutputPath in TestPhp := Some((target in haxe in Php).value),
        doxRegex in Compile := SbtHaxe.buildDoxRegex((sourceDirectories in HaxePhp).value),
        doxRegex in Test := SbtHaxe.buildDoxRegex((sourceDirectories in TestHaxePhp).value),
        ivyConfigurations += Haxe,
        ivyConfigurations += TestHaxe,
        ivyConfigurations += HaxePhp,
        ivyConfigurations += TestHaxePhp)
  }
}


text:
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>com.github.K0zka</groupId>
		<artifactId>finder4j-parent</artifactId>
		<version>0.8-SNAPSHOT</version>
	</parent>
	<artifactId>finder4j-backtrack</artifactId>
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>
	<build>
		<sourceDirectory>src/main/kotlin</sourceDirectory>
		<testSourceDirectory>src/test/kotlin</testSourceDirectory>
		<plugins>
			<plugin>
				<groupId>org.jetbrains.dokka</groupId>
				<artifactId>dokka-maven-plugin</artifactId>
			</plugin>
			<plugin>
				<artifactId>kotlin-maven-plugin</artifactId>
				<groupId>org.jetbrains.kotlin</groupId>
			</plugin>
		</plugins>
	</build>
	<dependencies>
		<dependency>
			<groupId>org.jetbrains.kotlin</groupId>
			<artifactId>kotlin-stdlib</artifactId>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>1.7.6</version>
		</dependency>
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-classic</artifactId>
			<version>1.1.2</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.jetbrains.kotlin</groupId>
			<artifactId>kotlin-test-junit</artifactId>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.11</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.nhaarman</groupId>
			<artifactId>mockito-kotlin</artifactId>
			<version>1.5.0</version>
			<scope>test</scope>
		</dependency>
	</dependencies>
</project>


text:
<?php

ini_set('display_errors', 'On');

include_once 'secrets.php';

include_once 'complaints-class.php';

/**
 * Send a POST request using cURL
 * @param string $url to request
 * @param array $post values to send
 * @param array $options for cURL
 * @return string
 */
function curl_post($url, array $post = NULL, array $options = array())
{
    $defaults = array(
        CURLOPT_POST => 1,
        CURLOPT_HEADER => 0,
        CURLOPT_URL => $url,
        CURLOPT_FRESH_CONNECT => 1,
        CURLOPT_RETURNTRANSFER => 1,
        CURLOPT_FORBID_REUSE => 1,
        CURLOPT_TIMEOUT => 4,
        CURLOPT_POSTFIELDS => http_build_query($post)
    );

    $ch = curl_init();
    curl_setopt_array($ch, ($options + $defaults));
    if( ! $result = curl_exec($ch))
    {
        trigger_error(curl_error($ch));
    }
    curl_close($ch);
    return $result;
}

function checkCaptcha($value, $remoteIp) {
    $args = [
        'secret' => "6LdUNOYSAAAAAKi2i9sZafkx9XHXcCe-dX5vIjtm",
        'response' => $value,
        'remoteip' => $remoteIp
    ];

    $response = curl_post("https://www.google.com/recaptcha/api/siteverify", $args);
    /*
     * {
     *  "success": false,
     *  "error-codes": [
     *   "missing-input-response"
     *  ]
     * }
     */
    $json = json_decode($response);

    return $json->success || true;
}

$complaintService = new Complaints($configuration);

try {
    if ($_SERVER['REQUEST_METHOD'] == 'GET') {
        echo json_encode($complaintService->doGet());
    } else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
        $json = file_get_contents('php://input');
        $complaint = json_decode($json);
        if (checkCaptcha($complaint->captcha, $_SERVER['REMOTE_ADDR'])) {
            echo json_encode($complaintService->doPut($complaint));
        } else {
            // echo '{"error": "Invalid captcha"}';
            http_response_code(401);    // No authorized
        }
    } else {
        http_response_code(404);
        echo '{"error":"Unknown message"}';
    }

} catch (Exception $e) {
    echo $e->getMessage();
} finally {
    $complaintService->close();
}


text:
{% extends "base-external.html" %}

{% block title %}Helorank | About{% endblock %}
{% block nav-active2 %} class="active"{% endblock %}

{% block content %}

Contact Us

    <form>
      Email
      <input type="text" placeholder="you@gmail.com">
      Write a message
      <textarea rows="5"></textarea>

      <input type="submit" value="Sign up" class="btn" />
    </form>

{% endblock %}

{% block scripts %}{% endblock %}


text:
$background:/images/scratching-head.jpg$

Note:

Your probably thinking, "Great, that doesn't help."