text
stringlengths 2
100k
| meta
dict |
---|---|
/*
* Copyright 2011-2012 Amazon Technologies, Inc.
*
* 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://aws.amazon.com/apache2.0
*
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and
* limitations under the License.
*/
package com.amazonaws.eclipse.explorer.simpledb;
import java.util.List;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.datatools.connectivity.IConnectionProfile;
import org.eclipse.datatools.connectivity.IManagedConnection;
import org.eclipse.datatools.connectivity.sqm.core.connection.ConnectionInfo;
import org.eclipse.datatools.connectivity.sqm.core.rte.jdbc.JDBCSchema;
import org.eclipse.datatools.connectivity.sqm.core.rte.jdbc.JDBCTable;
import org.eclipse.datatools.modelbase.sql.schema.Catalog;
import org.eclipse.datatools.modelbase.sql.schema.Database;
import org.eclipse.datatools.sqltools.data.internal.ui.editor.TableDataEditorInput;
import org.eclipse.emf.common.util.EList;
import org.eclipse.jface.action.Action;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.PlatformUI;
import com.amazonaws.eclipse.core.regions.Region;
import com.amazonaws.eclipse.core.regions.RegionUtils;
import com.amazonaws.eclipse.core.regions.ServiceAbbreviations;
public class OpenDataTableEditorAction extends Action {
private static final String TABLE_DATA_EDITOR_ID = "org.eclipse.datatools.sqltools.data.internal.ui.editor.tableDataEditor";
private final String domainName;
public OpenDataTableEditorAction(final String domainName) {
this.domainName = domainName;
setText("Open DTP Data Editor");
setToolTipText("Opens the DTP data editor for the contents of this domain");
}
private JDBCTable findTableByName(final List<JDBCTable> tables, final String name) {
for (JDBCTable table : tables) {
if (table.getName().equals(this.domainName)) {
return table;
}
}
return null;
}
@Override
public void run() {
Region currentRegion = RegionUtils.getCurrentRegion();
String endpoint = currentRegion.getServiceEndpoints().get(ServiceAbbreviations.SIMPLEDB);
if (endpoint.contains("://")) {
endpoint = endpoint.substring(endpoint.indexOf("://") + 3);
}
if (endpoint.endsWith("/")) {
endpoint = endpoint.substring(0, endpoint.lastIndexOf("/"));
}
SimpleDBConnectionProfileManager sdbConnectionProfileManager = new SimpleDBConnectionProfileManager();
IConnectionProfile connectionProfile = sdbConnectionProfileManager.findOrCreateConnectionProfile(endpoint);
IStatus status = connectionProfile.connect();
if (!status.isOK()) {
throw new RuntimeException("Unable to connect to Amazon SimpleDB: " + status.getMessage());
}
IManagedConnection managedConnection = (connectionProfile).getManagedConnection("org.eclipse.datatools.connectivity.sqm.core.connection.ConnectionInfo");
if (managedConnection != null) {
try {
ConnectionInfo connectionInfo = (ConnectionInfo) managedConnection.getConnection().getRawConnection();
if (connectionInfo != null) {
Database database = connectionInfo.getSharedDatabase();
System.out.println("Schemas:");
int i = 1;
for (Object obj : database.getSchemas()) {
System.out.println(i++ + " - " + obj);
}
// TODO: which catalog?
for (Object obj : database.getCatalogs()) {
Catalog catalog = (Catalog)obj;
EList<JDBCSchema> schemas = catalog.getSchemas();
// TODO: Is this always the right schema?
JDBCSchema schema = schemas.get(0);
EList<JDBCTable> tables = schema.getTables();
JDBCTable table = findTableByName(tables, this.domainName);
if (table != null) {
IWorkbenchPage workbenchPage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
workbenchPage.openEditor(new TableDataEditorInput(table), TABLE_DATA_EDITOR_ID);
}
}
}
} catch (Exception e) {
e.printStackTrace();
throw new RuntimeException(e);
}
}
}
}
| {
"pile_set_name": "Github"
} |
import Vue from 'vue';
import layui from '@';
import App from './App.vue';
import router from './router';
import '@/assets/layui.css';
import '@/assets/layer.css';
import '@/assets/lay-date/laydate.css';
import '@/assets/vue-layui.css';
import 'highlight.js/styles/atom-one-dark.css';
import demoBlock from './components/demo-block.vue';
Vue.use(layui);
Vue.config.productionTip = false;
Vue.component('demo-block', demoBlock);
new Vue({
router,
render: h => h(App)
}).$mount('#app');
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAUAEBAAAAEAIABoBAAAVgAAABgYAAABACAAiAkAAL4EAAAgIAAAAQAgAKgQAABGDgAAMDAAAAEA
IACoJQAA7h4AAEBAAAABACAAKEIAAJZEAAAoAAAAEAAAACAAAAABACAAAAAAAEAEAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALlg7/CpsQ/wqeEv8AAAAAAAAAAAqcEf8LmA//AAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACqIU/wmnGP8Jqhn/AAAAAAAAAAAJqRn/CaUW/wAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKnRL/CaYX/witG/8Isx//B7ch/wAAAAAHuCL/B7Yg/wiw
Hf8AAAAACqIU/wAAAAAAAAAAAAAAAAAAAAAAAAAACaYX/wiwHf8HuCL/Br8m/wbEKf8AAAAABsUq/wbC
J/8HvCT/CLQf/wmrGv8AAAAAAAAAAAAAAAAAAAAAAAAAAAiuHP8HuCL/BsIo/wXKLf8F0DD/BNMy/wTS
Mf8Fzi//BsYq/wAAAAAIsx//CagY/wAAAAAAAAAAAAAAAAAAAAAItB//BsAm/wAAAAAE1TP/A9w3/wPg
Ov8D3zn/BNk1/wXQMP8AAAAAB7oj/wiuHP8AAAAAAAAAAAAAAAAAAAAAB7gi/wbFKf8AAAAAA904/wLn
Pf8B7UH/AutA/wPiO/8E1zT/Bcst/wa/Jv8Ish7/AAAAAAAAAAAAAAAAAAAAAAe6I/8Gxyv/AAAAAAPh
Ov8B7UH/APlI/wH0Rf8C5z7/AAAAAAXOL/8GwSf/CLQf/wAAAAAAAAAAAAAAAAAAAAAHuiP/Bscq/wTT
Mv8D4D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AAHAD///AGAAAI
AP//8AQAAAAB///4AAAAAAH///gAAAAAAf//+AAAAAAB///4AAAAAAH///gAAAAAAf//+AAAAAAD///4
AAAAAAf///gAAAAAB///+AAAAAAH///4AAAAAAf///wAAAAAB////AAAAAAP///+AAAAAA////8AAAAA
H////4AAAAB/////4AAAAP/////wAAAB//////gAAAf/////+AAAA//////wAAAB//////AAAAH/////
8cAAcf/////x4AD5//////HwA/v/////+fwH+//////5/w/3//////3/////////////////
</value>
</data>
</root>
| {
"pile_set_name": "Github"
} |
<Solution>
<PropertyGroup Name="crossplatform_UIScrollView_Vertical_Editor_1" Version="2.1.0.0" Type="CocosStudio" />
<SolutionFolder>
<Group ctype="ResourceGroup">
<RootFolder Name=".">
<Folder Name="GUI">
<Image Name="image.png" />
</Folder>
<Image Name="background.png" />
<Image Name="buttonBackground.png" />
<Image Name="button_n.png" />
<Image Name="button_p.png" />
<Image Name="ribbon.png" />
<Image Name="selected01.png" />
<Image Name="selected02.png" />
<Project Name="crossplatform_UIScrollView_Vertical_Editor_1.csd" />
</RootFolder>
</Group>
</SolutionFolder>
</Solution> | {
"pile_set_name": "Github"
} |
/*
* Copyright (c) 2013, Peter Thorson. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the WebSocket++ Project nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL PETER THORSON BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#ifndef HTTP_PARSER_HPP
#define HTTP_PARSER_HPP
#include <algorithm>
#include <iostream>
#include <map>
#include <websocketpp/utilities.hpp>
#include <websocketpp/http/constants.hpp>
namespace websocketpp {
namespace http {
namespace parser {
namespace state {
enum value {
method,
resource,
version,
headers
};
}
typedef std::map<std::string, std::string, utility::ci_less > header_list;
/// Read and return the next token in the stream
/**
* Read until a non-token character is found and then return the token and
* iterator to the next character to read
*
* @param begin An iterator to the beginning of the sequence
* @param end An iterator to the end of the sequence
* @return A pair containing the token and an iterator to the next character in
* the stream
*/
template <typename InputIterator>
std::pair<std::string,InputIterator> extract_token(InputIterator begin,
InputIterator end)
{
InputIterator it = std::find_if(begin,end,&is_not_token_char);
return std::make_pair(std::string(begin,it),it);
}
/// Read and return the next quoted string in the stream
/**
* Read a double quoted string starting at `begin`. The quotes themselves are
* stripped. The quoted value is returned along with an iterator to the next
* character to read
*
* @param begin An iterator to the beginning of the sequence
* @param end An iterator to the end of the sequence
* @return A pair containing the string read and an iterator to the next
* character in the stream
*/
template <typename InputIterator>
std::pair<std::string,InputIterator> extract_quoted_string(InputIterator begin,
InputIterator end)
{
std::string s;
if (end == begin) {
return std::make_pair(s,begin);
}
if (*begin != '"') {
return std::make_pair(s,begin);
}
InputIterator cursor = begin+1;
InputIterator marker = cursor;
cursor = std::find(cursor,end,'"');
while (cursor != end) {
// either this is the end or a quoted string
if (*(cursor-1) == '\\') {
s.append(marker,cursor-1);
s.append(1,'"');
++cursor;
marker = cursor;
} else {
s.append(marker,cursor);
++cursor;
return std::make_pair(s,cursor);
}
cursor = std::find(cursor,end,'"');
}
return std::make_pair("",begin);
}
/// Read and discard one unit of linear whitespace
/**
* Read one unit of linear white space and return the iterator to the character
* afterwards. If `begin` is returned, no whitespace was extracted.
*
* @param begin An iterator to the beginning of the sequence
* @param end An iterator to the end of the sequence
* @return An iterator to the character after the linear whitespace read
*/
template <typename InputIterator>
InputIterator extract_lws(InputIterator begin, InputIterator end) {
InputIterator it = begin;
// strip leading CRLF
if (end-begin > 2 && *begin == '\r' && *(begin+1) == '\n' &&
is_whitespace_char(static_cast<unsigned char>(*(begin+2))))
{
it+=3;
}
it = std::find_if(it,end,&is_not_whitespace_char);
return it;
}
/// Read and discard linear whitespace
/**
* Read linear white space until a non-lws character is read and return an
* iterator to that character. If `begin` is returned, no whitespace was
* extracted.
*
* @param begin An iterator to the beginning of the sequence
* @param end An iterator to the end of the sequence
* @return An iterator to the character after the linear whitespace read
*/
template <typename InputIterator>
InputIterator extract_all_lws(InputIterator begin, InputIterator end) {
InputIterator old_it;
InputIterator new_it = begin;
do {
// Pull value from previous iteration
old_it = new_it;
// look ahead another pass
new_it = extract_lws(old_it,end);
} while (new_it != end && old_it != new_it);
return new_it;
}
/// Extract HTTP attributes
/**
* An http attributes list is a semicolon delimited list of key value pairs in
* the format: *( ";" attribute "=" value ) where attribute is a token and value
* is a token or quoted string.
*
* Attributes extracted are appended to the supplied attributes list
* `attributes`.
*
* @param [in] begin An iterator to the beginning of the sequence
* @param [in] end An iterator to the end of the sequence
* @param [out] attributes A reference to the attributes list to append
* attribute/value pairs extracted to
* @return An iterator to the character after the last atribute read
*/
template <typename InputIterator>
InputIterator extract_attributes(InputIterator begin, InputIterator end,
attribute_list & attributes)
{
InputIterator cursor;
bool first = true;
if (begin == end) {
return begin;
}
cursor = begin;
std::pair<std::string,InputIterator> ret;
while (cursor != end) {
std::string name;
cursor = http::parser::extract_all_lws(cursor,end);
if (cursor == end) {
break;
}
if (first) {
// ignore this check for the very first pass
first = false;
} else {
if (*cursor == ';') {
// advance past the ';'
++cursor;
} else {
// non-semicolon in this position indicates end end of the
// attribute list, break and return.
break;
}
}
cursor = http::parser::extract_all_lws(cursor,end);
ret = http::parser::extract_token(cursor,end);
if (ret.first == "") {
// error: expected a token
return begin;
} else {
name = ret.first;
cursor = ret.second;
}
cursor = http::parser::extract_all_lws(cursor,end);
if (cursor == end || *cursor != '=') {
// if there is an equals sign, read the attribute value. Otherwise
// record a blank value and continue
attributes[name] = "";
continue;
}
// advance past the '='
++cursor;
cursor = http::parser::extract_all_lws(cursor,end);
if (cursor == end) {
// error: expected a token or quoted string
return begin;
}
ret = http::parser::extract_quoted_string(cursor,end);
if (ret.second != cursor) {
attributes[name] = ret.first;
cursor = ret.second;
continue;
}
ret = http::parser::extract_token(cursor,end);
if (ret.first == "") {
// error : expected token or quoted string
return begin;
} else {
attributes[name] = ret.first;
cursor = ret.second;
}
}
return cursor;
}
/// Extract HTTP parameters
/**
* An http parameters list is a comma delimited list of tokens followed by
* optional semicolon delimited attributes lists.
*
* Parameters extracted are appended to the supplied parameters list
* `parameters`.
*
* @param [in] begin An iterator to the beginning of the sequence
* @param [in] end An iterator to the end of the sequence
* @param [out] parameters A reference to the parameters list to append
* paramter values extracted to
* @return An iterator to the character after the last parameter read
*/
template <typename InputIterator>
InputIterator extract_parameters(InputIterator begin, InputIterator end,
parameter_list ¶meters)
{
InputIterator cursor;
if (begin == end) {
// error: expected non-zero length range
return begin;
}
cursor = begin;
std::pair<std::string,InputIterator> ret;
/**
* LWS
* token
* LWS
* *(";" method-param)
* LWS
* ,=loop again
*/
while (cursor != end) {
std::string parameter_name;
attribute_list attributes;
// extract any stray whitespace
cursor = http::parser::extract_all_lws(cursor,end);
if (cursor == end) {break;}
ret = http::parser::extract_token(cursor,end);
if (ret.first == "") {
// error: expected a token
return begin;
} else {
parameter_name = ret.first;
cursor = ret.second;
}
// Safe break point, insert parameter with blank attributes and exit
cursor = http::parser::extract_all_lws(cursor,end);
if (cursor == end) {
//parameters[parameter_name] = attributes;
parameters.push_back(std::make_pair(parameter_name,attributes));
break;
}
// If there is an attribute list, read it in
if (*cursor == ';') {
InputIterator acursor;
++cursor;
acursor = http::parser::extract_attributes(cursor,end,attributes);
if (acursor == cursor) {
// attribute extraction ended in syntax error
return begin;
}
cursor = acursor;
}
// insert parameter into output list
//parameters[parameter_name] = attributes;
parameters.push_back(std::make_pair(parameter_name,attributes));
cursor = http::parser::extract_all_lws(cursor,end);
if (cursor == end) {break;}
// if next char is ',' then read another parameter, else stop
if (*cursor != ',') {
break;
}
// advance past comma
++cursor;
if (cursor == end) {
// expected more bytes after a comma
return begin;
}
}
return cursor;
}
/// Base HTTP parser
/**
* Includes methods and data elements common to all types of HTTP messages such
* as headers, versions, bodies, etc.
*/
class parser {
public:
/// Get the HTTP version string
/**
* @return The version string for this parser
*/
std::string const & get_version() const {
return m_version;
}
/// Set HTTP parser Version
/**
* Input should be in format: HTTP/x.y where x and y are positive integers.
* @todo Does this method need any validation?
*
* @param [in] version The value to set the HTTP version to.
*/
void set_version(std::string const & version);
/// Get the value of an HTTP header
/**
* @todo Make this method case insensitive.
*
* @param [in] key The name/key of the header to get.
* @return The value associated with the given HTTP header key.
*/
std::string const & get_header(std::string const & key) const;
/// Extract an HTTP parameter list from a parser header.
/**
* If the header requested doesn't exist or exists and is empty the
* parameter list is valid (but empty).
*
* @param [in] key The name/key of the HTTP header to use as input.
* @param [out] out The parameter list to store extracted parameters in.
* @return Whether or not the input was a valid parameter list.
*/
bool get_header_as_plist(std::string const & key, parameter_list & out)
const;
/// Append a value to an existing HTTP header
/**
* This method will set the value of the HTTP header `key` with the
* indicated value. If a header with the name `key` already exists, `val`
* will be appended to the existing value.
*
* @todo Make this method case insensitive.
* @todo Should there be any restrictions on which keys are allowed?
* @todo Exception free varient
*
* @see replace_header
*
* @param [in] key The name/key of the header to append to.
* @param [in] val The value to append.
*/
void append_header(std::string const & key, std::string const & val);
/// Set a value for an HTTP header, replacing an existing value
/**
* This method will set the value of the HTTP header `key` with the
* indicated value. If a header with the name `key` already exists, `val`
* will replace the existing value.
*
* @todo Make this method case insensitive.
* @todo Should there be any restrictions on which keys are allowed?
* @todo Exception free varient
*
* @see append_header
*
* @param [in] key The name/key of the header to append to.
* @param [in] val The value to append.
*/
void replace_header(std::string const & key, std::string const & val);
/// Remove a header from the parser
/**
* Removes the header entirely from the parser. This is different than
* setting the value of the header to blank.
*
* @todo Make this method case insensitive.
*
* @param [in] key The name/key of the header to remove.
*/
void remove_header(std::string const & key);
/// Set HTTP body
/**
* Sets the body of the HTTP object and fills in the appropriate content
* length header.
*
* @param [in] value The value to set the body to.
*/
std::string const & get_body() const {
return m_body;
}
/// Set body content
/**
* Set the body content of the HTTP response to the parameter string. Note
* set_body will also set the Content-Length HTTP header to the appropriate
* value. If you want the Content-Length header to be something else, do so
* via replace_header("Content-Length") after calling set_body()
*
* @param value String data to include as the body content.
*/
void set_body(std::string const & value);
/// Extract an HTTP parameter list from a string.
/**
* @param [in] in The input string.
* @param [out] out The parameter list to store extracted parameters in.
* @return Whether or not the input was a valid parameter list.
*/
bool parse_parameter_list(std::string const & in, parameter_list & out)
const;
protected:
/// Parse headers from an istream
/**
* @deprecated Use process_header instead.
*
* @param [in] s The istream to extract headers from.
*/
bool parse_headers(std::istream & s);
/// Process a header line
/**
* @todo Update this method to be exception free.
*
* @param [in] begin An iterator to the beginning of the sequence.
* @param [in] end An iterator to the end of the sequence.
*/
void process_header(std::string::iterator begin, std::string::iterator end);
/// Generate and return the HTTP headers as a string
/**
* Each headers will be followed by the \r\n sequence including the last one.
* A second \r\n sequence (blank header) is not appended by this method
*
* @return The HTTP headers as a string.
*/
std::string raw_headers() const;
std::string m_version;
header_list m_headers;
std::string m_body;
};
} // namespace parser
} // namespace http
} // namespace websocketpp
#include <websocketpp/http/impl/parser.hpp>
#endif // HTTP_PARSER_HPP
| {
"pile_set_name": "Github"
} |
/*
*
* MIT License
*
* Copyright (c) 2017 Frederik Ar. Mikkelsen
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package fredboat.feature.metrics.collectors;
import io.prometheus.client.Collector;
import io.prometheus.client.CounterMetricFamily;
import io.prometheus.client.GaugeMetricFamily;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.ThreadPoolExecutor;
/**
* Created by napster on 19.10.17.
*/
@Component
public class ThreadPoolCollector extends Collector {
protected final ConcurrentMap<String, ThreadPoolExecutor> pools = new ConcurrentHashMap<>();
/**
* Add or replace the pool with the given name.
* <p>
* Any references to any previous pool with this name are invalidated.
*
* @param poolName The name of the pool, will be the metrics label value
* @param pool The pool being monitored
*/
public void addPool(String poolName, ThreadPoolExecutor pool) {
pools.put(poolName, pool);
}
/**
* Remove the pool with the given name.
* <p>
* Any references to the pool are invalidated.
*
* @param poolName pool to be removed
*/
public ThreadPoolExecutor removePool(String poolName) {
return pools.remove(poolName);
}
/**
* Remove all pools.
* <p>
* Any references to all pools are invalidated.
*/
public void clear() {
pools.clear();
}
@Override
public List<MetricFamilySamples> collect() {
List<MetricFamilySamples> mfs = new ArrayList<>();
List<String> labelNames = Collections.singletonList("name");
GaugeMetricFamily activeThreads = new GaugeMetricFamily("fredboat_threadpool_active_threads_current",
"Amount of active threads in a thread pool", labelNames);
mfs.add(activeThreads);
GaugeMetricFamily queueSize = new GaugeMetricFamily("fredboat_threadpool_queue_size_current",
"Size of queue of a thread pool (including scheduled tasks)", labelNames);
mfs.add(queueSize);
CounterMetricFamily completedTasks = new CounterMetricFamily("fredboat_threadpool_completed_tasks_total",
"Total completed tasks by a thread pool", labelNames);
mfs.add(completedTasks);
for (Map.Entry<String, ThreadPoolExecutor> entry : pools.entrySet()) {
String poolName = entry.getKey();
ThreadPoolExecutor pool = entry.getValue();
List<String> labels = Collections.singletonList(poolName);
activeThreads.addMetric(labels, pool.getActiveCount());
queueSize.addMetric(labels, pool.getQueue().size());
completedTasks.addMetric(labels, pool.getCompletedTaskCount()); //guaranteed to always increase, ergo good fit for a counter
}
return mfs;
}
}
| {
"pile_set_name": "Github"
} |
#pragma once
#ifdef _MSC_VER
#include <intrin.h>
#include <stdexcept>
#define __builtin_popcount(t) __popcnt(t)
#endif
#include <queue>
#include <string.h>
#if defined(__GNUC__)
#define PORTABLE_ALIGN32 __attribute__((aligned(32)))
#else
#define PORTABLE_ALIGN32 __declspec(align(32))
#endif
namespace hnswlib {
typedef size_t labeltype;
template<typename T>
static void writeBinaryPOD(std::ostream &out, const T &podRef) {
out.write((char *) &podRef, sizeof(T));
}
template<typename T>
static void readBinaryPOD(std::istream &in, T &podRef) {
in.read((char *) &podRef, sizeof(T));
}
template<typename MTYPE>
using DISTFUNC = MTYPE(*)(const void *, const void *, const void *);
template<typename MTYPE>
class SpaceInterface {
public:
//virtual void search(void *);
virtual size_t get_data_size() = 0;
virtual DISTFUNC<MTYPE> get_dist_func() = 0;
virtual void *get_dist_func_param() = 0;
};
template<typename dist_t>
class AlgorithmInterface {
public:
virtual void addPoint(void *datapoint, labeltype label)=0;
virtual std::priority_queue<std::pair<dist_t, labeltype >> searchKnn(void *, size_t) = 0;
virtual void saveIndex(const std::string &location)=0;
};
}
#include "space_l2.h"
#include "space_ip.h"
#include "brutoforce.h"
#include "hnswalg.h" | {
"pile_set_name": "Github"
} |
package com.elifut;
import android.content.Context;
final class MultiDex {
/** Install multidex in debug application. */
static void installMultiDex(Context base) {
android.support.multidex.MultiDex.install(base);
}
private MultiDex() {
}
}
| {
"pile_set_name": "Github"
} |
<?php
/*
* This file is part of Mustache.php.
*
* (c) 2010-2017 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* A PHPUnit test case wrapping the Mustache Spec.
*
* @group mustache-spec
* @group functional
*/
class Mustache_Test_Functional_MustacheSpecTest extends Mustache_Test_SpecTestCase
{
/**
* For some reason data providers can't mark tests skipped, so this test exists
* simply to provide a 'skipped' test if the `spec` submodule isn't initialized.
*/
public function testSpecInitialized()
{
if (!file_exists(dirname(__FILE__) . '/../../../../vendor/spec/specs/')) {
$this->markTestSkipped('Mustache spec submodule not initialized: run "git submodule update --init"');
}
}
/**
* @group comments
* @dataProvider loadCommentSpec
*/
public function testCommentSpec($desc, $source, $partials, $data, $expected)
{
$template = self::loadTemplate($source, $partials);
$this->assertEquals($expected, $template->render($data), $desc);
}
public function loadCommentSpec()
{
return $this->loadSpec('comments');
}
/**
* @group delimiters
* @dataProvider loadDelimitersSpec
*/
public function testDelimitersSpec($desc, $source, $partials, $data, $expected)
{
$template = self::loadTemplate($source, $partials);
$this->assertEquals($expected, $template->render($data), $desc);
}
public function loadDelimitersSpec()
{
return $this->loadSpec('delimiters');
}
/**
* @group interpolation
* @dataProvider loadInterpolationSpec
*/
public function testInterpolationSpec($desc, $source, $partials, $data, $expected)
{
$template = self::loadTemplate($source, $partials);
$this->assertEquals($expected, $template->render($data), $desc);
}
public function loadInterpolationSpec()
{
return $this->loadSpec('interpolation');
}
/**
* @group inverted
* @group inverted-sections
* @dataProvider loadInvertedSpec
*/
public function testInvertedSpec($desc, $source, $partials, $data, $expected)
{
$template = self::loadTemplate($source, $partials);
$this->assertEquals($expected, $template->render($data), $desc);
}
public function loadInvertedSpec()
{
return $this->loadSpec('inverted');
}
/**
* @group partials
* @dataProvider loadPartialsSpec
*/
public function testPartialsSpec($desc, $source, $partials, $data, $expected)
{
$template = self::loadTemplate($source, $partials);
$this->assertEquals($expected, $template->render($data), $desc);
}
public function loadPartialsSpec()
{
return $this->loadSpec('partials');
}
/**
* @group sections
* @dataProvider loadSectionsSpec
*/
public function testSectionsSpec($desc, $source, $partials, $data, $expected)
{
$template = self::loadTemplate($source, $partials);
$this->assertEquals($expected, $template->render($data), $desc);
}
public function loadSectionsSpec()
{
return $this->loadSpec('sections');
}
}
| {
"pile_set_name": "Github"
} |
#include "wio.h"
#include "suli2.h"
#include "Main.h"
void setup()
{
}
void loop()
{
}
| {
"pile_set_name": "Github"
} |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
global.ng = global.ng || {};
global.ng.common = global.ng.common || {};
global.ng.common.locales = global.ng.common.locales || {};
const u = undefined;
function plural(n) {
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
if (i === 1 && v === 0) return 1;
if (i === 2 && v === 0) return 2;
if (v === 0 && !(n >= 0 && n <= 10) && n % 10 === 0) return 4;
return 5;
}
global.ng.common.locales['he'] = [
'he',
[['לפנה״צ', 'אחה״צ'], u, u],
[['לפנה״צ', 'אחה״צ'], ['AM', 'PM'], u],
[
['א׳', 'ב׳', 'ג׳', 'ד׳', 'ה׳', 'ו׳', 'ש׳'],
['יום א׳', 'יום ב׳', 'יום ג׳', 'יום ד׳', 'יום ה׳', 'יום ו׳', 'שבת'],
['יום ראשון', 'יום שני', 'יום שלישי', 'יום רביעי', 'יום חמישי', 'יום שישי', 'יום שבת'],
['א׳', 'ב׳', 'ג׳', 'ד׳', 'ה׳', 'ו׳', 'ש׳']
],
u,
[
['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
['ינו׳', 'פבר׳', 'מרץ', 'אפר׳', 'מאי', 'יוני', 'יולי', 'אוג׳', 'ספט׳', 'אוק׳', 'נוב׳', 'דצמ׳'],
[
'ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר',
'נובמבר', 'דצמבר'
]
],
u,
[['לפנה״ס', 'לספירה'], u, ['לפני הספירה', 'לספירה']],
0,
[5, 6],
['d.M.y', 'd בMMM y', 'd בMMMM y', 'EEEE, d בMMMM y'],
['H:mm', 'H:mm:ss', 'H:mm:ss z', 'H:mm:ss zzzz'],
['{1}, {0}', u, '{1} בשעה {0}', u],
['.', ',', ';', '%', '\u200e+', '\u200e-', 'E', '×', '‰', '∞', 'NaN', ':'],
['#,##0.###', '#,##0%', '\u200f#,##0.00 ¤;\u200f-#,##0.00 ¤', '#E0'],
'ILS',
'₪',
'שקל חדש',
{'BYN': [u, 'р'], 'CNY': ['\u200eCN¥\u200e', '¥'], 'ILP': ['ל״י'], 'THB': ['฿'], 'TWD': ['NT$']},
'rtl',
plural,
[
[
['חצות', 'בבוקר', 'בצהריים', 'אחה״צ', 'בערב', 'בלילה', 'לפנות בוקר'],
['חצות', 'בוקר', 'צהריים', 'אחר הצהריים', 'ערב', 'לילה', 'לפנות בוקר'],
['חצות', 'בבוקר', 'בצהריים', 'אחר הצהריים', 'בערב', 'בלילה', 'לפנות בוקר']
],
[
['חצות', 'בוקר', 'צהריים', 'אחה״צ', 'ערב', 'לילה', 'לפנות בוקר'], u,
['חצות', 'בוקר', 'צהריים', 'אחר הצהריים', 'ערב', 'לילה', 'לפנות בוקר']
],
[
'00:00', ['06:00', '12:00'], ['12:00', '16:00'], ['16:00', '18:00'], ['18:00', '22:00'],
['22:00', '03:00'], ['03:00', '06:00']
]
]
];
})(typeof globalThis !== 'undefined' && globalThis || typeof global !== 'undefined' && global ||
typeof window !== 'undefined' && window);
| {
"pile_set_name": "Github"
} |
##
# This file is part of WhatWeb and may be subject to
# redistribution and commercial restrictions. Please see the WhatWeb
# web site for more information on licensing and terms of use.
# http://www.morningstarsecurity.com/research/whatweb
##
Plugin.define "linkSpheric" do
author "Brendan Coles <[email protected]>" # 2010-08-21
version "0.1"
description "linkSpheric. Possibly the world's coolest free online directory software that's absolutely free, no advertising, no spyware, just good old PHP-MySQL."
website "http://dataspheric.com/services/software/ls/"
# 61 results for "powered by linkSpheric" -Vulnerability @ 2010-08-21
# Dorks #
dorks [
'"powered by linkSpheric" -Vulnerability'
]
matches [
# Default CSS
{ :text=>'<style type="text/css" media="screen">@import "styles/ls_orange.css";</style>"' },
# Install Page
{ :text=>'<title>linkSpheric Installer</title>' },
{ :text=>'<p style="text-align: center;"><a href="admin/index.php"><img src="images/ls_logo.png" width="190" height="75" alt="Powered by linkSpheric" /></a></p>' },
{ :text=>' <strong>linkSpheric Administrator:</strong>' },
# Powered by text
{ :text=>'<!--License terms require you to leave this link attribution intact. You are only permitted to remove it by special arrangement with dataSpheric-->' },
{ :text=>'<!--License terms require you to leave this link attribution intact. You are only permitted to remove it by special arrangement with dataSpheric-->' },
{ :text=>'Powered by <a href="http://dataspheric.com/services/software/ls/" style="text-decoration: none; color: #000;"><strong>link<span style="font-size: 1.3em; color: #f60;">S</span>pheric</strong></a>' },
# Default logo
{ :md5=>'a421ddecd26e755219c63a130893d253', :url=>'images/ls_logo.png' }
]
end
| {
"pile_set_name": "Github"
} |
// Copyright © Microsoft Open Technologies, Inc.
// All Rights Reserved
// 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
// THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.
// See the Apache 2 License for the specific language governing permissions and limitations under the License.
namespace Microsoft.Http2.Protocol
{
public static class Verbs
{
public const string Get = "GET";
public const string Post = "POST";
public const string Put = "PUT";
public const string Delete = "DELETE";
}
}
| {
"pile_set_name": "Github"
} |
# Pi-hole: A black hole for Internet advertisements
# (c) 2015, 2016 by Jacob Salmela
# Network-wide ad blocking via your Raspberry Pi
# http://pi-hole.net
# Updates ad sources every week
#
# Pi-hole is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This file is under source-control of the Pi-hole installation and update
# scripts, any changes made to this file will be overwritten when the softare
# is updated or re-installed. Please make any changes to the appropriate crontab
# or other cron file snippets.
# Your container name goes here:
DOCKER_NAME=pihole
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# Pi-hole: Update the ad sources once a week on Sunday at 01:59
# Download any updates from the adlists
59 1 * * 7 root PATH="$PATH:/usr/local/bin/" docker exec $DOCKER_NAME pihole updateGravity > /dev/null
# Update docker-pi-hole by pulling the latest docker image ane re-creating your container.
# pihole software update commands are unsupported in docker!
#30 2 * * 7 root PATH="$PATH:/usr/local/bin/" docker exec $DOCKER_NAME pihole updatePihole > /dev/null
# Pi-hole: Flush the log daily at 00:00 so it doesn't get out of control
# Stats will be viewable in the Web interface thanks to the cron job above
00 00 * * * root PATH="$PATH:/usr/local/bin/" docker exec $DOCKER_NAME pihole flush > /dev/null
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (C) 2014 Peter Cai
*
* This file is part of BlackLight
*
* BlackLight is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* BlackLight is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with BlackLight. If not, see <http://www.gnu.org/licenses/>.
-->
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:startColor="#44000000"
android:endColor="#00000000"
android:angle="270"
android:type="linear"/>
</shape>
| {
"pile_set_name": "Github"
} |
/**
* Dark blue theme for Highcharts JS
* @author Torstein Hønsi
*/
Highcharts.theme = {
colors: ["#DDDF0D", "#55BF3B", "#DF5353", "#7798BF", "#aaeeee", "#ff0066", "#eeaaee",
"#55BF3B", "#DF5353", "#7798BF", "#aaeeee"],
chart: {
backgroundColor: {
linearGradient: { x1: 0, y1: 0, x2: 1, y2: 1 },
stops: [
[0, 'rgb(48, 48, 96)'],
[1, 'rgb(0, 0, 0)']
]
},
borderColor: '#000000',
borderWidth: 2,
className: 'dark-container',
plotBackgroundColor: 'rgba(255, 255, 255, .1)',
plotBorderColor: '#CCCCCC',
plotBorderWidth: 1
},
title: {
style: {
color: '#C0C0C0',
font: 'bold 16px "Trebuchet MS", Verdana, sans-serif'
}
},
subtitle: {
style: {
color: '#666666',
font: 'bold 12px "Trebuchet MS", Verdana, sans-serif'
}
},
xAxis: {
gridLineColor: '#333333',
gridLineWidth: 1,
labels: {
style: {
color: '#A0A0A0'
}
},
lineColor: '#A0A0A0',
tickColor: '#A0A0A0',
title: {
style: {
color: '#CCC',
fontWeight: 'bold',
fontSize: '12px',
fontFamily: 'Trebuchet MS, Verdana, sans-serif'
}
}
},
yAxis: {
gridLineColor: '#333333',
labels: {
style: {
color: '#A0A0A0'
}
},
lineColor: '#A0A0A0',
minorTickInterval: null,
tickColor: '#A0A0A0',
tickWidth: 1,
title: {
style: {
color: '#CCC',
fontWeight: 'bold',
fontSize: '12px',
fontFamily: 'Trebuchet MS, Verdana, sans-serif'
}
}
},
tooltip: {
backgroundColor: 'rgba(0, 0, 0, 0.75)',
style: {
color: '#F0F0F0'
}
},
toolbar: {
itemStyle: {
color: 'silver'
}
},
plotOptions: {
line: {
dataLabels: {
color: '#CCC'
},
marker: {
lineColor: '#333'
}
},
spline: {
marker: {
lineColor: '#333'
}
},
scatter: {
marker: {
lineColor: '#333'
}
},
candlestick: {
lineColor: 'white'
}
},
legend: {
itemStyle: {
font: '9pt Trebuchet MS, Verdana, sans-serif',
color: '#A0A0A0'
},
itemHoverStyle: {
color: '#FFF'
},
itemHiddenStyle: {
color: '#444'
}
},
credits: {
style: {
color: '#666'
}
},
labels: {
style: {
color: '#CCC'
}
},
navigation: {
buttonOptions: {
symbolStroke: '#DDDDDD',
hoverSymbolStroke: '#FFFFFF',
theme: {
fill: {
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
stops: [
[0.4, '#606060'],
[0.6, '#333333']
]
},
stroke: '#000000'
}
}
},
// scroll charts
rangeSelector: {
buttonTheme: {
fill: {
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
stops: [
[0.4, '#888'],
[0.6, '#555']
]
},
stroke: '#000000',
style: {
color: '#CCC',
fontWeight: 'bold'
},
states: {
hover: {
fill: {
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
stops: [
[0.4, '#BBB'],
[0.6, '#888']
]
},
stroke: '#000000',
style: {
color: 'white'
}
},
select: {
fill: {
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
stops: [
[0.1, '#000'],
[0.3, '#333']
]
},
stroke: '#000000',
style: {
color: 'yellow'
}
}
}
},
inputStyle: {
backgroundColor: '#333',
color: 'silver'
},
labelStyle: {
color: 'silver'
}
},
navigator: {
handles: {
backgroundColor: '#666',
borderColor: '#AAA'
},
outlineColor: '#CCC',
maskFill: 'rgba(16, 16, 16, 0.5)',
series: {
color: '#7798BF',
lineColor: '#A6C7ED'
}
},
scrollbar: {
barBackgroundColor: {
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
stops: [
[0.4, '#888'],
[0.6, '#555']
]
},
barBorderColor: '#CCC',
buttonArrowColor: '#CCC',
buttonBackgroundColor: {
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
stops: [
[0.4, '#888'],
[0.6, '#555']
]
},
buttonBorderColor: '#CCC',
rifleColor: '#FFF',
trackBackgroundColor: {
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
stops: [
[0, '#000'],
[1, '#333']
]
},
trackBorderColor: '#666'
},
// special colors for some of the
legendBackgroundColor: 'rgba(0, 0, 0, 0.5)',
legendBackgroundColorSolid: 'rgb(35, 35, 70)',
dataLabelsColor: '#444',
textColor: '#C0C0C0',
maskColor: 'rgba(255,255,255,0.3)'
};
// Apply the theme
var highchartsOptions = Highcharts.setOptions(Highcharts.theme);
| {
"pile_set_name": "Github"
} |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "WXPBGeneratedMessage.h"
@class NSString;
@interface GameDownloadInfo : WXPBGeneratedMessage
{
}
+ (void)initialize;
// Remaining properties
@property(retain, nonatomic) NSString *itunesUrl; // @dynamic itunesUrl;
@end
| {
"pile_set_name": "Github"
} |
pub mod autocomplete;
pub mod button;
pub mod checkbox;
pub mod compare_times;
pub mod containers;
pub mod dropdown;
pub mod fan_chart;
pub mod filler;
pub mod just_draw;
pub mod line_plot;
pub mod menu;
mod panel;
pub mod persistent_split;
pub mod scatter_plot;
pub mod slider;
pub mod spinner;
pub mod text_box;
use crate::widgets::containers::{Container, Nothing};
pub use crate::widgets::panel::Panel;
use crate::{
Button, Choice, Color, DeferDraw, DrawWithTooltips, Drawable, Dropdown, EventCtx, GeomBatch,
GfxCtx, JustDraw, Menu, RewriteColor, ScreenDims, ScreenPt, ScreenRectangle, Text, TextBox,
};
use geom::{Distance, Percent, Polygon};
use std::collections::HashSet;
use stretch::geometry::{Rect, Size};
use stretch::node::{Node, Stretch};
use stretch::number::Number;
use stretch::style::{
AlignItems, Dimension, FlexDirection, FlexWrap, JustifyContent, PositionType, Style,
};
/// Create a new widget by implementing this trait. You can instantiate your widget by calling
/// `Widget::new(Box::new(instance of your new widget))`, which gives you the usual style options.
pub trait WidgetImpl: downcast_rs::Downcast {
/// What width and height does the widget occupy? If this changes, be sure to set
/// `redo_layout` to true in `event`.
fn get_dims(&self) -> ScreenDims;
/// Your widget's top left corner should be here. Handle mouse events and draw appropriately.
fn set_pos(&mut self, top_left: ScreenPt);
/// Your chance to react to an event. Any side effects outside of this widget are communicated
/// through the output.
fn event(&mut self, ctx: &mut EventCtx, output: &mut WidgetOutput);
/// Draw the widget. Be sure to draw relative to the top-left specified by `set_pos`.
fn draw(&self, g: &mut GfxCtx);
/// If a new Panel is being created to replace an older one, all widgets have the chance to
/// preserve state from the previous version.
fn can_restore(&self) -> bool {
false
}
/// Restore state from the previous version of this widget, with the same ID. Implementors must
/// downcast.
fn restore(&mut self, _: &mut EventCtx, _prev: &Box<dyn WidgetImpl>) {
unreachable!()
}
}
#[derive(Debug, PartialEq)]
pub enum Outcome {
/// An action was done
Clicked(String),
/// A dropdown, checkbox, spinner, etc changed values. Usually this triggers a refresh of
/// everything, so not useful to plumb along what changed.
Changed,
/// Nothing happened
Nothing,
}
pub struct WidgetOutput {
/// This widget changed dimensions, so recalculate layout.
pub redo_layout: bool,
/// This widget produced an Outcome, and event handling should immediately stop. Most widgets
/// shouldn't set this.
pub outcome: Outcome,
}
impl WidgetOutput {
pub fn new() -> WidgetOutput {
WidgetOutput {
redo_layout: false,
outcome: Outcome::Nothing,
}
}
}
downcast_rs::impl_downcast!(WidgetImpl);
pub struct Widget {
// TODO pub just for Container. Just move that here?
pub(crate) widget: Box<dyn WidgetImpl>,
layout: LayoutStyle,
pub(crate) rect: ScreenRectangle,
bg: Option<Drawable>,
// to_geom forces this one to happen
bg_batch: Option<GeomBatch>,
id: Option<String>,
}
struct LayoutStyle {
bg_color: Option<Color>,
// (thickness, color)
outline: Option<(f64, Color)>,
// If None, as round as possible
rounded_radius: Option<f64>,
style: Style,
}
// Layouting
// TODO Maybe I just want margin, not padding. And maybe more granular controls per side. And to
// apply margin to everything in a row or column.
// TODO Row and columns feel backwards when using them.
impl Widget {
pub fn centered(mut self) -> Widget {
self.layout.style.align_items = AlignItems::Center;
self.layout.style.justify_content = JustifyContent::SpaceAround;
self
}
pub fn centered_horiz(self) -> Widget {
Widget::row(vec![self]).centered()
}
pub fn centered_vert(self) -> Widget {
Widget::col(vec![self]).centered()
}
pub fn centered_cross(mut self) -> Widget {
self.layout.style.align_items = AlignItems::Center;
self
}
pub fn evenly_spaced(mut self) -> Widget {
self.layout.style.justify_content = JustifyContent::SpaceBetween;
self
}
pub fn fill_width(mut self) -> Widget {
self.layout.style.size.width = Dimension::Percent(1.0);
self
}
pub fn fill_height(mut self) -> Widget {
self.layout.style.size.height = Dimension::Percent(1.0);
self
}
// This one is really weird. percent_width should be LESS than the max_size_percent given to
// the overall Panel, otherwise weird things happen.
// Only makes sense for rows/columns.
pub fn flex_wrap(mut self, ctx: &EventCtx, width: Percent) -> Widget {
self.layout.style.size = Size {
width: Dimension::Points((ctx.canvas.window_width * width.inner()) as f32),
height: Dimension::Undefined,
};
self.layout.style.flex_wrap = FlexWrap::Wrap;
self.layout.style.justify_content = JustifyContent::SpaceAround;
self
}
// Only for rows/columns. Used to force table columns to line up.
pub fn force_width(mut self, width: f64) -> Widget {
self.layout.style.size.width = Dimension::Points(width as f32);
self
}
pub fn force_width_pct(mut self, ctx: &EventCtx, width: Percent) -> Widget {
self.layout.style.size.width =
Dimension::Points((ctx.canvas.window_width * width.inner()) as f32);
self
}
// Needed for force_width.
pub fn get_width_for_forcing(&self) -> f64 {
self.widget.get_dims().width
}
pub fn bg(mut self, color: Color) -> Widget {
self.layout.bg_color = Some(color);
self
}
// Callers have to adjust padding too, probably
pub fn outline(mut self, thickness: f64, color: Color) -> Widget {
self.layout.outline = Some((thickness, color));
self
}
pub fn fully_rounded(mut self) -> Widget {
self.layout.rounded_radius = None;
self
}
// Things like padding don't work on many widgets, so just make a convenient way to wrap in a
// row/column first
pub fn container(self) -> Widget {
Widget::row(vec![self])
}
// TODO Maybe panic if we call this on a non-container
pub fn padding<I: Into<EdgeInsets>>(mut self, insets: I) -> Widget {
let insets = insets.into();
self.layout.style.padding = Rect::from(insets);
self
}
pub fn padding_top(mut self, pixels: usize) -> Widget {
self.layout.style.padding.top = Dimension::Points(pixels as f32);
self
}
pub fn padding_left(mut self, pixels: usize) -> Widget {
self.layout.style.padding.start = Dimension::Points(pixels as f32);
self
}
pub fn padding_bottom(mut self, pixels: usize) -> Widget {
self.layout.style.padding.bottom = Dimension::Points(pixels as f32);
self
}
pub fn padding_right(mut self, pixels: usize) -> Widget {
self.layout.style.padding.end = Dimension::Points(pixels as f32);
self
}
pub fn margin<I: Into<EdgeInsets>>(mut self, insets: I) -> Widget {
let insets = insets.into();
self.layout.style.margin = Rect::from(insets);
self
}
pub fn margin_above(mut self, pixels: usize) -> Widget {
self.layout.style.margin.top = Dimension::Points(pixels as f32);
self
}
pub fn margin_below(mut self, pixels: usize) -> Widget {
self.layout.style.margin.bottom = Dimension::Points(pixels as f32);
self
}
pub fn margin_left(mut self, pixels: usize) -> Widget {
self.layout.style.margin.start = Dimension::Points(pixels as f32);
self
}
pub fn margin_right(mut self, pixels: usize) -> Widget {
self.layout.style.margin.end = Dimension::Points(pixels as f32);
self
}
pub fn margin_horiz(mut self, pixels: usize) -> Widget {
self.layout.style.margin.start = Dimension::Points(pixels as f32);
self.layout.style.margin.end = Dimension::Points(pixels as f32);
self
}
pub fn margin_vert(mut self, pixels: usize) -> Widget {
self.layout.style.margin.top = Dimension::Points(pixels as f32);
self.layout.style.margin.bottom = Dimension::Points(pixels as f32);
self
}
pub fn align_left(mut self) -> Widget {
self.layout.style.margin.end = Dimension::Auto;
self
}
pub fn align_right(mut self) -> Widget {
self.layout.style.margin = Rect {
start: Dimension::Auto,
end: Dimension::Undefined,
top: Dimension::Undefined,
bottom: Dimension::Undefined,
};
self
}
pub fn align_bottom(mut self) -> Widget {
self.layout.style.margin = Rect {
start: Dimension::Undefined,
end: Dimension::Undefined,
top: Dimension::Auto,
bottom: Dimension::Undefined,
};
self
}
// This doesn't count against the entire container
pub fn align_vert_center(mut self) -> Widget {
self.layout.style.margin = Rect {
start: Dimension::Undefined,
end: Dimension::Undefined,
top: Dimension::Auto,
bottom: Dimension::Auto,
};
self
}
fn abs(mut self, x: f64, y: f64) -> Widget {
self.layout.style.position_type = PositionType::Absolute;
self.layout.style.position = Rect {
start: Dimension::Points(x as f32),
end: Dimension::Undefined,
top: Dimension::Points(y as f32),
bottom: Dimension::Undefined,
};
self
}
pub fn named<I: Into<String>>(mut self, id: I) -> Widget {
self.id = Some(id.into());
self
}
}
// Convenient?? constructors
impl Widget {
pub fn new(widget: Box<dyn WidgetImpl>) -> Widget {
Widget {
widget,
layout: LayoutStyle {
bg_color: None,
outline: None,
rounded_radius: Some(5.0),
style: Style {
..Default::default()
},
},
rect: ScreenRectangle::placeholder(),
bg: None,
bg_batch: None,
id: None,
}
}
// TODO These are literally just convenient APIs to avoid importing JustDraw. Do we want this
// or not?
pub fn draw_batch(ctx: &EventCtx, batch: GeomBatch) -> Widget {
JustDraw::wrap(ctx, batch)
}
pub fn draw_svg<I: Into<String>>(ctx: &EventCtx, filename: I) -> Widget {
JustDraw::svg(ctx, filename.into())
}
pub fn draw_svg_transform(ctx: &EventCtx, filename: &str, rewrite: RewriteColor) -> Widget {
JustDraw::svg_transform(ctx, filename, rewrite)
}
pub fn draw_svg_with_tooltip<I: Into<String>>(
ctx: &EventCtx,
filename: I,
tooltip: Text,
) -> Widget {
let (mut batch, bounds) = crate::svg::load_svg(ctx.prerender, &filename.into());
// Preserve the whitespace in the SVG.
// TODO Maybe always do this, add a way to autocrop() to remove it if needed.
batch.push(Color::INVISIBLE, bounds.get_rectangle());
DrawWithTooltips::new(
ctx,
batch,
vec![(bounds.get_rectangle(), tooltip)],
Box::new(|_| GeomBatch::new()),
)
}
// TODO Likewise
pub fn text_entry(ctx: &EventCtx, prefilled: String, exclusive_focus: bool) -> Widget {
// TODO Hardcoded style, max chars
Widget::new(Box::new(TextBox::new(ctx, 50, prefilled, exclusive_focus)))
}
// TODO Likewise
pub fn dropdown<T: 'static + PartialEq + Clone + std::fmt::Debug, I: Into<String>>(
ctx: &EventCtx,
label: I,
default_value: T,
choices: Vec<Choice<T>>,
) -> Widget {
let label = label.into();
Widget::new(Box::new(Dropdown::new(
ctx,
&label,
default_value,
choices,
false,
)))
.named(label)
// Why is this still required? The button Dropdown uses *already* has an outline
.outline(ctx.style().outline_thickness, ctx.style().outline_color)
}
pub fn custom_row(widgets: Vec<Widget>) -> Widget {
Widget::new(Box::new(Container::new(true, widgets)))
}
pub fn row(widgets: Vec<Widget>) -> Widget {
let mut new = Vec::new();
let len = widgets.len();
// TODO Time for that is_last iterator?
for (idx, w) in widgets.into_iter().enumerate() {
if idx == len - 1 {
new.push(w);
} else {
new.push(w.margin_right(10));
}
}
Widget::new(Box::new(Container::new(true, new)))
}
pub fn custom_col(widgets: Vec<Widget>) -> Widget {
Widget::new(Box::new(Container::new(false, widgets)))
}
pub fn col(widgets: Vec<Widget>) -> Widget {
let mut new = Vec::new();
let len = widgets.len();
// TODO Time for that is_last iterator?
for (idx, w) in widgets.into_iter().enumerate() {
if idx == len - 1 {
new.push(w);
} else {
new.push(w.margin_below(10));
}
}
Widget::new(Box::new(Container::new(false, new)))
}
pub fn nothing() -> Widget {
Widget::new(Box::new(Nothing {}))
}
// Also returns the hitbox of the entire widget
pub fn to_geom(mut self, ctx: &EventCtx, exact_pct_width: Option<f64>) -> (GeomBatch, Polygon) {
if let Some(w) = exact_pct_width {
// TODO 35 is a sad magic number. By default, Panels have padding of 16, so assuming
// this geometry is going in one of those, it makes sense to subtract 32. But that still
// caused some scrolling in a test, so snip away a few more pixels.
self.layout.style.min_size.width =
Dimension::Points((w * ctx.canvas.window_width) as f32 - 35.0);
}
// Pretend we're in a Panel and basically copy recompute_layout
{
let mut stretch = Stretch::new();
let root = stretch
.new_node(
Style {
..Default::default()
},
Vec::new(),
)
.unwrap();
let mut nodes = vec![];
self.get_flexbox(root, &mut stretch, &mut nodes);
nodes.reverse();
let container_size = Size {
width: Number::Undefined,
height: Number::Undefined,
};
stretch.compute_layout(root, container_size).unwrap();
self.apply_flexbox(&stretch, &mut nodes, 0.0, 0.0, (0.0, 0.0), ctx, true, true);
assert!(nodes.is_empty());
}
// Now build one big batch from all of the geometry, which now has the correct top left
// position.
let hitbox = self.rect.to_polygon();
let mut batch = GeomBatch::new();
self.consume_geometry(&mut batch);
batch.autocrop_dims = false;
(batch, hitbox)
}
pub fn horiz_separator(ctx: &mut EventCtx, pct_width: f64) -> Widget {
Widget::draw_batch(
ctx,
GeomBatch::from(vec![(
Color::WHITE,
Polygon::rectangle(pct_width * ctx.canvas.window_width, 2.0),
)]),
)
.centered_horiz()
}
pub fn vert_separator(ctx: &mut EventCtx, height_px: f64) -> Widget {
Widget::draw_batch(
ctx,
GeomBatch::from(vec![(Color::WHITE, Polygon::rectangle(2.0, height_px))]),
)
}
}
// Internals
impl Widget {
pub(crate) fn draw(&self, g: &mut GfxCtx) {
// Don't draw these yet; clipping is still in effect.
if self.id == Some("horiz scrollbar".to_string())
|| self.id == Some("vert scrollbar".to_string())
{
return;
}
if let Some(ref bg) = self.bg {
g.redraw_at(ScreenPt::new(self.rect.x1, self.rect.y1), bg);
}
self.widget.draw(g);
}
// Populate a flattened list of Nodes, matching the traversal order
fn get_flexbox(&self, parent: Node, stretch: &mut Stretch, nodes: &mut Vec<Node>) {
if let Some(container) = self.widget.downcast_ref::<Container>() {
let mut style = self.layout.style.clone();
style.flex_direction = if container.is_row {
FlexDirection::Row
} else {
FlexDirection::Column
};
let node = stretch.new_node(style, Vec::new()).unwrap();
nodes.push(node);
for widget in &container.members {
widget.get_flexbox(node, stretch, nodes);
}
stretch.add_child(parent, node).unwrap();
return;
} else {
let mut style = self.layout.style.clone();
style.size = Size {
width: Dimension::Points(self.widget.get_dims().width as f32),
height: Dimension::Points(self.widget.get_dims().height as f32),
};
let node = stretch.new_node(style, Vec::new()).unwrap();
stretch.add_child(parent, node).unwrap();
nodes.push(node);
}
}
// TODO Clean up argument passing
fn apply_flexbox(
&mut self,
stretch: &Stretch,
nodes: &mut Vec<Node>,
dx: f64,
dy: f64,
scroll_offset: (f64, f64),
ctx: &EventCtx,
recompute_layout: bool,
defer_draw: bool,
) {
let result = stretch.layout(nodes.pop().unwrap()).unwrap();
let x: f64 = result.location.x.into();
let y: f64 = result.location.y.into();
let width: f64 = result.size.width.into();
let height: f64 = result.size.height.into();
// Don't scroll the scrollbars
let top_left = if self.id == Some("horiz scrollbar".to_string())
|| self.id == Some("vert scrollbar".to_string())
{
ScreenPt::new(x, y)
} else {
ScreenPt::new(x + dx - scroll_offset.0, y + dy - scroll_offset.1)
};
self.rect = ScreenRectangle::top_left(top_left, ScreenDims::new(width, height));
// Assume widgets don't dynamically change, so we just upload the background once.
if (self.bg.is_none() || recompute_layout)
&& (self.layout.bg_color.is_some() || self.layout.outline.is_some())
{
let mut batch = GeomBatch::new();
if let Some(c) = self.layout.bg_color {
batch.push(
c,
Polygon::rounded_rectangle(width, height, self.layout.rounded_radius),
);
}
if let Some((thickness, color)) = self.layout.outline {
batch.push(
color,
Polygon::rounded_rectangle(width, height, self.layout.rounded_radius)
.to_outline(Distance::meters(thickness))
.unwrap(),
);
}
if defer_draw {
self.bg_batch = Some(batch);
} else {
self.bg = Some(ctx.upload(batch));
}
}
if let Some(container) = self.widget.downcast_mut::<Container>() {
// layout() doesn't return absolute position; it's relative to the container.
for widget in &mut container.members {
widget.apply_flexbox(
stretch,
nodes,
x + dx,
y + dy,
scroll_offset,
ctx,
recompute_layout,
defer_draw,
);
}
} else {
self.widget.set_pos(top_left);
}
}
fn get_all_click_actions(&self, actions: &mut HashSet<String>) {
if let Some(btn) = self.widget.downcast_ref::<Button>() {
if actions.contains(&btn.action) {
panic!("Two buttons in one Panel both use action {}", btn.action);
}
actions.insert(btn.action.clone());
} else if let Some(container) = self.widget.downcast_ref::<Container>() {
for w in &container.members {
w.get_all_click_actions(actions);
}
}
}
fn currently_hovering(&self) -> Option<&String> {
if let Some(btn) = self.widget.downcast_ref::<Button>() {
if btn.hovering {
return Some(&btn.action);
}
} else if let Some(container) = self.widget.downcast_ref::<Container>() {
for w in &container.members {
if let Some(a) = w.currently_hovering() {
return Some(a);
}
}
}
None
}
fn restore(&mut self, ctx: &mut EventCtx, prev: &Panel) {
if let Some(container) = self.widget.downcast_mut::<Container>() {
for w in &mut container.members {
w.restore(ctx, prev);
}
} else if self.widget.can_restore() {
if let Some(ref other) = prev.top_level.find(self.id.as_ref().unwrap()) {
self.widget.restore(ctx, &other.widget);
}
}
}
fn consume_geometry(mut self, batch: &mut GeomBatch) {
if let Some(bg) = self.bg_batch.take() {
batch.append(bg.translate(self.rect.x1, self.rect.y1));
}
if self.widget.is::<Container>() {
// downcast() consumes, so we have to do the is() check first
if let Ok(container) = self.widget.downcast::<Container>() {
for w in container.members {
w.consume_geometry(batch);
}
}
} else if let Ok(defer) = self.widget.downcast::<DeferDraw>() {
batch.append(defer.batch.translate(defer.top_left.x, defer.top_left.y));
} else {
panic!("to_geom called on a widget tree that has something interactive");
}
}
pub fn is_btn(&self, name: &str) -> bool {
self.widget
.downcast_ref::<Button>()
.map(|btn| btn.action == name)
.unwrap_or(false)
}
fn find(&self, name: &str) -> Option<&Widget> {
if self.id == Some(name.to_string()) {
return Some(self);
}
if let Some(container) = self.widget.downcast_ref::<Container>() {
for widget in &container.members {
if let Some(w) = widget.find(name) {
return Some(w);
}
}
}
None
}
fn find_mut(&mut self, name: &str) -> Option<&mut Widget> {
if self.id == Some(name.to_string()) {
return Some(self);
}
if let Some(container) = self.widget.downcast_mut::<Container>() {
for widget in &mut container.members {
if let Some(w) = widget.find_mut(name) {
return Some(w);
}
}
}
None
}
pub(crate) fn take_btn(self) -> Button {
*self.widget.downcast::<Button>().ok().unwrap()
}
pub(crate) fn take_menu<T: 'static + Clone>(self) -> Menu<T> {
*self.widget.downcast::<Menu<T>>().ok().unwrap()
}
pub(crate) fn take_just_draw(self) -> JustDraw {
*self.widget.downcast::<JustDraw>().ok().unwrap()
}
}
pub struct EdgeInsets {
pub top: f32,
pub left: f32,
pub bottom: f32,
pub right: f32,
}
impl From<usize> for EdgeInsets {
fn from(uniform_size: usize) -> EdgeInsets {
EdgeInsets {
top: uniform_size as f32,
left: uniform_size as f32,
bottom: uniform_size as f32,
right: uniform_size as f32,
}
}
}
impl From<EdgeInsets> for Rect<Dimension> {
fn from(insets: EdgeInsets) -> Rect<Dimension> {
Rect {
start: Dimension::Points(insets.left),
end: Dimension::Points(insets.right),
top: Dimension::Points(insets.top),
bottom: Dimension::Points(insets.bottom),
}
}
}
| {
"pile_set_name": "Github"
} |
using System;
using System.IO;
using System.Runtime.InteropServices;
namespace cs.ndll
{
public class NDLLFunction : IDisposable
{
private IntPtr module;
private Delegate func;
private int numArgs;
private static CFFICSLoader.CFFILoaderDelegate loaderDelegate;
private static GCHandle pinnedLoaderFunc;
public static String LibraryDir = null;
public static String LibraryPrefix = "";
public static String LibrarySuffix = ".ndll";
[UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
private delegate IntPtr NDLLFunctionDelegate();
[UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
private delegate void HxSetLoaderDelegate(IntPtr loader);
[UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
private delegate IntPtr CallMultDelegate(IntPtr args);
[UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
private delegate IntPtr Call0Delegate();
[UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
private delegate IntPtr Call1Delegate(IntPtr arg1);
[UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
private delegate IntPtr Call2Delegate(IntPtr arg1, IntPtr arg2);
[UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
private delegate IntPtr Call3Delegate(IntPtr arg1, IntPtr arg2, IntPtr arg3);
[UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
private delegate IntPtr Call4Delegate(IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4);
[UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
private delegate IntPtr Call5Delegate(IntPtr arg1, IntPtr arg2, IntPtr arg3, IntPtr arg4, IntPtr arg5);
NDLLFunction(IntPtr module, Delegate func, int numArgs)
{
this.module = module;
this.func = func;
this.numArgs = numArgs;
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
private void Dispose(bool disposing)
{
if (module != IntPtr.Zero)
{
NativeMethods.FreeLibraryWrap(module);
module = IntPtr.Zero;
}
}
~NDLLFunction()
{
Dispose(false);
}
public static NDLLFunction Load(String lib, String name, int numArgs)
{
if (numArgs < -1 || numArgs > 5)
throw new ArgumentOutOfRangeException("Invalid numArgs: " + numArgs);
IntPtr module = IntPtr.Zero;
try
{
if (LibraryDir != null && (lib.StartsWith("./") || lib.StartsWith(".\\")))
lib = LibraryDir + Path.DirectorySeparatorChar + LibraryPrefix + lib.Substring(2) + LibrarySuffix;
else
lib = lib + LibrarySuffix;
module = NativeMethods.LoadLibraryWrap(lib);
if (module == IntPtr.Zero)
return null;
String funcName;
if (numArgs != -1)
funcName = String.Format("{0}__{1}", name, numArgs);
else
funcName = String.Format("{0}__MULT", name);
IntPtr funcPtr = NativeMethods.GetProcAddressWrap(module, funcName);
if (funcPtr == IntPtr.Zero)
return null;
NDLLFunctionDelegate func = (NDLLFunctionDelegate)Marshal.GetDelegateForFunctionPointer(funcPtr, typeof(NDLLFunctionDelegate));
Delegate cfunc = null;
switch (numArgs)
{
case -1:
cfunc = Marshal.GetDelegateForFunctionPointer(func(), typeof(CallMultDelegate));
break;
case 0:
cfunc = Marshal.GetDelegateForFunctionPointer(func(), typeof(Call0Delegate));
break;
case 1:
cfunc = Marshal.GetDelegateForFunctionPointer(func(), typeof(Call1Delegate));
break;
case 2:
cfunc = Marshal.GetDelegateForFunctionPointer(func(), typeof(Call2Delegate));
break;
case 3:
cfunc = Marshal.GetDelegateForFunctionPointer(func(), typeof(Call3Delegate));
break;
case 4:
cfunc = Marshal.GetDelegateForFunctionPointer(func(), typeof(Call4Delegate));
break;
case 5:
cfunc = Marshal.GetDelegateForFunctionPointer(func(), typeof(Call5Delegate));
break;
}
IntPtr dll_hx_set_loader_ptr = NativeMethods.GetProcAddressWrap(module, "hx_set_loader");
if (dll_hx_set_loader_ptr == IntPtr.Zero)
return null;
HxSetLoaderDelegate dll_hx_set_loader = (HxSetLoaderDelegate)Marshal.GetDelegateForFunctionPointer(dll_hx_set_loader_ptr, typeof(HxSetLoaderDelegate));
IntPtr callbackPtr;
if (loaderDelegate == null)
{
loaderDelegate = new CFFICSLoader.CFFILoaderDelegate(CFFICSLoader.Load);
callbackPtr = Marshal.GetFunctionPointerForDelegate(loaderDelegate);
pinnedLoaderFunc = GCHandle.Alloc(callbackPtr, GCHandleType.Pinned);
}
else
{
callbackPtr = (IntPtr)pinnedLoaderFunc.Target;
}
dll_hx_set_loader(callbackPtr);
NDLLFunction ndllFunc = new NDLLFunction(module, cfunc, numArgs);
module = IntPtr.Zero;
return ndllFunc;
}
finally
{
if (module != IntPtr.Zero)
NativeMethods.FreeLibraryWrap(module);
}
}
public object CallMult(Array args)
{
if (numArgs != -1)
throw new InvalidOperationException();
Array<object> hxArray = (Array<object>)args;
CSHandleScope scope = CSHandleScope.Create();
GCHandle[] handles = new GCHandle[hxArray.length];
for (int i = 0; i < hxArray.length; ++i)
handles[i] = GCHandle.Alloc(hxArray[i]);
IntPtr[] pointers = new IntPtr[hxArray.length];
for (int i = 0; i < hxArray.length; ++i)
pointers[i] = GCHandle.ToIntPtr(handles[i]);
GCHandle pinnedArray = GCHandle.Alloc(pointers, GCHandleType.Pinned);
CallMultDelegate cfunc = (CallMultDelegate)func;
object result = HandleUtils.GetObjectFromIntPtr(cfunc(pinnedArray.AddrOfPinnedObject()));
scope.Destroy();
for (int i = 0; i < hxArray.length; ++i)
handles[i].Free();
pinnedArray.Free();
return result;
}
public object Call0()
{
if (numArgs != 0)
throw new InvalidOperationException();
CSHandleScope scope = CSHandleScope.Create();
Call0Delegate cfunc = (Call0Delegate)func;
object result = HandleUtils.GetObjectFromIntPtr(cfunc());
scope.Destroy();
return result;
}
public object Call1(object arg1)
{
if (numArgs != 1)
throw new InvalidOperationException();
CSHandleScope scope = CSHandleScope.Create();
Call1Delegate cfunc = (Call1Delegate)func;
GCHandle gch1 = GCHandle.Alloc(arg1);
object result = HandleUtils.GetObjectFromIntPtr(cfunc(GCHandle.ToIntPtr(gch1)));
scope.Destroy();
gch1.Free();
return result;
}
public object Call2(object arg1, object arg2)
{
if (numArgs != 2)
throw new InvalidOperationException();
CSHandleScope scope = CSHandleScope.Create();
Call2Delegate cfunc = (Call2Delegate)func;
GCHandle gch1 = GCHandle.Alloc(arg1);
GCHandle gch2 = GCHandle.Alloc(arg2);
object result = HandleUtils.GetObjectFromIntPtr(cfunc(GCHandle.ToIntPtr(gch1), GCHandle.ToIntPtr(gch2)));
scope.Destroy();
gch1.Free();
gch2.Free();
return result;
}
public object Call3(object arg1, object arg2, object arg3)
{
if (numArgs != 3)
throw new InvalidOperationException();
CSHandleScope scope = CSHandleScope.Create();
Call3Delegate cfunc = (Call3Delegate)func;
GCHandle gch1 = GCHandle.Alloc(arg1);
GCHandle gch2 = GCHandle.Alloc(arg2);
GCHandle gch3 = GCHandle.Alloc(arg3);
object result = HandleUtils.GetObjectFromIntPtr(cfunc(GCHandle.ToIntPtr(gch1), GCHandle.ToIntPtr(gch2), GCHandle.ToIntPtr(gch3)));
scope.Destroy();
gch1.Free();
gch2.Free();
gch3.Free();
return result;
}
public object Call4(Object arg1, Object arg2, Object arg3, Object arg4)
{
if (numArgs != 4)
throw new InvalidOperationException();
CSHandleScope scope = CSHandleScope.Create();
Call4Delegate cfunc = (Call4Delegate)func;
GCHandle gch1 = GCHandle.Alloc(arg1);
GCHandle gch2 = GCHandle.Alloc(arg2);
GCHandle gch3 = GCHandle.Alloc(arg3);
GCHandle gch4 = GCHandle.Alloc(arg4);
object result = HandleUtils.GetObjectFromIntPtr(cfunc(GCHandle.ToIntPtr(gch1), GCHandle.ToIntPtr(gch2), GCHandle.ToIntPtr(gch3), GCHandle.ToIntPtr(gch4)));
scope.Destroy();
gch1.Free();
gch2.Free();
gch3.Free();
gch4.Free();
return result;
}
public Object Call5(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5)
{
if (numArgs != 5)
throw new InvalidOperationException();
CSHandleScope scope = CSHandleScope.Create();
Call5Delegate cfunc = (Call5Delegate)func;
GCHandle gch1 = GCHandle.Alloc(arg1);
GCHandle gch2 = GCHandle.Alloc(arg2);
GCHandle gch3 = GCHandle.Alloc(arg3);
GCHandle gch4 = GCHandle.Alloc(arg4);
GCHandle gch5 = GCHandle.Alloc(arg5);
object result = HandleUtils.GetObjectFromIntPtr(cfunc(GCHandle.ToIntPtr(gch1),
GCHandle.ToIntPtr(gch2), GCHandle.ToIntPtr(gch3), GCHandle.ToIntPtr(gch4), GCHandle.ToIntPtr(gch5)));
scope.Destroy();
gch1.Free();
gch2.Free();
gch3.Free();
gch4.Free();
gch5.Free();
return result;
}
}
}
| {
"pile_set_name": "Github"
} |
{
entry = {
bundle = harborprefs;
cell = PSLinkCell;
detail = HPListController;
icon = "harborprefs.png";
isController = 1;
label = Harbor;
};
} | {
"pile_set_name": "Github"
} |
#---------------------
# Create policies
#---------------------
# Create admin policy in the root namespace
resource "vault_policy" "admin_policy" {
name = "admins"
policy = file("policies/admin-policy.hcl")
}
# Create admin policy in the finance namespace
resource "vault_policy" "admin_policy_finance" {
provider = vault.finance
depends_on = [vault_namespace.finance]
name = "admins"
policy = file("policies/admin-policy.hcl")
}
# Create admin policy in the engineering namespace
resource "vault_policy" "admin_policy_engineering" {
provider = vault.engineering
depends_on = [vault_namespace.engineering]
name = "admins"
policy = file("policies/admin-policy.hcl")
}
# Create fpe-client policy in the root namespace
resource "vault_policy" "fpe_client_policy" {
name = "fpe-client"
policy = file("policies/fpe-client-policy.hcl")
}
| {
"pile_set_name": "Github"
} |
/* eslint-disable no-console */
import generate from "@babel/generator";
import * as T from "@babel/types";
import {
Tag,
symKind,
symInfo,
typeInfo,
symName,
resetFieldInfo,
invariant
} from "./core";
const MAX_TRACE_CODE_LEN = 40;
export const BROWSER_DEBUG = typeof window !== "undefined" && window.chrome;
const enterStyles = "background: #222; color: #bada55;font-size:1.5em";
const leaveStyles = "color: #ee5757; background: black";
const newTagStyle = "color:purple;font-size:large";
const positionStyle = "color:gray;text-decoration:underline";
const dirStyle = "font-size:x-large;font-weight:bolder";
export const opts = {
color: true
};
/**
* outputs short description of AST node
*/
export function cg(ast, opts = {}) {
var res;
if (ast == null) {
// console.error("<NULL>")
return "<NULL>";
}
try {
if (Array.isArray(ast)) {
ast =
ast.length > 0 && T.isExpression(ast[0])
? T.sequenceExpression(ast)
: T.blockStatement(ast);
}
res = generate(ast, opts, "").code;
} catch (e) {
if (ast.type != null) console.log("ERROR:", e.stack);
}
if (res != null) {
return res;
}
return "!!" + opts.compact
? JSON.stringify(ast, defaultReplacer)
: JSON.stringify(ast, defaultReplacer, 2);
}
function defaultReplacer(n, v) {
return n === "leadingComments" || n === "trailingComments" ? void 0 : v;
}
/**
* same as `cg` but using compact syntax
*/
export function ccg(ast) {
return cg(ast, { compact: true });
}
if (BROWSER_DEBUG) {
global.cg = cg;
global.ccg = ccg;
}
export function* verify(s) {
const stack = [];
for (const i of resetFieldInfo(s)) {
invariant(i.enter != null);
invariant(i.leave != null);
invariant(i.pos != null);
invariant(i.type != null);
invariant(i.value != null);
const ti = typeInfo(i);
const ctrlPos = symInfo(i.pos).kind === "ctrl";
if (i.enter && stack.length) {
const [f, keys] = stack[stack.length - 1];
if (f.type === Tag.Array) {
if (!ctrlPos) invariant(i.pos === Tag.push);
} else if (keys != null && !ctrlPos) {
let k;
while ((k = keys.shift()) != null) {
if (Tag[k] === i.pos) break;
}
invariant(k);
}
}
if (i.enter && i.value.fieldInfo != null) {
if (i.type === Tag.Array) {
invariant(i.value.fieldInfo.array);
}
}
if (i.enter && !i.leave) {
const keys = T.VISITOR_KEYS[symName(i.type)];
stack.push([i, keys && [...keys]]);
}
if (!i.enter && i.leave) {
const [f] = stack.pop();
invariant(f != null);
if (ti.kind !== "ctrl") invariant(f.type === i.type);
invariant(f.pos === i.pos);
invariant(f.value === i.value);
}
yield i;
}
invariant(stack.length === 0);
}
function pad(s) {
if (s.length % 2) s += " ";
const sps = Array(Math.max(20 - s.length / 2, 2)).join(" ");
return sps + s + sps;
}
const traceImpl = BROWSER_DEBUG ? browserTraceImpl : traceNodeImpl;
function* traceNodeImpl(prefix, s) {
let level = 0;
let x = 0;
const chalk = require("chalk");
for (const i of s) {
if (i.enter) level++;
const dir = chalk.bold(i.leave ? (i.enter ? "|" : "/") : "\\");
const clevel = s.level ? `/${s.level}` : "";
const descr = `${chalk.green(symName(i.pos))}:${
i.type.ctrl
? chalk.green(symName(i.type))
: chalk.green.bold(symName(i.type))
}[${level}${clevel}]`;
let n = "";
const { node } = i.value;
const comments = [];
let commentsTxt = "";
const t = [].concat(i.value.comments || [], i.value.tcomments || []);
if (t.length) {
if (comments.length)
commentsTxt = chalk.bold("[") + comments.join(" ") + chalk.bold("]");
}
if (node != null && i.type !== Tag.Array && symKind(i.type) !== "ctrl") {
n = ccg(node);
if (n.length > MAX_TRACE_CODE_LEN)
n = n.substr(0, MAX_TRACE_CODE_LEN) + "...";
n = chalk.yellow(n);
const { loc } = node;
if (loc != null) {
let { source: f, start: s, end: e } = loc;
n += chalk.blue(
` @${f || "?"}-${s.line}:${s.column}..${e.line}:${e.column}`
);
} else {
n += chalk.bold(" @new");
}
}
console.log(
prefix,
Array(level).join(" "),
dir,
`${descr}@${x}`,
commentsTxt,
n
);
yield i;
if (i.leave) {
level--;
}
x++;
}
console.log(prefix, "len:", x);
}
function* browserTraceImpl(prefix, s) {
let level = 0;
let x = 0;
let first = true;
for (const i of s) {
if (first) {
first = false;
let name = symName(i.type);
if (i.value.funcId) name += ":" + i.value.id;
console.log(
`%c${pad(prefix + " " + name.match(/[A-Z]/g).join(""))}%c`,
`background:#2B81AF;color:#fff;font-size:xx-large;
text-shadow:rgba(0, 0, 0, 0.5) 2px 2px 1px`,
""
);
}
const styles = [];
if (i.enter) level++;
const dir = i.enter && i.leave ? "\u21c4" : i.enter ? "\u2192" : "\u2190";
const clevel = s.level ? `/${s.level}` : "";
const tp =
i.pos === i.type
? symName(i.type)
: `${symName(i.pos)}:${symName(i.type)}`;
const descr = `${prefix}${tp}[${level}${clevel}]`;
const idtxt = i.value.id ? `-${i.value.id}` : "";
let ldescr;
if (i.pos === i.type) {
ldescr = `${prefix}%c${symName(i.type)}%c[${level}${clevel}]`;
styles.push(
symKind(i.type) === "ctrl"
? "color:navy;font-size:large"
: "color:steelblue",
""
);
} else {
ldescr = `${prefix}%c${symName(i.pos)}:%c${symName(
i.type
)}%c[${level}${clevel}]`;
styles.push(
symKind(i.pos) === "ctrl"
? "color:olive;font-size:large"
: "color:green"
);
styles.push(
symKind(i.type) === "ctrl"
? "color:navy;font-size:large"
: "color:steelblue",
""
);
}
if (i.enter && !i.leave && console.group != null) {
if ((x === 0 && i.value.collapsed !== false) || i.value.collapsed)
console.groupCollapsed(descr);
else console.group(descr);
}
let n = "";
const { node } = i.value;
const comments = [];
let commentsTxt = "";
const t = [].concat(i.value.comments || [], i.value.tcomments || []);
if (t.length) {
const pstyle = "color:green;font-size:large";
styles.push(pstyle);
for (const j of t) {
comments.push(`%c${j.txt}%c`);
const mod = !i.enter
? "font-size:small;font-style:italic"
: "font-weight:bolder;font-size:large";
const s = `${j.style || ""}${mod}`;
styles.push(s, "");
}
if (comments.length) {
commentsTxt = "%c[" + comments.join(" ") + "%c]%c";
styles.push(pstyle, "");
}
}
if (node != null && i.type !== Tag.Array && symKind(i.type) !== "ctrl") {
n = ccg(node);
if (n.length > MAX_TRACE_CODE_LEN)
n = n.substr(0, MAX_TRACE_CODE_LEN) + "...";
n = `%c ${n} %c`;
styles.push(i.enter ? enterStyles : leaveStyles, "");
const { loc } = node;
if (loc != null) {
let { source: f, start: s, end: e } = loc;
n += ` %c@${f || "?"}-${s.line}:${s.column}..${e.line}:${e.column}%c`;
styles.push(positionStyle, "");
} else {
n += " %c@new%c";
styles.push(newTagStyle, "");
}
}
console.log(
`%c${dir}%c ${ldescr}@${x}${idtxt}${commentsTxt} ${n}`,
dirStyle,
"",
...styles,
i.value
);
yield i;
if (i.leave) {
if (!i.enter && console.group != null) console.groupEnd();
level--;
}
x++;
}
console.log(`${prefix}: len: ${x}`);
}
function traceAllImpl(prefix, s) {
return [
...(prefix[0] === "!" ? traceImpl(prefix, s) : verify(traceImpl(prefix, s)))
];
}
function traceArgs(impl) {
return function traceImpl(prefix, s) {
if (prefix == null || prefix.substr == null) {
if (s == null) s = prefix;
prefix = "";
}
if (prefix.length) prefix += ":";
if (s == null || s[Symbol.iterator] == null) return s => impl(prefix, s);
return impl(prefix, s);
};
}
export function* cleanComments(s) {
for (const i of s) {
if (i.enter) {
i.value.comments = null;
i.value.tcomments = null;
if (i.value.node) {
i.value.node.leadingComments = null;
i.value.node.trailingComments = null;
}
}
yield i;
}
}
export function* setSymComments(s) {
for (const i of s) {
if (i.enter && i.value.sym && i.value.sym.id) {
const c = i.value.comments || (i.value.comments = []);
c.push({ txt: i.value.sym.id });
}
yield i;
}
}
export const lazy = traceArgs(traceImpl);
export const all = traceArgs(traceAllImpl);
export default lazy;
| {
"pile_set_name": "Github"
} |
BEGIN:VCALENDAR
PRODID:-//tzurl.org//NONSGML Olson 2011n//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Asia/Istanbul
TZURL:http://tzurl.org/zoneinfo-global/Asia/Istanbul
X-LIC-LOCATION:Asia/Istanbul
BEGIN:STANDARD
TZOFFSETFROM:+0300
TZOFFSETTO:+0200
TZNAME:EET
DTSTART:20071028T040000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
BEGIN:DAYLIGHT
TZOFFSETFROM:+0200
TZOFFSETTO:+0300
TZNAME:EEST
DTSTART:20120325T030000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+015552
TZOFFSETTO:+015656
TZNAME:IMT
DTSTART:18800101T000000
RDATE:18800101T000000
END:STANDARD
BEGIN:STANDARD
TZOFFSETFROM:+015656
TZOFFSETTO:+0200
TZNAME:EET
DTSTART:19101001T000000
RDATE:19101001T000000
END:STANDARD
BEGIN:DAYLIGHT
TZOFFSETFROM:+0200
TZOFFSETTO:+0300
TZNAME:EEST
DTSTART:19160501T000000
RDATE:19160501T000000
RDATE:19200328T000000
RDATE:19210403T000000
RDATE:19220326T000000
RDATE:19240513T000000
RDATE:19250501T000000
RDATE:19400630T000000
RDATE:19401201T000000
RDATE:19420401T000000
RDATE:19450402T000000
RDATE:19460601T000000
RDATE:19470420T000000
RDATE:19480418T000000
RDATE:19490410T000000
RDATE:19500419T000000
RDATE:19510422T000000
RDATE:19620715T000000
RDATE:19640515T000000
RDATE:19700503T000000
RDATE:19710502T000000
RDATE:19720507T000000
RDATE:19730603T010000
RDATE:19740331T020000
RDATE:19750330T000000
RDATE:19760601T000000
RDATE:19770403T000000
RDATE:19780402T000000
RDATE:19860330T020000
RDATE:19870329T020000
RDATE:19880327T020000
RDATE:19890326T020000
RDATE:19900325T020000
RDATE:19910331T010000
RDATE:19920329T010000
RDATE:19930328T010000
RDATE:19940327T010000
RDATE:19950326T010000
RDATE:19960331T010000
RDATE:19970330T010000
RDATE:19980329T010000
RDATE:19990328T010000
RDATE:20000326T010000
RDATE:20010325T010000
RDATE:20020331T010000
RDATE:20030330T010000
RDATE:20040328T010000
RDATE:20050327T010000
RDATE:20060326T010000
RDATE:20070325T030000
RDATE:20080330T030000
RDATE:20090329T030000
RDATE:20100328T030000
RDATE:20110328T030000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0300
TZOFFSETTO:+0200
TZNAME:EET
DTSTART:19161001T000000
RDATE:19161001T000000
RDATE:19201025T000000
RDATE:19211003T000000
RDATE:19221008T000000
RDATE:19241001T000000
RDATE:19251001T000000
RDATE:19401005T000000
RDATE:19410921T000000
RDATE:19421101T000000
RDATE:19451008T000000
RDATE:19461001T000000
RDATE:19471005T000000
RDATE:19481003T000000
RDATE:19491002T000000
RDATE:19501008T000000
RDATE:19511008T000000
RDATE:19621008T000000
RDATE:19641001T000000
RDATE:19701004T000000
RDATE:19711003T000000
RDATE:19721008T000000
RDATE:19731104T030000
RDATE:19741103T050000
RDATE:19751026T000000
RDATE:19761031T000000
RDATE:19771016T000000
RDATE:19850928T000000
RDATE:19860928T030000
RDATE:19870927T030000
RDATE:19880925T030000
RDATE:19890924T030000
RDATE:19900930T030000
RDATE:19910929T020000
RDATE:19920927T020000
RDATE:19930926T020000
RDATE:19940925T020000
RDATE:19950924T020000
RDATE:19961027T020000
RDATE:19971026T020000
RDATE:19981025T020000
RDATE:19991031T020000
RDATE:20001029T020000
RDATE:20011028T020000
RDATE:20021027T020000
RDATE:20031026T020000
RDATE:20041031T020000
RDATE:20051030T020000
RDATE:20061029T020000
END:STANDARD
BEGIN:DAYLIGHT
TZOFFSETFROM:+0300
TZOFFSETTO:+0400
TZNAME:TRST
DTSTART:19781015T000000
RDATE:19781015T000000
RDATE:19800406T030000
RDATE:19810329T030000
RDATE:19820328T030000
RDATE:19830731T000000
END:DAYLIGHT
BEGIN:DAYLIGHT
TZOFFSETFROM:+0400
TZOFFSETTO:+0400
TZNAME:TRST
DTSTART:19790401T030000
RDATE:19790401T030000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0400
TZOFFSETTO:+0300
TZNAME:TRT
DTSTART:19791015T000000
RDATE:19791015T000000
RDATE:19801013T000000
RDATE:19811012T000000
RDATE:19821011T000000
RDATE:19831002T000000
END:STANDARD
BEGIN:DAYLIGHT
TZOFFSETFROM:+0300
TZOFFSETTO:+0300
TZNAME:EEST
DTSTART:19850420T000000
RDATE:19850420T000000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0200
TZNAME:EET
DTSTART:20070101T000000
RDATE:20070101T000000
RDATE:20110327T030000
END:STANDARD
END:VTIMEZONE
END:VCALENDAR
| {
"pile_set_name": "Github"
} |
#!/usr/bin/env python
#
# Wrapper script for Java Conda packages that ensures that the java runtime
# is invoked with the right options. Adapted from the bash script (http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in/246128#246128).
#
# Program Parameters
#
import os
import requests
import shutil
import subprocess
import sys
import time
import zipfile
from os import access
from os import getenv
from os import X_OK
from pathlib import Path
from tqdm import tqdm
jar_file = 'MPA-3.4.jar'
data_dump_url = "https://zenodo.org/record/3702957/files/mpa_ressources_incl_swissprot_03-2020.zip"
default_jvm_mem_opts = ['-Xms2g', '-Xmx4g']
# !!! End of parameter section. No user-serviceable code below this line !!!
def printerr(*args, **kwargs):
print(*args, **kwargs, file=sys.stderr)
def real_dirname(path):
"""Return the symlink-resolved, canonicalized directory-portion of path."""
return os.path.dirname(os.path.realpath(path))
def java_executable():
"""Return the executable name of the Java interpreter."""
java_home = getenv('JAVA_HOME')
java_bin = os.path.join('bin', 'java')
if java_home and access(os.path.join(java_home, java_bin), X_OK):
return os.path.join(java_home, java_bin)
else:
return 'java'
def jvm_opts(argv):
"""Construct list of Java arguments based on our argument list.
The argument list passed in argv must not include the script name.
The return value is a 3-tuple lists of strings of the form:
(memory_options, prop_options, passthrough_options)
"""
mem_opts = []
prop_opts = []
pass_args = []
for arg in argv:
if arg.startswith('-D'):
prop_opts.append(arg)
elif arg.startswith('-XX'):
prop_opts.append(arg)
elif arg.startswith('-Xm'):
mem_opts.append(arg)
else:
pass_args.append(arg)
# In the original shell script the test coded below read:
# if [ "$jvm_mem_opts" == "" ] && [ -z ${_JAVA_OPTIONS+x} ]
# To reproduce the behaviour of the above shell code fragment
# it is important to explictly check for equality with None
# in the second condition, so a null envar value counts as True!
if mem_opts == [] and getenv('_JAVA_OPTIONS') is None:
mem_opts = default_jvm_mem_opts
return (mem_opts, prop_opts, pass_args)
def get_cfg_file(jar_dir):
config_file_basename = "config_LINUX.properties"
config_files = [
os.path.join(jar_dir, config_file_basename),
os.path.join(getenv("HOME"), ".config", "mpa-server", config_file_basename)
]
for f in config_files:
if os.path.isfile(f):
return f
raise FileNotFoundError("Error: Config file not found in any of the following locations:\n"
"\t" + "\n\t".join(config_files))
def read_config(config_file):
cfg = {}
with open(config_file, "r") as f:
for l in f.readlines():
l_stripped = l.strip()
if l_stripped.startswith("#"):
continue
elif l_stripped == "":
continue
else:
split_vals = l_stripped.split("=")
if len(split_vals) != 2:
printerr(f"Got unexpected line in config file '{config_file}'")
printerr(l)
sys.exit(1)
cfg[split_vals[0]] = split_vals[1]
return cfg
def set_cfg_values(dict_of_vals_to_change, config_file):
out_lines = []
with open(config_file, "r") as f:
for l in f.readlines():
l_stripped = l.strip()
if l_stripped.startswith("#"):
pass
elif l_stripped == "":
pass
else:
split_vals = l_stripped.split("=")
if len(split_vals) != 2:
printerr(f"Got unexpected line in config file '{config_file}'")
printerr(l)
sys.exit(1)
else:
key, value = split_vals
if key in dict_of_vals_to_change:
l = f"{key}={dict_of_vals_to_change[key]}\n"
del dict_of_vals_to_change[key]
out_lines.append(l)
if dict_of_vals_to_change:
if not l.endswith("\n"):
out_lines.append("\n")
out_lines.extend([f"{k}={v}\n" for k, v in dict_of_vals_to_change.items()])
with open(config_file, "w") as f:
f.writelines(out_lines)
class SqlServerWrapper:
def __init__(self, datadir):
self.datadir = datadir
def __enter__(self):
args = ["mysqld", "--datadir", self.datadir]
printerr("Starting MySQL-Server: '", " ".join(args), "'", sep='')
self.daemon = subprocess.Popen(args)
def __exit__(self, type, value, traceback):
# send term signal to mysqld
printerr("Shutting down MySQL-Server... ", end='')
self.daemon.terminate()
self.daemon.communicate()
printerr("Done!")
def download_file(url):
file_name = url.split('/')[-1]
file_name_part = file_name + ".prt"
with requests.get(url, stream=True) as response:
response.raise_for_status()
file_size_mbyte = int(float(response.headers['Content-Length']) / 1024 / 1024)
printerr(f"Downloading: {file_name}, size: {file_size_mbyte} MB")
with open(file_name_part, 'wb') as handle:
with tqdm(total=file_size_mbyte, position=0, leave=True, unit="MB") as pbar:
for chunk in response.iter_content(chunk_size=1024 * 1024): # 1 MB chunk size
if chunk: # filter out keep-alive new chunks
handle.write(chunk)
chunk_size_mb = round(len(chunk) / 1024 / 1024, 2)
pbar.update(chunk_size_mb)
os.rename(file_name_part, file_name)
return os.path.abspath(file_name)
def extract_and_overwrite(zip_file, target_dir):
printerr("Extracting to:", target_dir)
with zipfile.ZipFile(zip_file, "r") as zip_handle:
zip_handle.extractall(path=target_dir)
def load_preprocessed_data(cfg, url):
fasta_subdir = cfg["path.fasta"][1:] if cfg["path.fasta"].startswith("/") else cfg["path.fasta"]
fasta_dir = os.path.join(cfg["base_path"], fasta_subdir)
zip_file = download_file(url)
extract_and_overwrite(zip_file=zip_file, target_dir=fasta_dir)
os.remove(zip_file)
sql_dump = os.path.join(fasta_dir, "metaprot_swissprot_mar2020.sql")
return sql_dump
def prompt_user_for_data_download():
while True:
user_input = input(
f"Download preprocessed FASTA Database (size: ~1 GB)?\n"
f"\tfile: {data_dump_url.split('/')[-1]}\n"
f"\t[Y/n] ").lower()
if user_input not in ["", "y", "n"]:
print("Valid options are: y, n")
else:
if user_input in ["", "y"]:
wants_db = True
else:
wants_db = False
break
return wants_db
def get_abs_sql_data_path(cfg):
mpa_data_base_path = cfg["base_path"]
sql_data_rel_path = cfg["sqlDataDir"]
sql_data_path = os.path.join(mpa_data_base_path, sql_data_rel_path)
return sql_data_path
def create_empty_dirs(cfg):
dir_cfg_keys = ["path.transfer",
"path.fasta",
"path.xtandem.output",
"path.omssa.output"]
data_base_path = get_data_base_path(cfg)
dirs = []
for k in dir_cfg_keys:
dir_string = cfg[k]
subdir = dir_string[1:] if dir_string.startswith("/") else dir_string
abs_dir = os.path.join(data_base_path, subdir)
dirs.append(abs_dir)
if k == "path.fasta":
dirs.append(os.path.join(abs_dir, "Pep"))
if not all(map(os.path.isdir, dirs)):
printerr("Creating empty directories:")
for d in dirs:
if not os.path.isdir(d):
printerr(f"\t{d}")
Path(d).mkdir(parents=True)
def init_sql_db(cfg, jar_dir):
sql_data_path = get_abs_sql_data_path(cfg)
# initialize sql db
# init sql data dir
subprocess.call(["mysqld", "--initialize-insecure", "--datadir", sql_data_path])
wants_db = prompt_user_for_data_download()
if wants_db:
sql_dump = load_preprocessed_data(cfg, url=data_dump_url)
delete_dump = True
else:
sql_dump = os.path.join(jar_dir, "init/mysql_minimal_incl_taxonomy.sql")
delete_dump = False
with SqlServerWrapper(sql_data_path):
time.sleep(3.)
cmd = "mysql -u root --execute='create database mpa_server;'"
printerr(f"Creating database: {cmd}")
subprocess.call(cmd, shell=True)
cmd = f"mysql -u root --database='mpa_server' < {sql_dump}"
printerr("loading sql dump:", sql_dump)
printerr(f"MySQL command: {cmd}")
exit_code = subprocess.call(cmd, shell=True)
if not exit_code == 0:
printerr("Loading of sql dump was not successful, exiting")
sys.exit(1)
if delete_dump:
os.remove(sql_dump)
def get_data_base_path(cfg):
return cfg["base_path"]
def initialize_mpa(jar_dir):
data_dir = prompt_user_for_data_dir()
try:
Path(data_dir).mkdir(parents=True)
except FileExistsError:
printerr(f"Directory already exists: {data_dir}")
printerr("Aborting")
sys.exit(1)
except PermissionError:
printerr(f"PermissionError: Cannot create data directory {data_dir}")
printerr("Aborting")
sys.exit(1)
config_file = write_config_file(jar_dir, data_dir)
cfg = read_config(config_file)
for d in ["data", "software"]:
src = os.path.join(jar_dir, d)
tgt = os.path.join(data_dir, d)
shutil.copytree(src, tgt, symlinks=False, ignore=None)
create_empty_dirs(cfg)
init_sql_db(cfg, jar_dir)
return cfg
def prompt_user_for_data_dir():
default_dir = os.path.join(getenv("HOME"), "mpa-server")
try:
user_input = input(
f"""The mpa-server data directory will be created at this location:
{default_dir}
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specifiy a different, absolute location below
absolute path: """)
except KeyboardInterrupt:
printerr("Exiting")
sys.exit(1)
if user_input == "":
absolute_data_dir = os.path.abspath(default_dir)
elif os.path.isabs(user_input):
absolute_data_dir = user_input
else:
printerr(f"Error: not an absolute path: '{user_input}'")
sys.exit(1)
return absolute_data_dir
def write_config_file(jar_dir, data_dir):
config_template = os.path.join(jar_dir, "config_LINUX.properties.template")
config_dir = os.path.join(getenv("HOME"), ".config", "mpa-server")
config_file = os.path.join(config_dir, "config_LINUX.properties")
if not os.path.isdir(config_dir):
Path(config_dir).mkdir(parents=True)
printerr(f"Writing config file: {config_file}")
shutil.copyfile(config_template, config_file)
cfg = read_config(config_file)
cfg_data_path = cfg["base_path"]
if data_dir != cfg_data_path:
set_cfg_values({"base_path": data_dir}, config_file)
return config_file
def main():
java = java_executable()
"""
mpa-server updates files relative to the path of the jar file.
"""
(mem_opts, prop_opts, pass_args) = jvm_opts(sys.argv[1:])
jar_dir = real_dirname(sys.argv[0])
if pass_args != [] and pass_args[0].startswith('eu'):
jar_arg = '-cp'
else:
jar_arg = '-jar'
jar_path = os.path.join(jar_dir, jar_file)
java_args = [java] + mem_opts + prop_opts + [jar_arg] + [jar_path] + pass_args
try:
config_file = get_cfg_file(jar_dir)
except FileNotFoundError:
cfg = initialize_mpa(jar_dir)
else:
printerr(f"Using mpa-server config file: {config_file}")
cfg = read_config(config_file)
sql_data_abs_path = get_abs_sql_data_path(cfg)
with SqlServerWrapper(sql_data_abs_path):
java_exit_code = subprocess.call(java_args, cwd=jar_dir)
sys.exit(java_exit_code)
if __name__ == '__main__':
main()
| {
"pile_set_name": "Github"
} |
package com.zgw.spark
import org.apache.spark.{SparkConf, SparkContext}
/**
* Created by Zhaogw&Lss on 2019/10/15.
*/
object Value {
def main(args: Array[String]): Unit = {
val config = new SparkConf().setMaster("local[*]").setAppName("Spark_RDD").set("spark.testing.memory", "2147480000")
//创建spark上下文对象
val sc = new SparkContext(config)
//union操作,并集
/* val rdd1 = sc.parallelize(1 to 5)
val rdd2 = sc.parallelize(5 to 10)
val rdd3 = rdd1.union(rdd2)
rdd3.collect().foreach(println)*/
//求差集
/* val rdd4 = sc.parallelize(3 to 8)
val rdd5 = sc.parallelize(1 to 5)
var subrdd = rdd4.subtract(rdd5)
subrdd.collect().foreach(println)*/
//计算两个RDD的交集
/* val rdd6 = sc.parallelize(1 to 7)
val rdd7 = sc.parallelize(5 to 10)
val rdd8 = rdd6.intersection(rdd7)
rdd8.collect().foreach(println)*/
//计算两个RDD的笛卡尔积并打印
/* val rdd9 = sc.parallelize(1 to 3)
val rdd10 = sc.parallelize(2 to 5)
val rdd11 = rdd9.cartesian(rdd10)
rdd11.collect().foreach(println)*/
//将两个RDD组合成Key/Value形式的RDD,这里默认两个RDD的partition数量以及元素数量都相同,否则会抛出异常。
val rdd12 = sc.parallelize(Array(1,2,3),3)
val rdd13 = sc.parallelize(Array("a","b","c"),3)
val collectrdd12: Array[(Int, String)] = rdd12.zip(rdd13).collect()
val collectrdd13: Array[(String, Int)] = rdd13.zip(rdd12).collect()
collectrdd12.foreach(println)
println("**********")
collectrdd13.foreach(println)
}
}
| {
"pile_set_name": "Github"
} |
/*
Yara Rule Set
Author: Florian Roth
Date: 2016-03-26
Identifier: Windows Shells
*/
/* Rule Set ----------------------------------------------------------------- */
rule WindowsShell_s3 {
meta:
description = "Detects simple Windows shell - file s3.exe"
author = "Florian Roth"
reference = "https://github.com/odzhan/shells/"
date = "2016-03-26"
hash = "344575a58db288c9b5dacc654abc36d38db2e645acff05e894ff51183c61357d"
strings:
$s1 = "cmd - execute cmd.exe" fullword ascii
$s2 = "\\\\.\\pipe\\%08X" fullword ascii
$s3 = "get <remote> <local> - download file" fullword ascii
$s4 = "[ simple remote shell for windows v3" fullword ascii
$s5 = "REMOTE: CreateFile(\"%s\")" fullword ascii
$s6 = "put <local> <remote> - upload file" fullword ascii
$s7 = "term - terminate remote client" fullword ascii
$s8 = "[ downloading \"%s\" to \"%s\"" fullword ascii
$s9 = "-l Listen for incoming connections" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 150KB and 2 of them ) or ( 5 of them )
}
rule WindosShell_s1 {
meta:
description = "Detects simple Windows shell - file s1.exe"
author = "Florian Roth"
reference = "https://github.com/odzhan/shells/"
date = "2016-03-26"
hash = "4a397497cfaf91e05a9b9d6fa6e335243cca3f175d5d81296b96c13c624818bd"
strings:
$s1 = "[ executing cmd.exe" fullword ascii
$s2 = "[ simple remote shell for windows v1" fullword ascii
$s3 = "-p <number> Port number to use (default is 443)" fullword ascii
$s4 = "usage: s1 <address> [options]" fullword ascii
$s5 = "[ waiting for connections on %s" fullword ascii
$s6 = "-l Listen for incoming connections" fullword ascii
$s7 = "[ connection from %s" fullword ascii
$s8 = "[ %c%c requires parameter" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 150KB and 2 of them ) or ( 5 of them )
}
rule WindowsShell_s4 {
meta:
description = "Detects simple Windows shell - file s4.exe"
author = "Florian Roth"
reference = "https://github.com/odzhan/shells/"
date = "2016-03-26"
hash = "f00a1af494067b275407c449b11dfcf5cb9b59a6fac685ebd3f0eb193337e1d6"
strings:
$s1 = "cmd - execute cmd.exe" fullword ascii
$s2 = "\\\\.\\pipe\\%08X" fullword ascii
$s3 = "get <remote> <local> - download file" fullword ascii
$s4 = "[ simple remote shell for windows v4" fullword ascii
$s5 = "REMOTE: CreateFile(\"%s\")" fullword ascii
$s6 = "[ downloading \"%s\" to \"%s\"" fullword ascii
$s7 = "[ uploading \"%s\" to \"%s\"" fullword ascii
$s8 = "-l Listen for incoming connections" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 175KB and 2 of them ) or ( 5 of them )
}
/* Super Rules ------------------------------------------------------------- */
rule WindowsShell_Gen {
meta:
description = "Detects simple Windows shell - from files keygen.exe, s1.exe, s2.exe, s3.exe, s4.exe"
author = "Florian Roth"
reference = "https://github.com/odzhan/shells/"
date = "2016-03-26"
super_rule = 1
hash1 = "a7c3d85eabac01e7a7ec914477ea9f17e3020b3b2f8584a46a98eb6a2a7611c5"
hash2 = "4a397497cfaf91e05a9b9d6fa6e335243cca3f175d5d81296b96c13c624818bd"
hash3 = "df0693caae2e5914e63e9ee1a14c1e9506f13060faed67db5797c9e61f3907f0"
hash4 = "344575a58db288c9b5dacc654abc36d38db2e645acff05e894ff51183c61357d"
hash5 = "f00a1af494067b275407c449b11dfcf5cb9b59a6fac685ebd3f0eb193337e1d6"
strings:
$s0 = "[ %c%c requires parameter" fullword ascii
$s1 = "[ %s : %i" fullword ascii
$s2 = "[ %s : %s" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 175KB and 2 of them ) or ( all of them )
}
rule WindowsShell_Gen2 {
meta:
description = "Detects simple Windows shell - from files s3.exe, s4.exe"
author = "Florian Roth"
reference = "https://github.com/odzhan/shells/"
date = "2016-03-26"
super_rule = 1
hash1 = "344575a58db288c9b5dacc654abc36d38db2e645acff05e894ff51183c61357d"
hash2 = "f00a1af494067b275407c449b11dfcf5cb9b59a6fac685ebd3f0eb193337e1d6"
strings:
$s1 = "cmd - execute cmd.exe" fullword ascii
$s2 = "get <remote> <local> - download file" fullword ascii
$s3 = "REMOTE: CreateFile(\"%s\")" fullword ascii
$s4 = "put <local> <remote> - upload file" fullword ascii
$s5 = "term - terminate remote client" fullword ascii
$s6 = "[ uploading \"%s\" to \"%s\"" fullword ascii
$s7 = "[ error : received %i bytes" fullword ascii
condition:
( uint16(0) == 0x5a4d and filesize < 175KB and 2 of them ) or ( 5 of them )
}
| {
"pile_set_name": "Github"
} |
/*
* Copyright Beijing 58 Information Technology Co.,Ltd.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.bj58.spat.gaea.server.bootstrap.serverframe;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import com.bj58.spat.gaea.server.bootstrap.FrameMain;
/**
* CheckNode
*
* @author Service Platform Architecture Team ([email protected])
*/
public class MenuBar {
FrameMain framemain;
/**Build MenuBar method*/
public JMenuBar bulidMenuBar(FrameMain framemain) {
this.framemain = framemain;
return createMenuBar();
}
/**create MenuBar*/
private JMenuBar createMenuBar(){
JMenuBar mb = new JMenuBar();
/**file*/
JMenu m_file = new JMenu("File");
JMenuItem mi_exit = new JMenuItem("exit");
mi_exit.setActionCommand("exit");
/**window*/
JMenu m_advanced = new JMenu("Winodw");
JMenuItem mi_deploy = new JMenuItem("preferences");
mi_deploy.setActionCommand("deploy");
/**help*/
JMenu m_help = new JMenu("Help");
JMenuItem mi_help = new JMenuItem("help");
mi_help.setActionCommand("help");
JMenuItem mi_about = new JMenuItem("about");
mi_about.setActionCommand("about");
/**add menu listener*/
ActionListener ac_listener = new ActionListener() {
public void actionPerformed(ActionEvent e) {
processMenuEvent(e);
}
};
/**增加按钮监听*/
mi_exit.addActionListener(ac_listener);
mi_deploy.addActionListener(ac_listener);
mi_about.addActionListener(ac_listener);
mi_help.addActionListener(ac_listener);
/**构建菜单*/
m_file.add(mi_exit);
m_advanced.add(mi_deploy);
m_help.add(mi_help);
m_help.add(mi_about);
mb.add(m_file);
mb.add(m_advanced);
mb.add(m_help);
return mb;
}
/**菜单事件的方法*/
private void processMenuEvent(ActionEvent e) {
String command = e.getActionCommand();
if ("deploy".equals(command)) {
String fileUrl = JOptionPane.showInputDialog("Please input file path:");
if(fileUrl==null){
showMessage(null, "Please input file path", "Message ",JOptionPane.INFORMATION_MESSAGE);
return;
}
if("".equals(fileUrl)){
showMessage(null, "Please input the correct file path", "Message ",JOptionPane.ERROR_MESSAGE);
return;
}
AssistUtils.setPath(fileUrl);/**设置路径为全局变量*/
/**生成主窗体*/
framemain.createGUI();
}
if ("exit".equals(command)) {
System.exit(0);
}
if ("about".equals(command)) {
showMessage(null, " author: Service Platform Architecture Team\r\n version: 1.0\r\n mail: [email protected]", "About...", JOptionPane.PLAIN_MESSAGE);
return;
}
}
/**ShowMessage*/
private static void showMessage(Component component,Object messgae,String title,int messageType){
JOptionPane.showMessageDialog(component, messgae,title, messageType);
}
}
| {
"pile_set_name": "Github"
} |
<?php
class pluginTinymce extends Plugin {
private $loadOnController = array(
'new-content',
'edit-content'
);
public function init()
{
$this->dbFields = array(
'toolbar1'=>'formatselect bold italic forecolor backcolor removeformat | bullist numlist table | blockquote alignleft aligncenter alignright | link unlink pagebreak image code',
'toolbar2'=>'',
'plugins'=>'code autolink image link pagebreak advlist lists textpattern table'
);
}
public function form()
{
global $L;
$html = '<div>';
$html .= '<label>'.$L->get('Toolbar top').'</label>';
$html .= '<input name="toolbar1" id="jstoolbar1" type="text" value="'.$this->getValue('toolbar1').'">';
$html .= '</div>';
$html .= '<div>';
$html .= '<label>'.$L->get('Toolbar bottom').'</label>';
$html .= '<input name="toolbar2" id="jstoolbar2" type="text" value="'.$this->getValue('toolbar2').'">';
$html .= '</div>';
$html .= '<div>';
$html .= '<label>'.$L->get('Plugins').'</label>';
$html .= '<input name="plugins" id="jsplugins" type="text" value="'.$this->getValue('plugins').'">';
$html .= '</div>';
return $html;
}
public function adminHead()
{
// Load the plugin only in the controllers setted in $this->loadOnController
if (!in_array($GLOBALS['ADMIN_CONTROLLER'], $this->loadOnController)) {
return false;
}
$html = '<link rel="stylesheet" type="text/css" href="'.$this->htmlPath().'css/tinymce_toolbar.css">'.PHP_EOL;
$html .= '<script src="'.$this->htmlPath().'tinymce/tinymce.min.js?version='.$this->version().'"></script>';
return $html;
}
public function adminBodyEnd()
{
global $L;
// Load the plugin only in the controllers setted in $this->loadOnController
if (!in_array($GLOBALS['ADMIN_CONTROLLER'], $this->loadOnController)) {
return false;
}
$toolbar1 = $this->getValue('toolbar1');
$toolbar2 = $this->getValue('toolbar2');
$content_css = $this->htmlPath().'css/tinymce_content.css';
$plugins = $this->getValue('plugins');
$version = $this->version();
$lang = 'en';
if (file_exists($this->phpPath().'tinymce'.DS.'langs'.DS.$L->currentLanguage().'.js')) {
$lang = $L->currentLanguage();
} elseif (file_exists($this->phpPath().'tinymce'.DS.'langs'.DS.$L->currentLanguageShortVersion().'.js')) {
$lang = $L->currentLanguageShortVersion();
}
if (IMAGE_RELATIVE_TO_ABSOLUTE) {
$document_base_url = 'document_base_url: "'.DOMAIN_UPLOADS.'",';
} else {
$document_base_url = '';
}
$html = <<<EOF
<script>
// Insert an image in the editor at the cursor position
// Function required for Bludit
function editorInsertMedia(filename) {
tinymce.activeEditor.insertContent("<img src=\""+filename+"\" alt=\"\">");
}
// Returns the content of the editor
// Function required for Bludit
function editorGetContent() {
return tinymce.get('jseditor').getContent();
}
tinymce.init({
selector: "#jseditor",
auto_focus: "jseditor",
element_format : "html",
entity_encoding : "raw",
skin: "oxide",
schema: "html5",
statusbar: false,
menubar:false,
branding: false,
browser_spellcheck: true,
pagebreak_separator: PAGE_BREAK,
paste_as_text: true,
remove_script_host: false,
convert_urls: true,
relative_urls: false,
valid_elements: "*[*]",
cache_suffix: "?version=$version",
$document_base_url
plugins: ["$plugins"],
toolbar1: "$toolbar1",
toolbar2: "$toolbar2",
language: "$lang",
content_css: "$content_css"
});
</script>
EOF;
return $html;
}
} | {
"pile_set_name": "Github"
} |
---
title: Incompatible Changes in IntelliJ Platform and Plugins API 2017.*
---
<!-- Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
<!--
See the note on how to document new problems on the main page reference_guide/api_changes_list.md
-->
Please see [Incompatible API Changes](/reference_guide/api_changes_list.md) on how to verify compatibility.
> **NOTE** Changes from API marked with `org.jetbrains.annotations.ApiStatus.@Experimental`/`ScheduledForRemoval` are not listed here, as incompatible changes are to be expected.
## 2017.3
### Changes in IntelliJ Platform 2017.3
`com.intellij.internal.statistic.AbstractApplicationUsagesCollector` class removed
: This class isn't supposed to be used in regular plugins. Override `com.intellij.internal.statistic.AbstractProjectsUsagesCollector` instead if you're developing an IDE with its own statistics services.
`com.intellij.internal.statistic.UsagesCollector.doPersistProjectUsages` method removed
: This method isn't supposed to be used in regular plugins. There is no need to call this method anymore.
`org.apache.sanselan` package removed
: Use classes from `org.apache.commons.imaging` instead.
`com.intellij.psi.MultiplePsiFilesPerDocumentFileViewProvider.getLanguages` abstract method added
: An implementation of this class is supposed to have several languages, so you need to explicitly implement the method and return them all.
`org.jetbrains.kotlin.idea.configuration.KotlinProjectConfigurator.changeCoroutineConfiguration` abstract method added
: You need to implement this method and add the logic for updating the configuration in your build system.
`org.jetbrains.kotlin.idea.configuration.KotlinProjectConfigurator.updateLanguageVersion` abstract method added
: You need to implement this method and add the logic for updating the configuration in your build system.
`org.jetbrains.kotlin.idea.configuration.KotlinProjectConfigurator.addLibraryDependency` abstract method added
: You need to implement this method and add the logic for updating the configuration in your build system.
### Changes in DataGrip and Database Tools Plugin 2017.3
`com.intellij.database.dataSource.DataSourceManager` class removed
: Use `com.intellij.database.psi.DbPsiFacade` instead.
`com.intellij.database.dataSource.DataSourceManagerEx` class removed
: Use `com.intellij.database.psi.DbPsiFacade` instead.
`com.intellij.database.dataSource.DataSource` class removed
: Use `com.intellij.database.psi.DbDataSource` and `com.intellij.database.model.DatabaseSystem` instead.
`com.intellij.database.psi.DbDataSource.getModel` method return type changed from `DbElement`-based model to `DasObject`-based model
: Use `com.intellij.database.psi.DbPsiFacade.findElement` to get the corresponding `com.intellij.database.psi.DbElement` wrapper when needed.
`com.intellij.database.view.DatabaseView.getTreeBuilder` method removed
: Use `LangDataKeys.PSI_ELEMENT_ARRAY.get(event)` to get Database view selection.
### Changes in PhpStorm and PHP Plugin 2017.3
`com.jetbrains.php.lang.psi.elements.Function.getReturnType()` method return type changed from `PsiElement` to `PhpReturnType`
: Before method had been returning a `com.jetbrains.php.lang.psi.elements.ClassReference`. Now method returns `com.jetbrains.php.lang.psi.elements.PhpReturnType`. Method `ReturnType.getClassReference()` can be used if you need just a `ClassReference`. If you need to get the `PhpType`, use `com.jetbrains.php.lang.psi.elements.Function.getReturnType.getType()` method instead.
| {
"pile_set_name": "Github"
} |
#include "bridge-include.h"
| {
"pile_set_name": "Github"
} |
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": {
"0": "𐐈𐐣",
"1": "𐐑𐐣"
},
"DAY": {
"0": "𐐝𐐲𐑌𐐼𐐩",
"1": "𐐣𐐲𐑌𐐼𐐩",
"2": "𐐓𐐭𐑆𐐼𐐩",
"3": "𐐎𐐯𐑌𐑆𐐼𐐩",
"4": "𐐛𐐲𐑉𐑆𐐼𐐩",
"5": "𐐙𐑉𐐴𐐼𐐩",
"6": "𐐝𐐰𐐻𐐲𐑉𐐼𐐩"
},
"MONTH": {
"0": "𐐖𐐰𐑌𐐷𐐭𐐯𐑉𐐨",
"1": "𐐙𐐯𐐺𐑉𐐭𐐯𐑉𐐨",
"2": "𐐣𐐪𐑉𐐽",
"3": "𐐁𐐹𐑉𐐮𐑊",
"4": "𐐣𐐩",
"5": "𐐖𐐭𐑌",
"6": "𐐖𐐭𐑊𐐴",
"7": "𐐂𐑀𐐲𐑅𐐻",
"8": "𐐝𐐯𐐹𐐻𐐯𐑋𐐺𐐲𐑉",
"9": "𐐉𐐿𐐻𐐬𐐺𐐲𐑉",
"10": "𐐤𐐬𐑂𐐯𐑋𐐺𐐲𐑉",
"11": "𐐔𐐨𐑅𐐯𐑋𐐺𐐲𐑉"
},
"SHORTDAY": {
"0": "𐐝𐐲𐑌",
"1": "𐐣𐐲𐑌",
"2": "𐐓𐐭𐑆",
"3": "𐐎𐐯𐑌",
"4": "𐐛𐐲𐑉",
"5": "𐐙𐑉𐐴",
"6": "𐐝𐐰𐐻"
},
"SHORTMONTH": {
"0": "𐐖𐐰𐑌",
"1": "𐐙𐐯𐐺",
"2": "𐐣𐐪𐑉",
"3": "𐐁𐐹𐑉",
"4": "𐐣𐐩",
"5": "𐐖𐐭𐑌",
"6": "𐐖𐐭𐑊",
"7": "𐐂𐑀",
"8": "𐐝𐐯𐐹",
"9": "𐐉𐐿𐐻",
"10": "𐐤𐐬𐑂",
"11": "𐐔𐐨𐑅"
},
"fullDate": "EEEE, MMMM d, y",
"longDate": "MMMM d, y",
"medium": "MMM d, y h:mm:ss a",
"mediumDate": "MMM d, y",
"mediumTime": "h:mm:ss a",
"short": "M/d/yy h:mm a",
"shortDate": "M/d/yy",
"shortTime": "h:mm a"
},
"NUMBER_FORMATS": {
"CURRENCY_SYM": "$",
"DECIMAL_SEP": ".",
"GROUP_SEP": ",",
"PATTERNS": {
"0": {
"gSize": 3,
"lgSize": 3,
"macFrac": 0,
"maxFrac": 3,
"minFrac": 0,
"minInt": 1,
"negPre": "-",
"negSuf": "",
"posPre": "",
"posSuf": ""
},
"1": {
"gSize": 3,
"lgSize": 3,
"macFrac": 0,
"maxFrac": 2,
"minFrac": 2,
"minInt": 1,
"negPre": "(\u00A4",
"negSuf": ")",
"posPre": "\u00A4",
"posSuf": ""
}
}
},
"id": "en-dsrt-us",
"pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;}
});
}]); | {
"pile_set_name": "Github"
} |
/*
* This file is part of gtkD.
*
* gtkD is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version, with
* some exceptions, please read the COPYING file.
*
* gtkD is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with gtkD; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
*/
// generated automatically - do not change
// find conversion definition on APILookup.txt
// implement new conversion functionalities on the wrap.utils pakage
module pango.PgFont;
private import gobject.ObjectG;
public import gtkc.pangotypes;
private import pango.PgCoverage;
private import pango.PgEngineShape;
private import pango.PgFontDescription;
private import pango.PgFontMap;
private import pango.PgFontMetrics;
private import pango.PgLanguage;
private import pango.c.functions;
public import pango.c.types;
/**
* The #PangoFont structure is used to represent
* a font in a rendering-system-independent matter.
* To create an implementation of a #PangoFont,
* the rendering-system specific code should allocate
* a larger structure that contains a nested
* #PangoFont, fill in the <structfield>klass</structfield> member of
* the nested #PangoFont with a pointer to
* a appropriate #PangoFontClass, then call
* pango_font_init() on the structure.
*
* The #PangoFont structure contains one member
* which the implementation fills in.
*/
public class PgFont : ObjectG
{
/** the main Gtk struct */
protected PangoFont* pangoFont;
/** Get the main Gtk struct */
public PangoFont* getPgFontStruct(bool transferOwnership = false)
{
if (transferOwnership)
ownedRef = false;
return pangoFont;
}
/** the main Gtk struct as a void* */
protected override void* getStruct()
{
return cast(void*)pangoFont;
}
/**
* Sets our main struct and passes it to the parent class.
*/
public this (PangoFont* pangoFont, bool ownedRef = false)
{
this.pangoFont = pangoFont;
super(cast(GObject*)pangoFont, ownedRef);
}
/** */
public static GType getType()
{
return pango_font_get_type();
}
/**
* Frees an array of font descriptions.
*
* Params:
* descs = a pointer
* to an array of #PangoFontDescription, may be %NULL
*/
public static void descriptionsFree(PgFontDescription[] descs)
{
PangoFontDescription*[] descsArray = new PangoFontDescription*[descs.length];
for ( int i = 0; i < descs.length; i++ )
{
descsArray[i] = descs[i].getPgFontDescriptionStruct();
}
pango_font_descriptions_free(descsArray.ptr, cast(int)descs.length);
}
/**
* Returns a description of the font, with font size set in points.
* Use pango_font_describe_with_absolute_size() if you want the font
* size in device units.
*
* Returns: a newly-allocated #PangoFontDescription object.
*/
public PgFontDescription describe()
{
auto p = pango_font_describe(pangoFont);
if(p is null)
{
return null;
}
return ObjectG.getDObject!(PgFontDescription)(cast(PangoFontDescription*) p, true);
}
/**
* Returns a description of the font, with absolute font size set
* (in device units). Use pango_font_describe() if you want the font
* size in points.
*
* Returns: a newly-allocated #PangoFontDescription object.
*
* Since: 1.14
*/
public PgFontDescription describeWithAbsoluteSize()
{
auto p = pango_font_describe_with_absolute_size(pangoFont);
if(p is null)
{
return null;
}
return ObjectG.getDObject!(PgFontDescription)(cast(PangoFontDescription*) p, true);
}
/**
* Finds the best matching shaper for a font for a particular
* language tag and character point.
*
* Params:
* language = the language tag
* ch = a Unicode character.
*
* Returns: the best matching shaper.
*/
public PgEngineShape findShaper(PgLanguage language, uint ch)
{
auto p = pango_font_find_shaper(pangoFont, (language is null) ? null : language.getPgLanguageStruct(), ch);
if(p is null)
{
return null;
}
return ObjectG.getDObject!(PgEngineShape)(cast(PangoEngineShape*) p);
}
/**
* Computes the coverage map for a given font and language tag.
*
* Params:
* language = the language tag
*
* Returns: a newly-allocated #PangoCoverage
* object.
*/
public PgCoverage getCoverage(PgLanguage language)
{
auto p = pango_font_get_coverage(pangoFont, (language is null) ? null : language.getPgLanguageStruct());
if(p is null)
{
return null;
}
return ObjectG.getDObject!(PgCoverage)(cast(PangoCoverage*) p, true);
}
/**
* Gets the font map for which the font was created.
*
* Note that the font maintains a <firstterm>weak</firstterm> reference
* to the font map, so if all references to font map are dropped, the font
* map will be finalized even if there are fonts created with the font
* map that are still alive. In that case this function will return %NULL.
* It is the responsibility of the user to ensure that the font map is kept
* alive. In most uses this is not an issue as a #PangoContext holds
* a reference to the font map.
*
* Returns: the #PangoFontMap for the
* font, or %NULL if @font is %NULL.
*
* Since: 1.10
*/
public PgFontMap getFontMap()
{
auto p = pango_font_get_font_map(pangoFont);
if(p is null)
{
return null;
}
return ObjectG.getDObject!(PgFontMap)(cast(PangoFontMap*) p);
}
/**
* Gets the logical and ink extents of a glyph within a font. The
* coordinate system for each rectangle has its origin at the
* base line and horizontal origin of the character with increasing
* coordinates extending to the right and down. The macros PANGO_ASCENT(),
* PANGO_DESCENT(), PANGO_LBEARING(), and PANGO_RBEARING() can be used to convert
* from the extents rectangle to more traditional font metrics. The units
* of the rectangles are in 1/PANGO_SCALE of a device unit.
*
* If @font is %NULL, this function gracefully sets some sane values in the
* output variables and returns.
*
* Params:
* glyph = the glyph index
* inkRect = rectangle used to store the extents of the glyph
* as drawn or %NULL to indicate that the result is not needed.
* logicalRect = rectangle used to store the logical extents of
* the glyph or %NULL to indicate that the result is not needed.
*/
public void getGlyphExtents(PangoGlyph glyph, out PangoRectangle inkRect, out PangoRectangle logicalRect)
{
pango_font_get_glyph_extents(pangoFont, glyph, &inkRect, &logicalRect);
}
/**
* Gets overall metric information for a font. Since the metrics may be
* substantially different for different scripts, a language tag can
* be provided to indicate that the metrics should be retrieved that
* correspond to the script(s) used by that language.
*
* If @font is %NULL, this function gracefully sets some sane values in the
* output variables and returns.
*
* Params:
* language = language tag used to determine which script to get the metrics
* for, or %NULL to indicate to get the metrics for the entire font.
*
* Returns: a #PangoFontMetrics object. The caller must call pango_font_metrics_unref()
* when finished using the object.
*/
public PgFontMetrics getMetrics(PgLanguage language)
{
auto p = pango_font_get_metrics(pangoFont, (language is null) ? null : language.getPgLanguageStruct());
if(p is null)
{
return null;
}
return ObjectG.getDObject!(PgFontMetrics)(cast(PangoFontMetrics*) p, true);
}
}
| {
"pile_set_name": "Github"
} |
import * as NexusSchema from '@nexus/schema'
import type { NexusSchemaExtensionConfig } from '@nexus/schema/dist/extensions'
import { stripIndent, stripIndents } from 'common-tags'
import * as Lo from 'lodash'
import * as Path from 'path'
import * as Schema from '../../runtime/schema'
import * as Layout from '../layout'
import * as Logger from '../nexus-logger'
import * as Plugin from '../plugin'
const log = Logger.rootLogger.child('schemaTypegen')
interface GenerateArtifactsParams {
graphqlSchema: NexusSchema.core.NexusGraphQLSchema
schemaSettings: Schema.SettingsData
layout: Layout.Layout
plugins: Plugin.RuntimeContributions[]
}
export async function generateArtifacts(params: GenerateArtifactsParams): Promise<void> {
const typegenConfig = resolveTypegenConfig(params)
const typegenMetadata = new NexusSchema.core.TypegenMetadata(typegenConfig)
await typegenMetadata.generateArtifacts(params.graphqlSchema)
}
function resolveTypegenConfig(params: GenerateArtifactsParams) {
const schemaConfig = params.graphqlSchema.extensions.nexus.config
const typegenOutput = params.layout.projectPath('node_modules/@types/typegen-nexus/index.d.ts')
let schemaOutput
if (params.schemaSettings.generateGraphQLSDLFile === false) {
schemaOutput = false
} else {
schemaOutput = params.layout.projectPathOrAbsolute(params.schemaSettings.generateGraphQLSDLFile)
}
schemaConfig.outputs = {
typegen: typegenOutput,
schema: schemaOutput,
}
schemaConfig.shouldGenerateArtifacts = true
const schemaConfigWithTypegen = withCustomTypegenConfig(schemaConfig, params.plugins)
return NexusSchema.core.resolveTypegenConfig(schemaConfigWithTypegen)
}
/**
* Augment @nexus/schema typegen config with contributions from plugins.
*/
function withCustomTypegenConfig(
nexusConfig: NexusSchemaExtensionConfig,
plugins: Plugin.RuntimeContributions[]
) {
// Integrate plugin typegenAutoConfig contributions
const typegenAutoConfigFromPlugins = {}
for (const p of plugins) {
if (p.schema?.typegenAutoConfig) {
Lo.merge(typegenAutoConfigFromPlugins, p.schema.typegenAutoConfig)
}
}
const typegenAutoConfigObject = Lo.merge({}, typegenAutoConfigFromPlugins, nexusConfig.typegenAutoConfig!)
nexusConfig.typegenAutoConfig = undefined
function contextTypeContribSpecToCode(ctxTypeContribSpec: Record<string, string>): string {
return stripIndents`
interface Context {
${Object.entries(ctxTypeContribSpec)
.map(([name, type]) => {
// Quote key name to handle case of identifier-incompatible key names
return `'${name}': ${type}`
})
.join('\n')}
}
`
}
// Our use-case of multiple context sources seems to require a custom
// handling of typegenConfig. Opened an issue about maybe making our
// curreent use-case, fairly basic, integrated into the auto system, here:
// https://github.com/prisma-labs/nexus/issues/323
nexusConfig.typegenConfig = async (schema, outputPath) => {
const configurator = await NexusSchema.core.typegenAutoConfig(typegenAutoConfigObject)
const config = await configurator(schema, outputPath)
// Initialize
config.imports.push('interface Context {}')
config.imports.push(stripIndent`
declare global {
interface NexusContext extends Context {}
}
`)
config.contextType = 'NexusContext'
// Integrate plugin context contributions
for (const p of plugins) {
if (!p.context) continue
if (p.context.typeGen.imports) {
for (const typegenImport of p.context.typeGen.imports) {
const relativeImportPath = (Path.isAbsolute(typegenImport.from)
? NexusSchema.core.relativePathTo(typegenImport.from, outputPath)
: typegenImport.from
).replace(/(\.d)?\.ts/, '')
const importStatement = `import * as ${typegenImport.as} from "${relativeImportPath}"`
if (!config.imports.includes(importStatement)) {
config.imports.push(importStatement)
}
}
}
config.imports.push(contextTypeContribSpecToCode(p.context.typeGen.fields))
}
config.imports.push(
"import * as Logger from 'nexus/components/logger'",
contextTypeContribSpecToCode({
log: 'Logger.Logger',
})
)
config.nexusSchemaImportId = 'nexus/components/schema'
log.trace('built up Nexus typegenConfig', { config })
return config
}
return nexusConfig
}
| {
"pile_set_name": "Github"
} |
package org.eclipse.paho.mqttv5.client.internal;
import java.util.concurrent.atomic.AtomicInteger;
/**
* This class is used as a store for client information that should be preserved
* for a single MQTT Session. If the client is disconnected and reconnects with
* clean start = true, then this object will be reset to it's initial state.
*
* Connection variables that this class holds:
*
* <ul>
* <li>Client ID</li>
* <li>Next Subscription Identifier - The next subscription Identifier available
* to use.</li>
* </ul>
*/
public class MqttSessionState {
// ******* Session Specific Properties and counters ******//
private AtomicInteger nextSubscriptionIdentifier = new AtomicInteger(1);
private String clientId;
public void clearSessionState() {
nextSubscriptionIdentifier.set(1);
}
public Integer getNextSubscriptionIdentifier() {
return nextSubscriptionIdentifier.getAndIncrement();
}
public String getClientId() {
return clientId;
}
public void setClientId(String clientId) {
this.clientId = clientId;
}
}
| {
"pile_set_name": "Github"
} |
/* This file intentionally left blank. */
| {
"pile_set_name": "Github"
} |
#!/bin/bash
# AUTOMATICALLY GENERATED
# DO NOT EDIT THIS FILE DIRECTLY, USE /post_push.erb
set -e
# Parse image name for repo name
tagStart=$(expr index "$IMAGE_NAME" :)
repoName=${IMAGE_NAME:0:tagStart-1}
# Tag and push image for each additional tag
for tag in {v1.5.2-debian-1.0,v1.5-debian-1,edge-debian}; do
docker tag $IMAGE_NAME ${repoName}:${tag}
docker push ${repoName}:${tag}
done
| {
"pile_set_name": "Github"
} |
fileFormatVersion: 2
guid: f45b6695d6226cd48abfc605723cc3ae
ModelImporter:
serializedVersion: 18
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: join_inner_prototype_1x6x1
4300002: JoinInnerPrototype01x06x01
6400000: //RootNode
9500000: //RootNode
materials:
importMaterials: 1
materialName: 1
materialSearch: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
optimizeGameObjects: 0
motionNodeName:
pivotNodeName:
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationWrapMode: 0
extraExposedTransformPaths: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: .00999999978
meshCompression: 0
addColliders: 0
importBlendShapes: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 0
optimizeMeshForGPU: 1
keepQuads: 0
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 0
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 1
importAnimation: 1
copyAvatar: 0
humanDescription:
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
feetSpacing: 0
rootMotionBoneName:
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 0
additionalBone: 0
userData:
assetBundleName:
| {
"pile_set_name": "Github"
} |
DELETE FROM `spell_script_names` WHERE `spell_id`=49576;
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(49576, 'spell_dk_death_grip_initial');
DELETE FROM `spell_linked_spell` WHERE `spell_trigger` = 49576;
| {
"pile_set_name": "Github"
} |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AdvancedSpatialSoundsXDK", "AdvancedSpatialSoundsXDK.vcxproj", "{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DirectXTK_XboxOneXDK_2015", "..\..\..\Kits\DirectXTK\DirectXTK_XboxOneXDK_2015.vcxproj", "{4FDFDCCD-EE2E-415C-B458-1E8FDB0D85F2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Durango = Debug|Durango
Profile|Durango = Profile|Durango
Release|Durango = Release|Durango
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4FDFDCCD-EE2E-415C-B458-1E8FDB0D85F2}.Debug|Durango.ActiveCfg = Debug|Durango
{4FDFDCCD-EE2E-415C-B458-1E8FDB0D85F2}.Debug|Durango.Build.0 = Debug|Durango
{4FDFDCCD-EE2E-415C-B458-1E8FDB0D85F2}.Profile|Durango.ActiveCfg = Profile|Durango
{4FDFDCCD-EE2E-415C-B458-1E8FDB0D85F2}.Profile|Durango.Build.0 = Profile|Durango
{4FDFDCCD-EE2E-415C-B458-1E8FDB0D85F2}.Release|Durango.ActiveCfg = Release|Durango
{4FDFDCCD-EE2E-415C-B458-1E8FDB0D85F2}.Release|Durango.Build.0 = Release|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Debug|Durango.ActiveCfg = Debug|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Debug|Durango.Build.0 = Debug|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Debug|Durango.Deploy.0 = Debug|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Profile|Durango.ActiveCfg = Profile|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Profile|Durango.Build.0 = Profile|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Profile|Durango.Deploy.0 = Profile|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Release|Durango.ActiveCfg = Release|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Release|Durango.Build.0 = Release|Durango
{8D1B958E-AAB0-48CF-BD60-C39A7FEBB662}.Release|Durango.Deploy.0 = Release|Durango
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
| {
"pile_set_name": "Github"
} |
package s3manager
import (
"bytes"
"fmt"
"io"
"sort"
"sync"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/client"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/aws/aws-sdk-go/service/s3/s3iface"
)
// MaxUploadParts is the maximum allowed number of parts in a multi-part upload
// on Amazon S3.
const MaxUploadParts = 10000
// MinUploadPartSize is the minimum allowed part size when uploading a part to
// Amazon S3.
const MinUploadPartSize int64 = 1024 * 1024 * 5
// DefaultUploadPartSize is the default part size to buffer chunks of a
// payload into.
const DefaultUploadPartSize = MinUploadPartSize
// DefaultUploadConcurrency is the default number of goroutines to spin up when
// using Upload().
const DefaultUploadConcurrency = 5
// A MultiUploadFailure wraps a failed S3 multipart upload. An error returned
// will satisfy this interface when a multi part upload failed to upload all
// chucks to S3. In the case of a failure the UploadID is needed to operate on
// the chunks, if any, which were uploaded.
//
// Example:
//
// u := s3manager.NewUploader(opts)
// output, err := u.upload(input)
// if err != nil {
// if multierr, ok := err.(s3manager.MultiUploadFailure); ok {
// // Process error and its associated uploadID
// fmt.Println("Error:", multierr.Code(), multierr.Message(), multierr.UploadID())
// } else {
// // Process error generically
// fmt.Println("Error:", err.Error())
// }
// }
//
type MultiUploadFailure interface {
awserr.Error
// Returns the upload id for the S3 multipart upload that failed.
UploadID() string
}
// So that the Error interface type can be included as an anonymous field
// in the multiUploadError struct and not conflict with the error.Error() method.
type awsError awserr.Error
// A multiUploadError wraps the upload ID of a failed s3 multipart upload.
// Composed of BaseError for code, message, and original error
//
// Should be used for an error that occurred failing a S3 multipart upload,
// and a upload ID is available. If an uploadID is not available a more relevant
type multiUploadError struct {
awsError
// ID for multipart upload which failed.
uploadID string
}
// Error returns the string representation of the error.
//
// See apierr.BaseError ErrorWithExtra for output format
//
// Satisfies the error interface.
func (m multiUploadError) Error() string {
extra := fmt.Sprintf("upload id: %s", m.uploadID)
return awserr.SprintError(m.Code(), m.Message(), extra, m.OrigErr())
}
// String returns the string representation of the error.
// Alias for Error to satisfy the stringer interface.
func (m multiUploadError) String() string {
return m.Error()
}
// UploadID returns the id of the S3 upload which failed.
func (m multiUploadError) UploadID() string {
return m.uploadID
}
// UploadOutput represents a response from the Upload() call.
type UploadOutput struct {
// The URL where the object was uploaded to.
Location string
// The version of the object that was uploaded. Will only be populated if
// the S3 Bucket is versioned. If the bucket is not versioned this field
// will not be set.
VersionID *string
// The ID for a multipart upload to S3. In the case of an error the error
// can be cast to the MultiUploadFailure interface to extract the upload ID.
UploadID string
}
// WithUploaderRequestOptions appends to the Uploader's API request options.
func WithUploaderRequestOptions(opts ...request.Option) func(*Uploader) {
return func(u *Uploader) {
u.RequestOptions = append(u.RequestOptions, opts...)
}
}
// The Uploader structure that calls Upload(). It is safe to call Upload()
// on this structure for multiple objects and across concurrent goroutines.
// Mutating the Uploader's properties is not safe to be done concurrently.
type Uploader struct {
// The buffer size (in bytes) to use when buffering data into chunks and
// sending them as parts to S3. The minimum allowed part size is 5MB, and
// if this value is set to zero, the DefaultUploadPartSize value will be used.
PartSize int64
// The number of goroutines to spin up in parallel per call to Upload when
// sending parts. If this is set to zero, the DefaultUploadConcurrency value
// will be used.
//
// The concurrency pool is not shared between calls to Upload.
Concurrency int
// Setting this value to true will cause the SDK to avoid calling
// AbortMultipartUpload on a failure, leaving all successfully uploaded
// parts on S3 for manual recovery.
//
// Note that storing parts of an incomplete multipart upload counts towards
// space usage on S3 and will add additional costs if not cleaned up.
LeavePartsOnError bool
// MaxUploadParts is the max number of parts which will be uploaded to S3.
// Will be used to calculate the partsize of the object to be uploaded.
// E.g: 5GB file, with MaxUploadParts set to 100, will upload the file
// as 100, 50MB parts. With a limited of s3.MaxUploadParts (10,000 parts).
//
// MaxUploadParts must not be used to limit the total number of bytes uploaded.
// Use a type like to io.LimitReader (https://golang.org/pkg/io/#LimitedReader)
// instead. An io.LimitReader is helpful when uploading an unbounded reader
// to S3, and you know its maximum size. Otherwise the reader's io.EOF returned
// error must be used to signal end of stream.
//
// Defaults to package const's MaxUploadParts value.
MaxUploadParts int
// The client to use when uploading to S3.
S3 s3iface.S3API
// List of request options that will be passed down to individual API
// operation requests made by the uploader.
RequestOptions []request.Option
// Defines the buffer strategy used when uploading a part
BufferProvider ReadSeekerWriteToProvider
}
// NewUploader creates a new Uploader instance to upload objects to S3. Pass In
// additional functional options to customize the uploader's behavior. Requires a
// client.ConfigProvider in order to create a S3 service client. The session.Session
// satisfies the client.ConfigProvider interface.
//
// Example:
// // The session the S3 Uploader will use
// sess := session.Must(session.NewSession())
//
// // Create an uploader with the session and default options
// uploader := s3manager.NewUploader(sess)
//
// // Create an uploader with the session and custom options
// uploader := s3manager.NewUploader(session, func(u *s3manager.Uploader) {
// u.PartSize = 64 * 1024 * 1024 // 64MB per part
// })
func NewUploader(c client.ConfigProvider, options ...func(*Uploader)) *Uploader {
u := &Uploader{
S3: s3.New(c),
PartSize: DefaultUploadPartSize,
Concurrency: DefaultUploadConcurrency,
LeavePartsOnError: false,
MaxUploadParts: MaxUploadParts,
BufferProvider: defaultUploadBufferProvider(),
}
for _, option := range options {
option(u)
}
return u
}
// NewUploaderWithClient creates a new Uploader instance to upload objects to S3. Pass in
// additional functional options to customize the uploader's behavior. Requires
// a S3 service client to make S3 API calls.
//
// Example:
// // The session the S3 Uploader will use
// sess := session.Must(session.NewSession())
//
// // S3 service client the Upload manager will use.
// s3Svc := s3.New(sess)
//
// // Create an uploader with S3 client and default options
// uploader := s3manager.NewUploaderWithClient(s3Svc)
//
// // Create an uploader with S3 client and custom options
// uploader := s3manager.NewUploaderWithClient(s3Svc, func(u *s3manager.Uploader) {
// u.PartSize = 64 * 1024 * 1024 // 64MB per part
// })
func NewUploaderWithClient(svc s3iface.S3API, options ...func(*Uploader)) *Uploader {
u := &Uploader{
S3: svc,
PartSize: DefaultUploadPartSize,
Concurrency: DefaultUploadConcurrency,
LeavePartsOnError: false,
MaxUploadParts: MaxUploadParts,
BufferProvider: defaultUploadBufferProvider(),
}
for _, option := range options {
option(u)
}
return u
}
// Upload uploads an object to S3, intelligently buffering large files into
// smaller chunks and sending them in parallel across multiple goroutines. You
// can configure the buffer size and concurrency through the Uploader's parameters.
//
// Additional functional options can be provided to configure the individual
// upload. These options are copies of the Uploader instance Upload is called from.
// Modifying the options will not impact the original Uploader instance.
//
// Use the WithUploaderRequestOptions helper function to pass in request
// options that will be applied to all API operations made with this uploader.
//
// It is safe to call this method concurrently across goroutines.
//
// Example:
// // Upload input parameters
// upParams := &s3manager.UploadInput{
// Bucket: &bucketName,
// Key: &keyName,
// Body: file,
// }
//
// // Perform an upload.
// result, err := uploader.Upload(upParams)
//
// // Perform upload with options different than the those in the Uploader.
// result, err := uploader.Upload(upParams, func(u *s3manager.Uploader) {
// u.PartSize = 10 * 1024 * 1024 // 10MB part size
// u.LeavePartsOnError = true // Don't delete the parts if the upload fails.
// })
func (u Uploader) Upload(input *UploadInput, options ...func(*Uploader)) (*UploadOutput, error) {
return u.UploadWithContext(aws.BackgroundContext(), input, options...)
}
// UploadWithContext uploads an object to S3, intelligently buffering large
// files into smaller chunks and sending them in parallel across multiple
// goroutines. You can configure the buffer size and concurrency through the
// Uploader's parameters.
//
// UploadWithContext is the same as Upload with the additional support for
// Context input parameters. The Context must not be nil. A nil Context will
// cause a panic. Use the context to add deadlining, timeouts, etc. The
// UploadWithContext may create sub-contexts for individual underlying requests.
//
// Additional functional options can be provided to configure the individual
// upload. These options are copies of the Uploader instance Upload is called from.
// Modifying the options will not impact the original Uploader instance.
//
// Use the WithUploaderRequestOptions helper function to pass in request
// options that will be applied to all API operations made with this uploader.
//
// It is safe to call this method concurrently across goroutines.
func (u Uploader) UploadWithContext(ctx aws.Context, input *UploadInput, opts ...func(*Uploader)) (*UploadOutput, error) {
i := uploader{in: input, cfg: u, ctx: ctx}
for _, opt := range opts {
opt(&i.cfg)
}
i.cfg.RequestOptions = append(i.cfg.RequestOptions, request.WithAppendUserAgent("S3Manager"))
return i.upload()
}
// UploadWithIterator will upload a batched amount of objects to S3. This operation uses
// the iterator pattern to know which object to upload next. Since this is an interface this
// allows for custom defined functionality.
//
// Example:
// svc:= s3manager.NewUploader(sess)
//
// objects := []BatchUploadObject{
// {
// Object: &s3manager.UploadInput {
// Key: aws.String("key"),
// Bucket: aws.String("bucket"),
// },
// },
// }
//
// iter := &s3manager.UploadObjectsIterator{Objects: objects}
// if err := svc.UploadWithIterator(aws.BackgroundContext(), iter); err != nil {
// return err
// }
func (u Uploader) UploadWithIterator(ctx aws.Context, iter BatchUploadIterator, opts ...func(*Uploader)) error {
var errs []Error
for iter.Next() {
object := iter.UploadObject()
if _, err := u.UploadWithContext(ctx, object.Object, opts...); err != nil {
s3Err := Error{
OrigErr: err,
Bucket: object.Object.Bucket,
Key: object.Object.Key,
}
errs = append(errs, s3Err)
}
if object.After == nil {
continue
}
if err := object.After(); err != nil {
s3Err := Error{
OrigErr: err,
Bucket: object.Object.Bucket,
Key: object.Object.Key,
}
errs = append(errs, s3Err)
}
}
if len(errs) > 0 {
return NewBatchError("BatchedUploadIncomplete", "some objects have failed to upload.", errs)
}
return nil
}
// internal structure to manage an upload to S3.
type uploader struct {
ctx aws.Context
cfg Uploader
in *UploadInput
readerPos int64 // current reader position
totalSize int64 // set to -1 if the size is not known
bufferPool sync.Pool
bufferUploadPool sync.Pool
}
// internal logic for deciding whether to upload a single part or use a
// multipart upload.
func (u *uploader) upload() (*UploadOutput, error) {
if err := u.init(); err != nil {
return nil, awserr.New("ReadRequestBody", "unable to initialize upload", err)
}
if u.cfg.PartSize < MinUploadPartSize {
msg := fmt.Sprintf("part size must be at least %d bytes", MinUploadPartSize)
return nil, awserr.New("ConfigError", msg, nil)
}
// Do one read to determine if we have more than one part
reader, _, part, cleanup, err := u.nextReader()
if err == io.EOF { // single part
return u.singlePart(reader, cleanup)
} else if err != nil {
cleanup()
return nil, awserr.New("ReadRequestBody", "read upload data failed", err)
}
mu := multiuploader{uploader: u}
return mu.upload(reader, part, cleanup)
}
// init will initialize all default options.
func (u *uploader) init() error {
if u.cfg.Concurrency == 0 {
u.cfg.Concurrency = DefaultUploadConcurrency
}
if u.cfg.PartSize == 0 {
u.cfg.PartSize = DefaultUploadPartSize
}
if u.cfg.MaxUploadParts == 0 {
u.cfg.MaxUploadParts = MaxUploadParts
}
u.bufferPool = sync.Pool{
New: func() interface{} { return make([]byte, u.cfg.PartSize) },
}
// Try to get the total size for some optimizations
return u.initSize()
}
// initSize tries to detect the total stream size, setting u.totalSize. If
// the size is not known, totalSize is set to -1.
func (u *uploader) initSize() error {
u.totalSize = -1
switch r := u.in.Body.(type) {
case io.Seeker:
n, err := aws.SeekerLen(r)
if err != nil {
return err
}
u.totalSize = n
// Try to adjust partSize if it is too small and account for
// integer division truncation.
if u.totalSize/u.cfg.PartSize >= int64(u.cfg.MaxUploadParts) {
// Add one to the part size to account for remainders
// during the size calculation. e.g odd number of bytes.
u.cfg.PartSize = (u.totalSize / int64(u.cfg.MaxUploadParts)) + 1
}
}
return nil
}
// nextReader returns a seekable reader representing the next packet of data.
// This operation increases the shared u.readerPos counter, but note that it
// does not need to be wrapped in a mutex because nextReader is only called
// from the main thread.
func (u *uploader) nextReader() (io.ReadSeeker, int, []byte, func(), error) {
type readerAtSeeker interface {
io.ReaderAt
io.ReadSeeker
}
switch r := u.in.Body.(type) {
case readerAtSeeker:
var err error
n := u.cfg.PartSize
if u.totalSize >= 0 {
bytesLeft := u.totalSize - u.readerPos
if bytesLeft <= u.cfg.PartSize {
err = io.EOF
n = bytesLeft
}
}
var (
reader io.ReadSeeker
cleanup func()
)
reader = io.NewSectionReader(r, u.readerPos, n)
if u.cfg.BufferProvider != nil {
reader, cleanup = u.cfg.BufferProvider.GetWriteTo(reader)
} else {
cleanup = func() {}
}
u.readerPos += n
return reader, int(n), nil, cleanup, err
default:
part := u.bufferPool.Get().([]byte)
n, err := readFillBuf(r, part)
u.readerPos += int64(n)
cleanup := func() {
u.bufferPool.Put(part)
}
return bytes.NewReader(part[0:n]), n, part, cleanup, err
}
}
func readFillBuf(r io.Reader, b []byte) (offset int, err error) {
for offset < len(b) && err == nil {
var n int
n, err = r.Read(b[offset:])
offset += n
}
return offset, err
}
// singlePart contains upload logic for uploading a single chunk via
// a regular PutObject request. Multipart requests require at least two
// parts, or at least 5MB of data.
func (u *uploader) singlePart(r io.ReadSeeker, cleanup func()) (*UploadOutput, error) {
defer cleanup()
params := &s3.PutObjectInput{}
awsutil.Copy(params, u.in)
params.Body = r
// Need to use request form because URL generated in request is
// used in return.
req, out := u.cfg.S3.PutObjectRequest(params)
req.SetContext(u.ctx)
req.ApplyOptions(u.cfg.RequestOptions...)
if err := req.Send(); err != nil {
return nil, err
}
url := req.HTTPRequest.URL.String()
return &UploadOutput{
Location: url,
VersionID: out.VersionId,
}, nil
}
// internal structure to manage a specific multipart upload to S3.
type multiuploader struct {
*uploader
wg sync.WaitGroup
m sync.Mutex
err error
uploadID string
parts completedParts
}
// keeps track of a single chunk of data being sent to S3.
type chunk struct {
buf io.ReadSeeker
part []byte
num int64
cleanup func()
}
// completedParts is a wrapper to make parts sortable by their part number,
// since S3 required this list to be sent in sorted order.
type completedParts []*s3.CompletedPart
func (a completedParts) Len() int { return len(a) }
func (a completedParts) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
func (a completedParts) Less(i, j int) bool { return *a[i].PartNumber < *a[j].PartNumber }
// upload will perform a multipart upload using the firstBuf buffer containing
// the first chunk of data.
func (u *multiuploader) upload(firstBuf io.ReadSeeker, firstPart []byte, cleanup func()) (*UploadOutput, error) {
params := &s3.CreateMultipartUploadInput{}
awsutil.Copy(params, u.in)
// Create the multipart
resp, err := u.cfg.S3.CreateMultipartUploadWithContext(u.ctx, params, u.cfg.RequestOptions...)
if err != nil {
return nil, err
}
u.uploadID = *resp.UploadId
// Create the workers
ch := make(chan chunk, u.cfg.Concurrency)
for i := 0; i < u.cfg.Concurrency; i++ {
u.wg.Add(1)
go u.readChunk(ch)
}
// Send part 1 to the workers
var num int64 = 1
ch <- chunk{buf: firstBuf, part: firstPart, num: num, cleanup: cleanup}
// Read and queue the rest of the parts
for u.geterr() == nil && err == nil {
var (
reader io.ReadSeeker
nextChunkLen int
part []byte
ok bool
)
reader, nextChunkLen, part, cleanup, err = u.nextReader()
ok, err = u.shouldContinue(num, nextChunkLen, err)
if !ok {
cleanup()
if err != nil {
u.seterr(err)
}
break
}
num++
ch <- chunk{buf: reader, part: part, num: num, cleanup: cleanup}
}
// Close the channel, wait for workers, and complete upload
close(ch)
u.wg.Wait()
complete := u.complete()
if err := u.geterr(); err != nil {
return nil, &multiUploadError{
awsError: awserr.New(
"MultipartUpload",
"upload multipart failed",
err),
uploadID: u.uploadID,
}
}
// Create a presigned URL of the S3 Get Object in order to have parity with
// single part upload.
getReq, _ := u.cfg.S3.GetObjectRequest(&s3.GetObjectInput{
Bucket: u.in.Bucket,
Key: u.in.Key,
})
getReq.Config.Credentials = credentials.AnonymousCredentials
uploadLocation, _, _ := getReq.PresignRequest(1)
return &UploadOutput{
Location: uploadLocation,
VersionID: complete.VersionId,
UploadID: u.uploadID,
}, nil
}
func (u *multiuploader) shouldContinue(part int64, nextChunkLen int, err error) (bool, error) {
if err != nil && err != io.EOF {
return false, awserr.New("ReadRequestBody", "read multipart upload data failed", err)
}
if nextChunkLen == 0 {
// No need to upload empty part, if file was empty to start
// with empty single part would of been created and never
// started multipart upload.
return false, nil
}
part++
// This upload exceeded maximum number of supported parts, error now.
if part > int64(u.cfg.MaxUploadParts) || part > int64(MaxUploadParts) {
var msg string
if part > int64(u.cfg.MaxUploadParts) {
msg = fmt.Sprintf("exceeded total allowed configured MaxUploadParts (%d). Adjust PartSize to fit in this limit",
u.cfg.MaxUploadParts)
} else {
msg = fmt.Sprintf("exceeded total allowed S3 limit MaxUploadParts (%d). Adjust PartSize to fit in this limit",
MaxUploadParts)
}
return false, awserr.New("TotalPartsExceeded", msg, nil)
}
return true, err
}
// readChunk runs in worker goroutines to pull chunks off of the ch channel
// and send() them as UploadPart requests.
func (u *multiuploader) readChunk(ch chan chunk) {
defer u.wg.Done()
for {
data, ok := <-ch
if !ok {
break
}
if u.geterr() == nil {
if err := u.send(data); err != nil {
u.seterr(err)
}
}
}
}
// send performs an UploadPart request and keeps track of the completed
// part information.
func (u *multiuploader) send(c chunk) error {
params := &s3.UploadPartInput{
Bucket: u.in.Bucket,
Key: u.in.Key,
Body: c.buf,
UploadId: &u.uploadID,
SSECustomerAlgorithm: u.in.SSECustomerAlgorithm,
SSECustomerKey: u.in.SSECustomerKey,
PartNumber: &c.num,
}
resp, err := u.cfg.S3.UploadPartWithContext(u.ctx, params, u.cfg.RequestOptions...)
c.cleanup()
if err != nil {
return err
}
n := c.num
completed := &s3.CompletedPart{ETag: resp.ETag, PartNumber: &n}
u.m.Lock()
u.parts = append(u.parts, completed)
u.m.Unlock()
return nil
}
// geterr is a thread-safe getter for the error object
func (u *multiuploader) geterr() error {
u.m.Lock()
defer u.m.Unlock()
return u.err
}
// seterr is a thread-safe setter for the error object
func (u *multiuploader) seterr(e error) {
u.m.Lock()
defer u.m.Unlock()
u.err = e
}
// fail will abort the multipart unless LeavePartsOnError is set to true.
func (u *multiuploader) fail() {
if u.cfg.LeavePartsOnError {
return
}
params := &s3.AbortMultipartUploadInput{
Bucket: u.in.Bucket,
Key: u.in.Key,
UploadId: &u.uploadID,
}
_, err := u.cfg.S3.AbortMultipartUploadWithContext(u.ctx, params, u.cfg.RequestOptions...)
if err != nil {
logMessage(u.cfg.S3, aws.LogDebug, fmt.Sprintf("failed to abort multipart upload, %v", err))
}
}
// complete successfully completes a multipart upload and returns the response.
func (u *multiuploader) complete() *s3.CompleteMultipartUploadOutput {
if u.geterr() != nil {
u.fail()
return nil
}
// Parts must be sorted in PartNumber order.
sort.Sort(u.parts)
params := &s3.CompleteMultipartUploadInput{
Bucket: u.in.Bucket,
Key: u.in.Key,
UploadId: &u.uploadID,
MultipartUpload: &s3.CompletedMultipartUpload{Parts: u.parts},
}
resp, err := u.cfg.S3.CompleteMultipartUploadWithContext(u.ctx, params, u.cfg.RequestOptions...)
if err != nil {
u.seterr(err)
u.fail()
}
return resp
}
| {
"pile_set_name": "Github"
} |
/**
* Copyright (c) 2011 Yahoo! Inc. All rights reserved.
*
* 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. See accompanying LICENSE file.
*/
package com.yahoo.omid.tso.messages;
import java.io.DataOutputStream;
import java.io.IOException;
import org.jboss.netty.buffer.ChannelBuffer;
import com.yahoo.omid.tso.TSOMessage;
/**
* The message object for sending a timestamp request to TSO
*
*/
public class TimestampRequest implements TSOMessage {
@Override
public void writeObject(DataOutputStream aOutputStream) throws IOException {
}
@Override
public void readObject(ChannelBuffer aInputStream) {
}
@Override
public void writeObject(ChannelBuffer buffer) {
}
}
| {
"pile_set_name": "Github"
} |
/**
* OWASP Benchmark Project v1.2
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://owasp.org/www-project-benchmark/">https://owasp.org/www-project-benchmark/</a>.
*
* The OWASP Benchmark is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation, version 2.
*
* The OWASP Benchmark is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* @author Dave Wichers
* @created 2015
*/
package org.owasp.benchmark.testcode;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet(value="/securecookie-00/BenchmarkTest01062")
public class BenchmarkTest01062 extends HttpServlet {
private static final long serialVersionUID = 1L;
@Override
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doPost(request, response);
}
@Override
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
String param = "";
if (request.getHeader("BenchmarkTest01062") != null) {
param = request.getHeader("BenchmarkTest01062");
}
// URL Decode the header value since req.getHeader() doesn't. Unlike req.getParameter().
param = java.net.URLDecoder.decode(param, "UTF-8");
String bar = new Test().doSomething(request, param);
byte[] input = new byte[1000];
String str = "?";
Object inputParam = param;
if (inputParam instanceof String) str = ((String) inputParam);
if (inputParam instanceof java.io.InputStream) {
int i = ((java.io.InputStream) inputParam).read(input);
if (i == -1) {
response.getWriter().println(
"This input source requires a POST, not a GET. Incompatible UI for the InputStream source."
);
return;
}
str = new String(input, 0, i);
}
if ("".equals(str)) str="No cookie value supplied";
javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str);
// Note: Can't jam in SameSite attribute into cookie like this because the ; char
// in the cookie value gets rejected by the new Cookie() method.
// javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie("SomeCookie", str + "; SameSite=strict");
cookie.setSecure(true);
cookie.setHttpOnly(true);
cookie.setPath(request.getRequestURI()); // i.e., set path to JUST this servlet
// e.g., /benchmark/sql-01/BenchmarkTest01001
response.addCookie(cookie);
response.getWriter().println(
"Created cookie: 'SomeCookie': with value: '"
+ org.owasp.esapi.ESAPI.encoder().encodeForHTML(str) + "' and secure flag set to: true"
);
} // end doPost
private class Test {
public String doSomething(HttpServletRequest request, String param) throws ServletException, IOException {
String bar = "";
if (param != null) {
bar = new String( org.apache.commons.codec.binary.Base64.decodeBase64(
org.apache.commons.codec.binary.Base64.encodeBase64( param.getBytes() ) ));
}
return bar;
}
} // end innerclass Test
} // end DataflowThruInnerClass
| {
"pile_set_name": "Github"
} |
/*
* Copyright (C) 2016 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Scylla is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Scylla. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <memory>
#include <optional>
#include <seastar/core/semaphore.hh>
#include <seastar/core/shared_ptr.hh>
#include <seastar/core/smp.hh>
#include "seastarx.hh"
/**
* Joinpoint:
*
* Helper type for letting operations working on all shards "join" and acquire
* the same value of something, with that value being based on whenever that
* join takes place. (Obvious use case: time stamp after one set of per-shard ops, but
* before final ones).
* The generation of the value is guaranteed to happen on the shards that created the
* join point.
*/
namespace utils {
template<typename T>
class joinpoint {
public:
typedef typename futurize<T>::type type;
typedef std::function<type()> func_type;
joinpoint(func_type f)
: _func(std::move(f))
, _shard(this_shard_id())
, _enter(0)
, _wait(0)
{}
type value() {
return smp::submit_to(_shard, [this, id = this_shard_id()] {
_enter.signal();
if (id == _shard) {
// We should not generate to common value until all shards
// have reached this point. Thus the two semaphores.
return _enter.wait(smp::count).then([this] {
return _func().then([this](T v) {
_value = std::move(v);
_wait.signal(smp::count - 1); // we don't wait
return make_ready_future<T>(*_value);
}).handle_exception([this](auto ep) {
_wait.broken(ep);
return make_exception_future<T>(ep);
});
});
}
return _wait.wait().then([this] {
assert(_value);
return make_ready_future<T>(*_value);
});
});
}
private:
func_type _func;
shard_id _shard;
semaphore _enter;
semaphore _wait;
std::optional<T> _value;
};
/**
* Based on the join-code in cf::snapshot.
* An object that allows us to generate a value for-all-shards
* at some point down the execution in multiple shards.
*
* T type must be copyable, and preferable primitive/trivial
* or at the very least shard-copy safe.
*/
template<typename Func, typename T = std::result_of_t<Func()>>
joinpoint<T> make_joinpoint(Func && f) {
return joinpoint<T>([f = std::forward<Func>(f)] {
return futurize_invoke(f);
});
}
}
| {
"pile_set_name": "Github"
} |
#!/usr/bin/env python
#
# Copyright 2006, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""Unit test utilities for gtest_xml_output"""
__author__ = '[email protected] (Sean Mcafee)'
import re
from xml.dom import minidom, Node
import gtest_test_utils
GTEST_OUTPUT_FLAG = '--gtest_output'
GTEST_DEFAULT_OUTPUT_FILE = 'test_detail.xml'
class GTestXMLTestCase(gtest_test_utils.TestCase):
"""
Base class for tests of Google Test's XML output functionality.
"""
def AssertEquivalentNodes(self, expected_node, actual_node):
"""
Asserts that actual_node (a DOM node object) is equivalent to
expected_node (another DOM node object), in that either both of
them are CDATA nodes and have the same value, or both are DOM
elements and actual_node meets all of the following conditions:
* It has the same tag name as expected_node.
* It has the same set of attributes as expected_node, each with
the same value as the corresponding attribute of expected_node.
Exceptions are any attribute named "time", which needs only be
convertible to a floating-point number and any attribute named
"type_param" which only has to be non-empty.
* It has an equivalent set of child nodes (including elements and
CDATA sections) as expected_node. Note that we ignore the
order of the children as they are not guaranteed to be in any
particular order.
"""
if expected_node.nodeType == Node.CDATA_SECTION_NODE:
self.assertEquals(Node.CDATA_SECTION_NODE, actual_node.nodeType)
self.assertEquals(expected_node.nodeValue, actual_node.nodeValue)
return
self.assertEquals(Node.ELEMENT_NODE, actual_node.nodeType)
self.assertEquals(Node.ELEMENT_NODE, expected_node.nodeType)
self.assertEquals(expected_node.tagName, actual_node.tagName)
expected_attributes = expected_node.attributes
actual_attributes = actual_node .attributes
self.assertEquals(
expected_attributes.length, actual_attributes.length,
'attribute numbers differ in element ' + actual_node.tagName)
for i in range(expected_attributes.length):
expected_attr = expected_attributes.item(i)
actual_attr = actual_attributes.get(expected_attr.name)
self.assert_(
actual_attr is not None,
'expected attribute %s not found in element %s' %
(expected_attr.name, actual_node.tagName))
self.assertEquals(expected_attr.value, actual_attr.value,
' values of attribute %s in element %s differ' %
(expected_attr.name, actual_node.tagName))
expected_children = self._GetChildren(expected_node)
actual_children = self._GetChildren(actual_node)
self.assertEquals(
len(expected_children), len(actual_children),
'number of child elements differ in element ' + actual_node.tagName)
for child_id, child in expected_children.iteritems():
self.assert_(child_id in actual_children,
'<%s> is not in <%s> (in element %s)' %
(child_id, actual_children, actual_node.tagName))
self.AssertEquivalentNodes(child, actual_children[child_id])
identifying_attribute = {
'testsuites': 'name',
'testsuite': 'name',
'testcase': 'name',
'failure': 'message',
}
def _GetChildren(self, element):
"""
Fetches all of the child nodes of element, a DOM Element object.
Returns them as the values of a dictionary keyed by the IDs of the
children. For <testsuites>, <testsuite> and <testcase> elements, the ID
is the value of their "name" attribute; for <failure> elements, it is
the value of the "message" attribute; CDATA sections and non-whitespace
text nodes are concatenated into a single CDATA section with ID
"detail". An exception is raised if any element other than the above
four is encountered, if two child elements with the same identifying
attributes are encountered, or if any other type of node is encountered.
"""
children = {}
for child in element.childNodes:
if child.nodeType == Node.ELEMENT_NODE:
self.assert_(child.tagName in self.identifying_attribute,
'Encountered unknown element <%s>' % child.tagName)
childID = child.getAttribute(self.identifying_attribute[child.tagName])
self.assert_(childID not in children)
children[childID] = child
elif child.nodeType in [Node.TEXT_NODE, Node.CDATA_SECTION_NODE]:
if 'detail' not in children:
if (child.nodeType == Node.CDATA_SECTION_NODE or
not child.nodeValue.isspace()):
children['detail'] = child.ownerDocument.createCDATASection(
child.nodeValue)
else:
children['detail'].nodeValue += child.nodeValue
else:
self.fail('Encountered unexpected node type %d' % child.nodeType)
return children
def NormalizeXml(self, element):
"""
Normalizes Google Test's XML output to eliminate references to transient
information that may change from run to run.
* The "time" attribute of <testsuites>, <testsuite> and <testcase>
elements is replaced with a single asterisk, if it contains
only digit characters.
* The "timestamp" attribute of <testsuites> elements is replaced with a
single asterisk, if it contains a valid ISO8601 datetime value.
* The "type_param" attribute of <testcase> elements is replaced with a
single asterisk (if it sn non-empty) as it is the type name returned
by the compiler and is platform dependent.
* The line info reported in the first line of the "message"
attribute and CDATA section of <failure> elements is replaced with the
file's basename and a single asterisk for the line number.
* The directory names in file paths are removed.
* The stack traces are removed.
"""
if element.tagName == 'testsuites':
timestamp = element.getAttributeNode('timestamp')
timestamp.value = re.sub(r'^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d$',
'*', timestamp.value)
if element.tagName in ('testsuites', 'testsuite', 'testcase'):
time = element.getAttributeNode('time')
time.value = re.sub(r'^\d+(\.\d+)?$', '*', time.value)
type_param = element.getAttributeNode('type_param')
if type_param and type_param.value:
type_param.value = '*'
elif element.tagName == 'failure':
source_line_pat = r'^.*[/\\](.*:)\d+\n'
# Replaces the source line information with a normalized form.
message = element.getAttributeNode('message')
message.value = re.sub(source_line_pat, '\\1*\n', message.value)
for child in element.childNodes:
if child.nodeType == Node.CDATA_SECTION_NODE:
# Replaces the source line information with a normalized form.
cdata = re.sub(source_line_pat, '\\1*\n', child.nodeValue)
# Removes the actual stack trace.
child.nodeValue = re.sub(r'\nStack trace:\n(.|\n)*',
'', cdata)
for child in element.childNodes:
if child.nodeType == Node.ELEMENT_NODE:
self.NormalizeXml(child)
| {
"pile_set_name": "Github"
} |
[
{
"pattern" : {
"onColors" : [[255, 0, 0, 255], [0, 255, 0, 255], [0, 0, 255, 255], [0, 0, 0, 0]],
"offColors" : [[0,0,0,0], [0,0,0,0], [0,0,0,0], [0,0,0,0]],
"onPeriod_ms" : [450, 450, 450, 450],
"offPeriod_ms" : [0, 0, 0, 0],
"transitionOnPeriod_ms" : [0, 0, 0, 0],
"transitionOffPeriod_ms" : [0, 0, 0, 0],
"offset" : [0,0,0,0],
"rotate" : true
},
"duration_ms" : 0,
"canBeOverridden" : false,
"patternDebugName" : "testRotation"
}
]
| {
"pile_set_name": "Github"
} |
/**
* @file
* This is the IPv4 packet segmentation and reassembly implementation.
*
*/
/*
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*
* This file is part of the lwIP TCP/IP stack.
*
* Author: Jani Monoses <[email protected]>
* Simon Goldschmidt
* original reassembly code by Adam Dunkels <[email protected]>
*
*/
#include "lwip/opt.h"
#include "lwip/ip_frag.h"
#include "lwip/ip.h"
#include "lwip/inet.h"
#include "lwip/inet_chksum.h"
#include "lwip/netif.h"
#include "lwip/snmp.h"
#include "lwip/stats.h"
#include "lwip/icmp.h"
#include <string.h>
#if IP_REASSEMBLY
/**
* The IP reassembly code currently has the following limitations:
* - IP header options are not supported
* - fragments must not overlap (e.g. due to different routes),
* currently, overlapping or duplicate fragments are thrown away
* if IP_REASS_CHECK_OVERLAP=1 (the default)!
*
* @todo: work with IP header options
*/
/** Setting this to 0, you can turn off checking the fragments for overlapping
* regions. The code gets a little smaller. Only use this if you know that
* overlapping won't occur on your network! */
#ifndef IP_REASS_CHECK_OVERLAP
#define IP_REASS_CHECK_OVERLAP 1
#endif /* IP_REASS_CHECK_OVERLAP */
/** Set to 0 to prevent freeing the oldest datagram when the reassembly buffer is
* full (IP_REASS_MAX_PBUFS pbufs are enqueued). The code gets a little smaller.
* Datagrams will be freed by timeout only. Especially useful when MEMP_NUM_REASSDATA
* is set to 1, so one datagram can be reassembled at a time, only. */
#ifndef IP_REASS_FREE_OLDEST
#define IP_REASS_FREE_OLDEST 1
#endif /* IP_REASS_FREE_OLDEST */
#define IP_REASS_FLAG_LASTFRAG 0x01
/** This is a helper struct which holds the starting
* offset and the ending offset of this fragment to
* easily chain the fragments.
* It has to be packed since it has to fit inside the IP header.
*/
#ifdef PACK_STRUCT_USE_INCLUDES
# include "arch/bpstruct.h"
#endif
PACK_STRUCT_BEGIN
struct ip_reass_helper {
PACK_STRUCT_FIELD(struct pbuf *next_pbuf);
PACK_STRUCT_FIELD(u16_t start);
PACK_STRUCT_FIELD(u16_t end);
} PACK_STRUCT_STRUCT;
PACK_STRUCT_END
#ifdef PACK_STRUCT_USE_INCLUDES
# include "arch/epstruct.h"
#endif
#define IP_ADDRESSES_AND_ID_MATCH(iphdrA, iphdrB) \
(ip_addr_cmp(&(iphdrA)->src, &(iphdrB)->src) && \
ip_addr_cmp(&(iphdrA)->dest, &(iphdrB)->dest) && \
IPH_ID(iphdrA) == IPH_ID(iphdrB)) ? 1 : 0
/* global variables */
static struct ip_reassdata *reassdatagrams;
static u16_t ip_reass_pbufcount;
/* function prototypes */
static void ip_reass_dequeue_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev);
static int ip_reass_free_complete_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev);
/**
* Reassembly timer base function
* for both NO_SYS == 0 and 1 (!).
*
* Should be called every 1000 msec (defined by IP_TMR_INTERVAL).
*/
void
ip_reass_tmr(void)
{
struct ip_reassdata *r, *prev = NULL;
r = reassdatagrams;
while (r != NULL) {
/* Decrement the timer. Once it reaches 0,
* clean up the incomplete fragment assembly */
if (r->timer > 0) {
r->timer--;
LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer dec %"U16_F"\n",(u16_t)r->timer));
prev = r;
r = r->next;
} else {
/* reassembly timed out */
struct ip_reassdata *tmp;
LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer timed out\n"));
tmp = r;
/* get the next pointer before freeing */
r = r->next;
/* free the helper struct and all enqueued pbufs */
ip_reass_free_complete_datagram(tmp, prev);
}
}
}
/**
* Free a datagram (struct ip_reassdata) and all its pbufs.
* Updates the total count of enqueued pbufs (ip_reass_pbufcount),
* SNMP counters and sends an ICMP time exceeded packet.
*
* @param ipr datagram to free
* @param prev the previous datagram in the linked list
* @return the number of pbufs freed
*/
static int
ip_reass_free_complete_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev)
{
int pbufs_freed = 0;
struct pbuf *p;
struct ip_reass_helper *iprh;
LWIP_ASSERT("prev != ipr", prev != ipr);
if (prev != NULL) {
LWIP_ASSERT("prev->next == ipr", prev->next == ipr);
}
snmp_inc_ipreasmfails();
#if LWIP_ICMP
iprh = (struct ip_reass_helper *)ipr->p->payload;
if (iprh->start == 0) {
/* The first fragment was received, send ICMP time exceeded. */
/* First, de-queue the first pbuf from r->p. */
p = ipr->p;
ipr->p = iprh->next_pbuf;
/* Then, copy the original header into it. */
SMEMCPY(p->payload, &ipr->iphdr, IP_HLEN);
icmp_time_exceeded(p, ICMP_TE_FRAG);
pbufs_freed += pbuf_clen(p);
pbuf_free(p);
}
#endif /* LWIP_ICMP */
/* First, free all received pbufs. The individual pbufs need to be released
separately as they have not yet been chained */
p = ipr->p;
while (p != NULL) {
struct pbuf *pcur;
iprh = (struct ip_reass_helper *)p->payload;
pcur = p;
/* get the next pointer before freeing */
p = iprh->next_pbuf;
pbufs_freed += pbuf_clen(pcur);
pbuf_free(pcur);
}
/* Then, unchain the struct ip_reassdata from the list and free it. */
ip_reass_dequeue_datagram(ipr, prev);
LWIP_ASSERT("ip_reass_pbufcount >= clen", ip_reass_pbufcount >= pbufs_freed);
ip_reass_pbufcount -= pbufs_freed;
return pbufs_freed;
}
#if IP_REASS_FREE_OLDEST
/**
* Free the oldest datagram to make room for enqueueing new fragments.
* The datagram 'fraghdr' belongs to is not freed!
*
* @param fraghdr IP header of the current fragment
* @param pbufs_needed number of pbufs needed to enqueue
* (used for freeing other datagrams if not enough space)
* @return the number of pbufs freed
*/
static int
ip_reass_remove_oldest_datagram(struct ip_hdr *fraghdr, int pbufs_needed)
{
/* @todo Can't we simply remove the last datagram in the
* linked list behind reassdatagrams?
*/
struct ip_reassdata *r, *oldest, *prev;
int pbufs_freed = 0, pbufs_freed_current;
int other_datagrams;
/* Free datagrams until being allowed to enqueue 'pbufs_needed' pbufs,
* but don't free the datagram that 'fraghdr' belongs to! */
do {
oldest = NULL;
prev = NULL;
other_datagrams = 0;
r = reassdatagrams;
while (r != NULL) {
if (!IP_ADDRESSES_AND_ID_MATCH(&r->iphdr, fraghdr)) {
/* Not the same datagram as fraghdr */
other_datagrams++;
if (oldest == NULL) {
oldest = r;
} else if (r->timer <= oldest->timer) {
/* older than the previous oldest */
oldest = r;
}
}
if (r->next != NULL) {
prev = r;
}
r = r->next;
}
if (oldest != NULL) {
pbufs_freed_current = ip_reass_free_complete_datagram(oldest, prev);
pbufs_freed += pbufs_freed_current;
}
} while ((pbufs_freed < pbufs_needed) && (other_datagrams > 1));
return pbufs_freed;
}
#endif /* IP_REASS_FREE_OLDEST */
/**
* Enqueues a new fragment into the fragment queue
* @param fraghdr points to the new fragments IP hdr
* @param clen number of pbufs needed to enqueue (used for freeing other datagrams if not enough space)
* @return A pointer to the queue location into which the fragment was enqueued
*/
static struct ip_reassdata*
ip_reass_enqueue_new_datagram(struct ip_hdr *fraghdr, int clen)
{
struct ip_reassdata* ipr;
/* No matching previous fragment found, allocate a new reassdata struct */
ipr = memp_malloc(MEMP_REASSDATA);
if (ipr == NULL) {
#if IP_REASS_FREE_OLDEST
if (ip_reass_remove_oldest_datagram(fraghdr, clen) >= clen) {
ipr = memp_malloc(MEMP_REASSDATA);
}
if (ipr == NULL)
#endif /* IP_REASS_FREE_OLDEST */
{
IPFRAG_STATS_INC(ip_frag.memerr);
LWIP_DEBUGF(IP_REASS_DEBUG,("Failed to alloc reassdata struct\n"));
return NULL;
}
}
memset(ipr, 0, sizeof(struct ip_reassdata));
ipr->timer = IP_REASS_MAXAGE;
/* enqueue the new structure to the front of the list */
ipr->next = reassdatagrams;
reassdatagrams = ipr;
/* copy the ip header for later tests and input */
/* @todo: no ip options supported? */
SMEMCPY(&(ipr->iphdr), fraghdr, IP_HLEN);
return ipr;
}
/**
* Dequeues a datagram from the datagram queue. Doesn't deallocate the pbufs.
* @param ipr points to the queue entry to dequeue
*/
static void
ip_reass_dequeue_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev)
{
/* dequeue the reass struct */
if (reassdatagrams == ipr) {
/* it was the first in the list */
reassdatagrams = ipr->next;
} else {
/* it wasn't the first, so it must have a valid 'prev' */
LWIP_ASSERT("sanity check linked list", prev != NULL);
prev->next = ipr->next;
}
/* now we can free the ip_reass struct */
memp_free(MEMP_REASSDATA, ipr);
}
/**
* Chain a new pbuf into the pbuf list that composes the datagram. The pbuf list
* will grow over time as new pbufs are rx.
* Also checks that the datagram passes basic continuity checks (if the last
* fragment was received at least once).
* @param root_p points to the 'root' pbuf for the current datagram being assembled.
* @param new_p points to the pbuf for the current fragment
* @return 0 if invalid, >0 otherwise
*/
static int
ip_reass_chain_frag_into_datagram_and_validate(struct ip_reassdata *ipr, struct pbuf *new_p)
{
struct ip_reass_helper *iprh, *iprh_tmp, *iprh_prev=NULL;
struct pbuf *q;
u16_t offset,len;
struct ip_hdr *fraghdr;
int valid = 1;
/* Extract length and fragment offset from current fragment */
fraghdr = (struct ip_hdr*)new_p->payload;
len = ntohs(IPH_LEN(fraghdr)) - IPH_HL(fraghdr) * 4;
offset = (ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) * 8;
/* overwrite the fragment's ip header from the pbuf with our helper struct,
* and setup the embedded helper structure. */
/* make sure the struct ip_reass_helper fits into the IP header */
LWIP_ASSERT("sizeof(struct ip_reass_helper) <= IP_HLEN",
sizeof(struct ip_reass_helper) <= IP_HLEN);
iprh = (struct ip_reass_helper*)new_p->payload;
iprh->next_pbuf = NULL;
iprh->start = offset;
iprh->end = offset + len;
/* Iterate through until we either get to the end of the list (append),
* or we find on with a larger offset (insert). */
for (q = ipr->p; q != NULL;) {
iprh_tmp = (struct ip_reass_helper*)q->payload;
if (iprh->start < iprh_tmp->start) {
/* the new pbuf should be inserted before this */
iprh->next_pbuf = q;
if (iprh_prev != NULL) {
/* not the fragment with the lowest offset */
#if IP_REASS_CHECK_OVERLAP
if ((iprh->start < iprh_prev->end) || (iprh->end > iprh_tmp->start)) {
/* fragment overlaps with previous or following, throw away */
goto freepbuf;
}
#endif /* IP_REASS_CHECK_OVERLAP */
iprh_prev->next_pbuf = new_p;
} else {
/* fragment with the lowest offset */
ipr->p = new_p;
}
break;
} else if(iprh->start == iprh_tmp->start) {
/* received the same datagram twice: no need to keep the datagram */
goto freepbuf;
#if IP_REASS_CHECK_OVERLAP
} else if(iprh->start < iprh_tmp->end) {
/* overlap: no need to keep the new datagram */
goto freepbuf;
#endif /* IP_REASS_CHECK_OVERLAP */
} else {
/* Check if the fragments received so far have no wholes. */
if (iprh_prev != NULL) {
if (iprh_prev->end != iprh_tmp->start) {
/* There is a fragment missing between the current
* and the previous fragment */
valid = 0;
}
}
}
q = iprh_tmp->next_pbuf;
iprh_prev = iprh_tmp;
}
/* If q is NULL, then we made it to the end of the list. Determine what to do now */
if (q == NULL) {
if (iprh_prev != NULL) {
/* this is (for now), the fragment with the highest offset:
* chain it to the last fragment */
#if IP_REASS_CHECK_OVERLAP
LWIP_ASSERT("check fragments don't overlap", iprh_prev->end <= iprh->start);
#endif /* IP_REASS_CHECK_OVERLAP */
iprh_prev->next_pbuf = new_p;
if (iprh_prev->end != iprh->start) {
valid = 0;
}
} else {
#if IP_REASS_CHECK_OVERLAP
LWIP_ASSERT("no previous fragment, this must be the first fragment!",
ipr->p == NULL);
#endif /* IP_REASS_CHECK_OVERLAP */
/* this is the first fragment we ever received for this ip datagram */
ipr->p = new_p;
}
}
/* At this point, the validation part begins: */
/* If we already received the last fragment */
if ((ipr->flags & IP_REASS_FLAG_LASTFRAG) != 0) {
/* and had no wholes so far */
if (valid) {
/* then check if the rest of the fragments is here */
/* Check if the queue starts with the first datagram */
if (((struct ip_reass_helper*)ipr->p->payload)->start != 0) {
valid = 0;
} else {
/* and check that there are no wholes after this datagram */
iprh_prev = iprh;
q = iprh->next_pbuf;
while (q != NULL) {
iprh = (struct ip_reass_helper*)q->payload;
if (iprh_prev->end != iprh->start) {
valid = 0;
break;
}
iprh_prev = iprh;
q = iprh->next_pbuf;
}
/* if still valid, all fragments are received
* (because to the MF==0 already arrived */
if (valid) {
LWIP_ASSERT("sanity check", ipr->p != NULL);
LWIP_ASSERT("sanity check",
((struct ip_reass_helper*)ipr->p->payload) != iprh);
LWIP_ASSERT("validate_datagram:next_pbuf!=NULL",
iprh->next_pbuf == NULL);
LWIP_ASSERT("validate_datagram:datagram end!=datagram len",
iprh->end == ipr->datagram_len);
}
}
}
/* If valid is 0 here, there are some fragments missing in the middle
* (since MF == 0 has already arrived). Such datagrams simply time out if
* no more fragments are received... */
return valid;
}
/* If we come here, not all fragments were received, yet! */
return 0; /* not yet valid! */
#if IP_REASS_CHECK_OVERLAP
freepbuf:
ip_reass_pbufcount -= pbuf_clen(new_p);
pbuf_free(new_p);
return 0;
#endif /* IP_REASS_CHECK_OVERLAP */
}
/**
* Reassembles incoming IP fragments into an IP datagram.
*
* @param p points to a pbuf chain of the fragment
* @return NULL if reassembly is incomplete, ? otherwise
*/
struct pbuf *
ip_reass(struct pbuf *p)
{
struct pbuf *r;
struct ip_hdr *fraghdr;
struct ip_reassdata *ipr;
struct ip_reass_helper *iprh;
u16_t offset, len;
u8_t clen;
struct ip_reassdata *ipr_prev = NULL;
IPFRAG_STATS_INC(ip_frag.recv);
snmp_inc_ipreasmreqds();
fraghdr = (struct ip_hdr*)p->payload;
if ((IPH_HL(fraghdr) * 4) != IP_HLEN) {
LWIP_DEBUGF(IP_REASS_DEBUG,("ip_reass: IP options currently not supported!\n"));
IPFRAG_STATS_INC(ip_frag.err);
goto nullreturn;
}
offset = (ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) * 8;
len = ntohs(IPH_LEN(fraghdr)) - IPH_HL(fraghdr) * 4;
/* Check if we are allowed to enqueue more datagrams. */
clen = pbuf_clen(p);
if ((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS) {
#if IP_REASS_FREE_OLDEST
if (!ip_reass_remove_oldest_datagram(fraghdr, clen) ||
((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS))
#endif /* IP_REASS_FREE_OLDEST */
{
/* No datagram could be freed and still too many pbufs enqueued */
LWIP_DEBUGF(IP_REASS_DEBUG,("ip_reass: Overflow condition: pbufct=%d, clen=%d, MAX=%d\n",
ip_reass_pbufcount, clen, IP_REASS_MAX_PBUFS));
IPFRAG_STATS_INC(ip_frag.memerr);
/* @todo: send ICMP time exceeded here? */
/* drop this pbuf */
goto nullreturn;
}
}
/* Look for the datagram the fragment belongs to in the current datagram queue,
* remembering the previous in the queue for later dequeueing. */
for (ipr = reassdatagrams; ipr != NULL; ipr = ipr->next) {
/* Check if the incoming fragment matches the one currently present
in the reassembly buffer. If so, we proceed with copying the
fragment into the buffer. */
if (IP_ADDRESSES_AND_ID_MATCH(&ipr->iphdr, fraghdr)) {
LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass: matching previous fragment ID=%"X16_F"\n",
ntohs(IPH_ID(fraghdr))));
IPFRAG_STATS_INC(ip_frag.cachehit);
break;
}
ipr_prev = ipr;
}
if (ipr == NULL) {
/* Enqueue a new datagram into the datagram queue */
ipr = ip_reass_enqueue_new_datagram(fraghdr, clen);
/* Bail if unable to enqueue */
if(ipr == NULL) {
goto nullreturn;
}
} else {
if (((ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) &&
((ntohs(IPH_OFFSET(&ipr->iphdr)) & IP_OFFMASK) != 0)) {
/* ipr->iphdr is not the header from the first fragment, but fraghdr is
* -> copy fraghdr into ipr->iphdr since we want to have the header
* of the first fragment (for ICMP time exceeded and later, for copying
* all options, if supported)*/
SMEMCPY(&ipr->iphdr, fraghdr, IP_HLEN);
}
}
/* Track the current number of pbufs current 'in-flight', in order to limit
the number of fragments that may be enqueued at any one time */
ip_reass_pbufcount += clen;
/* At this point, we have either created a new entry or pointing
* to an existing one */
/* check for 'no more fragments', and update queue entry*/
if ((ntohs(IPH_OFFSET(fraghdr)) & IP_MF) == 0) {
ipr->flags |= IP_REASS_FLAG_LASTFRAG;
ipr->datagram_len = offset + len;
LWIP_DEBUGF(IP_REASS_DEBUG,
("ip_reass: last fragment seen, total len %"S16_F"\n",
ipr->datagram_len));
}
/* find the right place to insert this pbuf */
/* @todo: trim pbufs if fragments are overlapping */
if (ip_reass_chain_frag_into_datagram_and_validate(ipr, p)) {
/* the totally last fragment (flag more fragments = 0) was received at least
* once AND all fragments are received */
ipr->datagram_len += IP_HLEN;
/* save the second pbuf before copying the header over the pointer */
r = ((struct ip_reass_helper*)ipr->p->payload)->next_pbuf;
/* copy the original ip header back to the first pbuf */
fraghdr = (struct ip_hdr*)(ipr->p->payload);
SMEMCPY(fraghdr, &ipr->iphdr, IP_HLEN);
IPH_LEN_SET(fraghdr, htons(ipr->datagram_len));
IPH_OFFSET_SET(fraghdr, 0);
IPH_CHKSUM_SET(fraghdr, 0);
/* @todo: do we need to set calculate the correct checksum? */
IPH_CHKSUM_SET(fraghdr, inet_chksum(fraghdr, IP_HLEN));
p = ipr->p;
/* chain together the pbufs contained within the reass_data list. */
while(r != NULL) {
iprh = (struct ip_reass_helper*)r->payload;
/* hide the ip header for every succeding fragment */
pbuf_header(r, -IP_HLEN);
pbuf_cat(p, r);
r = iprh->next_pbuf;
}
/* release the sources allocate for the fragment queue entry */
ip_reass_dequeue_datagram(ipr, ipr_prev);
/* and adjust the number of pbufs currently queued for reassembly. */
ip_reass_pbufcount -= pbuf_clen(p);
/* Return the pbuf chain */
return p;
}
/* the datagram is not (yet?) reassembled completely */
LWIP_DEBUGF(IP_REASS_DEBUG,("ip_reass_pbufcount: %d out\n", ip_reass_pbufcount));
return NULL;
nullreturn:
LWIP_DEBUGF(IP_REASS_DEBUG,("ip_reass: nullreturn\n"));
IPFRAG_STATS_INC(ip_frag.drop);
pbuf_free(p);
return NULL;
}
#endif /* IP_REASSEMBLY */
#if IP_FRAG
#if IP_FRAG_USES_STATIC_BUF
static u8_t buf[LWIP_MEM_ALIGN_SIZE(IP_FRAG_MAX_MTU + MEM_ALIGNMENT - 1)];
#endif /* IP_FRAG_USES_STATIC_BUF */
/**
* Fragment an IP datagram if too large for the netif.
*
* Chop the datagram in MTU sized chunks and send them in order
* by using a fixed size static memory buffer (PBUF_REF) or
* point PBUF_REFs into p (depending on IP_FRAG_USES_STATIC_BUF).
*
* @param p ip packet to send
* @param netif the netif on which to send
* @param dest destination ip address to which to send
*
* @return ERR_OK if sent successfully, err_t otherwise
*/
err_t
ip_frag(struct pbuf *p, struct netif *netif, struct ip_addr *dest)
{
struct pbuf *rambuf;
#if IP_FRAG_USES_STATIC_BUF
struct pbuf *header;
#else
struct pbuf *newpbuf;
struct ip_hdr *original_iphdr;
#endif
struct ip_hdr *iphdr;
u16_t nfb;
u16_t left, cop;
u16_t mtu = netif->mtu;
u16_t ofo, omf;
u16_t last;
u16_t poff = IP_HLEN;
u16_t tmp;
#if !IP_FRAG_USES_STATIC_BUF
u16_t newpbuflen = 0;
u16_t left_to_copy;
#endif
/* Get a RAM based MTU sized pbuf */
#if IP_FRAG_USES_STATIC_BUF
/* When using a static buffer, we use a PBUF_REF, which we will
* use to reference the packet (without link header).
* Layer and length is irrelevant.
*/
rambuf = pbuf_alloc(PBUF_LINK, 0, PBUF_REF);
if (rambuf == NULL) {
LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_frag: pbuf_alloc(PBUF_LINK, 0, PBUF_REF) failed\n"));
return ERR_MEM;
}
rambuf->tot_len = rambuf->len = mtu;
rambuf->payload = LWIP_MEM_ALIGN((void *)buf);
/* Copy the IP header in it */
iphdr = rambuf->payload;
SMEMCPY(iphdr, p->payload, IP_HLEN);
#else /* IP_FRAG_USES_STATIC_BUF */
original_iphdr = p->payload;
iphdr = original_iphdr;
#endif /* IP_FRAG_USES_STATIC_BUF */
/* Save original offset */
tmp = ntohs(IPH_OFFSET(iphdr));
ofo = tmp & IP_OFFMASK;
omf = tmp & IP_MF;
left = p->tot_len - IP_HLEN;
nfb = (mtu - IP_HLEN) / 8;
while (left) {
last = (left <= mtu - IP_HLEN);
/* Set new offset and MF flag */
tmp = omf | (IP_OFFMASK & (ofo));
if (!last)
tmp = tmp | IP_MF;
/* Fill this fragment */
cop = last ? left : nfb * 8;
#if IP_FRAG_USES_STATIC_BUF
poff += pbuf_copy_partial(p, (u8_t*)iphdr + IP_HLEN, cop, poff);
#else /* IP_FRAG_USES_STATIC_BUF */
/* When not using a static buffer, create a chain of pbufs.
* The first will be a PBUF_RAM holding the link and IP header.
* The rest will be PBUF_REFs mirroring the pbuf chain to be fragged,
* but limited to the size of an mtu.
*/
rambuf = pbuf_alloc(PBUF_LINK, IP_HLEN, PBUF_RAM);
if (rambuf == NULL) {
return ERR_MEM;
}
LWIP_ASSERT("this needs a pbuf in one piece!",
(p->len >= (IP_HLEN)));
SMEMCPY(rambuf->payload, original_iphdr, IP_HLEN);
iphdr = rambuf->payload;
/* Can just adjust p directly for needed offset. */
p->payload = (u8_t *)p->payload + poff;
p->len -= poff;
left_to_copy = cop;
while (left_to_copy) {
newpbuflen = (left_to_copy < p->len) ? left_to_copy : p->len;
/* Is this pbuf already empty? */
if (!newpbuflen) {
p = p->next;
continue;
}
newpbuf = pbuf_alloc(PBUF_RAW, 0, PBUF_REF);
if (newpbuf == NULL) {
pbuf_free(rambuf);
return ERR_MEM;
}
/* Mirror this pbuf, although we might not need all of it. */
newpbuf->payload = p->payload;
newpbuf->len = newpbuf->tot_len = newpbuflen;
/* Add it to end of rambuf's chain, but using pbuf_cat, not pbuf_chain
* so that it is removed when pbuf_dechain is later called on rambuf.
*/
pbuf_cat(rambuf, newpbuf);
left_to_copy -= newpbuflen;
if (left_to_copy)
p = p->next;
}
poff = newpbuflen;
#endif /* IP_FRAG_USES_STATIC_BUF */
/* Correct header */
IPH_OFFSET_SET(iphdr, htons(tmp));
IPH_LEN_SET(iphdr, htons(cop + IP_HLEN));
IPH_CHKSUM_SET(iphdr, 0);
IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, IP_HLEN));
#if IP_FRAG_USES_STATIC_BUF
if (last)
pbuf_realloc(rambuf, left + IP_HLEN);
/* This part is ugly: we alloc a RAM based pbuf for
* the link level header for each chunk and then
* free it.A PBUF_ROM style pbuf for which pbuf_header
* worked would make things simpler.
*/
header = pbuf_alloc(PBUF_LINK, 0, PBUF_RAM);
if (header != NULL) {
pbuf_chain(header, rambuf);
netif->output(netif, header, dest);
IPFRAG_STATS_INC(ip_frag.xmit);
snmp_inc_ipfragcreates();
pbuf_free(header);
} else {
LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_frag: pbuf_alloc() for header failed\n"));
pbuf_free(rambuf);
return ERR_MEM;
}
#else /* IP_FRAG_USES_STATIC_BUF */
/* No need for separate header pbuf - we allowed room for it in rambuf
* when allocated.
*/
netif->output(netif, rambuf, dest);
IPFRAG_STATS_INC(ip_frag.xmit);
/* Unfortunately we can't reuse rambuf - the hardware may still be
* using the buffer. Instead we free it (and the ensuing chain) and
* recreate it next time round the loop. If we're lucky the hardware
* will have already sent the packet, the free will really free, and
* there will be zero memory penalty.
*/
pbuf_free(rambuf);
#endif /* IP_FRAG_USES_STATIC_BUF */
left -= cop;
ofo += nfb;
}
#if IP_FRAG_USES_STATIC_BUF
pbuf_free(rambuf);
#endif /* IP_FRAG_USES_STATIC_BUF */
snmp_inc_ipfragoks();
return ERR_OK;
}
#endif /* IP_FRAG */
| {
"pile_set_name": "Github"
} |
// This file was generated AUTOMATICALLY from a template file Wed Aug 22 18:58:21 PDT 2018
/*
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package java.lang;
/** The CharacterData class encapsulates the large tables once found in
* java.lang.Character.
*/
class CharacterData01 extends CharacterData {
/* The character properties are currently encoded into 32 bits in the following manner:
1 bit mirrored property
4 bits directionality property
9 bits signed offset used for converting case
1 bit if 1, adding the signed offset converts the character to lowercase
1 bit if 1, subtracting the signed offset converts the character to uppercase
1 bit if 1, this character has a titlecase equivalent (possibly itself)
3 bits 0 may not be part of an identifier
1 ignorable control; may continue a Unicode identifier or Java identifier
2 may continue a Java identifier but not a Unicode identifier (unused)
3 may continue a Unicode identifier or Java identifier
4 is a Java whitespace character
5 may start or continue a Java identifier;
may continue but not start a Unicode identifier (underscores)
6 may start or continue a Java identifier but not a Unicode identifier ($)
7 may start or continue a Unicode identifier or Java identifier
Thus:
5, 6, 7 may start a Java identifier
1, 2, 3, 5, 6, 7 may continue a Java identifier
7 may start a Unicode identifier
1, 3, 5, 7 may continue a Unicode identifier
1 is ignorable within an identifier
4 is Java whitespace
2 bits 0 this character has no numeric property
1 adding the digit offset to the character code and then
masking with 0x1F will produce the desired numeric value
2 this character has a "strange" numeric value
3 a Java supradecimal digit: adding the digit offset to the
character code, then masking with 0x1F, then adding 10
will produce the desired numeric value
5 bits digit offset
5 bits character type
The encoding of character properties is subject to change at any time.
*/
int getProperties(int ch) {
char offset = (char)ch;
int props = A[(Y[(X[offset>>5]<<4)|((offset>>1)&0xF)]<<1)|(offset&0x1)];
return props;
}
int getPropertiesEx(int ch) {
char offset = (char)ch;
int props = B[(Y[(X[offset>>5]<<4)|((offset>>1)&0xF)]<<1)|(offset&0x1)];
return props;
}
int getType(int ch) {
int props = getProperties(ch);
return (props & 0x1F);
}
boolean isOtherLowercase(int ch) {
int props = getPropertiesEx(ch);
return (props & 0x0001) != 0;
}
boolean isOtherUppercase(int ch) {
int props = getPropertiesEx(ch);
return (props & 0x0002) != 0;
}
boolean isOtherAlphabetic(int ch) {
int props = getPropertiesEx(ch);
return (props & 0x0004) != 0;
}
boolean isIdeographic(int ch) {
int props = getPropertiesEx(ch);
return (props & 0x0010) != 0;
}
boolean isJavaIdentifierStart(int ch) {
int props = getProperties(ch);
return ((props & 0x00007000) >= 0x00005000);
}
boolean isJavaIdentifierPart(int ch) {
int props = getProperties(ch);
return ((props & 0x00003000) != 0);
}
boolean isUnicodeIdentifierStart(int ch) {
int props = getProperties(ch);
return ((props & 0x00007000) == 0x00007000);
}
boolean isUnicodeIdentifierPart(int ch) {
int props = getProperties(ch);
return ((props & 0x00001000) != 0);
}
boolean isIdentifierIgnorable(int ch) {
int props = getProperties(ch);
return ((props & 0x00007000) == 0x00001000);
}
int toLowerCase(int ch) {
int mapChar = ch;
int val = getProperties(ch);
if ((val & 0x00020000) != 0) {
int offset = val << 5 >> (5+18);
mapChar = ch + offset;
}
return mapChar;
}
int toUpperCase(int ch) {
int mapChar = ch;
int val = getProperties(ch);
if ((val & 0x00010000) != 0) {
int offset = val << 5 >> (5+18);
mapChar = ch - offset;
}
return mapChar;
}
int toTitleCase(int ch) {
int mapChar = ch;
int val = getProperties(ch);
if ((val & 0x00008000) != 0) {
// There is a titlecase equivalent. Perform further checks:
if ((val & 0x00010000) == 0) {
// The character does not have an uppercase equivalent, so it must
// already be uppercase; so add 1 to get the titlecase form.
mapChar = ch + 1;
}
else if ((val & 0x00020000) == 0) {
// The character does not have a lowercase equivalent, so it must
// already be lowercase; so subtract 1 to get the titlecase form.
mapChar = ch - 1;
}
// else {
// The character has both an uppercase equivalent and a lowercase
// equivalent, so it must itself be a titlecase form; return it.
// return ch;
//}
}
else if ((val & 0x00010000) != 0) {
// This character has no titlecase equivalent but it does have an
// uppercase equivalent, so use that (subtract the signed case offset).
mapChar = toUpperCase(ch);
}
return mapChar;
}
int digit(int ch, int radix) {
int value = -1;
if (radix >= Character.MIN_RADIX && radix <= Character.MAX_RADIX) {
int val = getProperties(ch);
int kind = val & 0x1F;
if (kind == Character.DECIMAL_DIGIT_NUMBER) {
value = ch + ((val & 0x3E0) >> 5) & 0x1F;
}
else if ((val & 0xC00) == 0x00000C00) {
// Java supradecimal digit
value = (ch + ((val & 0x3E0) >> 5) & 0x1F) + 10;
}
}
return (value < radix) ? value : -1;
}
int getNumericValue(int ch) {
int val = getProperties(ch);
int retval = -1;
switch (val & 0xC00) {
default: // cannot occur
case (0x00000000): // not numeric
retval = -1;
break;
case (0x00000400): // simple numeric
retval = ch + ((val & 0x3E0) >> 5) & 0x1F;
break;
case (0x00000800) : // "strange" numeric
switch(ch) {
case 0x10113: retval = 40; break; // AEGEAN NUMBER FORTY
case 0x10114: retval = 50; break; // AEGEAN NUMBER FIFTY
case 0x10115: retval = 60; break; // AEGEAN NUMBER SIXTY
case 0x10116: retval = 70; break; // AEGEAN NUMBER SEVENTY
case 0x10117: retval = 80; break; // AEGEAN NUMBER EIGHTY
case 0x10118: retval = 90; break; // AEGEAN NUMBER NINETY
case 0x10119: retval = 100; break; // AEGEAN NUMBER ONE HUNDRED
case 0x1011A: retval = 200; break; // AEGEAN NUMBER TWO HUNDRED
case 0x1011B: retval = 300; break; // AEGEAN NUMBER THREE HUNDRED
case 0x1011C: retval = 400; break; // AEGEAN NUMBER FOUR HUNDRED
case 0x1011D: retval = 500; break; // AEGEAN NUMBER FIVE HUNDRED
case 0x1011E: retval = 600; break; // AEGEAN NUMBER SIX HUNDRED
case 0x1011F: retval = 700; break; // AEGEAN NUMBER SEVEN HUNDRED
case 0x10120: retval = 800; break; // AEGEAN NUMBER EIGHT HUNDRED
case 0x10121: retval = 900; break; // AEGEAN NUMBER NINE HUNDRED
case 0x10122: retval = 1000; break; // AEGEAN NUMBER ONE THOUSAND
case 0x10123: retval = 2000; break; // AEGEAN NUMBER TWO THOUSAND
case 0x10124: retval = 3000; break; // AEGEAN NUMBER THREE THOUSAND
case 0x10125: retval = 4000; break; // AEGEAN NUMBER FOUR THOUSAND
case 0x10126: retval = 5000; break; // AEGEAN NUMBER FIVE THOUSAND
case 0x10127: retval = 6000; break; // AEGEAN NUMBER SIX THOUSAND
case 0x10128: retval = 7000; break; // AEGEAN NUMBER SEVEN THOUSAND
case 0x10129: retval = 8000; break; // AEGEAN NUMBER EIGHT THOUSAND
case 0x1012A: retval = 9000; break; // AEGEAN NUMBER NINE THOUSAND
case 0x1012B: retval = 10000; break; // AEGEAN NUMBER TEN THOUSAND
case 0x1012C: retval = 20000; break; // AEGEAN NUMBER TWENTY THOUSAND
case 0x1012D: retval = 30000; break; // AEGEAN NUMBER THIRTY THOUSAND
case 0x1012E: retval = 40000; break; // AEGEAN NUMBER FORTY THOUSAND
case 0x1012F: retval = 50000; break; // AEGEAN NUMBER FIFTY THOUSAND
case 0x10130: retval = 60000; break; // AEGEAN NUMBER SIXTY THOUSAND
case 0x10131: retval = 70000; break; // AEGEAN NUMBER SEVENTY THOUSAND
case 0x10132: retval = 80000; break; // AEGEAN NUMBER EIGHTY THOUSAND
case 0x10133: retval = 90000; break; // AEGEAN NUMBER NINETY THOUSAND
case 0x10144: retval = 50; break; // GREEK ACROPHONIC ATTIC FIFTY
case 0x10145: retval = 500; break; // GREEK ACROPHONIC ATTIC FIVE HUNDRED
case 0x10146: retval = 5000; break; // GREEK ACROPHONIC ATTIC FIVE THOUSAND
case 0x10147: retval = 50000; break; // GREEK ACROPHONIC ATTIC FIFTY THOUSAND
case 0x1014A: retval = 50; break; // GREEK ACROPHONIC ATTIC FIFTY TALENTS
case 0x1014B: retval = 100; break; // GREEK ACROPHONIC ATTIC ONE HUNDRED TALENTS
case 0x1014C: retval = 500; break; // GREEK ACROPHONIC ATTIC FIVE HUNDRED TALENTS
case 0x1014D: retval = 1000; break; // GREEK ACROPHONIC ATTIC ONE THOUSAND TALENTS
case 0x1014E: retval = 5000; break; // GREEK ACROPHONIC ATTIC FIVE THOUSAND TALENTS
case 0x10151: retval = 50; break; // GREEK ACROPHONIC ATTIC FIFTY STATERS
case 0x10152: retval = 100; break; // GREEK ACROPHONIC ATTIC ONE HUNDRED STATERS
case 0x10153: retval = 500; break; // GREEK ACROPHONIC ATTIC FIVE HUNDRED STATERS
case 0x10154: retval = 1000; break; // GREEK ACROPHONIC ATTIC ONE THOUSAND STATERS
case 0x10155: retval = 10000; break; // GREEK ACROPHONIC ATTIC TEN THOUSAND STATERS
case 0x10156: retval = 50000; break; // GREEK ACROPHONIC ATTIC FIFTY THOUSAND STATERS
case 0x10166: retval = 50; break; // GREEK ACROPHONIC TROEZENIAN FIFTY
case 0x10167: retval = 50; break; // GREEK ACROPHONIC TROEZENIAN FIFTY ALTERNATE FORM
case 0x10168: retval = 50; break; // GREEK ACROPHONIC HERMIONIAN FIFTY
case 0x10169: retval = 50; break; // GREEK ACROPHONIC THESPIAN FIFTY
case 0x1016A: retval = 100; break; // GREEK ACROPHONIC THESPIAN ONE HUNDRED
case 0x1016B: retval = 300; break; // GREEK ACROPHONIC THESPIAN THREE HUNDRED
case 0x1016C: retval = 500; break; // GREEK ACROPHONIC EPIDAUREAN FIVE HUNDRED
case 0x1016D: retval = 500; break; // GREEK ACROPHONIC TROEZENIAN FIVE HUNDRED
case 0x1016E: retval = 500; break; // GREEK ACROPHONIC THESPIAN FIVE HUNDRED
case 0x1016F: retval = 500; break; // GREEK ACROPHONIC CARYSTIAN FIVE HUNDRED
case 0x10170: retval = 500; break; // GREEK ACROPHONIC NAXIAN FIVE HUNDRED
case 0x10171: retval = 1000; break; // GREEK ACROPHONIC THESPIAN ONE THOUSAND
case 0x10172: retval = 5000; break; // GREEK ACROPHONIC THESPIAN FIVE THOUSAND
case 0x10174: retval = 50; break; // GREEK ACROPHONIC STRATIAN FIFTY MNAS
case 0x102ED: retval = 40; break; // COPTIC EPACT NUMBER FORTY
case 0x102EE: retval = 50; break; // COPTIC EPACT NUMBER FIFTY
case 0x102EF: retval = 60; break; // COPTIC EPACT NUMBER SIXTY
case 0x102F0: retval = 70; break; // COPTIC EPACT NUMBER SEVENTY
case 0x102F1: retval = 80; break; // COPTIC EPACT NUMBER EIGHTY
case 0x102F2: retval = 90; break; // COPTIC EPACT NUMBER NINETY
case 0x102F3: retval = 100; break; // COPTIC EPACT NUMBER ONE HUNDRED
case 0x102F4: retval = 200; break; // COPTIC EPACT NUMBER TWO HUNDRED
case 0x102F5: retval = 300; break; // COPTIC EPACT NUMBER THREE HUNDRED
case 0x102F6: retval = 400; break; // COPTIC EPACT NUMBER FOUR HUNDRED
case 0x102F7: retval = 500; break; // COPTIC EPACT NUMBER FIVE HUNDRED
case 0x102F8: retval = 600; break; // COPTIC EPACT NUMBER SIX HUNDRED
case 0x102F9: retval = 700; break; // COPTIC EPACT NUMBER SEVEN HUNDRED
case 0x102FA: retval = 800; break; // COPTIC EPACT NUMBER EIGHT HUNDRED
case 0x102FB: retval = 900; break; // COPTIC EPACT NUMBER NINE HUNDRED
case 0x10323: retval = 50; break; // OLD ITALIC NUMERAL FIFTY
case 0x10341: retval = 90; break; // GOTHIC LETTER NINETY
case 0x1034A: retval = 900; break; // GOTHIC LETTER NINE HUNDRED
case 0x103D5: retval = 100; break; // OLD PERSIAN NUMBER HUNDRED
case 0x1085D: retval = 100; break; // IMPERIAL ARAMAIC NUMBER ONE HUNDRED
case 0x1085E: retval = 1000; break; // IMPERIAL ARAMAIC NUMBER ONE THOUSAND
case 0x1085F: retval = 10000; break; // IMPERIAL ARAMAIC NUMBER TEN THOUSAND
case 0x108AF: retval = 100; break; // NABATAEAN NUMBER ONE HUNDRED
case 0x108FF: retval = 100; break; // HATRAN NUMBER ONE HUNDRED
case 0x10919: retval = 100; break; // PHOENICIAN NUMBER ONE HUNDRED
case 0x109CC: retval = 40; break; // MEROITIC CURSIVE NUMBER FORTY
case 0x109CD: retval = 50; break; // MEROITIC CURSIVE NUMBER FIFTY
case 0x109CE: retval = 60; break; // MEROITIC CURSIVE NUMBER SIXTY
case 0x109CF: retval = 70; break; // MEROITIC CURSIVE NUMBER SEVENTY
case 0x109D2: retval = 100; break; // MEROITIC CURSIVE NUMBER ONE HUNDRED
case 0x109D3: retval = 200; break; // MEROITIC CURSIVE NUMBER TWO HUNDRED
case 0x109D4: retval = 300; break; // MEROITIC CURSIVE NUMBER THREE HUNDRED
case 0x109D5: retval = 400; break; // MEROITIC CURSIVE NUMBER FOUR HUNDRED
case 0x109D6: retval = 500; break; // MEROITIC CURSIVE NUMBER FIVE HUNDRED
case 0x109D7: retval = 600; break; // MEROITIC CURSIVE NUMBER SIX HUNDRED
case 0x109D8: retval = 700; break; // MEROITIC CURSIVE NUMBER SEVEN HUNDRED
case 0x109D9: retval = 800; break; // MEROITIC CURSIVE NUMBER EIGHT HUNDRED
case 0x109DA: retval = 900; break; // MEROITIC CURSIVE NUMBER NINE HUNDRED
case 0x109DB: retval = 1000; break; // MEROITIC CURSIVE NUMBER ONE THOUSAND
case 0x109DC: retval = 2000; break; // MEROITIC CURSIVE NUMBER TWO THOUSAND
case 0x109DD: retval = 3000; break; // MEROITIC CURSIVE NUMBER THREE THOUSAND
case 0x109DE: retval = 4000; break; // MEROITIC CURSIVE NUMBER FOUR THOUSAND
case 0x109DF: retval = 5000; break; // MEROITIC CURSIVE NUMBER FIVE THOUSAND
case 0x109E0: retval = 6000; break; // MEROITIC CURSIVE NUMBER SIX THOUSAND
case 0x109E1: retval = 7000; break; // MEROITIC CURSIVE NUMBER SEVEN THOUSAND
case 0x109E2: retval = 8000; break; // MEROITIC CURSIVE NUMBER EIGHT THOUSAND
case 0x109E3: retval = 9000; break; // MEROITIC CURSIVE NUMBER NINE THOUSAND
case 0x109E4: retval = 10000; break; // MEROITIC CURSIVE NUMBER TEN THOUSAND
case 0x109E5: retval = 20000; break; // MEROITIC CURSIVE NUMBER TWENTY THOUSAND
case 0x109E6: retval = 30000; break; // MEROITIC CURSIVE NUMBER THIRTY THOUSAND
case 0x109E7: retval = 40000; break; // MEROITIC CURSIVE NUMBER FORTY THOUSAND
case 0x109E8: retval = 50000; break; // MEROITIC CURSIVE NUMBER FIFTY THOUSAND
case 0x109E9: retval = 60000; break; // MEROITIC CURSIVE NUMBER SIXTY THOUSAND
case 0x109EA: retval = 70000; break; // MEROITIC CURSIVE NUMBER SEVENTY THOUSAND
case 0x109EB: retval = 80000; break; // MEROITIC CURSIVE NUMBER EIGHTY THOUSAND
case 0x109EC: retval = 90000; break; // MEROITIC CURSIVE NUMBER NINETY THOUSAND
case 0x109ED: retval = 100000; break; // MEROITIC CURSIVE NUMBER ONE HUNDRED THOUSAND
case 0x109EE: retval = 200000; break; // MEROITIC CURSIVE NUMBER TWO HUNDRED THOUSAND
case 0x109EF: retval = 300000; break; // MEROITIC CURSIVE NUMBER THREE HUNDRED THOUSAND
case 0x109F0: retval = 400000; break; // MEROITIC CURSIVE NUMBER FOUR HUNDRED THOUSAND
case 0x109F1: retval = 500000; break; // MEROITIC CURSIVE NUMBER FIVE HUNDRED THOUSAND
case 0x109F2: retval = 600000; break; // MEROITIC CURSIVE NUMBER SIX HUNDRED THOUSAND
case 0x109F3: retval = 700000; break; // MEROITIC CURSIVE NUMBER SEVEN HUNDRED THOUSAND
case 0x109F4: retval = 800000; break; // MEROITIC CURSIVE NUMBER EIGHT HUNDRED THOUSAND
case 0x109F5: retval = 900000; break; // MEROITIC CURSIVE NUMBER NINE HUNDRED THOUSAND
case 0x10A46: retval = 100; break; // KHAROSHTHI NUMBER ONE HUNDRED
case 0x10A47: retval = 1000; break; // KHAROSHTHI NUMBER ONE THOUSAND
case 0x10A7E: retval = 50; break; // OLD SOUTH ARABIAN NUMBER FIFTY
case 0x10AEF: retval = 100; break; // MANICHAEAN NUMBER ONE HUNDRED
case 0x10B5E: retval = 100; break; // INSCRIPTIONAL PARTHIAN NUMBER ONE HUNDRED
case 0x10B5F: retval = 1000; break; // INSCRIPTIONAL PARTHIAN NUMBER ONE THOUSAND
case 0x10B7E: retval = 100; break; // INSCRIPTIONAL PAHLAVI NUMBER ONE HUNDRED
case 0x10B7F: retval = 1000; break; // INSCRIPTIONAL PAHLAVI NUMBER ONE THOUSAND
case 0x10BAF: retval = 100; break; // PSALTER PAHLAVI NUMBER ONE HUNDRED
case 0x10CFD: retval = 50; break; // OLD HUNGARIAN NUMBER FIFTY
case 0x10CFE: retval = 100; break; // OLD HUNGARIAN NUMBER ONE HUNDRED
case 0x10CFF: retval = 1000; break; // OLD HUNGARIAN NUMBER ONE THOUSAND
case 0x10E6C: retval = 40; break; // RUMI NUMBER FORTY
case 0x10E6D: retval = 50; break; // RUMI NUMBER FIFTY
case 0x10E6E: retval = 60; break; // RUMI NUMBER SIXTY
case 0x10E6F: retval = 70; break; // RUMI NUMBER SEVENTY
case 0x10E70: retval = 80; break; // RUMI NUMBER EIGHTY
case 0x10E71: retval = 90; break; // RUMI NUMBER NINETY
case 0x10E72: retval = 100; break; // RUMI NUMBER ONE HUNDRED
case 0x10E73: retval = 200; break; // RUMI NUMBER TWO HUNDRED
case 0x10E74: retval = 300; break; // RUMI NUMBER THREE HUNDRED
case 0x10E75: retval = 400; break; // RUMI NUMBER FOUR HUNDRED
case 0x10E76: retval = 500; break; // RUMI NUMBER FIVE HUNDRED
case 0x10E77: retval = 600; break; // RUMI NUMBER SIX HUNDRED
case 0x10E78: retval = 700; break; // RUMI NUMBER SEVEN HUNDRED
case 0x10E79: retval = 800; break; // RUMI NUMBER EIGHT HUNDRED
case 0x10E7A: retval = 900; break; // RUMI NUMBER NINE HUNDRED
case 0x1105E: retval = 40; break; // BRAHMI NUMBER FORTY
case 0x1105F: retval = 50; break; // BRAHMI NUMBER FIFTY
case 0x11060: retval = 60; break; // BRAHMI NUMBER SIXTY
case 0x11061: retval = 70; break; // BRAHMI NUMBER SEVENTY
case 0x11062: retval = 80; break; // BRAHMI NUMBER EIGHTY
case 0x11063: retval = 90; break; // BRAHMI NUMBER NINETY
case 0x11064: retval = 100; break; // BRAHMI NUMBER ONE HUNDRED
case 0x11065: retval = 1000; break; // BRAHMI NUMBER ONE THOUSAND
case 0x11C66: retval = 40; break; // BHAIKSUKI NUMBER FORTY
case 0x11C67: retval = 50; break; // BHAIKSUKI NUMBER FIFTY
case 0x11C68: retval = 60; break; // BHAIKSUKI NUMBER SIXTY
case 0x11C69: retval = 70; break; // BHAIKSUKI NUMBER SEVENTY
case 0x11C6A: retval = 80; break; // BHAIKSUKI NUMBER EIGHTY
case 0x11C6B: retval = 90; break; // BHAIKSUKI NUMBER NINETY
case 0x11C6C: retval = 100; break; // BHAIKSUKI HUNDREDS UNIT MARK
case 0x111ED: retval = 40; break; // SINHALA ARCHAIC NUMBER FORTY
case 0x111EE: retval = 50; break; // SINHALA ARCHAIC NUMBER FIFTY
case 0x111EF: retval = 60; break; // SINHALA ARCHAIC NUMBER SIXTY
case 0x111F0: retval = 70; break; // SINHALA ARCHAIC NUMBER SEVENTY
case 0x111F1: retval = 80; break; // SINHALA ARCHAIC NUMBER EIGHTY
case 0x111F2: retval = 90; break; // SINHALA ARCHAIC NUMBER NINETY
case 0x111F3: retval = 100; break; // SINHALA ARCHAIC NUMBER ONE HUNDRED
case 0x111F4: retval = 1000; break; // SINHALA ARCHAIC NUMBER ONE THOUSAND
case 0x118ED: retval = 40; break; // WARANG CITI NUMBER FORTY
case 0x118EE: retval = 50; break; // WARANG CITI NUMBER FIFTY
case 0x118EF: retval = 60; break; // WARANG CITI NUMBER SIXTY
case 0x118F0: retval = 70; break; // WARANG CITI NUMBER SEVENTY
case 0x118F1: retval = 80; break; // WARANG CITI NUMBER EIGHTY
case 0x118F2: retval = 90; break; // WARANG CITI NUMBER NINETY
case 0x12432: retval = 216000; break; // CUNEIFORM NUMERIC SIGN SHAR2 TIMES GAL PLUS DISH
case 0x12433: retval = 432000; break; // CUNEIFORM NUMERIC SIGN SHAR2 TIMES GAL PLUS MIN
case 0x12467: retval = 40; break; // CUNEIFORM NUMERIC SIGN ELAMITE FORTY
case 0x12468: retval = 50; break; // CUNEIFORM NUMERIC SIGN ELAMITE FIFTY
case 0x16B5C: retval = 100; break; // PAHAWH HMONG NUMBER HUNDREDS
case 0x16B5D: retval = 10000; break; // PAHAWH HMONG NUMBER TEN THOUSANDS
case 0x16B5E: retval = 1000000; break; // PAHAWH HMONG NUMBER MILLIONS
case 0x16B5F: retval = 100000000; break;// PAHAWH HMONG NUMBER HUNDRED MILLIONS
case 0x1D36C: retval = 40; break; // COUNTING ROD TENS DIGIT FOUR
case 0x1D36D: retval = 50; break; // COUNTING ROD TENS DIGIT FIVE
case 0x1D36E: retval = 60; break; // COUNTING ROD TENS DIGIT SIX
case 0x1D36F: retval = 70; break; // COUNTING ROD TENS DIGIT SEVEN
case 0x1D370: retval = 80; break; // COUNTING ROD TENS DIGIT EIGHT
case 0x1D371: retval = 90; break; // COUNTING ROD TENS DIGIT NINE
default: retval = -2; break;
}
break;
case (0x00000C00): // Java supradecimal
retval = (ch + ((val & 0x3E0) >> 5) & 0x1F) + 10;
break;
}
return retval;
}
boolean isWhitespace(int ch) {
int props = getProperties(ch);
return ((props & 0x00007000) == 0x00004000);
}
byte getDirectionality(int ch) {
int val = getProperties(ch);
byte directionality = (byte)((val & 0x78000000) >> 27);
if (directionality == 0xF ) {
directionality = Character.DIRECTIONALITY_UNDEFINED;
}
return directionality;
}
boolean isMirrored(int ch) {
int props = getProperties(ch);
return ((props & 0x80000000) != 0);
}
static final CharacterData instance = new CharacterData01();
private CharacterData01() {};
// The following tables and code generated using:
// java GenerateCharacter -string -plane 1 -template t:/workspace/open/make/data/characterdata/CharacterData01.java.template -spec t:/workspace/open/make/data/unicodedata/UnicodeData.txt -specialcasing t:/workspace/open/make/data/unicodedata/SpecialCasing.txt -proplist t:/workspace/open/make/data/unicodedata/PropList.txt -o t:/workspace/build/windows-x64-open/support/gensrc/java.base/java/lang/CharacterData01.java -usecharforbyte 11 4 1
// The X table has 2048 entries for a total of 4096 bytes.
static final char X[] = (
"\000\001\002\003\004\004\004\005\006\007\010\011\012\013\014\015\003\003\003"+
"\003\016\004\017\020\004\021\022\023\024\004\025\003\026\027\030\004\031\032"+
"\033\034\004\035\004\036\003\003\003\003\004\004\004\004\004\004\004\004\004"+
"\037\040\041\003\003\003\003\042\043\044\045\046\047\003\050\051\052\003\003"+
"\053\054\055\056\057\060\061\062\063\003\064\065\053\066\067\070\071\072\003"+
"\003\053\053\073\003\074\075\076\077\003\003\003\003\003\003\003\003\003\003"+
"\003\100\003\003\003\003\003\003\003\003\003\003\003\003\101\102\103\104\105"+
"\106\107\110\111\112\113\114\115\116\117\120\121\122\003\003\123\124\125\126"+
"\127\130\131\132\003\003\003\003\004\133\134\003\004\135\136\003\003\003\003"+
"\003\004\137\140\003\004\141\142\143\004\144\145\003\146\147\003\003\003\003"+
"\003\003\003\003\003\003\003\150\151\152\003\003\003\003\003\003\003\003\153"+
"\154\155\004\156\157\004\160\003\003\003\003\003\003\003\003\161\162\163\164"+
"\165\166\003\003\167\170\171\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\004\004\004\004\004\004\004\004\004\004"+
"\004\004\004\004\004\004\004\004\004\004\004\004\004\004\004\004\004\004\172"+
"\003\003\003\173\174\175\176\004\004\004\004\004\004\177\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\004\004\004\004\004\004\004\004\004\004\004\004\004\004\004"+
"\004\004\004\004\004\004\004\004\004\004\004\004\004\004\004\004\004\004\200"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\004\004\004\004\004\004\004"+
"\004\004\004\004\004\004\004\004\004\004\004\201\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\004\004\004\004"+
"\004\004\004\004\004\004\004\004\004\004\004\004\004\160\202\203\003\003\204"+
"\205\004\206\207\210\211\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\004\004\212\213\214"+
"\003\003\215\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216"+
"\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216"+
"\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216"+
"\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216"+
"\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216"+
"\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216"+
"\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216"+
"\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216"+
"\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216"+
"\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216\216"+
"\216\216\216\216\217\216\216\216\216\216\216\216\216\216\216\216\216\216\216"+
"\216\216\216\216\216\216\216\216\216\220\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\004\004\004\004\004\004\004\004\202\003\003\221\216\216\216\216\216"+
"\216\216\216\216\216\216\222\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\004\004\004\223\224\225\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\226\226\226\226\226\226\226\227"+
"\226\230\226\231\232\233\226\234\235\235\236\003\003\003\003\003\235\235\237"+
"\240\003\003\003\003\241\242\243\244\245\246\247\250\251\252\253\254\255\241"+
"\242\256\244\257\260\261\250\262\263\264\265\266\267\270\271\272\273\274\226"+
"\226\226\226\226\226\226\226\226\226\226\226\226\226\226\226\275\276\275\277"+
"\300\301\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\302\303\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\053\053\053\053\053\053"+
"\304\003\305\306\307\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\310\311\312\313\314\315\003\316\003\003\003\003\003\003\003"+
"\003\235\317\235\235\320\321\322\323\324\325\326\327\330\331\003\332\333\334"+
"\335\336\003\003\003\003\235\235\235\235\235\235\235\337\235\235\235\235\235"+
"\235\235\235\235\235\235\235\235\235\235\235\235\235\235\235\235\235\340\341"+
"\235\235\235\320\235\235\340\003\317\235\342\235\343\344\003\003\317\345\346"+
"\347\350\003\351\352\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\003\003\003\003").toCharArray();
// The Y table has 3760 entries for a total of 7520 bytes.
static final char Y[] = (
"\000\000\000\000\000\000\001\000\000\000\000\000\000\000\000\000\000\000\000"+
"\002\000\000\000\000\000\000\000\000\000\002\000\001\000\000\000\000\000\000"+
"\000\003\000\000\000\000\000\000\000\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\002\003"+
"\003\004\005\003\006\007\007\007\007\010\011\012\012\012\012\012\012\012\012"+
"\012\012\012\012\012\012\012\012\003\013\014\014\014\014\015\016\015\015\017"+
"\015\015\020\021\015\015\022\023\024\025\026\027\030\031\015\015\015\015\015"+
"\015\032\033\034\035\036\036\036\036\036\036\036\036\037\040\041\036\036\036"+
"\036\036\036\003\003\042\003\003\003\003\003\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\014\014\014\014\014\014\014\014\014"+
"\014\014\014\014\014\014\014\014\014\014\014\014\014\043\003\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\002\003\000\000\000\000\000\000\000"+
"\000\002\003\003\003\003\003\003\003\044\045\045\045\045\046\047\050\050\050"+
"\050\050\050\050\003\003\051\052\003\003\003\003\001\000\000\000\000\000\000"+
"\000\000\000\053\000\000\000\000\054\003\003\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\055\055\056\003\003\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\057\000\000\003\003\000\000"+
"\000\000\060\061\062\003\003\003\003\003\063\063\063\063\063\063\063\063\063"+
"\063\063\063\063\063\063\063\063\063\063\063\064\064\064\064\064\064\064\064"+
"\064\064\064\064\064\064\064\064\064\064\064\064\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\003\065\065"+
"\065\065\065\003\003\003\063\063\063\063\063\063\063\063\063\063\063\063\063"+
"\063\063\063\063\063\003\003\064\064\064\064\064\064\064\064\064\064\064\064"+
"\064\064\064\064\064\064\003\003\000\000\000\000\003\003\003\003\000\000\000"+
"\000\000\000\000\000\000\000\003\003\003\003\003\057\003\003\003\003\003\003"+
"\003\003\000\000\000\000\000\000\000\000\000\000\000\002\003\003\003\003\000"+
"\000\000\000\000\000\000\000\000\000\000\003\003\003\003\003\000\000\000\000"+
"\003\003\003\003\003\003\003\003\003\003\003\003\066\066\066\003\067\066\066"+
"\066\066\066\066\066\066\066\066\066\066\066\066\066\066\066\066\066\066\066"+
"\066\070\067\003\067\070\066\066\066\066\066\066\066\066\066\066\066\071\072"+
"\073\074\075\066\066\066\066\066\066\066\066\066\066\066\076\077\100\100\101"+
"\066\066\066\066\066\066\066\066\066\066\066\066\066\066\066\067\003\003\003"+
"\102\103\104\105\106\003\003\003\003\003\003\003\003\066\066\066\066\066\066"+
"\066\066\066\067\066\003\003\107\110\111\066\066\066\066\066\066\066\066\066"+
"\066\066\112\113\100\003\114\066\066\066\066\066\066\066\066\066\066\066\066"+
"\066\003\003\071\066\066\066\066\066\066\066\066\066\066\066\066\066\066\066"+
"\066\066\066\066\066\066\066\066\066\066\066\066\066\003\003\075\066\115\115"+
"\115\115\115\116\075\075\003\075\075\075\075\075\075\075\075\075\075\075\075"+
"\075\075\075\075\075\075\075\075\075\075\075\117\055\120\056\003\003\055\055"+
"\066\066\070\066\070\066\066\066\066\066\066\066\066\066\066\066\066\066\003"+
"\003\121\122\003\123\115\115\124\075\003\003\003\003\125\125\125\125\126\003"+
"\003\003\066\066\066\066\066\066\066\066\066\066\066\066\066\066\127\130\066"+
"\066\066\066\066\066\066\066\066\066\066\066\066\066\127\101\066\066\066\066"+
"\131\066\066\066\066\066\066\066\066\066\066\066\066\066\132\122\003\133\105"+
"\106\125\125\125\126\003\003\003\003\066\066\066\066\066\066\066\066\066\066"+
"\066\003\114\134\134\134\066\066\066\066\066\066\066\066\066\066\066\003\072"+
"\072\135\075\066\066\066\066\066\066\066\066\066\067\003\003\072\072\135\075"+
"\066\066\066\066\066\066\066\066\066\003\003\003\071\125\126\003\003\003\003"+
"\003\136\137\140\106\003\003\003\003\003\003\003\003\066\066\066\066\067\003"+
"\003\003\003\003\003\003\003\003\003\003\141\141\141\141\141\141\141\141\141"+
"\141\141\141\141\141\141\141\141\141\141\141\141\141\141\141\141\142\003\003"+
"\003\003\003\003\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143"+
"\143\143\143\143\143\143\143\143\143\143\144\003\003\003\145\146\075\147\147"+
"\147\147\147\150\151\151\151\151\151\151\151\151\151\152\153\154\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\055\055\055\055\055\055\055\155\156\156\156\003\003\157\157"+
"\157\157\157\160\034\034\034\034\161\161\161\161\161\003\003\003\003\003\003"+
"\003\123\121\154\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\162\153\055\163\164\155\165\156\156\003\003\003"+
"\003\003\003\003\000\000\000\000\000\000\000\000\000\000\000\000\002\003\003"+
"\003\166\166\166\166\166\003\003\003\055\167\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\170\055\055\153\055\055\171\122\172\172"+
"\172\172\172\156\156\003\003\003\003\003\003\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\173\156\002\003\003\003\003\055\154\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\174\162\055\055\055\055\163\175\000\176\156\156\121\155\003\166"+
"\166\166\166\166\176\176\156\177\200\200\200\200\201\202\012\012\012\203\003"+
"\003\003\003\003\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000"+
"\000\000\000\000\000\000\000\162\153\055\162\204\205\156\156\156\056\000\000"+
"\000\002\002\000\000\001\000\000\000\000\000\000\000\001\000\000\000\000\176"+
"\003\003\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\170\162\153\055\055\171\122\003\003\166\166\166"+
"\166\166\003\003\003\055\162\001\000\000\000\002\001\002\001\000\000\000\000"+
"\000\000\000\000\000\000\002\000\000\000\002\000\001\000\000\003\206\162\163"+
"\162\207\210\207\210\211\003\002\003\003\210\003\003\001\000\000\162\003\121"+
"\121\121\122\003\121\121\122\003\003\003\003\003\000\000\000\000\000\000\000"+
"\000\000\000\174\162\055\055\055\055\162\205\163\206\000\176\156\156\166\166"+
"\166\166\166\057\057\003\000\000\000\000\000\000\000\000\162\153\055\055\163"+
"\163\162\153\163\121\000\212\003\003\003\003\166\166\166\166\166\003\003\003"+
"\000\000\000\000\000\000\000\174\162\055\055\003\162\162\055\164\155\156\156"+
"\156\156\156\156\156\156\156\156\156\000\000\055\003\000\000\000\000\000\000"+
"\000\000\162\153\055\055\055\163\153\164\213\156\002\003\003\003\003\003\166"+
"\166\166\166\166\003\003\003\134\134\134\134\134\134\214\003\003\003\003\003"+
"\003\003\003\003\000\000\000\000\000\170\153\162\055\055\055\215\003\003\003"+
"\003\065\065\065\065\065\003\003\003\003\003\003\003\003\003\003\003\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\003\120\055\162\055\055\153\055"+
"\171\003\003\166\166\166\166\166\216\156\217\220\220\220\220\220\220\220\220"+
"\220\220\220\220\220\220\220\220\221\221\221\221\221\221\221\221\221\221\221"+
"\221\221\221\221\221\065\065\065\065\065\201\202\012\012\203\003\003\003\003"+
"\003\001\170\055\055\163\153\167\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\173\205\055\163\170\055\213\156\156\156\222"+
"\003\003\003\003\170\055\055\163\153\055\000\000\000\000\003\000\000\055\055"+
"\055\055\055\055\163\121\156\005\156\156\005\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\000\000\000\000\000\000\000\000\000\000\000\000\002"+
"\003\003\003\000\000\000\000\002\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\174\055\055\055\056\055\055\055\223\176\156\156"+
"\003\003\003\003\003\166\166\166\166\166\224\224\224\224\224\216\012\012\012"+
"\203\003\156\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\003"+
"\055\055\055\055\055\055\055\055\055\055\055\210\055\055\055\163\055\153\056"+
"\003\003\003\003\000\000\000\002\000\001\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\170\055\055\056\003\056\055\120\055\205"+
"\121\170\003\003\003\003\166\166\166\166\166\003\003\003\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\003\003\003\225\225\225\225\226\226\226\227"+
"\230\230\231\232\232\232\232\233\233\234\235\236\236\236\230\237\240\241\242"+
"\243\232\244\245\246\247\250\251\252\253\254\254\255\256\257\260\232\261\241"+
"\241\241\241\241\241\241\262\226\226\263\156\156\005\003\003\003\003\003\000"+
"\000\003\003\003\003\003\003\003\003\003\003\003\003\003\003\000\000\000\000"+
"\000\000\000\002\003\003\003\003\003\003\003\003\000\000\000\002\003\003\003"+
"\003\003\003\003\003\003\003\003\003\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\002\065\065\065\065\065\003\003\156\003\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\003\121\121\155\003\003\003\003\003\000\000\000"+
"\000\000\000\000\000\055\055\055\213\156\156\014\014\264\264\217\003\003\003"+
"\003\003\166\166\166\166\166\265\012\012\012\001\000\000\000\000\000\000\000"+
"\000\000\000\003\003\001\000\000\000\000\000\000\000\000\000\003\003\003\003"+
"\003\003\003\003\000\000\002\003\003\003\003\003\174\162\162\162\162\162\162"+
"\162\162\162\162\162\162\162\162\162\162\162\162\162\162\162\162\207\003\003"+
"\003\003\003\003\003\123\121\266\264\264\264\264\264\264\264\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\003\267\267\267\267\267\267\267\267"+
"\267\267\267\267\267\267\267\267\267\267\267\267\267\267\270\003\003\003\003"+
"\003\003\003\003\003\267\267\267\267\267\267\267\267\267\270\003\003\003\003"+
"\003\003\003\003\003\003\003\003\003\003\267\267\267\267\267\267\267\267\267"+
"\267\267\267\267\267\267\267\267\267\267\267\267\267\003\003\000\000\000\000"+
"\000\002\003\003\000\000\000\000\000\000\002\003\000\000\000\000\002\003\003"+
"\003\000\000\000\000\000\003\043\213\271\271\003\003\003\003\003\003\003\003"+
"\003\003\003\003\003\003\014\014\014\014\014\014\014\014\014\014\014\014\014"+
"\014\014\014\014\014\014\014\014\014\014\014\014\014\014\003\003\003\003\003"+
"\014\014\014\041\013\014\014\014\014\014\014\014\014\014\014\014\014\014\272"+
"\215\121\014\272\273\273\274\271\271\271\275\121\121\121\276\043\121\121\121"+
"\014\014\014\014\014\014\014\014\014\014\014\014\014\014\014\121\121\014\014"+
"\014\014\014\014\014\014\014\014\014\014\014\041\003\003\003\003\003\003\003"+
"\003\003\003\003\036\036\036\036\036\036\036\036\036\036\036\036\036\036\036"+
"\036\036\121\277\003\003\003\003\003\003\003\003\003\003\003\003\003\036\036"+
"\036\036\036\036\036\036\036\036\036\042\003\003\003\003\300\300\300\300\300"+
"\301\012\012\012\003\003\003\003\003\003\003\302\302\302\302\302\302\302\302"+
"\302\302\302\302\302\303\303\303\303\303\303\303\303\303\303\303\303\303\302"+
"\302\302\302\302\302\302\302\302\302\302\302\302\303\303\303\304\303\303\303"+
"\303\303\303\303\303\303\302\302\302\302\302\302\302\302\302\302\302\302\302"+
"\303\303\303\303\303\303\303\303\303\303\303\303\303\305\302\003\305\306\305"+
"\306\302\305\302\302\302\302\303\303\307\307\303\303\303\307\303\303\303\303"+
"\303\302\302\302\302\302\302\302\302\302\302\302\302\302\303\303\303\303\303"+
"\303\303\303\303\303\303\303\303\302\306\302\305\306\302\302\302\305\302\302"+
"\302\305\303\303\303\303\303\303\303\303\303\303\303\303\303\302\306\302\305"+
"\302\302\305\305\003\302\302\302\305\303\303\303\303\303\303\303\303\303\303"+
"\303\303\303\302\302\302\302\302\302\302\302\302\302\302\302\302\303\303\303"+
"\303\303\303\303\303\303\303\303\303\303\302\302\302\302\302\302\302\303\303"+
"\303\303\303\303\303\303\303\302\303\303\303\303\303\303\303\303\303\303\303"+
"\303\303\302\302\302\302\302\302\302\302\302\302\302\302\302\303\303\303\303"+
"\303\303\303\303\303\303\303\303\303\302\302\302\302\302\302\302\302\303\303"+
"\303\003\302\302\302\302\302\302\302\302\302\302\302\302\310\303\303\303\303"+
"\303\303\303\303\303\303\303\303\311\303\303\303\302\302\302\302\302\302\302"+
"\302\302\302\302\302\310\303\303\303\303\303\303\303\303\303\303\303\303\311"+
"\303\303\303\302\302\302\302\302\302\302\302\302\302\302\302\310\303\303\303"+
"\303\303\303\303\303\303\303\303\303\311\303\303\303\302\302\302\302\302\302"+
"\302\302\302\302\302\302\310\303\303\303\303\303\303\303\303\303\303\303\303"+
"\311\303\303\303\302\302\302\302\302\302\302\302\302\302\302\302\310\303\303"+
"\303\303\303\303\303\303\303\303\303\303\311\303\303\303\312\003\313\313\313"+
"\313\313\314\314\314\314\314\315\315\315\315\315\316\316\316\316\316\317\317"+
"\317\317\317\121\121\121\121\121\121\121\121\121\121\121\121\121\121\121\121"+
"\121\121\121\121\121\121\121\121\121\121\121\276\014\043\121\121\121\121\121"+
"\121\121\121\276\014\014\014\043\014\014\014\014\014\014\014\276\320\156\156"+
"\003\003\003\003\003\003\003\123\121\121\123\121\121\121\121\121\121\121\003"+
"\003\003\003\003\003\003\003\055\055\055\056\055\055\055\055\055\055\055\055"+
"\056\120\055\055\055\120\056\055\055\056\003\003\003\003\003\003\003\003\003"+
"\003\066\066\067\102\103\103\103\103\121\121\121\122\003\003\003\003\321\321"+
"\321\321\321\321\321\321\321\321\321\321\321\321\321\321\321\322\322\322\322"+
"\322\322\322\322\322\322\322\322\322\322\322\322\322\121\205\121\122\003\003"+
"\323\323\323\323\323\003\003\125\324\324\325\324\324\324\324\324\324\324\324"+
"\324\324\324\324\324\325\326\326\325\325\324\324\324\324\326\324\324\325\325"+
"\003\003\003\326\003\325\325\325\325\324\325\326\326\325\325\325\325\325\325"+
"\326\326\325\324\326\324\324\324\326\324\324\325\324\326\326\324\324\324\324"+
"\324\325\324\324\324\324\324\324\324\324\003\003\325\324\325\324\324\325\324"+
"\324\324\324\324\324\324\324\003\003\003\003\003\003\003\003\003\003\327\003"+
"\003\003\003\003\003\003\036\036\036\036\036\036\003\003\036\036\036\036\036"+
"\036\036\036\036\036\036\036\036\036\036\036\036\036\003\003\003\003\003\003"+
"\036\036\036\036\036\036\036\042\330\036\036\036\036\036\036\036\330\036\036"+
"\036\036\036\036\036\330\036\036\036\036\036\036\036\036\036\036\036\036\036"+
"\036\036\036\036\036\003\003\003\003\003\331\332\332\332\332\333\334\003\014"+
"\014\014\014\014\014\014\014\014\014\014\014\014\014\014\041\335\335\335\335"+
"\335\335\335\335\335\335\335\335\335\014\014\014\335\335\335\335\335\335\335"+
"\335\335\335\335\335\335\036\003\003\335\335\335\335\335\335\335\335\335\335"+
"\335\335\335\014\014\014\014\014\014\014\014\014\014\014\014\014\014\014\014"+
"\014\041\003\003\003\003\003\003\003\003\003\003\003\003\014\014\014\014\014"+
"\014\014\014\014\014\014\014\014\014\041\003\003\003\003\003\003\014\014\014"+
"\014\014\014\014\014\014\014\014\014\014\014\014\014\014\014\014\014\014\014"+
"\003\003\014\014\014\014\041\003\003\003\014\003\003\003\003\003\003\003\036"+
"\036\036\003\003\003\003\003\003\003\003\003\003\003\003\003\036\036\036\036"+
"\036\036\036\036\036\036\036\036\036\336\337\337\036\036\036\036\036\036\036"+
"\036\036\036\042\003\003\003\003\003\036\036\036\036\036\036\042\003\036\036"+
"\036\036\042\003\003\003\036\036\036\036\003\003\003\003\036\036\036\036\036"+
"\003\003\003\036\036\036\036\003\003\003\003\036\036\036\036\036\036\036\036"+
"\036\036\036\036\036\036\036\003\003\003\003\003\003\003\003\003\036\036\036"+
"\036\036\036\036\036\036\036\036\036\036\036\036\042\036\036\036\036\036\036"+
"\042\003\036\036\036\036\036\036\036\036\036\036\036\036\036\036\003\003\003"+
"\003\003\003\003\003\003\003\036\036\036\036\036\036\036\036\036\036\036\036"+
"\003\003\003\003\042\003\003\003\003\003\003\003\036\036\036\036\036\036\036"+
"\036\036\036\036\042\003\003\003\003\003\003\003\003\003\003\003\003").toCharArray();
// The A table has 448 entries for a total of 1792 bytes.
static final int A[] = new int[448];
static final String A_DATA =
"\000\u7005\000\u7005\u7800\000\000\u7005\000\u7005\u7800\000\u7800\000\u7800"+
"\000\000\030\u6800\030\000\030\u7800\000\u7800\000\000\u074B\000\u074B\000"+
"\u074B\000\u074B\000\u046B\000\u058B\000\u080B\000\u080B\000\u080B\u7800\000"+
"\000\034\000\034\000\034\u6800\u780A\u6800\u780A\u6800\u77EA\u6800\u744A\u6800"+
"\u77AA\u6800\u742A\u6800\u780A\u6800\u76CA\u6800\u774A\u6800\u780A\u6800\u780A"+
"\u6800\u766A\u6800\u752A\u6800\u750A\u6800\u74EA\u6800\u74EA\u6800\u74CA\u6800"+
"\u74AA\u6800\u748A\u6800\u74CA\u6800\u754A\u6800\u752A\u6800\u750A\u6800\u74EA"+
"\u6800\u74CA\u6800\u772A\u6800\u780A\u6800\u764A\u6800\u780A\u6800\u080B\u6800"+
"\u080B\u6800\u080B\u6800\u080B\u6800\034\u6800\034\u6800\034\u6800\u06CB\u6800"+
"\u080B\u6800\034\000\034\000\034\u7800\000\u6800\034\u7800\000\000\034\u4000"+
"\u3006\u4000\u3006\u1800\u040B\u1800\u040B\u1800\u040B\u1800\u040B\u1800\u052B"+
"\u1800\u064B\u1800\u080B\u1800\u080B\u1800\u080B\000\u042B\000\u048B\000\u050B"+
"\000\u080B\000\u7005\000\u780A\000\u780A\u7800\000\u4000\u3006\u4000\u3006"+
"\u4000\u3006\u7800\000\u7800\000\000\030\000\030\000\u760A\000\u760A\000\u76EA"+
"\000\u740A\000\u780A\242\u7001\242\u7001\241\u7002\241\u7002\000\u3409\000"+
"\u3409\u0800\u7005\u0800\u7005\u0800\u7005\u7800\000\u7800\000\u0800\u7005"+
"\u7800\000\u0800\030\u0800\u052B\u0800\u052B\u0800\u052B\u0800\u05EB\u0800"+
"\u070B\u0800\u080B\u0800\u080B\u0800\u080B\u0800\u7005\u0800\034\u0800\034"+
"\u0800\u050B\u0800\u050B\u0800\u050B\u0800\u058B\u0800\u06AB\u7800\000\u0800"+
"\u074B\u0800\u074B\u0800\u074B\u0800\u074B\u0800\u072B\u0800\u072B\u0800\u07AB"+
"\u0800\u04CB\u0800\u080B\u7800\000\u0800\u04CB\u0800\u052B\u0800\u05AB\u0800"+
"\u06CB\u0800\u080B\u0800\u056B\u0800\u066B\u0800\u078B\u0800\u080B\u7800\000"+
"\u6800\030\u0800\u042B\u0800\u042B\u0800\u054B\u0800\u066B\u0800\u7005\u4000"+
"\u3006\u7800\000\u4000\u3006\u4000\u3006\u4000\u3006\u4000\u3006\u7800\000"+
"\u7800\000\u4000\u3006\u0800\u04CB\u0800\u05EB\u0800\030\u0800\030\u0800\030"+
"\u7800\000\u0800\u7005\u0800\u048B\u0800\u080B\u0800\030\u0800\034\u0800\u7005"+
"\u0800\u7005\u4000\u3006\u7800\000\u0800\u06CB\u6800\030\u6800\030\u0800\u05CB"+
"\u0800\u06EB\u7800\000\u0800\u070B\u0800\u070B\u0800\u070B\u0800\u070B\u0800"+
"\u07AB\u0902\u7001\u0902\u7001\u0902\u7001\u7800\000\u0901\u7002\u0901\u7002"+
"\u0901\u7002\u7800\000\u0800\u04EB\u0800\u054B\u0800\u05CB\u0800\u080B\u3000"+
"\u042B\u3000\u042B\u3000\u054B\u3000\u066B\u3000\u080B\u3000\u080B\u3000\u080B"+
"\u7800\000\000\u3008\u4000\u3006\000\u3008\000\u7005\u4000\u3006\000\030\000"+
"\030\000\030\u6800\u05EB\u6800\u05EB\u6800\u070B\u6800\u042B\000\u3749\000"+
"\u3749\000\u3008\000\u3008\u4000\u3006\000\u3008\000\u3008\u4000\u3006\000"+
"\030\000\u1010\000\u3609\000\u3609\u4000\u3006\000\u7005\000\u7005\u4000\u3006"+
"\u4000\u3006\u4000\u3006\000\u3549\000\u3549\000\u7005\u4000\u3006\000\u7005"+
"\000\u3008\000\u3008\000\u7005\000\u7005\000\030\u7800\000\000\u040B\000\u040B"+
"\000\u040B\000\u040B\000\u052B\000\u064B\000\u080B\000\u080B\u7800\000\u4000"+
"\u3006\000\u3008\u4000\u3006\u4000\u3006\u4000\u3006\000\u7005\000\u3008\u7800"+
"\000\u7800\000\000\u3008\000\u3008\000\u3008\000\030\000\u7005\u4000\u3006"+
"\000\030\u6800\030\u7800\000\000\u3008\u4000\u3006\000\u060B\000\u072B\000"+
"\030\000\034\202\u7001\202\u7001\201\u7002\201\u7002\000\030\u4000\u3006\000"+
"\u3008\000\u3006\000\u04EB\000\u04EB\000\u744A\000\u744A\000\u776A\000\u776A"+
"\000\u776A\000\u76AA\000\u76AA\000\u76AA\000\u76AA\000\u758A\000\u758A\000"+
"\u758A\000\u746A\000\u746A\000\u746A\000\u77EA\000\u77EA\000\u77CA\000\u77CA"+
"\000\u77CA\000\u76AA\000\u768A\000\u768A\000\u768A\000\u780A\000\u780A\000"+
"\u75AA\000\u75AA\000\u75AA\000\u758A\000\u752A\000\u750A\000\u750A\000\u74EA"+
"\000\u74CA\000\u74AA\000\u74CA\000\u74CA\000\u74AA\000\u748A\000\u748A\000"+
"\u746A\000\u746A\000\u744A\000\u742A\000\u740A\000\u770A\000\u770A\000\u770A"+
"\000\u764A\000\u764A\000\u764A\000\u764A\000\u762A\000\u762A\000\u760A\000"+
"\u752A\000\u752A\000\u780A\000\u776A\000\u776A\u7800\000\000\u7004\000\u7004"+
"\u7800\000\000\u05EB\u4000\u3006\000\u7004\000\u7005\000\u7005\000\u7005\u7800"+
"\000\u4800\u1010\u4800\u1010\000\034\000\u3008\000\u3008\000\u3008\000\u3008"+
"\u4800\u1010\u4800\u1010\u4000\u3006\u4000\u3006\000\034\u4000\u3006\u6800"+
"\034\000\u042B\000\u042B\000\u054B\000\u066B\000\u7001\000\u7001\000\u7002"+
"\000\u7002\000\u7002\u7800\000\000\u7001\u7800\000\u7800\000\000\u7001\u7800"+
"\000\000\u7002\000\u7001\000\031\000\u7002\uE800\031\000\u7001\000\u7002\u1800"+
"\u3649\u1800\u3649\u1800\u3509\u1800\u3509\u1800\u37C9\u1800\u37C9\u1800\u3689"+
"\u1800\u3689\u1800\u3549\u1800\u3549\000\034\000\030\u088A\u7001\u088A\u7001"+
"\u0889\u7002\u0889\u7002\u0800\u3609\u0800\u3609\u1000\u7005\u1000\u7005\u7800"+
"\000\u1000\u7005\u1000\u7005\u7800\000\u6800\031\u6800\031\u7800\000\u6800"+
"\034\u1800\u040B\u1800\u07EB\u1800\u07EB\u1800\u07EB\u1800\u07EB\u6800\u06AB"+
"\u6800\u068B\u7800\000\000\034\000\034\u6800\034\u6800\033\u6800\033\u6800"+
"\033";
// The B table has 448 entries for a total of 896 bytes.
static final char B[] = (
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\004\004\004\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\004\000\004\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\004\004\004\000\000\000\000\000\000\000\000\000\000\000"+
"\004\004\004\004\004\000\000\000\000\000\004\000\000\004\004\000\000\000\000"+
"\000\000\004\000\000\000\000\000\000\000\000\000\000\000\000\000\000\004\000"+
"\000\004\000\000\004\000\000\004\004\000\000\000\004\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\020\020\020\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"+
"\000\000\000\000\000\006\006\000\000\000\000").toCharArray();
// In all, the character property tables require 13408 bytes.
static {
{ // THIS CODE WAS AUTOMATICALLY CREATED BY GenerateCharacter:
char[] data = A_DATA.toCharArray();
assert (data.length == (448 * 2));
int i = 0, j = 0;
while (i < (448 * 2)) {
int entry = data[i++] << 16;
A[j++] = entry | data[i++];
}
}
}
}
| {
"pile_set_name": "Github"
} |
<?php
/** Docblock */
interface Foo
{
public function bar();
}
class Foo
{
public function bar()
{
}
}
function baz()
{
// a one-line comment
print '*'; // a one-line comment
/* a one-line comment */
print '*'; /* a one-line comment */
/* a one-line comment
*/
print '*'; /* a one-line comment
*/
print '*'; // @codeCoverageIgnore
print '*'; // @codeCoverageIgnoreStart
print '*';
print '*'; // @codeCoverageIgnoreEnd
print '*';
}
| {
"pile_set_name": "Github"
} |
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2013 Erwin Coumans http://bulletphysics.org
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it freely,
subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef BT_MULTIBODY_DYNAMICS_WORLD_H
#define BT_MULTIBODY_DYNAMICS_WORLD_H
#include "BulletDynamics/Dynamics/btDiscreteDynamicsWorld.h"
#define BT_USE_VIRTUAL_CLEARFORCES_AND_GRAVITY
class btMultiBody;
class btMultiBodyConstraint;
class btMultiBodyConstraintSolver;
struct MultiBodyInplaceSolverIslandCallback;
///The btMultiBodyDynamicsWorld adds Featherstone multi body dynamics to Bullet
///This implementation is still preliminary/experimental.
class btMultiBodyDynamicsWorld : public btDiscreteDynamicsWorld
{
protected:
btAlignedObjectArray<btMultiBody*> m_multiBodies;
btAlignedObjectArray<btMultiBodyConstraint*> m_multiBodyConstraints;
btAlignedObjectArray<btMultiBodyConstraint*> m_sortedMultiBodyConstraints;
btMultiBodyConstraintSolver* m_multiBodyConstraintSolver;
MultiBodyInplaceSolverIslandCallback* m_solverMultiBodyIslandCallback;
virtual void calculateSimulationIslands();
virtual void updateActivationState(btScalar timeStep);
virtual void solveConstraints(btContactSolverInfo& solverInfo);
virtual void serializeMultiBodies(btSerializer* serializer);
public:
btMultiBodyDynamicsWorld(btDispatcher* dispatcher,btBroadphaseInterface* pairCache,btMultiBodyConstraintSolver* constraintSolver,btCollisionConfiguration* collisionConfiguration);
virtual ~btMultiBodyDynamicsWorld ();
virtual void addMultiBody(btMultiBody* body, short group= btBroadphaseProxy::DefaultFilter, short mask=btBroadphaseProxy::AllFilter);
virtual void removeMultiBody(btMultiBody* body);
virtual int getNumMultibodies() const
{
return m_multiBodies.size();
}
btMultiBody* getMultiBody(int mbIndex)
{
return m_multiBodies[mbIndex];
}
virtual void addMultiBodyConstraint( btMultiBodyConstraint* constraint);
virtual int getNumMultiBodyConstraints() const
{
return m_multiBodyConstraints.size();
}
virtual btMultiBodyConstraint* getMultiBodyConstraint( int constraintIndex)
{
return m_multiBodyConstraints[constraintIndex];
}
virtual const btMultiBodyConstraint* getMultiBodyConstraint( int constraintIndex) const
{
return m_multiBodyConstraints[constraintIndex];
}
virtual void removeMultiBodyConstraint( btMultiBodyConstraint* constraint);
virtual void integrateTransforms(btScalar timeStep);
virtual void debugDrawWorld();
virtual void debugDrawMultiBodyConstraint(btMultiBodyConstraint* constraint);
void forwardKinematics();
virtual void clearForces();
virtual void clearMultiBodyConstraintForces();
virtual void clearMultiBodyForces();
virtual void applyGravity();
virtual void serialize(btSerializer* serializer);
};
#endif //BT_MULTIBODY_DYNAMICS_WORLD_H
| {
"pile_set_name": "Github"
} |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dubbo.registry.sofa;
import org.apache.dubbo.common.URL;
import org.apache.dubbo.common.logger.Logger;
import org.apache.dubbo.common.logger.LoggerFactory;
import org.apache.dubbo.common.utils.ConfigUtils;
import org.apache.dubbo.common.utils.StringUtils;
import org.apache.dubbo.registry.NotifyListener;
import org.apache.dubbo.registry.support.FailbackRegistry;
import com.alipay.sofa.registry.client.api.RegistryClient;
import com.alipay.sofa.registry.client.api.RegistryClientConfig;
import com.alipay.sofa.registry.client.api.Subscriber;
import com.alipay.sofa.registry.client.api.model.RegistryType;
import com.alipay.sofa.registry.client.api.model.UserData;
import com.alipay.sofa.registry.client.api.registration.PublisherRegistration;
import com.alipay.sofa.registry.client.api.registration.SubscriberRegistration;
import com.alipay.sofa.registry.client.provider.DefaultRegistryClient;
import com.alipay.sofa.registry.client.provider.DefaultRegistryClientConfigBuilder;
import com.alipay.sofa.registry.core.model.ScopeEnum;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import static org.apache.dubbo.common.constants.CommonConstants.APPLICATION_KEY;
import static org.apache.dubbo.common.constants.CommonConstants.DUBBO;
import static org.apache.dubbo.common.constants.CommonConstants.GROUP_KEY;
import static org.apache.dubbo.common.constants.CommonConstants.VERSION_KEY;
import static org.apache.dubbo.registry.Constants.CONSUMER_PROTOCOL;
import static org.apache.dubbo.registry.Constants.PROVIDER_PROTOCOL;
import static org.apache.dubbo.registry.Constants.REGISTER_KEY;
import static org.apache.dubbo.registry.Constants.SUBSCRIBE_KEY;
import static org.apache.dubbo.registry.sofa.SofaRegistryConstants.ADDRESS_WAIT_TIME_KEY;
import static org.apache.dubbo.registry.sofa.SofaRegistryConstants.DEFAULT_GROUP;
import static org.apache.dubbo.registry.sofa.SofaRegistryConstants.LOCAL_DATA_CENTER;
import static org.apache.dubbo.registry.sofa.SofaRegistryConstants.LOCAL_REGION;
/**
* The Sofa registry.
*
* @since 2.7.2
*/
public class SofaRegistry extends FailbackRegistry {
private static final Logger LOGGER = LoggerFactory.getLogger(SofaRegistry.class);
/**
* Cache subscriber by dataId
*/
private final Map<String, Subscriber> subscribers = new ConcurrentHashMap<>();
/**
* Direct registry client
*/
private RegistryClient registryClient;
/**
* wait address from registry
*/
private int waitAddressTimeout;
/**
* Instantiates a new Sofa registry.
*
* @param url the url
*/
public SofaRegistry(URL url) {
super(url);
if (LOGGER.isInfoEnabled()) {
LOGGER.info("Build sofa registry by url:" + url);
}
this.registryClient = buildClient(url);
this.waitAddressTimeout = Integer.parseInt(ConfigUtils.getProperty(ADDRESS_WAIT_TIME_KEY, "5000"));
}
/**
* Build client registry client.
*
* @param url the url
* @return the registry client
*/
protected RegistryClient buildClient(URL url) {
RegistryClientConfig config = DefaultRegistryClientConfigBuilder.start()
.setDataCenter(LOCAL_DATA_CENTER)
.setZone(LOCAL_REGION)
.setRegistryEndpoint(url.getHost())
.setRegistryEndpointPort(url.getPort()).build();
DefaultRegistryClient registryClient = new DefaultRegistryClient(config);
registryClient.init();
return registryClient;
}
@Override
public boolean isAvailable() {
return true;
}
@Override
public void doRegister(URL url) {
if (!url.getParameter(REGISTER_KEY, true)
|| CONSUMER_PROTOCOL.equals(url.getProtocol())) {
return;
}
String serviceName = buildServiceName(url);
String serviceData = url.toFullString();
PublisherRegistration registration = new PublisherRegistration(serviceName);
addAttributesForPub(registration);
registryClient.register(registration, serviceData);
}
/**
* Add attributes for pub.
*
* @param publisherRegistration the publisher registration
*/
protected void addAttributesForPub(PublisherRegistration publisherRegistration) {
publisherRegistration.setGroup(DEFAULT_GROUP);
}
@Override
public void doUnregister(URL url) {
if (!url.getParameter(REGISTER_KEY, true)
|| CONSUMER_PROTOCOL.equals(url.getProtocol())) {
return;
}
String serviceName = buildServiceName(url);
registryClient.unregister(serviceName, DEFAULT_GROUP, RegistryType.PUBLISHER);
}
@Override
public void doSubscribe(URL url, final NotifyListener listener) {
if (!url.getParameter(SUBSCRIBE_KEY, true)
|| PROVIDER_PROTOCOL.equals(url.getProtocol())) {
return;
}
String serviceName = buildServiceName(url);
// com.alipay.test.TestService:1.0:group@dubbo
Subscriber listSubscriber = subscribers.get(serviceName);
if (listSubscriber != null) {
LOGGER.warn("Service name [" + serviceName + "] have bean registered in SOFARegistry.");
CountDownLatch countDownLatch = new CountDownLatch(1);
handleRegistryData(listSubscriber.peekData(), listener, countDownLatch);
waitAddress(serviceName, countDownLatch);
return;
}
final CountDownLatch latch = new CountDownLatch(1);
SubscriberRegistration subscriberRegistration = new SubscriberRegistration(serviceName,
(dataId, data) -> {
//record change
printAddressData(dataId, data);
handleRegistryData(data, listener, latch);
});
addAttributesForSub(subscriberRegistration);
listSubscriber = registryClient.register(subscriberRegistration);
subscribers.put(serviceName, listSubscriber);
waitAddress(serviceName, latch);
}
private void waitAddress(String serviceName, CountDownLatch countDownLatch) {
try {
if (!countDownLatch.await(waitAddressTimeout, TimeUnit.MILLISECONDS)) {
LOGGER.warn("Subscribe data failed by dataId " + serviceName);
}
} catch (Exception e) {
LOGGER.error("Error when wait Address!", e);
}
}
@Override
public void doUnsubscribe(URL url, NotifyListener listener) {
if (!url.getParameter(SUBSCRIBE_KEY, true)
|| PROVIDER_PROTOCOL.equals(url.getProtocol())) {
return;
}
String serviceName = buildServiceName(url);
registryClient.unregister(serviceName, DEFAULT_GROUP, RegistryType.SUBSCRIBER);
}
private void handleRegistryData(UserData data, NotifyListener notifyListener,
CountDownLatch latch) {
try {
List<URL> urls = new ArrayList<>();
if (null != data) {
List<String> datas = flatUserData(data);
for (String serviceUrl : datas) {
URL url = URL.valueOf(serviceUrl);
String serverApplication = url.getParameter(APPLICATION_KEY);
if (StringUtils.isNotEmpty(serverApplication)) {
url = url.addParameter("dstApp", serverApplication);
}
urls.add(url);
}
}
notifyListener.notify(urls);
} finally {
latch.countDown();
}
}
private String buildServiceName(URL url) {
// return url.getServiceKey();
StringBuilder buf = new StringBuilder();
buf.append(url.getServiceInterface());
String version = url.getParameter(VERSION_KEY);
if (StringUtils.isNotEmpty(version)) {
buf.append(":").append(version);
}
String group = url.getParameter(GROUP_KEY);
if (StringUtils.isNotEmpty(group)) {
buf.append(":").append(group);
}
buf.append("@").append(DUBBO);
return buf.toString();
}
/**
* Print address data.
*
* @param dataId the data id
* @param userData the user data
*/
protected void printAddressData(String dataId, UserData userData) {
List<String> datas;
if (userData == null) {
datas = new ArrayList<>(0);
} else {
datas = flatUserData(userData);
}
StringBuilder sb = new StringBuilder();
for (String provider : datas) {
sb.append(" >>> ").append(provider).append("\n");
}
if (LOGGER.isInfoEnabled()) {
LOGGER.info("Receive updated RPC service addresses: service[" + dataId
+ "]\n .Available target addresses size [" + datas.size() + "]\n"
+ sb.toString());
}
}
/**
* Add attributes for sub.
*
* @param subscriberRegistration the subscriber registration
*/
protected void addAttributesForSub(SubscriberRegistration subscriberRegistration) {
subscriberRegistration.setGroup(DEFAULT_GROUP);
subscriberRegistration.setScopeEnum(ScopeEnum.global);
}
/**
* Flat user data list.
*
* @param userData the user data
* @return the list
*/
protected List<String> flatUserData(UserData userData) {
List<String> result = new ArrayList<>();
Map<String, List<String>> zoneData = userData.getZoneData();
for (Map.Entry<String, List<String>> entry : zoneData.entrySet()) {
result.addAll(entry.getValue());
}
return result;
}
}
| {
"pile_set_name": "Github"
} |
library(dash)
library(dashCoreComponents)
library(dashHtmlComponents)
transform_value = function(value){
return(10 ** value)
}
app <- Dash$new()
transform_value = function(value){
10 ** value
}
app$layout(
htmlDiv(
list(
dccRangeSlider(
id='non-linear-range-slider',
marks=unlist(lapply(list(1:4), function(x){10**x})),
max=3,
value=list(0.1, 2),
dots=FALSE,
step=0.01,
updatemode='drag'
),
htmlDiv(id='output-container-range-slider-non-linear', style=list('margin-top' = 20))
)
))
app$callback(
output(id = 'output-container-range-slider-non-linear', property='children'),
params=list(input(id='non-linear-range-slider', property='value')),
function(value) {
transformed_value = lapply(value, transform_value)
sprintf('Linear Value: %g, Log Value: [%0.2f, %0.2f]', value[2],transformed_value[1], transformed_value[2])
})
app$run_server()
| {
"pile_set_name": "Github"
} |
export default (a: number, b: number): number => a * b;
| {
"pile_set_name": "Github"
} |
/* -*- c++ -*- */
/*
* @file
* @author (C) 2015 by Roman Khassraf <[email protected]>
* @section LICENSE
*
* Gr-gsm is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* Gr-gsm is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with gr-gsm; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/
#ifndef INCLUDED_GSM_TCH_F_DECODER_H
#define INCLUDED_GSM_TCH_F_DECODER_H
#include <grgsm/api.h>
#include <gnuradio/block.h>
namespace gr {
namespace gsm {
enum tch_mode
{
TCH_AFS12_2,
TCH_AFS10_2,
TCH_AFS7_95,
TCH_AFS7_4,
TCH_AFS6_7,
TCH_AFS5_9,
TCH_AFS5_15,
TCH_AFS4_75,
TCH_FS,
TCH_EFR,
TCH_HS,
};
/*!
* \brief <+description of block+>
* \ingroup gsm
*
*/
class GRGSM_API tch_f_decoder : virtual public gr::block
{
public:
typedef boost::shared_ptr<tch_f_decoder> sptr;
/*!
* \brief Return a shared_ptr to a new instance of gsm::tch_f_decoder.
*
* To avoid accidental use of raw pointers, gsm::tch_f_decoder's
* constructor is in a private implementation
* class. gsm::tch_f_decoder::make is the public interface for
* creating new instances.
*/
static sptr make(tch_mode mode, bool boundary_check=false);
};
} // namespace gsm
} // namespace gr
#endif /* INCLUDED_GSM_TCH_F_DECODER_H */
| {
"pile_set_name": "Github"
} |
/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
============================================================================*/
#ifndef BERRYEVALUATIONSERVICE_H
#define BERRYEVALUATIONSERVICE_H
#include <berryIEvaluationService.h>
namespace berry {
class EvaluationAuthority;
class EvaluationService : public IEvaluationService
{
private:
QScopedPointer<EvaluationAuthority, QScopedPointerObjectDeleter> evaluationAuthority;
public:
berryObjectMacro(berry::EvaluationService);
EvaluationService();
~EvaluationService() override;
/*
* @see IEvaluationService#AddEvaluationListener(Expression, IPropertyChangeListener, QString)
*/
SmartPointer<IEvaluationReference> AddEvaluationListener(const SmartPointer<Expression>& expression,
IPropertyChangeListener* listener,
const QString& property) override;
/*
* @see IEvaluationService#AddEvaluationReference(IEvaluationReference)
*/
void AddEvaluationReference(const SmartPointer<IEvaluationReference>& ref) override;
/*
* @see IEvaluationService#RemoveEvaluationListener(IEvaluationReference)
*/
void RemoveEvaluationListener(const SmartPointer<IEvaluationReference>& ref) override;
/*
* @see IServiceWithSources#AddSourceProvider(ISourceProvider)
*/
void AddSourceProvider(const SmartPointer<ISourceProvider>& provider) override;
/*
* @see IServiceWithSources#RemoveSourceProvider(ISourceProvider)
*/
void RemoveSourceProvider(const SmartPointer<ISourceProvider>& provider) override;
/*
* @see IDisposable#Dispose()
*/
void Dispose() override;
/*
* @see IEvaluationService#GetCurrentState()
*/
SmartPointer<IEvaluationContext> GetCurrentState() const override;
/*
* @see IEvaluationService#AddServiceListener(IPropertyChangeListener)
*/
void AddServiceListener(IPropertyChangeListener *listener) override;
/*
* @see IEvaluationService#removeServiceListener(IPropertyChangeListener)
*/
void RemoveServiceListener(IPropertyChangeListener* listener) override;
/*
* @see IEvaluationService#RequestEvaluation(QString)
*/
void RequestEvaluation(const QString& propertyName) override;
//void UpdateShellKludge();
};
}
#endif // BERRYEVALUATIONSERVICE_H
| {
"pile_set_name": "Github"
} |
/*
* Copyright 2015-2020 Alexandr Evstigneev
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.perl5.lang.perl.idea.debugger;
import com.intellij.openapi.options.Configurable;
import com.intellij.openapi.options.SearchableConfigurable;
import com.intellij.openapi.ui.VerticalFlowLayout;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.ui.TableUtil;
import com.intellij.ui.ToolbarDecorator;
import com.intellij.ui.table.JBTable;
import com.intellij.util.containers.ContainerUtil;
import com.intellij.util.ui.ColumnInfo;
import com.intellij.util.ui.FormBuilder;
import com.intellij.util.ui.ListTableModel;
import com.intellij.util.xmlb.annotations.Attribute;
import com.intellij.util.xmlb.annotations.Tag;
import com.intellij.xdebugger.settings.DebuggerSettingsCategory;
import com.intellij.xdebugger.settings.XDebuggerSettings;
import com.perl5.PerlBundle;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
import javax.swing.table.TableCellEditor;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
public class PerlDebuggerSettings extends XDebuggerSettings<PerlDebuggerSettings> {
@Tag("dataRenderers")
private List<Item> myDataRenderers = new ArrayList<>();
public PerlDebuggerSettings() {
super("perl5");
}
@Override
public @NotNull Collection<? extends Configurable> createConfigurables(@NotNull DebuggerSettingsCategory category) {
if (category == DebuggerSettingsCategory.DATA_VIEWS) {
return Collections.singletonList(new DataViewsConfigurable());
}
return super.createConfigurables(category);
}
@Override
public @Nullable PerlDebuggerSettings getState() {
return this;
}
public List<Item> getDataRenderers() {
return new ArrayList<>(ContainerUtil.map(myDataRenderers, Item::new));
}
@Override
public void loadState(@NotNull PerlDebuggerSettings state) {
myDataRenderers = new ArrayList<>(ContainerUtil.filter(state.myDataRenderers, Item::isValid));
}
public static @NotNull PerlDebuggerSettings getInstance() {
return getInstance(PerlDebuggerSettings.class);
}
@Tag("entry")
public static class Item {
@Attribute("package")
String namespaceName;
@Attribute("expression")
String renderExpression;
public Item() {
}
public Item(@NotNull String namespaceName, @NotNull String renderExpression) {
this.namespaceName = namespaceName;
this.renderExpression = renderExpression;
}
public Item(Item copy) {
this.namespaceName = copy.namespaceName;
this.renderExpression = copy.renderExpression;
}
public boolean isValid() {
return StringUtil.isNotEmpty(namespaceName) && StringUtil.isNotEmpty(renderExpression);
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Item item = (Item)o;
if (namespaceName != null ? !namespaceName.equals(item.namespaceName) : item.namespaceName != null) {
return false;
}
return renderExpression != null ? renderExpression.equals(item.renderExpression) : item.renderExpression == null;
}
@Override
public int hashCode() {
int result = namespaceName != null ? namespaceName.hashCode() : 0;
result = 31 * result + (renderExpression != null ? renderExpression.hashCode() : 0);
return result;
}
}
private static class MyModel extends ListTableModel<Item> {
public MyModel() {
super(new ClassColumnInfo(), new RendererColumnInfo());
setSortable(true);
}
}
private static class ClassColumnInfo extends ColumnInfo<Item, String> {
public ClassColumnInfo() {
super(PerlBundle.message("perl.debugger.settings.class.column.title"));
}
@Override
public @Nullable String valueOf(Item item) {
return item.namespaceName;
}
@Override
public void setValue(Item item, String value) {
item.namespaceName = value;
}
@Override
public boolean isCellEditable(Item item) {
return true;
}
}
private static class RendererColumnInfo extends ColumnInfo<Item, String> {
public RendererColumnInfo() {
super(PerlBundle.message("perl.debugger.settings.renderer.column.title"));
}
@Override
public @Nullable String valueOf(Item entry) {
return entry.renderExpression;
}
@Override
public void setValue(Item item, String value) {
item.renderExpression = value;
}
@Override
public boolean isCellEditable(Item item) {
return true;
}
}
private class DataViewsConfigurable extends JBTable implements SearchableConfigurable {
public DataViewsConfigurable() {
super(new MyModel());
}
@Override
public @NotNull String getId() {
return "perl5.debugger.type.renderers";
}
@Override
public @Nls(capitalization = Nls.Capitalization.Title) String getDisplayName() {
return PerlBundle.message("perl.debugger.settings.type.renderers.title");
}
@Override
public @Nullable JComponent createComponent() {
JTextPane textPane = new JTextPane();
textPane.setText(PerlBundle.message("perl.debugger.settings.type.renderers.explanation"));
JPanel panel = FormBuilder.createFormBuilder()
.addComponent(textPane)
.addComponent(ToolbarDecorator.createDecorator(this).setAddAction(action -> {
final TableCellEditor cellEditor = getCellEditor();
if (cellEditor != null) {
cellEditor.stopCellEditing();
}
MyModel model = getModel();
int indexToEdit = -1;
for (Item item : model.getItems()) {
if (StringUtil.isEmpty(item.namespaceName)) {
indexToEdit = model.indexOf(item);
break;
}
}
if (indexToEdit == -1) {
model.addRow(new Item("Foo::Bar", "$it->to_string()"));
indexToEdit = model.getRowCount() - 1;
}
TableUtil.editCellAt(this, indexToEdit, 0);
}).createPanel())
.getPanel();
panel.setLayout(new VerticalFlowLayout());
getColumnModel().getColumn(0).setPreferredWidth(200);
getColumnModel().getColumn(1).setPreferredWidth(600);
return panel;
}
@Override
public boolean isModified() {
return !myDataRenderers.equals(getModelState());
}
@Override
public void apply() {
myDataRenderers = new ArrayList<>(ContainerUtil.map(getModelState(), Item::new));
}
private List<Item> getModelState() {
return new ArrayList<>(ContainerUtil.filter(getModel().getItems(), Item::isValid));
}
@Override
public MyModel getModel() {
return (MyModel)super.getModel();
}
@Override
public void reset() {
getModel().setItems(getDataRenderers());
}
}
}
| {
"pile_set_name": "Github"
} |
#!/bin/bash
#this script will make a disk image with the tools needed to update your Recovery HD with the newest OS X Lion release
# Author: Joel Bruner (aka brunerd)
#Required components:
#Lion Recovery Update v1.0 - http://support.apple.com/downloads/DL1464/en_US/RecoveryHDUpdate.dmg
#"Install Mac OS X Lion.app" - App Store
###########################
# RecoveryHD Updater.command
###########################
#this script that will be saved to the disk image that is created
RecoveryHDUpdaterScript='#!/bin/bash
clear;
MYPATH="$(dirname "$0")"
#get destination drive
if [ "$1" == "" ]; then
echo -n "Please drag in DESTINATION disk for Recovery HD partition and press Enter: "
while [ -z "$DEST" ]; do
read DEST
done
if [ ! -d "$DEST" ]; then echo "$DEST not found"; exit; fi
else
DEST="$1"
fi
#create Recovery partition
sudo "$MYPATH"/bin/dmtest ensureRecoveryPartition "$DEST" "$MYPATH"/etc/BaseSystem.dmg 0 0 "$MYPATH"/etc/BaseSystem.chunklist
'
######
# END
######
###########################
# VARIABLES
###########################
#IMAGETEMP is the pathname for the disk image being built, will the OS and Build appended to the name later
IMAGETEMP="/tmp/Recovery HD Updater"
#temp folder for package expansion
RECOVERY_EXPANDED="/tmp/RecoveryHDUpdate"
#Mounted disk image paths
ESDPATH="/Volumes/Mac OS X Install ESD"
RECOVERYPATH="/Volumes/Mac OS X Lion Recovery HD Update"
#############
# MAIN SCRIPT
#############
clear;
#get Recovery Update dmg path
if [ "$1" == "" ]; then
echo -n "Please drag in RecoveryHDUpdate.dmg and press enter: "
while [ -z "$RECOVERYHDUPDATE" ]; do
read RECOVERYHDUPDATE
done
if [ ! -f "$RECOVERYHDUPDATE" ]; then echo "$RECOVERYHDUPDATE not found"; exit; fi
else
RECOVERYHDUPDATE="$1"
fi
#get Lion Installer path
if [ "$2" == "" ]; then
echo -n "Please drag in \"Install Mac OS X Lion.app\" and press enter: "
while [ -z "$LION" ]; do
read LION
done
if [ ! -d "$LION" ]; then echo "$LION not found"; exit; fi
else
LION="$2"
fi
#get destination path for disk image to be created at
if [ "$3" == "" ]; then
echo -n "Please drag in Destination folder for disk image: "
while [ -z "$DEST" ]; do
read DEST
done
if [ ! -d "$DEST" ]; then echo "$DEST is not a valid path"; exit; fi
else
DEST="$3"
fi
#mount Recovery Update image
hdiutil attach "$RECOVERYHDUPDATE"
#expand packge inside to temp folder (contains dmtest)
pkgutil --expand "$RECOVERYPATH"/RecoveryHDUpdate.pkg "$RECOVERY_EXPANDED"
#if we were using what's inside the chunklist and recovery inside the update we would mount this
#RecoveryHDMeta="/Volumes/Recovery HD Update"
#hdiutil attach "$RECOVERY_EXPANDED"/RecoveryHDUpdate.pkg/RecoveryHDMeta.dmg
#open Lion install ESD image for the newest files
hdiutil attach "$LION"/Contents/SharedSupport/InstallESD.dmg
#get OS version from Lion Installer ESD
OSVER=$(defaults read "$ESDPATH"/System/Library/CoreServices/SystemVersion ProductUserVisibleVersion)
OSBUILD=$(defaults read "$ESDPATH"/System/Library/CoreServices/SystemVersion ProductBuildVersion)
#append info to path so disk image volume name is informative and useful
IMAGETEMP="$IMAGETEMP $OSVER $OSBUILD"
#make work the folder
mkdir -p "$IMAGETEMP"/etc/
mkdir "$IMAGETEMP"/bin/
#copy dmtest to IMAGETEMP
if [ -f "$RECOVERY_EXPANDED"/RecoveryHDUpdate.pkg/Scripts/Tools/dmtest ]; then
cp "$RECOVERY_EXPANDED"/RecoveryHDUpdate.pkg/Scripts/Tools/dmtest "$IMAGETEMP"/bin/
else
echo "$RECOVERY_EXPANDED/RecoveryHDUpdate.pkg/Scripts/Tools/dmtest not found, exiting"
exit 1
fi
#copy the BaseSystem dmg and chunklist to destination/etc
if [ -f "$ESDPATH"/BaseSystem.chunklist -o -f "$ESDPATH"/BaseSystem.dmg ]; then
cp "$ESDPATH"/BaseSystem.chunklist "$ESDPATH"/BaseSystem.dmg "$IMAGETEMP"/etc/
#unhide BaseSystem
chflags -R nohidden "$IMAGETEMP"
else
echo "$ESDPATH/BaseSystem* not found, exiting"
fi
#put script in folder root
echo "$RecoveryHDUpdaterScript" > "$IMAGETEMP"/"RecoveryHD Updater.command"
#set permissions
chmod ugo+x "$IMAGETEMP"/"RecoveryHD Updater.command"
#create disk image from folder
hdiutil create -srcfolder "$IMAGETEMP" "$DEST"/RecoveryHDUpdater_$OSVER_$OSBUILD.dmg
if [ $? -eq 0 ]; then
echo "Success! Created: $DEST/RecoveryHDUpdater_$OSVER_$OSBUILD.dmg"
echo "Now opening "$DEST"/RecoveryHDUpdater_$OSVER_$OSBUILD.dmg"
hdiutil attach "$DEST"/RecoveryHDUpdater_$OSVER_$OSBUILD.dmg
else
echo "Disk Image failed"
fi
echo "Cleaning Up"
#delete temp folders
rm -rf "$IMAGETEMP" "$RECOVERY_EXPANDED"
#eject the volumes
hdiutil eject "$RECOVERYPATH"
hdiutil eject "$ESDPATH"
echo "Done."
exit | {
"pile_set_name": "Github"
} |
// This is a generated file. Not intended for manual editing.
package com.neueda.jetbrains.plugin.graphdb.language.cypher.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface CypherRemove extends PsiElement {
@NotNull
List<CypherRemoveItem> getRemoveItemList();
@NotNull
PsiElement getKRemove();
}
| {
"pile_set_name": "Github"
} |
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\User $user
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('Edit User'), ['action' => 'edit', $user->id]) ?> </li>
<li><?= $this->Form->postLink(__('Delete User'), ['action' => 'delete', $user->id], ['confirm' => __('Are you sure you want to delete # {0}?', $user->id)]) ?> </li>
<li><?= $this->Html->link(__('List Users'), ['action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New User'), ['action' => 'add']) ?> </li>
</ul>
</nav>
<div class="users view large-9 medium-8 columns content">
<h3><?= h($user->id) ?></h3>
<table class="vertical-table">
<tr>
<th scope="row"><?= __('Firstname') ?></th>
<td><?= h($user->firstname) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Lastname') ?></th>
<td><?= h($user->lastname) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Email') ?></th>
<td><?= h($user->email) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Username') ?></th>
<td><?= h($user->username) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Password') ?></th>
<td><?= h($user->password) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Id') ?></th>
<td><?= $this->Number->format($user->id) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Modified') ?></th>
<td><?= h($user->modified) ?></td>
</tr>
</table>
</div>
| {
"pile_set_name": "Github"
} |
"""followers
Revision ID: ae346256b650
Revises: 37f06a334dbf
Create Date: 2017-09-17 15:41:30.211082
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ae346256b650'
down_revision = '37f06a334dbf'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('followers',
sa.Column('follower_id', sa.Integer(), nullable=True),
sa.Column('followed_id', sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(['followed_id'], ['user.id'], ),
sa.ForeignKeyConstraint(['follower_id'], ['user.id'], )
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('followers')
# ### end Alembic commands ###
| {
"pile_set_name": "Github"
} |
// Copyright 2004-2011 Castle Project - http://www.castleproject.org/
//
// 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.
namespace CastleTests
{
using System;
using Castle.Core;
using Castle.MicroKernel.Context;
using Castle.MicroKernel.Handlers;
public class StubGenericImplementationMatchingStrategy : IGenericImplementationMatchingStrategy
{
private readonly Func<ComponentModel, CreationContext, Type[]> result;
public StubGenericImplementationMatchingStrategy(Func<ComponentModel, CreationContext, Type[]> result)
{
this.result = result;
}
public StubGenericImplementationMatchingStrategy(params Type[] result)
{
this.result = delegate { return result; };
}
public Type[] GetGenericArguments(ComponentModel model, CreationContext context)
{
return result(model, context);
}
}
} | {
"pile_set_name": "Github"
} |
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package test.output;
public class Assert01 {
public static void test(int arg) {
assert arg == 0;
}
public static void main(String[] args) {
try {
test(0);
System.out.println("Assert01 not thrown");
} catch (AssertionError e) {
System.out.println("Assert01 thrown");
}
}
}
| {
"pile_set_name": "Github"
} |
var baseForOwnRight = require('../internal/baseForOwnRight'),
createForOwn = require('../internal/createForOwn');
/**
* This method is like `_.forOwn` except that it iterates over properties of
* `object` in the opposite order.
*
* @static
* @memberOf _
* @category Object
* @param {Object} object The object to iterate over.
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
* @param {*} [thisArg] The `this` binding of `iteratee`.
* @returns {Object} Returns `object`.
* @example
*
* function Foo() {
* this.a = 1;
* this.b = 2;
* }
*
* Foo.prototype.c = 3;
*
* _.forOwnRight(new Foo, function(value, key) {
* console.log(key);
* });
* // => logs 'b' and 'a' assuming `_.forOwn` logs 'a' and 'b'
*/
var forOwnRight = createForOwn(baseForOwnRight);
module.exports = forOwnRight;
| {
"pile_set_name": "Github"
} |
'' FreeBASIC binding for mingw-w64-v4.0.4
''
'' based on the C header files:
'' DirectMusic DLS Download Definitions
''
'' Copyright (C) 2003-2004 Rok Mandeljc
''
'' This program is free software; you can redistribute it and/or
'' modify it under the terms of the GNU Lesser General Public
'' License as published by the Free Software Foundation; either
'' version 2.1 of the License, or (at your option) any later version.
''
'' This program is distributed in the hope that it will be useful,
'' but WITHOUT ANY WARRANTY; without even the implied warranty of
'' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
'' Lesser General Public License for more details.
''
'' You should have received a copy of the GNU Lesser General Public
'' License along with this program; if not, write to the Free Software
'' Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
''
'' translated to FreeBASIC by:
'' Copyright © 2015 FreeBASIC development team
#pragma once
#include once "dls1.bi"
#define __WINE_DMUSIC_DLS_H
type GCENT as LONG
type PCENT as LONG
type PERCENT as LONG
type TCENT as LONG
type REFERENCE_TIME as LONGLONG
type LPREFERENCE_TIME as LONGLONG ptr
const DMUS_DEFAULT_SIZE_OFFSETTABLE = &h1
const DMUS_DOWNLOADINFO_INSTRUMENT = &h1
const DMUS_DOWNLOADINFO_WAVE = &h2
const DMUS_DOWNLOADINFO_INSTRUMENT2 = &h3
const DMUS_DOWNLOADINFO_WAVEARTICULATION = &h4
const DMUS_DOWNLOADINFO_STREAMINGWAVE = &h5
const DMUS_DOWNLOADINFO_ONESHOTWAVE = &h6
const DMUS_INSTRUMENT_GM_INSTRUMENT = &h1
const DMUS_MIN_DATA_SIZE = &h4
type DMUS_DOWNLOADINFO as _DMUS_DOWNLOADINFO
type LPDMUS_DOWNLOADINFO as _DMUS_DOWNLOADINFO ptr
type DMUS_OFFSETTABLE as _DMUS_OFFSETTABLE
type LPDMUS_OFFSETTABLE as _DMUS_OFFSETTABLE ptr
type DMUS_INSTRUMENT as _DMUS_INSTRUMENT
type LPDMUS_INSTRUMENT as _DMUS_INSTRUMENT ptr
type DMUS_REGION as _DMUS_REGION
type LPDMUS_REGION as _DMUS_REGION ptr
type DMUS_LFOPARAMS as _DMUS_LFOPARAMS
type LPDMUS_LFOPARAMS as _DMUS_LFOPARAMS ptr
type DMUS_VEGPARAMS as _DMUS_VEGPARAMS
type LPDMUS_VEGPARAMS as _DMUS_VEGPARAMS ptr
type DMUS_PEGPARAMS as _DMUS_PEGPARAMS
type LPDMUS_PEGPARAMS as _DMUS_PEGPARAMS ptr
type DMUS_MSCPARAMS as _DMUS_MSCPARAMS
type LPDMUS_MSCPARAMS as _DMUS_MSCPARAMS ptr
type DMUS_ARTICPARAMS as _DMUS_ARTICPARAMS
type LPDMUS_ARTICPARAMS as _DMUS_ARTICPARAMS ptr
type DMUS_ARTICULATION as _DMUS_ARTICULATION
type LPDMUS_ARTICULATION as _DMUS_ARTICULATION ptr
type DMUS_ARTICULATION2 as _DMUS_ARTICULATION2
type LPDMUS_ARTICULATION2 as _DMUS_ARTICULATION2 ptr
type DMUS_EXTENSIONCHUNK as _DMUS_EXTENSIONCHUNK
type LPDMUS_EXTENSIONCHUNK as _DMUS_EXTENSIONCHUNK ptr
type DMUS_COPYRIGHT as _DMUS_COPYRIGHT
type LPDMUS_COPYRIGHT as _DMUS_COPYRIGHT ptr
type DMUS_WAVEDATA as _DMUS_WAVEDATA
type LPDMUS_WAVEDATA as _DMUS_WAVEDATA ptr
type DMUS_WAVE as _DMUS_WAVE
type LPDMUS_WAVE as _DMUS_WAVE ptr
type DMUS_NOTERANGE as _DMUS_NOTERANGE
type LPDMUS_NOTERANGE as _DMUS_NOTERANGE ptr
type DMUS_WAVEARTDL as _DMUS_WAVEARTDL
type LPDMUS_WAVEARTDL as _DMUS_WAVEARTDL ptr
type DMUS_WAVEDL as _DMUS_WAVEDL
type LPDMUS_WAVEDL as _DMUS_WAVEDL ptr
type _DMUS_DOWNLOADINFO
dwDLType as DWORD
dwDLId as DWORD
dwNumOffsetTableEntries as DWORD
cbSize as DWORD
end type
type _DMUS_OFFSETTABLE
ulOffsetTable(0 to 0) as ULONG
end type
type _DMUS_INSTRUMENT
ulPatch as ULONG
ulFirstRegionIdx as ULONG
ulGlobalArtIdx as ULONG
ulFirstExtCkIdx as ULONG
ulCopyrightIdx as ULONG
ulFlags as ULONG
end type
type _DMUS_REGION
RangeKey as RGNRANGE
RangeVelocity as RGNRANGE
fusOptions as USHORT
usKeyGroup as USHORT
ulRegionArtIdx as ULONG
ulNextRegionIdx as ULONG
ulFirstExtCkIdx as ULONG
WaveLink as WAVELINK
WSMP as WSMPL
WLOOP(0 to 0) as _rloop
end type
type _DMUS_LFOPARAMS
pcFrequency as PCENT
tcDelay as TCENT
gcVolumeScale as GCENT
pcPitchScale as PCENT
gcMWToVolume as GCENT
pcMWToPitch as PCENT
end type
type _DMUS_VEGPARAMS
tcAttack as TCENT
tcDecay as TCENT
ptSustain as PERCENT
tcRelease as TCENT
tcVel2Attack as TCENT
tcKey2Decay as TCENT
end type
type _DMUS_PEGPARAMS
tcAttack as TCENT
tcDecay as TCENT
ptSustain as PERCENT
tcRelease as TCENT
tcVel2Attack as TCENT
tcKey2Decay as TCENT
pcRange as PCENT
end type
type _DMUS_MSCPARAMS
ptDefaultPan as PERCENT
end type
type _DMUS_ARTICPARAMS
LFO as DMUS_LFOPARAMS
VolEG as DMUS_VEGPARAMS
PitchEG as DMUS_PEGPARAMS
Misc as DMUS_MSCPARAMS
end type
type _DMUS_ARTICULATION
ulArt1Idx as ULONG
ulFirstExtCkIdx as ULONG
end type
type _DMUS_ARTICULATION2
ulArtIdx as ULONG
ulFirstExtCkIdx as ULONG
ulNextArtIdx as ULONG
end type
type _DMUS_EXTENSIONCHUNK
cbSize as ULONG
ulNextExtCkIdx as ULONG
ExtCkID as FOURCC
byExtCk(0 to 3) as UBYTE
end type
type _DMUS_COPYRIGHT
cbSize as ULONG
byCopyright(0 to 3) as UBYTE
end type
type _DMUS_WAVEDATA
cbSize as ULONG
byData(0 to 3) as UBYTE
end type
type _DMUS_WAVE
ulFirstExtCkIdx as ULONG
ulCopyrightIdx as ULONG
ulWaveDataIdx as ULONG
WaveformatEx as WAVEFORMATEX
end type
type _DMUS_NOTERANGE
dwLowNote as DWORD
dwHighNote as DWORD
end type
type _DMUS_WAVEARTDL
ulDownloadIdIdx as ULONG
ulBus as ULONG
ulBuffers as ULONG
ulMasterDLId as ULONG
usOptions as USHORT
end type
type _DMUS_WAVEDL
cbWaveData as ULONG
end type
| {
"pile_set_name": "Github"
} |
# .. coding: utf8
# $Id: __init__.py 8041 2017-03-01 11:02:33Z milde $
# :Author: Günter Milde <[email protected]>
# Based on the html4css1 writer by David Goodger.
# :Maintainer: [email protected]
# :Copyright: © 2005, 2009, 2015 Günter Milde,
# portions from html4css1 © David Goodger.
# :License: Released under the terms of the `2-Clause BSD license`_, in short:
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.
# This file is offered as-is, without any warranty.
#
# .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause
# Use "best practice" as recommended by the W3C:
# http://www.w3.org/2009/cheatsheet/
"""
Plain HyperText Markup Language document tree Writer.
The output conforms to the `HTML5` specification.
The cascading style sheet "minimal.css" is required for proper viewing,
the style sheet "plain.css" improves reading experience.
"""
__docformat__ = 'reStructuredText'
import os.path
import docutils
from docutils import frontend, nodes, writers, io
from docutils.transforms import writer_aux
from docutils.writers import _html_base
class Writer(writers._html_base.Writer):
supported = ('html', 'html5', 'html4', 'xhtml', 'xhtml10')
"""Formats this writer supports."""
default_stylesheets = ['minimal.css','plain.css']
default_stylesheet_dirs = ['.', os.path.abspath(os.path.dirname(__file__))]
default_template = 'template.txt'
default_template_path = os.path.join(
os.path.dirname(os.path.abspath(__file__)), default_template)
settings_spec = (
'HTML-Specific Options',
None,
(('Specify the template file (UTF-8 encoded). Default is "%s".'
% default_template_path,
['--template'],
{'default': default_template_path, 'metavar': '<file>'}),
('Comma separated list of stylesheet URLs. '
'Overrides previous --stylesheet and --stylesheet-path settings.',
['--stylesheet'],
{'metavar': '<URL[,URL,...]>', 'overrides': 'stylesheet_path',
'validator': frontend.validate_comma_separated_list}),
('Comma separated list of stylesheet paths. '
'Relative paths are expanded if a matching file is found in '
'the --stylesheet-dirs. With --link-stylesheet, '
'the path is rewritten relative to the output HTML file. '
'Default: "%s"' % ','.join(default_stylesheets),
['--stylesheet-path'],
{'metavar': '<file[,file,...]>', 'overrides': 'stylesheet',
'validator': frontend.validate_comma_separated_list,
'default': default_stylesheets}),
('Embed the stylesheet(s) in the output HTML file. The stylesheet '
'files must be accessible during processing. This is the default.',
['--embed-stylesheet'],
{'default': 1, 'action': 'store_true',
'validator': frontend.validate_boolean}),
('Link to the stylesheet(s) in the output HTML file. '
'Default: embed stylesheets.',
['--link-stylesheet'],
{'dest': 'embed_stylesheet', 'action': 'store_false'}),
('Comma-separated list of directories where stylesheets are found. '
'Used by --stylesheet-path when expanding relative path arguments. '
'Default: "%s"' % default_stylesheet_dirs,
['--stylesheet-dirs'],
{'metavar': '<dir[,dir,...]>',
'validator': frontend.validate_comma_separated_list,
'default': default_stylesheet_dirs}),
('Specify the initial header level. Default is 1 for "<h1>". '
'Does not affect document title & subtitle (see --no-doc-title).',
['--initial-header-level'],
{'choices': '1 2 3 4 5 6'.split(), 'default': '1',
'metavar': '<level>'}),
('Format for footnote references: one of "superscript" or '
'"brackets". Default is "brackets".',
['--footnote-references'],
{'choices': ['superscript', 'brackets'], 'default': 'brackets',
'metavar': '<format>',
'overrides': 'trim_footnote_reference_space'}),
('Format for block quote attributions: one of "dash" (em-dash '
'prefix), "parentheses"/"parens", or "none". Default is "dash".',
['--attribution'],
{'choices': ['dash', 'parentheses', 'parens', 'none'],
'default': 'dash', 'metavar': '<format>'}),
('Remove extra vertical whitespace between items of "simple" bullet '
'lists and enumerated lists. Default: enabled.',
['--compact-lists'],
{'default': True, 'action': 'store_true',
'validator': frontend.validate_boolean}),
('Disable compact simple bullet and enumerated lists.',
['--no-compact-lists'],
{'dest': 'compact_lists', 'action': 'store_false'}),
('Remove extra vertical whitespace between items of simple field '
'lists. Default: enabled.',
['--compact-field-lists'],
{'default': True, 'action': 'store_true',
'validator': frontend.validate_boolean}),
('Disable compact simple field lists.',
['--no-compact-field-lists'],
{'dest': 'compact_field_lists', 'action': 'store_false'}),
('Added to standard table classes. '
'Defined styles: borderless, booktabs, '
'align-left, align-center, align-right, colwidths-auto. '
'Default: ""',
['--table-style'],
{'default': ''}),
('Math output format (one of "MathML", "HTML", "MathJax", '
'or "LaTeX") and option(s). '
'Default: "HTML math.css"',
['--math-output'],
{'default': 'HTML math.css'}),
('Prepend an XML declaration. (Thwarts HTML5 conformance.) '
'Default: False',
['--xml-declaration'],
{'default': False, 'action': 'store_true',
'validator': frontend.validate_boolean}),
('Omit the XML declaration.',
['--no-xml-declaration'],
{'dest': 'xml_declaration', 'action': 'store_false'}),
('Obfuscate email addresses to confuse harvesters while still '
'keeping email links usable with standards-compliant browsers.',
['--cloak-email-addresses'],
{'action': 'store_true', 'validator': frontend.validate_boolean}),))
config_section = 'html5 writer'
def __init__(self):
self.parts = {}
self.translator_class = HTMLTranslator
class HTMLTranslator(writers._html_base.HTMLTranslator):
"""
This writer generates `polyglot markup`: HTML5 that is also valid XML.
Safe subclassing: when overriding, treat ``visit_*`` and ``depart_*``
methods as a unit to prevent breaks due to internal changes. See the
docstring of docutils.writers._html_base.HTMLTranslator for details
and examples.
"""
# <acronym> tag not supported in HTML5. Use the <abbr> tag instead.
def visit_acronym(self, node):
# @@@ implementation incomplete ("title" attribute)
self.body.append(self.starttag(node, 'abbr', ''))
def depart_acronym(self, node):
self.body.append('</abbr>')
# no meta tag in HTML5
def visit_authors(self, node):
self.visit_docinfo_item(node, 'authors', meta=False)
def depart_authors(self, node):
self.depart_docinfo_item()
# no meta tag in HTML5
def visit_copyright(self, node):
self.visit_docinfo_item(node, 'copyright', meta=False)
def depart_copyright(self, node):
self.depart_docinfo_item()
# no meta tag in HTML5
def visit_date(self, node):
self.visit_docinfo_item(node, 'date', meta=False)
def depart_date(self, node):
self.depart_docinfo_item()
# TODO: use HTML5 <footer> element?
# def visit_footer(self, node):
# def depart_footer(self, node):
# TODO: use the new HTML5 element <aside>? (Also for footnote text)
# def visit_footnote(self, node):
# def depart_footnote(self, node):
# Meta tags: 'lang' attribute replaced by 'xml:lang' in XHTML 1.1
# HTML5/polyglot recommends using both
def visit_meta(self, node):
if node.hasattr('lang'):
node['xml:lang'] = node['lang']
# del(node['lang'])
meta = self.emptytag(node, 'meta', **node.non_default_attributes())
self.add_meta(meta)
def depart_meta(self, node):
pass
# no meta tag in HTML5
def visit_organization(self, node):
self.visit_docinfo_item(node, 'organization', meta=False)
def depart_organization(self, node):
self.depart_docinfo_item()
# TODO: use the new HTML5 element <section>?
# def visit_section(self, node):
# def depart_section(self, node):
# TODO: use the new HTML5 element <aside>?
# def visit_topic(self, node):
# def depart_topic(self, node):
| {
"pile_set_name": "Github"
} |
<div class="filter-bar">
<!-- <div class="btn-group card">
<a href="#" class="btn white black-text"><i class="material-icons">view_module</i></a>
<a href="#" class="btn white black-text"><i class="material-icons">view_headline</i></a>
<a href="#" class="btn white black-text"><i class="material-icons">view_stream</i></a>
<a href="#" class="btn white black-text"><i class="material-icons">grid_on</i></a>
</div> -->
<% if content_type.new.respond_to?(:universe) %>
<div class="btn-group card">
<a
class='dropdown-trigger btn white tooltipped <%= Universe.color if @universe_scope.present? %> lighten-5'
href='#'
data-position="bottom"
data-delay="500"
data-tooltip="Filter by universe"
data-target='universe-filter-dropdown'>
<i class="material-icons <%= Universe.color %>-text"><%= Universe.icon %></i>
<%= @universe_scope.try(:name) if @universe_scope %>
</a>
<ul id='universe-filter-dropdown' class='dropdown-content'>
<li>
<a href="?universe=all" class="<%= Universe.color %>-text">
<i class="material-icons <%= Universe.color %>-text"><%= Universe.icon %></i>
All Universes
</a>
</li>
<li class="divider" tabindex="-1"></li>
<% @current_user_content.fetch('Universe', []).each do |universe| %>
<%= next unless universe.becomes(Universe).send(content_type.name.downcase.pluralize).any? rescue false %>
<li>
<a href="?universe=<%= universe.id %>" data-universe-id="<%= universe.id %>" class="<%= Universe.color %>-text">
<i class="material-icons <%= Universe.color %>-text"><%= Universe.icon %></i>
<span class="grey-text">in</span>
<%= universe.name %>
</a>
</li>
<% end %>
</ul>
</div>
<% end %>
<% if @page_tags.present? && @page_tags.any? %>
<div class="btn-group card">
<a
class='dropdown-trigger btn white <%= content_type.color if @filtered_page_tags.present? %> lighten-4 black-text tooltipped'
href='#'
data-target='tag-filter-dropdown'
data-position="bottom"
data-delay="500"
data-tooltip="Filter by tag">
<i class="material-icons <%= content_type.color %>-text">loyalty</i>
<%= @filtered_page_tags.try(:first).try(:tag) %>
</a>
<ul id='tag-filter-dropdown' class='dropdown-content'>
<li>
<%= link_to polymorphic_path(content_type), class: "#{content_type.color}-text" do %>
<i class="material-icons">loyalty</i>
All <%= content_type.name.downcase.pluralize %>
<% end %>
</li>
<li class="divider" tabindex="-1"></li>
<% @page_tags.each do |page_tag| %>
<li>
<%=
link_to send(
"page_tag_#{content_type.name.downcase.pluralize}_path",
slug: PageTagService.slug_for(page_tag.tag)
), class: "#{content_type.color}-text" do
%>
<i class="material-icons">loyalty</i>
<small class="grey-text">tagged</small>
<%= page_tag.tag %>
<% end %>
</li>
<% end %>
</ul>
</div>
<% end %>
<a class='btn white <%= 'yellow lighten-3' if params.key?(:favorite_only) %> black-text tooltipped'
href="<%= url_for(params.permit(:universe, :favorite_only).merge({favorite_only: params.key?(:favorite_only) ? nil : 1})) %>"
data-position="bottom"
data-delay="500"
data-tooltip="Filter by favorite">
<i class="material-icons amber-text">star_outline</i>
<% if params.key?(:favorite_only) %>Favorites<% end %>
</a>
<!-- <div class="btn-group card">
<a class='btn white grey-text tooltipped'
href='#'
data-position="bottom"
data-delay="500"
data-tooltip="Standard order">
<i class="material-icons black-text">playlist_add_check</i>
</a>
<a class='btn white grey-text tooltipped'
href='#'
data-position="bottom"
data-delay="500"
data-tooltip="Alphabetical order">
<i class="material-icons black-text">sort_by_alpha</i>
</a>
<a class='btn white grey-text tooltipped'
href='#'
data-position="bottom"
data-delay="500"
data-tooltip="Most-recent order">
<i class="material-icons black-text">access_time</i>
</a>
</div> -->
<div class="input-field inline" style="position: relative; top: 5px; min-width: 320px">
<input id="js-content-name-filter" type="text">
<label for="js-content-name-filter">Filter <%= content_type.name.downcase.pluralize %> by name...</label>
</div>
</div> | {
"pile_set_name": "Github"
} |
// Software License Agreement (BSD License)
//
// Copyright (c) 2010-2018, Deusty, LLC
// All rights reserved.
//
// Redistribution and use of this software in source and binary forms,
// with or without modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Neither the name of Deusty nor the names of its contributors may be used
// to endorse or promote products derived from this software without specific
// prior written permission of Deusty, LLC.
// Disable legacy macros
#ifndef DD_LEGACY_MACROS
#define DD_LEGACY_MACROS 0
#endif
#import "DDLog.h"
/**
* This class provides an abstract implementation of a database logger.
*
* That is, it provides the base implementation for a database logger to build atop of.
* All that is needed for a concrete database logger is to extend this class
* and override the methods in the implementation file that are prefixed with "db_".
**/
@interface DDAbstractDatabaseLogger : DDAbstractLogger {
@protected
NSUInteger _saveThreshold;
NSTimeInterval _saveInterval;
NSTimeInterval _maxAge;
NSTimeInterval _deleteInterval;
BOOL _deleteOnEverySave;
BOOL _saveTimerSuspended;
NSUInteger _unsavedCount;
dispatch_time_t _unsavedTime;
dispatch_source_t _saveTimer;
dispatch_time_t _lastDeleteTime;
dispatch_source_t _deleteTimer;
}
/**
* Specifies how often to save the data to disk.
* Since saving is an expensive operation (disk io) it is not done after every log statement.
* These properties allow you to configure how/when the logger saves to disk.
*
* A save is done when either (whichever happens first):
*
* - The number of unsaved log entries reaches saveThreshold
* - The amount of time since the oldest unsaved log entry was created reaches saveInterval
*
* You can optionally disable the saveThreshold by setting it to zero.
* If you disable the saveThreshold you are entirely dependent on the saveInterval.
*
* You can optionally disable the saveInterval by setting it to zero (or a negative value).
* If you disable the saveInterval you are entirely dependent on the saveThreshold.
*
* It's not wise to disable both saveThreshold and saveInterval.
*
* The default saveThreshold is 500.
* The default saveInterval is 60 seconds.
**/
@property (assign, readwrite) NSUInteger saveThreshold;
/**
* See the description for the `saveThreshold` property
*/
@property (assign, readwrite) NSTimeInterval saveInterval;
/**
* It is likely you don't want the log entries to persist forever.
* Doing so would allow the database to grow infinitely large over time.
*
* The maxAge property provides a way to specify how old a log statement can get
* before it should get deleted from the database.
*
* The deleteInterval specifies how often to sweep for old log entries.
* Since deleting is an expensive operation (disk io) is is done on a fixed interval.
*
* An alternative to the deleteInterval is the deleteOnEverySave option.
* This specifies that old log entries should be deleted during every save operation.
*
* You can optionally disable the maxAge by setting it to zero (or a negative value).
* If you disable the maxAge then old log statements are not deleted.
*
* You can optionally disable the deleteInterval by setting it to zero (or a negative value).
*
* If you disable both deleteInterval and deleteOnEverySave then old log statements are not deleted.
*
* It's not wise to enable both deleteInterval and deleteOnEverySave.
*
* The default maxAge is 7 days.
* The default deleteInterval is 5 minutes.
* The default deleteOnEverySave is NO.
**/
@property (assign, readwrite) NSTimeInterval maxAge;
/**
* See the description for the `maxAge` property
*/
@property (assign, readwrite) NSTimeInterval deleteInterval;
/**
* See the description for the `maxAge` property
*/
@property (assign, readwrite) BOOL deleteOnEverySave;
/**
* Forces a save of any pending log entries (flushes log entries to disk).
**/
- (void)savePendingLogEntries;
/**
* Removes any log entries that are older than maxAge.
**/
- (void)deleteOldLogEntries;
@end
| {
"pile_set_name": "Github"
} |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'maximize', 'cy', {
maximize: 'Mwyhau',
minimize: 'Lleihau'
} );
| {
"pile_set_name": "Github"
} |
/*
* Copyright © 2012 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* Authors:
* Keith Packard <[email protected]>
*
*/
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <drm/drmP.h>
#include <drm/drm_crtc.h>
#include <drm/drm_crtc_helper.h>
#include "psb_drv.h"
#include "psb_intel_drv.h"
#include "psb_intel_reg.h"
#include "gma_display.h"
#include <drm/drm_dp_helper.h>
/**
* struct i2c_algo_dp_aux_data - driver interface structure for i2c over dp
* aux algorithm
* @running: set by the algo indicating whether an i2c is ongoing or whether
* the i2c bus is quiescent
* @address: i2c target address for the currently ongoing transfer
* @aux_ch: driver callback to transfer a single byte of the i2c payload
*/
struct i2c_algo_dp_aux_data {
bool running;
u16 address;
int (*aux_ch) (struct i2c_adapter *adapter,
int mode, uint8_t write_byte,
uint8_t *read_byte);
};
/* Run a single AUX_CH I2C transaction, writing/reading data as necessary */
static int
i2c_algo_dp_aux_transaction(struct i2c_adapter *adapter, int mode,
uint8_t write_byte, uint8_t *read_byte)
{
struct i2c_algo_dp_aux_data *algo_data = adapter->algo_data;
int ret;
ret = (*algo_data->aux_ch)(adapter, mode,
write_byte, read_byte);
return ret;
}
/*
* I2C over AUX CH
*/
/*
* Send the address. If the I2C link is running, this 'restarts'
* the connection with the new address, this is used for doing
* a write followed by a read (as needed for DDC)
*/
static int
i2c_algo_dp_aux_address(struct i2c_adapter *adapter, u16 address, bool reading)
{
struct i2c_algo_dp_aux_data *algo_data = adapter->algo_data;
int mode = MODE_I2C_START;
int ret;
if (reading)
mode |= MODE_I2C_READ;
else
mode |= MODE_I2C_WRITE;
algo_data->address = address;
algo_data->running = true;
ret = i2c_algo_dp_aux_transaction(adapter, mode, 0, NULL);
return ret;
}
/*
* Stop the I2C transaction. This closes out the link, sending
* a bare address packet with the MOT bit turned off
*/
static void
i2c_algo_dp_aux_stop(struct i2c_adapter *adapter, bool reading)
{
struct i2c_algo_dp_aux_data *algo_data = adapter->algo_data;
int mode = MODE_I2C_STOP;
if (reading)
mode |= MODE_I2C_READ;
else
mode |= MODE_I2C_WRITE;
if (algo_data->running) {
(void) i2c_algo_dp_aux_transaction(adapter, mode, 0, NULL);
algo_data->running = false;
}
}
/*
* Write a single byte to the current I2C address, the
* the I2C link must be running or this returns -EIO
*/
static int
i2c_algo_dp_aux_put_byte(struct i2c_adapter *adapter, u8 byte)
{
struct i2c_algo_dp_aux_data *algo_data = adapter->algo_data;
int ret;
if (!algo_data->running)
return -EIO;
ret = i2c_algo_dp_aux_transaction(adapter, MODE_I2C_WRITE, byte, NULL);
return ret;
}
/*
* Read a single byte from the current I2C address, the
* I2C link must be running or this returns -EIO
*/
static int
i2c_algo_dp_aux_get_byte(struct i2c_adapter *adapter, u8 *byte_ret)
{
struct i2c_algo_dp_aux_data *algo_data = adapter->algo_data;
int ret;
if (!algo_data->running)
return -EIO;
ret = i2c_algo_dp_aux_transaction(adapter, MODE_I2C_READ, 0, byte_ret);
return ret;
}
static int
i2c_algo_dp_aux_xfer(struct i2c_adapter *adapter,
struct i2c_msg *msgs,
int num)
{
int ret = 0;
bool reading = false;
int m;
int b;
for (m = 0; m < num; m++) {
u16 len = msgs[m].len;
u8 *buf = msgs[m].buf;
reading = (msgs[m].flags & I2C_M_RD) != 0;
ret = i2c_algo_dp_aux_address(adapter, msgs[m].addr, reading);
if (ret < 0)
break;
if (reading) {
for (b = 0; b < len; b++) {
ret = i2c_algo_dp_aux_get_byte(adapter, &buf[b]);
if (ret < 0)
break;
}
} else {
for (b = 0; b < len; b++) {
ret = i2c_algo_dp_aux_put_byte(adapter, buf[b]);
if (ret < 0)
break;
}
}
if (ret < 0)
break;
}
if (ret >= 0)
ret = num;
i2c_algo_dp_aux_stop(adapter, reading);
DRM_DEBUG_KMS("dp_aux_xfer return %d\n", ret);
return ret;
}
static u32
i2c_algo_dp_aux_functionality(struct i2c_adapter *adapter)
{
return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL |
I2C_FUNC_SMBUS_READ_BLOCK_DATA |
I2C_FUNC_SMBUS_BLOCK_PROC_CALL |
I2C_FUNC_10BIT_ADDR;
}
static const struct i2c_algorithm i2c_dp_aux_algo = {
.master_xfer = i2c_algo_dp_aux_xfer,
.functionality = i2c_algo_dp_aux_functionality,
};
static void
i2c_dp_aux_reset_bus(struct i2c_adapter *adapter)
{
(void) i2c_algo_dp_aux_address(adapter, 0, false);
(void) i2c_algo_dp_aux_stop(adapter, false);
}
static int
i2c_dp_aux_prepare_bus(struct i2c_adapter *adapter)
{
adapter->algo = &i2c_dp_aux_algo;
adapter->retries = 3;
i2c_dp_aux_reset_bus(adapter);
return 0;
}
/*
* FIXME: This is the old dp aux helper, gma500 is the last driver that needs to
* be ported over to the new helper code in drm_dp_helper.c like i915 or radeon.
*/
static int
i2c_dp_aux_add_bus(struct i2c_adapter *adapter)
{
int error;
error = i2c_dp_aux_prepare_bus(adapter);
if (error)
return error;
error = i2c_add_adapter(adapter);
return error;
}
#define _wait_for(COND, MS, W) ({ \
unsigned long timeout__ = jiffies + msecs_to_jiffies(MS); \
int ret__ = 0; \
while (! (COND)) { \
if (time_after(jiffies, timeout__)) { \
ret__ = -ETIMEDOUT; \
break; \
} \
if (W && !in_dbg_master()) msleep(W); \
} \
ret__; \
})
#define wait_for(COND, MS) _wait_for(COND, MS, 1)
#define DP_LINK_CHECK_TIMEOUT (10 * 1000)
#define DP_LINK_CONFIGURATION_SIZE 9
#define CDV_FAST_LINK_TRAIN 1
struct cdv_intel_dp {
uint32_t output_reg;
uint32_t DP;
uint8_t link_configuration[DP_LINK_CONFIGURATION_SIZE];
bool has_audio;
int force_audio;
uint32_t color_range;
uint8_t link_bw;
uint8_t lane_count;
uint8_t dpcd[4];
struct gma_encoder *encoder;
struct i2c_adapter adapter;
struct i2c_algo_dp_aux_data algo;
uint8_t train_set[4];
uint8_t link_status[DP_LINK_STATUS_SIZE];
int panel_power_up_delay;
int panel_power_down_delay;
int panel_power_cycle_delay;
int backlight_on_delay;
int backlight_off_delay;
struct drm_display_mode *panel_fixed_mode; /* for eDP */
bool panel_on;
};
struct ddi_regoff {
uint32_t PreEmph1;
uint32_t PreEmph2;
uint32_t VSwing1;
uint32_t VSwing2;
uint32_t VSwing3;
uint32_t VSwing4;
uint32_t VSwing5;
};
static struct ddi_regoff ddi_DP_train_table[] = {
{.PreEmph1 = 0x812c, .PreEmph2 = 0x8124, .VSwing1 = 0x8154,
.VSwing2 = 0x8148, .VSwing3 = 0x814C, .VSwing4 = 0x8150,
.VSwing5 = 0x8158,},
{.PreEmph1 = 0x822c, .PreEmph2 = 0x8224, .VSwing1 = 0x8254,
.VSwing2 = 0x8248, .VSwing3 = 0x824C, .VSwing4 = 0x8250,
.VSwing5 = 0x8258,},
};
static uint32_t dp_vswing_premph_table[] = {
0x55338954, 0x4000,
0x554d8954, 0x2000,
0x55668954, 0,
0x559ac0d4, 0x6000,
};
/**
* is_edp - is the given port attached to an eDP panel (either CPU or PCH)
* @intel_dp: DP struct
*
* If a CPU or PCH DP output is attached to an eDP panel, this function
* will return true, and false otherwise.
*/
static bool is_edp(struct gma_encoder *encoder)
{
return encoder->type == INTEL_OUTPUT_EDP;
}
static void cdv_intel_dp_start_link_train(struct gma_encoder *encoder);
static void cdv_intel_dp_complete_link_train(struct gma_encoder *encoder);
static void cdv_intel_dp_link_down(struct gma_encoder *encoder);
static int
cdv_intel_dp_max_lane_count(struct gma_encoder *encoder)
{
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
int max_lane_count = 4;
if (intel_dp->dpcd[DP_DPCD_REV] >= 0x11) {
max_lane_count = intel_dp->dpcd[DP_MAX_LANE_COUNT] & 0x1f;
switch (max_lane_count) {
case 1: case 2: case 4:
break;
default:
max_lane_count = 4;
}
}
return max_lane_count;
}
static int
cdv_intel_dp_max_link_bw(struct gma_encoder *encoder)
{
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
int max_link_bw = intel_dp->dpcd[DP_MAX_LINK_RATE];
switch (max_link_bw) {
case DP_LINK_BW_1_62:
case DP_LINK_BW_2_7:
break;
default:
max_link_bw = DP_LINK_BW_1_62;
break;
}
return max_link_bw;
}
static int
cdv_intel_dp_link_clock(uint8_t link_bw)
{
if (link_bw == DP_LINK_BW_2_7)
return 270000;
else
return 162000;
}
static int
cdv_intel_dp_link_required(int pixel_clock, int bpp)
{
return (pixel_clock * bpp + 7) / 8;
}
static int
cdv_intel_dp_max_data_rate(int max_link_clock, int max_lanes)
{
return (max_link_clock * max_lanes * 19) / 20;
}
static void cdv_intel_edp_panel_vdd_on(struct gma_encoder *intel_encoder)
{
struct drm_device *dev = intel_encoder->base.dev;
struct cdv_intel_dp *intel_dp = intel_encoder->dev_priv;
u32 pp;
if (intel_dp->panel_on) {
DRM_DEBUG_KMS("Skip VDD on because of panel on\n");
return;
}
DRM_DEBUG_KMS("\n");
pp = REG_READ(PP_CONTROL);
pp |= EDP_FORCE_VDD;
REG_WRITE(PP_CONTROL, pp);
REG_READ(PP_CONTROL);
msleep(intel_dp->panel_power_up_delay);
}
static void cdv_intel_edp_panel_vdd_off(struct gma_encoder *intel_encoder)
{
struct drm_device *dev = intel_encoder->base.dev;
u32 pp;
DRM_DEBUG_KMS("\n");
pp = REG_READ(PP_CONTROL);
pp &= ~EDP_FORCE_VDD;
REG_WRITE(PP_CONTROL, pp);
REG_READ(PP_CONTROL);
}
/* Returns true if the panel was already on when called */
static bool cdv_intel_edp_panel_on(struct gma_encoder *intel_encoder)
{
struct drm_device *dev = intel_encoder->base.dev;
struct cdv_intel_dp *intel_dp = intel_encoder->dev_priv;
u32 pp, idle_on_mask = PP_ON | PP_SEQUENCE_NONE;
if (intel_dp->panel_on)
return true;
DRM_DEBUG_KMS("\n");
pp = REG_READ(PP_CONTROL);
pp &= ~PANEL_UNLOCK_MASK;
pp |= (PANEL_UNLOCK_REGS | POWER_TARGET_ON);
REG_WRITE(PP_CONTROL, pp);
REG_READ(PP_CONTROL);
if (wait_for(((REG_READ(PP_STATUS) & idle_on_mask) == idle_on_mask), 1000)) {
DRM_DEBUG_KMS("Error in Powering up eDP panel, status %x\n", REG_READ(PP_STATUS));
intel_dp->panel_on = false;
} else
intel_dp->panel_on = true;
msleep(intel_dp->panel_power_up_delay);
return false;
}
static void cdv_intel_edp_panel_off (struct gma_encoder *intel_encoder)
{
struct drm_device *dev = intel_encoder->base.dev;
u32 pp, idle_off_mask = PP_ON ;
struct cdv_intel_dp *intel_dp = intel_encoder->dev_priv;
DRM_DEBUG_KMS("\n");
pp = REG_READ(PP_CONTROL);
if ((pp & POWER_TARGET_ON) == 0)
return;
intel_dp->panel_on = false;
pp &= ~PANEL_UNLOCK_MASK;
/* ILK workaround: disable reset around power sequence */
pp &= ~POWER_TARGET_ON;
pp &= ~EDP_FORCE_VDD;
pp &= ~EDP_BLC_ENABLE;
REG_WRITE(PP_CONTROL, pp);
REG_READ(PP_CONTROL);
DRM_DEBUG_KMS("PP_STATUS %x\n", REG_READ(PP_STATUS));
if (wait_for((REG_READ(PP_STATUS) & idle_off_mask) == 0, 1000)) {
DRM_DEBUG_KMS("Error in turning off Panel\n");
}
msleep(intel_dp->panel_power_cycle_delay);
DRM_DEBUG_KMS("Over\n");
}
static void cdv_intel_edp_backlight_on (struct gma_encoder *intel_encoder)
{
struct drm_device *dev = intel_encoder->base.dev;
u32 pp;
DRM_DEBUG_KMS("\n");
/*
* If we enable the backlight right away following a panel power
* on, we may see slight flicker as the panel syncs with the eDP
* link. So delay a bit to make sure the image is solid before
* allowing it to appear.
*/
msleep(300);
pp = REG_READ(PP_CONTROL);
pp |= EDP_BLC_ENABLE;
REG_WRITE(PP_CONTROL, pp);
gma_backlight_enable(dev);
}
static void cdv_intel_edp_backlight_off (struct gma_encoder *intel_encoder)
{
struct drm_device *dev = intel_encoder->base.dev;
struct cdv_intel_dp *intel_dp = intel_encoder->dev_priv;
u32 pp;
DRM_DEBUG_KMS("\n");
gma_backlight_disable(dev);
msleep(10);
pp = REG_READ(PP_CONTROL);
pp &= ~EDP_BLC_ENABLE;
REG_WRITE(PP_CONTROL, pp);
msleep(intel_dp->backlight_off_delay);
}
static enum drm_mode_status
cdv_intel_dp_mode_valid(struct drm_connector *connector,
struct drm_display_mode *mode)
{
struct gma_encoder *encoder = gma_attached_encoder(connector);
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
int max_link_clock = cdv_intel_dp_link_clock(cdv_intel_dp_max_link_bw(encoder));
int max_lanes = cdv_intel_dp_max_lane_count(encoder);
struct drm_psb_private *dev_priv = connector->dev->dev_private;
if (is_edp(encoder) && intel_dp->panel_fixed_mode) {
if (mode->hdisplay > intel_dp->panel_fixed_mode->hdisplay)
return MODE_PANEL;
if (mode->vdisplay > intel_dp->panel_fixed_mode->vdisplay)
return MODE_PANEL;
}
/* only refuse the mode on non eDP since we have seen some weird eDP panels
which are outside spec tolerances but somehow work by magic */
if (!is_edp(encoder) &&
(cdv_intel_dp_link_required(mode->clock, dev_priv->edp.bpp)
> cdv_intel_dp_max_data_rate(max_link_clock, max_lanes)))
return MODE_CLOCK_HIGH;
if (is_edp(encoder)) {
if (cdv_intel_dp_link_required(mode->clock, 24)
> cdv_intel_dp_max_data_rate(max_link_clock, max_lanes))
return MODE_CLOCK_HIGH;
}
if (mode->clock < 10000)
return MODE_CLOCK_LOW;
return MODE_OK;
}
static uint32_t
pack_aux(uint8_t *src, int src_bytes)
{
int i;
uint32_t v = 0;
if (src_bytes > 4)
src_bytes = 4;
for (i = 0; i < src_bytes; i++)
v |= ((uint32_t) src[i]) << ((3-i) * 8);
return v;
}
static void
unpack_aux(uint32_t src, uint8_t *dst, int dst_bytes)
{
int i;
if (dst_bytes > 4)
dst_bytes = 4;
for (i = 0; i < dst_bytes; i++)
dst[i] = src >> ((3-i) * 8);
}
static int
cdv_intel_dp_aux_ch(struct gma_encoder *encoder,
uint8_t *send, int send_bytes,
uint8_t *recv, int recv_size)
{
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
uint32_t output_reg = intel_dp->output_reg;
struct drm_device *dev = encoder->base.dev;
uint32_t ch_ctl = output_reg + 0x10;
uint32_t ch_data = ch_ctl + 4;
int i;
int recv_bytes;
uint32_t status;
uint32_t aux_clock_divider;
int try, precharge;
/* The clock divider is based off the hrawclk,
* and would like to run at 2MHz. So, take the
* hrawclk value and divide by 2 and use that
* On CDV platform it uses 200MHz as hrawclk.
*
*/
aux_clock_divider = 200 / 2;
precharge = 4;
if (is_edp(encoder))
precharge = 10;
if (REG_READ(ch_ctl) & DP_AUX_CH_CTL_SEND_BUSY) {
DRM_ERROR("dp_aux_ch not started status 0x%08x\n",
REG_READ(ch_ctl));
return -EBUSY;
}
/* Must try at least 3 times according to DP spec */
for (try = 0; try < 5; try++) {
/* Load the send data into the aux channel data registers */
for (i = 0; i < send_bytes; i += 4)
REG_WRITE(ch_data + i,
pack_aux(send + i, send_bytes - i));
/* Send the command and wait for it to complete */
REG_WRITE(ch_ctl,
DP_AUX_CH_CTL_SEND_BUSY |
DP_AUX_CH_CTL_TIME_OUT_400us |
(send_bytes << DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT) |
(precharge << DP_AUX_CH_CTL_PRECHARGE_2US_SHIFT) |
(aux_clock_divider << DP_AUX_CH_CTL_BIT_CLOCK_2X_SHIFT) |
DP_AUX_CH_CTL_DONE |
DP_AUX_CH_CTL_TIME_OUT_ERROR |
DP_AUX_CH_CTL_RECEIVE_ERROR);
for (;;) {
status = REG_READ(ch_ctl);
if ((status & DP_AUX_CH_CTL_SEND_BUSY) == 0)
break;
udelay(100);
}
/* Clear done status and any errors */
REG_WRITE(ch_ctl,
status |
DP_AUX_CH_CTL_DONE |
DP_AUX_CH_CTL_TIME_OUT_ERROR |
DP_AUX_CH_CTL_RECEIVE_ERROR);
if (status & DP_AUX_CH_CTL_DONE)
break;
}
if ((status & DP_AUX_CH_CTL_DONE) == 0) {
DRM_ERROR("dp_aux_ch not done status 0x%08x\n", status);
return -EBUSY;
}
/* Check for timeout or receive error.
* Timeouts occur when the sink is not connected
*/
if (status & DP_AUX_CH_CTL_RECEIVE_ERROR) {
DRM_ERROR("dp_aux_ch receive error status 0x%08x\n", status);
return -EIO;
}
/* Timeouts occur when the device isn't connected, so they're
* "normal" -- don't fill the kernel log with these */
if (status & DP_AUX_CH_CTL_TIME_OUT_ERROR) {
DRM_DEBUG_KMS("dp_aux_ch timeout status 0x%08x\n", status);
return -ETIMEDOUT;
}
/* Unload any bytes sent back from the other side */
recv_bytes = ((status & DP_AUX_CH_CTL_MESSAGE_SIZE_MASK) >>
DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT);
if (recv_bytes > recv_size)
recv_bytes = recv_size;
for (i = 0; i < recv_bytes; i += 4)
unpack_aux(REG_READ(ch_data + i),
recv + i, recv_bytes - i);
return recv_bytes;
}
/* Write data to the aux channel in native mode */
static int
cdv_intel_dp_aux_native_write(struct gma_encoder *encoder,
uint16_t address, uint8_t *send, int send_bytes)
{
int ret;
uint8_t msg[20];
int msg_bytes;
uint8_t ack;
if (send_bytes > 16)
return -1;
msg[0] = DP_AUX_NATIVE_WRITE << 4;
msg[1] = address >> 8;
msg[2] = address & 0xff;
msg[3] = send_bytes - 1;
memcpy(&msg[4], send, send_bytes);
msg_bytes = send_bytes + 4;
for (;;) {
ret = cdv_intel_dp_aux_ch(encoder, msg, msg_bytes, &ack, 1);
if (ret < 0)
return ret;
ack >>= 4;
if ((ack & DP_AUX_NATIVE_REPLY_MASK) == DP_AUX_NATIVE_REPLY_ACK)
break;
else if ((ack & DP_AUX_NATIVE_REPLY_MASK) == DP_AUX_NATIVE_REPLY_DEFER)
udelay(100);
else
return -EIO;
}
return send_bytes;
}
/* Write a single byte to the aux channel in native mode */
static int
cdv_intel_dp_aux_native_write_1(struct gma_encoder *encoder,
uint16_t address, uint8_t byte)
{
return cdv_intel_dp_aux_native_write(encoder, address, &byte, 1);
}
/* read bytes from a native aux channel */
static int
cdv_intel_dp_aux_native_read(struct gma_encoder *encoder,
uint16_t address, uint8_t *recv, int recv_bytes)
{
uint8_t msg[4];
int msg_bytes;
uint8_t reply[20];
int reply_bytes;
uint8_t ack;
int ret;
msg[0] = DP_AUX_NATIVE_READ << 4;
msg[1] = address >> 8;
msg[2] = address & 0xff;
msg[3] = recv_bytes - 1;
msg_bytes = 4;
reply_bytes = recv_bytes + 1;
for (;;) {
ret = cdv_intel_dp_aux_ch(encoder, msg, msg_bytes,
reply, reply_bytes);
if (ret == 0)
return -EPROTO;
if (ret < 0)
return ret;
ack = reply[0] >> 4;
if ((ack & DP_AUX_NATIVE_REPLY_MASK) == DP_AUX_NATIVE_REPLY_ACK) {
memcpy(recv, reply + 1, ret - 1);
return ret - 1;
}
else if ((ack & DP_AUX_NATIVE_REPLY_MASK) == DP_AUX_NATIVE_REPLY_DEFER)
udelay(100);
else
return -EIO;
}
}
static int
cdv_intel_dp_i2c_aux_ch(struct i2c_adapter *adapter, int mode,
uint8_t write_byte, uint8_t *read_byte)
{
struct i2c_algo_dp_aux_data *algo_data = adapter->algo_data;
struct cdv_intel_dp *intel_dp = container_of(adapter,
struct cdv_intel_dp,
adapter);
struct gma_encoder *encoder = intel_dp->encoder;
uint16_t address = algo_data->address;
uint8_t msg[5];
uint8_t reply[2];
unsigned retry;
int msg_bytes;
int reply_bytes;
int ret;
/* Set up the command byte */
if (mode & MODE_I2C_READ)
msg[0] = DP_AUX_I2C_READ << 4;
else
msg[0] = DP_AUX_I2C_WRITE << 4;
if (!(mode & MODE_I2C_STOP))
msg[0] |= DP_AUX_I2C_MOT << 4;
msg[1] = address >> 8;
msg[2] = address;
switch (mode) {
case MODE_I2C_WRITE:
msg[3] = 0;
msg[4] = write_byte;
msg_bytes = 5;
reply_bytes = 1;
break;
case MODE_I2C_READ:
msg[3] = 0;
msg_bytes = 4;
reply_bytes = 2;
break;
default:
msg_bytes = 3;
reply_bytes = 1;
break;
}
for (retry = 0; retry < 5; retry++) {
ret = cdv_intel_dp_aux_ch(encoder,
msg, msg_bytes,
reply, reply_bytes);
if (ret < 0) {
DRM_DEBUG_KMS("aux_ch failed %d\n", ret);
return ret;
}
switch ((reply[0] >> 4) & DP_AUX_NATIVE_REPLY_MASK) {
case DP_AUX_NATIVE_REPLY_ACK:
/* I2C-over-AUX Reply field is only valid
* when paired with AUX ACK.
*/
break;
case DP_AUX_NATIVE_REPLY_NACK:
DRM_DEBUG_KMS("aux_ch native nack\n");
return -EREMOTEIO;
case DP_AUX_NATIVE_REPLY_DEFER:
udelay(100);
continue;
default:
DRM_ERROR("aux_ch invalid native reply 0x%02x\n",
reply[0]);
return -EREMOTEIO;
}
switch ((reply[0] >> 4) & DP_AUX_I2C_REPLY_MASK) {
case DP_AUX_I2C_REPLY_ACK:
if (mode == MODE_I2C_READ) {
*read_byte = reply[1];
}
return reply_bytes - 1;
case DP_AUX_I2C_REPLY_NACK:
DRM_DEBUG_KMS("aux_i2c nack\n");
return -EREMOTEIO;
case DP_AUX_I2C_REPLY_DEFER:
DRM_DEBUG_KMS("aux_i2c defer\n");
udelay(100);
break;
default:
DRM_ERROR("aux_i2c invalid reply 0x%02x\n", reply[0]);
return -EREMOTEIO;
}
}
DRM_ERROR("too many retries, giving up\n");
return -EREMOTEIO;
}
static int
cdv_intel_dp_i2c_init(struct gma_connector *connector,
struct gma_encoder *encoder, const char *name)
{
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
int ret;
DRM_DEBUG_KMS("i2c_init %s\n", name);
intel_dp->algo.running = false;
intel_dp->algo.address = 0;
intel_dp->algo.aux_ch = cdv_intel_dp_i2c_aux_ch;
memset(&intel_dp->adapter, '\0', sizeof (intel_dp->adapter));
intel_dp->adapter.owner = THIS_MODULE;
intel_dp->adapter.class = I2C_CLASS_DDC;
strncpy (intel_dp->adapter.name, name, sizeof(intel_dp->adapter.name) - 1);
intel_dp->adapter.name[sizeof(intel_dp->adapter.name) - 1] = '\0';
intel_dp->adapter.algo_data = &intel_dp->algo;
intel_dp->adapter.dev.parent = connector->base.kdev;
if (is_edp(encoder))
cdv_intel_edp_panel_vdd_on(encoder);
ret = i2c_dp_aux_add_bus(&intel_dp->adapter);
if (is_edp(encoder))
cdv_intel_edp_panel_vdd_off(encoder);
return ret;
}
static void cdv_intel_fixed_panel_mode(struct drm_display_mode *fixed_mode,
struct drm_display_mode *adjusted_mode)
{
adjusted_mode->hdisplay = fixed_mode->hdisplay;
adjusted_mode->hsync_start = fixed_mode->hsync_start;
adjusted_mode->hsync_end = fixed_mode->hsync_end;
adjusted_mode->htotal = fixed_mode->htotal;
adjusted_mode->vdisplay = fixed_mode->vdisplay;
adjusted_mode->vsync_start = fixed_mode->vsync_start;
adjusted_mode->vsync_end = fixed_mode->vsync_end;
adjusted_mode->vtotal = fixed_mode->vtotal;
adjusted_mode->clock = fixed_mode->clock;
drm_mode_set_crtcinfo(adjusted_mode, CRTC_INTERLACE_HALVE_V);
}
static bool
cdv_intel_dp_mode_fixup(struct drm_encoder *encoder, const struct drm_display_mode *mode,
struct drm_display_mode *adjusted_mode)
{
struct drm_psb_private *dev_priv = encoder->dev->dev_private;
struct gma_encoder *intel_encoder = to_gma_encoder(encoder);
struct cdv_intel_dp *intel_dp = intel_encoder->dev_priv;
int lane_count, clock;
int max_lane_count = cdv_intel_dp_max_lane_count(intel_encoder);
int max_clock = cdv_intel_dp_max_link_bw(intel_encoder) == DP_LINK_BW_2_7 ? 1 : 0;
static int bws[2] = { DP_LINK_BW_1_62, DP_LINK_BW_2_7 };
int refclock = mode->clock;
int bpp = 24;
if (is_edp(intel_encoder) && intel_dp->panel_fixed_mode) {
cdv_intel_fixed_panel_mode(intel_dp->panel_fixed_mode, adjusted_mode);
refclock = intel_dp->panel_fixed_mode->clock;
bpp = dev_priv->edp.bpp;
}
for (lane_count = 1; lane_count <= max_lane_count; lane_count <<= 1) {
for (clock = max_clock; clock >= 0; clock--) {
int link_avail = cdv_intel_dp_max_data_rate(cdv_intel_dp_link_clock(bws[clock]), lane_count);
if (cdv_intel_dp_link_required(refclock, bpp) <= link_avail) {
intel_dp->link_bw = bws[clock];
intel_dp->lane_count = lane_count;
adjusted_mode->clock = cdv_intel_dp_link_clock(intel_dp->link_bw);
DRM_DEBUG_KMS("Display port link bw %02x lane "
"count %d clock %d\n",
intel_dp->link_bw, intel_dp->lane_count,
adjusted_mode->clock);
return true;
}
}
}
if (is_edp(intel_encoder)) {
/* okay we failed just pick the highest */
intel_dp->lane_count = max_lane_count;
intel_dp->link_bw = bws[max_clock];
adjusted_mode->clock = cdv_intel_dp_link_clock(intel_dp->link_bw);
DRM_DEBUG_KMS("Force picking display port link bw %02x lane "
"count %d clock %d\n",
intel_dp->link_bw, intel_dp->lane_count,
adjusted_mode->clock);
return true;
}
return false;
}
struct cdv_intel_dp_m_n {
uint32_t tu;
uint32_t gmch_m;
uint32_t gmch_n;
uint32_t link_m;
uint32_t link_n;
};
static void
cdv_intel_reduce_ratio(uint32_t *num, uint32_t *den)
{
/*
while (*num > 0xffffff || *den > 0xffffff) {
*num >>= 1;
*den >>= 1;
}*/
uint64_t value, m;
m = *num;
value = m * (0x800000);
m = do_div(value, *den);
*num = value;
*den = 0x800000;
}
static void
cdv_intel_dp_compute_m_n(int bpp,
int nlanes,
int pixel_clock,
int link_clock,
struct cdv_intel_dp_m_n *m_n)
{
m_n->tu = 64;
m_n->gmch_m = (pixel_clock * bpp + 7) >> 3;
m_n->gmch_n = link_clock * nlanes;
cdv_intel_reduce_ratio(&m_n->gmch_m, &m_n->gmch_n);
m_n->link_m = pixel_clock;
m_n->link_n = link_clock;
cdv_intel_reduce_ratio(&m_n->link_m, &m_n->link_n);
}
void
cdv_intel_dp_set_m_n(struct drm_crtc *crtc, struct drm_display_mode *mode,
struct drm_display_mode *adjusted_mode)
{
struct drm_device *dev = crtc->dev;
struct drm_psb_private *dev_priv = dev->dev_private;
struct drm_mode_config *mode_config = &dev->mode_config;
struct drm_encoder *encoder;
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
int lane_count = 4, bpp = 24;
struct cdv_intel_dp_m_n m_n;
int pipe = gma_crtc->pipe;
/*
* Find the lane count in the intel_encoder private
*/
list_for_each_entry(encoder, &mode_config->encoder_list, head) {
struct gma_encoder *intel_encoder;
struct cdv_intel_dp *intel_dp;
if (encoder->crtc != crtc)
continue;
intel_encoder = to_gma_encoder(encoder);
intel_dp = intel_encoder->dev_priv;
if (intel_encoder->type == INTEL_OUTPUT_DISPLAYPORT) {
lane_count = intel_dp->lane_count;
break;
} else if (is_edp(intel_encoder)) {
lane_count = intel_dp->lane_count;
bpp = dev_priv->edp.bpp;
break;
}
}
/*
* Compute the GMCH and Link ratios. The '3' here is
* the number of bytes_per_pixel post-LUT, which we always
* set up for 8-bits of R/G/B, or 3 bytes total.
*/
cdv_intel_dp_compute_m_n(bpp, lane_count,
mode->clock, adjusted_mode->clock, &m_n);
{
REG_WRITE(PIPE_GMCH_DATA_M(pipe),
((m_n.tu - 1) << PIPE_GMCH_DATA_M_TU_SIZE_SHIFT) |
m_n.gmch_m);
REG_WRITE(PIPE_GMCH_DATA_N(pipe), m_n.gmch_n);
REG_WRITE(PIPE_DP_LINK_M(pipe), m_n.link_m);
REG_WRITE(PIPE_DP_LINK_N(pipe), m_n.link_n);
}
}
static void
cdv_intel_dp_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode,
struct drm_display_mode *adjusted_mode)
{
struct gma_encoder *intel_encoder = to_gma_encoder(encoder);
struct drm_crtc *crtc = encoder->crtc;
struct gma_crtc *gma_crtc = to_gma_crtc(crtc);
struct cdv_intel_dp *intel_dp = intel_encoder->dev_priv;
struct drm_device *dev = encoder->dev;
intel_dp->DP = DP_VOLTAGE_0_4 | DP_PRE_EMPHASIS_0;
intel_dp->DP |= intel_dp->color_range;
if (adjusted_mode->flags & DRM_MODE_FLAG_PHSYNC)
intel_dp->DP |= DP_SYNC_HS_HIGH;
if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC)
intel_dp->DP |= DP_SYNC_VS_HIGH;
intel_dp->DP |= DP_LINK_TRAIN_OFF;
switch (intel_dp->lane_count) {
case 1:
intel_dp->DP |= DP_PORT_WIDTH_1;
break;
case 2:
intel_dp->DP |= DP_PORT_WIDTH_2;
break;
case 4:
intel_dp->DP |= DP_PORT_WIDTH_4;
break;
}
if (intel_dp->has_audio)
intel_dp->DP |= DP_AUDIO_OUTPUT_ENABLE;
memset(intel_dp->link_configuration, 0, DP_LINK_CONFIGURATION_SIZE);
intel_dp->link_configuration[0] = intel_dp->link_bw;
intel_dp->link_configuration[1] = intel_dp->lane_count;
/*
* Check for DPCD version > 1.1 and enhanced framing support
*/
if (intel_dp->dpcd[DP_DPCD_REV] >= 0x11 &&
(intel_dp->dpcd[DP_MAX_LANE_COUNT] & DP_ENHANCED_FRAME_CAP)) {
intel_dp->link_configuration[1] |= DP_LANE_COUNT_ENHANCED_FRAME_EN;
intel_dp->DP |= DP_ENHANCED_FRAMING;
}
/* CPT DP's pipe select is decided in TRANS_DP_CTL */
if (gma_crtc->pipe == 1)
intel_dp->DP |= DP_PIPEB_SELECT;
REG_WRITE(intel_dp->output_reg, (intel_dp->DP | DP_PORT_EN));
DRM_DEBUG_KMS("DP expected reg is %x\n", intel_dp->DP);
if (is_edp(intel_encoder)) {
uint32_t pfit_control;
cdv_intel_edp_panel_on(intel_encoder);
if (mode->hdisplay != adjusted_mode->hdisplay ||
mode->vdisplay != adjusted_mode->vdisplay)
pfit_control = PFIT_ENABLE;
else
pfit_control = 0;
pfit_control |= gma_crtc->pipe << PFIT_PIPE_SHIFT;
REG_WRITE(PFIT_CONTROL, pfit_control);
}
}
/* If the sink supports it, try to set the power state appropriately */
static void cdv_intel_dp_sink_dpms(struct gma_encoder *encoder, int mode)
{
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
int ret, i;
/* Should have a valid DPCD by this point */
if (intel_dp->dpcd[DP_DPCD_REV] < 0x11)
return;
if (mode != DRM_MODE_DPMS_ON) {
ret = cdv_intel_dp_aux_native_write_1(encoder, DP_SET_POWER,
DP_SET_POWER_D3);
if (ret != 1)
DRM_DEBUG_DRIVER("failed to write sink power state\n");
} else {
/*
* When turning on, we need to retry for 1ms to give the sink
* time to wake up.
*/
for (i = 0; i < 3; i++) {
ret = cdv_intel_dp_aux_native_write_1(encoder,
DP_SET_POWER,
DP_SET_POWER_D0);
if (ret == 1)
break;
udelay(1000);
}
}
}
static void cdv_intel_dp_prepare(struct drm_encoder *encoder)
{
struct gma_encoder *intel_encoder = to_gma_encoder(encoder);
int edp = is_edp(intel_encoder);
if (edp) {
cdv_intel_edp_backlight_off(intel_encoder);
cdv_intel_edp_panel_off(intel_encoder);
cdv_intel_edp_panel_vdd_on(intel_encoder);
}
/* Wake up the sink first */
cdv_intel_dp_sink_dpms(intel_encoder, DRM_MODE_DPMS_ON);
cdv_intel_dp_link_down(intel_encoder);
if (edp)
cdv_intel_edp_panel_vdd_off(intel_encoder);
}
static void cdv_intel_dp_commit(struct drm_encoder *encoder)
{
struct gma_encoder *intel_encoder = to_gma_encoder(encoder);
int edp = is_edp(intel_encoder);
if (edp)
cdv_intel_edp_panel_on(intel_encoder);
cdv_intel_dp_start_link_train(intel_encoder);
cdv_intel_dp_complete_link_train(intel_encoder);
if (edp)
cdv_intel_edp_backlight_on(intel_encoder);
}
static void
cdv_intel_dp_dpms(struct drm_encoder *encoder, int mode)
{
struct gma_encoder *intel_encoder = to_gma_encoder(encoder);
struct cdv_intel_dp *intel_dp = intel_encoder->dev_priv;
struct drm_device *dev = encoder->dev;
uint32_t dp_reg = REG_READ(intel_dp->output_reg);
int edp = is_edp(intel_encoder);
if (mode != DRM_MODE_DPMS_ON) {
if (edp) {
cdv_intel_edp_backlight_off(intel_encoder);
cdv_intel_edp_panel_vdd_on(intel_encoder);
}
cdv_intel_dp_sink_dpms(intel_encoder, mode);
cdv_intel_dp_link_down(intel_encoder);
if (edp) {
cdv_intel_edp_panel_vdd_off(intel_encoder);
cdv_intel_edp_panel_off(intel_encoder);
}
} else {
if (edp)
cdv_intel_edp_panel_on(intel_encoder);
cdv_intel_dp_sink_dpms(intel_encoder, mode);
if (!(dp_reg & DP_PORT_EN)) {
cdv_intel_dp_start_link_train(intel_encoder);
cdv_intel_dp_complete_link_train(intel_encoder);
}
if (edp)
cdv_intel_edp_backlight_on(intel_encoder);
}
}
/*
* Native read with retry for link status and receiver capability reads for
* cases where the sink may still be asleep.
*/
static bool
cdv_intel_dp_aux_native_read_retry(struct gma_encoder *encoder, uint16_t address,
uint8_t *recv, int recv_bytes)
{
int ret, i;
/*
* Sinks are *supposed* to come up within 1ms from an off state,
* but we're also supposed to retry 3 times per the spec.
*/
for (i = 0; i < 3; i++) {
ret = cdv_intel_dp_aux_native_read(encoder, address, recv,
recv_bytes);
if (ret == recv_bytes)
return true;
udelay(1000);
}
return false;
}
/*
* Fetch AUX CH registers 0x202 - 0x207 which contain
* link status information
*/
static bool
cdv_intel_dp_get_link_status(struct gma_encoder *encoder)
{
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
return cdv_intel_dp_aux_native_read_retry(encoder,
DP_LANE0_1_STATUS,
intel_dp->link_status,
DP_LINK_STATUS_SIZE);
}
static uint8_t
cdv_intel_dp_link_status(uint8_t link_status[DP_LINK_STATUS_SIZE],
int r)
{
return link_status[r - DP_LANE0_1_STATUS];
}
static uint8_t
cdv_intel_get_adjust_request_voltage(uint8_t link_status[DP_LINK_STATUS_SIZE],
int lane)
{
int i = DP_ADJUST_REQUEST_LANE0_1 + (lane >> 1);
int s = ((lane & 1) ?
DP_ADJUST_VOLTAGE_SWING_LANE1_SHIFT :
DP_ADJUST_VOLTAGE_SWING_LANE0_SHIFT);
uint8_t l = cdv_intel_dp_link_status(link_status, i);
return ((l >> s) & 3) << DP_TRAIN_VOLTAGE_SWING_SHIFT;
}
static uint8_t
cdv_intel_get_adjust_request_pre_emphasis(uint8_t link_status[DP_LINK_STATUS_SIZE],
int lane)
{
int i = DP_ADJUST_REQUEST_LANE0_1 + (lane >> 1);
int s = ((lane & 1) ?
DP_ADJUST_PRE_EMPHASIS_LANE1_SHIFT :
DP_ADJUST_PRE_EMPHASIS_LANE0_SHIFT);
uint8_t l = cdv_intel_dp_link_status(link_status, i);
return ((l >> s) & 3) << DP_TRAIN_PRE_EMPHASIS_SHIFT;
}
#if 0
static char *voltage_names[] = {
"0.4V", "0.6V", "0.8V", "1.2V"
};
static char *pre_emph_names[] = {
"0dB", "3.5dB", "6dB", "9.5dB"
};
static char *link_train_names[] = {
"pattern 1", "pattern 2", "idle", "off"
};
#endif
#define CDV_DP_VOLTAGE_MAX DP_TRAIN_VOLTAGE_SWING_LEVEL_3
/*
static uint8_t
cdv_intel_dp_pre_emphasis_max(uint8_t voltage_swing)
{
switch (voltage_swing & DP_TRAIN_VOLTAGE_SWING_MASK) {
case DP_TRAIN_VOLTAGE_SWING_400:
return DP_TRAIN_PRE_EMPHASIS_6;
case DP_TRAIN_VOLTAGE_SWING_600:
return DP_TRAIN_PRE_EMPHASIS_6;
case DP_TRAIN_VOLTAGE_SWING_800:
return DP_TRAIN_PRE_EMPHASIS_3_5;
case DP_TRAIN_VOLTAGE_SWING_1200:
default:
return DP_TRAIN_PRE_EMPHASIS_0;
}
}
*/
static void
cdv_intel_get_adjust_train(struct gma_encoder *encoder)
{
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
uint8_t v = 0;
uint8_t p = 0;
int lane;
for (lane = 0; lane < intel_dp->lane_count; lane++) {
uint8_t this_v = cdv_intel_get_adjust_request_voltage(intel_dp->link_status, lane);
uint8_t this_p = cdv_intel_get_adjust_request_pre_emphasis(intel_dp->link_status, lane);
if (this_v > v)
v = this_v;
if (this_p > p)
p = this_p;
}
if (v >= CDV_DP_VOLTAGE_MAX)
v = CDV_DP_VOLTAGE_MAX | DP_TRAIN_MAX_SWING_REACHED;
if (p == DP_TRAIN_PRE_EMPHASIS_MASK)
p |= DP_TRAIN_MAX_PRE_EMPHASIS_REACHED;
for (lane = 0; lane < 4; lane++)
intel_dp->train_set[lane] = v | p;
}
static uint8_t
cdv_intel_get_lane_status(uint8_t link_status[DP_LINK_STATUS_SIZE],
int lane)
{
int i = DP_LANE0_1_STATUS + (lane >> 1);
int s = (lane & 1) * 4;
uint8_t l = cdv_intel_dp_link_status(link_status, i);
return (l >> s) & 0xf;
}
/* Check for clock recovery is done on all channels */
static bool
cdv_intel_clock_recovery_ok(uint8_t link_status[DP_LINK_STATUS_SIZE], int lane_count)
{
int lane;
uint8_t lane_status;
for (lane = 0; lane < lane_count; lane++) {
lane_status = cdv_intel_get_lane_status(link_status, lane);
if ((lane_status & DP_LANE_CR_DONE) == 0)
return false;
}
return true;
}
/* Check to see if channel eq is done on all channels */
#define CHANNEL_EQ_BITS (DP_LANE_CR_DONE|\
DP_LANE_CHANNEL_EQ_DONE|\
DP_LANE_SYMBOL_LOCKED)
static bool
cdv_intel_channel_eq_ok(struct gma_encoder *encoder)
{
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
uint8_t lane_align;
uint8_t lane_status;
int lane;
lane_align = cdv_intel_dp_link_status(intel_dp->link_status,
DP_LANE_ALIGN_STATUS_UPDATED);
if ((lane_align & DP_INTERLANE_ALIGN_DONE) == 0)
return false;
for (lane = 0; lane < intel_dp->lane_count; lane++) {
lane_status = cdv_intel_get_lane_status(intel_dp->link_status, lane);
if ((lane_status & CHANNEL_EQ_BITS) != CHANNEL_EQ_BITS)
return false;
}
return true;
}
static bool
cdv_intel_dp_set_link_train(struct gma_encoder *encoder,
uint32_t dp_reg_value,
uint8_t dp_train_pat)
{
struct drm_device *dev = encoder->base.dev;
int ret;
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
REG_WRITE(intel_dp->output_reg, dp_reg_value);
REG_READ(intel_dp->output_reg);
ret = cdv_intel_dp_aux_native_write_1(encoder,
DP_TRAINING_PATTERN_SET,
dp_train_pat);
if (ret != 1) {
DRM_DEBUG_KMS("Failure in setting link pattern %x\n",
dp_train_pat);
return false;
}
return true;
}
static bool
cdv_intel_dplink_set_level(struct gma_encoder *encoder,
uint8_t dp_train_pat)
{
int ret;
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
ret = cdv_intel_dp_aux_native_write(encoder,
DP_TRAINING_LANE0_SET,
intel_dp->train_set,
intel_dp->lane_count);
if (ret != intel_dp->lane_count) {
DRM_DEBUG_KMS("Failure in setting level %d, lane_cnt= %d\n",
intel_dp->train_set[0], intel_dp->lane_count);
return false;
}
return true;
}
static void
cdv_intel_dp_set_vswing_premph(struct gma_encoder *encoder, uint8_t signal_level)
{
struct drm_device *dev = encoder->base.dev;
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
struct ddi_regoff *ddi_reg;
int vswing, premph, index;
if (intel_dp->output_reg == DP_B)
ddi_reg = &ddi_DP_train_table[0];
else
ddi_reg = &ddi_DP_train_table[1];
vswing = (signal_level & DP_TRAIN_VOLTAGE_SWING_MASK);
premph = ((signal_level & DP_TRAIN_PRE_EMPHASIS_MASK)) >>
DP_TRAIN_PRE_EMPHASIS_SHIFT;
if (vswing + premph > 3)
return;
#ifdef CDV_FAST_LINK_TRAIN
return;
#endif
DRM_DEBUG_KMS("Test2\n");
//return ;
cdv_sb_reset(dev);
/* ;Swing voltage programming
;gfx_dpio_set_reg(0xc058, 0x0505313A) */
cdv_sb_write(dev, ddi_reg->VSwing5, 0x0505313A);
/* ;gfx_dpio_set_reg(0x8154, 0x43406055) */
cdv_sb_write(dev, ddi_reg->VSwing1, 0x43406055);
/* ;gfx_dpio_set_reg(0x8148, 0x55338954)
* The VSwing_PreEmph table is also considered based on the vswing/premp
*/
index = (vswing + premph) * 2;
if (premph == 1 && vswing == 1) {
cdv_sb_write(dev, ddi_reg->VSwing2, 0x055738954);
} else
cdv_sb_write(dev, ddi_reg->VSwing2, dp_vswing_premph_table[index]);
/* ;gfx_dpio_set_reg(0x814c, 0x40802040) */
if ((vswing + premph) == DP_TRAIN_VOLTAGE_SWING_LEVEL_3)
cdv_sb_write(dev, ddi_reg->VSwing3, 0x70802040);
else
cdv_sb_write(dev, ddi_reg->VSwing3, 0x40802040);
/* ;gfx_dpio_set_reg(0x8150, 0x2b405555) */
/* cdv_sb_write(dev, ddi_reg->VSwing4, 0x2b405555); */
/* ;gfx_dpio_set_reg(0x8154, 0xc3406055) */
cdv_sb_write(dev, ddi_reg->VSwing1, 0xc3406055);
/* ;Pre emphasis programming
* ;gfx_dpio_set_reg(0xc02c, 0x1f030040)
*/
cdv_sb_write(dev, ddi_reg->PreEmph1, 0x1f030040);
/* ;gfx_dpio_set_reg(0x8124, 0x00004000) */
index = 2 * premph + 1;
cdv_sb_write(dev, ddi_reg->PreEmph2, dp_vswing_premph_table[index]);
return;
}
/* Enable corresponding port and start training pattern 1 */
static void
cdv_intel_dp_start_link_train(struct gma_encoder *encoder)
{
struct drm_device *dev = encoder->base.dev;
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
int i;
uint8_t voltage;
bool clock_recovery = false;
int tries;
u32 reg;
uint32_t DP = intel_dp->DP;
DP |= DP_PORT_EN;
DP &= ~DP_LINK_TRAIN_MASK;
reg = DP;
reg |= DP_LINK_TRAIN_PAT_1;
/* Enable output, wait for it to become active */
REG_WRITE(intel_dp->output_reg, reg);
REG_READ(intel_dp->output_reg);
gma_wait_for_vblank(dev);
DRM_DEBUG_KMS("Link config\n");
/* Write the link configuration data */
cdv_intel_dp_aux_native_write(encoder, DP_LINK_BW_SET,
intel_dp->link_configuration,
2);
memset(intel_dp->train_set, 0, 4);
voltage = 0;
tries = 0;
clock_recovery = false;
DRM_DEBUG_KMS("Start train\n");
reg = DP | DP_LINK_TRAIN_PAT_1;
for (;;) {
/* Use intel_dp->train_set[0] to set the voltage and pre emphasis values */
DRM_DEBUG_KMS("DP Link Train Set %x, Link_config %x, %x\n",
intel_dp->train_set[0],
intel_dp->link_configuration[0],
intel_dp->link_configuration[1]);
if (!cdv_intel_dp_set_link_train(encoder, reg, DP_TRAINING_PATTERN_1)) {
DRM_DEBUG_KMS("Failure in aux-transfer setting pattern 1\n");
}
cdv_intel_dp_set_vswing_premph(encoder, intel_dp->train_set[0]);
/* Set training pattern 1 */
cdv_intel_dplink_set_level(encoder, DP_TRAINING_PATTERN_1);
udelay(200);
if (!cdv_intel_dp_get_link_status(encoder))
break;
DRM_DEBUG_KMS("DP Link status %x, %x, %x, %x, %x, %x\n",
intel_dp->link_status[0], intel_dp->link_status[1], intel_dp->link_status[2],
intel_dp->link_status[3], intel_dp->link_status[4], intel_dp->link_status[5]);
if (cdv_intel_clock_recovery_ok(intel_dp->link_status, intel_dp->lane_count)) {
DRM_DEBUG_KMS("PT1 train is done\n");
clock_recovery = true;
break;
}
/* Check to see if we've tried the max voltage */
for (i = 0; i < intel_dp->lane_count; i++)
if ((intel_dp->train_set[i] & DP_TRAIN_MAX_SWING_REACHED) == 0)
break;
if (i == intel_dp->lane_count)
break;
/* Check to see if we've tried the same voltage 5 times */
if ((intel_dp->train_set[0] & DP_TRAIN_VOLTAGE_SWING_MASK) == voltage) {
++tries;
if (tries == 5)
break;
} else
tries = 0;
voltage = intel_dp->train_set[0] & DP_TRAIN_VOLTAGE_SWING_MASK;
/* Compute new intel_dp->train_set as requested by target */
cdv_intel_get_adjust_train(encoder);
}
if (!clock_recovery) {
DRM_DEBUG_KMS("failure in DP patter 1 training, train set %x\n", intel_dp->train_set[0]);
}
intel_dp->DP = DP;
}
static void
cdv_intel_dp_complete_link_train(struct gma_encoder *encoder)
{
struct drm_device *dev = encoder->base.dev;
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
bool channel_eq = false;
int tries, cr_tries;
u32 reg;
uint32_t DP = intel_dp->DP;
/* channel equalization */
tries = 0;
cr_tries = 0;
channel_eq = false;
DRM_DEBUG_KMS("\n");
reg = DP | DP_LINK_TRAIN_PAT_2;
for (;;) {
DRM_DEBUG_KMS("DP Link Train Set %x, Link_config %x, %x\n",
intel_dp->train_set[0],
intel_dp->link_configuration[0],
intel_dp->link_configuration[1]);
/* channel eq pattern */
if (!cdv_intel_dp_set_link_train(encoder, reg,
DP_TRAINING_PATTERN_2)) {
DRM_DEBUG_KMS("Failure in aux-transfer setting pattern 2\n");
}
/* Use intel_dp->train_set[0] to set the voltage and pre emphasis values */
if (cr_tries > 5) {
DRM_ERROR("failed to train DP, aborting\n");
cdv_intel_dp_link_down(encoder);
break;
}
cdv_intel_dp_set_vswing_premph(encoder, intel_dp->train_set[0]);
cdv_intel_dplink_set_level(encoder, DP_TRAINING_PATTERN_2);
udelay(1000);
if (!cdv_intel_dp_get_link_status(encoder))
break;
DRM_DEBUG_KMS("DP Link status %x, %x, %x, %x, %x, %x\n",
intel_dp->link_status[0], intel_dp->link_status[1], intel_dp->link_status[2],
intel_dp->link_status[3], intel_dp->link_status[4], intel_dp->link_status[5]);
/* Make sure clock is still ok */
if (!cdv_intel_clock_recovery_ok(intel_dp->link_status, intel_dp->lane_count)) {
cdv_intel_dp_start_link_train(encoder);
cr_tries++;
continue;
}
if (cdv_intel_channel_eq_ok(encoder)) {
DRM_DEBUG_KMS("PT2 train is done\n");
channel_eq = true;
break;
}
/* Try 5 times, then try clock recovery if that fails */
if (tries > 5) {
cdv_intel_dp_link_down(encoder);
cdv_intel_dp_start_link_train(encoder);
tries = 0;
cr_tries++;
continue;
}
/* Compute new intel_dp->train_set as requested by target */
cdv_intel_get_adjust_train(encoder);
++tries;
}
reg = DP | DP_LINK_TRAIN_OFF;
REG_WRITE(intel_dp->output_reg, reg);
REG_READ(intel_dp->output_reg);
cdv_intel_dp_aux_native_write_1(encoder,
DP_TRAINING_PATTERN_SET, DP_TRAINING_PATTERN_DISABLE);
}
static void
cdv_intel_dp_link_down(struct gma_encoder *encoder)
{
struct drm_device *dev = encoder->base.dev;
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
uint32_t DP = intel_dp->DP;
if ((REG_READ(intel_dp->output_reg) & DP_PORT_EN) == 0)
return;
DRM_DEBUG_KMS("\n");
{
DP &= ~DP_LINK_TRAIN_MASK;
REG_WRITE(intel_dp->output_reg, DP | DP_LINK_TRAIN_PAT_IDLE);
}
REG_READ(intel_dp->output_reg);
msleep(17);
REG_WRITE(intel_dp->output_reg, DP & ~DP_PORT_EN);
REG_READ(intel_dp->output_reg);
}
static enum drm_connector_status cdv_dp_detect(struct gma_encoder *encoder)
{
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
enum drm_connector_status status;
status = connector_status_disconnected;
if (cdv_intel_dp_aux_native_read(encoder, 0x000, intel_dp->dpcd,
sizeof (intel_dp->dpcd)) == sizeof (intel_dp->dpcd))
{
if (intel_dp->dpcd[DP_DPCD_REV] != 0)
status = connector_status_connected;
}
if (status == connector_status_connected)
DRM_DEBUG_KMS("DPCD: Rev=%x LN_Rate=%x LN_CNT=%x LN_DOWNSP=%x\n",
intel_dp->dpcd[0], intel_dp->dpcd[1],
intel_dp->dpcd[2], intel_dp->dpcd[3]);
return status;
}
/**
* Uses CRT_HOTPLUG_EN and CRT_HOTPLUG_STAT to detect DP connection.
*
* \return true if DP port is connected.
* \return false if DP port is disconnected.
*/
static enum drm_connector_status
cdv_intel_dp_detect(struct drm_connector *connector, bool force)
{
struct gma_encoder *encoder = gma_attached_encoder(connector);
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
enum drm_connector_status status;
struct edid *edid = NULL;
int edp = is_edp(encoder);
intel_dp->has_audio = false;
if (edp)
cdv_intel_edp_panel_vdd_on(encoder);
status = cdv_dp_detect(encoder);
if (status != connector_status_connected) {
if (edp)
cdv_intel_edp_panel_vdd_off(encoder);
return status;
}
if (intel_dp->force_audio) {
intel_dp->has_audio = intel_dp->force_audio > 0;
} else {
edid = drm_get_edid(connector, &intel_dp->adapter);
if (edid) {
intel_dp->has_audio = drm_detect_monitor_audio(edid);
kfree(edid);
}
}
if (edp)
cdv_intel_edp_panel_vdd_off(encoder);
return connector_status_connected;
}
static int cdv_intel_dp_get_modes(struct drm_connector *connector)
{
struct gma_encoder *intel_encoder = gma_attached_encoder(connector);
struct cdv_intel_dp *intel_dp = intel_encoder->dev_priv;
struct edid *edid = NULL;
int ret = 0;
int edp = is_edp(intel_encoder);
edid = drm_get_edid(connector, &intel_dp->adapter);
if (edid) {
drm_connector_update_edid_property(connector, edid);
ret = drm_add_edid_modes(connector, edid);
kfree(edid);
}
if (is_edp(intel_encoder)) {
struct drm_device *dev = connector->dev;
struct drm_psb_private *dev_priv = dev->dev_private;
cdv_intel_edp_panel_vdd_off(intel_encoder);
if (ret) {
if (edp && !intel_dp->panel_fixed_mode) {
struct drm_display_mode *newmode;
list_for_each_entry(newmode, &connector->probed_modes,
head) {
if (newmode->type & DRM_MODE_TYPE_PREFERRED) {
intel_dp->panel_fixed_mode =
drm_mode_duplicate(dev, newmode);
break;
}
}
}
return ret;
}
if (!intel_dp->panel_fixed_mode && dev_priv->lfp_lvds_vbt_mode) {
intel_dp->panel_fixed_mode =
drm_mode_duplicate(dev, dev_priv->lfp_lvds_vbt_mode);
if (intel_dp->panel_fixed_mode) {
intel_dp->panel_fixed_mode->type |=
DRM_MODE_TYPE_PREFERRED;
}
}
if (intel_dp->panel_fixed_mode != NULL) {
struct drm_display_mode *mode;
mode = drm_mode_duplicate(dev, intel_dp->panel_fixed_mode);
drm_mode_probed_add(connector, mode);
return 1;
}
}
return ret;
}
static bool
cdv_intel_dp_detect_audio(struct drm_connector *connector)
{
struct gma_encoder *encoder = gma_attached_encoder(connector);
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
struct edid *edid;
bool has_audio = false;
int edp = is_edp(encoder);
if (edp)
cdv_intel_edp_panel_vdd_on(encoder);
edid = drm_get_edid(connector, &intel_dp->adapter);
if (edid) {
has_audio = drm_detect_monitor_audio(edid);
kfree(edid);
}
if (edp)
cdv_intel_edp_panel_vdd_off(encoder);
return has_audio;
}
static int
cdv_intel_dp_set_property(struct drm_connector *connector,
struct drm_property *property,
uint64_t val)
{
struct drm_psb_private *dev_priv = connector->dev->dev_private;
struct gma_encoder *encoder = gma_attached_encoder(connector);
struct cdv_intel_dp *intel_dp = encoder->dev_priv;
int ret;
ret = drm_object_property_set_value(&connector->base, property, val);
if (ret)
return ret;
if (property == dev_priv->force_audio_property) {
int i = val;
bool has_audio;
if (i == intel_dp->force_audio)
return 0;
intel_dp->force_audio = i;
if (i == 0)
has_audio = cdv_intel_dp_detect_audio(connector);
else
has_audio = i > 0;
if (has_audio == intel_dp->has_audio)
return 0;
intel_dp->has_audio = has_audio;
goto done;
}
if (property == dev_priv->broadcast_rgb_property) {
if (val == !!intel_dp->color_range)
return 0;
intel_dp->color_range = val ? DP_COLOR_RANGE_16_235 : 0;
goto done;
}
return -EINVAL;
done:
if (encoder->base.crtc) {
struct drm_crtc *crtc = encoder->base.crtc;
drm_crtc_helper_set_mode(crtc, &crtc->mode,
crtc->x, crtc->y,
crtc->primary->fb);
}
return 0;
}
static void
cdv_intel_dp_destroy(struct drm_connector *connector)
{
struct gma_encoder *gma_encoder = gma_attached_encoder(connector);
struct cdv_intel_dp *intel_dp = gma_encoder->dev_priv;
if (is_edp(gma_encoder)) {
/* cdv_intel_panel_destroy_backlight(connector->dev); */
kfree(intel_dp->panel_fixed_mode);
intel_dp->panel_fixed_mode = NULL;
}
i2c_del_adapter(&intel_dp->adapter);
drm_connector_unregister(connector);
drm_connector_cleanup(connector);
kfree(connector);
}
static void cdv_intel_dp_encoder_destroy(struct drm_encoder *encoder)
{
drm_encoder_cleanup(encoder);
}
static const struct drm_encoder_helper_funcs cdv_intel_dp_helper_funcs = {
.dpms = cdv_intel_dp_dpms,
.mode_fixup = cdv_intel_dp_mode_fixup,
.prepare = cdv_intel_dp_prepare,
.mode_set = cdv_intel_dp_mode_set,
.commit = cdv_intel_dp_commit,
};
static const struct drm_connector_funcs cdv_intel_dp_connector_funcs = {
.dpms = drm_helper_connector_dpms,
.detect = cdv_intel_dp_detect,
.fill_modes = drm_helper_probe_single_connector_modes,
.set_property = cdv_intel_dp_set_property,
.destroy = cdv_intel_dp_destroy,
};
static const struct drm_connector_helper_funcs cdv_intel_dp_connector_helper_funcs = {
.get_modes = cdv_intel_dp_get_modes,
.mode_valid = cdv_intel_dp_mode_valid,
.best_encoder = gma_best_encoder,
};
static const struct drm_encoder_funcs cdv_intel_dp_enc_funcs = {
.destroy = cdv_intel_dp_encoder_destroy,
};
static void cdv_intel_dp_add_properties(struct drm_connector *connector)
{
cdv_intel_attach_force_audio_property(connector);
cdv_intel_attach_broadcast_rgb_property(connector);
}
/* check the VBT to see whether the eDP is on DP-D port */
static bool cdv_intel_dpc_is_edp(struct drm_device *dev)
{
struct drm_psb_private *dev_priv = dev->dev_private;
struct child_device_config *p_child;
int i;
if (!dev_priv->child_dev_num)
return false;
for (i = 0; i < dev_priv->child_dev_num; i++) {
p_child = dev_priv->child_dev + i;
if (p_child->dvo_port == PORT_IDPC &&
p_child->device_type == DEVICE_TYPE_eDP)
return true;
}
return false;
}
/* Cedarview display clock gating
We need this disable dot get correct behaviour while enabling
DP/eDP. TODO - investigate if we can turn it back to normality
after enabling */
static void cdv_disable_intel_clock_gating(struct drm_device *dev)
{
u32 reg_value;
reg_value = REG_READ(DSPCLK_GATE_D);
reg_value |= (DPUNIT_PIPEB_GATE_DISABLE |
DPUNIT_PIPEA_GATE_DISABLE |
DPCUNIT_CLOCK_GATE_DISABLE |
DPLSUNIT_CLOCK_GATE_DISABLE |
DPOUNIT_CLOCK_GATE_DISABLE |
DPIOUNIT_CLOCK_GATE_DISABLE);
REG_WRITE(DSPCLK_GATE_D, reg_value);
udelay(500);
}
void
cdv_intel_dp_init(struct drm_device *dev, struct psb_intel_mode_device *mode_dev, int output_reg)
{
struct gma_encoder *gma_encoder;
struct gma_connector *gma_connector;
struct drm_connector *connector;
struct drm_encoder *encoder;
struct cdv_intel_dp *intel_dp;
const char *name = NULL;
int type = DRM_MODE_CONNECTOR_DisplayPort;
gma_encoder = kzalloc(sizeof(struct gma_encoder), GFP_KERNEL);
if (!gma_encoder)
return;
gma_connector = kzalloc(sizeof(struct gma_connector), GFP_KERNEL);
if (!gma_connector)
goto err_connector;
intel_dp = kzalloc(sizeof(struct cdv_intel_dp), GFP_KERNEL);
if (!intel_dp)
goto err_priv;
if ((output_reg == DP_C) && cdv_intel_dpc_is_edp(dev))
type = DRM_MODE_CONNECTOR_eDP;
connector = &gma_connector->base;
encoder = &gma_encoder->base;
drm_connector_init(dev, connector, &cdv_intel_dp_connector_funcs, type);
drm_encoder_init(dev, encoder, &cdv_intel_dp_enc_funcs,
DRM_MODE_ENCODER_TMDS, NULL);
gma_connector_attach_encoder(gma_connector, gma_encoder);
if (type == DRM_MODE_CONNECTOR_DisplayPort)
gma_encoder->type = INTEL_OUTPUT_DISPLAYPORT;
else
gma_encoder->type = INTEL_OUTPUT_EDP;
gma_encoder->dev_priv=intel_dp;
intel_dp->encoder = gma_encoder;
intel_dp->output_reg = output_reg;
drm_encoder_helper_add(encoder, &cdv_intel_dp_helper_funcs);
drm_connector_helper_add(connector, &cdv_intel_dp_connector_helper_funcs);
connector->polled = DRM_CONNECTOR_POLL_HPD;
connector->interlace_allowed = false;
connector->doublescan_allowed = false;
drm_connector_register(connector);
/* Set up the DDC bus. */
switch (output_reg) {
case DP_B:
name = "DPDDC-B";
gma_encoder->ddi_select = (DP_MASK | DDI0_SELECT);
break;
case DP_C:
name = "DPDDC-C";
gma_encoder->ddi_select = (DP_MASK | DDI1_SELECT);
break;
}
cdv_disable_intel_clock_gating(dev);
cdv_intel_dp_i2c_init(gma_connector, gma_encoder, name);
/* FIXME:fail check */
cdv_intel_dp_add_properties(connector);
if (is_edp(gma_encoder)) {
int ret;
struct edp_power_seq cur;
u32 pp_on, pp_off, pp_div;
u32 pwm_ctrl;
pp_on = REG_READ(PP_CONTROL);
pp_on &= ~PANEL_UNLOCK_MASK;
pp_on |= PANEL_UNLOCK_REGS;
REG_WRITE(PP_CONTROL, pp_on);
pwm_ctrl = REG_READ(BLC_PWM_CTL2);
pwm_ctrl |= PWM_PIPE_B;
REG_WRITE(BLC_PWM_CTL2, pwm_ctrl);
pp_on = REG_READ(PP_ON_DELAYS);
pp_off = REG_READ(PP_OFF_DELAYS);
pp_div = REG_READ(PP_DIVISOR);
/* Pull timing values out of registers */
cur.t1_t3 = (pp_on & PANEL_POWER_UP_DELAY_MASK) >>
PANEL_POWER_UP_DELAY_SHIFT;
cur.t8 = (pp_on & PANEL_LIGHT_ON_DELAY_MASK) >>
PANEL_LIGHT_ON_DELAY_SHIFT;
cur.t9 = (pp_off & PANEL_LIGHT_OFF_DELAY_MASK) >>
PANEL_LIGHT_OFF_DELAY_SHIFT;
cur.t10 = (pp_off & PANEL_POWER_DOWN_DELAY_MASK) >>
PANEL_POWER_DOWN_DELAY_SHIFT;
cur.t11_t12 = ((pp_div & PANEL_POWER_CYCLE_DELAY_MASK) >>
PANEL_POWER_CYCLE_DELAY_SHIFT);
DRM_DEBUG_KMS("cur t1_t3 %d t8 %d t9 %d t10 %d t11_t12 %d\n",
cur.t1_t3, cur.t8, cur.t9, cur.t10, cur.t11_t12);
intel_dp->panel_power_up_delay = cur.t1_t3 / 10;
intel_dp->backlight_on_delay = cur.t8 / 10;
intel_dp->backlight_off_delay = cur.t9 / 10;
intel_dp->panel_power_down_delay = cur.t10 / 10;
intel_dp->panel_power_cycle_delay = (cur.t11_t12 - 1) * 100;
DRM_DEBUG_KMS("panel power up delay %d, power down delay %d, power cycle delay %d\n",
intel_dp->panel_power_up_delay, intel_dp->panel_power_down_delay,
intel_dp->panel_power_cycle_delay);
DRM_DEBUG_KMS("backlight on delay %d, off delay %d\n",
intel_dp->backlight_on_delay, intel_dp->backlight_off_delay);
cdv_intel_edp_panel_vdd_on(gma_encoder);
ret = cdv_intel_dp_aux_native_read(gma_encoder, DP_DPCD_REV,
intel_dp->dpcd,
sizeof(intel_dp->dpcd));
cdv_intel_edp_panel_vdd_off(gma_encoder);
if (ret == 0) {
/* if this fails, presume the device is a ghost */
DRM_INFO("failed to retrieve link info, disabling eDP\n");
cdv_intel_dp_encoder_destroy(encoder);
cdv_intel_dp_destroy(connector);
goto err_priv;
} else {
DRM_DEBUG_KMS("DPCD: Rev=%x LN_Rate=%x LN_CNT=%x LN_DOWNSP=%x\n",
intel_dp->dpcd[0], intel_dp->dpcd[1],
intel_dp->dpcd[2], intel_dp->dpcd[3]);
}
/* The CDV reference driver moves pnale backlight setup into the displays that
have a backlight: this is a good idea and one we should probably adopt, however
we need to migrate all the drivers before we can do that */
/*cdv_intel_panel_setup_backlight(dev); */
}
return;
err_priv:
kfree(gma_connector);
err_connector:
kfree(gma_encoder);
}
| {
"pile_set_name": "Github"
} |
1d78f79e9d63fa05db2edbbdd3138e741b640461
| {
"pile_set_name": "Github"
} |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="variables_6e.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
createResults();
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
--></script>
</div>
</body>
</html>
| {
"pile_set_name": "Github"
} |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef builtin_TestingFunctions_h
#define builtin_TestingFunctions_h
#include "NamespaceImports.h"
namespace js {
bool
DefineTestingFunctions(JSContext *cx, HandleObject obj, bool fuzzingSafe);
bool
testingFunc_inParallelSection(JSContext *cx, unsigned argc, Value *vp);
bool
testingFunc_bailout(JSContext *cx, unsigned argc, Value *vp);
bool
testingFunc_assertFloat32(JSContext *cx, unsigned argc, Value *vp);
} /* namespace js */
#endif /* builtin_TestingFunctions_h */
| {
"pile_set_name": "Github"
} |
/*
* 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.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.content.model;
/**
* Model definition for RateGroup.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation
* see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class RateGroup extends com.google.api.client.json.GenericJson {
/**
* A list of shipping labels defining the products to which this rate group applies to. This is a
* disjunction: only one of the labels has to match for the rate group to apply. May only be empty
* for the last rate group of a service. Required.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> applicableShippingLabels;
/**
* A list of carrier rates that can be referred to by mainTable or singleValue.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<CarrierRate> carrierRates;
static {
// hack to force ProGuard to consider CarrierRate used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(CarrierRate.class);
}
/**
* A table defining the rate group, when singleValue is not expressive enough. Can only be set if
* singleValue is not set.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Table mainTable;
/**
* Name of the rate group. Optional. If set has to be unique within shipping service.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* The value of the rate group (e.g. flat rate $10). Can only be set if mainTable and subtables
* are not set.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Value singleValue;
/**
* A list of subtables referred to by mainTable. Can only be set if mainTable is set.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<Table> subtables;
/**
* A list of shipping labels defining the products to which this rate group applies to. This is a
* disjunction: only one of the labels has to match for the rate group to apply. May only be empty
* for the last rate group of a service. Required.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getApplicableShippingLabels() {
return applicableShippingLabels;
}
/**
* A list of shipping labels defining the products to which this rate group applies to. This is a
* disjunction: only one of the labels has to match for the rate group to apply. May only be empty
* for the last rate group of a service. Required.
* @param applicableShippingLabels applicableShippingLabels or {@code null} for none
*/
public RateGroup setApplicableShippingLabels(java.util.List<java.lang.String> applicableShippingLabels) {
this.applicableShippingLabels = applicableShippingLabels;
return this;
}
/**
* A list of carrier rates that can be referred to by mainTable or singleValue.
* @return value or {@code null} for none
*/
public java.util.List<CarrierRate> getCarrierRates() {
return carrierRates;
}
/**
* A list of carrier rates that can be referred to by mainTable or singleValue.
* @param carrierRates carrierRates or {@code null} for none
*/
public RateGroup setCarrierRates(java.util.List<CarrierRate> carrierRates) {
this.carrierRates = carrierRates;
return this;
}
/**
* A table defining the rate group, when singleValue is not expressive enough. Can only be set if
* singleValue is not set.
* @return value or {@code null} for none
*/
public Table getMainTable() {
return mainTable;
}
/**
* A table defining the rate group, when singleValue is not expressive enough. Can only be set if
* singleValue is not set.
* @param mainTable mainTable or {@code null} for none
*/
public RateGroup setMainTable(Table mainTable) {
this.mainTable = mainTable;
return this;
}
/**
* Name of the rate group. Optional. If set has to be unique within shipping service.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* Name of the rate group. Optional. If set has to be unique within shipping service.
* @param name name or {@code null} for none
*/
public RateGroup setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* The value of the rate group (e.g. flat rate $10). Can only be set if mainTable and subtables
* are not set.
* @return value or {@code null} for none
*/
public Value getSingleValue() {
return singleValue;
}
/**
* The value of the rate group (e.g. flat rate $10). Can only be set if mainTable and subtables
* are not set.
* @param singleValue singleValue or {@code null} for none
*/
public RateGroup setSingleValue(Value singleValue) {
this.singleValue = singleValue;
return this;
}
/**
* A list of subtables referred to by mainTable. Can only be set if mainTable is set.
* @return value or {@code null} for none
*/
public java.util.List<Table> getSubtables() {
return subtables;
}
/**
* A list of subtables referred to by mainTable. Can only be set if mainTable is set.
* @param subtables subtables or {@code null} for none
*/
public RateGroup setSubtables(java.util.List<Table> subtables) {
this.subtables = subtables;
return this;
}
@Override
public RateGroup set(String fieldName, Object value) {
return (RateGroup) super.set(fieldName, value);
}
@Override
public RateGroup clone() {
return (RateGroup) super.clone();
}
}
| {
"pile_set_name": "Github"
} |
<?php
/*
* This file is part of the PHP_CodeCoverage package.
*
* (c) Sebastian Bergmann <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Driver for Xdebug's code coverage functionality.
*
* @since Class available since Release 1.0.0
* @codeCoverageIgnore
*/
class PHP_CodeCoverage_Driver_Xdebug implements PHP_CodeCoverage_Driver
{
/**
* Constructor.
*/
public function __construct()
{
if (!extension_loaded('xdebug')) {
throw new PHP_CodeCoverage_Exception('This driver requires Xdebug');
}
if (version_compare(phpversion('xdebug'), '2.2.0-dev', '>=') &&
!ini_get('xdebug.coverage_enable')) {
throw new PHP_CodeCoverage_Exception(
'xdebug.coverage_enable=On has to be set in php.ini'
);
}
}
/**
* Start collection of code coverage information.
*/
public function start()
{
xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);
}
/**
* Stop collection of code coverage information.
*
* @return array
*/
public function stop()
{
$data = xdebug_get_code_coverage();
xdebug_stop_code_coverage();
return $this->cleanup($data);
}
/**
* @param array $data
* @return array
* @since Method available since Release 2.0.0
*/
private function cleanup(array $data)
{
foreach (array_keys($data) as $file) {
unset($data[$file][0]);
if ($file != 'xdebug://debug-eval' && file_exists($file)) {
$numLines = $this->getNumberOfLinesInFile($file);
foreach (array_keys($data[$file]) as $line) {
if (isset($data[$file][$line]) && $line > $numLines) {
unset($data[$file][$line]);
}
}
}
}
return $data;
}
/**
* @param string $file
* @return int
* @since Method available since Release 2.0.0
*/
private function getNumberOfLinesInFile($file)
{
$buffer = file_get_contents($file);
$lines = substr_count($buffer, "\n");
if (substr($buffer, -1) !== "\n") {
$lines++;
}
return $lines;
}
}
| {
"pile_set_name": "Github"
} |
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
'use strict';
var stringifyPrimitive = function(v) {
switch (typeof v) {
case 'string':
return v;
case 'boolean':
return v ? 'true' : 'false';
case 'number':
return isFinite(v) ? v : '';
default:
return '';
}
};
module.exports = function(obj, sep, eq, name) {
sep = sep || '&';
eq = eq || '=';
if (obj === null) {
obj = undefined;
}
if (typeof obj === 'object') {
return map(objectKeys(obj), function(k) {
var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;
if (isArray(obj[k])) {
return map(obj[k], function(v) {
return ks + encodeURIComponent(stringifyPrimitive(v));
}).join(sep);
} else {
return ks + encodeURIComponent(stringifyPrimitive(obj[k]));
}
}).join(sep);
}
if (!name) return '';
return encodeURIComponent(stringifyPrimitive(name)) + eq +
encodeURIComponent(stringifyPrimitive(obj));
};
var isArray = Array.isArray || function (xs) {
return Object.prototype.toString.call(xs) === '[object Array]';
};
function map (xs, f) {
if (xs.map) return xs.map(f);
var res = [];
for (var i = 0; i < xs.length; i++) {
res.push(f(xs[i], i));
}
return res;
}
var objectKeys = Object.keys || function (obj) {
var res = [];
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);
}
return res;
};
| {
"pile_set_name": "Github"
} |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix mon: <http://www.semwebtech.org/mondial/10/meta#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix : <foo://bla/>.
_:Longitude a rdfs:Datatype; owl:onDatatype xsd:int;
owl:withRestrictions (_:long1 _:long2).
_:long1 xsd:minInclusive -180 .
_:long2 xsd:maxInclusive 180 .
#_:Latitude a rdfs:Datatype; owl:onDatatype xsd:int;
# owl:withRestrictions (_:lat1 _:lat2).
#_:lat1 xsd:minInclusive -90 .
#_:lat2 xsd:maxInclusive 90 .
# ********** with that it complains:*************************
_:EasternLongitude a rdfs:Datatype; owl:onDatatype _:Longitude;
owl:withRestrictions (_:eastlong).
# ********** with that it works:*************************
# _:EasternLongitude a rdfs:Datatype; owl:onDatatype xsd:int;
# owl:withRestrictions (_:eastlong).
_:eastlong xsd:minInclusive 0 .
:EasternHemispherePlace owl:equivalentClass [a owl:Restriction;
owl:onProperty mon:longitude; owl:someValuesFrom _:EasternLongitude].
mon:longitude rdfs:range _:Longitude.
#mon:latitude rdfs:range _:Latitude.
:Berlin a mon:City; :name "Berlin"; mon:longitude 13; mon:latitude 52 .
#:Atlantis a mon:City; :name "Atlantis"; mon:longitude -200; mon:latitude 100 .
:Lisbon a mon:City; :name "Lisbon"; mon:longitude -9; mon:latitude 38 .
| {
"pile_set_name": "Github"
} |
# Be sure to restart your server when you modify this file.
# Specify a serializer for the signed and encrypted cookie jars.
# Valid options are :json, :marshal, and :hybrid.
Rails.application.config.action_dispatch.cookies_serializer = :json
| {
"pile_set_name": "Github"
} |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
namespace Template10.Views
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class PrivacyPage : Page
{
public PrivacyPage()
{
this.InitializeComponent();
}
}
}
| {
"pile_set_name": "Github"
} |
//! # Trace Semantic Conventions
//!
//! The [trace semantic conventions] define a set of standardized attributes to
//! be used in `Span`s.
//!
//! [trace semantic conventions]: https://github.com/open-telemetry/opentelemetry-specification/tree/master/specification/trace/semantic_conventions
//!
//! ## Usage
//!
//! ```rust
//! use opentelemetry::api::Tracer;
//! use opentelemetry::global;
//! use opentelemetry_semantic_conventions as semcov;
//!
//! let tracer = global::tracer("my-component");
//! let _span = tracer
//! .span_builder("span-name")
//! .with_attributes(vec![
//! semcov::trace::NET_PEER_IP.string("10.0.0.1"),
//! semcov::trace::NET_PEER_PORT.i64(80),
//! ])
//! .start(&tracer);
//! ```
use opentelemetry::api::Key;
/// Transport protocol used.
pub const NET_TRANSPORT: Key = Key::from_static_str("net.transport");
/// Remote address of the peer (dotted decimal for IPv4 or [RFC5952] for IPv6)
///
/// [RFC5952]: https://tools.ietf.org/html/rfc5952
pub const NET_PEER_IP: Key = Key::from_static_str("net.peer.ip");
/// Remote port number as an integer. E.g., `80`.
pub const NET_PEER_PORT: Key = Key::from_static_str("net.peer.port");
/// Remote hostname or similar.
pub const NET_PEER_NAME: Key = Key::from_static_str("net.peer.name");
/// Like `net.peer.ip` but for the host IP. Useful in case of a multi-IP host.
pub const NET_HOST_IP: Key = Key::from_static_str("net.host.ip");
/// Like `net.peer.port` but for the host port.
pub const NET_HOST_PORT: Key = Key::from_static_str("net.host.port");
/// Local hostname or similar.
pub const NET_HOST_NAME: Key = Key::from_static_str("net.host.name");
/// The `service.name` of the remote service. SHOULD be equal to the actual
/// `service.name` resource attribute of the remote service if any.
pub const PEER_SERVICE: Key = Key::from_static_str("peer.service");
/// Username or client_id extracted from the access token or [Authorization]
/// header in the inbound request from outside the system.
///
/// [Authorization]: https://tools.ietf.org/html/rfc7235#section-4.2
pub const ENDUSER_ID: Key = Key::from_static_str("enduser.id");
/// Actual/assumed role the client is making the request under extracted from
/// token or application security context.
pub const ENDUSER_ROLE: Key = Key::from_static_str("enduser.role");
/// Scopes or granted authorities the client currently possesses extracted from
/// token or application security context. The value would come from the scope
/// associated with an [OAuth 2.0 Access Token] or an attribute value in a [SAML
/// 2.0 Assertion].
///
/// [OAuth 2.0 Access Token]: https://tools.ietf.org/html/rfc6749#section-3.3
/// [SAML 2.0 Assertion]: http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html
pub const ENDUSER_SCOPE: Key = Key::from_static_str("enduser.scope");
/// Current "managed" thread ID (as opposed to OS thread ID). E.g. `42`
pub const THREAD_ID: Key = Key::from_static_str("thread.id");
/// Current thread name. E.g. `main`
pub const THREAD_NAME: Key = Key::from_static_str("thread.name");
/// An identifier for the database management system (DBMS) product being used.
/// See [semantic conventions] page for a list of well-known identifiers.
///
/// [semantic conventions page]: https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/semantic_conventions/database.md#notes-and-well-known-identifiers-for-dbsystem
pub const DB_SYSTEM: Key = Key::from_static_str("db.system");
/// Username for accessing the database, e.g., `"readonly_user"` or `"reporting_user"`
pub const DB_USER: Key = Key::from_static_str("db.user");
/// The [instance name] connecting to. This name is used to determine the port of
/// a named instance.
///
/// [instance name]: https://docs.microsoft.com/en-us/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15
pub const DB_MSSQL_INSTANCE_NAME: Key = Key::from_static_str("db.mssql.instance_name");
/// The fully-qualified class name of the [Java Database Connectivity (JDBC)]
/// driver used to connect, e.g., `"org.postgresql.Driver"` or
///` "com.microsoft.sqlserver.jdbc.SQLServerDriver"`.
///
/// [Java Database Connectivity (JDBC)]: https://docs.oracle.com/javase/8/docs/technotes/guides/jdbc/
pub const DB_JDBC_DRIVER_CLASSNAME: Key = Key::from_static_str("db.jdbc.driver_classname");
/// If no tech-specific attribute is defined in the list below, this attribute
/// is used to report the name of the database being accessed. For commands that
/// switch the database, this should be set to the target database (even if the
/// command fails).
pub const DB_NAME: Key = Key::from_static_str("db.name");
/// The database statement being executed. Note that the value may be sanitized
/// to exclude sensitive information. E.g., for `db.system="other_sql"`,
/// `"SELECT * FROM wuser_table"`; for `db.system="redis"`, `"SET mykey
/// 'WuValue'"`.
pub const DB_STATEMENT: Key = Key::from_static_str("db.statement");
/// The name of the operation being executed, e.g. the [MongoDB command name]
/// such as `findAndModify`. While it would semantically make sense to set this,
/// e.g., to an SQL keyword like `SELECT` or `INSERT`, it is *not* recommended
/// to attempt any client-side parsing of `db.statement` just to get this
/// property (the back end can do that if required).
///
/// [MongoDB command name]: https://docs.mongodb.com/manual/reference/command/#database-operations
pub const DB_OPERATION: Key = Key::from_static_str("db.operation");
/// The name of the keyspace being accessed. To be used instead of the generic
/// `db.name` attribute.
pub const DB_CASSANDRA_KEYSPACE: Key = Key::from_static_str("db.cassandra.keyspace");
/// The HBase namespace being accessed. To be used instead of the generic
/// `db.name` attribute.
pub const DB_HBASE_NAMESPACE: Key = Key::from_static_str("db.hbase.namespace");
/// The index of the database being accessed as used in the `SELECT` command,
/// provided as an integer. To be used instead of the generic `db.name` attribute.
pub const DB_REDIS_DATABASE_INDEX: Key = Key::from_static_str("db.redis.database_index");
/// The collection being accessed within the database stated in `db.name`.
pub const DB_MONGODB_COLLECTION: Key = Key::from_static_str("db.mongodb.collection");
/// The type of the exception (its fully-qualified class name, if applicable).
/// The dynamic type of the exception should be preferred over the static type
/// in languages that support it. E.g. "java.net.ConnectException", "OSError"
pub const EXCEPTION_TYPE: Key = Key::from_static_str("exception.type");
/// The exception message. E.g. `"Division by zero"`, `"Can't convert 'int'
/// object to str implicitly"`
pub const EXCEPTION_MESSAGE: Key = Key::from_static_str("exception.message");
/// A stacktrace as a string in the natural representation for the language
/// runtime. The representation is to be determined and documented by each
/// language SIG. E.g.:
///
/// ```text
/// stack backtrace:
/// 0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
/// 1: core::fmt::write
/// 2: std::io::Write::write_fmt
/// 3: std::panicking::default_hook::{{closure}}
/// 4: std::panicking::default_hook
/// 5: std::panicking::rust_panic_with_hook
/// 6: std::panicking::begin_panic
/// 7: test::main
/// 8: std::rt::lang_start::{{closure}}
/// 9: std::rt::lang_start_internal
/// 10: std::rt::lang_start
/// 11: main
/// ```
pub const EXCEPTION_STACKTRACE: Key = Key::from_static_str("exception.stacktrace");
/// Type of the trigger on which the function is executed.
///
/// It SHOULD be one of the following strings: "datasource", "http", "pubsub",
/// "timer", or "other".
pub const FAAS_TRIGGER: Key = Key::from_static_str("faas.trigger");
/// String containing the execution id of the function. E.g.
/// `af9d5aa4-a685-4c5f-a22b-444f80b3cc28`
pub const FAAS_EXECUTION: Key = Key::from_static_str("faas.execution");
/// A boolean indicating that the serverless function is executed for the first
/// time (aka cold start).
pub const FAAS_COLDSTART: Key = Key::from_static_str("faas.coldstart");
/// The name of the source on which the operation was performed. For example, in
/// Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the
/// database name.
pub const FAAS_DOCUMENT_COLLECTION: Key = Key::from_static_str("faas.document.collection");
/// Describes the type of the operation that was performed on the data.
///
/// It SHOULD be one of the following strings: "insert", "edit", "delete".
pub const FAAS_DOCUMENT_OPERATION: Key = Key::from_static_str("faas.document.operation");
/// A string containing the time when the data was accessed in the [ISO 8601]
/// format expressed in [UTC]. E.g. `"2020-01-23T13:47:06Z"`
///
/// [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
/// [UTC]: https://www.w3.org/TR/NOTE-datetime
pub const FAAS_DOCUMENT_TIME: Key = Key::from_static_str("faas.document.time");
/// The document name/table subjected to the operation.
///
/// For example, in Cloud Storage or S3 is the name of the file, and in Cosmos
/// DB the table name.
pub const FAAS_DOCUMENT_NAME: Key = Key::from_static_str("faas.document.name");
/// A string containing the function invocation time in the [ISO 8601] format
/// expressed in [UTC]. E.g. `"2020-01-23T13:47:06Z"`
///
/// [ISO 8601]: https://www.iso.org/iso-8601-date-and-time-format.html
/// [UTC]: https://www.w3.org/TR/NOTE-datetime
pub const FAAS_TIME: Key = Key::from_static_str("faas.time");
/// A string containing the schedule period as [Cron Expression]. E.g. `"0/5 * * * ? *"`
///
/// [Cron Expression]: https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm
pub const FAAS_CRON: Key = Key::from_static_str("faas.cron");
/// HTTP request method. E.g. `"GET"`.
pub const HTTP_METHOD: Key = Key::from_static_str("http.method");
/// Full HTTP request URL in the form
/// `scheme://host[:port]/path?query[#fragment]`. Usually the fragment is not
/// transmitted over HTTP, but if it is known, it should be included
/// nevertheless.
pub const HTTP_URL: Key = Key::from_static_str("http.url");
/// The full request target as passed in a [HTTP request line] or equivalent,
/// e.g. `"/path/12314/?q=ddds#123"`.
///
/// [HTTP request line]: https://tools.ietf.org/html/rfc7230#section-3.1.1
pub const HTTP_TARGET: Key = Key::from_static_str("http.target");
/// The value of the [HTTP host header]. When the header is empty or not
/// present, this attribute should be the same.
///
/// [HTTP host header]: https://tools.ietf.org/html/rfc7230#section-5.4
pub const HTTP_HOST: Key = Key::from_static_str("http.host");
/// The URI scheme identifying the used protocol: `"http"` or `"https"`
pub const HTTP_SCHEME: Key = Key::from_static_str("http.scheme");
/// [HTTP response status code]. E.g. `200` (integer)
///
/// [HTTP response status code]: https://tools.ietf.org/html/rfc7231#section-6
pub const HTTP_STATUS_CODE: Key = Key::from_static_str("http.status_code");
/// [HTTP reason phrase]. E.g. `"OK"`
///
/// [HTTP reason phrase]: https://tools.ietf.org/html/rfc7230#section-3.1.2
pub const HTTP_STATUS_TEXT: Key = Key::from_static_str("http.status_text");
/// Kind of HTTP protocol used: `"1.0"`, `"1.1"`, `"2"`, `"SPDY"` or `"QUIC"`.
pub const HTTP_FLAVOR: Key = Key::from_static_str("http.flavor");
/// Value of the HTTP [User-Agent] header sent by the client.
///
/// [User-Agent]: https://tools.ietf.org/html/rfc7231#section-5.5.3
pub const HTTP_USER_AGENT: Key = Key::from_static_str("http.user_agent");
/// The size of the request payload body in bytes. This is the number of bytes
/// transferred excluding headers and is often, but not always, present as the
/// [Content-Length] header. For requests using transport encoding, this should
/// be the compressed size.
///
/// [Content-Length]: https://tools.ietf.org/html/rfc7230#section-3.3.2
pub const HTTP_REQUEST_CONTENT_LENGTH: Key = Key::from_static_str("http.request_content_length");
/// The size of the uncompressed request payload body after transport decoding.
/// Not set if transport encoding not used.
pub const HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED: Key =
Key::from_static_str("http.request_content_length_uncompressed");
/// The size of the response payload body in bytes. This is the number of bytes
/// transferred excluding headers and is often, but not always, present as the
/// [Content-Length] header. For requests using transport encoding, this
/// should be the compressed size.
///
/// [Content-Length]: https://tools.ietf.org/html/rfc7230#section-3.3.2
pub const HTTP_RESPONSE_CONTENT_LENGTH: Key = Key::from_static_str("http.response_content_length");
/// The size of the uncompressed response payload body after transport decoding.
/// Not set if transport encoding not used.
pub const HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED: Key =
Key::from_static_str("http.response_content_length_uncompressed");
/// The primary server name of the matched virtual host. This should be obtained
/// via configuration. If no such configuration can be obtained, this attribute
/// MUST NOT be set (`net.host.name` should be used instead).
pub const HTTP_SERVER_NAME: Key = Key::from_static_str("http.server_name");
/// The matched route (path template). E.g. `"/users/:userID?"`.
pub const HTTP_ROUTE: Key = Key::from_static_str("http.route");
/// The IP address of the original client behind all proxies, if known (e.g.
/// from [X-Forwarded-For]). Note that this is not necessarily the same as
/// `net.peer.ip`, which would identify the network-level peer, which may be a
/// proxy.
///
/// [X-Forwarded-For]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For
pub const HTTP_CLIENT_IP: Key = Key::from_static_str("http.client_ip");
/// A string identifying the messaging system such as `kafka`, `rabbitmq` or `activemq`.
pub const MESSAGING_SYSTEM: Key = Key::from_static_str("messaging.system");
/// The message destination name, e.g. `MyQueue` or `MyTopic`. This might be
/// equal to the span name but is required nevertheless.
pub const MESSAGING_DESTINATION: Key = Key::from_static_str("messaging.destination");
/// The kind of message destination: Either `queue` or `topic`.
pub const MESSAGING_DESTINATION_KIND: Key = Key::from_static_str("messaging.destination_kind");
/// The name of the transport protocol such as `AMQP` or `MQTT`.
pub const MESSAGING_PROTOCOL: Key = Key::from_static_str("messaging.protocol");
/// The version of the transport protocol such as `0.9.1`.
pub const MESSAGING_PROTOCOL_VERSION: Key = Key::from_static_str("messaging.protocol_version");
/// Connection string such as `tibjmsnaming://localhost:7222` or
/// `https://queue.amazonaws.com/80398EXAMPLE/MyQueue`.
pub const MESSAGING_URL: Key = Key::from_static_str("messaging.url");
/// A value used by the messaging system as an identifier for the message,
/// represented as a string.
pub const MESSAGING_MESSAGE_ID: Key = Key::from_static_str("messaging.message_id");
/// The conversation ID identifying the conversation to which the message
/// belongs, represented as a string. Sometimes called "Correlation ID".
pub const MESSAGING_CONVERSATION_ID: Key = Key::from_static_str("messaging.conversation_id");
/// The (uncompressed) size of the message payload in bytes. Also use this
/// attribute if it is unknown whether the compressed or uncompressed payload
/// size is reported.
pub const MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES: Key =
Key::from_static_str("messaging.message_payload_size_bytes");
/// The compressed size of the message payload in bytes.
pub const MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES: Key =
Key::from_static_str("messaging.message_payload_compressed_size_bytes");
/// A string identifying the kind of message consumption as defined in the
/// Operation names section above. Only `"receive"` and `"process"` are used for
/// this attribute. If the operation is `"send"`, this attribute MUST NOT be
/// set, since the operation can be inferred from the span kind in that case.
pub const MESSAGING_OPERATION: Key = Key::from_static_str("messaging.operation");
/// A string identifying the remoting system, e.g., `"grpc"`, `"java_rmi"` or
/// `"wcf"`.
pub const RPC_SYSTEM: Key = Key::from_static_str("rpc.system");
/// The full name of the service being called, including its package name, if
/// applicable.
pub const RPC_SERVICE: Key = Key::from_static_str("rpc.service");
/// The name of the method being called, must be equal to the $method part in
/// the span name.
pub const RPC_METHOD: Key = Key::from_static_str("rpc.method");
| {
"pile_set_name": "Github"
} |
<!doctype html>
<html class="no-js">
<head>
<meta charset="UTF-8">
<title>Panel</title>
<!--IE Compatibility modes-->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--Mobile first-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap -->
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/css/font-awesome.min.css">
<!-- Metis core stylesheet -->
<link rel="stylesheet" href="assets/css/main.min.css">
<!-- metisMenu stylesheet -->
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/metisMenu/1.1.3/metisMenu.min.css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="assets/lib/html5shiv/html5shiv.js"></script>
<script src="assets/lib/respond/respond.min.js"></script>
<![endif]-->
<!--For Development Only. Not required -->
<script>
less = {
env: "development",
relativeUrls: false,
rootpath: "../assets/"
};
</script>
<link rel="stylesheet" href="assets/css/style-switcher.css">
<link rel="stylesheet/less" type="text/css" href="assets/less/theme.less">
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.2.0/less.min.js"></script>
<!--Modernizr-->
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
</head>
<body class=" ">
<div class="bg-dark dk" id="wrap">
<div id="top">
<!-- .navbar -->
<nav class="navbar navbar-inverse navbar-static-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<header class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="index.html" class="navbar-brand">
<img src="assets/img/logo.png" alt="">
</a>
</header>
<div class="topnav">
<div class="btn-group">
<a data-placement="bottom" data-original-title="Fullscreen" data-toggle="tooltip" class="btn btn-default btn-sm" id="toggleFullScreen">
<i class="glyphicon glyphicon-fullscreen"></i>
</a>
</div>
<div class="btn-group">
<a data-placement="bottom" data-original-title="E-mail" data-toggle="tooltip" class="btn btn-default btn-sm">
<i class="fa fa-envelope"></i>
<span class="label label-warning">5</span>
</a>
<a data-placement="bottom" data-original-title="Messages" href="#" data-toggle="tooltip" class="btn btn-default btn-sm">
<i class="fa fa-comments"></i>
<span class="label label-danger">4</span>
</a>
<a data-toggle="modal" data-original-title="Help" data-placement="bottom" class="btn btn-default btn-sm" href="#helpModal">
<i class="fa fa-question"></i>
</a>
</div>
<div class="btn-group">
<a href="login.html" data-toggle="tooltip" data-original-title="Logout" data-placement="bottom" class="btn btn-metis-1 btn-sm">
<i class="fa fa-power-off"></i>
</a>
</div>
<div class="btn-group">
<a data-placement="bottom" data-original-title="Show / Hide Left" data-toggle="tooltip" class="btn btn-primary btn-sm toggle-left" id="menu-toggle">
<i class="fa fa-bars"></i>
</a>
<a data-placement="bottom" data-original-title="Show / Hide Right" data-toggle="tooltip" class="btn btn-default btn-sm toggle-right"> <span class="glyphicon glyphicon-comment"></span> </a>
</div>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<!-- .nav -->
<ul class="nav navbar-nav">
<li> <a href="dashboard.html">Dashboard</a> </li>
<li> <a href="table.html">Tables</a> </li>
<li> <a href="file.html">File Manager</a> </li>
<li class='dropdown '>
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Form Elements
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li> <a href="form-general.html">General</a> </li>
<li> <a href="form-validation.html">Validation</a> </li>
<li> <a href="form-wysiwyg.html">WYSIWYG</a> </li>
<li> <a href="form-wizard.html">Wizard & File Upload</a> </li>
</ul>
</li>
</ul><!-- /.nav -->
</div>
</div><!-- /.container-fluid -->
</nav><!-- /.navbar -->
<header class="head">
<div class="search-bar">
<form class="main-search" action="">
<div class="input-group">
<input type="text" class="form-control" placeholder="Live Search ...">
<span class="input-group-btn">
<button class="btn btn-primary btn-sm text-muted" type="button">
<i class="fa fa-search"></i>
</button>
</span>
</div>
</form><!-- /.main-search -->
</div><!-- /.search-bar -->
<div class="main-bar">
<h3>
<i class="fa fa-columns"></i> Panel</h3>
</div><!-- /.main-bar -->
</header><!-- /.head -->
</div><!-- /#top -->
<div id="left">
<div class="media user-media bg-dark dker">
<div class="user-media-toggleHover">
<span class="fa fa-user"></span>
</div>
<div class="user-wrapper bg-dark">
<a class="user-link" href="">
<img class="media-object img-thumbnail user-img" alt="User Picture" src="assets/img/user.gif">
<span class="label label-danger user-label">16</span>
</a>
<div class="media-body">
<h5 class="media-heading">Archie</h5>
<ul class="list-unstyled user-info">
<li> <a href="">Administrator</a> </li>
<li>Last Access :
<br>
<small>
<i class="fa fa-calendar"></i> 16 Mar 16:32</small>
</li>
</ul>
</div>
</div>
</div>
<!-- #menu -->
<ul id="menu" class="bg-blue dker">
<li class="nav-header">Menu</li>
<li class="nav-divider"></li>
<li class="">
<a href="dashboard.html">
<i class="fa fa-dashboard"></i><span class="link-title"> Dashboard</span>
</a>
</li>
<li class="">
<a href="javascript:;">
<i class="fa fa-building "></i>
<span class="link-title">Layouts</span>
<span class="fa arrow"></span>
</a>
<ul>
<li>
<a href="boxed.html">
<i class="fa fa-angle-right"></i> Boxed Layout </a>
</li>
<li>
<a href="fixed-header-boxed.html">
<i class="fa fa-angle-right"></i> Boxed Layout & Fixed Header </a>
</li>
<li>
<a href="fixed-header-fixed-mini-sidebar.html">
<i class="fa fa-angle-right"></i> Fixed Header and Fixed Mini Menu </a>
</li>
<li>
<a href="fixed-header-menu.html">
<i class="fa fa-angle-right"></i> Fixed Header & Menu </a>
</li>
<li>
<a href="fixed-header-mini-sidebar.html">
<i class="fa fa-angle-right"></i> Fixed Header & Mini Menu </a>
</li>
<li>
<a href="fixed-header.html">
<i class="fa fa-angle-right"></i> Fixed Header </a>
</li>
<li>
<a href="fixed-menu-boxed.html">
<i class="fa fa-angle-right"></i> Boxed Layout & Fixed Menu </a>
</li>
<li>
<a href="fixed-menu.html">
<i class="fa fa-angle-right"></i> Fixed Menu </a>
</li>
<li>
<a href="fixed-mini-sidebar.html">
<i class="fa fa-angle-right"></i> Fixed & Mini Menu </a>
</li>
<li>
<a href="fxhmoxed.html">
<i class="fa fa-angle-right"></i> Boxed and Fixed Header & Nav </a>
</li>
<li>
<a href="no-header-sidebar.html">
<i class="fa fa-angle-right"></i> No Header & Sidebars </a>
</li>
<li>
<a href="no-header.html">
<i class="fa fa-angle-right"></i> No Header </a>
</li>
<li>
<a href="no-left-right-sidebar.html">
<i class="fa fa-angle-right"></i> No Left & Right Sidebar </a>
</li>
<li>
<a href="no-left-sidebar-main-search.html">
<i class="fa fa-angle-right"></i> No Left Sidebar & Main Search </a>
</li>
<li>
<a href="no-left-sidebar.html">
<i class="fa fa-angle-right"></i> No Left Sidebar </a>
</li>
<li>
<a href="no-main-search.html">
<i class="fa fa-angle-right"></i> No Main Search </a>
</li>
<li>
<a href="no-right-sidebar.html">
<i class="fa fa-angle-right"></i> No Right Sidebar </a>
</li>
<li>
<a href="sm.html">
<i class="fa fa-angle-right"></i> Mini Sidebar </a>
</li>
</ul>
</li>
<li class="">
<a href="javascript:;">
<i class="fa fa-tasks"></i>
<span class="link-title">Components</span>
<span class="fa arrow"></span>
</a>
<ul>
<li>
<a href="bgcolor.html">
<i class="fa fa-angle-right"></i> Bg Color </a>
</li>
<li>
<a href="bgimage.html">
<i class="fa fa-angle-right"></i> Bg Image </a>
</li>
<li>
<a href="button.html">
<i class="fa fa-angle-right"></i> Buttons </a>
</li>
<li>
<a href="icon.html">
<i class="fa fa-angle-right"></i> Icon </a>
</li>
<li>
<a href="pricing.html">
<i class="fa fa-angle-right"></i> Pricing Table </a>
</li>
<li>
<a href="progress.html">
<i class="fa fa-angle-right"></i> Progress </a>
</li>
</ul>
</li>
<li class="">
<a href="javascript:;">
<i class="fa fa-pencil"></i>
<span class="link-title">
Forms
</span>
<span class="fa arrow"></span>
</a>
<ul>
<li>
<a href="form-general.html">
<i class="fa fa-angle-right"></i> Form General </a>
</li>
<li>
<a href="form-validation.html">
<i class="fa fa-angle-right"></i> Form Validation </a>
</li>
<li>
<a href="form-wizard.html">
<i class="fa fa-angle-right"></i> Form Wizard </a>
</li>
<li>
<a href="form-wysiwyg.html">
<i class="fa fa-angle-right"></i> Form WYSIWYG </a>
</li>
</ul>
</li>
<li>
<a href="table.html">
<i class="fa fa-table"></i>
<span class="link-title">Tables</span>
</a>
</li>
<li>
<a href="file.html">
<i class="fa fa-file"></i>
<span class="link-title">
File Manager
</span>
</a>
</li>
<li>
<a href="typography.html">
<i class="fa fa-font"></i>
<span class="link-title">
Typography
</span> </a>
</li>
<li>
<a href="maps.html">
<i class="fa fa-map-marker"></i><span class="link-title">
Maps
</span>
</a>
</li>
<li>
<a href="chart.html">
<i class="fa fa fa-bar-chart-o"></i>
<span class="link-title">
Charts
</span>
</a>
</li>
<li>
<a href="calendar.html">
<i class="fa fa-calendar"></i>
<span class="link-title">
Calendar
</span>
</a>
</li>
<li>
<a href="javascript:;">
<i class="fa fa-exclamation-triangle"></i>
<span class="link-title">
Error Pages
</span>
<span class="fa arrow"></span>
</a>
<ul>
<li>
<a href="403.html">
<i class="fa fa-angle-right"></i> 403</a>
</li>
<li>
<a href="404.html">
<i class="fa fa-angle-right"></i> 404</a>
</li>
<li>
<a href="405.html">
<i class="fa fa-angle-right"></i> 405</a>
</li>
<li>
<a href="500.html">
<i class="fa fa-angle-right"></i> 500</a>
</li>
<li>
<a href="503.html">
<i class="fa fa-angle-right"></i> 503</a>
</li>
<li>
<a href="offline.html">
<i class="fa fa-angle-right"></i> offline</a>
</li>
<li>
<a href="countdown.html">
<i class="fa fa-angle-right"></i> Under Construction</a>
</li>
</ul>
</li>
<li>
<a href="grid.html">
<i class="fa fa-columns"></i>
<span class="link-title">
Grid
</span>
</a>
</li>
<li>
<a href="blank.html">
<i class="fa fa-square-o"></i>
<span class="link-title">
Blank Page
</span>
</a>
</li>
<li class="nav-divider"></li>
<li>
<a href="login.html">
<i class="fa fa-sign-in"></i>
<span class="link-title">
Login Page
</span>
</a>
</li>
<li>
<a href="javascript:;">
<i class="fa fa-code"></i>
<span class="link-title">
Unlimited Level Menu
</span>
<span class="fa arrow"></span>
</a>
<ul>
<li>
<a href="javascript:;">Level 1 <span class="fa arrow"></span> </a>
<ul>
<li> <a href="javascript:;">Level 2</a> </li>
<li> <a href="javascript:;">Level 2</a> </li>
<li>
<a href="javascript:;">Level 2 <span class="fa arrow"></span> </a>
<ul>
<li> <a href="javascript:;">Level 3</a> </li>
<li> <a href="javascript:;">Level 3</a> </li>
<li>
<a href="javascript:;">Level 3 <span class="fa arrow"></span> </a>
<ul>
<li> <a href="javascript:;">Level 4</a> </li>
<li> <a href="javascript:;">Level 4</a> </li>
<li>
<a href="javascript:;">Level 4 <span class="fa arrow"></span> </a>
<ul>
<li> <a href="javascript:;">Level 5</a> </li>
<li> <a href="javascript:;">Level 5</a> </li>
<li> <a href="javascript:;">Level 5</a> </li>
</ul>
</li>
</ul>
</li>
<li> <a href="javascript:;">Level 4</a> </li>
</ul>
</li>
<li> <a href="javascript:;">Level 2</a> </li>
</ul>
</li>
<li> <a href="javascript:;">Level 1</a> </li>
<li>
<a href="javascript:;">Level 1 <span class="fa arrow"></span> </a>
<ul>
<li> <a href="javascript:;">Level 2</a> </li>
<li> <a href="javascript:;">Level 2</a> </li>
<li> <a href="javascript:;">Level 2</a> </li>
</ul>
</li>
</ul>
</li>
</ul><!-- /#menu -->
</div><!-- /#left -->
<div id="content">
<div class="outer">
<div class="inner bg-light lter">
<div class="row">
<div class="col-lg-6">
<div class="panel panel-primary">
<!-- Default panel contents -->
<div class="panel-heading">
<h3 class="panel-title">Panel title</h3>
</div>
<p>Paragraph</p>
<!-- List group -->
<ul class="list-group list-group-flush">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
<div class="panel-footer">Panel footer</div>
</div>
</div><!-- /.col-lg-6 -->
</div><!-- /.row -->
</div><!-- /.inner -->
</div><!-- /.outer -->
</div><!-- /#content -->
<div id="right" class="bg-light lter">
<div class="alert alert-danger">
<button type="button" class="close" data-dismiss="alert">×</button>
<strong>Warning!</strong> Best check yo self, you're not looking too good.
</div>
<!-- .well well-small -->
<div class="well well-small dark">
<ul class="list-unstyled">
<li>Visitor <span class="inlinesparkline pull-right">1,4,4,7,5,9,10</span>
</li>
<li>Online Visitor <span class="dynamicsparkline pull-right">Loading..</span>
</li>
<li>Popularity <span class="dynamicbar pull-right">Loading..</span>
</li>
<li>New Users <span class="inlinebar pull-right">1,3,4,5,3,5</span>
</li>
</ul>
</div><!-- /.well well-small -->
<!-- .well well-small -->
<div class="well well-small dark">
<button class="btn btn-block">Default</button>
<button class="btn btn-primary btn-block">Primary</button>
<button class="btn btn-info btn-block">Info</button>
<button class="btn btn-success btn-block">Success</button>
<button class="btn btn-danger btn-block">Danger</button>
<button class="btn btn-warning btn-block">Warning</button>
<button class="btn btn-inverse btn-block">Inverse</button>
<button class="btn btn-metis-1 btn-block">btn-metis-1</button>
<button class="btn btn-metis-2 btn-block">btn-metis-2</button>
<button class="btn btn-metis-3 btn-block">btn-metis-3</button>
<button class="btn btn-metis-4 btn-block">btn-metis-4</button>
<button class="btn btn-metis-5 btn-block">btn-metis-5</button>
<button class="btn btn-metis-6 btn-block">btn-metis-6</button>
</div><!-- /.well well-small -->
<!-- .well well-small -->
<div class="well well-small dark">
<span>Default</span> <span class="pull-right"><small>20%</small> </span>
<div class="progress xs">
<div class="progress-bar progress-bar-info" style="width: 20%"></div>
</div>
<span>Success</span> <span class="pull-right"><small>40%</small> </span>
<div class="progress xs">
<div class="progress-bar progress-bar-success" style="width: 40%"></div>
</div>
<span>warning</span> <span class="pull-right"><small>60%</small> </span>
<div class="progress xs">
<div class="progress-bar progress-bar-warning" style="width: 60%"></div>
</div>
<span>Danger</span> <span class="pull-right"><small>80%</small> </span>
<div class="progress xs">
<div class="progress-bar progress-bar-danger" style="width: 80%"></div>
</div>
</div>
</div><!-- /#right -->
</div><!-- /#wrap -->
<footer class="Footer bg-dark dker">
<p>2014 © Metis Bootstrap Admin Template</p>
</footer><!-- /#footer -->
<!-- #helpModal -->
<div id="helpModal" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Modal title</h4>
</div>
<div class="modal-body">
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal --><!-- /#helpModal -->
<!--jQuery -->
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<!--Bootstrap -->
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/js/bootstrap.min.js"></script>
<!-- MetisMenu -->
<script src="//cdnjs.cloudflare.com/ajax/libs/metisMenu/1.1.3/metisMenu.min.js"></script>
<!-- Screenfull -->
<script src="//cdnjs.cloudflare.com/ajax/libs/screenfull.js/2.0.0/screenfull.min.js"></script>
<!-- Metis core scripts -->
<script src="assets/js/core.min.js"></script>
<!-- Metis demo scripts -->
<script src="assets/js/app.js"></script>
<script src="assets/js/style-switcher.min.js"></script>
</body> | {
"pile_set_name": "Github"
} |
module CourseExports
class PrepareTeamsExportService
include CourseExportable
def execute
tables = [
{ title: 'Targets', rows: target_rows },
{ title: 'Teams', rows: team_rows },
{ title: 'Submissions', rows: submission_rows },
]
finalize(tables)
end
private
def target_rows
values = team_targets.map do |target|
milestone = target.target_group.milestone ? 'Yes' : 'No'
[
target_id(target),
target.level.number,
target.title,
target_type(target),
milestone,
teams_with_submissions(target),
teams_pending_review(target),
]
end
([
['ID', 'Level', 'Name', 'Completion Method', 'Milestone?', 'Teams with submissions', 'Teams pending review'],
] + values).transpose
end
def team_rows
rows = teams.map do |team|
[
team.id,
team.name,
team.level.number,
team.founders.map(&:name).sort.join(', '),
team.faculty.map(&:name).sort.join(', '),
team.tags.order(:name).pluck(:name).join(', '),
]
end
[['ID', 'Team Name', 'Level', 'Students', 'Coaches', 'Tags']] + rows
end
def submission_rows
team_ids = teams.pluck(:id)
values = team_targets.map do |target|
grading = compute_grading_for_submissions(target, team_ids)
[target_id(target)] + grading
end
([
['Team ID'] + team_ids,
['Team Name'] + teams.pluck(:name),
] + values).transpose
end
def compute_grading_for_submissions(target, team_ids)
submissions(target).order(:created_at).distinct.each_with_object(Array.new(team_ids.length)) do |submission, grading|
team = submission.founders.first.startup
next unless submission.founder_ids.sort == team.founder_ids.sort
grade_index = team_ids.index(team.id)
# We can't record grades for teams that have dropped out / aren't active.
next if grade_index.nil?
assign_styled_grade(grade_index, grading, submission)
end
end
def team_targets
targets(role: Target::ROLE_TEAM)
end
def submissions(target)
target.timeline_events
.joins(:founders)
.where(founders: { id: student_ids })
end
def teams_with_submissions(target)
submissions(target)
.distinct('founders.startup_id')
.count('founders.startup_id')
end
def teams_pending_review(target)
target.timeline_events
.pending_review
.joins(:founders)
.where(founders: { id: student_ids })
.distinct('founders.startup_id')
.count('founders.startup_id')
end
def teams
# Only scan 'active' teams. Also filter by tag, if applicable.
@teams ||= begin
scope = Startup.includes(:level, :founders, faculty: :user)
.joins(:course)
.where(courses: { id: course.id }).active
.order(:id).distinct
tags.present? ? scope.tagged_with(tags, any: true) : scope
end
end
def student_ids
@student_ids ||= Founder.where(startup_id: teams.pluck(:id))
end
end
end
| {
"pile_set_name": "Github"
} |
---
title: Trap Focus React component
components: Unstable_TrapFocus
githubLabel: 'component: TrapFocus'
---
# Trap Focus
<p class="description">Trap focus within a DOM node.</p>
TrapFocus is a component that manages focus for its descendants. This is useful when implementing overlays such as modal dialogs, which should not allow focus to escape while open.
When `open={true}` the trap is enabled, and pressing <kbd>Tab</kbd> or <kbd>Shift</kbd>+<kbd>Tab</kbd> will rotate focus within the inner focusable elements of the component.
- 📦 [1.5 kB comprimido](https://material-ui.com/size-snapshot).
- ⚛️ Support portals
[La función de estilo de la paleta](/system/palette/).
> ⚠️ The component is experimental and unstable.
## Ejemplo
{{"demo": "pages/components/trap-focus/BasicTrapFocus.js"}}
## Disable enforce focus
Clicks within the focus trap behave normally; but clicks outside the focus trap are blocked.
You can disable this behavior with the `disableEnforceFocus` prop.
{{"demo": "pages/components/trap-focus/DisableEnforceFocus.js"}}
## Lazy activation
By default, the component moves the focus to its descendants as soon as it opens: `open={true}`.
You can disable this behavior and make it lazy with the `disableAutoFocus` prop. When auto focus is disabled, as in the demo below, the component only traps the focus once it gets focused.
{{"demo": "pages/components/trap-focus/LazyTrapFocus.js"}}
## Portal
The following demo uses the [`Portal`](/components/portal/) component to render a subset of the trap focus children into a new "subtree" outside of the current DOM hierarchy, so that they no longer form part of the focus loop.
{{"demo": "pages/components/trap-focus/PortalTrapFocus.js"}}
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="16.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
</PropertyGroup>
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="MinSizeRel|x64">
<Configuration>MinSizeRel</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="RelWithDebInfo|x64">
<Configuration>RelWithDebInfo</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{2BBE4301-82DF-3F6E-A3EB-CB023490013B}</ProjectGuid>
<WindowsTargetPlatformVersion>10.0.18362.0</WindowsTargetPlatformVersion>
<Keyword>Win32Proj</Keyword>
<Platform>x64</Platform>
<ProjectName>x265-static</ProjectName>
<VCProjectUpgraderObjectName>NoUpgrade</VCProjectUpgraderObjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v142</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>10.0.20506.1</_ProjectFileVersion>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\Debug\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">x265-static.dir\Debug\</IntDir>
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">x265-static</TargetName>
<TargetExt Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.lib</TargetExt>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\Release\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">x265-static.dir\Release\</IntDir>
<TargetName Condition="'$(Configuration)|$(Platform)'=='Release|x64'">x265-static</TargetName>
<TargetExt Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.lib</TargetExt>
<OutDir Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\MinSizeRel\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">x265-static.dir\MinSizeRel\</IntDir>
<TargetName Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">x265-static</TargetName>
<TargetExt Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">.lib</TargetExt>
<OutDir Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\RelWithDebInfo\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">x265-static.dir\RelWithDebInfo\</IntDir>
<TargetName Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">x265-static</TargetName>
<TargetExt Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">.lib</TargetExt>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<AdditionalIncludeDirectories>C:\Esenthel\ThirdPartyLibs\x265\lib\source\.;C:\Esenthel\ThirdPartyLibs\x265\lib\source\common;C:\Esenthel\ThirdPartyLibs\x265\lib\source\encoder;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64;C:\Esenthel\ThirdPartyLibs\x265\lib\source\compat\getopt;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<ExceptionHandling>Sync</ExceptionHandling>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<Optimization>Disabled</Optimization>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<RuntimeTypeInfo>true</RuntimeTypeInfo>
<UseFullPaths>false</UseFullPaths>
<WarningLevel>Level4</WarningLevel>
<PreprocessorDefinitions>WIN32;_WINDOWS;X265_ARCH_X86=1;X86_64=1;_CRT_SECURE_NO_WARNINGS;HAVE_INT_TYPES_H=1;HIGH_BIT_DEPTH=0;X265_DEPTH=8;EXPORT_C_API=1;X265_NS=x265;_WIN32_WINNT=_WIN32_WINNT_WIN7;CMAKE_INTDIR="Debug";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ObjectFileName>$(IntDir)</ObjectFileName>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;X265_ARCH_X86=1;X86_64=1;_CRT_SECURE_NO_WARNINGS;HAVE_INT_TYPES_H=1;HIGH_BIT_DEPTH=0;X265_DEPTH=8;EXPORT_C_API=1;X265_NS=x265;_WIN32_WINNT=_WIN32_WINNT_WIN7;CMAKE_INTDIR=\"Debug\";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>C:\Esenthel\ThirdPartyLibs\x265\lib\source\.;C:\Esenthel\ThirdPartyLibs\x265\lib\source\common;C:\Esenthel\ThirdPartyLibs\x265\lib\source\encoder;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64;C:\Esenthel\ThirdPartyLibs\x265\lib\source\compat\getopt;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ResourceCompile>
<Midl>
<AdditionalIncludeDirectories>C:\Esenthel\ThirdPartyLibs\x265\lib\source\.;C:\Esenthel\ThirdPartyLibs\x265\lib\source\common;C:\Esenthel\ThirdPartyLibs\x265\lib\source\encoder;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64;C:\Esenthel\ThirdPartyLibs\x265\lib\source\compat\getopt;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<OutputDirectory>$(ProjectDir)/$(IntDir)</OutputDirectory>
<HeaderFileName>%(Filename).h</HeaderFileName>
<TypeLibraryName>%(Filename).tlb</TypeLibraryName>
<InterfaceIdentifierFileName>%(Filename)_i.c</InterfaceIdentifierFileName>
<ProxyFileName>%(Filename)_p.c</ProxyFileName>
</Midl>
<Lib>
<AdditionalOptions>%(AdditionalOptions) /machine:x64</AdditionalOptions>
</Lib>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<AdditionalIncludeDirectories>C:\Esenthel\ThirdPartyLibs\x265\lib\source\.;C:\Esenthel\ThirdPartyLibs\x265\lib\source\common;C:\Esenthel\ThirdPartyLibs\x265\lib\source\encoder;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64;C:\Esenthel\ThirdPartyLibs\x265\lib\source\compat\getopt;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ExceptionHandling>Sync</ExceptionHandling>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<Optimization>MaxSpeed</Optimization>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeTypeInfo>true</RuntimeTypeInfo>
<UseFullPaths>false</UseFullPaths>
<WarningLevel>Level4</WarningLevel>
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;X265_ARCH_X86=1;X86_64=1;_CRT_SECURE_NO_WARNINGS;HAVE_INT_TYPES_H=1;HIGH_BIT_DEPTH=0;X265_DEPTH=8;EXPORT_C_API=1;X265_NS=x265;_WIN32_WINNT=_WIN32_WINNT_WIN7;CMAKE_INTDIR="Release";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ObjectFileName>$(IntDir)</ObjectFileName>
<DebugInformationFormat>
</DebugInformationFormat>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;X265_ARCH_X86=1;X86_64=1;_CRT_SECURE_NO_WARNINGS;HAVE_INT_TYPES_H=1;HIGH_BIT_DEPTH=0;X265_DEPTH=8;EXPORT_C_API=1;X265_NS=x265;_WIN32_WINNT=_WIN32_WINNT_WIN7;CMAKE_INTDIR=\"Release\";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>C:\Esenthel\ThirdPartyLibs\x265\lib\source\.;C:\Esenthel\ThirdPartyLibs\x265\lib\source\common;C:\Esenthel\ThirdPartyLibs\x265\lib\source\encoder;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64;C:\Esenthel\ThirdPartyLibs\x265\lib\source\compat\getopt;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ResourceCompile>
<Midl>
<AdditionalIncludeDirectories>C:\Esenthel\ThirdPartyLibs\x265\lib\source\.;C:\Esenthel\ThirdPartyLibs\x265\lib\source\common;C:\Esenthel\ThirdPartyLibs\x265\lib\source\encoder;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64;C:\Esenthel\ThirdPartyLibs\x265\lib\source\compat\getopt;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<OutputDirectory>$(ProjectDir)/$(IntDir)</OutputDirectory>
<HeaderFileName>%(Filename).h</HeaderFileName>
<TypeLibraryName>%(Filename).tlb</TypeLibraryName>
<InterfaceIdentifierFileName>%(Filename)_i.c</InterfaceIdentifierFileName>
<ProxyFileName>%(Filename)_p.c</ProxyFileName>
</Midl>
<Lib>
<AdditionalOptions>%(AdditionalOptions) /machine:x64</AdditionalOptions>
</Lib>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">
<ClCompile>
<AdditionalIncludeDirectories>C:\Esenthel\ThirdPartyLibs\x265\lib\source\.;C:\Esenthel\ThirdPartyLibs\x265\lib\source\common;C:\Esenthel\ThirdPartyLibs\x265\lib\source\encoder;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64;C:\Esenthel\ThirdPartyLibs\x265\lib\source\compat\getopt;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<ExceptionHandling>Sync</ExceptionHandling>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<Optimization>MinSpace</Optimization>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeTypeInfo>true</RuntimeTypeInfo>
<UseFullPaths>false</UseFullPaths>
<WarningLevel>Level4</WarningLevel>
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;X265_ARCH_X86=1;X86_64=1;_CRT_SECURE_NO_WARNINGS;HAVE_INT_TYPES_H=1;HIGH_BIT_DEPTH=0;X265_DEPTH=8;EXPORT_C_API=1;X265_NS=x265;_WIN32_WINNT=_WIN32_WINNT_WIN7;CMAKE_INTDIR="MinSizeRel";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ObjectFileName>$(IntDir)</ObjectFileName>
<DebugInformationFormat>
</DebugInformationFormat>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;X265_ARCH_X86=1;X86_64=1;_CRT_SECURE_NO_WARNINGS;HAVE_INT_TYPES_H=1;HIGH_BIT_DEPTH=0;X265_DEPTH=8;EXPORT_C_API=1;X265_NS=x265;_WIN32_WINNT=_WIN32_WINNT_WIN7;CMAKE_INTDIR=\"MinSizeRel\";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>C:\Esenthel\ThirdPartyLibs\x265\lib\source\.;C:\Esenthel\ThirdPartyLibs\x265\lib\source\common;C:\Esenthel\ThirdPartyLibs\x265\lib\source\encoder;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64;C:\Esenthel\ThirdPartyLibs\x265\lib\source\compat\getopt;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ResourceCompile>
<Midl>
<AdditionalIncludeDirectories>C:\Esenthel\ThirdPartyLibs\x265\lib\source\.;C:\Esenthel\ThirdPartyLibs\x265\lib\source\common;C:\Esenthel\ThirdPartyLibs\x265\lib\source\encoder;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64;C:\Esenthel\ThirdPartyLibs\x265\lib\source\compat\getopt;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<OutputDirectory>$(ProjectDir)/$(IntDir)</OutputDirectory>
<HeaderFileName>%(Filename).h</HeaderFileName>
<TypeLibraryName>%(Filename).tlb</TypeLibraryName>
<InterfaceIdentifierFileName>%(Filename)_i.c</InterfaceIdentifierFileName>
<ProxyFileName>%(Filename)_p.c</ProxyFileName>
</Midl>
<Lib>
<AdditionalOptions>%(AdditionalOptions) /machine:x64</AdditionalOptions>
</Lib>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">
<ClCompile>
<AdditionalIncludeDirectories>C:\Esenthel\ThirdPartyLibs\x265\lib\source\.;C:\Esenthel\ThirdPartyLibs\x265\lib\source\common;C:\Esenthel\ThirdPartyLibs\x265\lib\source\encoder;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64;C:\Esenthel\ThirdPartyLibs\x265\lib\source\compat\getopt;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<ExceptionHandling>Sync</ExceptionHandling>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<Optimization>MaxSpeed</Optimization>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<RuntimeTypeInfo>true</RuntimeTypeInfo>
<UseFullPaths>false</UseFullPaths>
<WarningLevel>Level4</WarningLevel>
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;X265_ARCH_X86=1;X86_64=1;_CRT_SECURE_NO_WARNINGS;HAVE_INT_TYPES_H=1;HIGH_BIT_DEPTH=0;X265_DEPTH=8;EXPORT_C_API=1;X265_NS=x265;_WIN32_WINNT=_WIN32_WINNT_WIN7;CMAKE_INTDIR="RelWithDebInfo";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ObjectFileName>$(IntDir)</ObjectFileName>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;X265_ARCH_X86=1;X86_64=1;_CRT_SECURE_NO_WARNINGS;HAVE_INT_TYPES_H=1;HIGH_BIT_DEPTH=0;X265_DEPTH=8;EXPORT_C_API=1;X265_NS=x265;_WIN32_WINNT=_WIN32_WINNT_WIN7;CMAKE_INTDIR=\"RelWithDebInfo\";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>C:\Esenthel\ThirdPartyLibs\x265\lib\source\.;C:\Esenthel\ThirdPartyLibs\x265\lib\source\common;C:\Esenthel\ThirdPartyLibs\x265\lib\source\encoder;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64;C:\Esenthel\ThirdPartyLibs\x265\lib\source\compat\getopt;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ResourceCompile>
<Midl>
<AdditionalIncludeDirectories>C:\Esenthel\ThirdPartyLibs\x265\lib\source\.;C:\Esenthel\ThirdPartyLibs\x265\lib\source\common;C:\Esenthel\ThirdPartyLibs\x265\lib\source\encoder;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64;C:\Esenthel\ThirdPartyLibs\x265\lib\source\compat\getopt;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<OutputDirectory>$(ProjectDir)/$(IntDir)</OutputDirectory>
<HeaderFileName>%(Filename).h</HeaderFileName>
<TypeLibraryName>%(Filename).tlb</TypeLibraryName>
<InterfaceIdentifierFileName>%(Filename)_i.c</InterfaceIdentifierFileName>
<ProxyFileName>%(Filename)_p.c</ProxyFileName>
</Midl>
<Lib>
<AdditionalOptions>%(AdditionalOptions) /machine:x64</AdditionalOptions>
</Lib>
</ItemDefinitionGroup>
<ItemGroup>
<CustomBuild Include="C:\Esenthel\ThirdPartyLibs\x265\lib\source\CMakeLists.txt">
<StdOutEncoding>UTF-8</StdOutEncoding>
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Building Custom Rule C:/Esenthel/ThirdPartyLibs/x265/lib/source/CMakeLists.txt</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">setlocal
"C:\Program Files\CMake\bin\cmake.exe" -SC:/Esenthel/ThirdPartyLibs/x265/lib/source -BC:/Esenthel/ThirdPartyLibs/x265/lib/build/vc15-x86_64 --check-stamp-file C:/Esenthel/ThirdPartyLibs/x265/lib/build/vc15-x86_64/CMakeFiles/generate.stamp
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\3.18.2\CMakeCCompiler.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\3.18.2\CMakeCXXCompiler.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\3.18.2\CMakeRCCompiler.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\3.18.2\CMakeSystem.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\CheckIncludeFiles\HAVE_GETOPT_H.c;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\CheckIncludeFiles\HAVE_INT_TYPES_H.c;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\CheckIncludeFiles\HAVE_STDINT_H.c;C:\Esenthel\ThirdPartyLibs\x265\lib\source\cmake\FindNasm.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\source\cmake\FindVLD.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\source\cmake\cmake_uninstall.cmake.in;C:\Esenthel\ThirdPartyLibs\x265\lib\source\cmake\version.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\source\x265.def.in;C:\Esenthel\ThirdPartyLibs\x265\lib\source\x265.pc.in;C:\Esenthel\ThirdPartyLibs\x265\lib\source\x265.rc.in;C:\Esenthel\ThirdPartyLibs\x265\lib\source\x265_config.h.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCCompiler.cmake.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCCompilerABI.c;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCXXCompiler.cmake.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCXXCompilerABI.cpp;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCXXInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCheckCompilerFlagCommonPatterns.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCommonLanguageInclude.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCompilerIdDetection.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeConfigurableFile.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCXXCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCompileFeatures.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCompilerABI.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCompilerId.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineRCCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineSystem.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeFindBinUtils.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeGenericSystem.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeInitializeConfigs.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeLanguageInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeParseImplicitIncludeInfo.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeParseImplicitLinkInfo.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeRCCompiler.cmake.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeRCInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeSystem.cmake.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeSystemSpecificInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeSystemSpecificInitialize.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeTestCCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeTestCXXCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeTestCompilerCommon.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeTestRCCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckCXXCompilerFlag.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckCXXSourceCompiles.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckFunctionExists.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckIncludeFiles.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckSymbolExists.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\ADSP-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\ARMCC-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\ARMClang-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\AppleClang-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Borland-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Bruce-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\CMakeCommonCompilerMacros.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Clang-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Clang-DetermineCompilerInternal.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Comeau-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Compaq-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Compaq-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Cray-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Embarcadero-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Fujitsu-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\GHS-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\GNU-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\GNU-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\HP-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\HP-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\IAR-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\IBMCPP-C-DetermineVersionInternal.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\IBMCPP-CXX-DetermineVersionInternal.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Intel-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\MSVC-C.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\MSVC-CXX.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\MSVC-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\NVIDIA-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\OpenWatcom-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\PGI-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\PathScale-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\SCO-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\SDCC-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\SunPro-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\SunPro-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\TI-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\TinyCC-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\VisualAge-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\VisualAge-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Watcom-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\XL-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\XL-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\XLClang-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\XLClang-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\zOS-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\zOS-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CompilerId\VS-10.vcxproj.in;C:\Program Files\CMake\share\cmake-3.18\Modules\FindGit.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\FindHg.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\FindPackageHandleStandardArgs.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\FindPackageMessage.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Internal\FeatureTesting.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows-Determine-CXX.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows-MSVC-C.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows-MSVC-CXX.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows-MSVC.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\WindowsPaths.cmake;%(AdditionalInputs)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\generate.stamp</Outputs>
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkObjects>
<Message Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Building Custom Rule C:/Esenthel/ThirdPartyLibs/x265/lib/source/CMakeLists.txt</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">setlocal
"C:\Program Files\CMake\bin\cmake.exe" -SC:/Esenthel/ThirdPartyLibs/x265/lib/source -BC:/Esenthel/ThirdPartyLibs/x265/lib/build/vc15-x86_64 --check-stamp-file C:/Esenthel/ThirdPartyLibs/x265/lib/build/vc15-x86_64/CMakeFiles/generate.stamp
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\3.18.2\CMakeCCompiler.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\3.18.2\CMakeCXXCompiler.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\3.18.2\CMakeRCCompiler.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\3.18.2\CMakeSystem.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\CheckIncludeFiles\HAVE_GETOPT_H.c;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\CheckIncludeFiles\HAVE_INT_TYPES_H.c;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\CheckIncludeFiles\HAVE_STDINT_H.c;C:\Esenthel\ThirdPartyLibs\x265\lib\source\cmake\FindNasm.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\source\cmake\FindVLD.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\source\cmake\cmake_uninstall.cmake.in;C:\Esenthel\ThirdPartyLibs\x265\lib\source\cmake\version.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\source\x265.def.in;C:\Esenthel\ThirdPartyLibs\x265\lib\source\x265.pc.in;C:\Esenthel\ThirdPartyLibs\x265\lib\source\x265.rc.in;C:\Esenthel\ThirdPartyLibs\x265\lib\source\x265_config.h.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCCompiler.cmake.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCCompilerABI.c;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCXXCompiler.cmake.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCXXCompilerABI.cpp;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCXXInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCheckCompilerFlagCommonPatterns.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCommonLanguageInclude.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCompilerIdDetection.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeConfigurableFile.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCXXCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCompileFeatures.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCompilerABI.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCompilerId.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineRCCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineSystem.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeFindBinUtils.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeGenericSystem.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeInitializeConfigs.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeLanguageInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeParseImplicitIncludeInfo.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeParseImplicitLinkInfo.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeRCCompiler.cmake.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeRCInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeSystem.cmake.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeSystemSpecificInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeSystemSpecificInitialize.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeTestCCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeTestCXXCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeTestCompilerCommon.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeTestRCCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckCXXCompilerFlag.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckCXXSourceCompiles.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckFunctionExists.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckIncludeFiles.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckSymbolExists.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\ADSP-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\ARMCC-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\ARMClang-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\AppleClang-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Borland-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Bruce-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\CMakeCommonCompilerMacros.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Clang-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Clang-DetermineCompilerInternal.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Comeau-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Compaq-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Compaq-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Cray-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Embarcadero-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Fujitsu-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\GHS-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\GNU-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\GNU-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\HP-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\HP-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\IAR-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\IBMCPP-C-DetermineVersionInternal.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\IBMCPP-CXX-DetermineVersionInternal.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Intel-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\MSVC-C.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\MSVC-CXX.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\MSVC-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\NVIDIA-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\OpenWatcom-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\PGI-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\PathScale-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\SCO-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\SDCC-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\SunPro-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\SunPro-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\TI-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\TinyCC-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\VisualAge-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\VisualAge-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Watcom-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\XL-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\XL-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\XLClang-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\XLClang-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\zOS-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\zOS-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CompilerId\VS-10.vcxproj.in;C:\Program Files\CMake\share\cmake-3.18\Modules\FindGit.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\FindHg.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\FindPackageHandleStandardArgs.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\FindPackageMessage.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Internal\FeatureTesting.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows-Determine-CXX.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows-MSVC-C.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows-MSVC-CXX.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows-MSVC.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\WindowsPaths.cmake;%(AdditionalInputs)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\generate.stamp</Outputs>
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkObjects>
<Message Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">Building Custom Rule C:/Esenthel/ThirdPartyLibs/x265/lib/source/CMakeLists.txt</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">setlocal
"C:\Program Files\CMake\bin\cmake.exe" -SC:/Esenthel/ThirdPartyLibs/x265/lib/source -BC:/Esenthel/ThirdPartyLibs/x265/lib/build/vc15-x86_64 --check-stamp-file C:/Esenthel/ThirdPartyLibs/x265/lib/build/vc15-x86_64/CMakeFiles/generate.stamp
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\3.18.2\CMakeCCompiler.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\3.18.2\CMakeCXXCompiler.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\3.18.2\CMakeRCCompiler.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\3.18.2\CMakeSystem.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\CheckIncludeFiles\HAVE_GETOPT_H.c;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\CheckIncludeFiles\HAVE_INT_TYPES_H.c;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\CheckIncludeFiles\HAVE_STDINT_H.c;C:\Esenthel\ThirdPartyLibs\x265\lib\source\cmake\FindNasm.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\source\cmake\FindVLD.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\source\cmake\cmake_uninstall.cmake.in;C:\Esenthel\ThirdPartyLibs\x265\lib\source\cmake\version.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\source\x265.def.in;C:\Esenthel\ThirdPartyLibs\x265\lib\source\x265.pc.in;C:\Esenthel\ThirdPartyLibs\x265\lib\source\x265.rc.in;C:\Esenthel\ThirdPartyLibs\x265\lib\source\x265_config.h.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCCompiler.cmake.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCCompilerABI.c;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCXXCompiler.cmake.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCXXCompilerABI.cpp;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCXXInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCheckCompilerFlagCommonPatterns.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCommonLanguageInclude.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCompilerIdDetection.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeConfigurableFile.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCXXCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCompileFeatures.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCompilerABI.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCompilerId.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineRCCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineSystem.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeFindBinUtils.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeGenericSystem.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeInitializeConfigs.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeLanguageInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeParseImplicitIncludeInfo.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeParseImplicitLinkInfo.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeRCCompiler.cmake.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeRCInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeSystem.cmake.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeSystemSpecificInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeSystemSpecificInitialize.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeTestCCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeTestCXXCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeTestCompilerCommon.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeTestRCCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckCXXCompilerFlag.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckCXXSourceCompiles.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckFunctionExists.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckIncludeFiles.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckSymbolExists.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\ADSP-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\ARMCC-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\ARMClang-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\AppleClang-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Borland-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Bruce-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\CMakeCommonCompilerMacros.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Clang-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Clang-DetermineCompilerInternal.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Comeau-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Compaq-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Compaq-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Cray-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Embarcadero-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Fujitsu-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\GHS-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\GNU-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\GNU-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\HP-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\HP-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\IAR-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\IBMCPP-C-DetermineVersionInternal.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\IBMCPP-CXX-DetermineVersionInternal.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Intel-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\MSVC-C.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\MSVC-CXX.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\MSVC-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\NVIDIA-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\OpenWatcom-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\PGI-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\PathScale-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\SCO-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\SDCC-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\SunPro-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\SunPro-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\TI-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\TinyCC-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\VisualAge-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\VisualAge-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Watcom-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\XL-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\XL-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\XLClang-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\XLClang-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\zOS-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\zOS-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CompilerId\VS-10.vcxproj.in;C:\Program Files\CMake\share\cmake-3.18\Modules\FindGit.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\FindHg.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\FindPackageHandleStandardArgs.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\FindPackageMessage.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Internal\FeatureTesting.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows-Determine-CXX.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows-MSVC-C.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows-MSVC-CXX.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows-MSVC.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\WindowsPaths.cmake;%(AdditionalInputs)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\generate.stamp</Outputs>
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='MinSizeRel|x64'">false</LinkObjects>
<Message Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">Building Custom Rule C:/Esenthel/ThirdPartyLibs/x265/lib/source/CMakeLists.txt</Message>
<Command Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">setlocal
"C:\Program Files\CMake\bin\cmake.exe" -SC:/Esenthel/ThirdPartyLibs/x265/lib/source -BC:/Esenthel/ThirdPartyLibs/x265/lib/build/vc15-x86_64 --check-stamp-file C:/Esenthel/ThirdPartyLibs/x265/lib/build/vc15-x86_64/CMakeFiles/generate.stamp
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd</Command>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\3.18.2\CMakeCCompiler.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\3.18.2\CMakeCXXCompiler.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\3.18.2\CMakeRCCompiler.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\3.18.2\CMakeSystem.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\CheckIncludeFiles\HAVE_GETOPT_H.c;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\CheckIncludeFiles\HAVE_INT_TYPES_H.c;C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\CheckIncludeFiles\HAVE_STDINT_H.c;C:\Esenthel\ThirdPartyLibs\x265\lib\source\cmake\FindNasm.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\source\cmake\FindVLD.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\source\cmake\cmake_uninstall.cmake.in;C:\Esenthel\ThirdPartyLibs\x265\lib\source\cmake\version.cmake;C:\Esenthel\ThirdPartyLibs\x265\lib\source\x265.def.in;C:\Esenthel\ThirdPartyLibs\x265\lib\source\x265.pc.in;C:\Esenthel\ThirdPartyLibs\x265\lib\source\x265.rc.in;C:\Esenthel\ThirdPartyLibs\x265\lib\source\x265_config.h.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCCompiler.cmake.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCCompilerABI.c;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCXXCompiler.cmake.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCXXCompilerABI.cpp;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCXXInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCheckCompilerFlagCommonPatterns.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCommonLanguageInclude.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeCompilerIdDetection.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeConfigurableFile.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCXXCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCompileFeatures.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCompilerABI.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineCompilerId.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineRCCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeDetermineSystem.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeFindBinUtils.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeGenericSystem.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeInitializeConfigs.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeLanguageInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeParseImplicitIncludeInfo.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeParseImplicitLinkInfo.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeRCCompiler.cmake.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeRCInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeSystem.cmake.in;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeSystemSpecificInformation.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeSystemSpecificInitialize.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeTestCCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeTestCXXCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeTestCompilerCommon.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CMakeTestRCCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckCXXCompilerFlag.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckCXXSourceCompiles.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckFunctionExists.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckIncludeFiles.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CheckSymbolExists.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\ADSP-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\ARMCC-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\ARMClang-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\AppleClang-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Borland-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Bruce-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\CMakeCommonCompilerMacros.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Clang-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Clang-DetermineCompilerInternal.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Comeau-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Compaq-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Compaq-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Cray-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Embarcadero-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Fujitsu-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\GHS-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\GNU-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\GNU-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\HP-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\HP-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\IAR-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\IBMCPP-C-DetermineVersionInternal.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\IBMCPP-CXX-DetermineVersionInternal.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Intel-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\MSVC-C.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\MSVC-CXX.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\MSVC-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\NVIDIA-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\OpenWatcom-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\PGI-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\PathScale-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\SCO-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\SDCC-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\SunPro-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\SunPro-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\TI-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\TinyCC-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\VisualAge-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\VisualAge-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\Watcom-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\XL-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\XL-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\XLClang-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\XLClang-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\zOS-C-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Compiler\zOS-CXX-DetermineCompiler.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\CompilerId\VS-10.vcxproj.in;C:\Program Files\CMake\share\cmake-3.18\Modules\FindGit.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\FindHg.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\FindPackageHandleStandardArgs.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\FindPackageMessage.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Internal\FeatureTesting.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows-Determine-CXX.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows-MSVC-C.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows-MSVC-CXX.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows-MSVC.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\Windows.cmake;C:\Program Files\CMake\share\cmake-3.18\Modules\Platform\WindowsPaths.cmake;%(AdditionalInputs)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\CMakeFiles\generate.stamp</Outputs>
<LinkObjects Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|x64'">false</LinkObjects>
</CustomBuild>
</ItemGroup>
<ItemGroup>
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\analysis.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\search.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\bitcost.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\motion.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\slicetype.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\frameencoder.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\framefilter.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\level.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\nal.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\sei.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\sao.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\entropy.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\dpb.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\ratecontrol.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\reference.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\encoder.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\api.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.dir\$(Configuration)\weightPrediction.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\winxp.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\primitives.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\pixel.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\dct.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\lowpassdct.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\ipfilter.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\intrapred.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\loopfilter.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\constants.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\cpu.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\version.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\threading.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\threadpool.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\wavefront.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\md5.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\bitstream.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\yuv.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\shortyuv.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\picyuv.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\common.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\param.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\frame.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\framedata.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\cudata.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\slice.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\lowres.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\piclist.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\predict.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\scalinglist.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\quant.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\deblock.obj" />
<Object Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.dir\$(Configuration)\scaler.obj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\ZERO_CHECK.vcxproj">
<Project>{08125F00-1ECA-3AA4-BA41-ED4CD791415E}</Project>
<Name>ZERO_CHECK</Name>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</ProjectReference>
<ProjectReference Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\common\common.vcxproj">
<Project>{72CD5798-990A-33CB-B6A4-59B0425D2277}</Project>
<Name>common</Name>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</ProjectReference>
<ProjectReference Include="C:\Esenthel\ThirdPartyLibs\x265\lib\build\vc15-x86_64\encoder\encoder.vcxproj">
<Project>{18EE7E77-237C-3214-8754-EA57FAC0C76C}</Project>
<Name>encoder</Name>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project> | {
"pile_set_name": "Github"
} |
---
title: "Resume an availability group database"
description: Resume a suspended availability database in Always On availability groups by using SQL Server Management Studio, Transact-SQL, or PowerShell in SQL Server.
ms.custom: "seo-lt-2019"
ms.date: "05/17/2016"
ms.prod: sql
ms.reviewer: ""
ms.technology: high-availability
ms.topic: conceptual
f1_keywords:
- "sql13.swb.availabilitygroup.resumedatamove.f1"
helpviewer_keywords:
- "Availability Groups [SQL Server], resuming a database"
- "secondary databases [SQL Server], in availability group"
- "primary databases [SQL Server], in availability group"
- "Availability Groups [SQL Server], databases"
ms.assetid: 20e9147b-e985-4caa-910e-fc4b38dbf9a1
author: MashaMSFT
ms.author: mathoma
---
# Resume an Availability Database (SQL Server)
[!INCLUDE [SQL Server](../../../includes/applies-to-version/sqlserver.md)]
You can resume a suspended availability database in [!INCLUDE[ssHADR](../../../includes/sshadr-md.md)] by using [!INCLUDE[ssManStudioFull](../../../includes/ssmanstudiofull-md.md)], [!INCLUDE[tsql](../../../includes/tsql-md.md)], or PowerShell in [!INCLUDE[ssCurrent](../../../includes/sscurrent-md.md)]. Resuming a suspended database puts the database into the SYNCHRONIZING state. Resuming the primary database also resumes any of its secondary databases that were suspended as the result of suspending the primary database. If any secondary database was suspended locally, from the server instance that hosts the secondary replica, that secondary database must be resumed locally. Once a given secondary database and the corresponding primary database are in the SYNCHRONIZING state, data synchronization resumes on the secondary database.
> [!NOTE]
> Suspending and resuming an Always On secondary database does not directly affect the availability of the primary database. However, suspending a secondary database can impact redundancy and failover capabilities for the primary database, until the suspended secondary database is resumed. This is in contrast to database mirroring, where the mirroring state is suspended on both the mirror database and the principal database until mirroring is resumed. Suspending an Always On primary database suspends data movement on all the corresponding secondary databases, and redundancy and failover capabilities cease for that database until the primary database is resumed.
## Limitations and Restrictions
A RESUME command returns as soon as it has been accepted by the replica that hosts the target database, but actually resuming the database occurs asynchronously.
## <a name="Prerequisites"></a> Prerequisites
- You must be connected to the server instance that hosts the database to be resumed.
- The availability group must be online.
- The primary database must be online and available.
## <a name="Permissions"></a> Permissions
Requires ALTER permission on the database.
Requires ALTER AVAILABILITY GROUP permission on the availability group, CONTROL AVAILABILITY GROUP permission, ALTER ANY AVAILABILITY GROUP permission, or CONTROL SERVER permission.
## <a name="SSMSProcedure"></a> Using SQL Server Management Studio
**To resume a secondary database**
1. In Object Explorer, connect to the server instance that hosts the availability replica on which you want to resume a database, and expand the server tree.
2. Expand the **Always On High Availability** node and the **Availability Groups** node.
3. Expand the availability group.
4. Expand the **Availability Databases** node, right-click the database, and click **Resume Data Movement**.
5. In the **Resume Data Movement** dialog box, click **OK**.
> [!NOTE]
> To resume additional databases on this replica location, repeat steps 4 and 5 for each database.
## <a name="TsqlProcedure"></a> Using Transact-SQL
**To resume a secondary database that was suspended locally**
1. Connect to the server instance that hosts the secondary replica whose database you want to resume.
2. Resume the secondary database by using the following [ALTER DATABASE](../../../t-sql/statements/alter-database-transact-sql-set-hadr.md) statement:
ALTER DATABASE *database_name* SET HADR RESUME;
## <a name="PowerShellProcedure"></a> Using PowerShell
**To resume a secondary database**
1. Change directory (**cd**) to the server instance that hosts the replica whose database you want to resume. For more information, see [Prerequisites](#Prerequisites), earlier in this topic.
2. Use the **Resume-SqlAvailabilityDatabase** cmdlet to resume the availability group.
For example, the following command resumes data synchronization for the availability database `MyDb3` in the availability group `MyAg`.
```
Resume-SqlAvailabilityDatabase `
-Path SQLSERVER:\Sql\Computer\Instance\AvailabilityGroups\MyAg\Databases\MyDb3
```
> [!NOTE]
> To view the syntax of a cmdlet, use the **Get-Help** cmdlet in the [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] PowerShell environment. For more information, see [Get Help SQL Server PowerShell](../../../relational-databases/scripting/get-help-sql-server-powershell.md).
**To set up and use the SQL Server PowerShell provider**
- [SQL Server PowerShell Provider](../../../relational-databases/scripting/sql-server-powershell-provider.md)
## <a name="RelatedTasks"></a> Related Tasks
- [Suspend an Availability Database (SQL Server)](../../../database-engine/availability-groups/windows/suspend-an-availability-database-sql-server.md)
## See Also
[Overview of Always On Availability Groups (SQL Server)](../../../database-engine/availability-groups/windows/overview-of-always-on-availability-groups-sql-server.md)
| {
"pile_set_name": "Github"
} |
<?php
namespace Kunstmaan\MediaBundle\Form;
use Kunstmaan\MediaBundle\Entity\Folder;
use Kunstmaan\MediaBundle\Repository\FolderRepository;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class FolderType extends AbstractType
{
/**
* Builds the form.
*
* This method is called for each type in the hierarchy starting form the
* top most type. Type extensions can further modify the form.
*
* @param FormBuilderInterface $builder The form builder
* @param array $options The options
*
* @see FormTypeExtensionInterface::buildForm()
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$folder = $options['folder'];
$builder
->add(
'name',
TextType::class,
array(
'label' => 'media.folder.addsub.form.name',
)
)
->add(
'rel',
ChoiceType::class,
array(
'choices' => Folder::allTypes(),
'label' => 'media.folder.addsub.form.rel',
)
)
->add(
'parent',
EntityType::class,
array(
'class' => 'KunstmaanMediaBundle:Folder',
'choice_label' => 'optionLabel',
'label' => 'media.folder.addsub.form.parent',
'required' => true,
'query_builder' => function (FolderRepository $er) use ($folder) {
return $er->selectFolderQueryBuilder($folder);
},
)
)
->add(
'internalName',
TextType::class,
array(
'label' => 'media.folder.addsub.form.internal_name',
'required' => false,
)
);
}
/**
* Returns the name of this type.
*
* @return string The name of this type
*/
public function getBlockPrefix()
{
return 'kunstmaan_mediabundle_FolderType';
}
/**
* Sets the default options for this type.
*
* @param OptionsResolver $resolver the resolver for the options
*/
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(
array(
'data_class' => 'Kunstmaan\MediaBundle\Entity\Folder',
'folder' => null,
)
);
}
}
| {
"pile_set_name": "Github"
} |
class PhrasingPhraseVersionsController < Phrasing.parent_controller.constantize
def destroy
phrase_version = PhrasingPhraseVersion.find(params[:id])
phrase_version.destroy
redirect_to edit_phrasing_phrase_path(phrase_version.phrasing_phrase.id)
end
end | {
"pile_set_name": "Github"
} |
#ifndef ISTREAM_FILE_PRIVATE_H
#define ISTREAM_FILE_PRIVATE_H
#include "istream-private.h"
struct file_istream {
struct istream_private istream;
uoff_t skip_left;
bool file:1;
bool autoclose_fd:1;
bool seen_eof:1;
};
struct istream *
i_stream_create_file_common(struct file_istream *fstream,
int fd, const char *path,
size_t max_buffer_size, bool autoclose_fd);
ssize_t i_stream_file_read(struct istream_private *stream);
void i_stream_file_close(struct iostream_private *stream, bool close_parent);
#endif
| {
"pile_set_name": "Github"
} |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.9
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
namespace org.doubango.ipsecWRAP {
public enum tipsec_ealg_t {
tipsec_ealg_des_ede3_cbc,
tipsec_ealg_aes,
tipsec_ealg_null
}
}
| {
"pile_set_name": "Github"
} |
#ifndef PQCLEAN_NTRULPR653_CLEAN_CRYPTO_ENCODE_256X2_H
#define PQCLEAN_NTRULPR653_CLEAN_CRYPTO_ENCODE_256X2_H
#include <stdint.h>
#define PQCLEAN_NTRULPR653_CLEAN_crypto_encode_256x2_STRBYTES 32
#define PQCLEAN_NTRULPR653_CLEAN_crypto_encode_256x2_ITEMS 256
#define PQCLEAN_NTRULPR653_CLEAN_crypto_encode_256x2_ITEMBYTES 1
void PQCLEAN_NTRULPR653_CLEAN_crypto_encode_256x2(unsigned char *s, const void *v);
#endif
| {
"pile_set_name": "Github"
} |
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package io.permazen;
import io.permazen.annotation.PermazenType;
import io.permazen.test.TestSupport;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
public class ToStringTest extends TestSupport {
@Test(dataProvider = "cases")
private <T extends Person> void testToString(Class<T> cl, String pattern) throws Exception {
final Permazen jdb = BasicTest.getPermazen(cl);
final JTransaction jtx = jdb.createTransaction();
JTransaction.setCurrent(jtx);
try {
final T person = jtx.create(cl);
person.setName("fred");
person.setAge(23);
final String expected = pattern
.replaceAll("@OBJID@", person.getObjId().toString())
.replaceAll("@TYPENAME@", cl.getSimpleName())
.replaceAll("@TYPEID@", "" + person.getJClass().getStorageId())
.replaceAll("@VERSION@", "" + person.getSchemaVersion());
Assert.assertEquals(person.toString(), expected);
jtx.commit();
} finally {
JTransaction.setCurrent(null);
}
}
@DataProvider(name = "cases")
public Object[][] testToStringCases() throws Exception {
return new Object[][] {
{ Person1.class, "object @OBJID@ type @TYPENAME@#@TYPEID@ version @VERSION@\n age = 23\nname = \"fred\"" },
{ Person2.class, "object @OBJID@ type @TYPENAME@#@TYPEID@ version @VERSION@\n age = 23\nname = \"fred\"" },
{ Person3.class, "fred:23" },
};
}
// Model Classes
public interface Person extends JObject {
String getName();
void setName(String x);
int getAge();
void setAge(int x);
}
@PermazenType
public interface Person1 extends Person {
}
@PermazenType
public abstract static class Person2 implements Person {
}
@PermazenType
public abstract static class Person3 implements Person {
@Override
public String toString() {
return this.getName() + ":" + this.getAge();
}
}
}
| {
"pile_set_name": "Github"
} |
import { makeTheme, PrismTheme } from "./utils";
// From: https://github.com/FormidableLabs/prism-react-renderer/blob/master/themes/
const prismTheme: PrismTheme = {
plain: {
color: "#d6deeb",
backgroundColor: "#011627"
},
styles: [
{
types: ["changed"],
style: {
color: "rgb(162, 191, 252)",
fontStyle: "italic"
}
},
{
types: ["deleted"],
style: {
color: "rgba(239, 83, 80, 0.56)",
fontStyle: "italic"
}
},
{
types: ["inserted", "attr-name"],
style: {
color: "rgb(173, 219, 103)",
fontStyle: "italic"
}
},
{
types: ["comment"],
style: {
color: "rgb(99, 119, 119)",
fontStyle: "italic"
}
},
{
types: ["string", "url"],
style: {
color: "rgb(173, 219, 103)"
}
},
{
types: ["variable"],
style: {
color: "rgb(214, 222, 235)"
}
},
{
types: ["number"],
style: {
color: "rgb(247, 140, 108)"
}
},
{
types: ["builtin", "char", "constant", "function"],
style: {
color: "rgb(130, 170, 255)"
}
},
{
// This was manually added after the auto-generation
// so that punctuations are not italicised
types: ["punctuation"],
style: {
color: "rgb(199, 146, 234)"
}
},
{
types: ["selector", "doctype"],
style: {
color: "rgb(199, 146, 234)",
fontStyle: "italic"
}
},
{
types: ["class-name"],
style: {
color: "rgb(255, 203, 139)"
}
},
{
types: ["tag", "operator", "keyword"],
style: {
color: "rgb(127, 219, 202)"
}
},
{
types: ["boolean"],
style: {
color: "rgb(255, 88, 116)"
}
},
{
types: ["property"],
style: {
color: "rgb(128, 203, 196)"
}
},
{
types: ["namespace"],
style: {
color: "rgb(178, 204, 214)"
}
}
]
};
const theme = makeTheme(prismTheme, {
title: { background: "rgba(1, 22, 39, 0.8)", color: "#d6deeb" }
});
export { theme };
| {
"pile_set_name": "Github"
} |
defmodule Meetup.MixProject do
use Mix.Project
def project do
[
app: :meetup,
version: "0.1.0",
# elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
end
| {
"pile_set_name": "Github"
} |
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/PuerkitoBio/goquery v1.5.1 h1:PSPBGne8NIUWw+/7vFBV+kG2J/5MOjbzc7154OaKCSE=
github.com/PuerkitoBio/goquery v1.5.1/go.mod h1:GsLWisAFVj4WgDibEWF4pvYnkVQBpKBKeU+7zCJoLcc=
github.com/andybalholm/cascadia v1.1.0 h1:BuuO6sSfQNFRu1LppgbD25Hr2vLYW25JvxHs5zzsLTo=
github.com/andybalholm/cascadia v1.1.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y=
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY=
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/json-iterator/go v1.1.10 h1:Kz6Cvnvv2wGdaG/V8yMvfkmNiXq9Ya2KUv4rouJJr68=
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/mmcdole/goxpp v0.0.0-20181012175147-0068e33feabf h1:sWGE2v+hO0Nd4yFU/S/mDBM5plIU8v/Qhfz41hkDIAI=
github.com/mmcdole/goxpp v0.0.0-20181012175147-0068e33feabf/go.mod h1:pasqhqstspkosTneA62Nc+2p9SOBBYAPbnmRRWPQ0V8=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 h1:Esafd1046DLDQ0W1YjYsBW+p8U2u7vzgW2SQVmlNazg=
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/urfave/cli v1.22.3 h1:FpNT6zq26xNpHZy08emi755QwzLPs6Pukqjlc7RfOMU=
github.com/urfave/cli v1.22.3/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200301022130-244492dfa37a h1:GuSPYbZzB5/dcLNCwLQLsg3obCJtX9IJhpXkvY7kzk0=
golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
| {
"pile_set_name": "Github"
} |
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:l="urn:import:stroom.item.client"
xmlns:t="urn:import:stroom.widget.tickbox.client.view"
xmlns:view="urn:import:stroom.widget.layout.client.view">
<ui:style>
.label {
width: 110px;
margin-top: 2px;
vertical-align: top;
white-space: nowrap;
}
.retentionExpressionPanel {
width: 100%;
height: 100%;
border: solid 1px #c5cde2;
background-color: white;
}
</ui:style>
<view:ResizeSimplePanel styleName="stroom-control-page" width="100%" height="100%">
<g:DockLayoutPanel unit="PX" width="100%" height="100%">
<g:north size="440">
<g:Grid styleName="stroom-control-grid">
<g:row>
<g:cell>Description:</g:cell>
<g:customCell>
<g:TextArea ui:field="description" width="400px"/>
</g:customCell>
</g:row>
<g:row>
<g:cell>Collection:</g:cell>
<g:customCell>
<g:TextBox ui:field="collection" width="400px"/>
</g:customCell>
</g:row>
<g:row>
<g:cell>Instance Type:</g:cell>
<g:customCell>
<l:ItemListBox ui:field="instanceType"/>
</g:customCell>
</g:row>
<g:row>
<g:cell>Solr URLs:</g:cell>
<g:customCell>
<g:TextArea ui:field="solrUrls" width="400px"/>
</g:customCell>
</g:row>
<g:row>
<g:cell>Use ZK:</g:cell>
<g:customCell>
<t:TickBox ui:field="useZk" width="400px"/>
</g:customCell>
</g:row>
<g:row>
<g:cell>ZK Hosts:</g:cell>
<g:customCell>
<g:TextArea ui:field="zkHosts" width="400px"/>
</g:customCell>
</g:row>
<g:row>
<g:cell>ZK Path:</g:cell>
<g:customCell>
<g:TextArea ui:field="zkPath" width="400px"/>
</g:customCell>
</g:row>
<g:row>
<g:cell></g:cell>
<g:customCell>
<g:Button ui:field="testConnection" text="Test Connection" width="200px"/>
</g:customCell>
</g:row>
</g:Grid>
</g:north>
<g:center>
<g:DockLayoutPanel unit="PX" width="100%"
height="100%">
<g:north size="20">
<g:Label text="Data Retention Expression (matching data will be deleted):"
addStyleNames="{style.label}"
width="100%"/>
</g:north>
<g:center>
<view:ResizeSimplePanel ui:field="retentionExpressionPanel"
styleName="{style.retentionExpressionPanel}"/>
</g:center>
</g:DockLayoutPanel>
</g:center>
</g:DockLayoutPanel>
</view:ResizeSimplePanel>
</ui:UiBinder>
| {
"pile_set_name": "Github"
} |
GQ-CNN
======
GQ-CNN and FC-GQ-CNN classes are **never accessed directly**, but through a lightweight factory function that returns the corresponding class depending on the specified backend. ::
$ from gqcnn import get_gqcnn_model
$
$ backend = 'tf'
$ my_gqcnn = get_gqcnn_model(backend)(<class initializer args>)
.. autofunction:: gqcnn.get_gqcnn_model
.. autofunction:: gqcnn.get_fc_gqcnn_model
GQCNNTF
~~~~~~~
Tensorflow implementation of GQ-CNN model.
.. autoclass:: gqcnn.model.tf.GQCNNTF
:exclude-members: init_mean_and_std,
set_base_network,
init_weights_file,
initialize_network,
set_batch_size,
set_im_mean,
get_im_mean,
set_im_std,
get_im_std,
set_pose_mean,
get_pose_mean,
set_pose_std,
get_pose_std,
set_im_depth_sub_mean,
set_im_depth_sub_std,
add_softmax_to_output,
add_sigmoid_to_output,
update_batch_size,
FCGQCNNTF
~~~~~~~~~
Tensorflow implementation of FC-GQ-CNN model.
.. autoclass:: gqcnn.model.tf.FCGQCNNTF
:exclude-members: __init__
| {
"pile_set_name": "Github"
} |
# Introduction #
## Converged Database ##
A converged database is a database that has native support for all modern data types and the latest development paradigms built into one product.
Converged databases support Spatial data for location awareness, JSON for document stores, IoT for device integration, in-memory technologies for real-time analytics, and of course, traditional relational data. By providing support for all of these data types, a Converged Database can run all sorts of workloads from IoT to Blockchain to Analytics and Machine Learning. It can also handle any development paradigm, including Microservices, Events, REST, SaaS, and CI/CD, to name a few.
[](youtube:9d76-LhgMQs)
### Oracle Analytics Server ###
Oracle Analytics Server (OAS) is an on-premises self-service visualization and augmented artificial intelligence (AI)analytics platform. It provides a full range of capabilities including AI that quickly surfaces key insights in your datasets, data enrichment features that automatically recommend new elements for analysis, machine learning (ML) capabilities for both traditional and citizen data scientists, and stunning data visualizations for your dashboards with pixel perfect reporting. Built on a proven and modern technological foundation, it supports the highest workloads and most complex deployments while providing timely insights to users across an enterprise at a low overall total cost of ownership.
Organizations can now modernize their analytics platform by providing easy-to-use interfaces for all users who need to access curated data, self-serve by importing or blending data, perform analysis, or distribute reports securely via mobile, tablet, and all modern browsers.
**Functionality:**
- OAS is customer installable software for customer managed on-premises or private IaaS deployments.
- OAS is the upgrade path for existing OBIEE customers.
**OAS includes:**
- Oracle Analytics: Publisher
- Oracle Analytics Server Enterprise Edition
- Oracle Analytics Administrator
- Oracle Analytics Interactive Dashboards
- Oracle Analytics Delivers
- Oracle Analytics Answers
**Support:**
- OAS 5.5 is only supported on Linux operation systems.
- Support for additional operating systems are planned for later releases.
[](youtube:Ml-McI6yBOU)
### Why Converge Database with OAS ?
Every actionable insights are drived from data and data is available in variety of formats like, Relational, XML, JSON, Spatial, Graph etc. Organizations are heavily depending on accurate data and its availability for processing. Hence, many organizations are trying to keep data at its originately or in various source formats. To take right decision at right time, single truth version of data is required and hence consolidation is the key. Hence, variety of data needs to be processed using tools to get single version of true data. Not one solution or tool is sufficient to handle these various fomrats of data. Oracle has come up with one solution which can host or process variety of data of an organization called Converged Database. Hence, no more looking for many tools for hosting or consolidation of variety data. For stunning data visualization fetching converged database, Oracle Analytics Server is frontline tool. Let us see how one can create stunning data visualizations to bring up the actionable insights from converged database using Oracle Analytics Server.
Oracle Analytics Server has rich collection of data visualizations and capability to connect various data sources. Converged database has greater advantage of hosting variety of data types.
## Components of workshop
Mainly two components are explored in this workshop along with few features of the tool.
- Converged Database
- Variety of data - Relational, XML, JSON
- Oracle Analytics Server
- Database Connectivity
- Data set creation
- Data Visualization
- Augmented Analytics - Explain and Forecast features
- Predictive Analytics - Machine Learning alogrithm
## Labs briefing
This workshop Labs are intended for an audience with little or no previous experience on how to use augemented analytics feature of Oracle Analytics Server using variety of data and data visualizations.
Post lab session, you will quickly gain an understanding on using Oracle Analytics Server which can connect to Converged Database for creating valuable insights from variety of data.
## Before You Begin
To complete this workshop, you will use a preconfigured OAS images available in Oracle's Cloud Marketplace to build your compute instance. This image comes pre-installed with all the information you need to create your environment.
## Acknowledgements
- **Authors** - Sudip Bandyopadhyay, Vishwanath Venkatachalaiah
- **Contributors** - Jyotsana Rawat, Satya Pranavi Manthena, Kowshik Nittala
- **Team** - North America Analytics Specialists
- **Last Updated By** - Vishwanath Venkatachalaiah
## See an issue?
Please submit feedback using this [form](https://apexapps.oracle.com/pls/apex/f?p=133:1:::::P1_FEEDBACK:1). Please include the *workshop name*, *lab* and *step* in your request. If you don't see the workshop name listed, please enter it manually. If you would like us to follow up with you, enter your email in the *Feedback Comments* section.
| {
"pile_set_name": "Github"
} |
using System;
using System.Windows.Input;
namespace F1InXAML
{
public class Command : ICommand
{
private readonly Action<object> _execute;
private readonly Func<object, bool> _canExecute;
public Command(Action<object> execute) : this(execute, null)
{
}
public Command(Action<object> execute, Func<object, bool> canExecute)
{
if (execute == null) throw new ArgumentNullException(nameof(execute));
_execute = execute;
_canExecute = canExecute ?? (x => true);
}
public bool CanExecute(object parameter)
{
return _canExecute(parameter);
}
public void Execute(object parameter)
{
_execute(parameter);
}
public event EventHandler CanExecuteChanged
{
add
{
CommandManager.RequerySuggested += value;
}
remove
{
CommandManager.RequerySuggested -= value;
}
}
public void Refresh()
{
CommandManager.InvalidateRequerySuggested();
}
}
} | {
"pile_set_name": "Github"
} |
# Soar Performance Graphs
Some performance statistics are calculated automatically using the Factorization Stress Tests. You can see performance on a commit-by-commit basis either in [Performance.md](https://github.com/SoarGroup/Soar/blob/development/Performance.md) or [here](http://soar-jenkins.eecs.umich.edu/Performance/). The raw data used to generate the graphs for each build can be found [here](http://soar-jenkins.eecs.umich.edu/Performance/).
Disclaimer: These are worst case tests. Average performance is probably much higher. In addition, these show that even in worst case, Soar beats its goal of 50 msec reactivity (in these tests, the max is ~30msec per decision).
[](http://soar-jenkins.eecs.umich.edu/Performance/)
[](http://soar-jenkins.eecs.umich.edu/Performance/)
| {
"pile_set_name": "Github"
} |
oa.sgit.edu.cn
www.sgit.edu.cn
mail.sgit.edu.cn
zb.sgit.edu.cn
zs.sgit.edu.cn
sky.sgit.edu.cn
sgcr.sgit.edu.cn
| {
"pile_set_name": "Github"
} |
#!/bin/bash
HOME=$(pwd)
echo "Compiling cuda kernels..."
cd $HOME/spn/src
rm libspn_kernel.cu.o
nvcc -c -o libspn_kernel.cu.o libspn_kernel.cu -x cu -Xcompiler -fPIC -arch=sm_35
echo "Installing extension..."
cd $HOME
python setup.py clean && python setup.py install
| {
"pile_set_name": "Github"
} |
{
"@type" : "gx:ZoneOffset",
"@value" : "+03:06:09"
} | {
"pile_set_name": "Github"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.