text
large_stringlengths
384
2.05k
rank_avg
float64
1
4.19k
rank_max
float64
1
8.21k
rank_min
float64
1
5.03k
rank_median
float64
1
4.21k
rank_by_avgsim
float64
1
4.19k
avgsim_to_github
float32
0.77
0.85
dataset
large_stringclasses
1 value
55) DEFAULT NULL COMMENT '范围值', `fieldValue` text, `fieldTips` varchar(255) DEFAULT NULL COMMENT '字段提示', `fieldSort` int(11) DEFAULT '0' COMMENT '字段排序', PRIMARY KEY (`configId`), KEY `parentId` (`parentId`) ) ENGINE=MyISAM AUTO_INCREMENT=62 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of wst_sys_configs -- ---------------------------- INSERT INTO `wst_sys_configs` VALUES ('1', '0', '商城名称', 'mallName', 'text', null, '', 'WSTMall开源商城', null, '1'), ('2', '0', '商城标题', 'mallTitle', 'text', null, null, 'WSTMall开源商城', null, '2'), ('3', '0', '商城描述', 'mallDesc', 'text', null, null, 'WSTMall开源商城,本地O2O商城,多商户,PHP多用户开源商城,O2O开源商城', null, '3'), ('4', '0', '商城关键字', 'mallKeywords', 'text', null, null, 'WSTMall开源商城,本地O2O商城,多商户,PHP多用户开源商城,O2O开源商城', '  以,号分隔', '4'), ('6', '1', '验证码显示范围', 'captcha_model', 'hidden', '管理员登录||商家加盟||商家登录||新用户注册||用户登录||留言反馈', '0,1,2,3,4,5', '0,1,2,3,4,5', null, '0'), ('7', '1', '验证码个数', 'captcha_len', 'hidden', null, null, '4', null, '0'), ('8', '1', '验证码宽度', 'captcha_width', 'hidden', null, null, '85', null, '0'), ('9', '1', '验证码高度', 'captcha_height', 'hidden', null, null, '25', null, '0'), ('10', '1', '验证模式', 'captcha_show', 'hidden', '字母,数字,混合', '0,1,6', '0', null, '0'), ('13', '0', '商品是否需要审核', 'isGoodsVerify', 'radio', '是||否', '1,0', '0', null, '5'), ('14', '0', '访问统计', 'visitStatistics', 'textarea', null, null, '<script language="javascript" type="text/javascript" src="http://js.users.51.la/18256266.js"></script>', null, '9'), ('15', '1', 'SMTP服务器', 'mailSmtp', 'text', null, null, 'smtp.163.com', null, '1'), ('16', '1', 'SMTP端口', 'mailPort', 'text', null, null, '25', null, '2'), ('17', '1', '是否验
null
null
null
null
null
null
github_plus_top10pct_by_avg
证SMTP', 'mailAuth', 'radio', '是||否', '1,0', '1', null, '3'), ('18', '1', 'SMTP发件人邮箱', 'mailAddress', 'text', null, null, 'xxxxx@163.com', null, '4'), ('19', '1', 'SMTP登录账号', 'mailUserName', 'text', null, null, 'username', null, '5'), ('20', '1', 'SMTP登录密码', 'mailPassword', 'text', null, null, 'password', null, '6'), ('21', '1', '发件人名称', 'mailSendTitle', 'text', null, null, 'WSTMall', null, '7'), ('22', '2', '短信账号', 'smsKey', 'text', null, null, 'WSTMall', '点击<a target=\'_blank\' href=\'http://www.smschinese.cn\'>购买</a>', '1'), ('23', '2', '短信密码', 'smsPass', 'text', null, null, 'WSTMall', null, '2'), ('24', '2', '号码每日发送数', 'smsLimit', 'text', null, null, '20', '避免恶意浪费短信的行为', '3'), ('26', '0', '授权码', 'mallLicense', 'hidden', null, null, null, null, '0'), ('27', '0', '商城Logo', 'mallLogo', 'upload', null, null, 'Apps/Home/View/default/images/logo.png', '(建议为240x132)<br/>', '6'), ('28', '0', '默认图片', 'goodsImg', 'upload', null, null, 'Apps/Home/View/default/images/item-pic.jpg', '', '7'), ('29', '0', '底部设置', 'mallFooter', 'textarea', null, null, 'CROPYRIGHT 2013-2015 广州商淘信息科技有限公司 版权所有 电话:020-85289921&lt;br/&gt;公司邮箱:gzshangtao@163.com 客服QQ:707563272 粤ICP备13014375号&lt;br/&gt;我们愿与更多中小企业一起努力,一起成功 We Success together', null, '8'), ('30', '0', '联系电话', 'phoneNo', 'text', null, null, '020-85289921', null, '10'), ('31', '0', 'QQ', 'qqNo', 'text', null, null, '707563272', null, '11'), ('32', '0', '默认城市', 'defaultCity', 'other', null, null, '440100', null, '5'), ('33', '0', '热搜索词', 'hotSearchs', 'text', null, null, 'WSTMall,O2O开源商城', '以,号分隔', '12'), ('34', '2', '开启短信发送验证码', 'smsVerfy', 'radio', '是||否', '1,0', '0', '', '4'), ('36', '2', '开启手机验证', 'phoneVerfy', 'radio', '是||否', '1,0', '0', '', '5'), ('37', '0', '注册禁�
null
null
null
null
null
null
github_plus_top10pct_by_avg
��关键字', 'limitAccountKeys', 'textarea', null, null, 'admin,system', null, '13'), ('38', '3', '结算金额设置', 'settlementStartMoney', 'text', null, null, '', '(结算金额少于该金额将不能进行结算)', '6'), ('39', '3', '开启积分支付', 'isOpenScorePay', 'radio', '是||否', '1,0', '1', null, '1'), ('40', '3', '开启下单获积分', 'isOrderScore', 'radio', '是||否', '1,0', '1', null, '2'), ('41', '3', '开启评价获积分', 'isAppraisesScore', 'radio', '是||否', '1,0', '1', null, '3'), ('42', '3', '积分与金钱兑换比例', 'scoreCashRatio', 'text', '', '', '100:1', '如:100:1,即100个积分可兑换¥1', '4'), ('43', '3', '自动收货期限', 'autoReceiveDays', 'text', '', '', '10', '天', '7'), ('44', '3', '自动评价期限', 'autoAppraiseDays', 'text', '', '', '7', '天', '8'), ('45', '3', '订单佣金比例', 'poundageRate', 'text', '', '', '1', '%', '5'), ('46', '4', '开启QQ登录', 'isOpenQQLogin', 'radio', '是||否', '1,0', '0', null, '1'), ('47', '4', 'QQ APP ID', 'qqAppId', 'text', '', '', '', '', '2'), ('48', '4', 'QQ APP KEY', 'qqAppKey', 'text', '', '', '', '', '3'), ('49', '4', '开启微信登录', 'isOpenWxLogin', 'radio', '是||否', '1,0', '0', null, '4'), ('50', '4', '微信 APP ID', 'wxAppId', 'text', '', '', '', '', '5'), ('51', '4', '微信 APP KEY', 'wxAppKey', 'text', '', '', '', '', '6'), ('52', '5', '开启微信版', 'isOpenWeiXin', 'radio', '是||否', '1,0', '0', '', '1'), ('53', '5', '微信 APP ID', 'WeiXinAppId', 'text', '', '', '', '', '2'), ('54', '5', '微信 APP KEY', 'WeiXinAppKey', 'text', '', '', '', '', '3'), ('55', '5', '微信验证代码', 'WeiXinAppCode', 'text', '', '', '', '', '4'), ('56', '6', '是否开启分销', 'isDistribut', 'radio', '开||关', '1,0', '0', '注:请确保已开启在线支付', '0'), ('57', '6', '成为分销商条件', 'distributDeal', 'radio', '直接成为分销商||购买商品后成为分销商', '1,2', '1', null, '0'), ('58', '6', '商品分享标题', 'goodsShareTitle', 'text', ''
null
null
null
null
null
null
github_plus_top10pct_by_avg
, '', 'WSTMall 商城', null, '0'), ('59', '6', '店铺分享标题', 'shopShareTitle', 'text', '', '', 'WSTMall 商城', null, '0'), ('60', '6', '商城分享标题', 'mallShareTitle', 'text', '', '', 'WSTMall 商城', null, '0'), ('61', '3', '最少提现金额', 'cashStartMoney', 'text', '', '', '1000', '(提现金额少于该金额将不能提现)', '0'), ('62', '0', '高德地图key', 'cashStartMoney', 'text', '', '', '', '', '15'); /* * ------------------------------------------------------------- * * Module: sem_init.c * * Purpose: * Semaphores aren't actually part of PThreads. * They are defined by the POSIX Standard: * * POSIX 1003.1-2001 * * ------------------------------------------------------------- * * -------------------------------------------------------------------------- * * Pthreads-win32 - POSIX Threads Library for Win32 * Copyright(C) 1998 John E. Bossom * Copyright(C) 1999,2003 Pthreads-win32 contributors * * Contact Email: rpj@callisto.canberra.edu.au * * The current list of contributors is contained * in the file CONTRIBUTORS included with the source * code distribution. The list can also be seen at the * following World Wide Web location: * http://sources.redhat.com/pthreads-win32/contributors.html * * 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 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. * * You should have received a copy of the GNU Lesser General Public * License along with this library in the file COPYING.LIB; * if not, write t
null
null
null
null
null
null
github_plus_top10pct_by_avg
o the Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifndef _UWIN # include <process.h> #endif #include "pthread.h" #include "semaphore.h" #include "implement.h" int sem_init (sem_t * sem, int pshared, unsigned int value) /* * ------------------------------------------------------ * DOCPUBLIC * This function initializes a semaphore. The * initial value of the semaphore is 'value' * * PARAMETERS * sem * pointer to an instance of sem_t * * pshared * if zero, this semaphore may only be shared between * threads in the same process. * if nonzero, the semaphore can be shared between * processes * * value * initial value of the semaphore counter * * DESCRIPTION * This function initializes a semaphore. The * initial value of the semaphore is set to 'value'. * * RESULTS * 0 successfully created semaphore, * -1 failed, error in errno * ERRNO * EINVAL 'sem' is not a valid semaphore, * ENOSPC a required resource has been exhausted, * ENOSYS semaphores are not supported, * EPERM the process lacks appropriate privilege * * ------------------------------------------------------ */ { int result = 0; sem_t s = NULL; if (pshared != 0) { /* * Creating a semaphore that can be shared between * processes */ result = EPERM; } else { s = (sem_t) calloc (1, sizeof (*s)); if (NULL == s) { result = ENOMEM; } #ifdef NEED_SEM else { s->value = value; s->event = CreateEvent (NULL, PTW32_FALSE, /* manual reset */ PTW32_FALSE, /* initial state */ NULL); if (0 == s->event) { result = ENOSPC; } else
null
null
null
null
null
null
github_plus_top10pct_by_avg
{ if (value != 0) { SetEvent(s->event); } InitializeCriticalSection(&s->sem_lock_cs); } } #else /* NEED_SEM */ s->sem = CreateSemaphore (NULL, /* Always NULL */ (long) value, /* Initial value */ (long) _POSIX_SEM_VALUE_MAX, /* Maximum value */ NULL); /* Name */ if (0 == s->sem) { result = ENOSPC; } #endif /* NEED_SEM */ } if (result != 0) { errno = result; return -1; } *sem = s; return 0; } /* sem_init */ var overload_copy = require("overload_copy"); f = new overload_copy.Foo(); g = new overload_copy.Foo(f); /*============================================================================= Copyright (c) 2001-2011 Joel de Guzman 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(FUSION_SEQUENCE_CLASS_SET_10022005_0607) #define FUSION_SEQUENCE_CLASS_SET_10022005_0607 #include <boost/fusion/support/config.hpp> #include <boost/fusion/container/set/limits.hpp> #include <boost/fusion/container/set/set.hpp> #include <boost/fusion/container/set/set_fwd.hpp> #include <boost/fusion/container/set/convert.hpp> #endif // Protocol Buffers for Go with Gadgets // // Copyright (c) 2016, The GoGo Authors. All rights reserved. // http://github.com/gogo/protobuf // // 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 // distri
null
null
null
null
null
null
github_plus_top10pct_by_avg
bution. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. package types import ( math_rand "math/rand" "testing" "time" "github.com/gogo/protobuf/jsonpb" "github.com/gogo/protobuf/proto" ) func TestFullCircleProtoToStd(t *testing.T) { seed := time.Now().UnixNano() popr := math_rand.New(math_rand.NewSource(seed)) protoMsg := NewPopulatedProtoTypes(popr, true) protoData, err := proto.Marshal(protoMsg) if err != nil { t.Fatal(err) } stdMsg := &StdTypes{} if err2 := proto.Unmarshal(protoData, stdMsg); err2 != nil { t.Fatal(err) } stdData, err := proto.Marshal(stdMsg) if err != nil { t.Fatal(err) } protoMsgOut := &ProtoTypes{} if err3 := proto.Unmarshal(stdData, protoMsgOut); err3 != nil { t.Fatal(err) } if !protoMsg.Equal(protoMsgOut) { t.Fatalf("want %#v got %#v", protoMsg, protoMsgOut) } } func TestJsonFullCircleProtoToStd(t *testing.T) { seed := time.Now().UnixNano() popr := math_rand.New(math_rand.NewSource(seed)) protoMsg := NewPopulatedProtoTypes(popr, true) j := &jsonpb.Marshaler{} protoData, err := j.MarshalToString(protoMsg) if err != nil { t.Fatal(err) } stdMsg := &StdTypes{} if err2 := jsonpb.UnmarshalString(protoData, stdMsg); err2 != nil { t.Fatal(err) } stdData, err := j.MarshalToString(stdMsg) if err != nil { t.Fatal(err)
null
null
null
null
null
null
github_plus_top10pct_by_avg
} protoMsgOut := &ProtoTypes{} if err3 := jsonpb.UnmarshalString(stdData, protoMsgOut); err3 != nil { t.Fatal(err) } if !protoMsg.Equal(protoMsgOut) { t.Fatalf("want %#v got %#v", protoMsg, protoMsgOut) } } func TestFullCircleRepProtoToStd(t *testing.T) { seed := time.Now().UnixNano() popr := math_rand.New(math_rand.NewSource(seed)) protoMsg := NewPopulatedRepProtoTypes(popr, true) protoData, err := proto.Marshal(protoMsg) if err != nil { t.Fatal(err) } stdMsg := &RepStdTypes{} if err2 := proto.Unmarshal(protoData, stdMsg); err2 != nil { t.Fatal(err) } stdData, err := proto.Marshal(stdMsg) if err != nil { t.Fatal(err) } protoMsgOut := &RepProtoTypes{} if err3 := proto.Unmarshal(stdData, protoMsgOut); err3 != nil { t.Fatal(err) } if !protoMsg.Equal(protoMsgOut) { t.Fatalf("want %#v got %#v", protoMsg, protoMsgOut) } } func TestJsonFullCircleRepProtoToStd(t *testing.T) { seed := time.Now().UnixNano() popr := math_rand.New(math_rand.NewSource(seed)) protoMsg := NewPopulatedRepProtoTypes(popr, true) j := &jsonpb.Marshaler{} protoData, err := j.MarshalToString(protoMsg) if err != nil { t.Fatal(err) } stdMsg := &RepStdTypes{} if err2 := jsonpb.UnmarshalString(protoData, stdMsg); err2 != nil { t.Fatal(err) } stdData, err := j.MarshalToString(stdMsg) if err != nil { t.Fatal(err) } protoMsgOut := &RepProtoTypes{} if err3 := jsonpb.UnmarshalString(stdData, protoMsgOut); err3 != nil { t.Fatal(err) } if !protoMsg.Equal(protoMsgOut) { t.Fatalf("want %#v got %#v", protoMsg, protoMsgOut) } } func TestFullCircleMapProtoToStd(t *testing.T) { seed := time.Now().UnixNano() popr := math_rand.New(math_rand.NewSource(seed)) protoMsg := NewPopulatedMapProtoTypes(popr, true) protoData, err := proto.Marshal(protoMsg) if err != nil { t.Fatal(err) } stdMsg := &MapStdTypes{} if err2 := proto.Unmarshal(protoData, stdMsg); err2 != nil { t.Fatal(err) } stdData, err := proto.Marshal(stdMsg) if err != nil { t.Fatal(err) } protoMsgOut := &MapProtoTypes{} if e
null
null
null
null
null
null
github_plus_top10pct_by_avg
rr3 := proto.Unmarshal(stdData, protoMsgOut); err3 != nil { t.Fatal(err) } if !protoMsg.Equal(protoMsgOut) { t.Fatalf("want %#v got %#v", protoMsg, protoMsgOut) } } func TestJsonFullCircleMapProtoToStd(t *testing.T) { seed := time.Now().UnixNano() popr := math_rand.New(math_rand.NewSource(seed)) protoMsg := NewPopulatedMapProtoTypes(popr, true) j := &jsonpb.Marshaler{} protoData, err := j.MarshalToString(protoMsg) if err != nil { t.Fatal(err) } stdMsg := &MapStdTypes{} if err2 := jsonpb.UnmarshalString(protoData, stdMsg); err2 != nil { t.Fatal(err) } stdData, err := j.MarshalToString(stdMsg) if err != nil { t.Fatal(err) } protoMsgOut := &MapProtoTypes{} if err3 := jsonpb.UnmarshalString(stdData, protoMsgOut); err3 != nil { t.Fatal(err) } if !protoMsg.Equal(protoMsgOut) { t.Fatalf("want %#v got %#v", protoMsg, protoMsgOut) } } func TestFullCircleOneofProtoToStd(t *testing.T) { seed := time.Now().UnixNano() popr := math_rand.New(math_rand.NewSource(seed)) protoMsg := NewPopulatedOneofProtoTypes(popr, true) protoData, err := proto.Marshal(protoMsg) if err != nil { t.Fatal(err) } stdMsg := &OneofStdTypes{} if err2 := proto.Unmarshal(protoData, stdMsg); err2 != nil { t.Fatal(err) } stdData, err := proto.Marshal(stdMsg) if err != nil { t.Fatal(err) } protoMsgOut := &OneofProtoTypes{} if err3 := proto.Unmarshal(stdData, protoMsgOut); err3 != nil { t.Fatal(err) } if !protoMsg.Equal(protoMsgOut) { t.Fatalf("want %#v got %#v", protoMsg, protoMsgOut) } } func TestJsonFullCircleOneofProtoToStd(t *testing.T) { seed := time.Now().UnixNano() popr := math_rand.New(math_rand.NewSource(seed)) protoMsg := NewPopulatedOneofProtoTypes(popr, true) j := &jsonpb.Marshaler{} protoData, err := j.MarshalToString(protoMsg) if err != nil { t.Fatal(err) } stdMsg := &OneofStdTypes{} if err2 := jsonpb.UnmarshalString(protoData, stdMsg); err2 != nil { t.Fatal(err) } stdData, err := j.MarshalToString(stdMsg) if err != nil { t.Fatal(err) } protoMsgOut := &OneofPro
null
null
null
null
null
null
github_plus_top10pct_by_avg
toTypes{} if err3 := jsonpb.UnmarshalString(stdData, protoMsgOut); err3 != nil { t.Fatal(err) } if !protoMsg.Equal(protoMsgOut) { t.Fatalf("want %#v got %#v", protoMsg, protoMsgOut) } } <Type Name="GenericBase&lt;U&gt;+NestedCollection" FullName="Mono.DocTest.Generic.GenericBase&lt;U&gt;+NestedCollection"> <TypeSignature Language="C#" Value="public class GenericBase&lt;U&gt;.NestedCollection" /> <TypeSignature Language="ILAsm" Value=".class nested public auto ansi beforefieldinit GenericBase`1/NestedCollection&lt;U&gt; extends System.Object" /> <AssemblyInfo> <AssemblyName>DocTest</AssemblyName> <AssemblyVersion>0.0.0.0</AssemblyVersion> </AssemblyInfo> <TypeParameters> <TypeParameter Name="U" /> </TypeParameters> <Base> <BaseTypeName>System.Object</BaseTypeName> </Base> <Interfaces /> <Docs> <summary>To be added.</summary> <remarks>T:Mono.DocTest.Generic.GenericBase`1.NestedCollection</remarks> </Docs> <Members> <Member MemberName=".ctor"> <MemberSignature Language="C#" Value="public NestedCollection ();" /> <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" /> <MemberType>Constructor</MemberType> <AssemblyInfo> <AssemblyVersion>0.0.0.0</AssemblyVersion> </AssemblyInfo> <Parameters /> <Docs> <summary>To be added.</summary> <remarks>To be added.</remarks> </Docs> </Member> </Members> </Type> <HTML> <HEAD> <meta charset="UTF-8"> <title>EasyUpiPayment.Builder.setTransactionId - EasyUpiPayment</title> <link href="../../../../style.css" rel="stylesheet"> </HEAD> <BODY> <a href="../../../index.html">EasyUpiPayment</a>&nbsp;/&nbsp;<a href="../../index.html">com.shreyaspatil.easyupipayment</a>&nbsp;/&nbsp;<a href="../index.html">EasyUpiPayment</a>&nbsp;/&nbsp;<a href="index.html">Builder</a>&nbsp;/&nbsp;<a href="./set-transaction-id.html">setTransactionId</a><br/> <br/> <h1>setT
null
null
null
null
null
null
github_plus_top10pct_by_avg
ransactionId</h1> <a name="com.shreyaspatil.easyupipayment.EasyUpiPayment.Builder$setTransactionId(kotlin.String)"></a> <code><span class="keyword">fun </span><span class="identifier">setTransactionId</span><span class="symbol">(</span><span class="identifier" id="com.shreyaspatil.easyupipayment.EasyUpiPayment.Builder$setTransactionId(kotlin.String)/id">id</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Builder</span></code> <p>Sets the Transaction ID. This field is used in Merchant Payments generated by PSPs.</p> <h3>Parameters</h3> <p><a name="id"></a> <code>id</code> - field is used in Merchant Payments generated by PSPs.</p> <p><strong>Return</strong><br/> this, for chaining.</p> </BODY> </HTML> // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Jun 9 2015 22:53:21). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2014 by Steve Nygard. // #import "TIconOrGalleryCollectionView.h" @interface TGalleryCollectionView : TIconOrGalleryCollectionView { } - (id)iconViewForNode:(const struct TFENode *)arg1; - (id)iconViewForIndexPath:(id)arg1; - (BOOL)isFlipped; @end # Bioinformatics for Big Omics Data: Using RSEM, a hands-on example Raphael Gottardo February 17, 2015 ## Overview This short presentation will take you through a short example of RNA quantification using RSEM. You will need to have the following software installed on your machine (Brian should have those setup on the server): - Bowtie2 (http://bowtie-bio.sourceforge.net/bowtie2/index.shtml) - RSEM (https://github.com/bli25wisc/RSEM) - sra toolkit for converting sra files to fastq files (http://www.ncbi.nlm.nih.gov/books/NBK158900/) - Curl for getting fa, gtf, and isoforms files from Dropbox (http://curl.haxx.se/) - aspera
null
null
null
null
null
null
github_plus_top10pct_by_avg
connect for downloading files from the SRA db (optional) (http://downloads.asperasoft.com/connect2/) - GNU parallel (optional) http://www.gnu.org/software/parallel/ ## Setup environment We first prepare the directory structure, these directory are created only if they don't exist, as follows, ```bash mkdir -p RSEM_test/{GEO,SRA,FASTQ,RSEM,Reference_Genome} ``` ```r # load libraries library(data.table) library(reshape2) library(GEOquery) library(SRAdb) ``` ```r gd <- getGEO("GSE45735", destdir = "RSEM_test/GEO/") ``` ``` ## ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE45nnn/GSE45735/matrix/ ## Found 1 file(s) ## GSE45735_series_matrix.txt.gz ## Using locally cached version: RSEM_test/GEO//GSE45735_series_matrix.txt.gz ## Using locally cached version of GPL10999 found here: ## RSEM_test/GEO//GPL10999.soft ``` ```r pd <- pData(gd[[1]]) ``` ```r if(!file.exists('RSEM_test/SRAmetadb.sqlite')) { sqlfile <- getSRAdbFile(destdir = "RSEM_test/") } sra_con <- dbConnect(SQLite(),'RSEM_test/SRAmetadb.sqlite') sra_tables <- dbListTables(sra_con) ``` ## Download SRA files We now check whether SRA files have been downloaded already, and download the files if they haven't been dowloaded yet SRA files have been downloaded: TRUE ```r # Let's just use the first 2 files as an exercise pd_small <- pd[1:2,] SRX_number <- rep(NA, nrow(pd_small)) ``` ```r # Find ascp utility and SSH key for Aspera Connect ascp <- '/usr/local/bin/ascp' sshkey <- '/etc/aspera/asperaweb_id_dsa.openssh' if(! (file.exists(ascp) & (file.exists(sshkey)))) { switch(Sys.info()[['sysname']], Linux = { asperahome <- '~/.aspera/connect/' ascp <- paste0(asperahome, 'bin/ascp') sshkey <- paste0(asperahome, 'etc/asperaweb_id_dsa.openssh') }, Darwin = { asperahome <- '~/Applications/Aspera\\ Connect.app/Contents/Resources/' ascp <- paste0(asperahome, 'ascp') sshkey <- paste0(asperahome, 'asperaweb_id_dsa.openssh') } ) } for(i in 1:nrow(
null
null
null
null
null
null
github_plus_top10pct_by_avg
pd_small)) { gd <- getGEO(pd_small$geo_accession[i], destdir="RSEM_test/GEO/") SRX_number[i] <- gsub(".*=SRX", "SRX", gd@header$relation[1]) # Convert to aspera address run_accession <- listSRAfile(SRX_number[i], sra_con, fileType = "sra" )$run aspera_url <- paste0("anonftp@ftp.ncbi.nlm.nih.gov:/sra/sra-instant/reads/ByRun/sra", "/", substr(run_accession,1,3), "/", substr(run_accession,1,6), "/", run_accession, "/", run_accession, ".sra") system(paste0(ascp, ' -i ', sshkey ,' -k 1 -T -l200m ', aspera_url, " RSEM_test/SRA")) } ``` ```r ## Add the SRX_number information to the pd_small object pd_small$srx <- SRX_number ``` ## Convert SRA files to FASTQ files We now check whether SRA files have been converted already, and convert them otherwise SRA files are converted: TRUE ```bash ### Convert to fastq in parallel parallel -j 2 fastq-dump {} -O RSEM_test/FASTQ/ ::: RSEM_test/SRA/*.sra ``` ## Prepare reference genome We now prepare our reference genome if it hasn't been done yet. Reference genome ready: TRUE ```bash # This is already done, but I leave it here if we need to redo it cd RSEM_test/Reference_Genome/ # Download reference genome from dropbox. [ -f 'hg19.fa' ] || curl -L -o 'hg19.fa' 'https://www.dropbox.com/sh/p4cosmsqwtmpce7/AAAP5PQh60sy83GF8i5lFOw0a/hg19.fa?dl=1' [ -f 'UCSC.gtf' ] || curl -L -o 'UCSC.gtf' 'https://www.dropbox.com/sh/p4cosmsqwtmpce7/AACGDebvGSwK-EFsPa-9f5qEa/UCSC.gtf?dl=1' [ -f 'knownIsoforms' ] || curl -L -o 'knownIsoforms' 'https://www.dropbox.com/sh/p4cosmsqwtmpce7/AAAfeTr5yKsRmnHd6XW-XhZUa/knownIsoforms?dl=1' # # Alternatively, to download the input files from UCSC, use this script instead: # ../../using_rsem_prep_input.sh rsem-prepare-reference --gtf UCSC.gtf --transcript-to-gene-map knownIsoforms --bowtie2 hg19.fa hg19 ``` ## Align FASTQ files to reference genome using RSEM We now check whether RSEM results exists already, and compute them otherwise RSEM results are recomputed: TRUE ```bash # Run in this directory: cd RS
null
null
null
null
null
null
github_plus_top10pct_by_avg
EM_test/RSEM parallel -j 2 rsem-calculate-expression --bowtie2 -p 4 {} ../Reference_Genome/hg19 {/.} ::: ../FASTQ/*.fastq ``` We can now put all the RSEM counts/TPM results in one matrix, if it hasn't been done yet. ```r rsem_files <- list.files("RSEM_test/RSEM/", pattern="genes.results", full.names = TRUE) # Read all files and create a list of data.tables rsem_list <- lapply(rsem_files, function(x, ...){ y<-fread(x, drop=c("length", "effective_length", "FPKM")); y$sample_name <- gsub(".genes.results", "", basename(x)); return(y);}) # Bind all the data.tables to create a long data.table rsem_data_long <- rbindlist(rsem_list) # Rename a column, so that it's a bit R friendly setnames(rsem_data_long, "transcript_id(s)", "transcript_ids") # Reshape the long data.table to create a matrix # Assume that missing entries would have a TPM value of 0 rsem_tpm_matrix <- dcast.data.table(rsem_data_long, gene_id+transcript_ids~sample_name, value.var = "TPM", fill=0) rsem_count_matrix <- dcast.data.table(rsem_data_long, gene_id+transcript_ids~sample_name, value.var = "expected_count", fill=0) # Keep track of the gene_id - transcript mapping rsem_txs_table <- rsem_tpm_matrix[, c("gene_id","transcript_ids"), with=FALSE] #save(rsem_txs_table, file="RSEM_test/RSEM/rsem_txs_table.Rda") # Remove the transcript column (we create an annotation table in the next chunk) rsem_tpm_matrix <- rsem_tpm_matrix[, transcript_ids:=NULL][order(gene_id)] rsem_count_matrix <- rsem_count_matrix[, transcript_ids:=NULL][order(gene_id)] # Write to disc write.csv(rsem_tpm_matrix, file="RSEM_test/RSEM/rsem_tpm_matrix.csv", row.names=FALSE) write.csv(rsem_count_matrix, file="RSEM_test/RSEM/rsem_count_matrix.csv", row.names=FALSE) ``` ### Get sample metadata ```r # Write the pdata data write.csv(pd_small, file="RSEM_test/RSEM/rsem_pdata.csv", row.names=FALSE) ``` ## Get transcript annotation Get feature annotations from BioC and create a feature annotation set file. ```r # Install TxDb packages if you don't already have it. t
null
null
null
null
null
null
github_plus_top10pct_by_avg
xdbpkg <- "TxDb.Hsapiens.UCSC.hg19.knownGene" require(txdbpkg, character.only=TRUE) || { source("http://bioconductor.org/biocLite.R") biocLite(txdbpkg, suppressUpdates=TRUE, ask=FALSE) library(txdbpkg, character.only=TRUE) } ``` ``` ## [1] TRUE ``` ```r library(annotate) library(org.Hs.eg.db) txdb <- TxDb.Hsapiens.UCSC.hg19.knownGene # create a table with one transcript per line #load("RSEM_test/RSEM/rsem_txs_table.Rda") tx_to_gid <- rsem_txs_table[,list(transcript_id=strsplit(as.character(transcript_ids),",")[[1]]),by="gene_id"] # map the transcripts to entrez gene ids tx_to_eid <- data.table(select(txdb, keys = tx_to_gid[,transcript_id], columns="GENEID", keytype="TXNAME")) setnames(tx_to_eid, c("TXNAME", "GENEID"), c("transcript_id", "entrez_id")) # Add gene symbol tx_to_eid[!is.na(entrez_id),gene_symbol:=getSYMBOL(tx_to_eid[!is.na(entrez_id),entrez_id], data='org.Hs.eg')] # merge all to map information to RSEM gene_ids tx_table <- merge(tx_to_gid, tx_to_eid, by="transcript_id") tx_table_reduced <- tx_table[,list(entrez_id=paste(unique(entrez_id),collapse=","), transcript_id=paste(unique(transcript_id),collapse=","), gene_symbol=paste(unique(gene_symbol),collapse=",")),by="gene_id"] # Write to disc and order by gene_id write.csv(tx_table_reduced[order(gene_id)], file="RSEM_test/RSEM/rsem_fdata.csv", row.names=FALSE) ``` // German language (function($) { elRTE.prototype.i18Messages.de = { 'Editor' : 'Editor', 'Source' : 'Quellcode', // Panel Name 'Copy/Pase' : 'Kopieren/Einfügen', 'Undo/Redo' : 'Rückgängig/Wiederherstellen', 'Text styles' : 'Textstile', 'Colors' : 'Farbe', 'Alignment' : 'Alignment', 'Indent/Outdent' : 'Einrücken / Ausrücken', 'Text format' : 'Format', 'Lists' : 'Listen', 'Misc elements' : 'Sonstige elemente', 'Links' : 'Link', 'Images' : 'Bild', 'Media' : 'Media datei', 'Tables' : 'Tabelle', 'File manager (elFinder)' : 'Datei-Manager (elFinder)', // button names 'Save'
null
null
null
null
null
null
github_plus_top10pct_by_avg
: 'Speichern', 'Copy' : 'Ausschneiden', 'Cut' : 'Kopieren', 'Paste' : 'Einfügen', 'Paste only text' : 'Fügen sie nur text', 'Paste formatted text' : 'Fügen sie formatierten text', 'Clean format' : 'Formatierungen entfernen', 'Undo last action' : 'Rückgängig', 'Redo previous action' : 'Wiederherstellen', 'Bold' : 'Fett', 'Italic' : 'Kursiv', 'Underline' : 'Unterstrichen', 'Strikethrough' : 'Durchgestrichen', 'Superscript' : 'Hochgestellt', 'Subscript' : 'Tiefgestellt', 'Align left' : 'Linksbündig', 'Ailgn right' : 'Rechtsbündig', 'Align center' : 'Zentriert', 'Align full' : 'Blocksatz', 'Font color' : 'Textfarbe', 'Background color' : 'Hintergrundfarbe', 'Indent' : 'Einzug erhöhen', 'Outdent' : 'Einzug verringern', 'Format' : 'Format', 'Font size' : 'Größe', 'Font' : 'Schriftart', 'Ordered list' : 'Nummerierte Liste', 'Unordered list' : 'Liste', 'Horizontal rule' : 'Horizontale Linie', 'Blockquote' : 'Zitatblock', 'Block element (DIV)' : 'Block-Element (DIV)', 'Link' : 'Link', 'Delete link' : 'Link entfernen', 'Bookmark' : 'Anker einfügen/editieren', 'Image' : 'Bild', 'Table' : 'Tabelle', 'Delete table' : 'Tabelle löschen', 'Insert row before' : 'Zeile oberhalb einfügen', 'Insert row after' : 'Zeile unterhalb einfügen', 'Delete row' : 'Zeile entfernen', 'Insert column before' : 'Spalte links davor einfügen', 'Insert column after' : 'Spalte rechts danach einfügen', 'Delete column' : 'Spalte löschen', 'Merge table cells' : 'Zellen verbinden
null
null
null
null
null
null
github_plus_top10pct_by_avg
', 'Split table cell' : 'Zelle teilen', 'Toggle display document structure' : 'Blöcke anzeigen', 'Table cell properties' : 'Zellen-Eigenschaften', 'Table properties' : 'Tabellen-Eigenschaften', 'Toggle full screen mode' : 'Editor maximieren', 'Open file manager' : 'Server', 'Non breakable space' : 'Non-breaking space', 'Stop element floating' : 'Deaktivieren Sie flow-Element Text', // dialogs 'Warning' : 'ACHTUNG', 'Properies' : 'Properies', 'Popup' : 'Pop-up', 'Advanced' : 'mehr', 'Events' : 'Veranstaltungen', 'Width' : 'Breite', 'Height' : 'Höhe', 'Left' : 'Links', 'Center' : 'Zentrum', 'Right' : 'Rechts', 'Border' : 'Rahmen', 'Background' : 'Hintergrundfarbe', 'Css class' : 'Css class', 'Css style' : 'Css style', 'No' : 'Nein', 'Title' : 'Titel', 'Script direction' : 'Richtung Schreiben', 'Language' : 'Sprache', 'Charset' : 'Charset', 'Not set' : 'nicht', 'Left to right' : 'Links nach Rechts', 'Right to left' : 'Rechts nach Links', 'In this window' : 'Gleiches Fenster (_self)', 'In new window (_blank)' : 'Neues Fenster (_blank)', 'In new parent window (_parent)' : 'Oberes Fenster (_parent)', 'In top frame (_top)' : 'Oberstes Fenster (_top)', 'URL' : '', 'Open in' : '', // copy 'This operation is disabled in your browser on security reason. Use shortcut instead.' : 'Dieser Vorgang ist in Ihrem Browser aus Sicherheitsgründen deaktiviert. Tastenkombination statt.', // format 'Heading 1' : 'Überschrift 1', 'Heading 2' : 'Überschrift 2', 'Heading 3' : 'Überschrift 3', 'Heading 4' : 'Überschrift 4', 'Heading 5' : 'Überschrift 5', 'Heading 6' : 'Überschrift 6', 'Paragraph' : 'Formatiert', 'Address' : 'Addresse', 'Preformatted' : '', // font size 'Small (8pt)' : '', 'Small (10px)' : '', 'Small (12pt)' : '', 'Normal (14pt)' : '', 'Large (18pt)' : '', 'Large (24pt)' : '', 'Large (36pt)' : '', // bookmark 'Bookmark name' : 'Anker Name', // link 'Link URL' : '(URL)', 'Target' : 'Zielseite', 'Open link in pop
null
null
null
null
null
null
github_plus_top10pct_by_avg
up window' : 'Link in einem Popup-Fenster', 'URL' : '', 'Window name' : 'Pop-up Fenster-Name', 'Window size' : 'Größe', 'Window position' : 'Position', 'Location bar' : 'Adress-Leiste', 'Menu bar' : 'Menü-Leiste', 'Toolbar' : 'Werkzeugleiste', 'Scrollbars' : 'Rollbalken', 'Status bar' : 'Statusleiste', 'Resizable' : 'Vergrößerbar', 'Depedent' : 'Abhängig (Netscape)', 'Add return false' : 'add (return false)', 'Target MIME type' : 'MIME type', 'Relationship page to target (rel)' : '', 'Relationship target to page (rev)' : '', 'Tab index' : '', 'Access key' : 'Zugriffstaste', // image 'Size' : 'Größe', 'Preview' : 'Vorschau', 'Margins' : '', 'Alt text' : 'Alt', 'Image URL' : 'URL', // table 'Spacing' : 'Abstand (spacing)', 'Padding' : 'Abstand (padding)', 'Rows' : 'Zeile', 'Columns' : 'Spalte', 'Groups' : 'Gruppen', 'Cells' : 'Zellen', 'Caption' : 'Tabellen-Eigenschaften', 'Inner borders' : 'Innere Grenzen' } })(jQuery); <?xml version="1.0" encoding="utf-8"?> <!-- /////////////////////////////////////////////////////////////////////////// // Copyright (c) 2011 Esri. 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. /////////////////////////////////////////////////////////////////////////// --> <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="100%"
null
null
null
null
null
null
github_plus_top10pct_by_avg
autoDrawBackground="false"> <fx:Script> <![CDATA[ import mx.events.CalendarLayoutChangeEvent; private function dateField_changeHandler(event:CalendarLayoutChangeEvent):void { data.defaultValue = event.newDate.time; } ]]> </fx:Script> <mx:FormItem width="100%" label="{data.label}" required="{data.required}"> <mx:DateField width="100%" change="dateField_changeHandler(event)" data="{data.defaultValue}" toolTip="{data.toolTip}"/> </mx:FormItem> </s:ItemRenderer> { "private": true, "scripts": { "test": "karma start", "build": "webpack --config webpack.conf.js" }, "devDependencies": { "babel-core": "^6.18.2", "babel-loader": "^7.1.4", "babel-preset-es2015": "^6.18.0", "jasmine-core": "^3.1.0", "jsdom": "^11.7.0", "karma-jasmine": "^1.1.1", "karma-jsdom-launcher": "^6.1.3", "karma-webpack": "^3.0.0", "karma": "^2.0.0", "webpack": "~2" } } 1 # Bitcoin URIs Represents a bitcoin payment URI. Bitcoin URI strings became the most popular way to share payment request, sometimes as a bitcoin link and others using a QR code. URI Examples: ```sh bitcoin:12A1MyfXbW6RhdRAZEqofac5jCQQjwEPBu bitcoin:12A1MyfXbW6RhdRAZEqofac5jCQQjwEPBu?amount=1.2 bitcoin:12A1MyfXbW6RhdRAZEqofac5jCQQjwEPBu?amount=1.2&message=Payment&label=Satoshi&extra=other-param ``` ## URI Validation The main use that we expect you'll have for the `URI` class in bitcore is validating and parsing bitcoin URIs. A `URI` instance exposes the address as a bitcore `Address` object and the amount in Satoshis, if present. The code for validating URIs looks like this: ```javascript var uriString = 'bitcoin:12A1MyfXbW6RhdRAZEqofac5jCQQjwEPBu?amount=1.2'; var valid = URI.isValid(uriString); var uri = new URI(uriString); console.log(uri.address.network, uri.amount); // 'livenet', 120000000 ``` ## URI Par
null
null
null
null
null
null
github_plus_top10pct_by_avg
ameters All standard parameters can be found as members of the `URI` instance. However a bitcoin URI may contain other non-standard parameters, all those can be found under the `extra` namespace. See [the official BIP21 spec](https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki) for more information. ## Create URI Another important use case for the `URI` class is creating a bitcoin URI for sharing a payment request. That can be accomplished by using a dictionary to create an instance of URI. The code for creating an URI from an Object looks like this: ```javascript var uriString = new URI({ address: '12A1MyfXbW6RhdRAZEqofac5jCQQjwEPBu', amount : 10000, // in satoshis message: 'My payment request' }); var uriString = uri.toString(); ``` package org.edx.mobile.social.microsoft import android.content.Context import android.text.TextUtils import okhttp3.Request import org.edx.mobile.http.callback.ErrorHandlingOkCallback import org.edx.mobile.http.provider.OkHttpClientProvider import org.edx.mobile.social.SocialFactory import org.edx.mobile.social.SocialLoginDelegate import org.edx.mobile.social.SocialMember import org.edx.mobile.social.SocialProvider import roboguice.RoboGuice class MicrosoftProvide : SocialProvider { override fun login(context: Context?, callback: SocialProvider.Callback<Void>?) { throw UnsupportedOperationException("Not implemented / Not supported") } override fun getUserInfo(context: Context?, socialType: SocialFactory.SOCIAL_SOURCE_TYPE?, accessToken: String?, userInfoCallback: SocialLoginDelegate.SocialUserInfoCallback?) { context?.run { val okHttpClientProvider = RoboGuice.getInjector(context).getInstance(OkHttpClientProvider::class.java) okHttpClientProvider.get().newCall(Request.Builder() .url(MS_GRAPH_URL) .get() .build()) .enqueue(object : ErrorHandlingOkCallback<MicrosoftUser
null
null
null
null
null
null
github_plus_top10pct_by_avg
Profile>( this, MicrosoftUserProfile::class.java, null) { override fun onResponse(userProfile: MicrosoftUserProfile) { var name = userProfile.fullName if (TextUtils.isEmpty(name)) { if (!TextUtils.isEmpty(userProfile.firstName)) { name = userProfile.firstName + " " } if (!TextUtils.isEmpty(userProfile.surName)) { if (TextUtils.isEmpty(name)) { name = userProfile.surName } else { name += userProfile.surName } } } userInfoCallback?.setSocialUserInfo(userProfile.email, name) } }) } } override fun getUser(callback: SocialProvider.Callback<SocialMember>?) { throw UnsupportedOperationException("Not implemented / Not supported") } override fun isLoggedIn(): Boolean { throw UnsupportedOperationException("Not implemented / Not supported") } companion object { private const val MS_GRAPH_URL = "https://graph.microsoft.com/v1.0/me" } } apiVersion: apps/v1 kind: Deployment metadata: name: event-subscriber labels: app: event-subscriber demo: dapr-apim spec: selector: matchLabels: app: event-subscriber template: metadata: labels: app: event-subscriber demo: dapr-apim annotations: dapr.io/enabled: "true" dapr.io/id: "event-subscriber" dapr.io/port: "8080" dapr.io/config: "tracing" dapr.io/log-as-json: "true" dapr.io/log-level: "debug" spec: containers: - name: service image: mchmarny/http
null
null
null
null
null
null
github_plus_top10pct_by_avg
-event-subscriber:v0.14.0 ports: - containerPort: 8080 env: - name: PORT value: "8080" - name: PUBSUB_NAME value: "demo-events" - name: TOPIC_NAME value: "messages" /* * * * Copyright 1990-2007 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version * 2 only, as published by the Free Software Foundation. * * This 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 version 2 for more details (a copy is * included at /legal/license.txt). * * 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 Sun Microsystems, Inc., 4150 Network Circle, Santa * Clara, CA 95054 or visit www.sun.com if you need additional * information or have any questions. */ package javax.microedition.io; import java.io.*; /** * This interface defines the capabilities that an input stream * connection must have. * * @version 12/17/01 (CLDC 1.1) * @since CLDC 1.0 */ public interface InputConnection extends Connection { /** * Open and return an input stream for a connection. * * @return An input stream * @exception IOException If an I/O error occurs */ public InputStream openInputStream() throws IOException; /** * Open and return a data input stream for a connection. * * @return An input stream * @exception IOException If an I/O error occurs */ public DataInputStream openDataInputStream() throws IOException; }
null
null
null
null
null
null
github_plus_top10pct_by_avg
const {ipcRenderer} = require('electron') const dragFileLink = document.getElementById('drag-file-link') dragFileLink.addEventListener('dragstart', (event) => { event.preventDefault() ipcRenderer.send('ondragstart', __filename) }) describe('Asynchronous validation', function() { before(() => { cy.loadStory(['Validation', 'Asynchronous validation', 'Field async rule']) }) it('Bypasses async validation for empty optional field with async rule', () => { cy.getField('fieldOne') .focus() .blur({ force: true }) .valid(false) .invalid(false) }) it('Rejects empty required field with unsatisfied async rule', () => { cy.getField('fieldTwo') .focus() .blur({ force: true }) .expected(false) }) it('Resolves field that satisfies async rule', () => { cy.getField('fieldOne') .typeIn('expected value') .blur({ force: true }) .wait(500) .expected() }) it('Rejects field that does not satisfy async rule', () => { cy.getField('fieldOne') .clear() .typeIn('foo') .blur({ force: true }) .wait(500) .expected(false) }) it('Cancels pending async validation on field change', () => { cy.getField('fieldFour') .typeIn('foo') .blur({ force: true }) .wait(200) .clear() .typeIn('bar') .wait(300) .should('not.have.class', 'is-invalid') .blur({ force: true }) .wait(500) .expected() }) }) # ============================================================================== # Copyright (c) 2016-2020 Proton Technologies AG (Switzerland) # Email: contact@protonvpn.com # # The MIT License (MIT) # # 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 perm
null
null
null
null
null
null
github_plus_top10pct_by_avg
it 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. # ============================================================================== client dev tun proto udp remote 173.0.77.8 80 remote 173.0.77.8 443 remote 173.0.77.8 4569 remote 173.0.77.8 1194 remote 173.0.77.8 5060 remote-random resolv-retry infinite nobind cipher AES-256-CBC auth SHA512 compress verb 3 tun-mtu 1500 tun-mtu-extra 32 mssfix 1450 persist-key persist-tun reneg-sec 0 remote-cert-tls server auth-user-pass /config/openvpn-credentials.txt pull fast-io <ca> -----BEGIN CERTIFICATE----- MIIFozCCA4ugAwIBAgIBATANBgkqhkiG9w0BAQ0FADBAMQswCQYDVQQGEwJDSDEV MBMGA1UEChMMUHJvdG9uVlBOIEFHMRowGAYDVQQDExFQcm90b25WUE4gUm9vdCBD QTAeFw0xNzAyMTUxNDM4MDBaFw0yNzAyMTUxNDM4MDBaMEAxCzAJBgNVBAYTAkNI MRUwEwYDVQQKEwxQcm90b25WUE4gQUcxGjAYBgNVBAMTEVByb3RvblZQTiBSb290 IENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAt+BsSsZg7+AuqTq7 vDbPzfygtl9f8fLJqO4amsyOXlI7pquL5IsEZhpWyJIIvYybqS4s1/T7BbvHPLVE wlrq8A5DBIXcfuXrBbKoYkmpICGc2u1KYVGOZ9A+PH9z4Tr6OXFfXRnsbZToie8t 2Xjv/dZDdUDAqeW89I/mXg3k5x08m2nfGCQDm4gCanN1r5MT7ge56z0MkY3FFGCO qRwspIEUzu1ZqGSTkG1eQiOYIrdOF5cc7n2APyvBIcfvp/W3cpTOEmEBJ7/14RnX nHo0fcx61Inx/6ZxzKkW8BMdGGQF3tF6u2M0FjVN0lLH9S0ul1TgoOS56yEJ34hr JSRTqHuar3t/xdCbKFZjyXFZFNsXVvgJu34CNLrHHTGJj9jiUfFnxWQYMo9UNUd4 a3PPG1HnbG7LAjlvj5JlJ5aqO5gshdnqb9uIQeR2CdzcCJgklwRGCyDT1pm7eoiv WV19YBd81vKulLzgPavu3kRRe83yl29It2hwQ9FMs5w6ZV/X6ciT
null
null
null
null
null
null
github_plus_top10pct_by_avg
Ko3etkX9nBD9 ZzJPsGQsBUy7CzO1jK4W01+u3ItmQS+1s4xtcFxdFY8o/q1zoqBlxpe5MQIWN6Qa lryiET74gMHE/S5WrPlsq/gehxsdgc6GDUXG4dk8vn6OUMa6wb5wRO3VXGEc67IY m4mDFTYiPvLaFOxtndlUWuCruKcCAwEAAaOBpzCBpDAMBgNVHRMEBTADAQH/MB0G A1UdDgQWBBSDkIaYhLVZTwyLNTetNB2qV0gkVDBoBgNVHSMEYTBfgBSDkIaYhLVZ TwyLNTetNB2qV0gkVKFEpEIwQDELMAkGA1UEBhMCQ0gxFTATBgNVBAoTDFByb3Rv blZQTiBBRzEaMBgGA1UEAxMRUHJvdG9uVlBOIFJvb3QgQ0GCAQEwCwYDVR0PBAQD AgEGMA0GCSqGSIb3DQEBDQUAA4ICAQCYr7LpvnfZXBCxVIVc2ea1fjxQ6vkTj0zM htFs3qfeXpMRf+g1NAh4vv1UIwLsczilMt87SjpJ25pZPyS3O+/VlI9ceZMvtGXd MGfXhTDp//zRoL1cbzSHee9tQlmEm1tKFxB0wfWd/inGRjZxpJCTQh8oc7CTziHZ ufS+Jkfpc4Rasr31fl7mHhJahF1j/ka/OOWmFbiHBNjzmNWPQInJm+0ygFqij5qs 51OEvubR8yh5Mdq4TNuWhFuTxpqoJ87VKaSOx/Aefca44Etwcj4gHb7LThidw/ky zysZiWjyrbfX/31RX7QanKiMk2RDtgZaWi/lMfsl5O+6E2lJ1vo4xv9pW8225B5X eAeXHCfjV/vrrCFqeCprNF6a3Tn/LX6VNy3jbeC+167QagBOaoDA01XPOx7Odhsb Gd7cJ5VkgyycZgLnT9zrChgwjx59JQosFEG1DsaAgHfpEl/N3YPJh68N7fwN41Cj zsk39v6iZdfuet/sP7oiP5/gLmA/CIPNhdIYxaojbLjFPkftVjVPn49RqwqzJJPR N8BOyb94yhQ7KO4F3IcLT/y/dsWitY0ZH4lCnAVV/v2YjWAWS3OWyC8BFx/Jmc3W DK/yPwECUcPgHIeXiRjHnJt0Zcm23O2Q3RphpU+1SO3XixsXpOVOYP6rJIXW9bMZ A1gTTlpi7A== -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIIFszCCA5ugAwIBAgIBBjANBgkqhkiG9w0BAQ0FADBAMQswCQYDVQQGEwJDSDEV MBMGA1UEChMMUHJvdG9uVlBOIEFHMRowGAYDVQQDExFQcm90b25WUE4gUm9vdCBD QTAeFw0xNzAyMTUxNTE3MDBaFw0yNzAyMTUxNDM4MDBaMEoxCzAJBgNVBAYTAkNI MRUwEwYDVQQKEwxQcm90b25WUE4gQUcxJDAiBgNVBAMTG1Byb3RvblZQTiBJbnRl cm1lZGlhdGUgQ0EgMTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANv3 uwQMFjYOx74taxadhczLbjCTuT73jMz09EqFNv7O7UesXfYJ6kQgYV9YyE86znP4 xbsswNUZYh+XdZUpOoP6Zu3tR/iiYiuzi6jVYrJ66G89nPqS2mm5dn8Fbb8CRWkJ ygm8AdlYkDwYNldhDUrERlQdCRDGsYYg/98dded+5pXnSG8Y/+iuLM6/YYhkUVQe Cfq1L6XguSwu8CuvJjIjjE1PptUHa3Hc3tGziVydltKynxWlqb1dJqinGKiBZvYn oiV4motpFYwhc3Wd09JLPzeobhD2IAZ2evSatikMWDingEv1EJXpI+V/E2AK3xHK Skhw+YZx99tNxCiOu3U5BFAreZR3j2YnZzX1nEv9p02IGaWzzYJPNED0zSO2w07u thSmKcxA39VTvs91lptbcV7VTxoJY0SErHIeVS3Scrnr7WvoOTuu3M3SCRqe6oI9 oJZMOdfNsceBdvG+qlpOFICoBjO53W4BK8KahzTd/PWlBRiVJ3UVv8xXwUDA+o98 34DXVAobaAHXQtM9jN
null
null
null
null
null
null
github_plus_top10pct_by_avg
obqT98FXhZktjOQEA2UORL581ZPxfKeHLRcgWJ5dmPsDBG y/L6/qW/yrm6DUDAdN5+q41+gSNEjNBjLBJQFUmDk3l6Qxiu0uEDQ98oFvGHk5US 2Kbj0OAq1RpiDjHci/536yua9rTC+cxekTM2asdXAgMBAAGjga0wgaowEgYDVR0T AQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUJbaTWcIB4t5ETvvhUy5/yQqqGjMwaAYD VR0jBGEwX4AUg5CGmIS1WU8MizU3rTQdqldIJFShRKRCMEAxCzAJBgNVBAYTAkNI MRUwEwYDVQQKEwxQcm90b25WUE4gQUcxGjAYBgNVBAMTEVByb3RvblZQTiBSb290 IENBggEBMAsGA1UdDwQEAwIBBjANBgkqhkiG9w0BAQ0FAAOCAgEAAgZ/BIVl+DcK OTVJJBy+RZ1E8os11gFaMKy12lAT1XEXDqLAnitvVyQgG5lPZKFQ2wzUR/TCrYKT SUZWdYaJIXkRWAU0aCDZ2I81T0OMpg9aS7xdxgHCGWOwwes8GhjtvQad9GJ8mUZH GyzfMaGG6fAZrgHnlOb4OIoqhBWYla6D2bpvbKgGkMo5NLAaX/7+U0HcxjjSS9vm /3XHTZU4q77pn+lhPWncajnVyMtm1mIZxMioyckR4+scyZse0mYJS6xli/7crH7j qScX7c5sWcaN4J63a3+x3uGvzOXjCyoDl9IaeqnxQpi8yc0nsWxIyDalR3uRQ9tJ 7l/eRxJZ/1Pzz2LRHSQZuqN2ZReWVNTqJ42af8cWWH0fDOEt2468GLeSm08Hvyz0 lRjn7Tf5hxOJSw4/3oGihvzuTdquJMOi62kThbp7DS3mMaZsfbmDoU3oNDv91bvL 57z8wm7yRcGEoMsUNnrOZ4SU8dG/souvJM1BDStMLprFEgUbHEY5MjSR4/PLR6j9 3NZgocfnfk80nBvNtgWVHxW019nuT93WL0/5L5g4UVm0Ay1V6pNkGZCmgNUBaRY4 2JLzyY8p48OKapR5GnedLTJXJVbdd9GUNzIzm4iVITDH3p/u1g69dITCNXTO9EO5 sGEYLNPbV49XBnVAm1tUWuoByZAjoWs= -----END CERTIFICATE----- </ca> key-direction 1 <tls-auth> # 2048 bit OpenVPN static key -----BEGIN OpenVPN Static key V1----- 6acef03f62675b4b1bbd03e53b187727 423cea742242106cb2916a8a4c829756 3d22c7e5cef430b1103c6f66eb1fc5b3 75a672f158e2e2e936c3faa48b035a6d e17beaac23b5f03b10b868d53d03521d 8ba115059da777a60cbfd7b2c9c57472 78a15b8f6e68a3ef7fd583ec9f398c8b d4735dab40cbd1e3c62a822e97489186 c30a0b48c7c38ea32ceb056d3fa5a710 e10ccc7a0ddb363b08c3d2777a3395e1 0c0b6080f56309192ab5aacd4b45f55d a61fc77af39bd81a19218a79762c3386 2df55785075f37d8c71dc8a42097ee43 344739a0dd48d03025b0450cf1fb5e8c aeb893d9a96d1f15519bb3c4dcb40ee3 16672ea16c012664f8a9f11255518deb -----END OpenVPN Static key V1----- </tls-auth> // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu %s -emit-llvm -o - | FileCheck %s --check-prefix=X86_64_LINUX // RUN: %clang_cc1 -triple i386-unknown-linux-gnu %s -emit-llvm -o - | FileCheck %s --check-prefix=X86_LINUX
null
null
null
null
null
null
github_plus_top10pct_by_avg
// RUN: %clang_cc1 -triple x86_64-pc-win32 %s -emit-llvm -o - | FileCheck %s --check-prefix=X86_64_WIN // RUN: %clang_cc1 -triple i386-pc-win32 %s -emit-llvm -o - | FileCheck %s --check-prefix=X86_WIN // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnux32 %s -emit-llvm -o - | FileCheck %s --check-prefix=X86_64_LINUX #ifdef __x86_64__ typedef __UINT64_TYPE__ uword; #else typedef __UINT32_TYPE__ uword; #endif __attribute__((interrupt)) void foo7(int *a, uword b) {} namespace S { __attribute__((interrupt)) void foo8(int *a) {} } struct St { static void foo9(int *a) __attribute__((interrupt)) {} }; // X86_64_LINUX: @llvm.used = appending global [3 x i8*] [i8* bitcast (void (i32*, i64)* @{{.*}}foo7{{.*}} to i8*), i8* bitcast (void (i32*)* @{{.*}}foo8{{.*}} to i8*), i8* bitcast (void (i32*)* @{{.*}}foo9{{.*}} to i8*)], section "llvm.metadata" // X86_64_LINUX: define x86_intrcc void @{{.*}}foo7{{.*}}(i32* %{{.+}}, i64 %{{.+}}) // X86_64_LINUX: define x86_intrcc void @{{.*}}foo8{{.*}}(i32* %{{.+}}) // X86_64_LINUX: define linkonce_odr x86_intrcc void @{{.*}}foo9{{.*}}(i32* %{{.+}}) // X86_LINUX: @llvm.used = appending global [3 x i8*] [i8* bitcast (void (i32*, i32)* @{{.*}}foo7{{.*}} to i8*), i8* bitcast (void (i32*)* @{{.*}}foo8{{.*}} to i8*), i8* bitcast (void (i32*)* @{{.*}}foo9{{.*}} to i8*)], section "llvm.metadata" // X86_LINUX: define x86_intrcc void @{{.*}}foo7{{.*}}(i32* %{{.+}}, i32 %{{.+}}) // X86_LINUX: define x86_intrcc void @{{.*}}foo8{{.*}}(i32* %{{.+}}) // X86_LINUX: define linkonce_odr x86_intrcc void @{{.*}}foo9{{.*}}(i32* %{{.+}}) // X86_64_WIN: @llvm.used = appending global [3 x i8*] [i8* bitcast (void (i32*, i64)* @{{.*}}foo7{{.*}} to i8*), i8* bitcast (void (i32*)* @{{.*}}foo8{{.*}} to i8*), i8* bitcast (void (i32*)* @{{.*}}foo9{{.*}} to i8*)], section "llvm.metadata" // X86_64_WIN: define dso_local x86_intrcc void @{{.*}}foo7{{.*}}(i32* %{{.+}}, i64 %{{.+}}) // X86_64_WIN: define dso_local x86_intrcc void @{{.*}}foo8{{.*}}(i32* %{{.+}}) // X86_64_WIN: define linkonce_odr dso_local x86_intrcc voi
null
null
null
null
null
null
github_plus_top10pct_by_avg
d @{{.*}}foo9{{.*}}(i32* %{{.+}}) // X86_WIN: @llvm.used = appending global [3 x i8*] [i8* bitcast (void (i32*, i32)* @{{.*}}foo7{{.*}} to i8*), i8* bitcast (void (i32*)* @{{.*}}foo8{{.*}} to i8*), i8* bitcast (void (i32*)* @{{.*}}foo9{{.*}} to i8*)], section "llvm.metadata" // X86_WIN: define dso_local x86_intrcc void @{{.*}}foo7{{.*}}(i32* %{{.+}}, i32 %{{.+}}) // X86_WIN: define dso_local x86_intrcc void @{{.*}}foo8{{.*}}(i32* %{{.+}}) // X86_WIN: define linkonce_odr dso_local x86_intrcc void @{{.*}}foo9{{.*}}(i32* %{{.+}}) <?xml version="1.0" encoding="UTF-8"?> <project name="rpm-macros" > <description>Macros used in the RPM creation process.</description> <!-- Macro for building client RPM's. --> <macrodef name="build-one-client-rpm" > <attribute name="rpm.dir" /> <attribute name="rpm.subfolder" /> <attribute name="build.subfolder" /> <attribute name="tarball.name" /> <attribute name="spec.file.name" /> <attribute name="init.file.name" /> <sequential> <copy file="@{rpm.dir}/@{rpm.subfolder}/@{tarball.name}" toDir="${rpm.build.home}/SOURCES" /> <copy file="${build.base}/@{spec.file.name}" toDir="${rpm.build.home}/SPECS" /> <chmod perm="+x" file="${rpm.build.home}/SPECS/@{spec.file.name}" /> <mkdir dir="${rpm.build.home}/BUILD/@{build.subfolder}/rcfiles" /> <copy file="@{init.file.name}" todir="${rpm.build.home}/BUILD/@{build.subfolder}/rcfiles" /> <rpm specFile="@{spec.file.name}" topDir="${rpm.build.home}" quiet="true" cleanBuildDir="true" removeSpec="true" removeSource="true" failOnError="true" error="${top.rpm.dir}/rpm_error.log" /> </sequential> </macrodef> <!-- Macro for building server RPM's. --> <macrodef name="build-one-server-rpm" > <attribute name="rpm.dir" /> <attribute name="rpm.subfolder" /> <attribute name="build.subfolder" /> <attribute name="tarball.name" /> <attribute name="spec.file.name" /> <attribute name="init.fi
null
null
null
null
null
null
github_plus_top10pct_by_avg
le.name" /> <attribute name="rpm.command" default="-tb" /> <sequential> <untar src="@{rpm.dir}/@{rpm.subfolder}/@{tarball.name}" dest="@{rpm.dir}/@{rpm.subfolder}" compression="gzip" /> <copy file="${build.base}/@{spec.file.name}" tofile="@{rpm.dir}/@{rpm.subfolder}/@{build.subfolder}/rpm.spec" overwrite="true" /> <mkdir dir="@{rpm.dir}/@{rpm.subfolder}/@{build.subfolder}/rcfiles" /> <copy file="@{init.file.name}" todir="@{rpm.dir}/@{rpm.subfolder}/@{build.subfolder}/rcfiles" overwrite="true" /> <copy todir="@{rpm.dir}/@{rpm.subfolder}/@{build.subfolder}" overwrite="true" > <fileset dir="@{rpm.dir}" > <include name="expect/" /> </fileset> </copy> <tar destfile="${rpm.build.home}/SOURCES/@{tarball.name}" compression="gzip" longfile="gnu" > <tarfileset dir="@{rpm.dir}/@{rpm.subfolder}" includes="@{build.subfolder}/" excludes="expect/*.*,rcfiles/*.*,**/*.sh,**/*.bat,**/bin/" /> <tarfileset dir="@{rpm.dir}/@{rpm.subfolder}" includes="@{build.subfolder}/expect/*.*,@{build.subfolder}/rcfiles/*.*,@{build.subfolder}/*.sh,@{build.subfolder}/*.bat,**/bin/" filemode="755" /> </tar> <delete quiet="true"> <dirset dir="@{rpm.dir}/@{rpm.subfolder}/@{build.subfolder}" /> <fileset file="@{rpm.dir}/@{rpm.subfolder}/@{tarball.name}" /> </delete> <rpm specFile="../SOURCES/@{tarball.name}" topDir="${rpm.build.home}" command="@{rpm.command}" quiet="true" cleanBuildDir="true" removeSpec="true" removeSource="true" failOnError="true" error="${top.rpm.dir}/rpm_error.log" /> </sequential> </macrodef> </project> /* Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wit
null
null
null
null
null
null
github_plus_top10pct_by_avg
h 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. */ // Code generated by client-gen. DO NOT EDIT. package fake import ( v1beta1 "k8s.io/client-go/kubernetes/typed/networking/v1beta1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) type FakeNetworkingV1beta1 struct { *testing.Fake } func (c *FakeNetworkingV1beta1) Ingresses(namespace string) v1beta1.IngressInterface { return &FakeIngresses{c, namespace} } // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. func (c *FakeNetworkingV1beta1) RESTClient() rest.Interface { var ret *rest.RESTClient return ret } \mycommand[optionalargument] { first mandatory } { second mandatory } after text // ASM: a very small and fast Java bytecode manipulation framework // Copyright (c) 2000-2011 INRIA, France Telecom // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // 3. Neither the name of the copyright holders nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
null
null
null
null
null
null
github_plus_top10pct_by_avg
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF // THE POSSIBILITY OF SUCH DAMAGE. package org.mvel2.asm; /** * A visitor to visit a Java annotation. The methods of this class must be called in the following * order: ( {@code visit} | {@code visitEnum} | {@code visitAnnotation} | {@code visitArray} )* * {@code visitEnd}. * * @author Eric Bruneton * @author Eugene Kuleshov */ public abstract class AnnotationVisitor { /** * The ASM API version implemented by this visitor. The value of this field must be one of {@link * Opcodes#ASM4}, {@link Opcodes#ASM5}, {@link Opcodes#ASM6} or {@link Opcodes#ASM7}. */ protected final int api; /** The annotation visitor to which this visitor must delegate method calls. May be null. */ protected AnnotationVisitor av; /** * Constructs a new {@link AnnotationVisitor}. * * @param api the ASM API version implemented by this visitor. Must be one of {@link * Opcodes#ASM4}, {@link Opcodes#ASM5}, {@link Opcodes#ASM6} or {@link Opcodes#ASM7}. */ public AnnotationVisitor(final int api) { this(api, null); } /** * Constructs a new {@link AnnotationVisitor}. * * @param api the ASM API version implemented by this visitor. Must be one of {@link * Opcodes#ASM4}, {@link Opcodes#ASM5}, {@link Opcodes#ASM6} or {@link Opcodes#ASM7}. * @param annotationVisitor the annotation visitor to which this visitor must d
null
null
null
null
null
null
github_plus_top10pct_by_avg
elegate method * calls. May be null. */ public AnnotationVisitor(final int api, final AnnotationVisitor annotationVisitor) { if (api != Opcodes.ASM6 && api != Opcodes.ASM5 && api != Opcodes.ASM4 && api != Opcodes.ASM7) { throw new IllegalArgumentException(); } this.api = api; this.av = annotationVisitor; } /** * Visits a primitive value of the annotation. * * @param name the value name. * @param value the actual value, whose type must be {@link Byte}, {@link Boolean}, {@link * Character}, {@link Short}, {@link Integer} , {@link Long}, {@link Float}, {@link Double}, * {@link String} or {@link Type} of {@link Type#OBJECT} or {@link Type#ARRAY} sort. This * value can also be an array of byte, boolean, short, char, int, long, float or double values * (this is equivalent to using {@link #visitArray} and visiting each array element in turn, * but is more convenient). */ public void visit(final String name, final Object value) { if (av != null) { av.visit(name, value); } } /** * Visits an enumeration value of the annotation. * * @param name the value name. * @param descriptor the class descriptor of the enumeration class. * @param value the actual enumeration value. */ public void visitEnum(final String name, final String descriptor, final String value) { if (av != null) { av.visitEnum(name, descriptor, value); } } /** * Visits a nested annotation value of the annotation. * * @param name the value name. * @param descriptor the class descriptor of the nested annotation class. * @return a visitor to visit the actual nested annotation value, or {@literal null} if this * visitor is not interested in visiting this nested annotation. <i>The nested annotation * value must be fully visited before calling other methods on this annotation visitor</i>. */ public AnnotationVisitor visitAnnotation(final String name, final String descriptor) { if (av
null
null
null
null
null
null
github_plus_top10pct_by_avg
!= null) { return av.visitAnnotation(name, descriptor); } return null; } /** * Visits an array value of the annotation. Note that arrays of primitive types (such as byte, * boolean, short, char, int, long, float or double) can be passed as value to {@link #visit * visit}. This is what {@link ClassReader} does. * * @param name the value name. * @return a visitor to visit the actual array value elements, or {@literal null} if this visitor * is not interested in visiting these values. The 'name' parameters passed to the methods of * this visitor are ignored. <i>All the array values must be visited before calling other * methods on this annotation visitor</i>. */ public AnnotationVisitor visitArray(final String name) { if (av != null) { return av.visitArray(name); } return null; } /** Visits the end of the annotation. */ public void visitEnd() { if (av != null) { av.visitEnd(); } } } <?php /* * This file is part of SwiftMailer. * (c) 2004-2009 Chris Corbyn * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Provides an abstract way of specifying recipients for batch sending. * * @author Chris Corbyn */ interface Swift_Mailer_RecipientIterator{ /** * Returns true only if there are more recipients to send to. * * @return bool */ public function hasNext(); /** * Returns an array where the keys are the addresses of recipients and the * values are the names. e.g. ('foo@bar' => 'Foo') or ('foo@bar' => NULL). * * @return array */ public function nextRecipient(); } <%@ Control Language="C#" CodeBehind="Boolean.ascx.cs" Inherits="DynamicDataEFCodeFirst.BooleanFilter" %> <asp:DropDownList runat="server" ID="DropDownList1" AutoPostBack="True" CssClass="DDFilter" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"> </asp:DropDownList> /* * Copyrig
null
null
null
null
null
null
github_plus_top10pct_by_avg
ht (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. 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.text; /** * SupplementaryCharacterData is an SMI-private class which was written for * RuleBasedBreakIterator and BreakDictionary. */ public final class SupplementaryCharacterData implements Cloneable { /** * A token used as a character-category value to identify ignore characters */ private static final byte IGNORE = -1; /** * An array for supplementary characters and values. * Lower one byte is used to keep a byte-value. * Upper three bytes are used to keep the first supplementary character * which has the value. The value is also valid for the following * supplementary characters until the next supplementary character in * the array <code>dataTable</code>. * For example, if the value of <code>dataTable[2]</code> is * <code>0x01000123</code> and the value
null
null
null
null
null
null
github_plus_top10pct_by_avg
of <code>dataTable[3]</code> is * <code>0x01000567</code>, supplementary characters from * <code>0x10001</code> to <code>0x10004</code> has the value * <code>0x23</code>. And, <code>getValue(0x10003)</code> returns the value. */ private int[] dataTable; /** * Creates a new SupplementaryCharacterData object with the given table. */ public SupplementaryCharacterData(int[] table) { dataTable = table; } /** * Returns a corresponding value for the given supplementary code-point. */ public int getValue(int index) { // Index should be a valid supplementary character. assert index >= Character.MIN_SUPPLEMENTARY_CODE_POINT && index <= Character.MAX_CODE_POINT : "Invalid code point:" + Integer.toHexString(index); int i = 0; int j = dataTable.length - 1; int k; for (;;) { k = (i + j) / 2; int start = dataTable[k] >> 8; int end = dataTable[k+1] >> 8; if (index < start) { j = k; } else if (index > (end-1)) { i = k; } else { int v = dataTable[k] & 0xFF; return (v == 0xFF) ? IGNORE : v; } } } /** * Returns the data array. */ public int[] getArray() { return dataTable; } } <?php /* * Copyright 2016 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. */ class Google_Service_G
null
null
null
null
null
null
github_plus_top10pct_by_avg
ames_MetagameConfig extends Google_Collection { protected $collection_key = 'playerLevels'; public $currentVersion; public $kind; protected $playerLevelsType = 'Google_Service_Games_PlayerLevel'; protected $playerLevelsDataType = 'array'; public function setCurrentVersion($currentVersion) { $this->currentVersion = $currentVersion; } public function getCurrentVersion() { return $this->currentVersion; } public function setKind($kind) { $this->kind = $kind; } public function getKind() { return $this->kind; } public function setPlayerLevels($playerLevels) { $this->playerLevels = $playerLevels; } public function getPlayerLevels() { return $this->playerLevels; } } <UserControl x:Class="MissionPlanner.Controls.ConnectionControl" d:DesignHeight="54" d:DesignWidth="230" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" xmlns:BackstageView="using:MissionPlanner.Controls.BackstageView" xmlns:Controls="using:MissionPlanner.Controls" xmlns:GCSViews="using:MissionPlanner.GCSViews" xmlns:Wizard="using:MissionPlanner.Wizard" xmlns:ConfigurationView="using:MissionPlanner.GCSViews.ConfigurationView" xmlns:Custom="using:Custom" xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls" xmlns:PreFlight="using:MissionPlanner.Controls.PreFlight" mc:Ignorable="d" > <Grid><ComboBox Name="cmb_sysid" HorizontalAlignment="Left" VerticalAlignment="Top" FontFamily="Microsoft Sans Serif" FontSize="8.25" Margin="49,31,0,0" Width="151" Height="21"></ComboBox> <TextBlock Name="linkLabel1" HorizontalAlignment="Left" VerticalAlignment="Top" FontFamily="Microsoft Sans Serif" FontSize="8.25" Margin="3,33,0,0" Width="39" Height="17">Stats...</TextBlock> <ComboBox Name="cmb_Connection" HorizontalAlignment="Left"
null
null
null
null
null
null
github_plus_top10pct_by_avg
VerticalAlignment="Top" FontFamily="Microsoft Sans Serif" FontSize="8.25" Margin="3,4,0,0" Width="121" Height="21"></ComboBox> <ComboBox Name="cmb_ConnectionType" HorizontalAlignment="Left" VerticalAlignment="Top" FontFamily="Microsoft Sans Serif" FontSize="8.25" Margin="201,4,0,0" Width="26" Height="21"></ComboBox> <ComboBox Name="cmb_Baud" HorizontalAlignment="Left" VerticalAlignment="Top" FontFamily="Microsoft Sans Serif" FontSize="8.25" Margin="130,4,0,0" Width="70" Height="21"></ComboBox> </Grid></UserControl> /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** Used to detect unsigned integer values. */ var reIsUint = /^(?:0|[1-9]\d*)$/; /** * Checks if `value` is a valid array-like index. * * @private * @param {*} value The value to check. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. */ function isIndex(value, length) { length = length == null ? MAX_SAFE_INTEGER : length; return !!length && (typeof value == 'number' || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); } module.exports = isIndex; fileFormatVersion: 2 guid: 0486ac06582a6165eaef4df41b9d050d DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant: // Copyright (c) 2014-2019 Coin Sciences Ltd // MultiChain code distributed under the GPLv3 license, see COPYING file. #include "v8/callbacks.h" #include "v8/v8engine.h" #include "v8/v8json_spirit.h" #include "v8/v8utils.h" #include <cassert> namespace mc_v8 { /** * Call an RPC function from a V8 JS callback. * * Marshal the arguments and the return value between V8 and json_spirit using intermediate JSON strings. * Optionally filter the result before returning it to JS. * * @param name The name of the RPC function. * @param args The V8 arguments/return value. */ void CallRpcFunction(std::string name, const v8::FunctionCallb
null
null
null
null
null
null
github_plus_top10pct_by_avg
ackInfo<v8::Value> &args) { v8::Isolate *isolate = args.GetIsolate(); v8::Locker locker(isolate); v8::Isolate::Scope isolateScope(isolate); v8::HandleScope handleScope(isolate); v8::Local<v8::Context> context(isolate->GetCurrentContext()); v8::Context::Scope contextScope(context); IFilterCallback *filterCallback = static_cast<IFilterCallback *>(args.Data().As<v8::External>()->Value()); json_spirit::Array params; for (int i = 0; i < args.Length(); ++i) { params.push_back(V82Jsp(isolate, args[i])); } json_spirit::Value result; filterCallback->JspCallback(name, params, result); if (result.is_null()) { args.GetReturnValue().SetUndefined(); } else { args.GetReturnValue().Set(Jsp2V8(isolate, result)); } } // clang-format off #define FILTER_FUNCTION(name) \ void filter_##name(const v8::FunctionCallbackInfo<v8::Value> &args) \ { \ CallRpcFunction(#name, args); \ } FILTER_FUNCTION(getfiltertxid) FILTER_FUNCTION(getfiltertransaction) FILTER_FUNCTION(getfilterstreamitem) FILTER_FUNCTION(getfilterassetbalances) FILTER_FUNCTION(setfilterparam) FILTER_FUNCTION(getfiltertxinput) FILTER_FUNCTION(getlastblockinfo) FILTER_FUNCTION(getassetinfo) FILTER_FUNCTION(getstreaminfo) FILTER_FUNCTION(verifypermission) FILTER_FUNCTION(verifymessage) #define FILTER_LOOKUP(name) { #name, filter_##name } std::map<std::string, v8::FunctionCallback> callbackLookup{ FILTER_LOOKUP(getfiltertxid), FILTER_LOOKUP(getfiltertransaction), FILTER_LOOKUP(getfilterstreamitem), FILTER_LOOKUP(getfilterassetbalances), FILTER_LOOKUP(setfilterparam), FILTER_LOOKUP(getfiltertxinput), FILTER_LOOKUP(getlastblockinfo), FILTER_LOOKUP(getassetinfo), FILTER_LOOKUP(getstreaminfo), FILTER_LOOKUP(verifypermission), FILTER_LOOKUP(verifymessage) }; // clang-format on
null
null
null
null
null
null
github_plus_top10pct_by_avg
} // namespace mc_v8 /* * Copyright (c) 2015, Peter Thorson. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the WebSocket++ Project nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL PETER THORSON BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * */ #include <websocketpp/config/asio_no_tls_client.hpp> #include <websocketpp/client.hpp> #include <websocketpp/extensions/permessage_deflate/enabled.hpp> #include <iostream> struct deflate_config : public websocketpp::config::asio_client { typedef deflate_config type; typedef asio_client base; typedef base::concurrency_type concurrency_type; typedef base::request_type request_type; typedef base::response_type re
null
null
null
null
null
null
github_plus_top10pct_by_avg
sponse_type; typedef base::message_type message_type; typedef base::con_msg_manager_type con_msg_manager_type; typedef base::endpoint_msg_manager_type endpoint_msg_manager_type; typedef base::alog_type alog_type; typedef base::elog_type elog_type; typedef base::rng_type rng_type; struct transport_config : public base::transport_config { typedef type::concurrency_type concurrency_type; typedef type::alog_type alog_type; typedef type::elog_type elog_type; typedef type::request_type request_type; typedef type::response_type response_type; typedef websocketpp::transport::asio::basic_socket::endpoint socket_type; }; typedef websocketpp::transport::asio::endpoint<transport_config> transport_type; /// permessage_compress extension struct permessage_deflate_config {}; typedef websocketpp::extensions::permessage_deflate::enabled <permessage_deflate_config> permessage_deflate_type; }; typedef websocketpp::client<deflate_config> client; using websocketpp::lib::placeholders::_1; using websocketpp::lib::placeholders::_2; using websocketpp::lib::bind; // pull out the type of messages sent by our config typedef websocketpp::config::asio_client::message_type::ptr message_ptr; int case_count = 0; void on_message(client* c, websocketpp::connection_hdl hdl, message_ptr msg) { client::connection_ptr con = c->get_con_from_hdl(hdl); if (con->get_resource() == "/getCaseCount") { std::cout << "Detected " << msg->get_payload() << " test cases." << std::endl; case_count = atoi(msg->get_payload().c_str()); } else { c->send(hdl, msg->get_payload(), msg->get_opcode()); } } int main(int argc, char* argv[]) { // Create a server endpoint client c; std::string uri = "ws://localhost:9001"; if (argc == 2) { uri = argv[1]; } try { // We expect there to be a lot of errors, so suppress them
null
null
null
null
null
null
github_plus_top10pct_by_avg
c.clear_access_channels(websocketpp::log::alevel::all); c.clear_error_channels(websocketpp::log::elevel::all); // Initialize ASIO c.init_asio(); // Register our handlers c.set_message_handler(bind(&on_message,&c,::_1,::_2)); websocketpp::lib::error_code ec; client::connection_ptr con = c.get_connection(uri+"/getCaseCount", ec); c.connect(con); // Start the ASIO io_service run loop c.run(); std::cout << "case count: " << case_count << std::endl; for (int i = 1; i <= case_count; i++) { c.reset(); std::stringstream url; url << uri << "/runCase?case=" << i << "&agent=" << websocketpp::user_agent; con = c.get_connection(url.str(), ec); c.connect(con); c.run(); } std::cout << "done" << std::endl; } catch (websocketpp::exception const & e) { std::cout << e.what() << std::endl; } } {"threshold": 5, "split": ["jUEumBCZY6GRlXbB/uobM53gis/RldnMAfBAnkg=", "e3WhwYy6YUQGedMXkGnxJO6v0ov4cgteapL17wI="], "shares": 9} {"threshold": 5, "split": ["mrygQzFoasgDY23te4MGqTFXjpS/pMalQiN9Sks=", "XjpXSuBzyfRAbKj7hODzcf0cv0NZsXQDEQiIdtA="], "shares": 9} {"threshold": 5, "split": ["U64tceO4Ddtr4V6FMXSTJre4f6t4nPczWgtIkfo=", "t3hrQmsqonoBCl7T4f3bLqMShchtOtF3WesMGEs="], "shares": 9} {"threshold": 5, "split": ["TcOzpm1jNtwsj0cdiLfd6oVHLGMMKRt52t9kU4E=", "RqJ1WKlufadMFwFLbIjvBs82BH/yP8CAT6kyv3M="], "shares": 9} [[constraint]] name = "github.com/crossdock/crossdock-go" branch = "master" [[constraint]] name = "github.com/opentracing/opentracing-go" version = "^1.1" [[constraint]] name = "github.com/prometheus/client_golang" version = "0.8.0" [[constraint]] name = "github.com/stretchr/testify" version = "^1.1.3" [[constraint]] name = "github.com/uber-go/atomic" version = "^1" [[constraint]] name = "github.com/uber/jaeger-lib" version = "^2.0" [[constraint]] name = "go.uber.org/zap"
null
null
null
null
null
null
github_plus_top10pct_by_avg
version = "^1" [prune] go-tests = true unused-packages = true <?xml version="1.0" encoding="UTF-8"?> <table xmlns="http://query.yahooapis.com/v1/schema/table.xsd"> <meta> <author>Paul Tarjan</author> <description>Mimetype translations</description> <sampleQuery>SELECT * FROM {table} WHERE mimetype = "application/pdf"</sampleQuery> <documentationURL>http://stdicon.com/</documentationURL> </meta> <bindings> <select itemPath="" produces="XML"> <urls> <url>http://stdicon.com/mimetype/{mimetype}</url> </urls> <inputs> <key id="mimetype" type="xs:string" paramType="path" required="true" /> </inputs> <execute><![CDATA[ response.object = request.get().response; ]]> </execute> </select> </bindings> </table> // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore.Sqlite.Internal; using Xunit; using Xunit.Abstractions; namespace Microsoft.EntityFrameworkCore.Query { public class GearsOfWarQuerySqliteTest : GearsOfWarQueryRelationalTestBase<GearsOfWarQuerySqliteFixture> { public GearsOfWarQuerySqliteTest(GearsOfWarQuerySqliteFixture fixture, ITestOutputHelper testOutputHelper) : base(fixture) { Fixture.TestSqlLoggerFactory.Clear(); //Fixture.TestSqlLoggerFactory.SetTestOutputHelper(testOutputHelper); } public override Task Where_datetimeoffset_date_component(bool async) => AssertTranslationFailed(() => base.Where_datetimeoffset_date_component(async)); public override Task Where_datetimeoffset_day_component(bool async) => AssertTranslationFailed(() => base.Where_datetimeoffset_date_component(async)); public override Task Where_datetimeoffset_dayofyea
null
null
null
null
null
null
github_plus_top10pct_by_avg
r_component(bool async) => AssertTranslationFailed(() => base.Where_datetimeoffset_dayofyear_component(async)); public override Task Where_datetimeoffset_hour_component(bool async) => AssertTranslationFailed(() => base.Where_datetimeoffset_hour_component(async)); public override Task Where_datetimeoffset_millisecond_component(bool async) => AssertTranslationFailed(() => base.Where_datetimeoffset_millisecond_component(async)); public override Task Where_datetimeoffset_minute_component(bool async) => AssertTranslationFailed(() => base.Where_datetimeoffset_minute_component(async)); public override Task Where_datetimeoffset_month_component(bool async) => AssertTranslationFailed(() => base.Where_datetimeoffset_month_component(async)); public override Task Where_datetimeoffset_now(bool async) => AssertTranslationFailed(() => base.Where_datetimeoffset_now(async)); public override Task Where_datetimeoffset_second_component(bool async) => AssertTranslationFailed(() => base.Where_datetimeoffset_second_component(async)); public override Task Where_datetimeoffset_utcnow(bool async) => AssertTranslationFailed(() => base.Where_datetimeoffset_utcnow(async)); public override Task Where_datetimeoffset_year_component(bool async) => AssertTranslationFailed(() => base.Where_datetimeoffset_year_component(async)); public override Task DateTimeOffset_Contains_Less_than_Greater_than(bool async) => AssertTranslationFailed(() => base.DateTimeOffset_Contains_Less_than_Greater_than(async)); public override Task DateTimeOffset_Date_returns_datetime(bool async) => AssertTranslationFailed(() => base.DateTimeOffset_Date_returns_datetime(async)); public override async Task Correlated_collections_inner_subquery_predicate_references_outer_qsre(bool async) => Assert.Equal( SqliteStrings.ApplyNo
null
null
null
null
null
null
github_plus_top10pct_by_avg
tSupported, (await Assert.ThrowsAsync<InvalidOperationException>( () => base.Correlated_collections_inner_subquery_predicate_references_outer_qsre(async))).Message); public override async Task Correlated_collections_inner_subquery_selector_references_outer_qsre(bool async) => Assert.Equal( SqliteStrings.ApplyNotSupported, (await Assert.ThrowsAsync<InvalidOperationException>( () => base.Correlated_collections_inner_subquery_selector_references_outer_qsre(async))).Message); public override async Task Correlated_collections_nested_inner_subquery_references_outer_qsre_one_level_up(bool async) => Assert.Equal( SqliteStrings.ApplyNotSupported, (await Assert.ThrowsAsync<InvalidOperationException>( () => base.Correlated_collections_nested_inner_subquery_references_outer_qsre_one_level_up(async))).Message); public override async Task Correlated_collections_nested_inner_subquery_references_outer_qsre_two_levels_up(bool async) => Assert.Equal( SqliteStrings.ApplyNotSupported, (await Assert.ThrowsAsync<InvalidOperationException>( () => base.Correlated_collections_nested_inner_subquery_references_outer_qsre_two_levels_up(async))).Message); public override async Task Outer_parameter_in_group_join_with_DefaultIfEmpty(bool async) => Assert.Equal( SqliteStrings.ApplyNotSupported, (await Assert.ThrowsAsync<InvalidOperationException>( () => base.Outer_parameter_in_group_join_with_DefaultIfEmpty(async))).Message); public override async Task Outer_parameter_in_join_key(bool async) => Assert.Equal( SqliteStrings.ApplyNotSupported, (await Assert.ThrowsAsync<InvalidOperationException>( () => base.Outer_parameter_in_join_key(async))).Message);
null
null
null
null
null
null
github_plus_top10pct_by_avg
public override async Task Outer_parameter_in_join_key_inner_and_outer(bool async) => Assert.Equal( SqliteStrings.ApplyNotSupported, (await Assert.ThrowsAsync<InvalidOperationException>( () => base.Outer_parameter_in_join_key_inner_and_outer(async))).Message); public override async Task Subquery_projecting_nullable_scalar_contains_nullable_value_needs_null_expansion(bool async) => Assert.Equal( SqliteStrings.ApplyNotSupported, (await Assert.ThrowsAsync<InvalidOperationException>( () => base.Subquery_projecting_nullable_scalar_contains_nullable_value_needs_null_expansion(async))).Message); public override async Task Subquery_projecting_nullable_scalar_contains_nullable_value_needs_null_expansion_negated(bool async) => Assert.Equal( SqliteStrings.ApplyNotSupported, (await Assert.ThrowsAsync<InvalidOperationException>( () => base.Subquery_projecting_nullable_scalar_contains_nullable_value_needs_null_expansion_negated(async))).Message); public override async Task Subquery_projecting_non_nullable_scalar_contains_non_nullable_value_doesnt_need_null_expansion(bool async) => Assert.Equal( SqliteStrings.ApplyNotSupported, (await Assert.ThrowsAsync<InvalidOperationException>( () => base.Subquery_projecting_non_nullable_scalar_contains_non_nullable_value_doesnt_need_null_expansion(async))).Message); public override async Task Subquery_projecting_non_nullable_scalar_contains_non_nullable_value_doesnt_need_null_expansion_negated( bool async) => Assert.Equal( SqliteStrings.ApplyNotSupported, (await Assert.ThrowsAsync<InvalidOperationException>( () => base.Subquery_projecting_non_nullable_scalar_contains_non_nullable_value_doesnt_need_null_expansion_negated(
null
null
null
null
null
null
github_plus_top10pct_by_avg
async))).Message); public override async Task SelectMany_predicate_with_non_equality_comparison_with_Take_doesnt_convert_to_join(bool async) => Assert.Equal( SqliteStrings.ApplyNotSupported, (await Assert.ThrowsAsync<InvalidOperationException>( () => base.SelectMany_predicate_with_non_equality_comparison_with_Take_doesnt_convert_to_join(async))).Message); public override async Task Correlated_collection_with_inner_collection_references_element_two_levels_up(bool async) => Assert.Equal( SqliteStrings.ApplyNotSupported, (await Assert.ThrowsAsync<InvalidOperationException>( () => base.Correlated_collection_with_inner_collection_references_element_two_levels_up(async))).Message); public override async Task Negate_on_binary_expression(bool async) { await base.Negate_on_binary_expression(async); AssertSql( @"SELECT ""s"".""Id"", ""s"".""Banner"", ""s"".""Banner5"", ""s"".""InternalNumber"", ""s"".""Name"" FROM ""Squads"" AS ""s"" WHERE ""s"".""Id"" = -(""s"".""Id"" + ""s"".""Id"")"); } public override async Task Negate_on_column(bool async) { await base.Negate_on_column(async); AssertSql( @"SELECT ""s"".""Id"", ""s"".""Banner"", ""s"".""Banner5"", ""s"".""InternalNumber"", ""s"".""Name"" FROM ""Squads"" AS ""s"" WHERE ""s"".""Id"" = -""s"".""Id"""); } public override async Task Negate_on_like_expression(bool async) { await base.Negate_on_like_expression(async); AssertSql( @"SELECT ""s"".""Id"", ""s"".""Banner"", ""s"".""Banner5"", ""s"".""InternalNumber"", ""s"".""Name"" FROM ""Squads"" AS ""s"" WHERE ""s"".""Name"" IS NOT NULL AND NOT (""s"".""Name"" LIKE 'us%')"); } public override async Task Select_datetimeoffset_comparison_in_projection(bool async) {
null
null
null
null
null
null
github_plus_top10pct_by_avg
await base.Select_datetimeoffset_comparison_in_projection(async); AssertSql( @"SELECT ""m"".""Timeline"" FROM ""Missions"" AS ""m"""); } public override async Task Byte_array_contains_literal(bool async) { await base.Byte_array_contains_literal(async); AssertSql( @"SELECT ""s"".""Id"", ""s"".""Banner"", ""s"".""Banner5"", ""s"".""InternalNumber"", ""s"".""Name"" FROM ""Squads"" AS ""s"" WHERE instr(""s"".""Banner"", X'01') > 0"); } public override async Task Byte_array_contains_parameter(bool async) { await base.Byte_array_contains_parameter(async); AssertSql( @"@__someByte_0='1' (DbType = String) SELECT ""s"".""Id"", ""s"".""Banner"", ""s"".""Banner5"", ""s"".""InternalNumber"", ""s"".""Name"" FROM ""Squads"" AS ""s"" WHERE instr(""s"".""Banner"", char(@__someByte_0)) > 0"); } public override async Task Byte_array_filter_by_length_literal(bool async) { await base.Byte_array_filter_by_length_literal(async); AssertSql( @"SELECT ""s"".""Id"", ""s"".""Banner"", ""s"".""Banner5"", ""s"".""InternalNumber"", ""s"".""Name"" FROM ""Squads"" AS ""s"" WHERE length(""s"".""Banner"") = 1"); } public override async Task Byte_array_filter_by_length_parameter(bool async) { await base.Byte_array_filter_by_length_parameter(async); AssertSql( @"@__p_0='1' (DbType = String) SELECT ""s"".""Id"", ""s"".""Banner"", ""s"".""Banner5"", ""s"".""InternalNumber"", ""s"".""Name"" FROM ""Squads"" AS ""s"" WHERE length(""s"".""Banner"") = @__p_0"); } public override void Byte_array_filter_by_length_parameter_compiled() { base.Byte_array_filter_by_length_parameter_compiled(); AssertSql( @"@__byteArrayParam='0x2A80' (Size = 2) (DbType = String) SELECT COUNT(*) FROM ""Squads"" AS ""s"" WH
null
null
null
null
null
null
github_plus_top10pct_by_avg
ERE length(""s"".""Banner"") = length(@__byteArrayParam)"); } public override async Task Byte_array_filter_by_SequenceEqual(bool async) { await base.Byte_array_filter_by_SequenceEqual(async); AssertSql( @"@__byteArrayParam_0='0x0405060708' (Size = 5) (DbType = String) SELECT ""s"".""Id"", ""s"".""Banner"", ""s"".""Banner5"", ""s"".""InternalNumber"", ""s"".""Name"" FROM ""Squads"" AS ""s"" WHERE ""s"".""Banner5"" = @__byteArrayParam_0"); } [ConditionalTheory(Skip = "Issue#18844")] public override Task TimeSpan_Hours(bool async) => base.TimeSpan_Hours(async); [ConditionalTheory(Skip = "Issue#18844")] public override Task TimeSpan_Minutes(bool async) => base.TimeSpan_Minutes(async); [ConditionalTheory(Skip = "Issue#18844")] public override Task TimeSpan_Seconds(bool async) => base.TimeSpan_Seconds(async); [ConditionalTheory(Skip = "Issue#18844")] public override Task TimeSpan_Milliseconds(bool async) => base.TimeSpan_Milliseconds(async); [ConditionalTheory(Skip = "Issue#18844")] public override Task Where_TimeSpan_Hours(bool async) => base.Where_TimeSpan_Hours(async); [ConditionalTheory(Skip = "Issue#18844")] public override Task Where_TimeSpan_Minutes(bool async) => base.Where_TimeSpan_Minutes(async); [ConditionalTheory(Skip = "Issue#18844")] public override Task Where_TimeSpan_Seconds(bool async) => base.Where_TimeSpan_Seconds(async); [ConditionalTheory(Skip = "Issue#18844")] public override Task Where_TimeSpan_Milliseconds(bool async) => base.Where_TimeSpan_Milliseconds(async); private void AssertSql(params string[] expected) => Fixture.TestSqlLoggerFactory.AssertBaseline(expected); } } /* * linux/fs/nfs/nfs4_fs.h * * Copyright (C) 2005 Trond Myklebust * * NFSv4-specific filesyst
null
null
null
null
null
null
github_plus_top10pct_by_avg
em definitions and declarations */ #ifndef __LINUX_FS_NFS_NFS4_FS_H #define __LINUX_FS_NFS_NFS4_FS_H #if IS_ENABLED(CONFIG_NFS_V4) #define NFS4_MAX_LOOP_ON_RECOVER (10) #include <linux/seqlock.h> struct idmap; enum nfs4_client_state { NFS4CLNT_MANAGER_RUNNING = 0, NFS4CLNT_CHECK_LEASE, NFS4CLNT_LEASE_EXPIRED, NFS4CLNT_RECLAIM_REBOOT, NFS4CLNT_RECLAIM_NOGRACE, NFS4CLNT_DELEGRETURN, NFS4CLNT_SESSION_RESET, NFS4CLNT_LEASE_CONFIRM, NFS4CLNT_SERVER_SCOPE_MISMATCH, NFS4CLNT_PURGE_STATE, NFS4CLNT_BIND_CONN_TO_SESSION, }; #define NFS4_RENEW_TIMEOUT 0x01 #define NFS4_RENEW_DELEGATION_CB 0x02 struct nfs4_minor_version_ops { u32 minor_version; unsigned init_caps; int (*call_sync)(struct rpc_clnt *clnt, struct nfs_server *server, struct rpc_message *msg, struct nfs4_sequence_args *args, struct nfs4_sequence_res *res); bool (*match_stateid)(const nfs4_stateid *, const nfs4_stateid *); int (*find_root_sec)(struct nfs_server *, struct nfs_fh *, struct nfs_fsinfo *); int (*free_lock_state)(struct nfs_server *, struct nfs4_lock_state *); const struct nfs4_state_recovery_ops *reboot_recovery_ops; const struct nfs4_state_recovery_ops *nograce_recovery_ops; const struct nfs4_state_maintenance_ops *state_renewal_ops; }; #define NFS_SEQID_CONFIRMED 1 struct nfs_seqid_counter { ktime_t create_time; int owner_id; int flags; u32 counter; spinlock_t lock; /* Protects the list */ struct list_head list; /* Defines sequence of RPC calls */ struct rpc_wait_queue wait; /* RPC call delay queue */ }; struct nfs_seqid { struct nfs_seqid_counter *sequence; struct list_head list; struct rpc_task *task; }; static inline void nfs_confirm_seqid(struct nfs_seqid_counter *seqid, int status) { if (seqid_mutating_err(-status)) seqid->flags |= NFS_SEQID_CONFIRMED; } /* * NFS4 state_owners and lock_owners are simply labels for ordered * sequences of RPC calls. Their sole purpose is to provide once-only * semantics by allowing the server to identify replayed requests. */ struct nfs4_
null
null
null
null
null
null
github_plus_top10pct_by_avg
state_owner { struct nfs_server *so_server; struct list_head so_lru; unsigned long so_expires; struct rb_node so_server_node; struct rpc_cred *so_cred; /* Associated cred */ spinlock_t so_lock; atomic_t so_count; unsigned long so_flags; struct list_head so_states; struct nfs_seqid_counter so_seqid; seqcount_t so_reclaim_seqcount; struct mutex so_delegreturn_mutex; }; enum { NFS_OWNER_RECLAIM_REBOOT, NFS_OWNER_RECLAIM_NOGRACE }; #define NFS_LOCK_NEW 0 #define NFS_LOCK_RECLAIM 1 #define NFS_LOCK_EXPIRED 2 /* * struct nfs4_state maintains the client-side state for a given * (state_owner,inode) tuple (OPEN) or state_owner (LOCK). * * OPEN: * In order to know when to OPEN_DOWNGRADE or CLOSE the state on the server, * we need to know how many files are open for reading or writing on a * given inode. This information too is stored here. * * LOCK: one nfs4_state (LOCK) to hold the lock stateid nfs4_state(OPEN) */ struct nfs4_lock_owner { unsigned int lo_type; #define NFS4_ANY_LOCK_TYPE (0U) #define NFS4_FLOCK_LOCK_TYPE (1U << 0) #define NFS4_POSIX_LOCK_TYPE (1U << 1) union { fl_owner_t posix_owner; pid_t flock_owner; } lo_u; }; struct nfs4_lock_state { struct list_head ls_locks; /* Other lock stateids */ struct nfs4_state * ls_state; /* Pointer to open state */ #define NFS_LOCK_INITIALIZED 0 unsigned long ls_flags; struct nfs_seqid_counter ls_seqid; nfs4_stateid ls_stateid; atomic_t ls_count; struct nfs4_lock_owner ls_owner; }; /* bits for nfs4_state->flags */ enum { LK_STATE_IN_USE, NFS_DELEGATED_STATE, /* Current stateid is delegation */ NFS_OPEN_STATE, /* OPEN stateid is set */ NFS_O_RDONLY_STATE, /* OPEN stateid has read-only state */ NFS_O_WRONLY_STATE, /* OPEN stateid has write-only state */ NFS_O_RDWR_STATE, /* OPEN stateid has read/write state */ NFS_STATE_RECLAIM_REBOOT, /* OPEN stateid server rebooted */ NFS_STATE_RECLAIM_NOGRACE, /* OPEN stateid needs to recover state */ NFS_STATE_POSIX_LOCKS,
null
null
null
null
null
null
github_plus_top10pct_by_avg
/* Posix locks are supported */ NFS_STATE_RECOVERY_FAILED, /* OPEN stateid state recovery failed */ }; struct nfs4_state { struct list_head open_states; /* List of states for the same state_owner */ struct list_head inode_states; /* List of states for the same inode */ struct list_head lock_states; /* List of subservient lock stateids */ struct nfs4_state_owner *owner; /* Pointer to the open owner */ struct inode *inode; /* Pointer to the inode */ unsigned long flags; /* Do we hold any locks? */ spinlock_t state_lock; /* Protects the lock_states list */ seqlock_t seqlock; /* Protects the stateid/open_stateid */ nfs4_stateid stateid; /* Current stateid: may be delegation */ nfs4_stateid open_stateid; /* OPEN stateid */ /* The following 3 fields are protected by owner->so_lock */ unsigned int n_rdonly; /* Number of read-only references */ unsigned int n_wronly; /* Number of write-only references */ unsigned int n_rdwr; /* Number of read/write references */ fmode_t state; /* State on the server (R,W, or RW) */ atomic_t count; }; struct nfs4_exception { long timeout; int retry; struct nfs4_state *state; struct inode *inode; }; struct nfs4_state_recovery_ops { int owner_flag_bit; int state_flag_bit; int (*recover_open)(struct nfs4_state_owner *, struct nfs4_state *); int (*recover_lock)(struct nfs4_state *, struct file_lock *); int (*establish_clid)(struct nfs_client *, struct rpc_cred *); struct rpc_cred * (*get_clid_cred)(struct nfs_client *); int (*reclaim_complete)(struct nfs_client *, struct rpc_cred *); int (*detect_trunking)(struct nfs_client *, struct nfs_client **, struct rpc_cred *); }; struct nfs4_state_maintenance_ops { int (*sched_state_renewal)(struct nfs_client *, struct rpc_cred *, unsigned); struct rpc_cred * (*get_state_renewal_cred_locked)(struct nfs_client *); int (*renew_lease)(struct nfs_client *, struct rpc_cred *); }; extern const struct dentry_operations nfs4_dentry_operations; /* dir.c */ int nfs_atomic_open(struct inode *, struct dentr
null
null
null
null
null
null
github_plus_top10pct_by_avg
y *, struct file *, unsigned, umode_t, int *); /* super.c */ extern struct file_system_type nfs4_fs_type; /* nfs4namespace.c */ rpc_authflavor_t nfs_find_best_sec(struct nfs4_secinfo_flavors *); struct rpc_clnt *nfs4_create_sec_client(struct rpc_clnt *, struct inode *, struct qstr *); struct vfsmount *nfs4_submount(struct nfs_server *, struct dentry *, struct nfs_fh *, struct nfs_fattr *); /* nfs4proc.c */ extern int nfs4_proc_setclientid(struct nfs_client *, u32, unsigned short, struct rpc_cred *, struct nfs4_setclientid_res *); extern int nfs4_proc_setclientid_confirm(struct nfs_client *, struct nfs4_setclientid_res *arg, struct rpc_cred *); extern int nfs4_proc_get_rootfh(struct nfs_server *, struct nfs_fh *, struct nfs_fsinfo *); extern int nfs4_proc_bind_conn_to_session(struct nfs_client *, struct rpc_cred *cred); extern int nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred); extern int nfs4_destroy_clientid(struct nfs_client *clp); extern int nfs4_init_clientid(struct nfs_client *, struct rpc_cred *); extern int nfs41_init_clientid(struct nfs_client *, struct rpc_cred *); extern int nfs4_do_close(struct nfs4_state *state, gfp_t gfp_mask, int wait); extern int nfs4_server_capabilities(struct nfs_server *server, struct nfs_fh *fhandle); extern int nfs4_proc_fs_locations(struct rpc_clnt *, struct inode *, const struct qstr *, struct nfs4_fs_locations *, struct page *); extern struct rpc_clnt *nfs4_proc_lookup_mountpoint(struct inode *, struct qstr *, struct nfs_fh *, struct nfs_fattr *); extern int nfs4_proc_secinfo(struct inode *, const struct qstr *, struct nfs4_secinfo_flavors *); extern const struct xattr_handler *nfs4_xattr_handlers[]; extern int nfs4_set_rw_stateid(nfs4_stateid *stateid, const struct nfs_open_context *ctx, const struct nfs_lock_context *l_ctx, fmode_t fmode); #if defined(CONFIG_NFS_V4_1) static inline struct nfs4_session *nfs4_get_session(const struct nfs_server *server) { return server->nfs_client->cl_session; } extern int nfs4_
null
null
null
null
null
null
github_plus_top10pct_by_avg
setup_sequence(const struct nfs_server *server, struct nfs4_sequence_args *args, struct nfs4_sequence_res *res, struct rpc_task *task); extern int nfs41_setup_sequence(struct nfs4_session *session, struct nfs4_sequence_args *args, struct nfs4_sequence_res *res, struct rpc_task *task); extern int nfs4_proc_create_session(struct nfs_client *, struct rpc_cred *); extern int nfs4_proc_destroy_session(struct nfs4_session *, struct rpc_cred *); extern int nfs4_proc_get_lease_time(struct nfs_client *clp, struct nfs_fsinfo *fsinfo); extern int nfs4_proc_layoutcommit(struct nfs4_layoutcommit_data *data, bool sync); static inline bool is_ds_only_client(struct nfs_client *clp) { return (clp->cl_exchange_flags & EXCHGID4_FLAG_MASK_PNFS) == EXCHGID4_FLAG_USE_PNFS_DS; } static inline bool is_ds_client(struct nfs_client *clp) { return clp->cl_exchange_flags & EXCHGID4_FLAG_USE_PNFS_DS; } #else /* CONFIG_NFS_v4_1 */ static inline struct nfs4_session *nfs4_get_session(const struct nfs_server *server) { return NULL; } static inline int nfs4_setup_sequence(const struct nfs_server *server, struct nfs4_sequence_args *args, struct nfs4_sequence_res *res, struct rpc_task *task) { rpc_call_start(task); return 0; } static inline bool is_ds_only_client(struct nfs_client *clp) { return false; } static inline bool is_ds_client(struct nfs_client *clp) { return false; } #endif /* CONFIG_NFS_V4_1 */ extern const struct nfs4_minor_version_ops *nfs_v4_minor_ops[]; extern const u32 nfs4_fattr_bitmap[3]; extern const u32 nfs4_statfs_bitmap[3]; extern const u32 nfs4_pathconf_bitmap[3]; extern const u32 nfs4_fsinfo_bitmap[3]; extern const u32 nfs4_fs_locations_bitmap[3]; void nfs4_free_client(struct nfs_client *); struct nfs_client *nfs4_alloc_client(const struct nfs_client_initdata *); /* nfs4renewd.c */ extern void nfs4_schedule_state_renewal(struct nfs_client *); extern void nfs4_renewd_prepare_shutdown(struct nfs_server *); extern void nfs4_kill_renewd(struct nfs_client *); extern void nfs4_renew_state(stru
null
null
null
null
null
null
github_plus_top10pct_by_avg
ct work_struct *); /* nfs4state.c */ struct rpc_cred *nfs4_get_setclientid_cred(struct nfs_client *clp); struct rpc_cred *nfs4_get_machine_cred_locked(struct nfs_client *clp); struct rpc_cred *nfs4_get_renew_cred_locked(struct nfs_client *clp); int nfs4_discover_server_trunking(struct nfs_client *clp, struct nfs_client **); int nfs40_discover_server_trunking(struct nfs_client *clp, struct nfs_client **, struct rpc_cred *); #if defined(CONFIG_NFS_V4_1) struct rpc_cred *nfs4_get_exchange_id_cred(struct nfs_client *clp); int nfs41_discover_server_trunking(struct nfs_client *clp, struct nfs_client **, struct rpc_cred *); extern void nfs4_schedule_session_recovery(struct nfs4_session *, int); extern void nfs41_server_notify_target_slotid_update(struct nfs_client *clp); extern void nfs41_server_notify_highest_slotid_update(struct nfs_client *clp); #else static inline void nfs4_schedule_session_recovery(struct nfs4_session *session, int err) { } #endif /* CONFIG_NFS_V4_1 */ extern struct nfs4_state_owner *nfs4_get_state_owner(struct nfs_server *, struct rpc_cred *, gfp_t); extern void nfs4_put_state_owner(struct nfs4_state_owner *); extern void nfs4_purge_state_owners(struct nfs_server *); extern struct nfs4_state * nfs4_get_open_state(struct inode *, struct nfs4_state_owner *); extern void nfs4_put_open_state(struct nfs4_state *); extern void nfs4_close_state(struct nfs4_state *, fmode_t); extern void nfs4_close_sync(struct nfs4_state *, fmode_t); extern void nfs4_state_set_mode_locked(struct nfs4_state *, fmode_t); extern void nfs_inode_find_state_and_recover(struct inode *inode, const nfs4_stateid *stateid); extern void nfs4_schedule_lease_recovery(struct nfs_client *); extern int nfs4_wait_clnt_recover(struct nfs_client *clp); extern int nfs4_client_recover_expired_lease(struct nfs_client *clp); extern void nfs4_schedule_state_manager(struct nfs_client *); extern void nfs4_schedule_path_down_recovery(struct nfs_client *clp); extern int nfs4_schedule_stateid_recovery(const struct nfs_server *, struct nf
null
null
null
null
null
null
github_plus_top10pct_by_avg
s4_state *); extern void nfs41_handle_sequence_flag_errors(struct nfs_client *clp, u32 flags); extern void nfs41_handle_server_scope(struct nfs_client *, struct nfs41_server_scope **); extern void nfs4_put_lock_state(struct nfs4_lock_state *lsp); extern int nfs4_set_lock_state(struct nfs4_state *state, struct file_lock *fl); extern int nfs4_select_rw_stateid(nfs4_stateid *, struct nfs4_state *, fmode_t, const struct nfs_lockowner *); extern struct nfs_seqid *nfs_alloc_seqid(struct nfs_seqid_counter *counter, gfp_t gfp_mask); extern int nfs_wait_on_sequence(struct nfs_seqid *seqid, struct rpc_task *task); extern void nfs_increment_open_seqid(int status, struct nfs_seqid *seqid); extern void nfs_increment_lock_seqid(int status, struct nfs_seqid *seqid); extern void nfs_release_seqid(struct nfs_seqid *seqid); extern void nfs_free_seqid(struct nfs_seqid *seqid); extern void nfs4_free_lock_state(struct nfs_server *server, struct nfs4_lock_state *lsp); extern const nfs4_stateid zero_stateid; /* nfs4super.c */ struct nfs_mount_info; extern struct nfs_subversion nfs_v4; struct dentry *nfs4_try_mount(int, const char *, struct nfs_mount_info *, struct nfs_subversion *); extern bool nfs4_disable_idmapping; extern unsigned short max_session_slots; extern unsigned short send_implementation_id; #define NFS4_CLIENT_ID_UNIQ_LEN (64) extern char nfs4_client_id_uniquifier[NFS4_CLIENT_ID_UNIQ_LEN]; /* nfs4sysctl.c */ #ifdef CONFIG_SYSCTL int nfs4_register_sysctl(void); void nfs4_unregister_sysctl(void); #else static inline int nfs4_register_sysctl(void) { return 0; } static inline void nfs4_unregister_sysctl(void) { } #endif /* nfs4xdr.c */ extern struct rpc_procinfo nfs4_procedures[]; struct nfs4_mount_data; /* callback_xdr.c */ extern struct svc_version nfs4_callback_version1; extern struct svc_version nfs4_callback_version4; static inline void nfs4_stateid_copy(nfs4_stateid *dst, const nfs4_stateid *src) { memcpy(dst, src, sizeof(*dst)); } static inline bool nfs4_stateid_match(const nfs4_stateid *dst,
null
null
null
null
null
null
github_plus_top10pct_by_avg
const nfs4_stateid *src) { return memcmp(dst, src, sizeof(*dst)) == 0; } static inline bool nfs4_valid_open_stateid(const struct nfs4_state *state) { return test_bit(NFS_STATE_RECOVERY_FAILED, &state->flags) == 0; } #else #define nfs4_close_state(a, b) do { } while (0) #define nfs4_close_sync(a, b) do { } while (0) #endif /* CONFIG_NFS_V4 */ #endif /* __LINUX_FS_NFS_NFS4_FS.H */ '------------------------------------------------------------------------------ ' <auto-generated> ' This code was generated by a tool. ' Runtime Version:4.0.20928.1 ' ' Changes to this file may cause incorrect behavior and will be lost if ' the code is regenerated. ' </auto-generated> '------------------------------------------------------------------------------ Option Strict On Option Explicit On Imports System 'This class was auto-generated by the StronglyTypedResourceBuilder 'class via a tool like ResGen or Visual Studio. 'To add or remove a member, edit your .ResX file then rerun ResGen 'with the /str option, or rebuild your VS project. '''<summary> ''' A strongly-typed resource class, for looking up localized strings, etc. '''</summary> <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _ Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _ Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _ Friend Class Resources Private Shared resourceMan As Global.System.Resources.ResourceManager Private Shared resourceCulture As Global.System.Globalization.CultureInfo <Global.System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")> _ Friend Sub New() MyBase.New End Sub '''<summary> ''' Returns the cached ResourceManager instance used by this class. '''</summary> <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _ Frien
null
null
null
null
null
null
github_plus_top10pct_by_avg
d Shared ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager Get If Object.ReferenceEquals(resourceMan, Nothing) Then Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Resources", GetType(Resources).Assembly) resourceMan = temp End If Return resourceMan End Get End Property '''<summary> ''' Overrides the current thread's CurrentUICulture property for all ''' resource lookups using this strongly typed resource class. '''</summary> <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _ Friend Shared Property Culture() As Global.System.Globalization.CultureInfo Get Return resourceCulture End Get Set resourceCulture = value End Set End Property '''<summary> ''' Looks up a localized string similar to Apples. '''</summary> Friend Shared ReadOnly Property Apples() As String Get Return ResourceManager.GetString("Apples", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to Bananas. '''</summary> Friend Shared ReadOnly Property Bananas() As String Get Return ResourceManager.GetString("Bananas", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to Bears. '''</summary> Friend Shared ReadOnly Property Bears() As String Get Return ResourceManager.GetString("Bears", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to Both in and out parameters should not be specified. '''</summary> Friend Shared ReadOnly Property BothInOutParamsIllegal() As String Get Return ResourceManager.GetString("BothInO
null
null
null
null
null
null
github_plus_top10pct_by_avg
utParamsIllegal", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to Empty string is not accepted. '''</summary> Friend Shared ReadOnly Property EmptyStringIllegal() As String Get Return ResourceManager.GetString("EmptyStringIllegal", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to EventArgs are required. '''</summary> Friend Shared ReadOnly Property EventArgsRequired() As String Get Return ResourceManager.GetString("EventArgsRequired", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to Both in and out parameters can not be NULL. '''</summary> Friend Shared ReadOnly Property InOutParamCantBeNULL() As String Get Return ResourceManager.GetString("InOutParamCantBeNULL", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to In parameter may not be specified. '''</summary> Friend Shared ReadOnly Property InParamIllegal() As String Get Return ResourceManager.GetString("InParamIllegal", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to Value should be between 0 and {0}. '''</summary> Friend Shared ReadOnly Property InvalidIndex() As String Get Return ResourceManager.GetString("InvalidIndex", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to Lions. '''</summary> Friend Shared ReadOnly Property Lions() As String Get Return ResourceManager.GetString("Lions", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to My DropDown Combo. '''</summary> Friend Shared ReadOnly Property My
null
null
null
null
null
null
github_plus_top10pct_by_avg
DropDownCombo() As String Get Return ResourceManager.GetString("MyDropDownCombo", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to My Dynamic Combo. '''</summary> Friend Shared ReadOnly Property MyDynamicCombo() As String Get Return ResourceManager.GetString("MyDynamicCombo", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to My Index Combo. '''</summary> Friend Shared ReadOnly Property MyIndexCombo() As String Get Return ResourceManager.GetString("MyIndexCombo", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to My MRU Combo. '''</summary> Friend Shared ReadOnly Property MyMRUCombo() As String Get Return ResourceManager.GetString("MyMRUCombo", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to Oranges. '''</summary> Friend Shared ReadOnly Property Oranges() As String Get Return ResourceManager.GetString("Oranges", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to Out parameter can not be NULL. '''</summary> Friend Shared ReadOnly Property OutParamRequired() As String Get Return ResourceManager.GetString("OutParamRequired", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to Parameter must be either index or valid string in list. '''</summary> Friend Shared ReadOnly Property ParamMustBeValidIndexOrStringInList() As String Get Return ResourceManager.GetString("ParamMustBeValidIndexOrStringInList", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to Parame
null
null
null
null
null
null
github_plus_top10pct_by_avg
ter must be valid string in list. '''</summary> Friend Shared ReadOnly Property ParamNotValidStringInList() As String Get Return ResourceManager.GetString("ParamNotValidStringInList", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to Pears. '''</summary> Friend Shared ReadOnly Property Pears() As String Get Return ResourceManager.GetString("Pears", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to Tigers. '''</summary> Friend Shared ReadOnly Property Tigers() As String Get Return ResourceManager.GetString("Tigers", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to Zoom to Fit. '''</summary> Friend Shared ReadOnly Property Zoom_to_Fit() As String Get Return ResourceManager.GetString("Zoom_to_Fit", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to Zoom factor must be &gt; 0. '''</summary> Friend Shared ReadOnly Property ZoomMustBeGTZero() As String Get Return ResourceManager.GetString("ZoomMustBeGTZero", resourceCulture) End Get End Property '''<summary> ''' Looks up a localized string similar to ZoomToFit. '''</summary> Friend Shared ReadOnly Property ZoomToFit() As String Get Return ResourceManager.GetString("ZoomToFit", resourceCulture) End Get End Property End Class { "images" : [ { "idiom" : "universal", "scale" : "1x" }, { "idiom" : "universal", "filename" : "input_emoji_delete_44x44_@2x.png", "scale" : "2x" }, { "idiom" : "universal", "filename" : "input_emoji_delete_44x44_@3x.png", "scale" : "3x" } ], "info" : { "version" : 1, "author" : "xcode
null
null
null
null
null
null
github_plus_top10pct_by_avg
" } } #!/usr/bin/python # Copyright (c) 2012 Google Inc. 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 fh = open(sys.argv[1], 'w') filenames = sys.argv[2:] for filename in filenames: subfile = open(filename) data = subfile.read() subfile.close() fh.write(data) fh.close() SOCKS ===== [![GoDoc](https://godoc.org/h12.io/socks?status.svg)](https://godoc.org/h12.io/socks) SOCKS is a SOCKS4, SOCKS4A and SOCKS5 proxy package for Go. ## Quick Start ### Get the package go get -u "h12.io/socks" ### Import the package import "h12.io/socks" ### Create a SOCKS proxy dialling function dialSocksProxy := socks.Dial("socks5://127.0.0.1:1080?timeout=5s") tr := &http.Transport{Dial: dialSocksProxy} httpClient := &http.Client{Transport: tr} ### User/password authentication dialSocksProxy := socks.Dial("socks5://user:password@127.0.0.1:1080?timeout=5s") ## Example ```go package main import ( "fmt" "io/ioutil" "log" "net/http" "h12.io/socks" ) func main() { dialSocksProxy := socks.Dial("socks5://127.0.0.1:1080?timeout=5s") tr := &http.Transport{Dial: dialSocksProxy} httpClient := &http.Client{Transport: tr} resp, err := httpClient.Get("http://www.google.com") if err != nil { log.Fatal(err) } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { log.Fatal(resp.StatusCode) } buf, err := ioutil.ReadAll(resp.Body) if err != nil { log.Fatal(err) } fmt.Println(string(buf)) } ``` /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _FIPS_H #define _FIPS_H #ifdef CONFIG_CRYPTO_FIPS extern int fips_enabled; #else #define fips_enabled 0 #endif #endif /** * Removes `key` and its value from the hash. * * @private * @name delete * @memberOf Hash * @param {Object} hash The hash to modify. * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete(key) { var result = this.
null
null
null
null
null
null
github_plus_top10pct_by_avg
has(key) && delete this.__data__[key]; this.size -= result ? 1 : 0; return result; } module.exports = hashDelete; library IEEE user IEEE.std_logic_1164.all; use IEEE.numeric_std.all; entity COUNT16 is port ( cOut :out std_logic_vector(15 downto 0); -- counter output clkEn :in std_logic; -- count enable clk :in std_logic; -- clock input rst :in std_logic -- reset input ); end entity; architecture count_rtl of COUNT16 is signal count :std_logic_vector (15 downto 0); begin process (clk, rst) begin if(rst = '1') then count <= (others=>'0'); elsif(rising_edge(clk)) then if(clkEn = '1') then count <= count + 1; end if; end if; end process; cOut <= count; end architecture; # PlON Compute all the orthonormalized Legendre polynomials. # Usage call PlON (`p`, `lmax`, `z`, `exitstatus`) # Parameters `p` : output, real(dp), dimension (`lmax`+1) : An array of orthonormalized Legendre polynomials up to degree `lmax`. Degree `l` corresponds to array index `l+1`. `lmax` : input, integer : The maximum degree of the Legendre polynomials to be computed. `z` : input, real(dp) : The argument of the Legendre polynomial. # Description `PlON` will calculate all of the orthonormalized Legendre polynomials up to degree `lmax` for a given argument. These are calculated using a standard three-term recursion formula. The integral of the orthonormalized normalized Legendre polynomials over the interval [-1, 1] is 2/(4pi). `exitstatus` : output, optional, integer : If present, instead of executing a STOP when an error is encountered, the variable exitstatus will be returned describing the error. 0 = No errors; 1 = Improper dimensions of input array; 2 = Improper bounds for input variable; 3 = Error allocating memory; 4 = File IO error. # See also [plb
null
null
null
null
null
null
github_plus_top10pct_by_avg
ar](plbar.html), [plbar_d1](plbar_d1.html), [plmbar](plmbar.html), [plmbar_d1](plmbar_d1.html), [plon_d1](plon_d1.html), [plmon](plmon.html), [plmon_d1](plmon_d1.html), [plschmidt](plschmidt.html), [plschmidt_d1](plschmidt_d1.html), [plmschmidt](plmschmidt.html), [plmschmidt_d1](plmschmidt_d1.html), [plegendre](plegendre.html), [plegendre_d1](plegendre_d1.html), [plegendrea](plegendrea.html), [plegendrea_d1](plegendrea_d1.html) #ifndef _ASM_X86_BYTEORDER_H #define _ASM_X86_BYTEORDER_H #include <linux/byteorder/little_endian.h> #endif /* _ASM_X86_BYTEORDER_H */ include $(top_srcdir)/config/Makefile.for.ROSE.includes.and.libs # . is necessary to ensure building the translator before building the tests SUBDIRS = . tests difftests AM_CPPFLAGS = $(ROSE_INCLUDES) bin_PROGRAMS = autoPar autoPar_SOURCES = autoPar.C autoParSupport.C LDADD = $(LIBS_WITH_RPATH) $(ROSE_LIBS) LDFLAGS = $(ROSE_RPATHS) EXTRA_DIST = README makefile.external autoParSupport.h clean-local: rm -rf autoPar rose_*.* <?xml version='1.0'?> <gl_extension name="GL_GREMEDY_frame_terminator" reg_no="345"> <functions> <function name="glFrameTerminatorGREMEDY" return="void"/> </functions> </gl_extension> /* Copyright JS Foundation and other contributors, http://js.foundation * * 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. */ var a = new Int32Array([1, 2, 3, 4, 5]); var b = new Int32Array(5); try { a.set(b, 123456); assert(1 === 0); // Should not get here. } catch (e) { assert(e instanceof RangeError); } b.set(a); assert(b.jo
null
null
null
null
null
null
github_plus_top10pct_by_avg
in() === '1,2,3,4,5'); try { b.set(a, 1); assert(1 === 0); // Should not get here. } catch (e) { assert(e instanceof RangeError); } b.set(new Int32Array([99, 98]), 2); assert(b.join() === '1,2,99,98,5'); b.set(new Int32Array([99, 98, 97]), 2); assert(b.join() === '1,2,99,98,97'); try { b.set(new Int32Array([99, 98, 97, 96]), 2); assert(1 === 0); // Should not get here. } catch (e) { assert(e instanceof RangeError); } try { b.set([101, 102, 103, 104], 4); assert(1 === 0); // Should not get here. } catch (e) { assert(e instanceof RangeError); } // ab = [ 0, 1, 2, 3, 4, 5, 6, 7 ] // a1 = [ ^, ^, ^, ^, ^, ^, ^, ^ ] // a2 = [ ^, ^, ^, ^ ] var ab = new ArrayBuffer(8); var a1 = new Uint8Array(ab); for (var i = 0; i < a1.length; i += 1) { a1.set([i], i); } var a2 = new Uint8Array(ab, 4); a1.set(a2, 2); assert(a1.join() === '0,1,4,5,6,7,6,7'); assert(a2.join() === '6,7,6,7'); var a3 = new Uint32Array(ab, 4); a1.set(a3, 2); assert(a1.join() === '0,1,6,5,6,7,6,7'); assert(a3.join() === '117835526'); var a4 = new Uint8Array(ab, 0, 4); a1.set(a4, 2); assert(a1.join() === '0,1,0,1,6,5,6,7'); assert(a4.join() === '0,1,0,1'); var a5 = new Uint32Array(ab, 4, 1); a1.set(a5, 2); assert(a1.join() === '0,1,6,1,6,5,6,7'); assert(a5.join() === '117835014'); var c = new Int32Array([0xFFFFFFFF]); var d = new Uint8Array(4); d.set(c); assert(d.join() === '255,0,0,0'); var e = new Float32Array([3.33]); var f = new Uint8Array(1); f.set(e); assert(f.join() === '3'); e.set(f); assert(e.join() === '3'); python-coveralls coverage nose /** * @file lexer.js * @author clark-t (clarktanglei@163.com) * @description 词法分析器 */ /** * 格式化规则 * * @typedef {Array} Rule * @param {Function} Rule[0] 执行规则的方法 * @param {*} Rule[1] 规则描述对象 */ /** * AST 节点对象 * * @typedef {Object} ASTNode * @property {string} type AST 节点类型描述 */ /** * 对字符串解析的结果做缓存处理 * * @param {Function} callback 字符串解析回调 * @p
null
null
null
null
null
null
github_plus_top10pct_by_avg
aram {Function} 包装好的字符串解析回调 */ function memoize (callback) { /** * 根据规则来处理当前字符串的回调函数 * * @param {Walker} walker 字符串源码读取工具 * @param {Rule} rule 字符串解析规则 * @return {ASTNode} 字符串解析得到的 AST 对象 */ return (walker, rule) => { // 当查询到有解析结果时,直接返回缓存的解析结果 let index = walker.index let record = walker.query(rule, index) if (record) { return record[3] } // 否则执行回调处理字符串,并对解析结果进行存储 let result = callback(walker, rule) walker.record(rule, index, walker.index, result) return result } } /** * 当字符串使用当前规则解析失败时,将字符串解析下标恢复到原先的状态 * * @param {Function} callback 字符串解析回调 * @return {Function} 包装好的字符串解析回调 */ function restorable (callback) { return (walker, rule) => { let index = walker.index let result = callback(walker, rule) // 解析失败只有 undefined(被动解析失败)false(lexer 规则主动判定失败)两种 // 遇到解析失败时,直接回滚 index if (result === undefined || result === false) { walker.index = index } return result } } /** * 对规则属性的工厂方法执行结果做缓存处理 * * @param {Function} callback 字符串解析回调 * @params {Array.<string>} keys 需要缓存的属性列表 * @return {Function} 包装好的字符串解析回调 */ function singleton (callback, keys) { let caches = {} return (walker, rule) => { let cache = caches[rule.type] if (!cache) { cache = rule for (let key of keys) { if (typeof cache[key] === 'function') { cache[key] = cache[key]() } } caches[rule.type] = cache } return callback(walker, cache) } } /** * 对字符串执行解析规则 * * @param {Walker} walker 表达式字符串读�
null
null
null
null
null
null
github_plus_top10pct_by_avg
��工具 * @param {Rule} rule 解析规则 * @return {ASTNode|undefined|false} 解析得到 AST */ export function run (walker, rule) { return rule[0](walker, rule[1]) } /** * 顺序执行规则列表,当其中某条规则解析错误时,则整体解析失败,同时回滚字符串解析下标 * * @param {Walker} walker 表达式字符串读取工具 * @param {Array.<Rule>} rules 解析规则列表 * @return {ASTNode|false} 解析得到的 AST */ export const seq = restorable((walker, rules) => { if (typeof rules[0] === 'function') { return run(walker, rules) } let results = [] for (let node of rules) { let result = run(walker, node) if (result === false) { return false } results.push(result) } return results }) /** * 顺序执行规则列表,当其中某条规则解析成功时,则直接返回该解析结果,全部规则解析失败时,则整体解析失败,同时回滚字符串解析下标 * * @param {Walker} walker 表达式字符串读取工具 * @param {Array.<Rule>} rules 解析规则列表 * @return {ASTNode|false} 解析得到的 AST */ export const or = (walker, rules) => { let index = walker.index for (let node of rules) { let result = run(walker, node) if (result !== false) { return result } walker.index = index } return false } /** * zero or more * * @param {Walker} walker 表达式字符串读取工具 * @param {Rule} rule 解析规则 * @return {ASTNode|undefined} 解析得到的 AST */ export const any = (walker, rule) => { let results = [] while (!walker.end()) { let result = seq(walker, rule) if (result === false) { break } results.push(result) } return results } /** * one or more * * @param {Walker} walker 表达式字符串读取工具 * @param {Rule} rule 解析规则 * @return {ASTNode|false} 解析得到的 AST */ export const some = (walker, rule) => { let results = [] while (!walker.end()) { let result = seq(walker, rule) if (result =
null
null
null
null
null
null
github_plus_top10pct_by_avg
== false) { break } results.push(result) } return results.length ? results : false } /** * zero or one * * @param {Walker} walker 表达式字符串读取工具 * @param {Rule} rule 解析规则 * @return {ASTNode|undefined} 解析得到的 AST */ export const opt = (walker, rule) => { return seq(walker, rule) || undefined } /** * 当匹配到该规则时,则判定为解析失败,反之则解析成功 * * @param {Walker} walker 表达式字符串读取工具 * @param {Rule} rule 解析规则 * @return {undefined|false} 成功时返回 undefined,反之则返回 false */ export const not = restorable((walker, rule) => { let result = seq(walker, rule) return result === false ? undefined : false }) /** * 规则定义描述对象 * * @typedef {Object} RuleDescriptor * @property {string} type 规则名称 * @property {Rule|() => Rule} rule 匹配规则 * @property {Function} match 规则匹配成功后的回调函数 * @property {Rule|() => Rule} fallback 规则匹配失败时的降级规则 */ /** * 定义规则 * * @param {Walker} walker 表达式字符串读取工具 * @param {RuleDescriptor} descriptor 规则描述对象 * @return {ASTNode|undefined|false} 解析得到的 AST */ export const def = memoize(singleton( (walker, descriptor) => { let index = walker.index const {rule, match, type, fallback} = descriptor let result = seq(walker, rule) if (result !== false && match) { result = match(result, walker) } if (result === false && fallback) { walker.index = index return seq(walker, fallback) } if (result && !result.type) { result.type = type } return result }, ['rule', 'fallback'] )) /** * 文本匹配 * * @param {Walker} walker 表达式字符串读取工具 * @param {string} pattern 要匹配的字符串 * @return {ASTNode|false} 解析得到的 AST,匹配失败时返回 false */ export const text = memoize( (walker, pattern) => { let match = walker.matchText(patte
null
null
null
null
null
null
github_plus_top10pct_by_avg
rn) return match ? {raw: pattern} : false } ) /** * 正则匹配 * * @param {Walker} walker 表达式字符串读取工具 * @param {RegExp} pattern 正则表达式 * @return {ASTNode|false} 解析得到的 AST,匹配失败时返回 false */ export const regexp = memoize( (walker, pattern) => { let match = walker.matchRegExp(pattern) return match ? {raw: match[0]} : false } ) /** * 字符串词法分析类 */ export default class Lexer { constructor () { this.types = {} } /** * 定义规则 * * @param {Descriptor} descriptor 规则描述对象 * @return {Rule} 结构化规则对象 */ set (descriptor) { let item = [def, descriptor] this.types[descriptor.type] = item return item } /** * 读取规则 * * @param {string} 规则名称 * @return {Rule} 结构化规则对象 */ get (type) { return this.types[type] } } /* This samples shows the creation of a multi-level directory which has the same name for each of the directory level. Before this date multi-level directory with same name on each level will only create the first level Example:: dir = new Directory("../testfiles/dir_test/dir_test/dir_test/dir_test/dir_test") dir.Create() The above example will only create the directory ``"../testfiles/dir_test/"`` neglecting all the sub level directory with the same name **dir_test** This issue has been resolve in the following commit https://github.com/simple-lang/simple/commit/f45af071ee49ef37d80e88b141adae1e82a1cac0 :copyright: 2018-2019, Azeez Adewale :license: MIT License Copyright (c) 2018 simple :author: Azeez Adewale <azeezadewale98@gmail.com> :date: March 23 2019 :filename: create_directory.sim */ from simple.core.Object from simple.util.Console from simple.io.Directory block main() dir = new Directory("../testfiles/dir_test/dir_test/dir_test/dir_test/dir_test") stdout.Println(dir) dir.Create() #ifndef _MBEDTLS_DEBUG_H_ #define _MBEDTLS_DEBUG_H_ #include "osapi.h" #defi
null
null
null
null
null
null
github_plus_top10pct_by_avg
ne MBEDTLS_SSL_DEBUG_MSG( level, args ) os_printf args; #define MBEDTLS_SSL_DEBUG_RET( level, ... ) os_printf (__VA_ARGS__); #define MBEDTLS_SSL_DEBUG_BUF( level, ... ) os_printf (__VA_ARGS__); #define MBEDTLS_SSL_DEBUG_MPI( level, text, X ) do { } while( 0 ) #define MBEDTLS_SSL_DEBUG_ECP( level, text, X ) do { } while( 0 ) #define MBEDTLS_SSL_DEBUG_CRT( level, text, crt ) do { } while( 0 ) #endif // Copyright (c) 2014 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/network_activity_monitor.h" namespace net { namespace { base::LazyInstance<NetworkActivityMonitor>::Leaky g_network_activity_monitor = LAZY_INSTANCE_INITIALIZER; } // namespace NetworkActivityMonitor::NetworkActivityMonitor() : bytes_received_(0), bytes_sent_(0) { } NetworkActivityMonitor::~NetworkActivityMonitor() = default; // static NetworkActivityMonitor* NetworkActivityMonitor::GetInstance() { return g_network_activity_monitor.Pointer(); } void NetworkActivityMonitor::IncrementBytesReceived(uint64_t bytes_received) { base::TimeTicks now = base::TimeTicks::Now(); base::AutoLock lock(lock_); bytes_received_ += bytes_received; last_received_ticks_ = now; } void NetworkActivityMonitor::IncrementBytesSent(uint64_t bytes_sent) { base::TimeTicks now = base::TimeTicks::Now(); base::AutoLock lock(lock_); bytes_sent_ += bytes_sent; last_sent_ticks_ = now; } uint64_t NetworkActivityMonitor::GetBytesReceived() const { base::AutoLock lock(lock_); return bytes_received_; } uint64_t NetworkActivityMonitor::GetBytesSent() const { base::AutoLock lock(lock_); return bytes_sent_; } base::TimeDelta NetworkActivityMonitor::GetTimeSinceLastReceived() const { base::TimeTicks now = base::TimeTicks::Now(); base::AutoLock lock(lock_); return now - last_received_ticks_; } base::TimeDelta NetworkActivityMonitor::GetTimeSinceLastSent() const {
null
null
null
null
null
null
github_plus_top10pct_by_avg
base::TimeTicks now = base::TimeTicks::Now(); base::AutoLock lock(lock_); return now - last_sent_ticks_; } } // namespace net fileFormatVersion: 2 guid: e4732e1210a3d39459db8b431f866659 timeCreated: 1492527856 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: /* * 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.nifi.controller.state; import org.apache.nifi.web.api.dto.StateEntryDTO; import java.text.Collator; import java.util.Comparator; import java.util.Locale; public class SortedStateUtils { /** * The maximum number of state entries to return to a client */ public static final int MAX_COMPONENT_STATE_ENTRIES = 500; /** * Gets a comparator for comparing state entry keys. * * @return comparator for comparing state entry keys */ public static Comparator<String> getKeyComparator() { final Collator collator = Collator.getInstance(Locale.US); return new Comparator<String>() { @Override public int compare(String s1, String s2) { return collator.compare(s1, s2); } }; } /** * Gets a comparato
null
null
null
null
null
null
github_plus_top10pct_by_avg
r for comparing state entry keys. * * @return comparator for comparing state entry keys */ public static Comparator<StateEntryDTO> getEntryDtoComparator() { final Collator collator = Collator.getInstance(Locale.US); return new Comparator<StateEntryDTO>() { @Override public int compare(StateEntryDTO o1, StateEntryDTO o2) { return collator.compare(o1.getKey(), o2.getKey()); } }; } } # Change Log All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. <a name="1.7.2"></a> ## [1.7.2](https://github.com/sarneeh/reaptcha/compare/v1.7.1...v1.7.2) (2019-12-28) ### Bug Fixes - update component on className change ([3a376d4](https://github.com/sarneeh/reaptcha/commit/3a376d4)), closes [#189](https://github.com/sarneeh/reaptcha/issues/189) <a name="1.7.1"></a> ## [1.7.1](https://github.com/sarneeh/reaptcha/compare/v1.7.0...v1.7.1) (2019-12-28) ### Bug Fixes - add getResponse method ([ab57db7](https://github.com/sarneeh/reaptcha/commit/ab57db7)) <a name="1.7.0"></a> # [1.7.0](https://github.com/sarneeh/reaptcha/compare/v1.6.0...v1.7.0) (2019-10-20) ### Bug Fixes - add missing render prop ([2137d81](https://github.com/sarneeh/reaptcha/commit/2137d81)) - cant call this.props.children cause getResponse missing ([77ee190](https://github.com/sarneeh/reaptcha/commit/77ee190)) - resolve and reject not defined ([eac3a13](https://github.com/sarneeh/reaptcha/commit/eac3a13)) ### Features - added getResponse to types ([33d6d16](https://github.com/sarneeh/reaptcha/commit/33d6d16)) - exposed getResponse ([c0793aa](https://github.com/sarneeh/reaptcha/commit/c0793aa)) <a name="1.5.1"></a> ## [1.5.1](https://github.com/sarneeh/reaptcha/compare/v1.5.0...v1.5.1) (2019-06-28) **Note:** Version bump only for package reaptcha <a name="1.5.0"></a> # [1.5.0](https://github.com/sarneeh/reaptcha/compare/v1.4.2...v1.5.0) (2019-05-25) ##
null
null
null
null
null
null
github_plus_top10pct_by_avg
# Bug Fixes - **theme:** support invisible dark mode ([44c6c82](https://github.com/sarneeh/reaptcha/commit/44c6c82)) <a name="1.4.2"></a> ## [1.4.2](https://github.com/sarneeh/reaptcha/compare/v1.4.1...v1.4.2) (2019-01-18) ### Bug Fixes - script detection ([5634d35](https://github.com/sarneeh/reaptcha/commit/5634d35)), closes [#18](https://github.com/sarneeh/reaptcha/issues/18) <a name="1.4.1"></a> ## [1.4.1](https://github.com/sarneeh/reaptcha/compare/v1.4.0...v1.4.1) (2019-01-11) **Note:** Version bump only for package reaptcha <a name="1.4.0"></a> # [1.4.0](https://github.com/sarneeh/reaptcha/compare/v1.3.0...v1.4.0) (2018-10-25) ### Bug Fixes - ava tests on babel 7 ([4370fc6](https://github.com/sarneeh/reaptcha/commit/4370fc6)) - babel-loader version bump breaking build ([2ed8d81](https://github.com/sarneeh/reaptcha/commit/2ed8d81)) - better test when hl parameter is not specified ([eed56be](https://github.com/sarneeh/reaptcha/commit/eed56be)) - if hl param is specified, inject it in script ([2ad96a8](https://github.com/sarneeh/reaptcha/commit/2ad96a8)) - use props hl to init script to set up the correct language ([ebeb734](https://github.com/sarneeh/reaptcha/commit/ebeb734)) <a name="1.3.0"></a> # [1.3.0](https://github.com/sarneeh/reaptcha/compare/v1.2.1...v1.3.0) (2018-07-22) ### Bug Fixes - cleanup on unmount, removed deprecated react methods ([7c30ba4](https://github.com/sarneeh/reaptcha/commit/7c30ba4)), closes [#29](https://github.com/sarneeh/reaptcha/issues/29) [#28](https://github.com/sarneeh/reaptcha/issues/28) [#26](https://github.com/sarneeh/reaptcha/issues/26) - do not inject script when one already present ([5db105d](https://github.com/sarneeh/reaptcha/commit/5db105d)), closes [#18](https://github.com/sarneeh/reaptcha/issues/18) <a name="1.2.1"></a> ## [1.2.1](https://github.com/sarneeh/reaptcha/compare/v1.2.0...v1.2.1) (2018-07-04) ### Bug Fixes - default container classname ([d2071fa](https://github.com/sarneeh/reaptcha/commit/d2071fa)) <a name="1.2.0"></a> # [1.2.0](http
null
null
null
null
null
null
github_plus_top10pct_by_avg
s://github.com/sarneeh/reaptcha/compare/v1.1.0...v1.2.0) (2018-07-04) ### Features - **render:** language support with `hl` ([7bd5e90](https://github.com/sarneeh/reaptcha/commit/7bd5e90)) <a name="1.1.0"></a> # [1.1.0](https://github.com/sarneeh/reaptcha/compare/v1.0.0...v1.1.0) (2018-06-13) ### Features - make package usable in script tags ([c5ac515](https://github.com/sarneeh/reaptcha/commit/c5ac515)) <a name="1.1.0-beta.1"></a> # [1.1.0-beta.1](https://github.com/sarneeh/reaptcha/compare/v1.0.0...v1.1.0-beta.1) (2018-06-13) ### Features - make package usable in script tags ([ac0733a](https://github.com/sarneeh/reaptcha/commit/ac0733a)) <a name="1.1.0-beta.0"></a> # [1.1.0-beta.0](https://github.com/sarneeh/reaptcha/compare/v1.0.0...v1.1.0-beta.0) (2018-06-13) ### Features - make package usable in script tags ([ac0733a](https://github.com/sarneeh/reaptcha/commit/ac0733a)) <a name="1.0.0"></a> # [1.0.0](https://github.com/sarneeh/reaptcha/compare/v0.1.0-beta.1...v1.0.0) (2018-06-13) **Note:** Version bump only for package reaptcha <a name="0.1.0-beta.1"></a> # [0.1.0-beta.1](https://github.com/sarneeh/reaptcha/compare/v0.1.0-beta.0...v0.1.0-beta.1) (2018-06-13) ### Bug Fixes - don't reset on execution ([8047e1e](https://github.com/sarneeh/reaptcha/commit/8047e1e)) - reset recaptcha before execute ([e75a355](https://github.com/sarneeh/reaptcha/commit/e75a355)) <a name="0.1.0-beta.0"></a> # 0.1.0-beta.0 (2018-06-12) **Note:** Version bump only for package reaptcha --- layout: api title: "v2.1.1 JavaScript Library: L.mapbox.geocoder(id|url, options)" categories: api version: v2.1.1 permalink: /api/v2.1.1/l-mapbox-geocoder/ --- <h2 id="section-l-mapbox-geocoder">L.mapbox.geocoder(id|url, options)</h2> <p>A low-level interface to geocoding, useful for more complex uses and reverse-geocoding.</p> <table> <thead> <tr> <th>Options</th> <th>Value</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>id <em>or</em> url</td> <td>string</td> <td>Value must be <ul><li>A <a href="https://docs.map
null
null
null
null
null
null
github_plus_top10pct_by_avg
box.com/api/search/#geocoding">geocoder index ID</a>, e.g. <code>mapbox.places-v1</code></li><li>A geocoder API URL, like <code>{{site.tileApi}}/v4/geocode/mapbox.places-v1/{query}.json</code></li></ul></td> </tr> <tr> <td>options</td> <td>Object</td> <td>The second argument is optional. If provided, it may include: <ul><li><code>accessToken</code>: Mapbox API access token. Overrides <code><a href="/mapbox.js/api/v2.1.1/l-mapbox-accesstoken">L.mapbox.accessToken</a></code> for this geocoder.</li></ul></td> </tr> </tbody> </table> <p><em>Returns</em> a <code><a href="/mapbox.js/api/v2.1.1/l-mapbox-geocoder">L.mapbox.geocoder</a></code> object.</p> <h3 id="section-geocoder-query">geocoder.query(queryString, callback)</h3> <p>Queries the geocoder with a query string, and returns its result, if any.</p> <table> <thead> <tr> <th>Options</th> <th>Value</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>queryString (<em>required</em>)</td> <td>string</td> <td>a query, expressed as a string, like &#39;Arkansas&#39;</td> </tr> <tr> <td>callback (<em>required</em>)</td> <td>function</td> <td>a callback</td> </tr> </tbody> </table> <p>The callback is called with arguments</p> <ol> <li>An error, if any</li> <li><p>The result. This is an object with the following members:</p> <pre><code> { results: // raw results latlng: // a map-friendly latlng array bounds: // geojson-style bounds of the first result lbounds: // leaflet-style bounds of the first result } </code></pre></li> </ol> <p><em>Example</em>: <a href="https://www.mapbox.com/mapbox.js/example/v1.0.0/map-center-geocoding/">Live example of geocoder.query centering a map.</a></p> <p><em>Returns</em>: the geocoder object. The return value of this function is not useful - you must use a callback to get results.</p> <h3 id="section-geocoder-reversequery">geocoder.reverseQuery(location, callback)</h3> <p>Queries the geocoder with a location, and returns its result, if any.</p> <table> <thead> <tr> <th>Options</th> <th>Value</th> <th>Description</t
null
null
null
null
null
null
github_plus_top10pct_by_avg
h> </tr> </thead> <tbody> <tr> <td>location (<em>required</em>)</td> <td>object</td> <td>A query, expressed as an object:<ul><li><pre>[lon, lat] // an array of lon, lat</pre></li><li><pre>{ lat: 0, lon: 0 } // a lon, lat object</pre></li><li><pre>{ lat: 0, lng: 0 } // a lng, lat object</pre></li></ul> The first argument can also be an array of objects in that form to geocode more than one item.</td> </tr> <tr> <td>callback (<em>required</em>)</td> <td>function</td> <td>The callback is called with arguments <ul><li>An error, if any</li><li>The result. This is an object of the raw result from Mapbox.</li></ul></td> </tr> </tbody> </table> <p><em>Returns</em>: the geocoder object. The return value of this function is not useful - you must use a callback to get results.</p> // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {shallow} from 'enzyme'; import FeatureDiscovery from 'components/admin_console/feature_discovery/feature_discovery'; describe('components/feature_discovery', () => { describe('FeatureDiscovery', () => { test('should match snapshot', () => { const wrapper = shallow( <FeatureDiscovery featureName='test' titleID='translation.test.title' titleDefault='Foo' copyID='translation.test.copy' copyDefault={'Bar'} learnMoreURL='https://test.mattermost.com/secondary/' imgPath='foo/bar.png' // eslint-disable-next-line @typescript-eslint/naming-convention stats={{TOTAL_USERS: 20}} actions={{ requestTrialLicense: jest.fn(), getLicenseConfig: jest.fn(), }} />, ); expect(wrapper).toMatchSnapshot(); }); }); }); def main(): print('TEST SUCEEDED!') (function
null
null
null
null
null
null
github_plus_top10pct_by_avg
() { var a, b, c; }()); /// https://leetcode.com/problems/minimum-size-subarray-sum/description/ /// Author : liuyubobobo /// Time : 2017-11-13 // Sliding Window // Another Implementation // Time Complexity: O(n) // Space Complexity: O(1) public class Solution5 { public int minSubArrayLen(int s, int[] nums) { if(s <= 0 || nums == null) throw new IllegalArgumentException("Illigal Arguments"); int l = 0 , r = -1; // sliding window: nums[l...r] int sum = 0; int res = nums.length + 1; while(r + 1 < nums.length){ while(r + 1 < nums.length && sum < s) sum += nums[++r]; if(sum >= s) res = Math.min(res, r - l + 1); while(l < nums.length && sum >= s){ sum -= nums[l++]; if(sum >= s) res = Math.min(res, r - l + 1); } } return res == nums.length + 1 ? 0 : res; } public static void main(String[] args) { int[] nums = {2, 3, 1, 2, 4, 3}; int s = 7; System.out.println((new Solution5()).minSubArrayLen(s, nums)); } } using System; using System.Linq; using System.Collections.Generic; using System.Text; namespace Fonlow.DocComment { /// <summary> /// Helper functions of accessing doc comments of a method /// </summary> public class DocCommentHelper { public static string GetSummary(docMember m) { if (m == null || m.summary == null || m.summary.Text == null || m.summary.Text.Length == 0) { return null; } var noIndent = StringFunctions.TrimTrimIndentsOfArray(m.summary.Text); return String.Join(Environment.NewLine, noIndent); } public static string GetReturnComment(docMember m) { if (m == null || m.returns == null || m.returns.Text == null || m.returns.Text.Length == 0) { return null; } var noIndent = StringFunctions.TrimTrimIndentsOfArray(m.returns.Text); return String.Join(Environment.NewLine, noIndent); }
null
null
null
null
null
null
github_plus_top10pct_by_avg
public static string GetParameterComment(docMember m, string name) { if (m == null || m.param == null) { return null; } var mc = m.param.SingleOrDefault(d => d.name == name); if (mc == null || mc.Text == null || mc.Text.Length == 0) { return null; } var noIndent = StringFunctions.TrimTrimIndentsOfArray(mc.Text); return String.Join(Environment.NewLine, noIndent); } } } require 'ostruct' require 'erb' require 'rack/request' module Rack # Rack::ShowExceptions catches all exceptions raised from the app it # wraps. It shows a useful backtrace with the sourcefile and # clickable context, the whole Rack environment and the request # data. # # Be careful when you use this on public-facing sites as it could # reveal information helpful to attackers. class ShowExceptions CONTEXT = 7 def initialize(app) @app = app @template = ERB.new(TEMPLATE) end def call(env) @app.call(env) rescue StandardError, LoadError, SyntaxError => e backtrace = pretty(env, e) [500, {"Content-Type" => "text/html", "Content-Length" => backtrace.join.size.to_s}, backtrace] end def pretty(env, exception) req = Rack::Request.new(env) path = (req.script_name + req.path_info).squeeze("/") frames = exception.backtrace.map { |line| frame = OpenStruct.new if line =~ /(.*?):(\d+)(:in `(.*)')?/ frame.filename = $1 frame.lineno = $2.to_i frame.function = $4 begin lineno = frame.lineno-1 lines = ::File.readlines(frame.filename) frame.pre_context_lineno = [lineno-CONTEXT, 0].max frame.pre_context = lines[frame.pre_context_lineno...lineno] frame.context_line = lines[lineno].chomp frame.post_context_lineno = [lineno+CONTEXT, lines.size].min frame.post_context = lines[lineno+1..frame.post_context_lineno] rescue end frame else
null
null
null
null
null
null
github_plus_top10pct_by_avg
nil end }.compact env["rack.errors"].puts "#{exception.class}: #{exception.message}" env["rack.errors"].puts exception.backtrace.map { |l| "\t" + l } env["rack.errors"].flush [@template.result(binding)] end def h(obj) # :nodoc: case obj when String Utils.escape_html(obj) else Utils.escape_html(obj.inspect) end end # :stopdoc: # adapted from Django <djangoproject.com> # Copyright (c) 2005, the Lawrence Journal-World # Used under the modified BSD license: # http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5 TEMPLATE = <<'HTML' <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="robots" content="NONE,NOARCHIVE" /> <title><%=h exception.class %> at <%=h path %></title> <style type="text/css"> html * { padding:0; margin:0; } body * { padding:10px 20px; } body * * { padding:0; } body { font:small sans-serif; } body>div { border-bottom:1px solid #ddd; } h1 { font-weight:normal; } h2 { margin-bottom:.8em; } h2 span { font-size:80%; color:#666; font-weight:normal; } h3 { margin:1em 0 .5em 0; } h4 { margin:0 0 .5em 0; font-weight: normal; } table { border:1px solid #ccc; border-collapse: collapse; background:white; } tbody td, tbody th { vertical-align:top; padding:2px 3px; } thead th { padding:1px 6px 1px 3px; background:#fefefe; text-align:left; font-weight:normal; font-size:11px; border:1px solid #ddd; } tbody th { text-align:right; color:#666; padding-right:.5em; } table.vars { margin:5px 0 2px 40px; } table.vars td, table.req td { font-family:monospace; } table td.code { width:100%;} table td.code div { overflow:hidden; } table.source th { color:#666; } table.source td { font-family:monospace; white-space:pre; border-bottom:1px
null
null
null
null
null
null
github_plus_top10pct_by_avg
solid #eee; } ul.traceback { list-style-type:none; } ul.traceback li.frame { margin-bottom:1em; } div.context { margin: 10px 0; } div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; } div.context ol li { font-family:monospace; white-space:pre; color:#666; cursor:pointer; } div.context ol.context-line li { color:black; background-color:#ccc; } div.context ol.context-line li span { float: right; } div.commands { margin-left: 40px; } div.commands a { color:black; text-decoration:none; } #summary { background: #ffc; } #summary h2 { font-weight: normal; color: #666; } #summary ul#quicklinks { list-style-type: none; margin-bottom: 2em; } #summary ul#quicklinks li { float: left; padding: 0 1em; } #summary ul#quicklinks>li+li { border-left: 1px #666 solid; } #explanation { background:#eee; } #template, #template-not-exist { background:#f6f6f6; } #template-not-exist ul { margin: 0 0 0 20px; } #traceback { background:#eee; } #requestinfo { background:#f6f6f6; padding-left:120px; } #summary table { border:none; background:transparent; } #requestinfo h2, #requestinfo h3 { position:relative; margin-left:-100px; } #requestinfo h3 { margin-bottom:-1em; } .error { background: #ffc; } .specific { color:#cc3300; font-weight:bold; } </style> <script type="text/javascript"> //<!-- function getElementsByClassName(oElm, strTagName, strClassName){ // Written by Jonathan Snook, http://www.snook.ca/jon; // Add-ons by Robert Nyman, http://www.robertnyman.com var arrElements = (strTagName == "*" && document.all)? document.all : oElm.getElementsByTagName(strTagName); var arrReturnElements = new Array(); strClassName = strClassName.replace(/\-/g, "\\-"); var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$$)"); var oElement; for(var i=0; i<arrElements.length; i++){ oElement = arrElements[i];
null
null
null
null
null
null
github_plus_top10pct_by_avg
if(oRegExp.test(oElement.className)){ arrReturnElements.push(oElement); } } return (arrReturnElements) } function hideAll(elems) { for (var e = 0; e < elems.length; e++) { elems[e].style.display = 'none'; } } window.onload = function() { hideAll(getElementsByClassName(document, 'table', 'vars')); hideAll(getElementsByClassName(document, 'ol', 'pre-context')); hideAll(getElementsByClassName(document, 'ol', 'post-context')); } function toggle() { for (var i = 0; i < arguments.length; i++) { var e = document.getElementById(arguments[i]); if (e) { e.style.display = e.style.display == 'none' ? 'block' : 'none'; } } return false; } function varToggle(link, id) { toggle('v' + id); var s = link.getElementsByTagName('span')[0]; var uarr = String.fromCharCode(0x25b6); var darr = String.fromCharCode(0x25bc); s.innerHTML = s.innerHTML == uarr ? darr : uarr; return false; } //--> </script> </head> <body> <div id="summary"> <h1><%=h exception.class %> at <%=h path %></h1> <h2><%=h exception.message %></h2> <table><tr> <th>Ruby</th> <td><code><%=h frames.first.filename %></code>: in <code><%=h frames.first.function %></code>, line <%=h frames.first.lineno %></td> </tr><tr> <th>Web</th> <td><code><%=h req.request_method %> <%=h(req.host + path)%></code></td> </tr></table> <h3>Jump to:</h3> <ul id="quicklinks"> <li><a href="#get-info">GET</a></li> <li><a href="#post-info">POST</a></li> <li><a href="#cookie-info">Cookies</a></li> <li><a href="#env-info">ENV</a></li> </ul> </div> <div id="traceback"> <h2>Traceback <span>(innermost first)</span></h2> <ul class="traceback"> <% frames.each { |frame| %> <li class="frame"> <code><%=h frame.filename %></code>: in <code><%=h frame.function %></code> <% if frame.context_line %> <div class="con
null
null
null
null
null
null
github_plus_top10pct_by_avg
text" id="c<%=h frame.object_id %>"> <% if frame.pre_context %> <ol start="<%=h frame.pre_context_lineno+1 %>" class="pre-context" id="pre<%=h frame.object_id %>"> <% frame.pre_context.each { |line| %> <li onclick="toggle('pre<%=h frame.object_id %>', 'post<%=h frame.object_id %>')"><%=h line %></li> <% } %> </ol> <% end %> <ol start="<%=h frame.lineno %>" class="context-line"> <li onclick="toggle('pre<%=h frame.object_id %>', 'post<%=h frame.object_id %>')"><%=h frame.context_line %><span>...</span></li></ol> <% if frame.post_context %> <ol start='<%=h frame.lineno+1 %>' class="post-context" id="post<%=h frame.object_id %>"> <% frame.post_context.each { |line| %> <li onclick="toggle('pre<%=h frame.object_id %>', 'post<%=h frame.object_id %>')"><%=h line %></li> <% } %> </ol> <% end %> </div> <% end %> </li> <% } %> </ul> </div> <div id="requestinfo"> <h2>Request information</h2> <h3 id="get-info">GET</h3> <% unless req.GET.empty? %> <table class="req"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <% req.GET.sort_by { |k, v| k.to_s }.each { |key, val| %> <tr> <td><%=h key %></td> <td class="code"><div><%=h val.inspect %></div></td> </tr> <% } %> </tbody> </table> <% else %> <p>No GET data.</p> <% end %> <h3 id="post-info">POST</h3> <% unless req.POST.empty? %> <table class="req"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <% req.POST.sort_by { |k, v| k.to_s }.each { |key, val| %> <tr> <td><%=h key %></td> <td class="code"><div><%=h val.inspect %></div></t
null
null
null
null
null
null
github_plus_top10pct_by_avg
d> </tr> <% } %> </tbody> </table> <% else %> <p>No POST data.</p> <% end %> <h3 id="cookie-info">COOKIES</h3> <% unless req.cookies.empty? %> <table class="req"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <% req.cookies.each { |key, val| %> <tr> <td><%=h key %></td> <td class="code"><div><%=h val.inspect %></div></td> </tr> <% } %> </tbody> </table> <% else %> <p>No cookie data.</p> <% end %> <h3 id="env-info">Rack ENV</h3> <table class="req"> <thead> <tr> <th>Variable</th> <th>Value</th> </tr> </thead> <tbody> <% env.sort_by { |k, v| k.to_s }.each { |key, val| %> <tr> <td><%=h key %></td> <td class="code"><div><%=h val %></div></td> </tr> <% } %> </tbody> </table> </div> <div id="explanation"> <p> You're seeing this error because you use <code>Rack::ShowException</code>. </p> </div> </body> </html> HTML # :startdoc: end end { "_from": "cached-path-relative@1.0.2", "_id": "cached-path-relative@1.0.2", "_inBundle": false, "_integrity": "sha512-5r2GqsoEb4qMTTN9J+WzXfjov+hjxT+j3u5K+kIVNIwAd99DLCJE9pBIMP1qVeybV6JiijL385Oz0DcYxfbOIg==", "_location": "/cached-path-relative", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, "raw": "cached-path-relative@1.0.2", "name": "cached-path-relative", "escapedName": "cached-path-relative", "rawSpec": "1.0.2", "saveSpec": null, "fetchSpec": "1.0.2" }, "_requiredBy": [ "/browserify", "/module-deps" ], "_resolved": "https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.0.2.tgz", "_shasum": "a13df4196d26776220cc3356eb147a52dba2c6db", "_spec": "cached-path-relative@1.0.2", "_where": "/Users/smohamed/work/git/splunk-s
null
null
null
null
null
null
github_plus_top10pct_by_avg
dk-javascript/node_modules/browserify", "bugs": { "url": "https://github.com/ashaffer/cached-path-relative/issues" }, "bundleDependencies": false, "dependencies": {}, "deprecated": false, "description": "Memoize the results of the path.relative function", "devDependencies": { "standard": "^4.0.0", "tape": "^4.2.0" }, "homepage": "https://github.com/ashaffer/cached-path-relative#readme", "license": "MIT", "main": "lib/index.js", "name": "cached-path-relative", "repository": { "type": "git", "url": "git://github.com/ashaffer/cached-path-relative.git" }, "version": "1.0.2" } /******************************************************************************/ /******************************************************************************/ class Obj : ObjData { static int ComparePtr(Obj*C &a, Obj*C &b); Area *area; bool selected, highlighted, invalid_refs, visible; // this should be reflection of the 'World.obj_visible' EDIT_OBJ_TYPE edit_type; MeshPtr mesh, mesh_proper; // 'mesh_proper' is set to proper MeshPtr to avoid reloading/unloading meshes in case they are empty because 'mesh' will be forced to 'WorldEdit.dummy_mesh' if empty int mesh_variation; PhysBodyPtr phys; ImagePtr icon; Particles particles; Vec light_col; flt light_angle, light_falloff; bool light_cast_shadows; ~Obj(); // get bool setInvalidRefs(); bool invalidRefs()C; cchar8* variationName()C; Matrix drawMatrix(); Vec pos(); Vec center(); bool getBox(Box &box); bool onGround(); bool embedded(); void getCol(Color &col_lit, Color&col_shape); PhysPath physPath()C; // operations void attach(WorldData &world, Area *a=null); void detach(); void setUpdatability(); void setVisibility(); void removeChanged(); void remove(); void create(C Obj &src); bool sync(C ObjData &src, c
null
null
null
null
null
null
github_plus_top10pct_by_avg
char *edit_path); bool undo(C ObjData &src, cchar *edit_path); Obj& setChangedEmbed(C VecI2 *area_xy=null); // must be called after 'changedObj' and before 'setChangedPaths' Obj& setChangedPaths(); // must be called after 'setChangedEmbed' Obj& setChanged(bool matrix=false); // this needs to be called after making all changes void setUndo(cptr type=WorldUndo::ObjType, bool as_new=false); void moveTo(C Vec &pos, cptr undo_type=WorldUndo::ObjType); void moveTo(C Matrix3 &orn, cptr undo_type=WorldUndo::ObjType); void moveTo(C Matrix &matrix, cptr undo_type=WorldUndo::ObjType); void scaleBy (flt f); void scaleXBy(flt f); void scaleYBy(flt f); void scaleZBy(flt f); void randomRot(); void resetRot(); void alignGrid(); void alignTerrain(bool force, cptr undo_type=WorldUndo::ObjType); void alignNormal(int axis=-1, flt blend=1); // update void update(); // draw bool skipDraw(); void draw(); void drawShadow(); void drawParticle(); void drawSelected(); void drawHelper(bool box, bool phys); // io void setDraw(); void setMeshVariation(); void setMeshPhys(); bool save(File &f); bool load(File &f); // 'setMeshPhys' doesn't need to be called because it will be called in 'attach->removeChanged' public: Obj(); }; /******************************************************************************/ /******************************************************************************/ /******************************************************************************/ define( [ "./arr" ], function( arr ) { "use strict"; return arr.slice; } ); <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Example - example-example56-debug</title> <script src="../../../angular.js"></script> </head> <body ng-app="bindExample"> <script> angular.module('bindExample', []) .controller('ExampleController', ['$scope', function($scope) { $scope.name = 'Whirled'; }]); </script> <div ng-con
null
null
null
null
null
null
github_plus_top10pct_by_avg
troller="ExampleController"> Enter name: <input type="text" ng-model="name"><br> Hello <span ng-bind="name"></span>! </div> </body> </html> using System.Collections.Generic; using System.Net.Http; namespace Apress.Recipes.WebApi { public static class HttpRequestMessageExtensions { private const string HttpContext = "MS_HttpContext"; private const string RemoteEndpointMessage = "System.ServiceModel.Channels.RemoteEndpointMessageProperty"; private const string OwinContext = "MS_OwinContext"; private const string OwinIp = "server.LocalIpAddress"; public static string GetClientIpAddress(this HttpRequestMessage request) { if (request.Properties.ContainsKey(HttpContext)) { dynamic ctx = request.Properties[HttpContext]; if (ctx != null) { return ctx.Request.UserHostAddress; } } if (request.Properties.ContainsKey(OwinContext)) { dynamic ctx = request.Properties[OwinContext]; if (ctx != null) { var env = ctx.Environment as IDictionary<string, object>; if (env != null) { return env[OwinIp] as string; } } } if (request.Properties.ContainsKey(RemoteEndpointMessage)) { dynamic remoteEndpoint = request.Properties[RemoteEndpointMessage]; if (remoteEndpoint != null) { return remoteEndpoint.Address; } } return null; } } } opengt set com 115200n81 set comecho off set senddelay 0.02 waitquiet 0.2 0.2 flash 0.1 :start send "AT+CGMI^m" get 1 "" $s print $s :continue exit 0 The MIT License (MIT) Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) Permission is hereby gr
null
null
null
null
null
null
github_plus_top10pct_by_avg
anted, 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. import 'package:sqflite_crud/models/todo.dart'; import 'package:sqflite_crud/repository/database_creator.dart'; class RepositoryServiceTodo { static Future<List<Todo>> getAllTodos() async { final sql = '''SELECT * FROM ${DatabaseCreator.todoTable} WHERE ${DatabaseCreator.isDeleted} = 0'''; final data = await db.rawQuery(sql); List<Todo> todos = List(); for (final node in data) { final todo = Todo.fromJson(node); todos.add(todo); } return todos; } static Future<Todo> getTodo(int id) async { //final sql = '''SELECT * FROM ${DatabaseCreator.todoTable} //WHERE ${DatabaseCreator.id} = $id'''; //final data = await db.rawQuery(sql); final sql = '''SELECT * FROM ${DatabaseCreator.todoTable} WHERE ${DatabaseCreator.id} = ?'''; List<dynamic> params = [id]; final data = await db.rawQuery(sql, params); final todo = Todo.fromJson(data.first); return todo; } static Future<void> addTodo(Todo todo) async { /*final sql = '''INSERT INTO ${DatabaseCreato
null
null
null
null
null
null
github_plus_top10pct_by_avg
r.todoTable} ( ${DatabaseCreator.id}, ${DatabaseCreator.name}, ${DatabaseCreator.info}, ${DatabaseCreator.isDeleted} ) VALUES ( ${todo.id}, "${todo.name}", "${todo.info}", ${todo.isDeleted ? 1 : 0} )''';*/ final sql = '''INSERT INTO ${DatabaseCreator.todoTable} ( ${DatabaseCreator.id}, ${DatabaseCreator.name}, ${DatabaseCreator.info}, ${DatabaseCreator.isDeleted} ) VALUES (?,?,?,?)'''; List<dynamic> params = [todo.id, todo.name, todo.info, todo.isDeleted ? 1 : 0]; final result = await db.rawInsert(sql, params); DatabaseCreator.databaseLog('Add todo', sql, null, result, params); } static Future<void> deleteTodo(Todo todo) async { /*final sql = '''UPDATE ${DatabaseCreator.todoTable} SET ${DatabaseCreator.isDeleted} = 1 WHERE ${DatabaseCreator.id} = ${todo.id} ''';*/ final sql = '''UPDATE ${DatabaseCreator.todoTable} SET ${DatabaseCreator.isDeleted} = 1 WHERE ${DatabaseCreator.id} = ? '''; List<dynamic> params = [todo.id]; final result = await db.rawUpdate(sql, params); DatabaseCreator.databaseLog('Delete todo', sql, null, result, params); } static Future<void> updateTodo(Todo todo) async { /*final sql = '''UPDATE ${DatabaseCreator.todoTable} SET ${DatabaseCreator.name} = "${todo.name}" WHERE ${DatabaseCreator.id} = ${todo.id} ''';*/ final sql = '''UPDATE ${DatabaseCreator.todoTable} SET ${DatabaseCreator.name} = ? WHERE ${DatabaseCreator.id} = ? '''; List<dynamic> params = [todo.name, todo.id]; final result = await db.rawUpdate(sql, params); DatabaseCreator.databaseLog('Update todo', sql, null, result, params); } static Future<int> todosCount() async { final data = await db.rawQuery('''SELECT COUNT(*) FROM ${DatabaseCreator.todoTable}'''); int count = data[0].values.elementAt(0); int idForNewItem = count++; return idForNewItem; } } import argparse import os from colle
null
null
null
null
null
null
github_plus_top10pct_by_avg
ctions import defaultdict import pandas import matplotlib.pyplot as plt def results_to_csv(inputs, out): results = defaultdict(list) keys = list() for fname in inputs: with open(fname) as fd: data = fd.read() data = data.split("\n") start = False key = os.path.basename(fname) key = key.split(".")[0].replace("-", " ").title() keys.append(key) for line in data: if not line: continue if start: line = line.split() if line[-1] != "NR": benchmark = line[0].strip() results[benchmark].append(float(line[2].strip())) elif line.startswith("-----"): start = True csvl = list() csvl.append( "benchmark,{}".format(','.join(keys))) csvl.extend( ["{},{}".format( k, ','.join(map(lambda x: str(x), results[k]))) for k in sorted(results)]) csvf = out + ".csv" with open(csvf, "w") as fd: fd.write("\n".join(csvl)) def ascii_pp(csvf): csvf = csvf + ".csv" df = pandas.read_csv(csvf) print(df) def to_latex(outf): csvf = outf + ".csv" df = pandas.read_csv(csvf) latexf = outf + ".tex" with open(latexf, "w") as fd: fd.write(df.to_latex()) def plot(outf): csvf = outf + ".csv" df = pandas.read_csv(csvf) df = df.set_index("benchmark") ax = df.plot.bar(rot=30, figsize=(12, 7)) ax.set_ylabel("Runtime (s)") plot = outf + ".pdf" fig = ax.get_figure() fig.savefig(plot) def plot_diff(outf): csvf = outf + ".csv" df = pandas.read_csv(csvf) df = df.set_index("benchmark") heads = list(df.columns.values) sidx = heads.index("Source Asan") bidx = heads.index("Binary Asan") vidx = heads.index("Valgrind") val = df.values bin_vs_src = 100.0 * ((val[:, bidx] - val[:, sidx]) / val[:, sidx]) bin_vs_vgrind = 100.0 * ((val[:, bidx] - val[:, vidx]) / val[:, bidx]) pr
null
null
null
null
null
null
github_plus_top10pct_by_avg
int(val) print(heads) print(bin_vs_src) print(bin_vs_vgrind) if __name__ == "__main__": argp = argparse.ArgumentParser() argp.add_argument( "out", type=str, help="Prefix name for outfile") argp.add_argument( "--inputs", nargs="+", help="SPEC result files to analyze") argp.add_argument( "--latex", action='store_true', help="Generate latex tables") argp.add_argument( "--plot", action='store_true', help="Generate plots") argp.add_argument( "--pp", action='store_true', help="Pretty print table") args = argp.parse_args() results_to_csv(args.inputs, args.out) if args.latex: to_latex(args.out) if args.pp: ascii_pp(args.out) if args.plot: plot(args.out) plot_diff(args.out) var assignValue = require('./_assignValue'), castPath = require('./_castPath'), isIndex = require('./_isIndex'), isObject = require('./isObject'), toKey = require('./_toKey'); /** * The base implementation of `_.set`. * * @private * @param {Object} object The object to modify. * @param {Array|string} path The path of the property to set. * @param {*} value The value to set. * @param {Function} [customizer] The function to customize path creation. * @returns {Object} Returns `object`. */ function baseSet(object, path, value, customizer) { if (!isObject(object)) { return object; } path = castPath(path, object); var index = -1, length = path.length, lastIndex = length - 1, nested = object; while (nested != null && ++index < length) { var key = toKey(path[index]), newValue = value; if (index != lastIndex) { var objValue = nested[key]; newValue = customizer ? customizer(objValue, key, nested) : undefined; if (newValue === undefined) { newValue = isObject(objValue) ? objValue : (isIndex(path[index + 1]) ? [] : {}); } } assignValue(nested, key, newValue); nested = nested[key]; } r
null
null
null
null
null
null
github_plus_top10pct_by_avg
eturn object; } module.exports = baseSet; { "name": "graceful-readlink", "version": "1.0.1", "description": "graceful fs.readlink", "main": "index.js", "repository": { "type": "git", "url": "git://github.com/zhiyelee/graceful-readlink.git" }, "homepage": "https://github.com/zhiyelee/graceful-readlink", "bugs": { "url": "https://github.com/zhiyelee/graceful-readlink/issues" }, "keywords": [ "fs.readlink", "readlink" ], "author": { "name": "zhiyelee" }, "license": "MIT", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "gitHead": "f6655275bebef706fb63fd01b5f062a7052419a5", "_id": "graceful-readlink@1.0.1", "_shasum": "4cafad76bc62f02fa039b2f94e9a3dd3a391a725", "_from": "graceful-readlink@>=1.0.0", "_npmVersion": "2.1.17", "_nodeVersion": "0.11.14", "_npmUser": { "name": "zhiyelee", "email": "zhiyelee@gmail.com" }, "maintainers": [ { "name": "zhiyelee", "email": "zhiyelee@gmail.com" } ], "dist": { "shasum": "4cafad76bc62f02fa039b2f94e9a3dd3a391a725", "size": 1531, "noattachment": false, "key": "graceful-readlink/-/graceful-readlink-1.0.1.tgz", "tarball": "http://registry.npm.alibaba-inc.com/graceful-readlink/download/graceful-readlink-1.0.1.tgz" }, "directories": {}, "publish_time": 1423714736538, "_cnpm_publish_time": 1423714736538, "_resolved": "http://registry.npm.alibaba-inc.com/graceful-readlink/download/graceful-readlink-1.0.1.tgz", "readme": "ERROR: No README data found!" } // +build linux darwin dragonfly freebsd netbsd openbsd // +build !appengine package msgp import ( "os" "syscall" ) // ReadFile reads a file into 'dst' using // a read-only memory mapping. Consequently, // the file must be mmap-able, and the // Unmarshaler should never write to // the source memory. (Methods generated // by the msgp tool obey that constraint, but // user-defined implementations may not.) // // Reading and writing through file mappings // is only efficie
null
null
null
null
null
null
github_plus_top10pct_by_avg
nt for large files; small // files are best read and written using // the ordinary streaming interfaces. // func ReadFile(dst Unmarshaler, file *os.File) error { stat, err := file.Stat() if err != nil { return err } data, err := syscall.Mmap(int(file.Fd()), 0, int(stat.Size()), syscall.PROT_READ, syscall.MAP_SHARED) if err != nil { return err } adviseRead(data) _, err = dst.UnmarshalMsg(data) uerr := syscall.Munmap(data) if err == nil { err = uerr } return err } // MarshalSizer is the combination // of the Marshaler and Sizer // interfaces. type MarshalSizer interface { Marshaler Sizer } // WriteFile writes a file from 'src' using // memory mapping. It overwrites the entire // contents of the previous file. // The mapping size is calculated // using the `Msgsize()` method // of 'src', so it must produce a result // equal to or greater than the actual encoded // size of the object. Otherwise, // a fault (SIGBUS) will occur. // // Reading and writing through file mappings // is only efficient for large files; small // files are best read and written using // the ordinary streaming interfaces. // // NOTE: The performance of this call // is highly OS- and filesystem-dependent. // Users should take care to test that this // performs as expected in a production environment. // (Linux users should run a kernel and filesystem // that support fallocate(2) for the best results.) func WriteFile(src MarshalSizer, file *os.File) error { sz := src.Msgsize() err := fallocate(file, int64(sz)) if err != nil { return err } data, err := syscall.Mmap(int(file.Fd()), 0, sz, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_SHARED) if err != nil { return err } adviseWrite(data) chunk := data[:0] chunk, err = src.MarshalMsg(chunk) if err != nil { return err } uerr := syscall.Munmap(data) if uerr != nil { return uerr } return file.Truncate(int64(len(chunk))) } /* * Creation : 20 avr. 2015 */ package org.sonar.samples.java; import org.slf4j.Logger; /** * A class with extends an
null
null
null
null
null
null
github_plus_top10pct_by_avg
other class outside the JVM but in classpath */ public class AvoidSuperClassCheck extends Logger { // Noncompliant {{The usage of super class org.slf4j.Logger is forbidden}} protected AvoidSuperClassCheck(String name) { super(name); } } /* * * Bluetooth low-complexity, subband codec (SBC) library * * Copyright (C) 2008-2010 Nokia Corporation * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org> * Copyright (C) 2004-2005 Henryk Ploetz <henryk@ploetzli.ch> * Copyright (C) 2005-2006 Brad Midgley <bmidgley@xmission.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. * * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * */ #include <stdint.h> #include <limits.h> #include "sbc.h" #include "sbc_math.h" #include "sbc_tables.h" #include "sbc_primitives_neon.h" /* * ARM NEON optimizations */ #ifdef SBC_BUILD_WITH_NEON_SUPPORT static inline void _sbc_analyze_four_neon(const int16_t *in, int32_t *out, const FIXED_T *consts) { /* TODO: merge even and odd cases (or even merge all four calls to this * function) in order to have only aligned reads from 'in' array * and reduce number of load instructions */ asm volatile ( "vld1.16 {d4, d5}, [%0, :64]!\n" "vld1.16 {d8, d9}, [%1, :128]!\n" "vmull.s16 q0, d4, d8\n" "vld1.16 {d6, d7}, [%0, :64]!\n" "vmull.s16 q1, d5, d9\n" "vld1.16 {d10, d11}, [
null
null
null
null
null
null
github_plus_top10pct_by_avg
%1, :128]!\n" "vmlal.s16 q0, d6, d10\n" "vld1.16 {d4, d5}, [%0, :64]!\n" "vmlal.s16 q1, d7, d11\n" "vld1.16 {d8, d9}, [%1, :128]!\n" "vmlal.s16 q0, d4, d8\n" "vld1.16 {d6, d7}, [%0, :64]!\n" "vmlal.s16 q1, d5, d9\n" "vld1.16 {d10, d11}, [%1, :128]!\n" "vmlal.s16 q0, d6, d10\n" "vld1.16 {d4, d5}, [%0, :64]!\n" "vmlal.s16 q1, d7, d11\n" "vld1.16 {d8, d9}, [%1, :128]!\n" "vmlal.s16 q0, d4, d8\n" "vmlal.s16 q1, d5, d9\n" "vpadd.s32 d0, d0, d1\n" "vpadd.s32 d1, d2, d3\n" "vrshrn.s32 d0, q0, %3\n" "vld1.16 {d2, d3, d4, d5}, [%1, :128]!\n" "vdup.i32 d1, d0[1]\n" /* TODO: can be eliminated */ "vdup.i32 d0, d0[0]\n" /* TODO: can be eliminated */ "vmull.s16 q3, d2, d0\n" "vmull.s16 q4, d3, d0\n" "vmlal.s16 q3, d4, d1\n" "vmlal.s16 q4, d5, d1\n" "vpadd.s32 d0, d6, d7\n" /* TODO: can be eliminated */ "vpadd.s32 d1, d8, d9\n" /* TODO: can be eliminated */ "vst1.32 {d0, d1}, [%2, :128]\n" : "+r" (in), "+r" (consts) : "r" (out), "i" (SBC_PROTO_FIXED4_SCALE) : "memory", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "d10", "d11"); } static inline void _sbc_analyze_eight_neon(const int16_t *in, int32_t *out, const FIXED_T *consts) { /* TODO: merge even and odd cases (or even merge all four calls to this * function) in order to have only aligned reads from 'in' array * and reduce number of load instructions */ asm volatile ( "vld1.16 {d4, d5}, [%0, :64]!\n" "vld1.16 {d8, d9}, [%1, :128]!\n" "vmull.s16 q6, d4, d8\n" "vld1.16 {d6, d7}, [%0, :64]!\n" "vmull.s16 q7, d5, d9\n" "vld1.16 {d10, d11}, [%1, :128]!\n" "vmull.s16 q8, d6, d10\n" "vld1.16 {d4, d5}, [%0, :64]!\n" "vmull.s16 q9, d7, d11\n" "vld1.16 {d8, d9}, [%1, :128]!\n" "vmlal.s16 q6, d4, d8\n" "vld1.16 {d6, d7}, [%0, :64]!\n" "vmlal.s16 q7, d5, d9\n" "vld1.16 {d10, d11}, [%1, :128]!\n" "vmlal.s16 q8, d6, d10\n" "vld1.16 {d4, d5}, [%0, :64]!\n" "vmlal.s16
null
null
null
null
null
null
github_plus_top10pct_by_avg
q9, d7, d11\n" "vld1.16 {d8, d9}, [%1, :128]!\n" "vmlal.s16 q6, d4, d8\n" "vld1.16 {d6, d7}, [%0, :64]!\n" "vmlal.s16 q7, d5, d9\n" "vld1.16 {d10, d11}, [%1, :128]!\n" "vmlal.s16 q8, d6, d10\n" "vld1.16 {d4, d5}, [%0, :64]!\n" "vmlal.s16 q9, d7, d11\n" "vld1.16 {d8, d9}, [%1, :128]!\n" "vmlal.s16 q6, d4, d8\n" "vld1.16 {d6, d7}, [%0, :64]!\n" "vmlal.s16 q7, d5, d9\n" "vld1.16 {d10, d11}, [%1, :128]!\n" "vmlal.s16 q8, d6, d10\n" "vld1.16 {d4, d5}, [%0, :64]!\n" "vmlal.s16 q9, d7, d11\n" "vld1.16 {d8, d9}, [%1, :128]!\n" "vmlal.s16 q6, d4, d8\n" "vld1.16 {d6, d7}, [%0, :64]!\n" "vmlal.s16 q7, d5, d9\n" "vld1.16 {d10, d11}, [%1, :128]!\n" "vmlal.s16 q8, d6, d10\n" "vmlal.s16 q9, d7, d11\n" "vpadd.s32 d0, d12, d13\n" "vpadd.s32 d1, d14, d15\n" "vpadd.s32 d2, d16, d17\n" "vpadd.s32 d3, d18, d19\n" "vrshr.s32 q0, q0, %3\n" "vrshr.s32 q1, q1, %3\n" "vmovn.s32 d0, q0\n" "vmovn.s32 d1, q1\n" "vdup.i32 d3, d1[1]\n" /* TODO: can be eliminated */ "vdup.i32 d2, d1[0]\n" /* TODO: can be eliminated */ "vdup.i32 d1, d0[1]\n" /* TODO: can be eliminated */ "vdup.i32 d0, d0[0]\n" /* TODO: can be eliminated */ "vld1.16 {d4, d5}, [%1, :128]!\n" "vmull.s16 q6, d4, d0\n" "vld1.16 {d6, d7}, [%1, :128]!\n" "vmull.s16 q7, d5, d0\n" "vmull.s16 q8, d6, d0\n" "vmull.s16 q9, d7, d0\n" "vld1.16 {d4, d5}, [%1, :128]!\n" "vmlal.s16 q6, d4, d1\n" "vld1.16 {d6, d7}, [%1, :128]!\n" "vmlal.s16 q7, d5, d1\n" "vmlal.s16 q8, d6, d1\n" "vmlal.s16 q9, d7, d1\n" "vld1.16 {d4, d5}, [%1, :128]!\n" "vmlal.s16 q6, d4, d2\n" "vld1.16 {d6, d7}, [%1, :128]!\n" "vmlal.s16 q7, d5, d2\n" "vmlal.s16 q8, d6, d2\n" "vmlal.s16 q9, d7, d2\n" "vld1.16 {d4, d5}, [%1, :128]!\n" "vmlal.s16 q6, d4, d3\n" "vld1.16 {d6, d7}, [%1, :128]!\n" "vmlal.s16 q7, d5, d3\n" "vmlal.s16 q8, d6, d3\n" "vmlal.s16 q9, d7, d3\n" "vpadd.s32 d0, d12, d13\n" /*
null
null
null
null
null
null
github_plus_top10pct_by_avg
TODO: can be eliminated */ "vpadd.s32 d1, d14, d15\n" /* TODO: can be eliminated */ "vpadd.s32 d2, d16, d17\n" /* TODO: can be eliminated */ "vpadd.s32 d3, d18, d19\n" /* TODO: can be eliminated */ "vst1.32 {d0, d1, d2, d3}, [%2, :128]\n" : "+r" (in), "+r" (consts) : "r" (out), "i" (SBC_PROTO_FIXED8_SCALE) : "memory", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "d10", "d11", "d12", "d13", "d14", "d15", "d16", "d17", "d18", "d19"); } static inline void sbc_analyze_4b_4s_neon(int16_t *x, int32_t *out, int out_stride) { /* Analyze blocks */ _sbc_analyze_four_neon(x + 12, out, analysis_consts_fixed4_simd_odd); out += out_stride; _sbc_analyze_four_neon(x + 8, out, analysis_consts_fixed4_simd_even); out += out_stride; _sbc_analyze_four_neon(x + 4, out, analysis_consts_fixed4_simd_odd); out += out_stride; _sbc_analyze_four_neon(x + 0, out, analysis_consts_fixed4_simd_even); } static inline void sbc_analyze_4b_8s_neon(int16_t *x, int32_t *out, int out_stride) { /* Analyze blocks */ _sbc_analyze_eight_neon(x + 24, out, analysis_consts_fixed8_simd_odd); out += out_stride; _sbc_analyze_eight_neon(x + 16, out, analysis_consts_fixed8_simd_even); out += out_stride; _sbc_analyze_eight_neon(x + 8, out, analysis_consts_fixed8_simd_odd); out += out_stride; _sbc_analyze_eight_neon(x + 0, out, analysis_consts_fixed8_simd_even); } static void sbc_calc_scalefactors_neon( int32_t sb_sample_f[16][2][8], uint32_t scale_factor[2][8], int blocks, int channels, int subbands) { int ch, sb; for (ch = 0; ch < channels; ch++) { for (sb = 0; sb < subbands; sb += 4) { int blk = blocks; int32_t *in = &sb_sample_f[0][ch][sb]; asm volatile ( "vmov.s32 q0, #0\n" "vmov.s32 q1, %[c1]\n" "vmov.s32 q14, #1\n" "vmov.s32 q15, %[c2]\n" "vadd.s32 q1, q1, q14\n" "1:\n" "vld1.32 {d16, d17}, [%[in], :128], %[inc]\n" "vabs.s32 q8, q8\n" "vld1.32 {d18, d19}, [%[in], :128], %[inc]\n" "vabs.s32 q9, q9\n" "vld1.3
null
null
null
null
null
null
github_plus_top10pct_by_avg
2 {d20, d21}, [%[in], :128], %[inc]\n" "vabs.s32 q10, q10\n" "vld1.32 {d22, d23}, [%[in], :128], %[inc]\n" "vabs.s32 q11, q11\n" "vmax.s32 q0, q0, q8\n" "vmax.s32 q1, q1, q9\n" "vmax.s32 q0, q0, q10\n" "vmax.s32 q1, q1, q11\n" "subs %[blk], %[blk], #4\n" "bgt 1b\n" "vmax.s32 q0, q0, q1\n" "vsub.s32 q0, q0, q14\n" "vclz.s32 q0, q0\n" "vsub.s32 q0, q15, q0\n" "vst1.32 {d0, d1}, [%[out], :128]\n" : [blk] "+r" (blk), [in] "+r" (in) : [inc] "r" ((char *) &sb_sample_f[1][0][0] - (char *) &sb_sample_f[0][0][0]), [out] "r" (&scale_factor[ch][sb]), [c1] "i" (1 << SCALE_OUT_BITS), [c2] "i" (31 - SCALE_OUT_BITS) : "d0", "d1", "d2", "d3", "d16", "d17", "d18", "d19", "d20", "d21", "d22", "d23", "d24", "d25", "d26", "d27", "d28", "d29", "d30", "d31", "cc", "memory"); } } } int sbc_calc_scalefactors_j_neon( int32_t sb_sample_f[16][2][8], uint32_t scale_factor[2][8], int blocks, int subbands) { static SBC_ALIGNED int32_t joint_bits_mask[8] = { 8, 4, 2, 1, 128, 64, 32, 16 }; int joint, i; int32_t *in0, *in1; int32_t *in = &sb_sample_f[0][0][0]; uint32_t *out0, *out1; uint32_t *out = &scale_factor[0][0]; int32_t *consts = joint_bits_mask; i = subbands; asm volatile ( /* * constants: q13 = (31 - SCALE_OUT_BITS), q14 = 1 * input: q0 = ((1 << SCALE_OUT_BITS) + 1) * %[in0] - samples for channel 0 * %[in1] - samples for shannel 1 * output: q0, q1 - scale factors without joint stereo * q2, q3 - scale factors with joint stereo * q15 - joint stereo selection mask */ ".macro calc_scalefactors\n" "vmov.s32 q1, q0\n" "vmov.s32 q2, q0\n" "vmov.s32 q3, q0\n" "mov %[i], %[blocks]\n" "1:\n" "vld1.32 {d18, d19}, [%[in1], :128], %[inc]\n" "vbic.s32 q11, q9, q14\n" "vld1.32 {d16, d17}, [%[in0], :128], %[inc]\n" "vhadd.s32 q10
null
null
null
null
null
null
github_plus_top10pct_by_avg
, q8, q11\n" "vhsub.s32 q11, q8, q11\n" "vabs.s32 q8, q8\n" "vabs.s32 q9, q9\n" "vabs.s32 q10, q10\n" "vabs.s32 q11, q11\n" "vmax.s32 q0, q0, q8\n" "vmax.s32 q1, q1, q9\n" "vmax.s32 q2, q2, q10\n" "vmax.s32 q3, q3, q11\n" "subs %[i], %[i], #1\n" "bgt 1b\n" "vsub.s32 q0, q0, q14\n" "vsub.s32 q1, q1, q14\n" "vsub.s32 q2, q2, q14\n" "vsub.s32 q3, q3, q14\n" "vclz.s32 q0, q0\n" "vclz.s32 q1, q1\n" "vclz.s32 q2, q2\n" "vclz.s32 q3, q3\n" "vsub.s32 q0, q13, q0\n" "vsub.s32 q1, q13, q1\n" "vsub.s32 q2, q13, q2\n" "vsub.s32 q3, q13, q3\n" ".endm\n" /* * constants: q14 = 1 * input: q15 - joint stereo selection mask * %[in0] - value set by calc_scalefactors macro * %[in1] - value set by calc_scalefactors macro */ ".macro update_joint_stereo_samples\n" "sub %[out1], %[in1], %[inc]\n" "sub %[out0], %[in0], %[inc]\n" "sub %[in1], %[in1], %[inc], asl #1\n" "sub %[in0], %[in0], %[inc], asl #1\n" "vld1.32 {d18, d19}, [%[in1], :128]\n" "vbic.s32 q11, q9, q14\n" "vld1.32 {d16, d17}, [%[in0], :128]\n" "vld1.32 {d2, d3}, [%[out1], :128]\n" "vbic.s32 q3, q1, q14\n" "vld1.32 {d0, d1}, [%[out0], :128]\n" "vhsub.s32 q10, q8, q11\n" "vhadd.s32 q11, q8, q11\n" "vhsub.s32 q2, q0, q3\n" "vhadd.s32 q3, q0, q3\n" "vbif.s32 q10, q9, q15\n" "vbif.s32 d22, d16, d30\n" "sub %[inc], %[zero], %[inc], asl #1\n" "sub %[i], %[blocks], #2\n" "2:\n" "vbif.s32 d23, d17, d31\n" "vst1.32 {d20, d21}, [%[in1], :128], %[inc]\n" "vbif.s32 d4, d2, d30\n" "vld1.32 {d18, d19}, [%[in1], :128]\n" "vbif.s32 d5, d3, d31\n" "vst1.32 {d22, d23}, [%[in0], :128], %[inc]\n" "vbif.s32 d6, d0, d30\n" "vld1.32 {d16, d17}, [%[in0], :128]\n" "vbif.s32 d7, d1, d31\n" "vst1.32 {d4, d5}, [%[out1], :128], %[inc]\n" "vbic.s32 q11, q9, q14\n" "vld1
null
null
null
null
null
null
github_plus_top10pct_by_avg
.32 {d2, d3}, [%[out1], :128]\n" "vst1.32 {d6, d7}, [%[out0], :128], %[inc]\n" "vbic.s32 q3, q1, q14\n" "vld1.32 {d0, d1}, [%[out0], :128]\n" "vhsub.s32 q10, q8, q11\n" "vhadd.s32 q11, q8, q11\n" "vhsub.s32 q2, q0, q3\n" "vhadd.s32 q3, q0, q3\n" "vbif.s32 q10, q9, q15\n" "vbif.s32 d22, d16, d30\n" "subs %[i], %[i], #2\n" "bgt 2b\n" "sub %[inc], %[zero], %[inc], asr #1\n" "vbif.s32 d23, d17, d31\n" "vst1.32 {d20, d21}, [%[in1], :128]\n" "vbif.s32 q2, q1, q15\n" "vst1.32 {d22, d23}, [%[in0], :128]\n" "vbif.s32 q3, q0, q15\n" "vst1.32 {d4, d5}, [%[out1], :128]\n" "vst1.32 {d6, d7}, [%[out0], :128]\n" ".endm\n" "vmov.s32 q14, #1\n" "vmov.s32 q13, %[c2]\n" "cmp %[i], #4\n" "bne 8f\n" "4:\n" /* 4 subbands */ "add %[in0], %[in], #0\n" "add %[in1], %[in], #32\n" "add %[out0], %[out], #0\n" "add %[out1], %[out], #32\n" "vmov.s32 q0, %[c1]\n" "vadd.s32 q0, q0, q14\n" "calc_scalefactors\n" /* check whether to use joint stereo for subbands 0, 1, 2 */ "vadd.s32 q15, q0, q1\n" "vadd.s32 q9, q2, q3\n" "vmov.s32 d31[1], %[zero]\n" /* last subband -> no joint */ "vld1.32 {d16, d17}, [%[consts], :128]!\n" "vcgt.s32 q15, q15, q9\n" /* calculate and save to memory 'joint' variable */ /* update and save scale factors to memory */ " vand.s32 q8, q8, q15\n" "vbit.s32 q0, q2, q15\n" " vpadd.s32 d16, d16, d17\n" "vbit.s32 q1, q3, q15\n" " vpadd.s32 d16, d16, d16\n" "vst1.32 {d0, d1}, [%[out0], :128]\n" "vst1.32 {d2, d3}, [%[out1], :128]\n" " vst1.32 {d16[0]}, [%[joint]]\n" "update_joint_stereo_samples\n" "b 9f\n" "8:\n" /* 8 subbands */ "add %[in0], %[in], #16\n\n" "add %[in1], %[in], #48\n" "add %[out0], %[out], #16\n\n" "add %[out1], %[out], #48\n" "vmov.s32 q0, %[c1]\n" "vadd.s32 q0, q0, q14\n" "calc_scalefactors\n" /* check whether to use joint stereo for subbands 4, 5, 6 */ "vadd.s32
null
null
null
null
null
null
github_plus_top10pct_by_avg
q15, q0, q1\n" "vadd.s32 q9, q2, q3\n" "vmov.s32 d31[1], %[zero]\n" /* last subband -> no joint */ "vld1.32 {d16, d17}, [%[consts], :128]!\n" "vcgt.s32 q15, q15, q9\n" /* calculate part of 'joint' variable and save it to d24 */ /* update and save scale factors to memory */ " vand.s32 q8, q8, q15\n" "vbit.s32 q0, q2, q15\n" " vpadd.s32 d16, d16, d17\n" "vbit.s32 q1, q3, q15\n" "vst1.32 {d0, d1}, [%[out0], :128]\n" "vst1.32 {d2, d3}, [%[out1], :128]\n" " vpadd.s32 d24, d16, d16\n" "update_joint_stereo_samples\n" "add %[in0], %[in], #0\n" "add %[in1], %[in], #32\n" "add %[out0], %[out], #0\n\n" "add %[out1], %[out], #32\n" "vmov.s32 q0, %[c1]\n" "vadd.s32 q0, q0, q14\n" "calc_scalefactors\n" /* check whether to use joint stereo for subbands 0, 1, 2, 3 */ "vadd.s32 q15, q0, q1\n" "vadd.s32 q9, q2, q3\n" "vld1.32 {d16, d17}, [%[consts], :128]!\n" "vcgt.s32 q15, q15, q9\n" /* combine last part of 'joint' with d24 and save to memory */ /* update and save scale factors to memory */ " vand.s32 q8, q8, q15\n" "vbit.s32 q0, q2, q15\n" " vpadd.s32 d16, d16, d17\n" "vbit.s32 q1, q3, q15\n" " vpadd.s32 d16, d16, d16\n" "vst1.32 {d0, d1}, [%[out0], :128]\n" " vadd.s32 d16, d16, d24\n" "vst1.32 {d2, d3}, [%[out1], :128]\n" " vst1.32 {d16[0]}, [%[joint]]\n" "update_joint_stereo_samples\n" "9:\n" ".purgem calc_scalefactors\n" ".purgem update_joint_stereo_samples\n" : [i] "+&r" (i), [in] "+&r" (in), [in0] "=&r" (in0), [in1] "=&r" (in1), [out] "+&r" (out), [out0] "=&r" (out0), [out1] "=&r" (out1), [consts] "+&r" (consts) : [inc] "r" ((char *) &sb_sample_f[1][0][0] - (char *) &sb_sample_f[0][0][0]), [blocks] "r" (blocks), [joint] "r" (&joint), [c1] "i" (1 << SCALE_OUT_BITS), [c2] "i" (31 - SCALE_OUT_BITS), [zero] "r" (0) : "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7",
null
null
null
null
null
null
github_plus_top10pct_by_avg
"d16", "d17", "d18", "d19", "d20", "d21", "d22", "d23", "d24", "d25", "d26", "d27", "d28", "d29", "d30", "d31", "cc", "memory"); return joint; } #define PERM_BE(a, b, c, d) { \ (a * 2) + 1, (a * 2) + 0, \ (b * 2) + 1, (b * 2) + 0, \ (c * 2) + 1, (c * 2) + 0, \ (d * 2) + 1, (d * 2) + 0 \ } #define PERM_LE(a, b, c, d) { \ (a * 2) + 0, (a * 2) + 1, \ (b * 2) + 0, (b * 2) + 1, \ (c * 2) + 0, (c * 2) + 1, \ (d * 2) + 0, (d * 2) + 1 \ } static SBC_ALWAYS_INLINE int sbc_enc_process_input_4s_neon_internal( int position, const uint8_t *pcm, int16_t X[2][SBC_X_BUFFER_SIZE], int nsamples, int nchannels, int big_endian) { static SBC_ALIGNED uint8_t perm_be[2][8] = { PERM_BE(7, 3, 6, 4), PERM_BE(0, 2, 1, 5) }; static SBC_ALIGNED uint8_t perm_le[2][8] = { PERM_LE(7, 3, 6, 4), PERM_LE(0, 2, 1, 5) }; /* handle X buffer wraparound */ if (position < nsamples) { int16_t *dst = &X[0][SBC_X_BUFFER_SIZE - 40]; int16_t *src = &X[0][position]; asm volatile ( "vld1.16 {d0, d1, d2, d3}, [%[src], :128]!\n" "vst1.16 {d0, d1, d2, d3}, [%[dst], :128]!\n" "vld1.16 {d0, d1, d2, d3}, [%[src], :128]!\n" "vst1.16 {d0, d1, d2, d3}, [%[dst], :128]!\n" "vld1.16 {d0}, [%[src], :64]!\n" "vst1.16 {d0}, [%[dst], :64]!\n" : [dst] "+r" (dst), [src] "+r" (src) : : "memory", "d0", "d1", "d2", "d3"); if (nchannels > 1) { dst = &X[1][SBC_X_BUFFER_SIZE - 40]; src = &X[1][position]; asm volatile ( "vld1.16 {d0, d1, d2, d3}, [%[src], :128]!\n" "vst1.16 {d0, d1, d2, d3}, [%[dst], :128]!\n" "vld1.16 {d0, d1, d2, d3}, [%[src], :128]!\n" "vst1.16 {d0, d1, d2, d3}, [%[dst], :128]!\n" "vld1.16 {d0}, [%[src], :64]!\n" "vst1.16 {d0}, [%[dst], :64]!\n" : [dst] "+r" (dst), [src] "+r" (src) : : "memory", "d0", "d1", "d2", "d3"); } position = SBC_X_BUFFER_SIZE - 40; } if ((nchannels > 1) && ((uintptr_t)pcm & 1)) { /* poor 'pcm' alignment */ int16_t *x = &X[0][position]; int16_t *y = &X[1][position
null
null
null
null
null
null
github_plus_top10pct_by_avg