text:
package com.amazonaws.services.redshift.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 *
 * @see AWS API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DeleteAuthenticationProfileRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     *

     * The name of the authentication profile to delete.
     *

     */
    private String authenticationProfileName;

    /**
     *

     * The name of the authentication profile to delete.
     *

     *
     * @param authenticationProfileName
     *        The name of the authentication profile to delete.
     */

    public void setAuthenticationProfileName(String authenticationProfileName) {
        this.authenticationProfileName = authenticationProfileName;
    }

    /**
     *

     * The name of the authentication profile to delete.
     *

     *
     * @return The name of the authentication profile to delete.
     */

    public String getAuthenticationProfileName() {
        return this.authenticationProfileName;
    }

    /**
     *

     * The name of the authentication profile to delete.
     *

     *
     * @param authenticationProfileName
     *        The name of the authentication profile to delete.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public DeleteAuthenticationProfileRequest withAuthenticationProfileName(String authenticationProfileName) {
        setAuthenticationProfileName(authenticationProfileName);
        return this;
    }

    /**
     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
     * redacted from this string using a placeholder value.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getAuthenticationProfileName() != null)
            sb.append("AuthenticationProfileName: ").append(getAuthenticationProfileName());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof DeleteAuthenticationProfileRequest == false)
            return false;
        DeleteAuthenticationProfileRequest other = (DeleteAuthenticationProfileRequest) obj;
        if (other.getAuthenticationProfileName() == null ^ this.getAuthenticationProfileName() == null)
            return false;
        if (other.getAuthenticationProfileName() != null && other.getAuthenticationProfileName().equals(this.getAuthenticationProfileName()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getAuthenticationProfileName() == null) ? 0 : getAuthenticationProfileName().hashCode());
        return hashCode;
    }

    @Override
    public DeleteAuthenticationProfileRequest clone() {
        return (DeleteAuthenticationProfileRequest) super.clone();
    }

}


text:
class LoginService

  class << self

    def authenticate(mobile, code)
      user = User.where(cellphone: mobile).first
      if user
        captcha, content = CaptchaService.verify_captcha(user.cellphone, code)
        if captcha
          [user]
        else
          [captcha, content]
        end
      else
        ErrorCode.error_words(:user_not_existed)
      end
    end

  end

end

redpajama_set_name: RedPajamaGithub


text:
require 'spec_helper'

module Omnibus
  describe NetFetcher do
    include_examples 'a software'

    let(:source_url) { 'http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz' }
    let(:source_md5) { '00b516f4704d4a7cb50a1d97e6e8e15b' }
    let(:source) do
      { url: source_url, md5: source_md5 }
    end

    let(:downloaded_file) { subject.send(:downloaded_file) }
    let(:extracted) { File.join(source_dir, 'bzip2-1.0.6') }

    subject { described_class.new(software) }

    describe '#fetch_required?' do
      context 'when the file is not downloaded' do
        it 'return true' do
          expect(subject.fetch_required?).to be_truthy
        end
      end

      context 'when the file is downloaded' do
        before { subject.fetch }

        context 'when the checksum is different' do
          it 'return true' do
            allow(subject).to receive(:checksum).and_return('abcd1234')
            expect(subject.fetch_required?).to be_truthy
          end
        end

        context 'when the checksum is the same' do
          it 'return false' do
            expect(subject.fetch_required?).to be(false)
          end
        end
      end
    end

    describe '#version_guid' do
      it 'includes the source md5' do
        expect(subject.version_guid).to eq("md5:#{source_md5}")
      end
    end

    describe '#clean' do
      before { subject.fetch }

      context 'when the project directory exists' do
        before do
          create_file("#{project_dir}/file_a")
        end

        it 'extracts the asset' do
          subject.clean
          expect(extracted).to_not be_a_file
        end

        it 'returns true' do
          expect(subject.clean).to be_truthy
        end
      end

      context 'when the project directory does not exist' do
        before do
          remove_directory(project_dir)
        end

        it 'returns false' do
          expect(subject.clean).to be(false)
        end
      end
    end

    describe '#fetch' do
      it 'downloads the file' do
        subject.fetch
        expect(downloaded_file).to be_a_file
      end

      context 'when the checksum is invalid' do
        let(:source_md5) { 'bad01234checksum' }

        it 'raises an exception' do
          expect { subject.fetch }.to raise_error(ChecksumMismatch)
        end
      end

      it 'extracts the file' do
        subject.fetch
        expect(extracted).to be_a_directory
      end

      context 'when the file is less than 10240 bytes' do
        let(:source_url) { 'https://downloads.chef.io/chef.gpg.key' }
        let(:source_md5) { 'c8f49b137b190707a0c5f5702a147155' }

        it 'downloads the file' do
          subject.fetch
          expect(downloaded_file).to be_a_file
        end
      end
    end

    describe '#version_for_cache' do
      before do
        create_file("#{project_dir}/file_a")
        create_file("#{project_dir}/file_b")
        create_file("#{project_dir}/.file_c")
      end

      it 'includes the download_url and checksum' do
        expect(subject.version_for_cache).to eq("download_url:#{source_url}|md5:#{source_md5}")
      end
    end
  end
end


text:
import requests

url = "https://maps.googleapis.com/maps/api/timezone/json?key="

payload={}
headers = {}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

# [END maps_http_timezone_request_denied]


text:
package scray.querying.source.costs

import scray.querying.queries.DomainQuery
import scray.querying.source.Source

trait QueryCostFunctionFactory {
  def getCostFunction[Q <: DomainQuery, T](source: Source[Q, T]): CostFunction[Q]
}


text:
package org.apache.metron.test.utils;

import org.apache.log4j.ConsoleAppender;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.PatternLayout;
import org.junit.Assert;

import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.FileVisitResult;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.SimpleFileVisitor;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.Set;
import java.util.Stack;

import static java.lang.String.format;

public class UnitTestHelper {
  public static String findDir(String name) {
    return findDir(new File("."), name);
  }

  public static String findDir(File startDir, String name) {
    Stack<File> s = new Stack<File>();
    s.push(startDir);
    while (!s.empty()) {
      File parent = s.pop();
      if (parent.getName().equalsIgnoreCase(name)) {
        return parent.getAbsolutePath();
      } else {
        File[] children = parent.listFiles();
        if (children != null) {
          for (File child : children) {
            s.push(child);
          }
        }
      }
    }
    return null;
  }

  public static <T> void assertSetEqual(String type, Set<T> expectedPcapIds, Set<T> found) {
    boolean mismatch = false;
    for (T f : found) {
      if (!expectedPcapIds.contains(f)) {
        mismatch = true;
        System.out.println("Found " + type + " that I did not expect: " + f);
      }
    }
    for (T expectedId : expectedPcapIds) {
      if (!found.contains(expectedId)) {
        mismatch = true;
        System.out.println("Expected " + type + " that I did not index: " + expectedId);
      }
    }
    Assert.assertFalse(mismatch);
  }

  public static void verboseLogging() {
    verboseLogging("%d [%p|%c|%C{1}] %m%n", Level.ALL);
  }

  public static void verboseLogging(String pattern, Level level) {
    ConsoleAppender console = new ConsoleAppender(); //create appender
    //configure the appender
    console.setLayout(new PatternLayout(pattern));
    console.setThreshold(level);
    console.activateOptions();
    //add appender to any Logger (here is root)
    Logger.getRootLogger().addAppender(console);
  }

  /**
   * Create directory that is automatically cleaned up after the
   * JVM shuts down through use of a Runtime shutdown hook.
   *
   * @param dir Directory to create, including missing parent directories
   * @return File handle to the created temp directory
   */
  public static File createTempDir(File dir) throws IOException {
    return createTempDir(dir, true);
  }

  /**
   * Create directory that is automatically cleaned up after the
   * JVM shuts down through use of a Runtime shutdown hook.
   *
   * @param dir Directory to create, including missing parent directories
   * @param cleanup true/false
   * @return File handle to the created temp directory
   */
  public static File createTempDir(File dir, boolean cleanup) throws IOException {
    if (!dir.mkdirs() && !dir.exists()) {
      throw new IOException(String.format("Failed to create directory structure '%s'", dir.toString()));
    }
    if (cleanup) {
      addCleanupHook(dir.toPath());
    }
    return dir;
  }

  /**
   * Create directory that is automatically cleaned up after the
   * JVM shuts down through use of a Runtime shutdown hook.
   *
   * @param prefix Prefix to apply to temp directory name
   * @return File handle to the created temp directory
   * @throws IOException Unable to create temp directory
   */
  public static File createTempDir(String prefix) throws IOException {
    return createTempDir(prefix, true);
  }

  /**
   * Create directory that is optionally cleaned up after the
   * JVM shuts down through use of a Runtime shutdown hook.
   *
   * @param prefix Prefix to apply to temp directory name
   * @param cleanup true/false
   * @return File handle to the created temp directory
   * @throws IOException Unable to create temp directory
   */
  public static File createTempDir(String prefix, boolean cleanup) throws IOException {
    Path tmpDir = Files.createTempDirectory(prefix);
    addCleanupHook(tmpDir);
    return tmpDir.toFile();
  }

  /**
   * Adds JVM shutdown hook that will recursively delete the passed directory
   *
   * @param dir Directory that will be cleaned up upon JVM shutdown
   */
  public static void addCleanupHook(final Path dir) {
    Runtime.getRuntime().addShutdownHook(new Thread() {
      @Override
      public void run() {
        try {
          cleanDir(dir);
        } catch (IOException e) {
          System.out.println(format("Warning: Unable to clean folder '%s'", dir.toString()));
        }
      }
    });
  }

  /**
   * Recursive directory delete
   *
   * @param dir Directory to delete
   * @throws IOException Unable to delete
   */
  public static void cleanDir(Path dir) throws IOException {
    Files.walkFileTree(dir, new SimpleFileVisitor<Path>() {

      @Override
      public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
        Files.delete(file);
        return FileVisitResult.CONTINUE;
      }

      @Override
      public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {
        Files.delete(file);
        return FileVisitResult.CONTINUE;
      }

      @Override
      public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {
        if (exc == null) {
          return FileVisitResult.CONTINUE;
        } else {
          throw exc;
        }
      }
    });
    Files.delete(dir);
  }

  /**
   * Write contents to a file
   *
   * @param file
   * @param contents
   * @return file handle
   * @throws IOException
   */
  public static File write(File file, String contents) throws IOException {
    com.google.common.io.Files.createParentDirs(file);
    com.google.common.io.Files.write(contents, file, StandardCharsets.UTF_8);
    return file;
  }
}


text:
package models

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	strfmt "github.com/go-openapi/strfmt"
)

// Error error
// swagger:model Error

type Error string

// Validate validates this error
func (m Error) Validate(formats strfmt.Registry) error {
	return nil
}


text:
import numpy as np
from phonopy.structure.cells import get_primitive
from phonopy.units import VaspToTHz
from upho.phonon.star_creator import StarCreator
from upho.phonon.translational_projector import TranslationalProjector
from upho.phonon.rotational_projector import RotationalProjector
from upho.phonon.vectors_adjuster import VectorsAdjuster
from upho.phonon.element_weights_calculator import (
    ElementWeightsCalculator)
from upho.analysis.time_measurer import TimeMeasurer

class Eigenstates:
    def __init__(self,
                 dynamical_matrix,
                 unitcell_ideal,
                 primitive_matrix_ideal,
                 star="none",
                 mode="eigenvector",
                 factor=VaspToTHz,
                 verbose=False):
        self._verbose = verbose
        self._mode = mode

        self._factor = factor

        self._cell = dynamical_matrix.get_primitive()  # Disordered
        self._dynamical_matrix = dynamical_matrix

        self._star = star
        self._unitcell_ideal = unitcell_ideal
        # In this module, primitive is w.r.t. the unit cell (may be disordered).
        self._primitive = get_primitive(
            self._unitcell_ideal, primitive_matrix_ideal)

        self._build_star_creator()
        self._generate_translational_projector()
        self._generate_vectors_adjuster()
        self._create_rotational_projector()
        self._build_element_weights_calculator()

    def _build_element_weights_calculator(self):
        unitcell_orig   = self._cell
        primitive_ideal = self._primitive
        self._element_weights_calculator = ElementWeightsCalculator(
            unitcell_orig, primitive_ideal)

    def _build_star_creator(self):
        if self._star == "all":
            is_overlapping = True
        else:  # "none" or "sym"
            is_overlapping = False

        primitive_ideal_wrt_unitcell = self._primitive

        self._star_creator = StarCreator(
            is_overlapping=is_overlapping,
            atoms=primitive_ideal_wrt_unitcell)

        if self._star == "none":
            self._nopr = 1
        else:  # "sym" or "all"
            self._nopr = len(self._star_creator.get_rotations())

        print("nopr:", self._nopr)

    def _generate_translational_projector(self):
        self._translational_projector = TranslationalProjector(
            self._primitive, self._unitcell_ideal)

    def _create_rotational_projector(self):
        self._rotational_projector = RotationalProjector(self._primitive)

    def _generate_vectors_adjuster(self):
        # Get the (disordered) unitcell.
        primitive = self._dynamical_matrix.get_primitive()
        self._vectors_adjuster = VectorsAdjuster(primitive)

    def create_q_star(self, q):
        """

        Args:
            q: Reciprocal space point in fractional coordinates for "PC".

        "sym" : Duplication is not allowed.
        "all" : Duplication is allowed.
        "none": The star of k is not considered.
        """
        if self._star == "none":
            q_star, transformation_matrices = (
                np.array(q)[None, :], np.eye(3, dtype=int)[None, :, :])
        else:  # "all" or "sym"
            q_star, transformation_matrices = (
                self._star_creator.create_star(q))

        print("len(q_star):", len(q_star))
        print("q_star:")
        print(q_star)

        return q_star, transformation_matrices

    def extract_eigenstates(self, q):
        """

        Parameters
        ----------
        q : Reciprocal space point in fractional coordinates for "PC".

        Notes
        -----
        weights_arms : dictionary
            'total' : (num_arms, nbands)
            'SR'    : (num_arms, num_irreps, nbands)
            'E1'    : (num_arms, natoms_p, nelements, nbands)
            'SR_E1' : (num_arms, num_irreps, natoms_p, nelements, natoms_p, nelements, nbands)
        """
        print("=" * 40)
        print("q:", q)
        print("=" * 40)

        rotational_projector = self._rotational_projector
        rotational_projector.create_standard_rotations(q)
        print("pointgroup_symbol:", self.get_pointgroup_symbol())

        q_star, transformation_matrices = self.create_q_star(q)

        eigvals_arms = []  # (num_arms, nbands)

        weights_arms = {}
        weights_keys = ['total', 'SR', 'E1', 'SR_E1', 'E2']
        for k in weights_keys:
            weights_arms[k] = []

        for i_star, (q, transformation_matrix) in enumerate(zip(q_star, transformation_matrices)):
            print("i_star:", i_star)
            print("q_pc:", q)
            eigvals, eigvecs, weights = self._extract_eigenstates_for_q(
                q, transformation_matrix)

            eigvals_arms.append(eigvals)
            for k in weights_keys:
                weights_arms[k].append(weights[k])

        frequencies_arms = calculate_frequencies(np.array(eigvals_arms), self._factor)

        for k in weights_keys:
            weights_arms[k] = np.array(weights_arms[k]) / len(q_star)

        for k in weights_keys:
            print("Sum of weights_arms {:5s} :".format(k), np.nansum(weights_arms[k]))

        self._q_star = q_star
        self._point = q

        self._frequencies_arms     = frequencies_arms
        self._weights_arms = weights_arms

    def get_point(self):
        return self._point

    def get_frequencies_arms(self):
        return self._frequencies_arms

    def get_narms(self):
        return len(self._q_star)

    def get_pointgroup_symbol(self):
        return np.array(
            self._rotational_projector.get_pointgroup_symbol(), dtype='S')

    # def get_ir_labels(self):
    #     rotational_projector = self._rotational_projector

    #     ir_labels = [''] * MAX_IRREPS
    #     for i, l in enumerate(rotational_projector.get_ir_labels()):
    #         ir_labels[i] = l

    #     return ir_labels

    def get_ir_labels(self):
        return np.array(
            self._rotational_projector.get_ir_labels(), dtype='S')

    def get_num_irreps(self):
        return self._rotational_projector.get_num_irs()

    def _extract_eigenstates_for_q(self, q_pc, transformation_matrix):
        """Extract eigenstates with their weights.

        Parameters
        ----------
        q_pc : Reciprocal space point in fractional coordinatees for PC.
        transformation_matrix

        Returns
        -------
        eigvals : Eigenvalues of "SC".
        eigvecs : Eigenvectors of "SC".
        weights : Weights for the phonon modes of SC on PC.
            'E1' : (natoms_p, nelms, natoms_p, nelms, nbands) complex array
        """
        primitive_matrix = self._primitive.get_primitive_matrix()
        q_sc = get_q_sc_from_q_pc(q_pc, primitive_matrix)

        print("q_sc:", q_sc)

        self._dynamical_matrix.set_dynamical_matrix(q_sc)
        dm = self._dynamical_matrix.get_dynamical_matrix()
        with TimeMeasurer('Solve eigenproblem'):
            eigvals, eigvecs = np.linalg.eigh(dm)

        weights = {}

        with TimeMeasurer('Calculate weights for wavevectors'):
            weights['total'], t_proj_eigvecs = self._extract_weights(q_sc, eigvecs)

        try:
            weights['SR'], rot_proj_vectors = self._create_rot_projection_weights(
                q_pc, transformation_matrix, t_proj_eigvecs)
        except ValueError:
            weights['SR'] = np.nan

        # if __debug__:
        #     self._print_debug(eigvals, rot_weights)

        vectors_elements = self._create_vectors_elements(eigvecs)
        weights['E1'], t_proj_elm_vecs = self._create_weights_e1(vectors_elements, q_sc            )
        weights['E2']                  = self._create_weights_e2(vectors_elements, weights['total'])

        try:
            weights['SR_E1'], rot_proj_elm_vecs = self._create_rotational_weights_for_elements(
                q_pc, transformation_matrix, t_proj_elm_vecs
            )
        except ValueError:
            weights['SR_E1'] = np.nan

        return eigvals, eigvecs, weights

    def _extract_weights(self, q, eigvecs):
        """Extract weights.

        Args:
            q: Reciprocal space point in fractional coordinates for SC.
            eigvecs: Eigenvectors for SC at q.

        Returns:
            weights: Weights of eigenvectors on the primitive cell at q.
        """
        translational_projector = self._translational_projector

        projected_eigvecs = translational_projector.project_vectors(
            vectors=eigvecs, kpoint=q)

        weights = np.linalg.norm(projected_eigvecs, axis=0) ** 2

        return weights, projected_eigvecs

    def _create_rot_projection_weights(self, kpoint, transformation_matrix, t_proj_vectors):
        """

        Parameters
        ----------
        kpoint : 1d array
            Reciprocal space point in fractional coordinates for PC.
        t_proj_vectors : (natoms_p * ndims, nbands) array
            Vectors for SC after translational projection.
        """
        rot_proj_vectors = self._rotational_projector.project_vectors(
            t_proj_vectors, kpoint, transformation_matrix)

        rot_weights = np.linalg.norm(rot_proj_vectors, axis=1) ** 2

        self.check_rotational_projected_vectors(
            rot_proj_vectors, t_proj_vectors)

        return rot_weights, rot_proj_vectors

    def _create_rotational_weights_for_elements(self, kpoint, transformation_matrix, vectors):
        """

        Parameters
        ----------
        kpoint : 1d array
            Reciprocal space point in fractional coordinates for PC.
        vectors : (..., natoms_p * ndims, nbands) array
            Vectors for SC after translational projection.
        """
        projected_vectors = self._rotational_projector.project_vectors(
            vectors, kpoint, transformation_matrix)

        nirreps, natoms_p, nelms, tmp, nbands = projected_vectors.shape

        shape = (nirreps, natoms_p, nelms, natoms_p, nelms, nbands)
        weights = np.zeros(shape, dtype=complex)
        for i in range(nirreps):
            for j in range(nbands):
                weights[i, ..., j] = np.inner(
                    np.conj(projected_vectors[i, ..., j]), projected_vectors[i, ..., j])

        return weights, projected_vectors

    def check_rotational_projected_vectors(self, rot_proj_vectors, vectors):
        sum_rot_proj_vectors = np.sum(rot_proj_vectors, axis=0)
        diff = sum_rot_proj_vectors - vectors
        if np.any(np.abs(diff) > 1e-12):
            np.save("tmp_t", vectors)
            np.save("tmp_r", sum_rot_proj_vectors)
            raise ValueError("Sum of rotationally projected vectors is not "
                             "equal to original vectors.")

    def _print_debug(self, eigvals, rot_weights):
        ir_labels = self._rotational_projector.get_ir_labels()
        num_irs = len(ir_labels)
        print(" " * 14, end="")
        print("".join("{:<12s}".format(v) for v in ir_labels))
        for i, values in enumerate(rot_weights.T):
            print("{:12.6f}  ".format(eigvals[i]), end="")
            print("".join("{:12.6f}".format(v) for v in values[:num_irs]), end="")
            print()

    def _create_vectors_elements(self, vectors):
        elemental_projector = self._element_weights_calculator
        vectors_elements = elemental_projector.project_vectors(vectors)
        return vectors_elements

    def _create_weights_e1(self, vectors_elements, kpoint):
        """

        Parameters
        ----------
        vectors_elements : (natoms_p, nelms, natoms_u * ndims, nbands) array
        kpoint : Reciprocal space point in fractional coordinates for SC.

        Returns
        -------
        weights_e1 : (natoms_p, nelms, natoms_p, nelms, nbands) array
            Elemental weights.
        projected_vectors : (natoms_p, nelms, natoms_u * ndims, nbands) array
            Elemental projected vectors.
        """
        translational_projector = self._translational_projector

        projected_vectors = translational_projector.project_vectors(
            vectors=vectors_elements, kpoint=kpoint)

        natoms_p, nelms, tmp, nbands = projected_vectors.shape

        weights_e1 = np.zeros((natoms_p, nelms, natoms_p, nelms, nbands), dtype=complex)
        for i in range(nbands):
            weights_e1[..., i] = np.inner(
                np.conj(projected_vectors[..., i]), projected_vectors[..., i])

        return weights_e1, projected_vectors

    def _create_weights_e2(self, vectors_elements, weights_total):
        """

        Parameters
        ----------
        vectors_elements : (natoms_p, nelms, natoms_u * ndims, nbands) array
        weights_total : (nbands) array

        Returns
        -------
        weights_e2 : (natoms_p, nelms, nbands) array
        """
        weights_tmp = np.linalg.norm(vectors_elements, axis=2) ** 2  # (natoms_p, nelms, nbands)
        weights_e2 = weights_total * weights_tmp
        return weights_e2

    def get_distance(self):
        return self._distance

    def set_distance(self, distance):
        self._distance = distance

    def get_reduced_elements(self):
        return np.array(
            self._element_weights_calculator.get_reduced_elements(), dtype='S')

    def write_hdf5(self, hdf5_file, group=''):
        """

        Parameters
        ----------
        hdf5_file : HDF5 file object
        group : String
            Indices for the present q-point.
        """
        natoms_primitive = self._cell.get_number_of_atoms()

        data_dict = {
            'point'            : self.get_point(),
            'q_star'           : self._q_star,
            'distance'         : self.get_distance(),
            'natoms_primitive' : natoms_primitive,
            'elements'         : self.get_reduced_elements(),
            'num_arms'         : self.get_narms(),
            'pointgroup_symbol': self.get_pointgroup_symbol(),
            'num_irreps'       : self.get_num_irreps(),
            'ir_labels'        : self.get_ir_labels(),
            'frequencies'      : self.get_frequencies_arms(),
            'weights_t'        : self._weights_arms['total'],
            'weights_e'        : self._weights_arms['E1'   ],
            'weights_s'        : self._weights_arms['SR'   ],
            'weights_s_e'      : self._weights_arms['SR_E1'],
            'weights_e2'       : self._weights_arms['E2'   ],
        }

        for k, v in data_dict.items():
            hdf5_file.create_dataset(group + k, data=v)

def calculate_frequencies(eigenvalues, factor):
    frequencies = np.sqrt(np.abs(eigenvalues)) * np.sign(eigenvalues)
    frequencies *= factor
    return frequencies

def get_displacements_from_eigvecs(eigvecs, supercell, q):
    """

    Args:
        eigvecs: Eigenvectors expanded to the size of the supercell.
        q: Fractional positions in reciprocal space (supercell).
    """
    displacements = np.zeros_like(eigvecs)
    masses = supercell.get_masses()
    scaled_positions = supercell.get_scaled_positions()
    for i, e in enumerate(eigvecs):
        iatom = i // 3
        p = scaled_positions[iatom]
        m = masses[iatom]
        phase = np.exp(2.0j * np.pi * np.dot(p, q))
        displacements[i] = e / np.sqrt(m) * phase
    return displacements

def get_q_sc_from_q_pc(q_pc, primitive_matrix):
    q_sc = np.dot(q_pc, np.linalg.inv(primitive_matrix))
    # For the current implementation, we should "not" wrap q_sc into the cell
    # with 0 <= q_sc_{1,2,3} < 1, so the next line is commented out.
    # q_sc -= np.rint(q_sc)
    return q_sc


text:
An AddOn for World of Warcraft: Vanilla (1.12.1) and The Burning Crusade (2.4.3), which aims to be a full replacement for the original interface. The design is inspired by several screenshots I've seen from TukUI, ElvUI and others. This addon delivers modern features and a minimalistic style that's easy to use right from the start. It is entirely written from scratch without any inclusion of third-party addons or libraries.

This is **not** an addon-pack like [ShaguUI](http://shagu.org/ShaguUI/), however, there is support for external addons like MobHealth3, DPSMate and others, but they will never be shipped within the package.

**Please do not re-upload or distribute outdated versions of this project. However, you are more than welcome to fork or link to the official github page.**

## Screenshots

## Installation (Vanilla)
1. Download **[Latest Version](https://github.com/shagu/pfUI/archive/master.zip)**
2. Unpack the Zip file
3. Rename the folder "pfUI-master" to "pfUI"
4. Copy "pfUI" into Wow-Directory\Interface\AddOns
5. Restart Wow

## Installation (The Burning Crusade)
1. Download **[Latest Version](https://github.com/shagu/pfUI/archive/master.zip)**
2. Unpack the Zip file
3. Rename the folder "pfUI-master" to "pfUI-tbc"
4. Copy "pfUI-tbc" into Wow-Directory\Interface\AddOns
5. Restart Wow

## Commands

    /pfui         Open the configuration GUI
    /share        Open the configuration import/export dialog
    /gm           Open the ticket Dialog
    /rl           Reload the whole UI
    /farm         Toggles the Farm-Mode
    /pfcast       Same as /cast but for mouseover units
    /focus        Creates a Focus-Frame for the current target
    /castfocus    Same as /cast but for focus frame
    /clearfocus   Clears the Focus-Frame
    /swapfocus    Toggle Focus and Target-Frame
    /abp          Addon Button Panel

## Languages
pfUI supports and contains language specific code for the following gameclients.
* English (enUS)
* Korean (koKR)
* French (frFR)
* German (deDE)
* Chinese (zhCN)
* Spanish (esES)
* Russian (ruRU)

## Recommended Addons
* [pfQuest](https://shagu.org/pfQuest) A simple database and quest helper
* [WIM](http://addons.us.to/addon/wim), [WIM (continued)](https://github.com/shirsig/WIM) Give whispers an instant messenger feel

## Plugins
* [pfUI-eliteoverlay](https://shagu.org/pfUI-eliteoverlay) Add elite dragons to unitframes
* [pfUI-fonts](https://shagu.org/pfUI-fonts) Additional fonts for pfUI
* [pfUI-CustomMedia](https://github.com/mrrosh/pfUI-CustomMedia) Additional textures for pfUI
* [pfUI-Gryphons](https://github.com/mrrosh/pfUI-Gryphons) Add back the gryphons to your actionbars

## FAQ
**What does "pfUI" stand for?**
The term "*pfui!*" is german and simply stands for "*pooh!*", because I'm not a
big fan of creating configuration UI's, especially not via the Wow-API
(you might have noticed that in ShaguUI).

**How can I donate?**
You can donate via [GitHub](https://github.com/sponsors/shagu) or [Ko-fi](https://ko-fi.com/shagu)

**How do I report a Bug?**
Please provide as much information as possible in the [Bugtracker](https://github.com/shagu/pfUI/issues).
If there is an error message, provide the full content of it. Just telling that "there is an error" won't help any of us.
Please consider adding additional information such as: since when did you got the error,
does it still happen using a clean configuration, what other addons are loaded and which version you're running.
When playing with a non-english client, the language might be relevant too. If possible, explain how people can reproduce the issue.

**How can I contribute?**
Report Errors, Issues and Feature Requests in the [Bugtracker](https://github.com/shagu/pfUI/issues).
Please make sure to have the latest version installed and check for conflicting addons beforehand.

**I have bad performance, what can I do?**
There's only one known performance issue: that is while using "Frame Shadows". Make sure to disable those
in the pfUI settings (Settings -> Appearance -> Enable Frame Shadows). If you still have a low performance,
it's most likely a combination with another addon. Disable all AddOns but pfUI and then enable one-by-one,
till the performance problem occurs again. Make sure to report the identified AddOn and what you did to reproduce
via the [Bugtracker](https://github.com/shagu/pfUI/issues).

**Where is the happiness indicator for pets?**
The pet happiness is shown as the color of your pet's frame. Depending on your skin, this can either be the text or the background color of your pet's healthbar:

- Green = Happy
- Yellow = Content
- Red = Unhappy

Since version 4.0.7 there is also an additional icon that can be enabled from the pet unit frame options.

**Can I use Clique with pfUI?**
This addon already includes support for clickcasting. If you still want to make use of clique, all pfUI's unitframes are already compatible to Clique-TBC. For Vanilla, a pfUI compatible version can be found [Here](https://github.com/shagu/Clique/archive/master.zip). If you want to keep your current version of Clique, you'll have to apply this [Patch](https://github.com/shagu/Clique/commit/a5ee56c3f803afbdda07bae9cd330e0d4a75d75a).

**Where is the Experience Bar?**
The experience bar shows up on mouseover and whenever you gain experience, next to left chatframe by default. There's also an option to make it stay visible all the time.

**How do I show the Damage- and Threatmeter Dock?**
If you enabled the "dock"-feature for your external (third-party) meters such as DPSMate or KTM, then you'll be able to toggle between them and the Right Chat by clicking on the ">" symbol on the bottom-right panel.

**Why is my chat always resetting to only 3 lines of text?**
You need to disable the "Simple Chat" in blizzards interface settings (Advanced Options). Then relog and reset/run the firstrun wizard again.

**How can I enable mouseover cast?**
On Vanilla, create a macro with "/pfcast SPELLNAME". If you also want to see the cooldown, You might want to add "/run if nil then CastSpellByName("SPELLNAME") end" on top of the macro. For The Burning Crusade, just use the regular mouseover macros.

**Will there be pfUI for Activision's "Classic" remakes?**
No, it would require an entire rewrite of the AddOn since the game is now a different one. The AddOn-API has evolved during the last 15 years and the new "Classic" versions are based on a current retail gameclient. I don't plan to play any of those new versions, so I won't be porting any of my addons to it.

**Everything from scratch?! Are you insane?**
Most probably, yes.


text:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "https://www.springframework.org/dtd/spring-beans-2.0.dtd">

<beans>

	<bean id="holdingBean" class="org.springframework.beans.factory.xml.XmlBeanFactoryTests$HoldingBean">
		<property name="dependingBean">
			<bean name="dependingBean" class="org.springframework.beans.factory.xml.XmlBeanFactoryTests$DependingBean"
				depends-on="preparingBean1,preparingBean2"/>
		</property>
	</bean>

	<bean id="holdingBean2" class="org.springframework.beans.factory.xml.XmlBeanFactoryTests$HoldingBean">
		<property name="dependingBean">
			<bean name="dependingBean" class="org.springframework.beans.factory.xml.XmlBeanFactoryTests$DependingBean"
				depends-on="preparingBean1,preparingBean2"/>
		</property>
	</bean>

	<bean id="holdingBean3" class="org.springframework.beans.factory.xml.XmlBeanFactoryTests$HoldingBean">
		<property name="dependingBean">
			<bean class="org.springframework.beans.factory.xml.XmlBeanFactoryTests$DependingBean"
				depends-on="preparingBean1,preparingBean2"/>
		</property>
	</bean>

	<bean id="holdingBean4" class="org.springframework.beans.factory.xml.XmlBeanFactoryTests$HoldingBean">
		<property name="dependingBean">
			<bean class="org.springframework.beans.factory.xml.XmlBeanFactoryTests$DependingBean"
				depends-on="preparingBean1,preparingBean2"/>
		</property>
	</bean>

	<bean id="preparingBean1" class="org.springframework.beans.factory.xml.XmlBeanFactoryTests$PreparingBean1"/>

	<bean id="preparingBean2" class="org.springframework.beans.factory.xml.XmlBeanFactoryTests$PreparingBean2"/>

</beans>


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="f0da51a9-7065-43b3-95fd-deed2dc9bb6d" name="Default" comment="" />
    <ignored path="Less即学即用.iws" />
    <ignored path=".idea/workspace.xml" />
    <ignored path="$PROJECT_DIR$/.tmp/" />
    <ignored path="$PROJECT_DIR$/temp/" />
    <ignored path="$PROJECT_DIR$/tmp/" />
    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
    <option name="TRACKING_ENABLED" value="true" />
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
    <option name="LAST_RESOLUTION" value="IGNORE" />
  </component>
  <component name="CreatePatchCommitExecutor">
    <option name="PATCH_PATH" value="" />
  </component>
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
  <component name="FavoritesManager">
    <favorites_list name="Less即学即用" />
  </component>
  <component name="FileEditorManager">
    <leaf>
      <file leaf-file-name="main.less" pinned="false" current-in-tab="true">
        <entry file="file://$PROJECT_DIR$/Less/style/main.less">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="-945">
              <caret line="31" column="32" selection-start-line="31" selection-start-column="32" selection-end-line="31" selection-end-column="32" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
    </leaf>
  </component>
  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
  <component name="JsGulpfileManager">
    <detection-done>true</detection-done>
    <sorting>DEFINITION_ORDER</sorting>
  </component>
  <component name="ProjectFrameBounds">
    <option name="x" value="829" />
    <option name="y" value="29" />
    <option name="width" value="1060" />
    <option name="height" value="1000" />
  </component>
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
    <OptionsSetting value="true" id="Add" />
    <OptionsSetting value="true" id="Remove" />
    <OptionsSetting value="true" id="Checkout" />
    <OptionsSetting value="true" id="Update" />
    <OptionsSetting value="true" id="Status" />
    <OptionsSetting value="true" id="Edit" />
    <ConfirmationsSetting value="0" id="Add" />
    <ConfirmationsSetting value="0" id="Remove" />
  </component>
  <component name="ProjectView">
    <navigator proportions="" version="1">
      <flattenPackages />
      <showMembers />
      <showModules />
      <showLibraryContents />
      <hideEmptyPackages />
      <abbreviatePackageNames />
      <autoscrollToSource />
      <autoscrollFromSource />
      <sortByType />
      <manualOrder />
      <foldersAlwaysOnTop value="true" />
    </navigator>
    <panes />
  </component>
  <component name="PropertiesComponent">
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="HbShouldOpenHtmlAsHb" value="" />
  </component>
  <component name="ShelveChangesManager" show_recycled="false">
    <option name="remove_strategy" value="false" />
  </component>
  <component name="TaskManager">
    <task active="true" id="Default" summary="Default task">
      <changelist id="f0da51a9-7065-43b3-95fd-deed2dc9bb6d" name="Default" comment="" />
      <created>1477008623446</created>
      <option name="number" value="Default" />
      <option name="presentableId" value="Default" />
      <updated>1477008623446</updated>
      <workItem from="1477008625435" duration="63000" />
    </task>
    <servers />
  </component>
  <component name="TimeTrackingManager">
    <option name="totallyTimeSpent" value="63000" />
  </component>
  <component name="ToolWindowManager">
    <frame x="829" y="29" width="1060" height="1000" extended-state="0" />
    <editor active="true" />
    <layout>
      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
    </layout>
  </component>
  <component name="Vcs.Log.UiProperties">
    <option name="RECENTLY_FILTERED_USER_GROUPS">
      <collection />
    </option>
    <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
      <collection />
    </option>
  </component>
  <component name="VcsContentAnnotationSettings">
    <option name="myLimit" value="2678400000" />
  </component>
  <component name="XDebuggerManager">
    <breakpoint-manager />
    <watches-manager />
  </component>
  <component name="editorHistoryManager">
    <entry file="file://$PROJECT_DIR$/Less/style/main.less">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="-945">
          <caret line="31" column="32" selection-start-line="31" selection-start-column="32" selection-end-line="31" selection-end-column="32" />
          <folding />
        </state>
      </provider>
    </entry>
  </component>
</project>


text:
package com.komanov.redis.bin

import com.komanov.redis.StringUuidCodec
import io.lettuce.core.RedisClient
import io.lettuce.core.api.StatefulRedisConnection

import java.nio.file.{Files, Paths}
import java.util.UUID
import scala.collection.mutable

// Usage: SET_NAME INPUT_FILE
object DataFiller extends App {

  val Array(setName, input) = args

  val inputPath = Paths.get(input)
  require(Files.exists(inputPath), s"INPUT_FILE doesn't exist: $input")

  val client = RedisClient.create("redis://localhost:6379")
  val connection: StatefulRedisConnection[String, UUID] = client.connect(StringUuidCodec);
  val sync = connection.sync();

  val chunk = mutable.ListBuffer[UUID]()

  def dumpChunk(): Unit = {
    val num = sync.sadd(setName, chunk.toSeq: _*)
    require(num == chunk.size, s"Failed to SADD: $num != ${chunk.size}")
    chunk.clear()
  }

  Files.lines(inputPath).forEach { line =>
    chunk += UUID.fromString(line)
    if (chunk.size == 1000) {
      dumpChunk()
    }
  }
  if (chunk.nonEmpty) {
    dumpChunk()
  }

  client.shutdown()

}


text:
<?php
require_once "../../config/settings.inc.php";
require_once "../../include/mlib.php";
force_https();
require_once "../../include/forms.php";
require_once "../../include/myview.php";
// custom code in smosmap.js that will need replaced...
$OL = "6.2.1";
$t = new MyView();
$t->title = "SMOS Data";
$t->headextra = <<<EOF
<link rel='stylesheet' href="/vendor/openlayers/{$OL}/ol.css" type='text/css'>
EOF;
$t->jsextra = <<<EOF

EOF;

$y1select = yearSelect2(2010, 2010, "year1");
$m1select = monthSelect2(1, "month1");
$d1select = daySelect2(1, "day1");

$y2select = yearSelect2(date("Y"), 2010, "year2");
$m2select = monthSelect2(1, "month2");
$d2select = daySelect2(1, "day2");

$t->content = <<<EOF

Soil Moisture & Ocean Salinity (SMOS) Satellite Data

The SMOS satellite is a polar
orbiting satellite operated by the European Space Agency.  The satellite provides
estimates of soil moisture in the approximate top 5 centimeters of soil and the
amount of vegetation on the land surface.
Dr Brian Hornbuckle leads a
local research
team here at Iowa State that works with this data.  The IEM collects processed
data from this satellite, generates analysis plots, and makes the raw data available.

Download Data

This form allows you to download a single grid cell's worth of data based on
the latitude and longitude pair you provide.  Data is only available here from
the Midwestern United States.  The form will provide an error if you attempt
to request a point outside of the domain.  Data is available since
31 May 2010.

<form method="GET" action="dl.php" name="dl">

Enter Latitude/Longitude manually or drag marker on map to the right.

Latitude (north degree)
    <input id="lat" type="text" name="lat" size="6" value="42.0" />

Longitude (east degree)
    <input id="lon" type="text" name="lon" size="6" value="-93.0" />

    Year	Month	Day

    Start:
    {$y1select}
    {$m1select}
    {$d1select}

    End:
    {$y2select}
    {$m2select}
    {$d2select}

<input type="submit" value="Get Data!" />

    </form>

Recent Analysis Plots at 00 UTC

Click image for archived imagery

Recent Analysis Plots at 12 UTC

EOF;
$t->render('single.phtml');


text:
//## NameSpace NameSpace.GetNameSpace(String name);
static KMETHOD NameSpace_GetNameSpace(KonohaContext *kctx, KonohaStack *sfp)
{
	KMakeTrace(trace, sfp);
	KPackage *pkg = KRequirePackage(kString_text(sfp[1].asString), trace);
	kNameSpace *ns = pkg == NULL ? (pkg->packageNS) : KNULL(NameSpace);
	KReturn(ns);
}

//## Syntax NameSpace.GetSyntax(Symbol keyword);
static KMETHOD NameSpace_GetSyntax(KonohaContext *kctx, KonohaStack *sfp)
{
	KReturn(kSyntax_(sfp[0].asNameSpace, (ksymbol_t)sfp[1].intValue));
}

//## void NameSpace.DefineSyntax(Syntax syntax);
static KMETHOD NameSpace_DefineSyntax(KonohaContext *kctx, KonohaStack *sfp)
{
	KMakeTrace(trace, sfp);
	kNameSpace *ns = sfp[0].asNameSpace;
	kSyntaxVar *syn = (kSyntaxVar *)sfp[1].asObject;
	KFieldSet(syn, syn->packageNameSpace, ns);
	KLIB kNameSpace_AddSyntax(kctx, ns, (kSyntax *)syn, trace);
	KReturnVoid();
}

//## void NameSpace.AddSyntaxPattern(Symbol symbol, String pattern);
static KMETHOD NameSpace_AddSyntaxPattern(KonohaContext *kctx, KonohaStack *sfp)
{
	KMakeTrace(trace, sfp);
	kNameSpace *ns = sfp[0].asNameSpace;
	ksymbol_t symbol = (ksymbol_t)sfp[1].intValue;
	const char *pattern = kString_text(sfp[2].asString);
	KLIB kSyntax_AddPattern(kctx, kSyntax_(ns, symbol), pattern, 0, trace);
	KReturnVoid();
}

//## void NameSpace.CompileAllDefinedMethod()
static KMETHOD NameSpace_CompileAllDefinedMethod(KonohaContext *kctx, KonohaStack *sfp)
{
//	kNameSpace *ns = sfp[0].asNameSpace;
//
	KRuntime *share = kctx->share;
	size_t i;
	for(i = 0; i < kArray_size(share->GlobalConstList); i++) {
		kObject *o = share->GlobalConstList->ObjectItems[i];
		if(kObject_class(o) == KClass_NameSpace) {
			kNameSpace *ns = (kNameSpace  *) o;
			size_t j;
			for(j = 0; j < kArray_size(ns->methodList_OnList); j++) {
				kMethod *mtd = ns->methodList_OnList->MethodItems[j];
				if(IS_NameSpace(mtd->LazyCompileNameSpace)) {
					KLIB kMethod_DoLazyCompilation(kctx, mtd, NULL, HatedLazyCompile|CrossCompile);
				}
			}
		}
	}
	KReturnVoid();
}

//## Token[] NameSpace.tokenize(String s);
static KMETHOD NameSpace_Tokenize(KonohaContext *kctx, KonohaStack *sfp)
{
	INIT_GCSTACK();
	kArray *a = (kArray *)KLIB new_kObject(kctx, _GcStack, KGetReturnType(sfp), 0);
	KTokenSeq source = {sfp[0].asNameSpace, a};
	KLIB Tokenize(kctx, source.ns, kString_text(sfp[1].asString), 0, 0, source.tokenList);
	KReturnWith(a, RESET_GCSTACK());
}

//## Token[] NameSpace.Preprocess(String s);
static KMETHOD NameSpace_Preprocess(KonohaContext *kctx, KonohaStack *sfp)
{
	INIT_GCSTACK();
	kArray *a = (kArray *)KLIB new_kObject(kctx, _GcStack, KGetReturnType(sfp), 0);
	KTokenSeq source = {sfp[0].asNameSpace, KGetParserContext(kctx)->preparedTokenList};
	KTokenSeq_Push(kctx, source);
	KLIB Tokenize(kctx, source.ns, kString_text(sfp[1].asString), 0, 0, source.tokenList);
	KTokenSeq_End(kctx, source);
	KTokenSeq tokens = {source.ns, a, 0};
	tokens.TargetPolicy.ExpandingBraceGroup = true;
	KLIB Preprocess(kctx, source.ns, RangeTokenSeq(source), NULL, tokens.tokenList);
	KTokenSeq_Pop(kctx, source);
	KReturnWith(a, RESET_GCSTACK());
}

static void Syntax_defineNameSpaceMethod(KonohaContext *kctx, kNameSpace *ns, KTraceInfo *trace)
{
	KDEFINE_METHOD MethodData[] = {
		_Public|_Const|_Static, _F(NameSpace_GetNameSpace), KType_NameSpace, KType_NameSpace, KMethodName_("GetPackage"), 1, TP_name,
		_Public|_Const, _F(NameSpace_GetSyntax), KType_Syntax, KType_NameSpace, KMethodName_("GetSyntax"), 1, TP_kw,
		_Public|_Compilation, _F(NameSpace_DefineSyntax), KType_void, KType_NameSpace, KMethodName_("DefineSyntax"), 1, TP_syntax,
		_Public|_Compilation, _F(NameSpace_AddSyntaxPattern), KType_void, KType_NameSpace, KMethodName_("AddSyntaxPattern"), 2, TP_kw, KType_String, KFieldName_("pattern"),
		_Public, _F(NameSpace_CompileAllDefinedMethod), KType_void, KType_NameSpace, KMethodName_("CompileAllDefinedMethod"), 0,
		_Public|_Im, _F(NameSpace_Tokenize), KType_TokenArray, KType_NameSpace, KMethodName_("Tokenize"), 1, TP_source,
		_Public|_Im, _F(NameSpace_Preprocess), KType_TokenArray, KType_NameSpace, KMethodName_("Preprocess"), 1, TP_source,
		DEND,
	};
	KLIB kNameSpace_LoadMethodData(kctx, ns, MethodData, trace);
}


text:
.. _exhale_function_namespacelibecpint_1_1qgen_1ae76853a759ec019120382cd19a0e2d29:

Function libecpint::qgen::Q4_5_5
================================

- Defined in :ref:`file__Users_robertshaw_devfiles_libecpint_include_libecpint_qgen.hpp`

Function Documentation
----------------------

.. doxygenfunction:: libecpint::qgen::Q4_5_5(const ECP&, const GaussianShell&, const GaussianShell&, const FiveIndex<double>&, const FiveIndex<double>&, const TwoIndex<double>&, const TwoIndex<double>&, double, double, const RadialIntegral&, const AngularIntegral&, const RadialIntegral::Parameters&, ThreeIndex<double>&)


text:
package edu.northwestern.bioinformatics.studycalendar.dataproviders.coppa.ihub;

import edu.northwestern.bioinformatics.studycalendar.dataproviders.coppa.CoppaProviderActivator;
import org.osgi.framework.BundleActivator;

/**
 * @author Rhett Sutphin
 */
public class Activator extends CoppaProviderActivator<IntegrationHubCoppaAccessor> implements BundleActivator {
    @Override
    protected IntegrationHubCoppaAccessor createCoppaAccessor() {
        return new IntegrationHubCoppaAccessor();
    }
}


text:
/**
 * @fileoverview Set outer template
 * @author NHN. FE dev Lab <dl_javascript@nhn.com>
 */

/**
 * Outer template
 * @type {{internalNode: string, leafNode: string}}
 */
module.exports = {
  ROOT: '

',
  INTERNAL_NODE: '
{{innerTemplate}}
',
  LEAF_NODE: '
{{innerTemplate}}
'
};