text:
/*
 * Convolution1D.java
 *
 * Created on February 20, 2001, 2:00 PM
 */

import jigl.signal.*;
import jigl.signal.io.*;
import javax.swing.*;
import java.io.*;
import jigl.signal.ops.levelOps.*;
/**
 *
 * @author  bhinton
 * @version
 */
public class Convolution1D extends javax.swing.JFrame {

  float[] testInput = {0,1,2,3,5,6,7,8,9};
  float[] testImpulse = {1,2,3};
  RealSignal input, output, impulse;
  /** Creates new form Convolution1D */
  public Convolution1D() {
    initComponents ();
    signalCanvas1 = new jigl.gui.SignalCanvas();
    signalCanvas2 = new jigl.gui.SignalCanvas();
    signalCanvas3 = new jigl.gui.SignalCanvas();
    jPanel1.add(signalCanvas1);
    jPanel3.add(signalCanvas2);
    jPanel4.add(signalCanvas3);

  }

  private Signal readFromFile(String filename) {
      Signal input;
      try {
        SignalInputStream is = new SignalInputStream(filename);
        input = is.read();
        is.close();
        return input;
      }
      catch (Exception e) {
        return null;
      }
  }
   private void writeToFile(Signal mySignal, String filename) {
      try {
        SignalOutputStream ios = new SignalOutputStream(filename);
        ios.write(mySignal);
        ios.close();
      }
      catch (Exception e) {
        JOptionPane.showMessageDialog(null, e.getMessage());
      }

  }
  /** This method is called from within the constructor to
   * initialize the form.
   * WARNING: Do NOT modify this code. The content of this method is
   * always regenerated by the FormEditor.
   */
  private void initComponents() {//GEN-BEGIN:initComponents
      jPanel1 = new javax.swing.JPanel();
      jPanel3 = new javax.swing.JPanel();
      jPanel4 = new javax.swing.JPanel();
      jButton1 = new javax.swing.JButton();
      jButton2 = new javax.swing.JButton();
      jPanel2 = new javax.swing.JPanel();
      jButton5 = new javax.swing.JButton();
      jButton7 = new javax.swing.JButton();
      jButton6 = new javax.swing.JButton();
      getContentPane().setLayout(new java.awt.GridBagLayout());
      java.awt.GridBagConstraints gridBagConstraints1;
      addWindowListener(new java.awt.event.WindowAdapter() {
          public void windowClosing(java.awt.event.WindowEvent evt) {
              exitForm(evt);
          }
      }
      );

      jPanel1.setLayout(new java.awt.GridLayout(1, 1));
      jPanel1.setPreferredSize(new java.awt.Dimension(172, 463));
      jPanel1.setBorder(new javax.swing.border.TitledBorder("Input Signal Border"));

      gridBagConstraints1 = new java.awt.GridBagConstraints();
      gridBagConstraints1.gridx = 0;
      gridBagConstraints1.gridy = 0;
      gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH;
      gridBagConstraints1.weightx = 1.0;
      gridBagConstraints1.weighty = 80.0;
      getContentPane().add(jPanel1, gridBagConstraints1);

      jPanel3.setLayout(new java.awt.GridLayout(1, 1));
      jPanel3.setPreferredSize(new java.awt.Dimension(172, 463));
      jPanel3.setBorder(new javax.swing.border.TitledBorder("Impulse Signal"));

      gridBagConstraints1 = new java.awt.GridBagConstraints();
      gridBagConstraints1.gridx = 1;
      gridBagConstraints1.gridy = 0;
      gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH;
      gridBagConstraints1.weightx = 1.0;
      gridBagConstraints1.weighty = 80.0;
      getContentPane().add(jPanel3, gridBagConstraints1);

      jPanel4.setLayout(new java.awt.GridLayout(1, 1));
      jPanel4.setPreferredSize(new java.awt.Dimension(172, 463));
      jPanel4.setBorder(new javax.swing.border.TitledBorder("Output Signal Border"));

      gridBagConstraints1 = new java.awt.GridBagConstraints();
      gridBagConstraints1.gridx = 2;
      gridBagConstraints1.gridy = 0;
      gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH;
      gridBagConstraints1.weightx = 1.0;
      gridBagConstraints1.weighty = 80.0;
      getContentPane().add(jPanel4, gridBagConstraints1);

      jButton1.setText("Load Input");
      jButton1.addActionListener(new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
              jButton1ActionPerformed(evt);
          }
      }
      );

      gridBagConstraints1 = new java.awt.GridBagConstraints();
      gridBagConstraints1.gridx = 0;
      gridBagConstraints1.gridy = 1;
      gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH;
      gridBagConstraints1.anchor = java.awt.GridBagConstraints.WEST;
      gridBagConstraints1.weightx = 1.0;
      gridBagConstraints1.weighty = 1.0;
      getContentPane().add(jButton1, gridBagConstraints1);

      jButton2.setText("Load Impulse");
      jButton2.addActionListener(new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
              jButton2ActionPerformed(evt);
          }
      }
      );

      gridBagConstraints1 = new java.awt.GridBagConstraints();
      gridBagConstraints1.gridx = 1;
      gridBagConstraints1.gridy = 1;
      gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH;
      gridBagConstraints1.anchor = java.awt.GridBagConstraints.WEST;
      gridBagConstraints1.weightx = 1.0;
      gridBagConstraints1.weighty = 1.0;
      getContentPane().add(jButton2, gridBagConstraints1);

      jPanel2.setLayout(new java.awt.GridLayout(1, 3));

      jButton5.setText("Convolute");
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        }
        );
        jPanel2.add(jButton5);

      jButton7.setText("Edge Enhancement");
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        }
        );
        jPanel2.add(jButton7);

      jButton6.setText("Save Signal");
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        }
        );
        jPanel2.add(jButton6);

      gridBagConstraints1 = new java.awt.GridBagConstraints();
      gridBagConstraints1.gridx = 2;
      gridBagConstraints1.gridy = 1;
      gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH;
      gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTHWEST;
      gridBagConstraints1.weightx = 1.0;
      gridBagConstraints1.weighty = 1.0;
      getContentPane().add(jPanel2, gridBagConstraints1);

      pack();
      java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
      java.awt.Dimension dialogSize = getSize();
      setSize(new java.awt.Dimension(700, 700));
      setLocation((screenSize.width-700)/2,(screenSize.height-700)/2);
  }//GEN-END:initComponents

  private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
    if (input != null && impulse != null)  output = edgeEnhancement(input, impulse);
    if (output == null) {
        JOptionPane.showMessageDialog(null, "The output was a null value");
        return;
    }
    else {
        output.byteSize();
    }
   try {
        signalCanvas3.setSignal(output);
        signalCanvas3.repaint();
    }
    catch (Exception e) {
        output = null;
        JOptionPane.showMessageDialog(null, "The error was " + e.getMessage());
    }
  }//GEN-LAST:event_jButton7ActionPerformed

  private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
      if (output != null) {
        String filename =  JOptionPane.showInputDialog(null, "Input a filename");
        writeToFile(output, filename);
      }
  }//GEN-LAST:event_jButton6ActionPerformed

  private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
    if (input != null && impulse != null)  output = performConvolution(input, impulse);
   output.byteSize();
   try {
        signalCanvas3.setSignal(output);
        signalCanvas3.repaint();
    }
    catch (Exception e) {
        output = null;
    }
  }//GEN-LAST:event_jButton5ActionPerformed

  private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
    String file = ImageFileBrowse();
    impulse = (RealSignal) readFromFile(file);
    impulse.byteSize();
    try {
        signalCanvas2.setSignal(impulse);
        signalCanvas2.repaint();
    }
    catch (Exception e) {
        impulse = null;
    }
  }//GEN-LAST:event_jButton2ActionPerformed

  private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
    String file = ImageFileBrowse();
    input = (RealSignal) readFromFile(file);
    input.byteSize();
    try {
        signalCanvas1.setSignal(input);
        signalCanvas1.repaint();
    }
    catch (Exception e) {
        input = null;
    }
  }//GEN-LAST:event_jButton1ActionPerformed

  private RealSignal performConvolution(RealSignal in,RealSignal im) {
    RealSignal out = new RealSignal(in.length() + im.length() -1);
     int i, j;
    float total;
    float[] inputArray, impulseArray;
    inputArray = in.getData();
    impulseArray = im.getData();
    for (i=0; i<out.length(); i++) {
      total = 0;
      for (j=0; j<= i; j++) {
        if (j < in.length() && (i-j) < im.length()) {
          total += inputArray[j] * impulseArray[i-j];
        }
      }
      out.set(i, total);
    }
    /*for (i=0; i< out.length(); i++) {
      JOptionPane.showMessageDialog(null, "The value at location output[" + i + "]=" + output.get(i));
    }*/
   return out;
  }
  private RealSignal edgeEnhancement(RealSignal in,RealSignal im) {
    RealSignal out = new RealSignal(in.length() + im.length() -1);
    RealSignal temp;
    int i, j;
    float total;
    float[] inputArray, impulseArray;
    temp = (RealSignal) in.copy();
    temp.multiply(2);
    in.convolve(im);
    temp.subtract(in);
    try{
    (new jigl.signal.ops.levelOps.Scale(0, 2)).apply(temp);
    }
    catch (Exception e) {}
   return temp;
  }
  private String ImageFileBrowse() {
       File file;
      String name;
      JFileChooser selectFile = new JFileChooser();
      selectFile.showDialog(this, "Select File");
      file = selectFile.getSelectedFile();
      if (file != null) {
          return file.getAbsolutePath();
      }
      return "";
  }
  /** Exit the Application */
  private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
    System.exit (0);
  }//GEN-LAST:event_exitForm

  /**
  * @param args the command line arguments
  */
  public static void main (String args[]) {
    new Convolution1D ().show ();
  }

  private jigl.gui.SignalCanvas signalCanvas1;
  private jigl.gui.SignalCanvas signalCanvas2;
  private jigl.gui.SignalCanvas signalCanvas3;

  // Variables declaration - do not modify//GEN-BEGIN:variables
  private javax.swing.JPanel jPanel1;
  private javax.swing.JPanel jPanel3;
  private javax.swing.JPanel jPanel4;
  private javax.swing.JButton jButton1;
  private javax.swing.JButton jButton2;
  private javax.swing.JPanel jPanel2;
  private javax.swing.JButton jButton5;
  private javax.swing.JButton jButton7;
  private javax.swing.JButton jButton6;
  // End of variables declaration//GEN-END:variables

}


text:
<?php

namespace yanivgal;

use ArrayObject;
use yanivgal\Parsers\ConfigurParserInterface;

class ConfigurManager extends ArrayObject
{
    /**
     * @var string
     */
    protected $configFile;

    /**
     * @var ConfigurParserInterface
     */
    protected $configParser;

    /**
     * ConfigurManager constructor.
     * @param string $configFile
     * @param ConfigurParserInterface $configParser
     */
    public function __construct($configFile, ConfigurParserInterface $configParser)
    {
        $this->configFile = $configFile;
        $this->configParser = $configParser;
    }

    /**
     * @param string $name
     * @return mixed
     */
    public function get($name)
    {
        return $this->configParser->getValue($name);
    }

    /**
     * @param string $name
     * @param mixed $value
     */
    public function set($name, $value)
    {
        $this->configParser->setValue($name, $value);
    }

    /**
     * @return array
     */
    public function getAll()
    {
        return $this->configParser->getAll();
    }

    /**
     * @param $data
     */
    public function overwrite($data)
    {
        $this->configParser->overwrite($data);
    }

    /**
     * @param string $name
     * @return mixed
     */
    public function __get($name)
    {
        return $this->configParser->getValue($name);
    }

    /**
     * @param string $name
     * @param mixed $value
     */
    public function __set($name, $value)
    {
        $this->configParser->setValue($name, $value);
    }

    /**
     * @param string $name
     * @return string
     */
    public function offsetGet($name)
    {
        return $this->configParser->getValue($name);
    }

    /**
     * @param string $name
     * @param mixed $value
     */
    public function offsetSet($name, $value)
    {
        $this->configParser->setValue($name, $value);
    }
}

redpajama_set_name: RedPajamaGithub


text:
package com.microsoft.bingads.v12.adinsight;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 *
Java class for NetworkSearchParameter complex type.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *
 *

 * <complexType name="NetworkSearchParameter">
 *   <complexContent>
 *     <extension base="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.V12.Entity.SearchParameters}SearchParameter">
 *       <sequence>
 *         <element name="Network" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.V12.Entity.Criterions}NetworkCriterion" minOccurs="0"/>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 *

 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NetworkSearchParameter", namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.V12.Entity.SearchParameters", propOrder = {
    "network"
})
public class NetworkSearchParameter
    extends SearchParameter
{

    @XmlElement(name = "Network", nillable = true)
    protected NetworkCriterion network;

    /**
     * Gets the value of the network property.
     *
     * @return
     *     possible object is
     *     {@link NetworkCriterion }
     *
     */
    public NetworkCriterion getNetwork() {
        return network;
    }

    /**
     * Sets the value of the network property.
     *
     * @param value
     *     allowed object is
     *     {@link NetworkCriterion }
     *
     */
    public void setNetwork(NetworkCriterion value) {
        this.network = value;
    }

}


text:
package com.hejia.zxm.library.view.indicator.helper;

import android.support.v4.view.ViewPager;

import com.hejia.zxm.library.view.indicator.MagicIndicator;

/**
 * 简化和ViewPager绑定
 */
public class ViewPagerHelper {

    public static void bind(final MagicIndicator magicIndicator, ViewPager viewPager) {
        viewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {

            @Override
            public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
                magicIndicator.onPageScrolled(position, positionOffset, positionOffsetPixels);
            }

            @Override
            public void onPageSelected(int position) {
                magicIndicator.onPageSelected(position);
            }

            @Override
            public void onPageScrollStateChanged(int state) {
                magicIndicator.onPageScrollStateChanged(state);
            }
        });
    }
}


text:
package fr.animenfance.common.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.http.server.reactive.ServerHttpResponse;
import org.springframework.web.cors.reactive.CorsUtils;
import org.springframework.web.server.ServerWebExchange;
import org.springframework.web.server.WebFilter;
import org.springframework.web.server.WebFilterChain;
import reactor.core.publisher.Mono;

@Configuration
public class CorsConfiguration {

  private static final String ALLOWED_HEADERS = "authorization, Content-Type, Authorization, X-AUTH-TOKEN";
  private static final String EXPOSED_HEADERS = "X-AUTH-TOKEN";
  private static final String ALLOWED_METHODS = "GET, PUT, POST, DELETE, OPTIONS";
  private static final String ALLOWED_ORIGIN = "*";
  private static final String MAX_AGE = "3600";

  @Bean
  public WebFilter corsFilter() {
    return (ServerWebExchange ctx, WebFilterChain chain) -> {
      ServerHttpRequest request = ctx.getRequest();
      if (CorsUtils.isCorsRequest(request)) {
        ServerHttpResponse response = ctx.getResponse();
        HttpHeaders headers = response.getHeaders();
        headers.add("Access-Control-Allow-Origin", ALLOWED_ORIGIN);
        headers.add("Access-Control-Allow-Methods", ALLOWED_METHODS);
        headers.add("Access-Control-Max-Age", MAX_AGE);
        headers.add("Access-Control-Allow-Headers", ALLOWED_HEADERS);
        headers.add("Access-Control-Expose-Headers", EXPOSED_HEADERS);
        if (request.getMethod() == HttpMethod.OPTIONS) {
          response.setStatusCode(HttpStatus.OK);
          return Mono.empty();
        }
      }
      return chain.filter(ctx);
    };
  }

}


text:
"""
Copyright 2015 SmartBear Software

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

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

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

    Ref: https://github.com/swagger-api/swagger-codegen
"""

from pprint import pformat
from six import iteritems

class YearlyFinancials(object):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """
    def __init__(self):
        """
        YearlyFinancials - a model defined in Swagger

        :param dict swaggerTypes: The key is attribute name
                                  and the value is attribute type.
        :param dict attributeMap: The key is attribute name
                                  and the value is json key in definition.
        """
        self.swagger_types = {
            'year': 'date',
            'nature': 'str',
            'stated_on': 'date',
            'capital_wip': 'float',
            'cash_and_bank_balances': 'float',
            'investments': 'float',
            'inventories': 'float',
            'net_fixed_assets': 'float',
            'other_assets': 'float',
            'total_assets': 'float',
            'trade_receivables': 'float',
            'share_capital': 'float',
            'reserves_and_surplus': 'float',
            'others': 'float',
            'long_term_borrowings': 'float',
            'other_current_liabilities_and_provisions': 'float',
            'other_long_term_liabilities_and_provisions': 'float',
            'trade_payables': 'float',
            'short_term_borrowings': 'float',
            'total_equity': 'float',
            'total_equity_and_liabilities': 'float',
            'depreciation': 'float',
            'exceptional_item_before_tax': 'float',
            'income_tax': 'float',
            'interest': 'float',
            'net_income': 'float',
            'operating_cost': 'float',
            'operating_profit': 'float',
            'other_income': 'float',
            'profit_before_interest_and_tax': 'float',
            'profit_before_tax': 'float',
            'revenue': 'float'
        }

        self.attribute_map = {
            'year': 'year',
            'nature': 'nature',
            'stated_on': 'stated_on',
            'capital_wip': 'capital_wip',
            'cash_and_bank_balances': 'cash_and_bank_balances',
            'investments': 'investments',
            'inventories': 'inventories',
            'net_fixed_assets': 'net_fixed_assets',
            'other_assets': 'other_assets',
            'total_assets': 'total_assets',
            'trade_receivables': 'trade_receivables',
            'share_capital': 'share_capital',
            'reserves_and_surplus': 'reserves_and_surplus',
            'others': 'others',
            'long_term_borrowings': 'long_term_borrowings',
            'other_current_liabilities_and_provisions': 'other_current_liabilities_and_provisions',
            'other_long_term_liabilities_and_provisions': 'other_long_term_liabilities_and_provisions',
            'trade_payables': 'trade_payables',
            'short_term_borrowings': 'short_term_borrowings',
            'total_equity': 'total_equity',
            'total_equity_and_liabilities': 'total_equity_and_liabilities',
            'depreciation': 'depreciation',
            'exceptional_item_before_tax': 'exceptional_item_before_tax',
            'income_tax': 'income_tax',
            'interest': 'interest',
            'net_income': 'net_income',
            'operating_cost': 'operating_cost',
            'operating_profit': 'operating_profit',
            'other_income': 'other_income',
            'profit_before_interest_and_tax': 'profit_before_interest_and_tax',
            'profit_before_tax': 'profit_before_tax',
            'revenue': 'revenue'
        }

        self._year = None
        self._nature = None
        self._stated_on = None
        self._capital_wip = None
        self._cash_and_bank_balances = None
        self._investments = None
        self._inventories = None
        self._net_fixed_assets = None
        self._other_assets = None
        self._total_assets = None
        self._trade_receivables = None
        self._share_capital = None
        self._reserves_and_surplus = None
        self._others = None
        self._long_term_borrowings = None
        self._other_current_liabilities_and_provisions = None
        self._other_long_term_liabilities_and_provisions = None
        self._trade_payables = None
        self._short_term_borrowings = None
        self._total_equity = None
        self._total_equity_and_liabilities = None
        self._depreciation = None
        self._exceptional_item_before_tax = None
        self._income_tax = None
        self._interest = None
        self._net_income = None
        self._operating_cost = None
        self._operating_profit = None
        self._other_income = None
        self._profit_before_interest_and_tax = None
        self._profit_before_tax = None
        self._revenue = None

    @property
    def year(self):
        """
        Gets the year of this YearlyFinancials.
        Year-end of the balancesheet

        :return: The year of this YearlyFinancials.
        :rtype: date
        """
        return self._year

    @year.setter
    def year(self, year):
        """
        Sets the year of this YearlyFinancials.
        Year-end of the balancesheet

        :param year: The year of this YearlyFinancials.
        :type: date
        """
        self._year = year

    @property
    def nature(self):
        """
        Gets the nature of this YearlyFinancials.
        Nature of the balancesheet

        :return: The nature of this YearlyFinancials.
        :rtype: str
        """
        return self._nature

    @nature.setter
    def nature(self, nature):
        """
        Sets the nature of this YearlyFinancials.
        Nature of the balancesheet

        :param nature: The nature of this YearlyFinancials.
        :type: str
        """
        allowed_values = ["STANDALONE"]
        if nature not in allowed_values:
            raise ValueError(
                "Invalid value for `nature`, must be one of {0}"
                .format(allowed_values)
            )
        self._nature = nature

    @property
    def stated_on(self):
        """
        Gets the stated_on of this YearlyFinancials.
        Balancesheet stated on date

        :return: The stated_on of this YearlyFinancials.
        :rtype: date
        """
        return self._stated_on

    @stated_on.setter
    def stated_on(self, stated_on):
        """
        Sets the stated_on of this YearlyFinancials.
        Balancesheet stated on date

        :param stated_on: The stated_on of this YearlyFinancials.
        :type: date
        """
        self._stated_on = stated_on

    @property
    def capital_wip(self):
        """
        Gets the capital_wip of this YearlyFinancials.
        Capital work in progress

        :return: The capital_wip of this YearlyFinancials.
        :rtype: float
        """
        return self._capital_wip

    @capital_wip.setter
    def capital_wip(self, capital_wip):
        """
        Sets the capital_wip of this YearlyFinancials.
        Capital work in progress

        :param capital_wip: The capital_wip of this YearlyFinancials.
        :type: float
        """
        self._capital_wip = capital_wip

    @property
    def cash_and_bank_balances(self):
        """
        Gets the cash_and_bank_balances of this YearlyFinancials.

        :return: The cash_and_bank_balances of this YearlyFinancials.
        :rtype: float
        """
        return self._cash_and_bank_balances

    @cash_and_bank_balances.setter
    def cash_and_bank_balances(self, cash_and_bank_balances):
        """
        Sets the cash_and_bank_balances of this YearlyFinancials.

        :param cash_and_bank_balances: The cash_and_bank_balances of this YearlyFinancials.
        :type: float
        """
        self._cash_and_bank_balances = cash_and_bank_balances

    @property
    def investments(self):
        """
        Gets the investments of this YearlyFinancials.

        :return: The investments of this YearlyFinancials.
        :rtype: float
        """
        return self._investments

    @investments.setter
    def investments(self, investments):
        """
        Sets the investments of this YearlyFinancials.

        :param investments: The investments of this YearlyFinancials.
        :type: float
        """
        self._investments = investments

    @property
    def inventories(self):
        """
        Gets the inventories of this YearlyFinancials.

        :return: The inventories of this YearlyFinancials.
        :rtype: float
        """
        return self._inventories

    @inventories.setter
    def inventories(self, inventories):
        """
        Sets the inventories of this YearlyFinancials.

        :param inventories: The inventories of this YearlyFinancials.
        :type: float
        """
        self._inventories = inventories

    @property
    def net_fixed_assets(self):
        """
        Gets the net_fixed_assets of this YearlyFinancials.

        :return: The net_fixed_assets of this YearlyFinancials.
        :rtype: float
        """
        return self._net_fixed_assets

    @net_fixed_assets.setter
    def net_fixed_assets(self, net_fixed_assets):
        """
        Sets the net_fixed_assets of this YearlyFinancials.

        :param net_fixed_assets: The net_fixed_assets of this YearlyFinancials.
        :type: float
        """
        self._net_fixed_assets = net_fixed_assets

    @property
    def other_assets(self):
        """
        Gets the other_assets of this YearlyFinancials.

        :return: The other_assets of this YearlyFinancials.
        :rtype: float
        """
        return self._other_assets

    @other_assets.setter
    def other_assets(self, other_assets):
        """
        Sets the other_assets of this YearlyFinancials.

        :param other_assets: The other_assets of this YearlyFinancials.
        :type: float
        """
        self._other_assets = other_assets

    @property
    def total_assets(self):
        """
        Gets the total_assets of this YearlyFinancials.

        :return: The total_assets of this YearlyFinancials.
        :rtype: float
        """
        return self._total_assets

    @total_assets.setter
    def total_assets(self, total_assets):
        """
        Sets the total_assets of this YearlyFinancials.

        :param total_assets: The total_assets of this YearlyFinancials.
        :type: float
        """
        self._total_assets = total_assets

    @property
    def trade_receivables(self):
        """
        Gets the trade_receivables of this YearlyFinancials.

        :return: The trade_receivables of this YearlyFinancials.
        :rtype: float
        """
        return self._trade_receivables

    @trade_receivables.setter
    def trade_receivables(self, trade_receivables):
        """
        Sets the trade_receivables of this YearlyFinancials.

        :param trade_receivables: The trade_receivables of this YearlyFinancials.
        :type: float
        """
        self._trade_receivables = trade_receivables

    @property
    def share_capital(self):
        """
        Gets the share_capital of this YearlyFinancials.

        :return: The share_capital of this YearlyFinancials.
        :rtype: float
        """
        return self._share_capital

    @share_capital.setter
    def share_capital(self, share_capital):
        """
        Sets the share_capital of this YearlyFinancials.

        :param share_capital: The share_capital of this YearlyFinancials.
        :type: float
        """
        self._share_capital = share_capital

    @property
    def reserves_and_surplus(self):
        """
        Gets the reserves_and_surplus of this YearlyFinancials.

        :return: The reserves_and_surplus of this YearlyFinancials.
        :rtype: float
        """
        return self._reserves_and_surplus

    @reserves_and_surplus.setter
    def reserves_and_surplus(self, reserves_and_surplus):
        """
        Sets the reserves_and_surplus of this YearlyFinancials.

        :param reserves_and_surplus: The reserves_and_surplus of this YearlyFinancials.
        :type: float
        """
        self._reserves_and_surplus = reserves_and_surplus

    @property
    def others(self):
        """
        Gets the others of this YearlyFinancials.

        :return: The others of this YearlyFinancials.
        :rtype: float
        """
        return self._others

    @others.setter
    def others(self, others):
        """
        Sets the others of this YearlyFinancials.

        :param others: The others of this YearlyFinancials.
        :type: float
        """
        self._others = others

    @property
    def long_term_borrowings(self):
        """
        Gets the long_term_borrowings of this YearlyFinancials.

        :return: The long_term_borrowings of this YearlyFinancials.
        :rtype: float
        """
        return self._long_term_borrowings

    @long_term_borrowings.setter
    def long_term_borrowings(self, long_term_borrowings):
        """
        Sets the long_term_borrowings of this YearlyFinancials.

        :param long_term_borrowings: The long_term_borrowings of this YearlyFinancials.
        :type: float
        """
        self._long_term_borrowings = long_term_borrowings

    @property
    def other_current_liabilities_and_provisions(self):
        """
        Gets the other_current_liabilities_and_provisions of this YearlyFinancials.

        :return: The other_current_liabilities_and_provisions of this YearlyFinancials.
        :rtype: float
        """
        return self._other_current_liabilities_and_provisions

    @other_current_liabilities_and_provisions.setter
    def other_current_liabilities_and_provisions(self, other_current_liabilities_and_provisions):
        """
        Sets the other_current_liabilities_and_provisions of this YearlyFinancials.

        :param other_current_liabilities_and_provisions: The other_current_liabilities_and_provisions of this YearlyFinancials.
        :type: float
        """
        self._other_current_liabilities_and_provisions = other_current_liabilities_and_provisions

    @property
    def other_long_term_liabilities_and_provisions(self):
        """
        Gets the other_long_term_liabilities_and_provisions of this YearlyFinancials.

        :return: The other_long_term_liabilities_and_provisions of this YearlyFinancials.
        :rtype: float
        """
        return self._other_long_term_liabilities_and_provisions

    @other_long_term_liabilities_and_provisions.setter
    def other_long_term_liabilities_and_provisions(self, other_long_term_liabilities_and_provisions):
        """
        Sets the other_long_term_liabilities_and_provisions of this YearlyFinancials.

        :param other_long_term_liabilities_and_provisions: The other_long_term_liabilities_and_provisions of this YearlyFinancials.
        :type: float
        """
        self._other_long_term_liabilities_and_provisions = other_long_term_liabilities_and_provisions

    @property
    def trade_payables(self):
        """
        Gets the trade_payables of this YearlyFinancials.

        :return: The trade_payables of this YearlyFinancials.
        :rtype: float
        """
        return self._trade_payables

    @trade_payables.setter
    def trade_payables(self, trade_payables):
        """
        Sets the trade_payables of this YearlyFinancials.

        :param trade_payables: The trade_payables of this YearlyFinancials.
        :type: float
        """
        self._trade_payables = trade_payables

    @property
    def short_term_borrowings(self):
        """
        Gets the short_term_borrowings of this YearlyFinancials.

        :return: The short_term_borrowings of this YearlyFinancials.
        :rtype: float
        """
        return self._short_term_borrowings

    @short_term_borrowings.setter
    def short_term_borrowings(self, short_term_borrowings):
        """
        Sets the short_term_borrowings of this YearlyFinancials.

        :param short_term_borrowings: The short_term_borrowings of this YearlyFinancials.
        :type: float
        """
        self._short_term_borrowings = short_term_borrowings

    @property
    def total_equity(self):
        """
        Gets the total_equity of this YearlyFinancials.

        :return: The total_equity of this YearlyFinancials.
        :rtype: float
        """
        return self._total_equity

    @total_equity.setter
    def total_equity(self, total_equity):
        """
        Sets the total_equity of this YearlyFinancials.

        :param total_equity: The total_equity of this YearlyFinancials.
        :type: float
        """
        self._total_equity = total_equity

    @property
    def total_equity_and_liabilities(self):
        """
        Gets the total_equity_and_liabilities of this YearlyFinancials.

        :return: The total_equity_and_liabilities of this YearlyFinancials.
        :rtype: float
        """
        return self._total_equity_and_liabilities

    @total_equity_and_liabilities.setter
    def total_equity_and_liabilities(self, total_equity_and_liabilities):
        """
        Sets the total_equity_and_liabilities of this YearlyFinancials.

        :param total_equity_and_liabilities: The total_equity_and_liabilities of this YearlyFinancials.
        :type: float
        """
        self._total_equity_and_liabilities = total_equity_and_liabilities

    @property
    def depreciation(self):
        """
        Gets the depreciation of this YearlyFinancials.

        :return: The depreciation of this YearlyFinancials.
        :rtype: float
        """
        return self._depreciation

    @depreciation.setter
    def depreciation(self, depreciation):
        """
        Sets the depreciation of this YearlyFinancials.

        :param depreciation: The depreciation of this YearlyFinancials.
        :type: float
        """
        self._depreciation = depreciation

    @property
    def exceptional_item_before_tax(self):
        """
        Gets the exceptional_item_before_tax of this YearlyFinancials.

        :return: The exceptional_item_before_tax of this YearlyFinancials.
        :rtype: float
        """
        return self._exceptional_item_before_tax

    @exceptional_item_before_tax.setter
    def exceptional_item_before_tax(self, exceptional_item_before_tax):
        """
        Sets the exceptional_item_before_tax of this YearlyFinancials.

        :param exceptional_item_before_tax: The exceptional_item_before_tax of this YearlyFinancials.
        :type: float
        """
        self._exceptional_item_before_tax = exceptional_item_before_tax

    @property
    def income_tax(self):
        """
        Gets the income_tax of this YearlyFinancials.

        :return: The income_tax of this YearlyFinancials.
        :rtype: float
        """
        return self._income_tax

    @income_tax.setter
    def income_tax(self, income_tax):
        """
        Sets the income_tax of this YearlyFinancials.

        :param income_tax: The income_tax of this YearlyFinancials.
        :type: float
        """
        self._income_tax = income_tax

    @property
    def interest(self):
        """
        Gets the interest of this YearlyFinancials.

        :return: The interest of this YearlyFinancials.
        :rtype: float
        """
        return self._interest

    @interest.setter
    def interest(self, interest):
        """
        Sets the interest of this YearlyFinancials.

        :param interest: The interest of this YearlyFinancials.
        :type: float
        """
        self._interest = interest

    @property
    def net_income(self):
        """
        Gets the net_income of this YearlyFinancials.

        :return: The net_income of this YearlyFinancials.
        :rtype: float
        """
        return self._net_income

    @net_income.setter
    def net_income(self, net_income):
        """
        Sets the net_income of this YearlyFinancials.

        :param net_income: The net_income of this YearlyFinancials.
        :type: float
        """
        self._net_income = net_income

    @property
    def operating_cost(self):
        """
        Gets the operating_cost of this YearlyFinancials.

        :return: The operating_cost of this YearlyFinancials.
        :rtype: float
        """
        return self._operating_cost

    @operating_cost.setter
    def operating_cost(self, operating_cost):
        """
        Sets the operating_cost of this YearlyFinancials.

        :param operating_cost: The operating_cost of this YearlyFinancials.
        :type: float
        """
        self._operating_cost = operating_cost

    @property
    def operating_profit(self):
        """
        Gets the operating_profit of this YearlyFinancials.

        :return: The operating_profit of this YearlyFinancials.
        :rtype: float
        """
        return self._operating_profit

    @operating_profit.setter
    def operating_profit(self, operating_profit):
        """
        Sets the operating_profit of this YearlyFinancials.

        :param operating_profit: The operating_profit of this YearlyFinancials.
        :type: float
        """
        self._operating_profit = operating_profit

    @property
    def other_income(self):
        """
        Gets the other_income of this YearlyFinancials.

        :return: The other_income of this YearlyFinancials.
        :rtype: float
        """
        return self._other_income

    @other_income.setter
    def other_income(self, other_income):
        """
        Sets the other_income of this YearlyFinancials.

        :param other_income: The other_income of this YearlyFinancials.
        :type: float
        """
        self._other_income = other_income

    @property
    def profit_before_interest_and_tax(self):
        """
        Gets the profit_before_interest_and_tax of this YearlyFinancials.

        :return: The profit_before_interest_and_tax of this YearlyFinancials.
        :rtype: float
        """
        return self._profit_before_interest_and_tax

    @profit_before_interest_and_tax.setter
    def profit_before_interest_and_tax(self, profit_before_interest_and_tax):
        """
        Sets the profit_before_interest_and_tax of this YearlyFinancials.

        :param profit_before_interest_and_tax: The profit_before_interest_and_tax of this YearlyFinancials.
        :type: float
        """
        self._profit_before_interest_and_tax = profit_before_interest_and_tax

    @property
    def profit_before_tax(self):
        """
        Gets the profit_before_tax of this YearlyFinancials.

        :return: The profit_before_tax of this YearlyFinancials.
        :rtype: float
        """
        return self._profit_before_tax

    @profit_before_tax.setter
    def profit_before_tax(self, profit_before_tax):
        """
        Sets the profit_before_tax of this YearlyFinancials.

        :param profit_before_tax: The profit_before_tax of this YearlyFinancials.
        :type: float
        """
        self._profit_before_tax = profit_before_tax

    @property
    def revenue(self):
        """
        Gets the revenue of this YearlyFinancials.

        :return: The revenue of this YearlyFinancials.
        :rtype: float
        """
        return self._revenue

    @revenue.setter
    def revenue(self, revenue):
        """
        Sets the revenue of this YearlyFinancials.

        :param revenue: The revenue of this YearlyFinancials.
        :type: float
        """
        self._revenue = revenue

    def to_dict(self):
        """
        Returns the model properties as a dict
        """
        result = {}

        for attr, _ in iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            else:
                result[attr] = value

        return result

    def to_str(self):
        """
        Returns the string representation of the model
        """
        return pformat(self.to_dict())

    def __repr__(self):
        """
        For `print` and `pprint`
        """
        return self.to_str()

    def __eq__(self, other):
        """
        Returns true if both objects are equal
        """
        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """
        Returns true if both objects are not equal
        """
        return not self == other


text:
How to use?
===========

You can import blocksit from ``js.blocksit`` and ``need`` it where you want
these resources to be included on a page::

  >>> from js.blocksit import blocksit
  >>> blocksit.need()

.. _`fanstatic`: http://fanstatic.org
.. _`blocksit`: http://www.inwebson.com/jquery/blocksit-js-dynamic-grid-layout-jquery-plugin/


text:
package fake

import (
	v1 "github.com/openshift/origin/pkg/route/client/clientset_generated/release_v1_5/typed/core/v1"
	restclient "k8s.io/kubernetes/pkg/client/restclient"
	core "k8s.io/kubernetes/pkg/client/testing/core"
)

type FakeCore struct {
	*core.Fake
}

func (c *FakeCore) Routes(namespace string) v1.RouteInterface {
	return &FakeRoutes{c, namespace}
}

// GetRESTClient returns a RESTClient that is used to communicate
// with API server by this client implementation.
func (c *FakeCore) GetRESTClient() *restclient.RESTClient {
	return nil
}


text:
<?php

/*
 * GENERATED CODE WARNING
 * Generated by gapic-generator-php from the file
 * https://github.com/googleapis/googleapis/blob/master/google/cloud/compute/v1/compute.proto
 * Updates to the above are reflected here through a refresh process.
 */

namespace Google\Cloud\Compute\V1\Enums\Region;

/**
 * Status contains string constants that represent the names of each value in the
 * google.cloud.compute.v1.Region.Status descriptor.
 */
class Status
{
    const UNDEFINED_STATUS = 'UNDEFINED_STATUS';

    const DOWN = 'DOWN';

    const UP = 'UP';
}


text:
package com.haringeymobile.ukweather.utils;

import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.util.Log;

import com.haringeymobile.ukweather.R;

import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class MiscMethods {

    private static final boolean LOGS_ON = false;
    private static final String LOGS = "Logs";

    private static final String NO_CITIES_FOUND_MESSAGE_PART_PREFIX = "   # ";
    private static final String NO_CITIES_FOUND_MESSAGE_COORDINATES = ": 13.8,109.343; 48,77.24.";

    /**
     * A convenience method to send a log message.
     */
    public static void log(String s) {
        if (LOGS_ON)
            Log.d(LOGS, s);
    }

    /**
     * Formats and represents the provided {@code double} value.
     *
     * @param d a {@code double} value
     * @return a textual representation of the decimal number with one decimal place
     */
    public static String formatDoubleValue(double d, int decimalPlaces) {
        String pattern;
        switch (decimalPlaces) {
            case 1:
                pattern = "##.#";
                break;
            case 2:
                pattern = "##.##";
                break;
            default:
                throw new IllegalArgumentException("Provide a pattern for " + decimalPlaces +
                        " decimal places!");
        }
        DecimalFormat df = new DecimalFormat(pattern);
        return df.format(d);
    }

    /**
     * Determines whether the user's device can connect to network at the moment.
     */
    public static boolean isUserOnline(Context context) {
        ConnectivityManager connMgr = (ConnectivityManager) context.getSystemService(
                Context.CONNECTIVITY_SERVICE);
        NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();
        return networkInfo != null && networkInfo.isConnected();
    }

    /**
     * Obtains a day of the week name.
     *
     * @return weekday name in abbreviated form, e.g., Mon, Fri
     */
    public static String getAbbreviatedWeekdayName(Date date) {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("E");
        return simpleDateFormat.format(date);
    }

    /**
     * Removes surrounding transparent pixels from bitmap (if there are any).
     *
     * @param originalBitmap bitmap that may contain transparent pixels we would like to remove
     * @return new bitmap, which looks like an original bitmap, but with the surrounding
     * whitespace removed
     */
    public static Bitmap trimBitmap(Bitmap originalBitmap) {
        int originalHeight = originalBitmap.getHeight();
        int originalWidth = originalBitmap.getWidth();

        //trimming width from left
        int xCoordinateOfFirstPixel = 0;
        for (int x = 0; x < originalWidth; x++) {
            if (xCoordinateOfFirstPixel == 0) {
                for (int y = 0; y < originalHeight; y++) {
                    if (originalBitmap.getPixel(x, y) != Color.TRANSPARENT) {
                        xCoordinateOfFirstPixel = x;
                        break;
                    }
                }
            } else break;
        }

        //trimming width from right
        int xCoordinateOfLastPixel = 0;
        for (int x = originalWidth - 1; x >= 0; x--) {
            if (xCoordinateOfLastPixel == 0) {
                for (int y = 0; y < originalHeight; y++) {
                    if (originalBitmap.getPixel(x, y) != Color.TRANSPARENT) {
                        xCoordinateOfLastPixel = x;
                        break;
                    }
                }
            } else break;
        }

        //trimming height from top
        int yCoordinateOfFirstPixel = 0;
        for (int y = 0; y < originalHeight; y++) {
            if (yCoordinateOfFirstPixel == 0) {
                for (int x = 0; x < originalWidth; x++) {
                    if (originalBitmap.getPixel(x, y) != Color.TRANSPARENT) {
                        yCoordinateOfFirstPixel = y;
                        break;
                    }
                }
            } else break;
        }

        //trimming height from bottom
        int yCoordinateOfLastPixel = 0;
        for (int y = originalHeight - 1; y >= 0; y--) {
            if (yCoordinateOfLastPixel == 0) {
                for (int x = 0; x < originalWidth; x++) {
                    if (originalBitmap.getPixel(x, y) != Color.TRANSPARENT) {
                        yCoordinateOfLastPixel = y;
                        break;
                    }
                }
            } else break;
        }

        int newBitmapWidth = xCoordinateOfLastPixel - xCoordinateOfFirstPixel;
        int newBitmapHeight = yCoordinateOfLastPixel - yCoordinateOfFirstPixel;
        return Bitmap.createBitmap(originalBitmap, xCoordinateOfFirstPixel,
                yCoordinateOfFirstPixel, newBitmapWidth, newBitmapHeight);
    }

    /**
     * Generates and formats for display an explanation how to search for new cities.
     *
     * @param res app resources
     * @return formatted text to be displayed in a text view
     */
    public static String getNoCitiesFoundDialogMessage(Resources res) {
        String dialogMessage = NO_CITIES_FOUND_MESSAGE_PART_PREFIX;
        dialogMessage += res.getString(R.string.message_no_cities_found_part_1);
        dialogMessage += "\n";
        dialogMessage += NO_CITIES_FOUND_MESSAGE_PART_PREFIX;
        dialogMessage += res.getString(R.string.message_no_cities_found_part_2);
        dialogMessage += "\n";
        dialogMessage += NO_CITIES_FOUND_MESSAGE_PART_PREFIX;
        dialogMessage += res.getString(R.string.message_no_cities_found_part_3);
        dialogMessage += NO_CITIES_FOUND_MESSAGE_COORDINATES;
        return dialogMessage;
    }

    /**
     * Updates locale for app process.
     *
     * @param localeCode language and (optionally) country code, defined by ISO, eg. pt-rBR for
     *                   Portuguese in Brazil
     * @param res        app resources
     */
    public static void updateLocale(String localeCode, Resources res) {
        Locale locale;
        if (localeCode.contains("-r") || localeCode.contains("-")) {
            final String[] language_region = localeCode.split("\\-(r)?");
            locale = new Locale(language_region[0], language_region[1]);
        } else {
            locale = new Locale(localeCode);
        }
        Configuration config = res.getConfiguration();
        config.locale = locale;
        res.updateConfiguration(config, res.getDisplayMetrics());
        Locale.setDefault(locale);
    }

}


text:
require 'rubygems'

$:.unshift File.expand_path('..', __FILE__)
$:.unshift File.expand_path('../../lib', __FILE__)

require 'yandex-webmaster'
require 'rspec'
require 'webmock/rspec'
require 'vcr'

require 'coveralls'
Coveralls.wear!

VCR.configure do |config|
  config.cassette_library_dir = 'spec/fixtures/cassettes'
  config.hook_into(:webmock)
  config.ignore_localhost = true
  config.default_cassette_options = { :record => :once }
  config.configure_rspec_metadata!
end

RSpec.configure do |config|
  config.include WebMock::API
  config.order = :rand
  config.color_enabled = true
  config.treat_symbols_as_metadata_keys_with_true_values = true

  config.before(:each) do
    WebMock.reset!
  end
  config.after(:each) do
    WebMock.reset!
  end
end

APPLICATION_ID = '663576cbd55948a4ae45424fb508ef97'
APPLICATION_PASSWORD = 'fc2f76dc877e41a4a6cbe78d73faff85'

token_file = File.expand_path('../.access_token', __FILE__)
if File.exists?(token_file)
  ACCESS_TOKEN = File.read(token_file).strip
else
  ACCESS_TOKEN = 'FAKETOKEN'
  puts "You are using a fake access token. You can only use API responds recorded by VCR"
end


text:
'use strict';

const mongoose = require('mongoose');
const config = require('../../../config/config').config;
mongoose.set('debug', true);

// Use Bluebird for mongoose promise library
mongoose.Promise = require('bluebird');

exports.connect = function() {
    var options = {
        useMongoClient: true
    };

    // Start MongoDB connection
    mongoose.connect(config.db, options);
    const db = mongoose.connection;
    db.on('error', console.error.bind(console, 'MongoDB connection error'));
    db.once('open', () => {

        if (process.env.NODE_ENV !== 'test') {
            console.log('Successfully connected to MongoDB database: ' + db.db.databaseName);
        }

    });

};


text:
target_process_id: 7428
title: Talking to my landlord about my rent
advice_anchor_id: talking-to-my-landlord-about-my-rent
slug: talking-to-my-landlord-about-my-rent
---
#### Tell your landlord you're claiming Universal Credit

Don't rely on the Universal Credit centre or your work coach to tell your landlord you're claiming Universal Credit.

Contact your landlord to check they know.

If you're living in social housing there might help available from tenancy support or income officers to manage the move to Universal Credit.

They can help you work out the best way to pay your rent on time.

Speak to your Tenancy Support Officer or Income Officer if you need help managing your rent

#### If you're getting Housing Benefit now
Your Housing Benefit should stop when you claim Universal Credit.

Check with your local council that they know you are now claiming Universal Credit and that your Housing Benefit claim is stopping.

If you don't check, your Housing Benefit may continue and you risk being overpaid.

Contact your local council to make sure they know about your Universal Credit claim.

#### Changing your rent date
When you know the date your Universal Credit goes into your bank account, you might be able to change your rent date so that you can pay it just after you get paid.

Some social landlords offer 'Any date' rent arrangements, which makes changing easier.

#### If you can't change your rent date
You could set up a separate bank account that you can pay your rent money into when you get your UC payment or wages each month.

This will protect your rent money. You can then set up a Direct Debit or standing order to make sure that the rent is paid on time to your landlord.

Contact your Tenancy Support Officer or Income Officer and ask if they offer an 'Any Date' rent arrangement if you want to switch your rent date.

#### Documents you'll need when you talk to your landlord
* tenancy agreement
* rent statement
* confirmation of any rent free weeks


text:
module Controll
  module Helper
    module Params
      extend ActiveSupport::Concern
      include Controll::Helper::HashAccess

      module ClassMethods
        def param_methods *args
          options = args.extract_options!
          names = args
          hash_access_method *names, options.merge(hash: :params)
        end

        def param_method name, options = {}
          hash_access_method name, options.merge(hash: :params)
        end
      end
    end
  end
end


text:
import { TabPanel } from './TabPanel';

import * as React from 'react';

import classNames = require('classnames');

export class TabbedPanel extends React.Component<{ children?: TabPanel[], ref?: string }, { selectedIndex: number }> {
    public constructor(props?) {
        super(props);

        this.state = {
            selectedIndex: 0
        };
    }

    public render() {
        return (

                { this.renderHeaders() }
                { this.renderSelectedTab() }

        );
    }

    public select(index: number) {
        this.onSelect(index);
    }

    private renderHeaders() {
        return (

            { this.props.children.map((tabPanel, index) => this.renderHeader(tabPanel.props.header, index)) }

        );
    }

    private renderHeader(header: string, index: number) {
        return (

 this.onSelect(index)}>{header}

        );
    }

    private renderSelectedTab() {
        return (

                { this.props.children[this.state.selectedIndex] }

        );
    }

    private onSelect(index: number) {
        this.setState({
            selectedIndex: index
        });
    }
}