text
stringlengths
2
99k
meta
dict
basic: organization: 腾讯 cellPhone: - 0755-83765566 - 0755-86013388 - 010-62671188 - 021-54569595 - 028-85225111 - 020-81167888 url: https://www.tencent.com/
{ "pile_set_name": "Github" }
// Copyright Aleksey Gurtovoy 2000-2004 // // 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) // // Preprocessed version of "boost/mpl/aux_/lambda_no_ctps.hpp" header // -- DO NOT modify by hand! namespace boost { namespace mpl { namespace aux { template< bool C1 = false, bool C2 = false, bool C3 = false, bool C4 = false , bool C5 = false > struct lambda_or : true_ { }; template<> struct lambda_or< false,false,false,false,false > : false_ { }; template< typename Arity > struct lambda_impl { template< typename T, typename Tag, typename Protect > struct result_ { typedef T type; typedef is_placeholder<T> is_le; }; }; template<> struct lambda_impl< int_<1> > { template< typename F, typename Tag, typename Protect > struct result_ { typedef lambda< typename F::arg1, Tag, false_ > l1; typedef typename l1::is_le is_le1; typedef aux::lambda_or< BOOST_MPL_AUX_MSVC_VALUE_WKND(is_le1)::value > is_le; typedef bind1< typename F::rebind , typename l1::type > bind_; typedef typename if_< is_le , if_< Protect, mpl::protect<bind_>, bind_ > , identity<F> >::type type_; typedef typename type_::type type; }; }; template<> struct lambda_impl< int_<2> > { template< typename F, typename Tag, typename Protect > struct result_ { typedef lambda< typename F::arg1, Tag, false_ > l1; typedef lambda< typename F::arg2, Tag, false_ > l2; typedef typename l1::is_le is_le1; typedef typename l2::is_le is_le2; typedef aux::lambda_or< BOOST_MPL_AUX_MSVC_VALUE_WKND(is_le1)::value, BOOST_MPL_AUX_MSVC_VALUE_WKND(is_le2)::value > is_le; typedef bind2< typename F::rebind , typename l1::type, typename l2::type > bind_; typedef typename if_< is_le , if_< Protect, mpl::protect<bind_>, bind_ > , identity<F> >::type type_; typedef typename type_::type type; }; }; template<> struct lambda_impl< int_<3> > { template< typename F, typename Tag, typename Protect > struct result_ { typedef lambda< typename F::arg1, Tag, false_ > l1; typedef lambda< typename F::arg2, Tag, false_ > l2; typedef lambda< typename F::arg3, Tag, false_ > l3; typedef typename l1::is_le is_le1; typedef typename l2::is_le is_le2; typedef typename l3::is_le is_le3; typedef aux::lambda_or< BOOST_MPL_AUX_MSVC_VALUE_WKND(is_le1)::value, BOOST_MPL_AUX_MSVC_VALUE_WKND(is_le2)::value, BOOST_MPL_AUX_MSVC_VALUE_WKND(is_le3)::value > is_le; typedef bind3< typename F::rebind , typename l1::type, typename l2::type, typename l3::type > bind_; typedef typename if_< is_le , if_< Protect, mpl::protect<bind_>, bind_ > , identity<F> >::type type_; typedef typename type_::type type; }; }; template<> struct lambda_impl< int_<4> > { template< typename F, typename Tag, typename Protect > struct result_ { typedef lambda< typename F::arg1, Tag, false_ > l1; typedef lambda< typename F::arg2, Tag, false_ > l2; typedef lambda< typename F::arg3, Tag, false_ > l3; typedef lambda< typename F::arg4, Tag, false_ > l4; typedef typename l1::is_le is_le1; typedef typename l2::is_le is_le2; typedef typename l3::is_le is_le3; typedef typename l4::is_le is_le4; typedef aux::lambda_or< BOOST_MPL_AUX_MSVC_VALUE_WKND(is_le1)::value, BOOST_MPL_AUX_MSVC_VALUE_WKND(is_le2)::value, BOOST_MPL_AUX_MSVC_VALUE_WKND(is_le3)::value, BOOST_MPL_AUX_MSVC_VALUE_WKND(is_le4)::value > is_le; typedef bind4< typename F::rebind , typename l1::type, typename l2::type, typename l3::type , typename l4::type > bind_; typedef typename if_< is_le , if_< Protect, mpl::protect<bind_>, bind_ > , identity<F> >::type type_; typedef typename type_::type type; }; }; template<> struct lambda_impl< int_<5> > { template< typename F, typename Tag, typename Protect > struct result_ { typedef lambda< typename F::arg1, Tag, false_ > l1; typedef lambda< typename F::arg2, Tag, false_ > l2; typedef lambda< typename F::arg3, Tag, false_ > l3; typedef lambda< typename F::arg4, Tag, false_ > l4; typedef lambda< typename F::arg5, Tag, false_ > l5; typedef typename l1::is_le is_le1; typedef typename l2::is_le is_le2; typedef typename l3::is_le is_le3; typedef typename l4::is_le is_le4; typedef typename l5::is_le is_le5; typedef aux::lambda_or< BOOST_MPL_AUX_MSVC_VALUE_WKND(is_le1)::value, BOOST_MPL_AUX_MSVC_VALUE_WKND(is_le2)::value, BOOST_MPL_AUX_MSVC_VALUE_WKND(is_le3)::value, BOOST_MPL_AUX_MSVC_VALUE_WKND(is_le4)::value, BOOST_MPL_AUX_MSVC_VALUE_WKND(is_le5)::value > is_le; typedef bind5< typename F::rebind , typename l1::type, typename l2::type, typename l3::type , typename l4::type, typename l5::type > bind_; typedef typename if_< is_le , if_< Protect, mpl::protect<bind_>, bind_ > , identity<F> >::type type_; typedef typename type_::type type; }; }; } // namespace aux template< typename T , typename Tag , typename Protect > struct lambda { /// Metafunction forwarding confuses MSVC 6.x typedef typename aux::template_arity<T>::type arity_; typedef typename aux::lambda_impl<arity_> ::template result_< T,Tag,Protect > l_; typedef typename l_::type type; typedef typename l_::is_le is_le; BOOST_MPL_AUX_LAMBDA_SUPPORT(3, lambda, (T, Tag, Protect)) }; BOOST_MPL_AUX_NA_SPEC2(1, 3, lambda) template< typename T > struct is_lambda_expression : lambda<T>::is_le { }; }}
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <configuration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/> </startup> </configuration>
{ "pile_set_name": "Github" }
<?php namespace Toplan\PhpSms; interface ContentVoice { /** * Content voice send process. * * @param string|array $to * @param string $content */ public function sendContentVoice($to, $content); }
{ "pile_set_name": "Github" }
{-# LANGUAGE UnicodeSyntax #-} foo ∷ ∀a. Show a ⇒ a → String foo = const ()
{ "pile_set_name": "Github" }
import {mount} from 'enzyme'; import {React, AccountStore, Account, Actions, MailRulesStore} from 'nylas-exports'; import DisabledMailRulesNotification from '../lib/items/disabled-mail-rules-notif'; describe("DisabledMailRulesNotification", function DisabledMailRulesNotifTests() { beforeEach(() => { spyOn(AccountStore, 'accounts').andReturn([ new Account({id: 'A', syncState: 'running', emailAddress: '123@gmail.com'}), ]) }) describe("When there is one disabled mail rule", () => { beforeEach(() => { spyOn(MailRulesStore, "disabledRules").andReturn([{accountId: 'A'}]) this.notif = mount(<DisabledMailRulesNotification />) }) it("displays a notification", () => { expect(this.notif.find('.notification').exists()).toEqual(true); }) it("allows users to open the preferences", () => { spyOn(Actions, "switchPreferencesTab") spyOn(Actions, "openPreferences") this.notif.find('#action-0').simulate('click'); expect(Actions.switchPreferencesTab).toHaveBeenCalledWith('Mail Rules', {accountId: 'A'}) expect(Actions.openPreferences).toHaveBeenCalled(); }) }); describe("When there are multiple disabled mail rules", () => { beforeEach(() => { spyOn(MailRulesStore, "disabledRules").andReturn([{accountId: 'A'}, {accountId: 'A'}]) this.notif = mount(<DisabledMailRulesNotification />) }) it("displays a notification", () => { expect(this.notif.find('.notification').exists()).toEqual(true); }) it("allows users to open the preferences", () => { spyOn(Actions, "switchPreferencesTab") spyOn(Actions, "openPreferences") this.notif.find('#action-0').simulate('click'); expect(Actions.switchPreferencesTab).toHaveBeenCalledWith('Mail Rules', {accountId: 'A'}) expect(Actions.openPreferences).toHaveBeenCalled(); }) }); describe("When there are no disabled mail rules", () => { beforeEach(() => { spyOn(MailRulesStore, "disabledRules").andReturn([]) this.notif = mount(<DisabledMailRulesNotification />) }) it("does not display a notification", () => { expect(this.notif.find('.notification').exists()).toEqual(false); }) }) })
{ "pile_set_name": "Github" }
<?xml version="1.0" standalone="no" ?> <!DOCTYPE pov SYSTEM "/usr/share/cgc-docs/replay.dtd"> <pov> <cbid>CROMU_00025</cbid> <replay> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>1\n</data></write> <read echo="ascii"><delim>: </delim><match><data>Image Name: </data></match></read> <write echo="ascii"><data>zsbgoplvycb\n</data></write> <write echo="ascii"><data>\xcd\x00\xb0\xc4\xdf\x76\xaa\xaa\x15\x0a\xaa\xbb\x74\xaa\xcc\xb4\xd9\x9c\xf4\xe6\x9e\x95\x8f\x75\xa9\x40\x4d\xd9\xcd\x50\xe1\x9b\xc2\x65\x5a\x0c\x93\x30\x32\xf2\x0d\xd5\x41\x84\x84\x55\x90\x80\x13\x3e\x04\xd2\x7b\x54\x96\x5e\x04\x52\x79\x15\xa4\xb0\x65\xc6\x6c\x3e\x54\xe5\x90\x4a\xc3\x5d\x42\x6a\x42\x6f\xe9\x50\x62\x56\x7d\x72\x4b\x9a\x18\x63\x24\xd1\x8a\x6d\xaf\x37\x19\x48\xd2\xa5\x6f\x60\x0a\xb4\x12\x81\x65\x4a\xe4\x94\x29\x75\x7a\x9a\x6f\x4d\xa9\x5c\x6c\xc2\x07\xd0\xa0\xd7\x87\x38\x43\x53\xc5\xe9\xcd\x90\xba\xa5\x80\x46\x07\x8f\x5a\x98\xcc\x9b\x84\x60\xb7\x36\xb2\x99\x78\xe8\x65\xbe\x0a\x9a\x34\xc7\xd3\x5d\x85\x39\x54\xc4\xa6\xed\xd6\x92\x58\xd0\x4a\xf3\x03\x17\xd9\x16\xc5\xe1\xf4\x4a\x9d\x07\x64\xb8\x2b\xf8\xe0\x16\xde\xbd\x18\x53\x38\xc5\x6b\x0a\x4a\x70\x01\xc2\xb0\x12\x98\x34\x10\xaa\xdd\x94\xdc\x71\xc1\xaa\xee</data></write> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>1\n</data></write> <read echo="ascii"><delim>: </delim><match><data>Image Name: </data></match></read> <write echo="ascii"><data>flmghsg\n</data></write> <write echo="ascii"><data>\x18\x00\x24\xc7\xee\x85\x50\xdd\x00\x00\xa1\x06\x54\x98\x52\xe6\xc4\x91\x0a\x8c\x68\xb0\xe5\x00\xa3\x0c</data></write> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>1\n</data></write> <read echo="ascii"><delim>: </delim><match><data>Image Name: </data></match></read> <write echo="ascii"><data>culdqlzjaf\n</data></write> <write echo="ascii"><data>\x11\x00\x24\xc7\xee\x85\x68\x78\x80\x00\x1f\x18\x74\x10\x40\x0a\xc5\x0b\x10</data></write> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>1\n</data></write> <read echo="ascii"><delim>: </delim><match><data>Image Name: </data></match></read> <write echo="ascii"><data>ethaxlpatnfnm\n</data></write> <write echo="ascii"><data>\x15\x00\x24\xc7\xee\x85\x44\xcf\x80\x00\x83\x06\x44\x50\xc0\xc3\xc5\x0b\x0a\x34\x50\xf0\xc0</data></write> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>1\n</data></write> <read echo="ascii"><delim>: </delim><match><data>Image Name: </data></match></read> <write echo="ascii"><data>djgiuctuteo\n</data></write> <write echo="ascii"><data>\x21\x00\xb0\xc4\xdf\x76\xaa\xaa\x08\x05\xaa\xbb\x22\xaa\xcc\xab\x20\x54\x93\x66\xb7\x82\xd8\x18\x4b\x00\x00\xaa\xdd\x4b\xd6\xdc\xd5\xaa\xee</data></write> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>1\n</data></write> <read echo="ascii"><delim>: </delim><match><data>Image Name: </data></match></read> <write echo="ascii"><data>uedzepsc\n</data></write> <write echo="ascii"><data>\x1a\x00\x24\xc7\xee\x85\x45\x8c\x80\x00\x03\x38\x24\xb0\x94\xc7\x51\x13\x20\x0c\x31\x71\xc1\xc6\x0b\x5c\x0c\x20</data></write> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>1\n</data></write> <read echo="ascii"><delim>: </delim><match><data>Image Name: </data></match></read> <write echo="ascii"><data>goioymadi\n</data></write> <write echo="ascii"><data>\x39\x00\xb0\xc4\xdf\x76\xaa\xaa\x0b\x0c\xaa\xbb\x23\xaa\xcc\x28\x2c\x1d\x3a\x3e\xfd\x8a\x35\xd1\x2c\x46\x74\x35\x2d\x88\x25\x00\xe0\x21\x5d\x03\x8e\xc7\xcf\xb1\x80\x7e\xcc\xda\x41\xe3\x88\xf9\x00\x00\x00\xaa\xdd\x88\x22\x7f\x63\xaa\xee</data></write> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>1\n</data></write> <read echo="ascii"><delim>: </delim><match><data>Image Name: </data></match></read> <write echo="ascii"><data>opboagiq\n</data></write> <write echo="ascii"><data>\x35\x00\xb0\xc4\xdf\x76\xaa\xaa\x12\x02\xaa\xbb\x72\xaa\xcc\xb7\x5c\x3b\x88\x0d\x54\x1b\x82\x94\xa8\xc9\x30\x1b\xa0\x1b\x42\xdd\x05\x60\x10\x15\x22\xa1\x15\xe8\x30\xe8\x2c\xb7\x38\x48\xd0\xaa\xdd\x81\x93\x2f\xa2\xaa\xee</data></write> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>3\n</data></write> <read echo="ascii"><delim>: </delim><match><data>Image Name: </data></match></read> <write echo="ascii"><data>flmghsg\n</data></write> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>1\n</data></write> <read echo="ascii"><delim>: </delim><match><data>Image Name: </data></match></read> <write echo="ascii"><data>dgckkzwcpbbpb\n</data></write> <write echo="ascii"><data>\x79\x00\xb0\xc4\xdf\x76\xaa\xaa\x0b\x0a\xaa\xbb\x76\xaa\xcc\x57\x41\x43\x90\x54\x2d\x0d\x15\x76\x24\x40\x12\x87\x98\x78\x24\xfd\xc2\x26\xa1\xb7\x10\x6a\xe3\x85\x05\xa1\xda\x4a\x7e\x00\xa9\x01\x96\x88\x42\x00\x98\x03\xf1\x81\xb3\x32\x21\x44\x16\x53\xa5\x24\x92\x7e\xf4\x08\x6f\x8d\x9a\x36\x52\x10\x76\xc8\x08\x36\x26\x30\xeb\x30\x74\x44\x8e\x26\x80\xf9\xa0\x54\x65\xcd\x0e\x54\xf3\xc1\x41\x27\x3b\xb4\x31\x30\x00\xe6\xe5\x11\xad\x10\x91\x46\xb1\x80\x00\x00\x00\xaa\xdd\xce\xf2\xba\x22\xaa\xee</data></write> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo = "ascii"><data>4\n</data></write> <read echo="ascii"><delim>: </delim><match><data>Image Name: </data></match></read> <write echo="ascii"><data>ethaxlpatnfnm\n</data></write> <read echo= "ascii"><delim>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2b\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x2b\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2b\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2b\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x2b\x20\x2b\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2b\x20\n</delim><match><data>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2b\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x2b\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2b\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2b\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x2b\x20\x2b\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2b\x20\n</data></match></read> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>3\n</data></write> <read echo="ascii"><delim>: </delim><match><data>Image Name: </data></match></read> <write echo="ascii"><data>goioymadi\n</data></write> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>1\n</data></write> <read echo="ascii"><delim>: </delim><match><data>Image Name: </data></match></read> <write echo="ascii"><data>sblilhs\n</data></write> <write echo="ascii"><data>\x39\x00\xb0\xc4\xdf\x76\xaa\xaa\x13\x07\xaa\xbb\x25\xaa\xcc\xce\xc6\x0f\x84\xf8\xf5\x68\xc0\xc0\xb8\x9b\xd7\xc6\xc7\x56\x46\xc5\x6e\xeb\x14\x1b\x2f\xba\xae\x64\x76\xd5\x19\x42\xff\x9b\x84\x15\x40\x00\x00\xaa\xdd\xf2\xb5\xc4\xdd\xaa\xee</data></write> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>2\n</data></write> <read echo="ascii"><delim>\n</delim><match><data>sblilhs\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>dgckkzwcpbbpb\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>opboagiq\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>uedzepsc\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>djgiuctuteo\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>ethaxlpatnfnm\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>culdqlzjaf\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>zsbgoplvycb\n</data></match></read> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>3\n</data></write> <read echo="ascii"><delim>: </delim><match><data>Image Name: </data></match></read> <write echo="ascii"><data>uedzepsc\n</data></write> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>1\n</data></write> <read echo="ascii"><delim>: </delim><match><data>Image Name: </data></match></read> <write echo="ascii"><data>csqbpyvrsjt\n</data></write> <write echo="ascii"><data>\x21\x00\xb0\xc4\xdf\x76\xaa\xaa\x05\x12\xaa\xbb\x14\xaa\xcc\xe9\x92\xde\xb3\xe8\x9c\x5a\x7f\x7e\x97\xce\x40\xaa\xdd\x8c\x4a\x99\x7f\xaa\xee</data></write> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>2\n</data></write> <read echo="ascii"><delim>\n</delim><match><data>csqbpyvrsjt\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>sblilhs\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>dgckkzwcpbbpb\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>opboagiq\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>djgiuctuteo\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>ethaxlpatnfnm\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>culdqlzjaf\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>zsbgoplvycb\n</data></match></read> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>2\n</data></write> <read echo="ascii"><delim>\n</delim><match><data>csqbpyvrsjt\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>sblilhs\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>dgckkzwcpbbpb\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>opboagiq\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>djgiuctuteo\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>ethaxlpatnfnm\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>culdqlzjaf\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>zsbgoplvycb\n</data></match></read> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>2\n</data></write> <read echo="ascii"><delim>\n</delim><match><data>csqbpyvrsjt\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>sblilhs\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>dgckkzwcpbbpb\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>opboagiq\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>djgiuctuteo\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>ethaxlpatnfnm\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>culdqlzjaf\n</data></match></read> <read echo="ascii"><delim>\n</delim><match><data>zsbgoplvycb\n</data></match></read> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>3\n</data></write> <read echo="ascii"><delim>: </delim><match><data>Image Name: </data></match></read> <write echo="ascii"><data>zsbgoplvycb\n</data></write> <read echo="ascii"><delim>} </delim><match><data>1- Upload Image\n2- List Images\n3- Remove Image\n4- Display Image\n5- Leave\n} </data></match></read> <write echo="ascii"><data>5\n</data></write> </replay> </pov>
{ "pile_set_name": "Github" }
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/iotthingsgraph/IoTThingsGraph_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> namespace Aws { namespace IoTThingsGraph { namespace Model { enum class FlowTemplateFilterName { NOT_SET, DEVICE_MODEL_ID }; namespace FlowTemplateFilterNameMapper { AWS_IOTTHINGSGRAPH_API FlowTemplateFilterName GetFlowTemplateFilterNameForName(const Aws::String& name); AWS_IOTTHINGSGRAPH_API Aws::String GetNameForFlowTemplateFilterName(FlowTemplateFilterName value); } // namespace FlowTemplateFilterNameMapper } // namespace Model } // namespace IoTThingsGraph } // namespace Aws
{ "pile_set_name": "Github" }
within Modelica.Mechanics.MultiBody.Frames.Quaternions; function relativeRotation "Return relative quaternions orientation object" extends Modelica.Icons.Function; input Quaternions.Orientation Q1 "Quaternions orientation object to rotate frame 0 into frame 1"; input Quaternions.Orientation Q2 "Quaternions orientation object to rotate frame 0 into frame 2"; output Quaternions.Orientation Q_rel "Quaternions orientation object to rotate frame 1 into frame 2"; algorithm Q_rel := [ Q1[4], Q1[3], -Q1[2], -Q1[1]; -Q1[3], Q1[4], Q1[1], -Q1[2]; Q1[2], -Q1[1], Q1[4], -Q1[3]; Q1[1], Q1[2], Q1[3], Q1[4]]*Q2; annotation(Inline=true, Documentation(info="<html> <h4>Syntax</h4> <blockquote><pre> Q_rel = Quaternions.<strong>relativeRotation</strong>(Q1, Q2); </pre></blockquote> <h4>Description</h4> <p> This function returns <a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.Quaternions.Orientation\">quaternions orientation</a>&nbsp;Q_rel that describes the orientation to rotate frame&nbsp;1 to frame&nbsp;2 from the <a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.Quaternions.Orientation\">quaternions orientation</a>&nbsp;Q1 that describes the orientation to rotate from frame&nbsp;0 to frame&nbsp;1 and from the <a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.Quaternions.Orientation\">quaternions orientation</a>&nbsp;Q2 that describes the orientation to rotate from frame&nbsp;0 to frame&nbsp;2. </p> <h4>See also</h4> <p> <a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.relativeRotation\">Frames.relativeRotation</a>, <a href=\"modelica://Modelica.Mechanics.MultiBody.Frames.TransformationMatrices.relativeRotation\">TransformationMatrices.relativeRotation</a>. </p> </html>")); end relativeRotation;
{ "pile_set_name": "Github" }
// Sexy LED animation. #include "quantum.h" #define LED_INTERVAL 160 #define LED_RADIUS 6 void dmc12_start(uint32_t color, bool reset); void dmc12_process(void);
{ "pile_set_name": "Github" }
package images // import "github.com/docker/docker/daemon/images" import ( "github.com/docker/docker/builder" "github.com/docker/docker/image/cache" "github.com/sirupsen/logrus" ) // MakeImageCache creates a stateful image cache. func (i *ImageService) MakeImageCache(sourceRefs []string) builder.ImageCache { if len(sourceRefs) == 0 { return cache.NewLocal(i.imageStore) } cache := cache.New(i.imageStore) for _, ref := range sourceRefs { img, err := i.GetImage(ref) if err != nil { logrus.Warnf("Could not look up %s for cache resolution, skipping: %+v", ref, err) continue } cache.Populate(img) } return cache }
{ "pile_set_name": "Github" }
//===- BugDriver.cpp - Top-Level BugPoint class implementation ------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This class contains all of the shared state and information that is used by // the BugPoint tool to track down errors in optimizations. This class is the // main driver class that invokes all sub-functionality. // //===----------------------------------------------------------------------===// #include "BugDriver.h" #include "ToolRunner.h" #include "llvm/IR/Module.h" #include "llvm/IR/Verifier.h" #include "llvm/IRReader/IRReader.h" #include "llvm/Linker/Linker.h" #include "llvm/Pass.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/FileUtilities.h" #include "llvm/Support/Host.h" #include "llvm/Support/SourceMgr.h" #include "llvm/Support/raw_ostream.h" #include <memory> using namespace llvm; namespace llvm { Triple TargetTriple; } // Anonymous namespace to define command line options for debugging. // namespace { // Output - The user can specify a file containing the expected output of the // program. If this filename is set, it is used as the reference diff source, // otherwise the raw input run through an interpreter is used as the reference // source. // cl::opt<std::string> OutputFile("output", cl::desc("Specify a reference program output " "(for miscompilation detection)")); } /// setNewProgram - If we reduce or update the program somehow, call this method /// to update bugdriver with it. This deletes the old module and sets the /// specified one as the current program. void BugDriver::setNewProgram(Module *M) { delete Program; Program = M; } /// getPassesString - Turn a list of passes into a string which indicates the /// command line options that must be passed to add the passes. /// std::string llvm::getPassesString(const std::vector<std::string> &Passes) { std::string Result; for (unsigned i = 0, e = Passes.size(); i != e; ++i) { if (i) Result += " "; Result += "-"; Result += Passes[i]; } return Result; } BugDriver::BugDriver(const char *toolname, bool find_bugs, unsigned timeout, unsigned memlimit, bool use_valgrind, LLVMContext &ctxt) : Context(ctxt), ToolName(toolname), ReferenceOutputFile(OutputFile), Program(nullptr), Interpreter(nullptr), SafeInterpreter(nullptr), cc(nullptr), run_find_bugs(find_bugs), Timeout(timeout), MemoryLimit(memlimit), UseValgrind(use_valgrind) {} BugDriver::~BugDriver() { delete Program; if (Interpreter != SafeInterpreter) delete Interpreter; delete SafeInterpreter; delete cc; } std::unique_ptr<Module> llvm::parseInputFile(StringRef Filename, LLVMContext &Ctxt) { SMDiagnostic Err; std::unique_ptr<Module> Result = parseIRFile(Filename, Err, Ctxt); if (!Result) { Err.print("bugpoint", errs()); return Result; } if (verifyModule(*Result, &errs())) { errs() << "bugpoint: " << Filename << ": error: input module is broken!\n"; return std::unique_ptr<Module>(); } // If we don't have an override triple, use the first one to configure // bugpoint, or use the host triple if none provided. if (TargetTriple.getTriple().empty()) { Triple TheTriple(Result->getTargetTriple()); if (TheTriple.getTriple().empty()) TheTriple.setTriple(sys::getDefaultTargetTriple()); TargetTriple.setTriple(TheTriple.getTriple()); } Result->setTargetTriple(TargetTriple.getTriple()); // override the triple return Result; } // This method takes the specified list of LLVM input files, attempts to load // them, either as assembly or bitcode, then link them together. It returns // true on failure (if, for example, an input bitcode file could not be // parsed), and false on success. // bool BugDriver::addSources(const std::vector<std::string> &Filenames) { assert(!Program && "Cannot call addSources multiple times!"); assert(!Filenames.empty() && "Must specify at least on input filename!"); // Load the first input file. Program = parseInputFile(Filenames[0], Context).release(); if (!Program) return true; outs() << "Read input file : '" << Filenames[0] << "'\n"; for (unsigned i = 1, e = Filenames.size(); i != e; ++i) { std::unique_ptr<Module> M = parseInputFile(Filenames[i], Context); if (!M.get()) return true; outs() << "Linking in input file: '" << Filenames[i] << "'\n"; if (Linker::linkModules(*Program, std::move(M))) return true; } outs() << "*** All input ok\n"; // All input files read successfully! return false; } /// run - The top level method that is invoked after all of the instance /// variables are set up from command line arguments. /// Error BugDriver::run() { if (run_find_bugs) { // Rearrange the passes and apply them to the program. Repeat this process // until the user kills the program or we find a bug. return runManyPasses(PassesToRun); } // If we're not running as a child, the first thing that we must do is // determine what the problem is. Does the optimization series crash the // compiler, or does it produce illegal code? We make the top-level // decision by trying to run all of the passes on the input program, // which should generate a bitcode file. If it does generate a bitcode // file, then we know the compiler didn't crash, so try to diagnose a // miscompilation. if (!PassesToRun.empty()) { outs() << "Running selected passes on program to test for crash: "; if (runPasses(Program, PassesToRun)) return debugOptimizerCrash(); } // Set up the execution environment, selecting a method to run LLVM bitcode. if (Error E = initializeExecutionEnvironment()) return E; // Test to see if we have a code generator crash. outs() << "Running the code generator to test for a crash: "; if (Error E = compileProgram(Program)) { outs() << toString(std::move(E)); return debugCodeGeneratorCrash(); } outs() << '\n'; // Run the raw input to see where we are coming from. If a reference output // was specified, make sure that the raw output matches it. If not, it's a // problem in the front-end or the code generator. // bool CreatedOutput = false; if (ReferenceOutputFile.empty()) { outs() << "Generating reference output from raw program: "; if (Error E = createReferenceFile(Program)) { errs() << toString(std::move(E)); return debugCodeGeneratorCrash(); } CreatedOutput = true; } // Make sure the reference output file gets deleted on exit from this // function, if appropriate. std::string ROF(ReferenceOutputFile); FileRemover RemoverInstance(ROF, CreatedOutput && !SaveTemps); // Diff the output of the raw program against the reference output. If it // matches, then we assume there is a miscompilation bug and try to // diagnose it. outs() << "*** Checking the code generator...\n"; Expected<bool> Diff = diffProgram(Program, "", "", false); if (Error E = Diff.takeError()) { errs() << toString(std::move(E)); return debugCodeGeneratorCrash(); } if (!*Diff) { outs() << "\n*** Output matches: Debugging miscompilation!\n"; if (Error E = debugMiscompilation()) { errs() << toString(std::move(E)); return debugCodeGeneratorCrash(); } return Error::success(); } outs() << "\n*** Input program does not match reference diff!\n"; outs() << "Debugging code generator problem!\n"; if (Error E = debugCodeGenerator()) { errs() << toString(std::move(E)); return debugCodeGeneratorCrash(); } return Error::success(); } void llvm::PrintFunctionList(const std::vector<Function *> &Funcs) { unsigned NumPrint = Funcs.size(); if (NumPrint > 10) NumPrint = 10; for (unsigned i = 0; i != NumPrint; ++i) outs() << " " << Funcs[i]->getName(); if (NumPrint < Funcs.size()) outs() << "... <" << Funcs.size() << " total>"; outs().flush(); } void llvm::PrintGlobalVariableList(const std::vector<GlobalVariable *> &GVs) { unsigned NumPrint = GVs.size(); if (NumPrint > 10) NumPrint = 10; for (unsigned i = 0; i != NumPrint; ++i) outs() << " " << GVs[i]->getName(); if (NumPrint < GVs.size()) outs() << "... <" << GVs.size() << " total>"; outs().flush(); }
{ "pile_set_name": "Github" }
package io.digdag.standards.auth.jwt; import com.google.inject.Inject; import io.digdag.spi.Authenticator; import io.jsonwebtoken.Claims; import io.jsonwebtoken.JwsHeader; import io.jsonwebtoken.JwtException; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureException; import io.jsonwebtoken.SigningKeyResolver; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.crypto.spec.SecretKeySpec; import javax.ws.rs.container.ContainerRequestContext; import java.security.Key; import java.util.Map; public class JwtAuthenticator implements Authenticator { private static final Logger logger = LoggerFactory.getLogger(JwtAuthenticator.class); private final JwtAuthenticatorConfig config; @Inject public JwtAuthenticator(JwtAuthenticatorConfig config) { this.config = config; } @Override public Result authenticate(ContainerRequestContext requestContext) { int siteId; boolean admin; String auth = requestContext.getHeaderString("Authorization"); if (auth == null) { if (config.isAllowPublicAccess()) { // OK siteId = 0; admin = true; } else { return Result.reject("Authorization is required"); } } else { String[] typeData = auth.split(" ", 2); if (typeData.length != 2) { return Result.reject("Invalid authorization header"); } if (!typeData[0].equals("Bearer")) { return Result.reject("Invalid authorization header"); } String token = typeData[1]; try { Map<String, UserConfig> userMap = config.getUserMap(); String subject = Jwts.parser().setSigningKeyResolver(new SigningKeyResolver() { @Override public Key resolveSigningKey(JwsHeader header, Claims claims) { Object keyType = header.get("knd"); if (keyType == null || !"ps1".equals(keyType)) { throw new SignatureException("Invalid key type"); } UserConfig user = userMap.get(claims.getSubject()); if (user == null) { throw new SignatureException("Invalid subject"); } return new SecretKeySpec(user.getApiKey().getSecret(), header.getAlgorithm()); } @Override public Key resolveSigningKey(JwsHeader header, String plaintext) { throw new SignatureException("Plain text JWT authorization header is not allowed"); } }) .parseClaimsJws(token) .getBody() .getSubject(); UserConfig user = userMap.get(subject); if (user == null) { throw new SignatureException("Invalid subject"); } siteId = user.getSiteId(); admin = user.isAdmin(); } catch (JwtException ex) { logger.trace("Authentication failed: ", ex); return Result.reject("Authorization failed"); } } return Result.builder() .siteId(siteId) .isAdmin(admin) .build(); } }
{ "pile_set_name": "Github" }
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- */ #ifndef __D3D9PIXELBUFFER_H__ #define __D3D9PIXELBUFFER_H__ #include "OgreD3D9Prerequisites.h" #include "OgreHardwarePixelBuffer.h" #include "Threading/OgreThreadHeaders.h" namespace Ogre { class D3D9Texture; class D3D9RenderTexture; class _OgreD3D9Export D3D9HardwarePixelBuffer: public HardwarePixelBuffer { protected: struct BufferResources { /// Surface abstracted by this buffer IDirect3DSurface9* surface; /// AA Surface abstracted by this buffer IDirect3DSurface9* fSAASurface; /// Volume abstracted by this buffer IDirect3DVolume9* volume; /// Temporary surface in main memory if direct locking of mSurface is not possible IDirect3DSurface9* tempSurface; /// Temporary volume in main memory if direct locking of mVolume is not possible IDirect3DVolume9* tempVolume; /// Mip map texture. IDirect3DBaseTexture9 *mipTex; }; typedef map<IDirect3DDevice9*, BufferResources*>::type DeviceToBufferResourcesMap; typedef DeviceToBufferResourcesMap::iterator DeviceToBufferResourcesIterator; /// Map between device to buffer resources. DeviceToBufferResourcesMap mMapDeviceToBufferResources; /// Mipmapping bool mDoMipmapGen; bool mHWMipmaps; /// Render target D3D9RenderTexture* mRenderTexture; // The owner texture if exists. D3D9Texture* mOwnerTexture; // The current lock flags of this surface. DWORD mLockFlags; // Device access mutex. OGRE_STATIC_MUTEX(msDeviceAccessMutex); protected: /// Lock a box PixelBox lockImpl(const Image::Box lockBox, LockOptions options); PixelBox lockBuffer(BufferResources* bufferResources, const Image::Box &lockBox, DWORD flags); /// Unlock a box void unlockImpl(void); void unlockBuffer(BufferResources* bufferResources); BufferResources* getBufferResources(IDirect3DDevice9* d3d9Device); BufferResources* createBufferResources(); /// updates render texture. void updateRenderTexture(bool writeGamma, uint fsaa, const String& srcName); /// destroy render texture. void destroyRenderTexture(); void blit(IDirect3DDevice9* d3d9Device, const HardwarePixelBufferSharedPtr &src, const Image::Box &srcBox, const Image::Box &dstBox, BufferResources* srcBufferResources, BufferResources* dstBufferResources); void blitFromMemory(const PixelBox &src, const Image::Box &dstBox, BufferResources* dstBufferResources); void blitToMemory(const Image::Box &srcBox, const PixelBox &dst, BufferResources* srcBufferResources, IDirect3DDevice9* d3d9Device); public: D3D9HardwarePixelBuffer(HardwareBuffer::Usage usage, D3D9Texture* ownerTexture); ~D3D9HardwarePixelBuffer(); /// Call this to associate a D3D surface or volume with this pixel buffer void bind(IDirect3DDevice9 *dev, IDirect3DSurface9 *mSurface, IDirect3DSurface9* fsaaSurface, bool writeGamma, uint fsaa, const String& srcName, IDirect3DBaseTexture9 *mipTex); void bind(IDirect3DDevice9 *dev, IDirect3DVolume9 *mVolume, IDirect3DBaseTexture9 *mipTex); /// @copydoc HardwarePixelBuffer::blit void blit(const HardwarePixelBufferSharedPtr &src, const Image::Box &srcBox, const Image::Box &dstBox); /// @copydoc HardwarePixelBuffer::blitFromMemory void blitFromMemory(const PixelBox &src, const Image::Box &dstBox); /// @copydoc HardwarePixelBuffer::blitToMemory void blitToMemory(const Image::Box &srcBox, const PixelBox &dst); /// Internal function to update mipmaps on update of level 0 void _genMipmaps(IDirect3DBaseTexture9* mipTex); /// Function to set mipmap generation void _setMipmapping(bool doMipmapGen, bool HWMipmaps); /// Get rendertarget for z slice RenderTexture *getRenderTarget(size_t zoffset); /// Accessor for surface IDirect3DSurface9 *getSurface(IDirect3DDevice9* d3d9Device); /// Accessor for AA surface IDirect3DSurface9 *getFSAASurface(IDirect3DDevice9* d3d9Device); /// Notify TextureBuffer of destruction of render target virtual void _clearSliceRTT(size_t zoffset); /// Release surfaces held by this pixel buffer. void releaseSurfaces(IDirect3DDevice9* d3d9Device); /// Destroy resources associated with the given device. void destroyBufferResources(IDirect3DDevice9* d3d9Device); // Called when device state is changing. Access to any device should be locked. // Relevant for multi thread application. static void lockDeviceAccess(); // Called when device state change completed. Access to any device is allowed. // Relevant for multi thread application. static void unlockDeviceAccess(); }; }; #endif
{ "pile_set_name": "Github" }
@(urlMsgs: List[String] = List.empty, fileMsgs: List[String] = List.empty)(implicit request: RequestHeader, context: model.ApplicationContext) @import conf.switches.Switches.R2PagePressServiceSwitch @admin_main("R2 page presser (archiver)", isAuthed = true) { <form action="/press/r2" method="POST" class="form-horizontal redirect-form"> <fieldset> <legend>Press (archive) an individual page</legend> <div class="form-group"> <label for="r2url" class="control-label col-sm-1">R2 URL:</label> <div class="col-sm-6"> <input type="text" class="form-control" id="r2url" name="r2url" value="" placeholder="http://www.theguardian.com/an/r2/path" /> </div> </div> <div class="form-group"> <label for="is-takedown" class="control-label col-sm-1">Takedown:</label> <div class="col-sm-6"> <input type="checkbox" class="form-control" id="is-takedown" name="is-takedown"/> </div> </div> <div class="form-group"> <label for="is-from-preserved-source" class="control-label col-sm-1">From preserved src:</label> <div class="col-sm-6"> <input type="checkbox" class="form-control" id="is-from-preserved-source" name="is-from-preserved-source" checked/> </div> </div> <div class="form-group"> <label for="is-convert-to-https" class="control-label col-sm-1">Make HTTPS compatible:</label> <div class="col-sm-6"> <input type="checkbox" class="form-control" id="is-convert-to-https" name="is-convert-to-https" checked/> </div> </div> <div class="form-group"> <div class="controls col-sm-offset-1 col-sm-11"> @if(R2PagePressServiceSwitch.isSwitchedOn) { <input class="btn btn-default" type="submit" value="Press" /> } else { <div class="col-sm-6"> This feature is currently switched off (use the switchboard to re-enable it) </div> } </div> </div> @if(urlMsgs.nonEmpty) { <div class="form-group label-warning"> <div id="server-message" class="controls col-sm-offset-1 col-sm-11"> @urlMsgs.mkString </div> </div> } </fieldset> </form> <form action="/press/r2/batchupload" method="POST" class="form-horizontal redirect-form" enctype="multipart/form-data"> <fieldset> <legend>Press a batch of pages from a file of urls</legend> <div class="form-group"> <label for="r2urlfile" class="control-label col-sm-1">File:</label> <div class="col-sm-6"> <input type="file" class="form-control" id="r2urlfile" name="r2urlfile" /> </div> </div> <div class="form-group"> <label for="is-takedown" class="control-label col-sm-1">Takedown:</label> <div class="col-sm-6"> <input id="is-takedown" name="is-takedown" type="checkbox"/> </div> </div> <div class="form-group"> <label for="is-from-preserved-source" class="control-label col-sm-1">From preserved src:</label> <div class="col-sm-6"> <input type="checkbox" class="form-control" id="is-from-preserved-source" name="is-from-preserved-source" checked/> </div> </div> <div class="form-group"> <label for="is-convert-to-https" class="control-label col-sm-1">Make HTTPS compatible:</label> <div class="col-sm-6"> <input type="checkbox" class="form-control" id="is-convert-to-https" name="is-convert-to-https" checked/> </div> </div> <div class="form-group"> <div class="controls col-sm-offset-1 col-sm-11"> @if(R2PagePressServiceSwitch.isSwitchedOn) { <input class="btn btn-default" type="submit" value="Upload & Press" /> } else { <div class="col-sm-6"> This feature is currently switched off (use the switchboard to re-enable it) </div> } </div> </div> @if(fileMsgs.nonEmpty) { <div class="form-group label-warning"> <div id="server-message" class="controls col-sm-offset-1 col-sm-11"> @fileMsgs.mkString </div> </div> } </fieldset> </form> }
{ "pile_set_name": "Github" }
info: x-logo: url: 'https://avatars3.githubusercontent.com/u/12212444?v=4&s=200' backgroundColor: '#FFFFFF' x-apisguru-categories: - open_data
{ "pile_set_name": "Github" }
// -------------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2014 Shiny Development // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. // -------------------------------------------------------------------------------- #import <UIKit/UIKit.h> #import "SDStatusBarOverriderPost9_0.h" /* Generated by RuntimeBrowser. Image: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/UIKit.framework/UIKit */ typedef struct { char boolitemIsEnabled[27]; char timeString[64]; int gsmSignalStrengthRaw; int gsmSignalStrengthBars; char serviceString[100]; char serviceCrossfadeString[100]; char serviceImages[2][100]; char operatorDirectory[1024]; unsigned int serviceContentType; int wifiSignalStrengthRaw; int wifiSignalStrengthBars; unsigned int dataNetworkType; int batteryCapacity; unsigned int batteryState; char batteryDetailString[150]; int bluetoothBatteryCapacity; int thermalColor; unsigned int thermalSunlightMode : 1; unsigned int slowActivity : 1; unsigned int syncActivity : 1; BOOL activityDisplayId[256]; unsigned int bluetoothConnected : 1; unsigned int displayRawGSMSignal : 1; unsigned int displayRawWifiSignal : 1; unsigned int locationIconType : 1; unsigned int quietModeInactive : 1; unsigned int tetheringConnectionCount; unsigned int unknownOption : 1; } StatusBarRawData; typedef struct { char booloverrideItemIsEnabled[27]; unsigned int overrideTimeString : 1; unsigned int overrideGsmSignalStrengthRaw : 1; unsigned int overrideGsmSignalStrengthBars : 1; unsigned int overrideServiceString : 1; unsigned int overrideServiceImages : 2; unsigned int overrideOperatorDirectory : 1; unsigned int overrideServiceContentType : 1; unsigned int overrideWifiSignalStrengthRaw : 1; unsigned int overrideWifiSignalStrengthBars : 1; unsigned int overrideDataNetworkType : 1; unsigned int disallowsCellularDataNetworkTypes : 1; unsigned int overrideBatteryCapacity : 1; unsigned int overrideBatteryState : 1; unsigned int overrideBatteryDetailString : 1; unsigned int overrideBluetoothBatteryCapacity : 1; unsigned int overrideThermalColor : 1; unsigned int overrideSlowActivity : 1; unsigned int overrideActivityDisplayId : 1; unsigned int overrideBluetoothConnected : 1; unsigned int overrideDisplayRawGSMSignal : 1; unsigned int overrideDisplayRawWifiSignal : 1; StatusBarRawData values; } StatusBarOverrideData; @class UIStatusBarServerClient; @interface UIStatusBarServer : NSObject { UIStatusBarServerClient *_statusBar; struct __CFRunLoopSource { } *_source; } @property(retain) UIStatusBarServerClient * statusBar; + (unsigned int)_serverPort; + (void)runServer; + (id)getDoubleHeightStatusStringForStyle:(long long)arg1; + (bool)getGlowAnimationStateForStyle:(long long)arg1; + (int)getStyleOverrides; + (StatusBarOverrideData *)getStatusBarOverrideData; + (const StatusBarRawData*)getStatusBarData; + (void)permanentizeStatusBarOverrideData; + (void)postStatusBarOverrideData:(StatusBarOverrideData*)arg1; + (void)postStatusBarData:(const StatusBarRawData*)arg1 withActions:(int)arg2; + (unsigned int)_publisherPort; + (double)getGlowAnimationEndTimeForStyle:(long long)arg1; + (void)removeStatusBarItem:(int)arg1; + (void)addStatusBarItem:(int)arg1; + (void)postDoubleHeightStatusString:(id)arg1 forStyle:(long long)arg2; + (void)postGlowAnimationState:(bool)arg1 forStyle:(long long)arg2; + (void)removeStyleOverrides:(int)arg1; + (void)addStyleOverrides:(int)arg1; @end @implementation SDStatusBarOverriderPost9_0 @synthesize timeString; @synthesize carrierName; @synthesize bluetoothConnected; @synthesize bluetoothEnabled; @synthesize batteryDetailEnabled; @synthesize networkType; - (void)enableOverrides { StatusBarOverrideData *overrides = [UIStatusBarServer getStatusBarOverrideData]; // Set 9:41 time in current localization overrides->overrideTimeString = 1; strcpy(overrides->values.timeString, [self.timeString cStringUsingEncoding:NSUTF8StringEncoding]); // Enable 5 bars of mobile (iPhone only) if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone) { overrides->booloverrideItemIsEnabled[3] = 1; overrides->values.boolitemIsEnabled[3] = 1; overrides->overrideGsmSignalStrengthBars = 1; overrides->values.gsmSignalStrengthBars = 5; } overrides->overrideDataNetworkType = self.networkType != SDStatusBarManagerNetworkTypeWiFi; overrides->values.dataNetworkType = self.networkType - 1; // Remove carrier text for iPhone, set it to "iPad" for the iPad NSString *carrierText = self.carrierName; if ([carrierText length] <= 0) { carrierText = ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone) ? @"" : @"iPad"; } overrides->overrideServiceString = 1; strcpy(overrides->values.serviceString, [carrierText cStringUsingEncoding:NSUTF8StringEncoding]); // Battery overrides->booloverrideItemIsEnabled[8] = 1; overrides->values.boolitemIsEnabled[8] = 1; overrides->overrideBatteryDetailString = 1; strcpy(overrides->values.batteryDetailString, [self.batteryDetailEnabled? @"100%" : @" " cStringUsingEncoding:NSUTF8StringEncoding]); // Bluetooth overrides->booloverrideItemIsEnabled[11] = self.bluetoothEnabled; overrides->values.boolitemIsEnabled[11] = self.bluetoothEnabled; if (self.bluetoothEnabled) { overrides->overrideBluetoothConnected = self.bluetoothConnected; overrides->values.bluetoothConnected = self.bluetoothConnected; } // Actually update the status bar [UIStatusBarServer postStatusBarOverrideData:overrides]; // if battery detail was not required, then it was set to one space @" ", so let's correct it here in case bluetooth icon comes after it if (!self.batteryDetailEnabled) { strcpy(overrides->values.batteryDetailString, [@"" cStringUsingEncoding:NSUTF8StringEncoding]); [UIStatusBarServer postStatusBarOverrideData:overrides]; } // Lock in the changes, reset simulator will remove this [UIStatusBarServer permanentizeStatusBarOverrideData]; } - (void)disableOverrides { StatusBarOverrideData *overrides = [UIStatusBarServer getStatusBarOverrideData]; // Remove specific overrides (separate flags) overrides->overrideTimeString = 0; overrides->overrideGsmSignalStrengthBars = 0; overrides->overrideDataNetworkType = 0; overrides->overrideBatteryDetailString = 0; overrides->overrideBluetoothConnected = 0; // Remove all overrides that use the array of bools for (int i = 0; i < 27; i++) { overrides->booloverrideItemIsEnabled[i] = 0; overrides->values.boolitemIsEnabled[i] = 0; } // Carrier text (it's an override to set it back to the default) overrides->overrideServiceString = 1; strcpy(overrides->values.serviceString, [NSLocalizedString(@"Carrier", @"Carrier") cStringUsingEncoding:NSUTF8StringEncoding]); // Actually update the status bar [UIStatusBarServer postStatusBarOverrideData:overrides]; // Have to call this to remove all the overrides [UIStatusBarServer permanentizeStatusBarOverrideData]; } @end
{ "pile_set_name": "Github" }
// Variables // -------------------------- $fa-font-path: "../webfonts" !default; $fa-font-size-base: 16px !default; $fa-font-display: auto !default; $fa-css-prefix: fa !default; $fa-version: "5.10.2" !default; $fa-border-color: #eee !default; $fa-inverse: #fff !default; $fa-li-width: 2em !default; $fa-fw-width: (20em / 16); $fa-primary-opacity: 1 !default; $fa-secondary-opacity: .4 !default; // Convenience function used to set content property @function fa-content($fa-var) { @return unquote("\"#{ $fa-var }\""); } $fa-var-500px: \f26e; $fa-var-accessible-icon: \f368; $fa-var-accusoft: \f369; $fa-var-acquisitions-incorporated: \f6af; $fa-var-ad: \f641; $fa-var-address-book: \f2b9; $fa-var-address-card: \f2bb; $fa-var-adjust: \f042; $fa-var-adn: \f170; $fa-var-adobe: \f778; $fa-var-adversal: \f36a; $fa-var-affiliatetheme: \f36b; $fa-var-air-freshener: \f5d0; $fa-var-airbnb: \f834; $fa-var-algolia: \f36c; $fa-var-align-center: \f037; $fa-var-align-justify: \f039; $fa-var-align-left: \f036; $fa-var-align-right: \f038; $fa-var-alipay: \f642; $fa-var-allergies: \f461; $fa-var-amazon: \f270; $fa-var-amazon-pay: \f42c; $fa-var-ambulance: \f0f9; $fa-var-american-sign-language-interpreting: \f2a3; $fa-var-amilia: \f36d; $fa-var-anchor: \f13d; $fa-var-android: \f17b; $fa-var-angellist: \f209; $fa-var-angle-double-down: \f103; $fa-var-angle-double-left: \f100; $fa-var-angle-double-right: \f101; $fa-var-angle-double-up: \f102; $fa-var-angle-down: \f107; $fa-var-angle-left: \f104; $fa-var-angle-right: \f105; $fa-var-angle-up: \f106; $fa-var-angry: \f556; $fa-var-angrycreative: \f36e; $fa-var-angular: \f420; $fa-var-ankh: \f644; $fa-var-app-store: \f36f; $fa-var-app-store-ios: \f370; $fa-var-apper: \f371; $fa-var-apple: \f179; $fa-var-apple-alt: \f5d1; $fa-var-apple-pay: \f415; $fa-var-archive: \f187; $fa-var-archway: \f557; $fa-var-arrow-alt-circle-down: \f358; $fa-var-arrow-alt-circle-left: \f359; $fa-var-arrow-alt-circle-right: \f35a; $fa-var-arrow-alt-circle-up: \f35b; $fa-var-arrow-circle-down: \f0ab; $fa-var-arrow-circle-left: \f0a8; $fa-var-arrow-circle-right: \f0a9; $fa-var-arrow-circle-up: \f0aa; $fa-var-arrow-down: \f063; $fa-var-arrow-left: \f060; $fa-var-arrow-right: \f061; $fa-var-arrow-up: \f062; $fa-var-arrows-alt: \f0b2; $fa-var-arrows-alt-h: \f337; $fa-var-arrows-alt-v: \f338; $fa-var-artstation: \f77a; $fa-var-assistive-listening-systems: \f2a2; $fa-var-asterisk: \f069; $fa-var-asymmetrik: \f372; $fa-var-at: \f1fa; $fa-var-atlas: \f558; $fa-var-atlassian: \f77b; $fa-var-atom: \f5d2; $fa-var-audible: \f373; $fa-var-audio-description: \f29e; $fa-var-autoprefixer: \f41c; $fa-var-avianex: \f374; $fa-var-aviato: \f421; $fa-var-award: \f559; $fa-var-aws: \f375; $fa-var-baby: \f77c; $fa-var-baby-carriage: \f77d; $fa-var-backspace: \f55a; $fa-var-backward: \f04a; $fa-var-bacon: \f7e5; $fa-var-balance-scale: \f24e; $fa-var-balance-scale-left: \f515; $fa-var-balance-scale-right: \f516; $fa-var-ban: \f05e; $fa-var-band-aid: \f462; $fa-var-bandcamp: \f2d5; $fa-var-barcode: \f02a; $fa-var-bars: \f0c9; $fa-var-baseball-ball: \f433; $fa-var-basketball-ball: \f434; $fa-var-bath: \f2cd; $fa-var-battery-empty: \f244; $fa-var-battery-full: \f240; $fa-var-battery-half: \f242; $fa-var-battery-quarter: \f243; $fa-var-battery-three-quarters: \f241; $fa-var-battle-net: \f835; $fa-var-bed: \f236; $fa-var-beer: \f0fc; $fa-var-behance: \f1b4; $fa-var-behance-square: \f1b5; $fa-var-bell: \f0f3; $fa-var-bell-slash: \f1f6; $fa-var-bezier-curve: \f55b; $fa-var-bible: \f647; $fa-var-bicycle: \f206; $fa-var-biking: \f84a; $fa-var-bimobject: \f378; $fa-var-binoculars: \f1e5; $fa-var-biohazard: \f780; $fa-var-birthday-cake: \f1fd; $fa-var-bitbucket: \f171; $fa-var-bitcoin: \f379; $fa-var-bity: \f37a; $fa-var-black-tie: \f27e; $fa-var-blackberry: \f37b; $fa-var-blender: \f517; $fa-var-blender-phone: \f6b6; $fa-var-blind: \f29d; $fa-var-blog: \f781; $fa-var-blogger: \f37c; $fa-var-blogger-b: \f37d; $fa-var-bluetooth: \f293; $fa-var-bluetooth-b: \f294; $fa-var-bold: \f032; $fa-var-bolt: \f0e7; $fa-var-bomb: \f1e2; $fa-var-bone: \f5d7; $fa-var-bong: \f55c; $fa-var-book: \f02d; $fa-var-book-dead: \f6b7; $fa-var-book-medical: \f7e6; $fa-var-book-open: \f518; $fa-var-book-reader: \f5da; $fa-var-bookmark: \f02e; $fa-var-bootstrap: \f836; $fa-var-border-all: \f84c; $fa-var-border-none: \f850; $fa-var-border-style: \f853; $fa-var-bowling-ball: \f436; $fa-var-box: \f466; $fa-var-box-open: \f49e; $fa-var-boxes: \f468; $fa-var-braille: \f2a1; $fa-var-brain: \f5dc; $fa-var-bread-slice: \f7ec; $fa-var-briefcase: \f0b1; $fa-var-briefcase-medical: \f469; $fa-var-broadcast-tower: \f519; $fa-var-broom: \f51a; $fa-var-brush: \f55d; $fa-var-btc: \f15a; $fa-var-buffer: \f837; $fa-var-bug: \f188; $fa-var-building: \f1ad; $fa-var-bullhorn: \f0a1; $fa-var-bullseye: \f140; $fa-var-burn: \f46a; $fa-var-buromobelexperte: \f37f; $fa-var-bus: \f207; $fa-var-bus-alt: \f55e; $fa-var-business-time: \f64a; $fa-var-buysellads: \f20d; $fa-var-calculator: \f1ec; $fa-var-calendar: \f133; $fa-var-calendar-alt: \f073; $fa-var-calendar-check: \f274; $fa-var-calendar-day: \f783; $fa-var-calendar-minus: \f272; $fa-var-calendar-plus: \f271; $fa-var-calendar-times: \f273; $fa-var-calendar-week: \f784; $fa-var-camera: \f030; $fa-var-camera-retro: \f083; $fa-var-campground: \f6bb; $fa-var-canadian-maple-leaf: \f785; $fa-var-candy-cane: \f786; $fa-var-cannabis: \f55f; $fa-var-capsules: \f46b; $fa-var-car: \f1b9; $fa-var-car-alt: \f5de; $fa-var-car-battery: \f5df; $fa-var-car-crash: \f5e1; $fa-var-car-side: \f5e4; $fa-var-caret-down: \f0d7; $fa-var-caret-left: \f0d9; $fa-var-caret-right: \f0da; $fa-var-caret-square-down: \f150; $fa-var-caret-square-left: \f191; $fa-var-caret-square-right: \f152; $fa-var-caret-square-up: \f151; $fa-var-caret-up: \f0d8; $fa-var-carrot: \f787; $fa-var-cart-arrow-down: \f218; $fa-var-cart-plus: \f217; $fa-var-cash-register: \f788; $fa-var-cat: \f6be; $fa-var-cc-amazon-pay: \f42d; $fa-var-cc-amex: \f1f3; $fa-var-cc-apple-pay: \f416; $fa-var-cc-diners-club: \f24c; $fa-var-cc-discover: \f1f2; $fa-var-cc-jcb: \f24b; $fa-var-cc-mastercard: \f1f1; $fa-var-cc-paypal: \f1f4; $fa-var-cc-stripe: \f1f5; $fa-var-cc-visa: \f1f0; $fa-var-centercode: \f380; $fa-var-centos: \f789; $fa-var-certificate: \f0a3; $fa-var-chair: \f6c0; $fa-var-chalkboard: \f51b; $fa-var-chalkboard-teacher: \f51c; $fa-var-charging-station: \f5e7; $fa-var-chart-area: \f1fe; $fa-var-chart-bar: \f080; $fa-var-chart-line: \f201; $fa-var-chart-pie: \f200; $fa-var-check: \f00c; $fa-var-check-circle: \f058; $fa-var-check-double: \f560; $fa-var-check-square: \f14a; $fa-var-cheese: \f7ef; $fa-var-chess: \f439; $fa-var-chess-bishop: \f43a; $fa-var-chess-board: \f43c; $fa-var-chess-king: \f43f; $fa-var-chess-knight: \f441; $fa-var-chess-pawn: \f443; $fa-var-chess-queen: \f445; $fa-var-chess-rook: \f447; $fa-var-chevron-circle-down: \f13a; $fa-var-chevron-circle-left: \f137; $fa-var-chevron-circle-right: \f138; $fa-var-chevron-circle-up: \f139; $fa-var-chevron-down: \f078; $fa-var-chevron-left: \f053; $fa-var-chevron-right: \f054; $fa-var-chevron-up: \f077; $fa-var-child: \f1ae; $fa-var-chrome: \f268; $fa-var-chromecast: \f838; $fa-var-church: \f51d; $fa-var-circle: \f111; $fa-var-circle-notch: \f1ce; $fa-var-city: \f64f; $fa-var-clinic-medical: \f7f2; $fa-var-clipboard: \f328; $fa-var-clipboard-check: \f46c; $fa-var-clipboard-list: \f46d; $fa-var-clock: \f017; $fa-var-clone: \f24d; $fa-var-closed-captioning: \f20a; $fa-var-cloud: \f0c2; $fa-var-cloud-download-alt: \f381; $fa-var-cloud-meatball: \f73b; $fa-var-cloud-moon: \f6c3; $fa-var-cloud-moon-rain: \f73c; $fa-var-cloud-rain: \f73d; $fa-var-cloud-showers-heavy: \f740; $fa-var-cloud-sun: \f6c4; $fa-var-cloud-sun-rain: \f743; $fa-var-cloud-upload-alt: \f382; $fa-var-cloudscale: \f383; $fa-var-cloudsmith: \f384; $fa-var-cloudversify: \f385; $fa-var-cocktail: \f561; $fa-var-code: \f121; $fa-var-code-branch: \f126; $fa-var-codepen: \f1cb; $fa-var-codiepie: \f284; $fa-var-coffee: \f0f4; $fa-var-cog: \f013; $fa-var-cogs: \f085; $fa-var-coins: \f51e; $fa-var-columns: \f0db; $fa-var-comment: \f075; $fa-var-comment-alt: \f27a; $fa-var-comment-dollar: \f651; $fa-var-comment-dots: \f4ad; $fa-var-comment-medical: \f7f5; $fa-var-comment-slash: \f4b3; $fa-var-comments: \f086; $fa-var-comments-dollar: \f653; $fa-var-compact-disc: \f51f; $fa-var-compass: \f14e; $fa-var-compress: \f066; $fa-var-compress-arrows-alt: \f78c; $fa-var-concierge-bell: \f562; $fa-var-confluence: \f78d; $fa-var-connectdevelop: \f20e; $fa-var-contao: \f26d; $fa-var-cookie: \f563; $fa-var-cookie-bite: \f564; $fa-var-copy: \f0c5; $fa-var-copyright: \f1f9; $fa-var-cotton-bureau: \f89e; $fa-var-couch: \f4b8; $fa-var-cpanel: \f388; $fa-var-creative-commons: \f25e; $fa-var-creative-commons-by: \f4e7; $fa-var-creative-commons-nc: \f4e8; $fa-var-creative-commons-nc-eu: \f4e9; $fa-var-creative-commons-nc-jp: \f4ea; $fa-var-creative-commons-nd: \f4eb; $fa-var-creative-commons-pd: \f4ec; $fa-var-creative-commons-pd-alt: \f4ed; $fa-var-creative-commons-remix: \f4ee; $fa-var-creative-commons-sa: \f4ef; $fa-var-creative-commons-sampling: \f4f0; $fa-var-creative-commons-sampling-plus: \f4f1; $fa-var-creative-commons-share: \f4f2; $fa-var-creative-commons-zero: \f4f3; $fa-var-credit-card: \f09d; $fa-var-critical-role: \f6c9; $fa-var-crop: \f125; $fa-var-crop-alt: \f565; $fa-var-cross: \f654; $fa-var-crosshairs: \f05b; $fa-var-crow: \f520; $fa-var-crown: \f521; $fa-var-crutch: \f7f7; $fa-var-css3: \f13c; $fa-var-css3-alt: \f38b; $fa-var-cube: \f1b2; $fa-var-cubes: \f1b3; $fa-var-cut: \f0c4; $fa-var-cuttlefish: \f38c; $fa-var-d-and-d: \f38d; $fa-var-d-and-d-beyond: \f6ca; $fa-var-dashcube: \f210; $fa-var-database: \f1c0; $fa-var-deaf: \f2a4; $fa-var-delicious: \f1a5; $fa-var-democrat: \f747; $fa-var-deploydog: \f38e; $fa-var-deskpro: \f38f; $fa-var-desktop: \f108; $fa-var-dev: \f6cc; $fa-var-deviantart: \f1bd; $fa-var-dharmachakra: \f655; $fa-var-dhl: \f790; $fa-var-diagnoses: \f470; $fa-var-diaspora: \f791; $fa-var-dice: \f522; $fa-var-dice-d20: \f6cf; $fa-var-dice-d6: \f6d1; $fa-var-dice-five: \f523; $fa-var-dice-four: \f524; $fa-var-dice-one: \f525; $fa-var-dice-six: \f526; $fa-var-dice-three: \f527; $fa-var-dice-two: \f528; $fa-var-digg: \f1a6; $fa-var-digital-ocean: \f391; $fa-var-digital-tachograph: \f566; $fa-var-directions: \f5eb; $fa-var-discord: \f392; $fa-var-discourse: \f393; $fa-var-divide: \f529; $fa-var-dizzy: \f567; $fa-var-dna: \f471; $fa-var-dochub: \f394; $fa-var-docker: \f395; $fa-var-dog: \f6d3; $fa-var-dollar-sign: \f155; $fa-var-dolly: \f472; $fa-var-dolly-flatbed: \f474; $fa-var-donate: \f4b9; $fa-var-door-closed: \f52a; $fa-var-door-open: \f52b; $fa-var-dot-circle: \f192; $fa-var-dove: \f4ba; $fa-var-download: \f019; $fa-var-draft2digital: \f396; $fa-var-drafting-compass: \f568; $fa-var-dragon: \f6d5; $fa-var-draw-polygon: \f5ee; $fa-var-dribbble: \f17d; $fa-var-dribbble-square: \f397; $fa-var-dropbox: \f16b; $fa-var-drum: \f569; $fa-var-drum-steelpan: \f56a; $fa-var-drumstick-bite: \f6d7; $fa-var-drupal: \f1a9; $fa-var-dumbbell: \f44b; $fa-var-dumpster: \f793; $fa-var-dumpster-fire: \f794; $fa-var-dungeon: \f6d9; $fa-var-dyalog: \f399; $fa-var-earlybirds: \f39a; $fa-var-ebay: \f4f4; $fa-var-edge: \f282; $fa-var-edit: \f044; $fa-var-egg: \f7fb; $fa-var-eject: \f052; $fa-var-elementor: \f430; $fa-var-ellipsis-h: \f141; $fa-var-ellipsis-v: \f142; $fa-var-ello: \f5f1; $fa-var-ember: \f423; $fa-var-empire: \f1d1; $fa-var-envelope: \f0e0; $fa-var-envelope-open: \f2b6; $fa-var-envelope-open-text: \f658; $fa-var-envelope-square: \f199; $fa-var-envira: \f299; $fa-var-equals: \f52c; $fa-var-eraser: \f12d; $fa-var-erlang: \f39d; $fa-var-ethereum: \f42e; $fa-var-ethernet: \f796; $fa-var-etsy: \f2d7; $fa-var-euro-sign: \f153; $fa-var-evernote: \f839; $fa-var-exchange-alt: \f362; $fa-var-exclamation: \f12a; $fa-var-exclamation-circle: \f06a; $fa-var-exclamation-triangle: \f071; $fa-var-expand: \f065; $fa-var-expand-arrows-alt: \f31e; $fa-var-expeditedssl: \f23e; $fa-var-external-link-alt: \f35d; $fa-var-external-link-square-alt: \f360; $fa-var-eye: \f06e; $fa-var-eye-dropper: \f1fb; $fa-var-eye-slash: \f070; $fa-var-facebook: \f09a; $fa-var-facebook-f: \f39e; $fa-var-facebook-messenger: \f39f; $fa-var-facebook-square: \f082; $fa-var-fan: \f863; $fa-var-fantasy-flight-games: \f6dc; $fa-var-fast-backward: \f049; $fa-var-fast-forward: \f050; $fa-var-fax: \f1ac; $fa-var-feather: \f52d; $fa-var-feather-alt: \f56b; $fa-var-fedex: \f797; $fa-var-fedora: \f798; $fa-var-female: \f182; $fa-var-fighter-jet: \f0fb; $fa-var-figma: \f799; $fa-var-file: \f15b; $fa-var-file-alt: \f15c; $fa-var-file-archive: \f1c6; $fa-var-file-audio: \f1c7; $fa-var-file-code: \f1c9; $fa-var-file-contract: \f56c; $fa-var-file-csv: \f6dd; $fa-var-file-download: \f56d; $fa-var-file-excel: \f1c3; $fa-var-file-export: \f56e; $fa-var-file-image: \f1c5; $fa-var-file-import: \f56f; $fa-var-file-invoice: \f570; $fa-var-file-invoice-dollar: \f571; $fa-var-file-medical: \f477; $fa-var-file-medical-alt: \f478; $fa-var-file-pdf: \f1c1; $fa-var-file-powerpoint: \f1c4; $fa-var-file-prescription: \f572; $fa-var-file-signature: \f573; $fa-var-file-upload: \f574; $fa-var-file-video: \f1c8; $fa-var-file-word: \f1c2; $fa-var-fill: \f575; $fa-var-fill-drip: \f576; $fa-var-film: \f008; $fa-var-filter: \f0b0; $fa-var-fingerprint: \f577; $fa-var-fire: \f06d; $fa-var-fire-alt: \f7e4; $fa-var-fire-extinguisher: \f134; $fa-var-firefox: \f269; $fa-var-first-aid: \f479; $fa-var-first-order: \f2b0; $fa-var-first-order-alt: \f50a; $fa-var-firstdraft: \f3a1; $fa-var-fish: \f578; $fa-var-fist-raised: \f6de; $fa-var-flag: \f024; $fa-var-flag-checkered: \f11e; $fa-var-flag-usa: \f74d; $fa-var-flask: \f0c3; $fa-var-flickr: \f16e; $fa-var-flipboard: \f44d; $fa-var-flushed: \f579; $fa-var-fly: \f417; $fa-var-folder: \f07b; $fa-var-folder-minus: \f65d; $fa-var-folder-open: \f07c; $fa-var-folder-plus: \f65e; $fa-var-font: \f031; $fa-var-font-awesome: \f2b4; $fa-var-font-awesome-alt: \f35c; $fa-var-font-awesome-flag: \f425; $fa-var-font-awesome-logo-full: \f4e6; $fa-var-fonticons: \f280; $fa-var-fonticons-fi: \f3a2; $fa-var-football-ball: \f44e; $fa-var-fort-awesome: \f286; $fa-var-fort-awesome-alt: \f3a3; $fa-var-forumbee: \f211; $fa-var-forward: \f04e; $fa-var-foursquare: \f180; $fa-var-free-code-camp: \f2c5; $fa-var-freebsd: \f3a4; $fa-var-frog: \f52e; $fa-var-frown: \f119; $fa-var-frown-open: \f57a; $fa-var-fulcrum: \f50b; $fa-var-funnel-dollar: \f662; $fa-var-futbol: \f1e3; $fa-var-galactic-republic: \f50c; $fa-var-galactic-senate: \f50d; $fa-var-gamepad: \f11b; $fa-var-gas-pump: \f52f; $fa-var-gavel: \f0e3; $fa-var-gem: \f3a5; $fa-var-genderless: \f22d; $fa-var-get-pocket: \f265; $fa-var-gg: \f260; $fa-var-gg-circle: \f261; $fa-var-ghost: \f6e2; $fa-var-gift: \f06b; $fa-var-gifts: \f79c; $fa-var-git: \f1d3; $fa-var-git-alt: \f841; $fa-var-git-square: \f1d2; $fa-var-github: \f09b; $fa-var-github-alt: \f113; $fa-var-github-square: \f092; $fa-var-gitkraken: \f3a6; $fa-var-gitlab: \f296; $fa-var-gitter: \f426; $fa-var-glass-cheers: \f79f; $fa-var-glass-martini: \f000; $fa-var-glass-martini-alt: \f57b; $fa-var-glass-whiskey: \f7a0; $fa-var-glasses: \f530; $fa-var-glide: \f2a5; $fa-var-glide-g: \f2a6; $fa-var-globe: \f0ac; $fa-var-globe-africa: \f57c; $fa-var-globe-americas: \f57d; $fa-var-globe-asia: \f57e; $fa-var-globe-europe: \f7a2; $fa-var-gofore: \f3a7; $fa-var-golf-ball: \f450; $fa-var-goodreads: \f3a8; $fa-var-goodreads-g: \f3a9; $fa-var-google: \f1a0; $fa-var-google-drive: \f3aa; $fa-var-google-play: \f3ab; $fa-var-google-plus: \f2b3; $fa-var-google-plus-g: \f0d5; $fa-var-google-plus-square: \f0d4; $fa-var-google-wallet: \f1ee; $fa-var-gopuram: \f664; $fa-var-graduation-cap: \f19d; $fa-var-gratipay: \f184; $fa-var-grav: \f2d6; $fa-var-greater-than: \f531; $fa-var-greater-than-equal: \f532; $fa-var-grimace: \f57f; $fa-var-grin: \f580; $fa-var-grin-alt: \f581; $fa-var-grin-beam: \f582; $fa-var-grin-beam-sweat: \f583; $fa-var-grin-hearts: \f584; $fa-var-grin-squint: \f585; $fa-var-grin-squint-tears: \f586; $fa-var-grin-stars: \f587; $fa-var-grin-tears: \f588; $fa-var-grin-tongue: \f589; $fa-var-grin-tongue-squint: \f58a; $fa-var-grin-tongue-wink: \f58b; $fa-var-grin-wink: \f58c; $fa-var-grip-horizontal: \f58d; $fa-var-grip-lines: \f7a4; $fa-var-grip-lines-vertical: \f7a5; $fa-var-grip-vertical: \f58e; $fa-var-gripfire: \f3ac; $fa-var-grunt: \f3ad; $fa-var-guitar: \f7a6; $fa-var-gulp: \f3ae; $fa-var-h-square: \f0fd; $fa-var-hacker-news: \f1d4; $fa-var-hacker-news-square: \f3af; $fa-var-hackerrank: \f5f7; $fa-var-hamburger: \f805; $fa-var-hammer: \f6e3; $fa-var-hamsa: \f665; $fa-var-hand-holding: \f4bd; $fa-var-hand-holding-heart: \f4be; $fa-var-hand-holding-usd: \f4c0; $fa-var-hand-lizard: \f258; $fa-var-hand-middle-finger: \f806; $fa-var-hand-paper: \f256; $fa-var-hand-peace: \f25b; $fa-var-hand-point-down: \f0a7; $fa-var-hand-point-left: \f0a5; $fa-var-hand-point-right: \f0a4; $fa-var-hand-point-up: \f0a6; $fa-var-hand-pointer: \f25a; $fa-var-hand-rock: \f255; $fa-var-hand-scissors: \f257; $fa-var-hand-spock: \f259; $fa-var-hands: \f4c2; $fa-var-hands-helping: \f4c4; $fa-var-handshake: \f2b5; $fa-var-hanukiah: \f6e6; $fa-var-hard-hat: \f807; $fa-var-hashtag: \f292; $fa-var-hat-wizard: \f6e8; $fa-var-haykal: \f666; $fa-var-hdd: \f0a0; $fa-var-heading: \f1dc; $fa-var-headphones: \f025; $fa-var-headphones-alt: \f58f; $fa-var-headset: \f590; $fa-var-heart: \f004; $fa-var-heart-broken: \f7a9; $fa-var-heartbeat: \f21e; $fa-var-helicopter: \f533; $fa-var-highlighter: \f591; $fa-var-hiking: \f6ec; $fa-var-hippo: \f6ed; $fa-var-hips: \f452; $fa-var-hire-a-helper: \f3b0; $fa-var-history: \f1da; $fa-var-hockey-puck: \f453; $fa-var-holly-berry: \f7aa; $fa-var-home: \f015; $fa-var-hooli: \f427; $fa-var-hornbill: \f592; $fa-var-horse: \f6f0; $fa-var-horse-head: \f7ab; $fa-var-hospital: \f0f8; $fa-var-hospital-alt: \f47d; $fa-var-hospital-symbol: \f47e; $fa-var-hot-tub: \f593; $fa-var-hotdog: \f80f; $fa-var-hotel: \f594; $fa-var-hotjar: \f3b1; $fa-var-hourglass: \f254; $fa-var-hourglass-end: \f253; $fa-var-hourglass-half: \f252; $fa-var-hourglass-start: \f251; $fa-var-house-damage: \f6f1; $fa-var-houzz: \f27c; $fa-var-hryvnia: \f6f2; $fa-var-html5: \f13b; $fa-var-hubspot: \f3b2; $fa-var-i-cursor: \f246; $fa-var-ice-cream: \f810; $fa-var-icicles: \f7ad; $fa-var-icons: \f86d; $fa-var-id-badge: \f2c1; $fa-var-id-card: \f2c2; $fa-var-id-card-alt: \f47f; $fa-var-igloo: \f7ae; $fa-var-image: \f03e; $fa-var-images: \f302; $fa-var-imdb: \f2d8; $fa-var-inbox: \f01c; $fa-var-indent: \f03c; $fa-var-industry: \f275; $fa-var-infinity: \f534; $fa-var-info: \f129; $fa-var-info-circle: \f05a; $fa-var-instagram: \f16d; $fa-var-intercom: \f7af; $fa-var-internet-explorer: \f26b; $fa-var-invision: \f7b0; $fa-var-ioxhost: \f208; $fa-var-italic: \f033; $fa-var-itch-io: \f83a; $fa-var-itunes: \f3b4; $fa-var-itunes-note: \f3b5; $fa-var-java: \f4e4; $fa-var-jedi: \f669; $fa-var-jedi-order: \f50e; $fa-var-jenkins: \f3b6; $fa-var-jira: \f7b1; $fa-var-joget: \f3b7; $fa-var-joint: \f595; $fa-var-joomla: \f1aa; $fa-var-journal-whills: \f66a; $fa-var-js: \f3b8; $fa-var-js-square: \f3b9; $fa-var-jsfiddle: \f1cc; $fa-var-kaaba: \f66b; $fa-var-kaggle: \f5fa; $fa-var-key: \f084; $fa-var-keybase: \f4f5; $fa-var-keyboard: \f11c; $fa-var-keycdn: \f3ba; $fa-var-khanda: \f66d; $fa-var-kickstarter: \f3bb; $fa-var-kickstarter-k: \f3bc; $fa-var-kiss: \f596; $fa-var-kiss-beam: \f597; $fa-var-kiss-wink-heart: \f598; $fa-var-kiwi-bird: \f535; $fa-var-korvue: \f42f; $fa-var-landmark: \f66f; $fa-var-language: \f1ab; $fa-var-laptop: \f109; $fa-var-laptop-code: \f5fc; $fa-var-laptop-medical: \f812; $fa-var-laravel: \f3bd; $fa-var-lastfm: \f202; $fa-var-lastfm-square: \f203; $fa-var-laugh: \f599; $fa-var-laugh-beam: \f59a; $fa-var-laugh-squint: \f59b; $fa-var-laugh-wink: \f59c; $fa-var-layer-group: \f5fd; $fa-var-leaf: \f06c; $fa-var-leanpub: \f212; $fa-var-lemon: \f094; $fa-var-less: \f41d; $fa-var-less-than: \f536; $fa-var-less-than-equal: \f537; $fa-var-level-down-alt: \f3be; $fa-var-level-up-alt: \f3bf; $fa-var-life-ring: \f1cd; $fa-var-lightbulb: \f0eb; $fa-var-line: \f3c0; $fa-var-link: \f0c1; $fa-var-linkedin: \f08c; $fa-var-linkedin-in: \f0e1; $fa-var-linode: \f2b8; $fa-var-linux: \f17c; $fa-var-lira-sign: \f195; $fa-var-list: \f03a; $fa-var-list-alt: \f022; $fa-var-list-ol: \f0cb; $fa-var-list-ul: \f0ca; $fa-var-location-arrow: \f124; $fa-var-lock: \f023; $fa-var-lock-open: \f3c1; $fa-var-long-arrow-alt-down: \f309; $fa-var-long-arrow-alt-left: \f30a; $fa-var-long-arrow-alt-right: \f30b; $fa-var-long-arrow-alt-up: \f30c; $fa-var-low-vision: \f2a8; $fa-var-luggage-cart: \f59d; $fa-var-lyft: \f3c3; $fa-var-magento: \f3c4; $fa-var-magic: \f0d0; $fa-var-magnet: \f076; $fa-var-mail-bulk: \f674; $fa-var-mailchimp: \f59e; $fa-var-male: \f183; $fa-var-mandalorian: \f50f; $fa-var-map: \f279; $fa-var-map-marked: \f59f; $fa-var-map-marked-alt: \f5a0; $fa-var-map-marker: \f041; $fa-var-map-marker-alt: \f3c5; $fa-var-map-pin: \f276; $fa-var-map-signs: \f277; $fa-var-markdown: \f60f; $fa-var-marker: \f5a1; $fa-var-mars: \f222; $fa-var-mars-double: \f227; $fa-var-mars-stroke: \f229; $fa-var-mars-stroke-h: \f22b; $fa-var-mars-stroke-v: \f22a; $fa-var-mask: \f6fa; $fa-var-mastodon: \f4f6; $fa-var-maxcdn: \f136; $fa-var-medal: \f5a2; $fa-var-medapps: \f3c6; $fa-var-medium: \f23a; $fa-var-medium-m: \f3c7; $fa-var-medkit: \f0fa; $fa-var-medrt: \f3c8; $fa-var-meetup: \f2e0; $fa-var-megaport: \f5a3; $fa-var-meh: \f11a; $fa-var-meh-blank: \f5a4; $fa-var-meh-rolling-eyes: \f5a5; $fa-var-memory: \f538; $fa-var-mendeley: \f7b3; $fa-var-menorah: \f676; $fa-var-mercury: \f223; $fa-var-meteor: \f753; $fa-var-microchip: \f2db; $fa-var-microphone: \f130; $fa-var-microphone-alt: \f3c9; $fa-var-microphone-alt-slash: \f539; $fa-var-microphone-slash: \f131; $fa-var-microscope: \f610; $fa-var-microsoft: \f3ca; $fa-var-minus: \f068; $fa-var-minus-circle: \f056; $fa-var-minus-square: \f146; $fa-var-mitten: \f7b5; $fa-var-mix: \f3cb; $fa-var-mixcloud: \f289; $fa-var-mizuni: \f3cc; $fa-var-mobile: \f10b; $fa-var-mobile-alt: \f3cd; $fa-var-modx: \f285; $fa-var-monero: \f3d0; $fa-var-money-bill: \f0d6; $fa-var-money-bill-alt: \f3d1; $fa-var-money-bill-wave: \f53a; $fa-var-money-bill-wave-alt: \f53b; $fa-var-money-check: \f53c; $fa-var-money-check-alt: \f53d; $fa-var-monument: \f5a6; $fa-var-moon: \f186; $fa-var-mortar-pestle: \f5a7; $fa-var-mosque: \f678; $fa-var-motorcycle: \f21c; $fa-var-mountain: \f6fc; $fa-var-mouse-pointer: \f245; $fa-var-mug-hot: \f7b6; $fa-var-music: \f001; $fa-var-napster: \f3d2; $fa-var-neos: \f612; $fa-var-network-wired: \f6ff; $fa-var-neuter: \f22c; $fa-var-newspaper: \f1ea; $fa-var-nimblr: \f5a8; $fa-var-node: \f419; $fa-var-node-js: \f3d3; $fa-var-not-equal: \f53e; $fa-var-notes-medical: \f481; $fa-var-npm: \f3d4; $fa-var-ns8: \f3d5; $fa-var-nutritionix: \f3d6; $fa-var-object-group: \f247; $fa-var-object-ungroup: \f248; $fa-var-odnoklassniki: \f263; $fa-var-odnoklassniki-square: \f264; $fa-var-oil-can: \f613; $fa-var-old-republic: \f510; $fa-var-om: \f679; $fa-var-opencart: \f23d; $fa-var-openid: \f19b; $fa-var-opera: \f26a; $fa-var-optin-monster: \f23c; $fa-var-osi: \f41a; $fa-var-otter: \f700; $fa-var-outdent: \f03b; $fa-var-page4: \f3d7; $fa-var-pagelines: \f18c; $fa-var-pager: \f815; $fa-var-paint-brush: \f1fc; $fa-var-paint-roller: \f5aa; $fa-var-palette: \f53f; $fa-var-palfed: \f3d8; $fa-var-pallet: \f482; $fa-var-paper-plane: \f1d8; $fa-var-paperclip: \f0c6; $fa-var-parachute-box: \f4cd; $fa-var-paragraph: \f1dd; $fa-var-parking: \f540; $fa-var-passport: \f5ab; $fa-var-pastafarianism: \f67b; $fa-var-paste: \f0ea; $fa-var-patreon: \f3d9; $fa-var-pause: \f04c; $fa-var-pause-circle: \f28b; $fa-var-paw: \f1b0; $fa-var-paypal: \f1ed; $fa-var-peace: \f67c; $fa-var-pen: \f304; $fa-var-pen-alt: \f305; $fa-var-pen-fancy: \f5ac; $fa-var-pen-nib: \f5ad; $fa-var-pen-square: \f14b; $fa-var-pencil-alt: \f303; $fa-var-pencil-ruler: \f5ae; $fa-var-penny-arcade: \f704; $fa-var-people-carry: \f4ce; $fa-var-pepper-hot: \f816; $fa-var-percent: \f295; $fa-var-percentage: \f541; $fa-var-periscope: \f3da; $fa-var-person-booth: \f756; $fa-var-phabricator: \f3db; $fa-var-phoenix-framework: \f3dc; $fa-var-phoenix-squadron: \f511; $fa-var-phone: \f095; $fa-var-phone-alt: \f879; $fa-var-phone-slash: \f3dd; $fa-var-phone-square: \f098; $fa-var-phone-square-alt: \f87b; $fa-var-phone-volume: \f2a0; $fa-var-photo-video: \f87c; $fa-var-php: \f457; $fa-var-pied-piper: \f2ae; $fa-var-pied-piper-alt: \f1a8; $fa-var-pied-piper-hat: \f4e5; $fa-var-pied-piper-pp: \f1a7; $fa-var-piggy-bank: \f4d3; $fa-var-pills: \f484; $fa-var-pinterest: \f0d2; $fa-var-pinterest-p: \f231; $fa-var-pinterest-square: \f0d3; $fa-var-pizza-slice: \f818; $fa-var-place-of-worship: \f67f; $fa-var-plane: \f072; $fa-var-plane-arrival: \f5af; $fa-var-plane-departure: \f5b0; $fa-var-play: \f04b; $fa-var-play-circle: \f144; $fa-var-playstation: \f3df; $fa-var-plug: \f1e6; $fa-var-plus: \f067; $fa-var-plus-circle: \f055; $fa-var-plus-square: \f0fe; $fa-var-podcast: \f2ce; $fa-var-poll: \f681; $fa-var-poll-h: \f682; $fa-var-poo: \f2fe; $fa-var-poo-storm: \f75a; $fa-var-poop: \f619; $fa-var-portrait: \f3e0; $fa-var-pound-sign: \f154; $fa-var-power-off: \f011; $fa-var-pray: \f683; $fa-var-praying-hands: \f684; $fa-var-prescription: \f5b1; $fa-var-prescription-bottle: \f485; $fa-var-prescription-bottle-alt: \f486; $fa-var-print: \f02f; $fa-var-procedures: \f487; $fa-var-product-hunt: \f288; $fa-var-project-diagram: \f542; $fa-var-pushed: \f3e1; $fa-var-puzzle-piece: \f12e; $fa-var-python: \f3e2; $fa-var-qq: \f1d6; $fa-var-qrcode: \f029; $fa-var-question: \f128; $fa-var-question-circle: \f059; $fa-var-quidditch: \f458; $fa-var-quinscape: \f459; $fa-var-quora: \f2c4; $fa-var-quote-left: \f10d; $fa-var-quote-right: \f10e; $fa-var-quran: \f687; $fa-var-r-project: \f4f7; $fa-var-radiation: \f7b9; $fa-var-radiation-alt: \f7ba; $fa-var-rainbow: \f75b; $fa-var-random: \f074; $fa-var-raspberry-pi: \f7bb; $fa-var-ravelry: \f2d9; $fa-var-react: \f41b; $fa-var-reacteurope: \f75d; $fa-var-readme: \f4d5; $fa-var-rebel: \f1d0; $fa-var-receipt: \f543; $fa-var-recycle: \f1b8; $fa-var-red-river: \f3e3; $fa-var-reddit: \f1a1; $fa-var-reddit-alien: \f281; $fa-var-reddit-square: \f1a2; $fa-var-redhat: \f7bc; $fa-var-redo: \f01e; $fa-var-redo-alt: \f2f9; $fa-var-registered: \f25d; $fa-var-remove-format: \f87d; $fa-var-renren: \f18b; $fa-var-reply: \f3e5; $fa-var-reply-all: \f122; $fa-var-replyd: \f3e6; $fa-var-republican: \f75e; $fa-var-researchgate: \f4f8; $fa-var-resolving: \f3e7; $fa-var-restroom: \f7bd; $fa-var-retweet: \f079; $fa-var-rev: \f5b2; $fa-var-ribbon: \f4d6; $fa-var-ring: \f70b; $fa-var-road: \f018; $fa-var-robot: \f544; $fa-var-rocket: \f135; $fa-var-rocketchat: \f3e8; $fa-var-rockrms: \f3e9; $fa-var-route: \f4d7; $fa-var-rss: \f09e; $fa-var-rss-square: \f143; $fa-var-ruble-sign: \f158; $fa-var-ruler: \f545; $fa-var-ruler-combined: \f546; $fa-var-ruler-horizontal: \f547; $fa-var-ruler-vertical: \f548; $fa-var-running: \f70c; $fa-var-rupee-sign: \f156; $fa-var-sad-cry: \f5b3; $fa-var-sad-tear: \f5b4; $fa-var-safari: \f267; $fa-var-salesforce: \f83b; $fa-var-sass: \f41e; $fa-var-satellite: \f7bf; $fa-var-satellite-dish: \f7c0; $fa-var-save: \f0c7; $fa-var-schlix: \f3ea; $fa-var-school: \f549; $fa-var-screwdriver: \f54a; $fa-var-scribd: \f28a; $fa-var-scroll: \f70e; $fa-var-sd-card: \f7c2; $fa-var-search: \f002; $fa-var-search-dollar: \f688; $fa-var-search-location: \f689; $fa-var-search-minus: \f010; $fa-var-search-plus: \f00e; $fa-var-searchengin: \f3eb; $fa-var-seedling: \f4d8; $fa-var-sellcast: \f2da; $fa-var-sellsy: \f213; $fa-var-server: \f233; $fa-var-servicestack: \f3ec; $fa-var-shapes: \f61f; $fa-var-share: \f064; $fa-var-share-alt: \f1e0; $fa-var-share-alt-square: \f1e1; $fa-var-share-square: \f14d; $fa-var-shekel-sign: \f20b; $fa-var-shield-alt: \f3ed; $fa-var-ship: \f21a; $fa-var-shipping-fast: \f48b; $fa-var-shirtsinbulk: \f214; $fa-var-shoe-prints: \f54b; $fa-var-shopping-bag: \f290; $fa-var-shopping-basket: \f291; $fa-var-shopping-cart: \f07a; $fa-var-shopware: \f5b5; $fa-var-shower: \f2cc; $fa-var-shuttle-van: \f5b6; $fa-var-sign: \f4d9; $fa-var-sign-in-alt: \f2f6; $fa-var-sign-language: \f2a7; $fa-var-sign-out-alt: \f2f5; $fa-var-signal: \f012; $fa-var-signature: \f5b7; $fa-var-sim-card: \f7c4; $fa-var-simplybuilt: \f215; $fa-var-sistrix: \f3ee; $fa-var-sitemap: \f0e8; $fa-var-sith: \f512; $fa-var-skating: \f7c5; $fa-var-sketch: \f7c6; $fa-var-skiing: \f7c9; $fa-var-skiing-nordic: \f7ca; $fa-var-skull: \f54c; $fa-var-skull-crossbones: \f714; $fa-var-skyatlas: \f216; $fa-var-skype: \f17e; $fa-var-slack: \f198; $fa-var-slack-hash: \f3ef; $fa-var-slash: \f715; $fa-var-sleigh: \f7cc; $fa-var-sliders-h: \f1de; $fa-var-slideshare: \f1e7; $fa-var-smile: \f118; $fa-var-smile-beam: \f5b8; $fa-var-smile-wink: \f4da; $fa-var-smog: \f75f; $fa-var-smoking: \f48d; $fa-var-smoking-ban: \f54d; $fa-var-sms: \f7cd; $fa-var-snapchat: \f2ab; $fa-var-snapchat-ghost: \f2ac; $fa-var-snapchat-square: \f2ad; $fa-var-snowboarding: \f7ce; $fa-var-snowflake: \f2dc; $fa-var-snowman: \f7d0; $fa-var-snowplow: \f7d2; $fa-var-socks: \f696; $fa-var-solar-panel: \f5ba; $fa-var-sort: \f0dc; $fa-var-sort-alpha-down: \f15d; $fa-var-sort-alpha-down-alt: \f881; $fa-var-sort-alpha-up: \f15e; $fa-var-sort-alpha-up-alt: \f882; $fa-var-sort-amount-down: \f160; $fa-var-sort-amount-down-alt: \f884; $fa-var-sort-amount-up: \f161; $fa-var-sort-amount-up-alt: \f885; $fa-var-sort-down: \f0dd; $fa-var-sort-numeric-down: \f162; $fa-var-sort-numeric-down-alt: \f886; $fa-var-sort-numeric-up: \f163; $fa-var-sort-numeric-up-alt: \f887; $fa-var-sort-up: \f0de; $fa-var-soundcloud: \f1be; $fa-var-sourcetree: \f7d3; $fa-var-spa: \f5bb; $fa-var-space-shuttle: \f197; $fa-var-speakap: \f3f3; $fa-var-speaker-deck: \f83c; $fa-var-spell-check: \f891; $fa-var-spider: \f717; $fa-var-spinner: \f110; $fa-var-splotch: \f5bc; $fa-var-spotify: \f1bc; $fa-var-spray-can: \f5bd; $fa-var-square: \f0c8; $fa-var-square-full: \f45c; $fa-var-square-root-alt: \f698; $fa-var-squarespace: \f5be; $fa-var-stack-exchange: \f18d; $fa-var-stack-overflow: \f16c; $fa-var-stackpath: \f842; $fa-var-stamp: \f5bf; $fa-var-star: \f005; $fa-var-star-and-crescent: \f699; $fa-var-star-half: \f089; $fa-var-star-half-alt: \f5c0; $fa-var-star-of-david: \f69a; $fa-var-star-of-life: \f621; $fa-var-staylinked: \f3f5; $fa-var-steam: \f1b6; $fa-var-steam-square: \f1b7; $fa-var-steam-symbol: \f3f6; $fa-var-step-backward: \f048; $fa-var-step-forward: \f051; $fa-var-stethoscope: \f0f1; $fa-var-sticker-mule: \f3f7; $fa-var-sticky-note: \f249; $fa-var-stop: \f04d; $fa-var-stop-circle: \f28d; $fa-var-stopwatch: \f2f2; $fa-var-store: \f54e; $fa-var-store-alt: \f54f; $fa-var-strava: \f428; $fa-var-stream: \f550; $fa-var-street-view: \f21d; $fa-var-strikethrough: \f0cc; $fa-var-stripe: \f429; $fa-var-stripe-s: \f42a; $fa-var-stroopwafel: \f551; $fa-var-studiovinari: \f3f8; $fa-var-stumbleupon: \f1a4; $fa-var-stumbleupon-circle: \f1a3; $fa-var-subscript: \f12c; $fa-var-subway: \f239; $fa-var-suitcase: \f0f2; $fa-var-suitcase-rolling: \f5c1; $fa-var-sun: \f185; $fa-var-superpowers: \f2dd; $fa-var-superscript: \f12b; $fa-var-supple: \f3f9; $fa-var-surprise: \f5c2; $fa-var-suse: \f7d6; $fa-var-swatchbook: \f5c3; $fa-var-swimmer: \f5c4; $fa-var-swimming-pool: \f5c5; $fa-var-symfony: \f83d; $fa-var-synagogue: \f69b; $fa-var-sync: \f021; $fa-var-sync-alt: \f2f1; $fa-var-syringe: \f48e; $fa-var-table: \f0ce; $fa-var-table-tennis: \f45d; $fa-var-tablet: \f10a; $fa-var-tablet-alt: \f3fa; $fa-var-tablets: \f490; $fa-var-tachometer-alt: \f3fd; $fa-var-tag: \f02b; $fa-var-tags: \f02c; $fa-var-tape: \f4db; $fa-var-tasks: \f0ae; $fa-var-taxi: \f1ba; $fa-var-teamspeak: \f4f9; $fa-var-teeth: \f62e; $fa-var-teeth-open: \f62f; $fa-var-telegram: \f2c6; $fa-var-telegram-plane: \f3fe; $fa-var-temperature-high: \f769; $fa-var-temperature-low: \f76b; $fa-var-tencent-weibo: \f1d5; $fa-var-tenge: \f7d7; $fa-var-terminal: \f120; $fa-var-text-height: \f034; $fa-var-text-width: \f035; $fa-var-th: \f00a; $fa-var-th-large: \f009; $fa-var-th-list: \f00b; $fa-var-the-red-yeti: \f69d; $fa-var-theater-masks: \f630; $fa-var-themeco: \f5c6; $fa-var-themeisle: \f2b2; $fa-var-thermometer: \f491; $fa-var-thermometer-empty: \f2cb; $fa-var-thermometer-full: \f2c7; $fa-var-thermometer-half: \f2c9; $fa-var-thermometer-quarter: \f2ca; $fa-var-thermometer-three-quarters: \f2c8; $fa-var-think-peaks: \f731; $fa-var-thumbs-down: \f165; $fa-var-thumbs-up: \f164; $fa-var-thumbtack: \f08d; $fa-var-ticket-alt: \f3ff; $fa-var-times: \f00d; $fa-var-times-circle: \f057; $fa-var-tint: \f043; $fa-var-tint-slash: \f5c7; $fa-var-tired: \f5c8; $fa-var-toggle-off: \f204; $fa-var-toggle-on: \f205; $fa-var-toilet: \f7d8; $fa-var-toilet-paper: \f71e; $fa-var-toolbox: \f552; $fa-var-tools: \f7d9; $fa-var-tooth: \f5c9; $fa-var-torah: \f6a0; $fa-var-torii-gate: \f6a1; $fa-var-tractor: \f722; $fa-var-trade-federation: \f513; $fa-var-trademark: \f25c; $fa-var-traffic-light: \f637; $fa-var-train: \f238; $fa-var-tram: \f7da; $fa-var-transgender: \f224; $fa-var-transgender-alt: \f225; $fa-var-trash: \f1f8; $fa-var-trash-alt: \f2ed; $fa-var-trash-restore: \f829; $fa-var-trash-restore-alt: \f82a; $fa-var-tree: \f1bb; $fa-var-trello: \f181; $fa-var-tripadvisor: \f262; $fa-var-trophy: \f091; $fa-var-truck: \f0d1; $fa-var-truck-loading: \f4de; $fa-var-truck-monster: \f63b; $fa-var-truck-moving: \f4df; $fa-var-truck-pickup: \f63c; $fa-var-tshirt: \f553; $fa-var-tty: \f1e4; $fa-var-tumblr: \f173; $fa-var-tumblr-square: \f174; $fa-var-tv: \f26c; $fa-var-twitch: \f1e8; $fa-var-twitter: \f099; $fa-var-twitter-square: \f081; $fa-var-typo3: \f42b; $fa-var-uber: \f402; $fa-var-ubuntu: \f7df; $fa-var-uikit: \f403; $fa-var-umbrella: \f0e9; $fa-var-umbrella-beach: \f5ca; $fa-var-underline: \f0cd; $fa-var-undo: \f0e2; $fa-var-undo-alt: \f2ea; $fa-var-uniregistry: \f404; $fa-var-universal-access: \f29a; $fa-var-university: \f19c; $fa-var-unlink: \f127; $fa-var-unlock: \f09c; $fa-var-unlock-alt: \f13e; $fa-var-untappd: \f405; $fa-var-upload: \f093; $fa-var-ups: \f7e0; $fa-var-usb: \f287; $fa-var-user: \f007; $fa-var-user-alt: \f406; $fa-var-user-alt-slash: \f4fa; $fa-var-user-astronaut: \f4fb; $fa-var-user-check: \f4fc; $fa-var-user-circle: \f2bd; $fa-var-user-clock: \f4fd; $fa-var-user-cog: \f4fe; $fa-var-user-edit: \f4ff; $fa-var-user-friends: \f500; $fa-var-user-graduate: \f501; $fa-var-user-injured: \f728; $fa-var-user-lock: \f502; $fa-var-user-md: \f0f0; $fa-var-user-minus: \f503; $fa-var-user-ninja: \f504; $fa-var-user-nurse: \f82f; $fa-var-user-plus: \f234; $fa-var-user-secret: \f21b; $fa-var-user-shield: \f505; $fa-var-user-slash: \f506; $fa-var-user-tag: \f507; $fa-var-user-tie: \f508; $fa-var-user-times: \f235; $fa-var-users: \f0c0; $fa-var-users-cog: \f509; $fa-var-usps: \f7e1; $fa-var-ussunnah: \f407; $fa-var-utensil-spoon: \f2e5; $fa-var-utensils: \f2e7; $fa-var-vaadin: \f408; $fa-var-vector-square: \f5cb; $fa-var-venus: \f221; $fa-var-venus-double: \f226; $fa-var-venus-mars: \f228; $fa-var-viacoin: \f237; $fa-var-viadeo: \f2a9; $fa-var-viadeo-square: \f2aa; $fa-var-vial: \f492; $fa-var-vials: \f493; $fa-var-viber: \f409; $fa-var-video: \f03d; $fa-var-video-slash: \f4e2; $fa-var-vihara: \f6a7; $fa-var-vimeo: \f40a; $fa-var-vimeo-square: \f194; $fa-var-vimeo-v: \f27d; $fa-var-vine: \f1ca; $fa-var-vk: \f189; $fa-var-vnv: \f40b; $fa-var-voicemail: \f897; $fa-var-volleyball-ball: \f45f; $fa-var-volume-down: \f027; $fa-var-volume-mute: \f6a9; $fa-var-volume-off: \f026; $fa-var-volume-up: \f028; $fa-var-vote-yea: \f772; $fa-var-vr-cardboard: \f729; $fa-var-vuejs: \f41f; $fa-var-walking: \f554; $fa-var-wallet: \f555; $fa-var-warehouse: \f494; $fa-var-water: \f773; $fa-var-wave-square: \f83e; $fa-var-waze: \f83f; $fa-var-weebly: \f5cc; $fa-var-weibo: \f18a; $fa-var-weight: \f496; $fa-var-weight-hanging: \f5cd; $fa-var-weixin: \f1d7; $fa-var-whatsapp: \f232; $fa-var-whatsapp-square: \f40c; $fa-var-wheelchair: \f193; $fa-var-whmcs: \f40d; $fa-var-wifi: \f1eb; $fa-var-wikipedia-w: \f266; $fa-var-wind: \f72e; $fa-var-window-close: \f410; $fa-var-window-maximize: \f2d0; $fa-var-window-minimize: \f2d1; $fa-var-window-restore: \f2d2; $fa-var-windows: \f17a; $fa-var-wine-bottle: \f72f; $fa-var-wine-glass: \f4e3; $fa-var-wine-glass-alt: \f5ce; $fa-var-wix: \f5cf; $fa-var-wizards-of-the-coast: \f730; $fa-var-wolf-pack-battalion: \f514; $fa-var-won-sign: \f159; $fa-var-wordpress: \f19a; $fa-var-wordpress-simple: \f411; $fa-var-wpbeginner: \f297; $fa-var-wpexplorer: \f2de; $fa-var-wpforms: \f298; $fa-var-wpressr: \f3e4; $fa-var-wrench: \f0ad; $fa-var-x-ray: \f497; $fa-var-xbox: \f412; $fa-var-xing: \f168; $fa-var-xing-square: \f169; $fa-var-y-combinator: \f23b; $fa-var-yahoo: \f19e; $fa-var-yammer: \f840; $fa-var-yandex: \f413; $fa-var-yandex-international: \f414; $fa-var-yarn: \f7e3; $fa-var-yelp: \f1e9; $fa-var-yen-sign: \f157; $fa-var-yin-yang: \f6ad; $fa-var-yoast: \f2b1; $fa-var-youtube: \f167; $fa-var-youtube-square: \f431; $fa-var-zhihu: \f63f;
{ "pile_set_name": "Github" }
/* Copyright (c) 2007 Stefan Engelke <mbox@stefanengelke.de> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. $Id$ */ #ifndef _MIRF_H_ #define _MIRF_H_ #include <Arduino.h> #include "nRF24L01.h" #include "MirfSpiDriver.h" // Nrf24l settings #define mirf_ADDR_LEN 5 #define mirf_CONFIG ((1<<EN_CRC) | (0<<CRCO) ) class Nrf24l { public: Nrf24l(); void init(); void config(); void send(uint8_t *value); void setRADDR(uint8_t * adr); void setTADDR(uint8_t * adr); bool dataReady(); bool isSending(); bool rxFifoEmpty(); bool txFifoEmpty(); void getData(uint8_t * data); uint8_t getStatus(); void transmitSync(uint8_t *dataout,uint8_t len); void transferSync(uint8_t *dataout,uint8_t *datain,uint8_t len); void configRegister(uint8_t reg, uint8_t value); void readRegister(uint8_t reg, uint8_t * value, uint8_t len); void writeRegister(uint8_t reg, uint8_t * value, uint8_t len); void powerUpRx(); void powerUpTx(); void powerDown(); void csnHi(); void csnLow(); void ceHi(); void ceLow(); void flushRx(); /* * In sending mode. */ uint8_t PTX; /* * CE Pin controls RX / TX, default 8. */ uint8_t cePin; /* * CSN Pin Chip Select Not, default 7. */ uint8_t csnPin; /* * Channel 0 - 127 or 0 - 84 in the US. */ uint8_t channel; /* * Payload width in bytes default 16 max 32. */ uint8_t payload; /* * Spi interface (must extend spi). */ MirfSpiDriver *spi; }; extern Nrf24l Mirf; #endif /* _MIRF_H_ */
{ "pile_set_name": "Github" }
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * $Id: $ */ package com.sun.org.apache.xml.internal.serializer; import java.io.IOException; import org.w3c.dom.Node; import org.w3c.dom.DOMErrorHandler; import org.w3c.dom.ls.LSSerializerFilter; /** * Interface for a DOM serializer capable of serializing DOMs as specified in * the DOM Level 3 Save Recommendation. * <p> * The DOM3Serializer is a facet of a serializer and is obtained from the * asDOM3Serializer() method of the org.apache.xml.serializer.Serializer interface. * A serializer may or may not support a level 3 DOM serializer, if it does not then the * return value from asDOM3Serializer() is null. * <p> * Example: * <pre> * Document doc; * Serializer ser; * OutputStream os; * DOMErrorHandler handler; * * ser = ...; * os = ...; * handler = ...; * * ser.setOutputStream( os ); * DOM3Serialzier dser = (DOM3Serialzier)ser.asDOM3Serializer(); * dser.setErrorHandler(handler); * dser.serialize(doc); * </pre> * * @see org.apache.xml.serializer.Serializer * * @xsl.usage general * */ public interface DOM3Serializer { /** * Serializes the Level 3 DOM node. Throws an exception only if an I/O * exception occured while serializing. * * This interface is a public API. * * @param node the Level 3 DOM node to serialize * @throws IOException if an I/O exception occured while serializing */ public void serializeDOM3(Node node) throws IOException; /** * Sets a DOMErrorHandler on the DOM Level 3 Serializer. * * This interface is a public API. * * @param handler the Level 3 DOMErrorHandler */ public void setErrorHandler(DOMErrorHandler handler); /** * Returns a DOMErrorHandler set on the DOM Level 3 Serializer. * * This interface is a public API. * * @return A Level 3 DOMErrorHandler */ public DOMErrorHandler getErrorHandler(); /** * Sets a LSSerializerFilter on the DOM Level 3 Serializer to filter nodes * during serialization. * * This interface is a public API. * * @param filter the Level 3 LSSerializerFilter */ public void setNodeFilter(LSSerializerFilter filter); /** * Returns a LSSerializerFilter set on the DOM Level 3 Serializer to filter nodes * during serialization. * * This interface is a public API. * * @return The Level 3 LSSerializerFilter */ public LSSerializerFilter getNodeFilter(); /** * Sets the new line character to be used during serialization * @param newLine a String that is the end-of-line character sequence to be * used in serialization. */ public void setNewLine(String newLine); }
{ "pile_set_name": "Github" }
Reparsing block ---------- Element(Perl5: CODE_CAST_EXPR) ---------- &{ say => 'start'; some => ; say =>'end'; } ---------- After typing ---------- if($a){ say 'hi'; &{ say => 'start'; some => ']'<caret>; say =>'end'; }; } ---------- Psi structure ---------- Perl5 PsiPerlIfCompoundImpl(Perl5: IF_COMPOUND) PsiElement(Perl5: if)('if') PsiPerlConditionalBlockImpl(Perl5: CONDITIONAL_BLOCK) PsiPerlConditionExprImpl(Perl5: CONDITION_EXPR) PsiElement(Perl5: ()('(') PsiPerlScalarVariableImpl(Perl5: SCALAR_VARIABLE) PsiElement(Perl5: $$)('$') PerlVariableNameElementImpl(Perl5: SCALAR_NAME)('a') PsiElement(Perl5: ))(')') PsiPerlBlockImpl(Perl5: BLOCK) PsiElement(Perl5: {)('{') PsiWhiteSpace('\n ') PsiPerlStatementImpl(Perl5: STATEMENT) PsiPerlPrintExprImpl(Perl5: PRINT_EXPR) PsiElement(Perl5: say)('say') PsiWhiteSpace(' ') PsiPerlCallArgumentsImpl(Perl5: CALL_ARGUMENTS) PsiPerlStringSqImpl(Perl5: STRING_SQ) PsiElement(Perl5: QUOTE_SINGLE_OPEN)(''') PerlStringContentElementImpl(Perl5: STRING_CONTENT)('hi') PsiElement(Perl5: QUOTE_SINGLE_CLOSE)(''') PsiElement(Perl5: ;)(';') PsiWhiteSpace('\n ') PsiPerlStatementImpl(Perl5: STATEMENT) PsiPerlCodeCastExprImpl(Perl5: CODE_CAST_EXPR) PsiElement(Perl5: $&)('&') PsiPerlBlockCodeImpl(Perl5: BLOCK_CODE) PsiElement(Perl5: &{)('{') PsiWhiteSpace('\n ') PsiPerlStatementImpl(Perl5: STATEMENT) PsiPerlCommaSequenceExprImpl(Perl5: COMMA_SEQUENCE_EXPR) PsiPerlStringBareImpl(Perl5: STRING_BARE) PerlStringContentElementImpl(Perl5: STRING_CONTENT)('say') PsiWhiteSpace(' ') PsiElement(Perl5: =>)('=>') PsiWhiteSpace(' ') PsiPerlStringSqImpl(Perl5: STRING_SQ) PsiElement(Perl5: QUOTE_SINGLE_OPEN)(''') PerlStringContentElementImpl(Perl5: STRING_CONTENT)('start') PsiElement(Perl5: QUOTE_SINGLE_CLOSE)(''') PsiElement(Perl5: ;)(';') PsiWhiteSpace('\n ') PsiPerlStatementImpl(Perl5: STATEMENT) PsiPerlCommaSequenceExprImpl(Perl5: COMMA_SEQUENCE_EXPR) PsiPerlStringBareImpl(Perl5: STRING_BARE) PerlStringContentElementImpl(Perl5: STRING_CONTENT)('some') PsiWhiteSpace(' ') PsiElement(Perl5: =>)('=>') PsiWhiteSpace(' ') PsiPerlStringSqImpl(Perl5: STRING_SQ) PsiElement(Perl5: QUOTE_SINGLE_OPEN)(''') PerlStringContentElementImpl(Perl5: STRING_CONTENT)(']') PsiElement(Perl5: QUOTE_SINGLE_CLOSE)(''') PsiElement(Perl5: ;)(';') PsiWhiteSpace('\n ') PsiPerlStatementImpl(Perl5: STATEMENT) PsiPerlCommaSequenceExprImpl(Perl5: COMMA_SEQUENCE_EXPR) PsiPerlStringBareImpl(Perl5: STRING_BARE) PerlStringContentElementImpl(Perl5: STRING_CONTENT)('say') PsiWhiteSpace(' ') PsiElement(Perl5: =>)('=>') PsiPerlStringSqImpl(Perl5: STRING_SQ) PsiElement(Perl5: QUOTE_SINGLE_OPEN)(''') PerlStringContentElementImpl(Perl5: STRING_CONTENT)('end') PsiElement(Perl5: QUOTE_SINGLE_CLOSE)(''') PsiElement(Perl5: ;)(';') PsiWhiteSpace('\n ') PsiElement(Perl5: &})('}') PsiElement(Perl5: ;)(';') PsiWhiteSpace('\n') PsiElement(Perl5: })('}')
{ "pile_set_name": "Github" }
SHORT Divide unit information EVENTSET FIXC0 INSTR_RETIRED_ANY FIXC1 CPU_CLK_UNHALTED_CORE FIXC2 CPU_CLK_UNHALTED_REF PMC0:EDGEDETECT ARITH_FPU_DIV_ACTIVE PMC1 ARITH_FPU_DIV_ACTIVE METRICS Runtime (RDTSC) [s] time Runtime unhalted [s] FIXC1*inverseClock Clock [MHz] 1.E-06*(FIXC1/FIXC2)/inverseClock CPI FIXC1/FIXC0 Number of divide ops PMC0 Avg. divide unit usage duration PMC1/PMC0 LONG Formulas: Number of divide ops = ARITH_FPU_DIV_ACTIVE:EDGEDETECT Avg. divide unit usage duration = ARITH_FPU_DIV_ACTIVE/ARITH_FPU_DIV_ACTIVE:EDGEDETECT - This performance group measures the average latency of divide operations
{ "pile_set_name": "Github" }
package org.eclipse.birt.data.engine.olap.impl.query; import org.eclipse.birt.data.engine.api.IBaseExpression; import org.eclipse.birt.data.engine.olap.api.query.IDerivedMeasureDefinition; public class DerivedMeasureDefinition extends MeasureDefinition implements IDerivedMeasureDefinition { // private IBaseExpression expr; /** * Constructor. * * @param name * @param type * @param expr */ public DerivedMeasureDefinition( String name, int type, IBaseExpression expr ) { super( name ); super.setDataType( type ); this.expr = expr; } /* * (non-Javadoc) * @see org.eclipse.birt.data.engine.olap.api.query.IDerivedMeasureDefinition#getExpression() */ public IBaseExpression getExpression( ) { return this.expr; } }
{ "pile_set_name": "Github" }
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Highcharts Example</title> <!-- 1. Add these JavaScript inclusions in the head of your page --> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> <script type="text/javascript" src="../js/highcharts.js"></script> <!-- 1a) Optional: add a theme file --> <!-- <script type="text/javascript" src="../js/themes/gray.js"></script> --> <!-- 1b) Optional: the exporting module --> <script type="text/javascript" src="../js/modules/exporting.js"></script> <!-- 2. Add the JavaScript to initialize the chart on document ready --> <script type="text/javascript"> var chart; $(document).ready(function() { chart = new Highcharts.Chart({ chart: { renderTo: 'container', defaultSeriesType: 'area' }, title: { text: 'Historic and Estimated Worldwide Population Distribution by Region' }, subtitle: { text: 'Source: Wikipedia.org' }, xAxis: { categories: ['1750', '1800', '1850', '1900', '1950', '1999', '2050'], tickmarkPlacement: 'on', title: { enabled: false } }, yAxis: { title: { text: 'Percent' } }, tooltip: { formatter: function() { return ''+ this.x +': '+ Highcharts.numberFormat(this.percentage, 1) +'% ('+ Highcharts.numberFormat(this.y, 0, ',') +' millions)'; } }, plotOptions: { area: { stacking: 'percent', lineColor: '#ffffff', lineWidth: 1, marker: { lineWidth: 1, lineColor: '#ffffff' } } }, series: [{ name: 'Asia', data: [502, 635, 809, 947, 1402, 3634, 5268] }, { name: 'Africa', data: [106, 107, 111, 133, 221, 767, 1766] }, { name: 'Europe', data: [163, 203, 276, 408, 547, 729, 628] }, { name: 'America', data: [18, 31, 54, 156, 339, 818, 1201] }, { name: 'Oceania', data: [2, 2, 2, 6, 13, 30, 46] }] }); }); </script> </head> <body> <!-- 3. Add the container --> <div id="container" style="width: 800px; height: 400px; margin: 0 auto"></div> </body> </html>
{ "pile_set_name": "Github" }
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")); var _isNil2 = _interopRequireDefault(require("lodash/isNil")); var _classnames = _interopRequireDefault(require("classnames")); var _propTypes = _interopRequireDefault(require("prop-types")); var _react = _interopRequireDefault(require("react")); var _lib = require("../../lib"); var _Dimmer = _interopRequireDefault(require("../../modules/Dimmer")); var _Label = _interopRequireDefault(require("../Label/Label")); var _ImageGroup = _interopRequireDefault(require("./ImageGroup")); /** * An image is a graphic representation of something. * @see Icon */ function Image(props) { var avatar = props.avatar, bordered = props.bordered, centered = props.centered, children = props.children, circular = props.circular, className = props.className, content = props.content, dimmer = props.dimmer, disabled = props.disabled, floated = props.floated, fluid = props.fluid, hidden = props.hidden, href = props.href, inline = props.inline, label = props.label, rounded = props.rounded, size = props.size, spaced = props.spaced, verticalAlign = props.verticalAlign, wrapped = props.wrapped, ui = props.ui; var classes = (0, _classnames["default"])((0, _lib.useKeyOnly)(ui, 'ui'), size, (0, _lib.useKeyOnly)(avatar, 'avatar'), (0, _lib.useKeyOnly)(bordered, 'bordered'), (0, _lib.useKeyOnly)(circular, 'circular'), (0, _lib.useKeyOnly)(centered, 'centered'), (0, _lib.useKeyOnly)(disabled, 'disabled'), (0, _lib.useKeyOnly)(fluid, 'fluid'), (0, _lib.useKeyOnly)(hidden, 'hidden'), (0, _lib.useKeyOnly)(inline, 'inline'), (0, _lib.useKeyOnly)(rounded, 'rounded'), (0, _lib.useKeyOrValueAndKey)(spaced, 'spaced'), (0, _lib.useValueAndKey)(floated, 'floated'), (0, _lib.useVerticalAlignProp)(verticalAlign, 'aligned'), 'image', className); var rest = (0, _lib.getUnhandledProps)(Image, props); var _partitionHTMLProps = (0, _lib.partitionHTMLProps)(rest, { htmlProps: _lib.htmlImageProps }), _partitionHTMLProps2 = (0, _slicedToArray2["default"])(_partitionHTMLProps, 2), imgTagProps = _partitionHTMLProps2[0], rootProps = _partitionHTMLProps2[1]; var ElementType = (0, _lib.getElementType)(Image, props, function () { if (!(0, _isNil2["default"])(dimmer) || !(0, _isNil2["default"])(label) || !(0, _isNil2["default"])(wrapped) || !_lib.childrenUtils.isNil(children)) { return 'div'; } }); if (!_lib.childrenUtils.isNil(children)) { return _react["default"].createElement(ElementType, (0, _extends2["default"])({}, rest, { className: classes }), children); } if (!_lib.childrenUtils.isNil(content)) { return _react["default"].createElement(ElementType, (0, _extends2["default"])({}, rest, { className: classes }), content); } if (ElementType === 'img') { return _react["default"].createElement(ElementType, (0, _extends2["default"])({}, rootProps, imgTagProps, { className: classes })); } return _react["default"].createElement(ElementType, (0, _extends2["default"])({}, rootProps, { className: classes, href: href }), _Dimmer["default"].create(dimmer, { autoGenerateKey: false }), _Label["default"].create(label, { autoGenerateKey: false }), _react["default"].createElement("img", imgTagProps)); } Image.handledProps = ["as", "avatar", "bordered", "centered", "children", "circular", "className", "content", "dimmer", "disabled", "floated", "fluid", "hidden", "href", "inline", "label", "rounded", "size", "spaced", "ui", "verticalAlign", "wrapped"]; Image.Group = _ImageGroup["default"]; Image.propTypes = process.env.NODE_ENV !== "production" ? { /** An element type to render as (string or function). */ as: _lib.customPropTypes.as, /** An image may be formatted to appear inline with text as an avatar. */ avatar: _propTypes["default"].bool, /** An image may include a border to emphasize the edges of white or transparent content. */ bordered: _propTypes["default"].bool, /** An image can appear centered in a content block. */ centered: _propTypes["default"].bool, /** Primary content. */ children: _propTypes["default"].node, /** An image may appear circular. */ circular: _propTypes["default"].bool, /** Additional classes. */ className: _propTypes["default"].string, /** Shorthand for primary content. */ content: _lib.customPropTypes.contentShorthand, /** An image can show that it is disabled and cannot be selected. */ disabled: _propTypes["default"].bool, /** Shorthand for Dimmer. */ dimmer: _lib.customPropTypes.itemShorthand, /** An image can sit to the left or right of other content. */ floated: _propTypes["default"].oneOf(_lib.SUI.FLOATS), /** An image can take up the width of its container. */ fluid: _lib.customPropTypes.every([_propTypes["default"].bool, _lib.customPropTypes.disallow(['size'])]), /** An image can be hidden. */ hidden: _propTypes["default"].bool, /** Renders the Image as an <a> tag with this href. */ href: _propTypes["default"].string, /** An image may appear inline. */ inline: _propTypes["default"].bool, /** Shorthand for Label. */ label: _lib.customPropTypes.itemShorthand, /** An image may appear rounded. */ rounded: _propTypes["default"].bool, /** An image may appear at different sizes. */ size: _propTypes["default"].oneOf(_lib.SUI.SIZES), /** An image can specify that it needs an additional spacing to separate it from nearby content. */ spaced: _propTypes["default"].oneOfType([_propTypes["default"].bool, _propTypes["default"].oneOf(['left', 'right'])]), /** Whether or not to add the ui className. */ ui: _propTypes["default"].bool, /** An image can specify its vertical alignment. */ verticalAlign: _propTypes["default"].oneOf(_lib.SUI.VERTICAL_ALIGNMENTS), /** An image can render wrapped in a `div.ui.image` as alternative HTML markup. */ wrapped: _propTypes["default"].bool } : {}; Image.defaultProps = { as: 'img', ui: true }; Image.create = (0, _lib.createShorthandFactory)(Image, function (value) { return { src: value }; }); var _default = Image; exports["default"] = _default;
{ "pile_set_name": "Github" }
from __future__ import print_function from __future__ import absolute_import from __future__ import division try: from queue import PriorityQueue except ImportError: from Queue import PriorityQueue from collections import deque from compas.geometry import distance_point_point __all__ = [ 'depth_first_ordering', 'breadth_first_ordering', 'breadth_first_traverse', 'breadth_first_paths', 'shortest_path', 'astar_shortest_path', 'dijkstra_distances', 'dijkstra_path' ] # ============================================================================== # DFS # ============================================================================== def depth_first_ordering(adjacency, root): """Compute depth-first ordering of connected vertices. Parameters ---------- adjacency : dict An adjacency dictionary. Each key represents a vertex and maps to a list of neighboring vertex keys. root : str The vertex from which to start the depth-first search. Returns ------- list A depth-first ordering of all vertices in the network. Notes ----- Return all nodes of a connected component containing 'root' of a network represented by an adjacency dictionary. This implementation uses a *to visit* stack. The principle of a stack is LIFO. In Python, a list is a stack. Initially only the root element is on the stack. While there are still elements on the stack, the node on top of the stack is 'popped off' and if this node was not already visited, its neighbors are added to the stack if they hadn't already been visited themselves. Since the last element on top of the stack is always popped off, the algorithm goes deeper and deeper in the datastructure, until it reaches a node without (unvisited) neighbors and then backtracks. Once a new node with unvisited neighbors is found, there too it will go as deep as possible before backtracking again, and so on. Once there are no more nodes on the stack, the entire structure has been traversed. Note that this returns a depth-first spanning tree of a connected component of the network. Examples -------- >>> """ adjacency = {key: set(nbrs) for key, nbrs in iter(adjacency.items())} tovisit = [root] visited = set() ordering = [] while tovisit: # pop the last added element from the stack node = tovisit.pop() if node not in visited: # mark the node as visited visited.add(node) ordering.append(node) # add the unvisited nbrs to the stack tovisit.extend(adjacency[node] - visited) return ordering # def depth_first_tree(adjacency, root): # """Construct a spanning tree using a depth-first search. # Parameters # ---------- # adjacency : dict # An adjacency dictionary. # root : hashable # The identifier of the root node. # Returns # ------- # list # List of nodes in depth-first order. # dict # Dictionary of predecessors for each of the nodes. # list # The depth-first paths. # Examples # -------- # >>> # """ # adjacency = {key: set(nbrs) for key, nbrs in iter(adjacency.items())} # tovisit = [root] # visited = set() # ordering = [] # predecessors = {} # paths = [[root]] # while tovisit: # # pop the last added element from the stack # node = tovisit.pop() # if node not in visited: # paths[-1].append(node) # # mark the node as visited # visited.add(node) # ordering.append(node) # # add the unvisited nbrs to the stack # nodes = adjacency[node] - visited # if nodes: # for child in nodes: # predecessors[child] = node # else: # paths.append([]) # tovisit.extend(nodes) # if not len(paths[-1]): # del paths[-1] # return ordering, predecessors, paths # ============================================================================== # BFS # ============================================================================== def breadth_first_ordering(adjacency, root): """Return a breadth-first ordering of all vertices in an adjacency dictionary reachable from a chosen root vertex. Parameters ---------- adjacency : dict An adjacency dictionary. Each key represents a vertex and maps to a list of neighboring vertex keys. root : str The vertex from which to start the breadth-first search. Returns ------- list A breadth-first ordering of all vertices in the adjacency dict. Notes ----- This implementation uses a double-ended queue (deque) to keep track of nodes to visit. The principle of a queue is FIFO. In Python, a deque is ideal for removing elements from the beginning, i.e. from the 'left'. In a breadth-first search, all unvisited neighbors of a node are visited first. When a neighbor is visited, its univisited neighbors are added to the list of nodes to visit. By appending the neighbors to the end of the list of nodes to visit, and by visiting the nodes at the start of the list first, the network is traversed in *breadth-first* order. Examples -------- >>> """ tovisit = deque([root]) visited = set([root]) ordering = [root] while tovisit: node = tovisit.popleft() for nbr in adjacency[node]: if nbr not in visited: tovisit.append(nbr) visited.add(nbr) ordering.append(nbr) return ordering def breadth_first_traverse(adjacency, root, callback=None): """Traverse an adjacency dict in "breadth-first" order. Parameters ---------- adjacency : dict Map of every node to a list of neighbouring nodes. root : int The identifier of the starting node. callback : callable, optional A callback function applied to every traversed node and its current neighbour. Returns ------- set The visited nodes. Examples -------- >>> """ tovisit = deque([root]) visited = set([root]) while tovisit: node = tovisit.popleft() for nbr in adjacency[node]: if nbr not in visited: tovisit.append(nbr) visited.add(nbr) if callback: callback(node, nbr) return visited def breadth_first_paths(adjacency, root, goal): """Return all paths from root to goal. Parameters ---------- adjacency : dict An adjacency dictionary. root : hashable The identifier of the starting node. goal : hashable The identifier of the ending node. Yields ------ list A path from root to goal. Notes ----- Due to the nature of the search, the first path returned is the shortest. Examples -------- >>> """ adjacency = {key: set(nbrs) for key, nbrs in iter(adjacency.items())} tovisit = deque([(root, [root])]) while tovisit: node, path = tovisit.popleft() for nbr in adjacency[node] - set(path): if nbr == goal: yield path + [nbr] else: tovisit.append((nbr, path + [nbr])) def breadth_first_tree(adjacency, root): tovisit = deque([root]) visited = set([root]) ordering = [root] predecessors = {} paths = [] while tovisit: node = tovisit.popleft() for nbr in adjacency[node]: if nbr not in visited: predecessors[nbr] = node tovisit.append(nbr) visited.add(nbr) ordering.append(nbr) else: path = [node] while path[-1] in predecessors: path.append(predecessors[path[-1]]) paths.append(reversed(path)) return ordering, predecessors, paths # ============================================================================== # shortest # ============================================================================== def shortest_path(adjacency, root, goal): """Find the shortest path between two vertices of a network. Parameters ---------- adjacency : dict An adjacency dictionary. root : hashable The identifier of the starting node. goal : hashable The identifier of the ending node. Returns ------- list, None The path from root to goal, or None, if no path exists between the vertices. Examples -------- >>> """ try: return next(breadth_first_paths(adjacency, root, goal)) except StopIteration: return None # ============================================================================== # A* # ============================================================================== def reconstruct_path(came_from, current): total_path = [current] while current in came_from: current = came_from[current] total_path.append(current) total_path.reverse() return total_path def astar_shortest_path(network, root, goal): """Find the shortest path between two vertices of a network using the A* search algorithm. Parameters ---------- network : instance of the Network class root : hashable The identifier of the starting node. goal : hashable The identifier of the ending node. Returns ------- list, None The path from root to goal, or None, if no path exists between the vertices. Examples -------- >>> References ---------- https://en.wikipedia.org/wiki/A*_search_algorithm """ root_coords = network.vertex_coordinates(root) goal_coords = network.vertex_coordinates(goal) # The set of nodes already evaluated visited_set = set() # The set of currently discovered nodes that are not evaluated yet. # Initially, only the start node is known. candidates_set = {root} best_candidate_heap = PriorityQueue() best_candidate_heap.put((0, root)) # For each node, which node it can most efficiently be reached from. # If a node can be reached from many nodes, came_from will eventually contain the # most efficient previous step. came_from = dict() # g_score is a dict mapping node index to the cost of getting from the root node to that node. # The default value is Infinity. # The cost of going from start to start is zero. g_score = dict() for v in network.vertices(): g_score[v] = float("inf") g_score[root] = 0 # For each node, the total cost of getting from the start node to the goal # by passing by that node. That value is partly known, partly heuristic. # The default value of f_score is Infinity f_score = dict() for v in network.vertices(): f_score[v] = float("inf") # For the first node, that value is completely heuristic. f_score[root] = distance_point_point(root_coords, goal_coords) while not best_candidate_heap.empty(): _, current = best_candidate_heap.get() if current == goal: return reconstruct_path(came_from, current) visited_set.add(current) current_coords = network.vertex_coordinates(current) for neighbor in network.vertex_neighbors(current): if neighbor in visited_set: continue # Ignore the neighbor which is already evaluated. # The distance from start to a neighbor neighbor_coords = network.vertex_coordinates(neighbor) tentative_gScore = g_score[current] + distance_point_point(current_coords, neighbor_coords) if neighbor not in candidates_set: # Discover a new node candidates_set.add(neighbor) elif tentative_gScore >= g_score[neighbor]: continue # This path is the best until now. Record it! came_from[neighbor] = current g_score[neighbor] = tentative_gScore new_fscore = g_score[neighbor] + distance_point_point(neighbor_coords, goal_coords) f_score[neighbor] = new_fscore best_candidate_heap.put((new_fscore, neighbor)) def dijkstra_distances(adjacency, weight, target): """Compute Dijkstra distances from all vertices in a connected set to one target vertex. Parameters ---------- adjacency : dict An adjacency dictionary. Each key represents a vertex and maps to a list of neighboring vertex keys. weight : dict A dictionary of edge weights. target : str The key of the vertex to which the distances are computed. Returns ------- dict A dictionary of distances to the target. Notes: ... Examples -------- >>> """ adjacency = {key: set(nbrs) for key, nbrs in adjacency.items()} distance = {key: (0 if key == target else 1e+17) for key in adjacency} tovisit = set(adjacency.keys()) visited = set() while tovisit: u = min(tovisit, key=lambda k: distance[k]) tovisit.remove(u) visited.add(u) for v in adjacency[u] - visited: d = distance[u] + weight[(u, v)] if d < distance[v]: distance[v] = d return distance def dijkstra_path(adjacency, weight, source, target, dist=None): """Find the shortest path between two vertices if the edge weights are not all the same. Parameters ---------- adjacency : dict An adjacency dictionary. Each key represents a vertex and maps to a list of neighboring vertex keys. weight : dict A dictionary of edge weights. source : str The start vertex. target : str The end vertex. Returns ------- list The shortest path. Notes ----- The edge weights should all be positive. For a directed graph, set the weights of the reversed edges to ``+inf``. For an undirected graph, add the same weight for an edge in both directions. Examples -------- >>> """ if not dist: dist = dijkstra_distances(adjacency, weight, target) path = [source] node = source node = min(adjacency[node], key=lambda nbr: dist[nbr] + weight[(node, nbr)]) path.append(node) while node != target: node = min(adjacency[node], key=lambda nbr: dist[nbr] + weight[(node, nbr)]) path.append(node) return path # ============================================================================== # Main # ============================================================================== if __name__ == '__main__': pass
{ "pile_set_name": "Github" }
{% if postListItems.length %} <ol class="c-stacked-block-list"> {% for item in postListItems %} <li class="c-stacked-block-list__item"> <a href="{{ item.data.url }}" class="c-post-block" rel="bookmark"> <time class="c-stacked-block__kicker" datetime="{{ item.data.date | dateFilter }}">{{ item.data.date | dateFilter }}</time> <h2 class="c-stacked-block__title"> {{ item.data.title }} </h2> <p class="c-stacked-block__description"> {{ item.data.description}} </p> </a> </li> {% endfor %} </ol> {% endif %}
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="refresh" content="0;URL=../../../libc/struct.ifaddrs.html"> </head> <body> <p>Redirecting to <a href="../../../libc/struct.ifaddrs.html">../../../libc/struct.ifaddrs.html</a>...</p> <script>location.replace("../../../libc/struct.ifaddrs.html" + location.search + location.hash);</script> </body> </html>
{ "pile_set_name": "Github" }
--TEST-- strtotime() function (64 bit) --SKIPIF-- <?php echo PHP_INT_SIZE != 8 ? "skip 64-bit only" : "OK"; ?> --FILE-- <?php date_default_timezone_set('Europe/Lisbon'); $time = 1150494719; // 16/June/2006 $strs = array( '', " \t\r\n000", 'yesterday', '22:49:12', '22:49:12 bogusTZ', '22.49.12.42GMT', '22.49.12.42bogusTZ', 't0222', 't0222 t0222', '022233', '022233 bogusTZ', '2-3-2004', '2.3.2004', '20060212T23:12:23UTC', '20060212T23:12:23 bogusTZ', '2006167', //pgydotd 'Jan-15-2006', //pgtextshort '2006-Jan-15', //pgtextreverse '10/Oct/2000:13:55:36 +0100', //clf '10/Oct/2000:13:55:36 +00100', //clf '2006', '1986', // year 'JAN', 'January', ); foreach ($strs as $str) { $t = strtotime($str, $time); if (is_integer($t)) { var_dump(date(DATE_RFC2822, $t)); } else { var_dump($t); } } ?> --EXPECT-- bool(false) bool(false) string(31) "Thu, 15 Jun 2006 00:00:00 +0100" string(31) "Fri, 16 Jun 2006 22:49:12 +0100" bool(false) string(31) "Fri, 16 Jun 2006 23:49:12 +0100" bool(false) string(31) "Fri, 16 Jun 2006 02:22:00 +0100" string(31) "Mon, 16 Jun 0222 02:22:00 -0036" string(31) "Fri, 16 Jun 2006 02:22:33 +0100" bool(false) string(31) "Tue, 02 Mar 2004 00:00:00 +0000" string(31) "Tue, 02 Mar 2004 00:00:00 +0000" string(31) "Sun, 12 Feb 2006 23:12:23 +0000" bool(false) string(31) "Fri, 16 Jun 2006 00:00:00 +0100" string(31) "Sun, 15 Jan 2006 00:00:00 +0000" string(31) "Sun, 15 Jan 2006 00:00:00 +0000" string(31) "Tue, 10 Oct 2000 13:55:36 +0100" bool(false) string(31) "Fri, 16 Jun 2006 20:06:00 +0100" string(31) "Mon, 16 Jun 1986 22:51:59 +0100" string(31) "Mon, 16 Jan 2006 00:00:00 +0000" string(31) "Mon, 16 Jan 2006 00:00:00 +0000"
{ "pile_set_name": "Github" }
/* * * Copyright (C) 2006 The Exult Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * * This source file contains usecode for the Shrines of the Virtues. * * Author: Marzo Junior * Last Modified: 2006-03-19 */ const int SHRINE_FACES = -296; //Each shrine with its own 'face': enum shrines { SHRINE_SACRIFICE = 1, SHRINE_JUSTICE = 2, SHRINE_HUMILITY = 3, SHRINE_SPIRITUALITY = 4, SHRINE_VALOR = 5, SHRINE_COMPASSION = 6, SHRINE_HONOR = 7, SHRINE_HONESTY = 8, SHRINE_SACRIFICE_DEFILED = 9 }; enum shrine_codex_quest_levels { CODEX_NOT_STARTED = 0, GOT_FROM_SHRINE = 1, WENT_TO_CODEX = 2, FINISHED_QUEST = 3 }; //Easter egg: const int BOOK_OF_FORGOTTEN_MANTRAS = 29; void Shrine shape#(0x463) () { var dir; var pathegg; var pos; var shrine_frame; var shrines = ["Sacrifice", "Justice", "Humility", "Spirituality", "Valor", "Compassion", "Honor", "Honesty"]; var mantras = ["Cah", "Beh", "Lum", "Om", "Ra", "Mu", "Summ", "Ahm"]; var forgotten_mantras = ["Akk" , "Hor", "Kra", "Maow", "Detra", "Sa" , "Nok", "Spank", "A" , "Mi" , "Ah" , "Xiop", "Yof", "Ow" , "Ta" , "Goo" , "Si" , "Yam", "Vil" , "Wez" , "Forat", "Asg" , "Sem" , "Tex", "As" , "Hiy" , "Eyac" , "Hodis", "Ni" , "Baw" , "Fes" , "Upa" , "Yuit", "Swer", "Xes", "Led", "Zep" , "Bok" , "Mar" , "Sak", "Ces" , "Blah", "Swu"]; var words_of_power = ["Avidus", "Malum", "Ignavus", "Veramocor", "Inopia", "Vilis", "Infama", "Fallax"]; var chosen_mantra; var cycles; if (event == DOUBLECLICK) { //Determine shrine's face and position: shrine_frame = get_item_frame() + 1; var pos = get_object_position(); var runes; //Determine if the party has the correct rune: if (shrine_frame == SHRINE_SACRIFICE_DEFILED) runes = PARTY->count_objects(SHAPE_RUNE, QUALITY_ANY, 0); else runes = PARTY->count_objects(SHAPE_RUNE, QUALITY_ANY, shrine_frame - 1); if (!runes) { //Nope, doesn't have it: randomPartySay("@Thou dost need the appropriate rune...@"); return; } else { //Player has the correct rune; close gumps and start //playing 'Stones': UI_close_gumps(); UI_play_music(22, 0); if (shrine_frame == SHRINE_SACRIFICE_DEFILED) { //The shrine of sacrifice starts defiled, and covered in blood AVATAR.say("You stand before the Shrine of Sacrifice. The Shrine is broken and defiled, with blood stains all over the altar.", "~Whatever peace there once was here is now long gone."); say("Do you wish to say anything?"); //Not saying anything leaves it defiled if (askYesNo()) { //Avatar will try to fix the shrine: say("What do you want to say?"); var choice = chooseFromMenu2(["nothing", "mantra", "Word of Power"]); if (choice == 1) //Or maybe not... say("You walk away from the shrine, leaving it in its present state."); else if (choice == 2) { //Poor, poor Avatar... say("Which mantra do you speak?"); var choices = [mantras]; if (PARTY->count_objects(SHAPE_BOOK, BOOK_OF_FORGOTTEN_MANTRAS, FRAME_ANY)) //Easter egg: the Book of Forgotten Mantras adds more options choices = [choices, forgotten_mantras]; choice = askForResponse(choices); say("In an ominous tone, you speak the mantra: @", choice, "!@", "~After waiting for a while, you realize nothing has happened."); if (isNearby(DUPRE) && choice == "Ni") DUPRE.say("@We are the knights who say... Ni!@"); } else { //This is a wise Avatar! say("Which Word of Power do you speak?"); choice = askForResponse(words_of_power); say("In an ominous tone, you speak the Word of Power: @", choice, "!@ The ground suddenly trembles."); UI_earthquake(12); if (choice == "Avidus") { //The right choice, of course. giveExperience(50); AVATAR.hide(); //Cleanse the shrine: obj_sprite_effect(ANIMATION_TELEPORT, 0, 0, 0, 0, 0, -1); set_item_frame(SHRINE_SACRIFICE - 1); UI_play_sound_effect2(64, item); var bloodstains = pos->find_nearby(SHAPE_BLOOD, 20, MASK_TRANSLUCENT); for (blood in bloodstains) script blood after (3*get_distance(blood))/2 ticks remove; } else say("After a while, you realize that nothing else happened."); } } //LEAVE abort; } //Normal shrines: SHRINE_FACES->show_npc_face(shrine_frame - 1); say("You stand before the Shrine of ", shrines[shrine_frame], ". The Shrine is a quiet and peaceful place, amidst the turmoil that is Britannia nowadays."); say("A mystical voice sounds inside your head as you approach the altar. @Welcome, seeker. Dost thou wish to meditate at this altar?@"); if (!askYesNo()) //Avatar doesn't wish to meditate, so leave: abort; //Ask for mantra... say("@Upon which mantra wilt thou meditate, seeker?@"); chosen_mantra = chooseFromMenu2(mantras); //... and for number of cycles: say("@For how many cycles wilt thou meditate, seeker?@"); cycles = chooseFromMenu2(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]) - 1; if (!cycles) { //0 cycles... SHRINE_FACES.hide(); AVATAR.say("@I think I will meditate at another time.@"); //Avatar doesn't wish to meditate, so leave: abort; } //Determine the place where the Avatar will meditate: dir = direction_from(AVATAR); pos[Z] -= 4; if (dir in [NORTHWEST, NORTH, NORTHEAST]) pos[Y] -= 2; else if (dir in [SOUTHWEST, SOUTH, SOUTHEAST]) pos[Y] += 2; else if (dir == EAST) pos[X] += 4; else pos[X] -= 4; //Make Avatar go there: AVATAR->si_path_run_usecode(pos, PATH_SUCCESS, AVATAR, Shrine, true); UI_set_path_failure(Shrine, AVATAR, PATH_FAILURE); //Create a path egg containing the info about mantra //in the frame and cycles in the quality: pathegg = UI_create_new_object(SHAPE_PATH_EGG); pathegg->set_item_frame(chosen_mantra); pathegg->set_item_flag(TEMPORARY); pathegg->set_item_quality(cycles); pos = get_object_position(); UI_update_last_created(pos); //NPC banthers: var noun = "he"; if (UI_is_pc_female()) noun = "she"; const int BARK_COUNT = 3; var rand = UI_get_random(BARK_COUNT); var delay = UI_die_roll(5, 11); if (inParty(DUPRE) && (rand == 1)) script DUPRE after delay ticks say "@Is there a pub nearby?@"; else if (inParty(SHAMINO) && (rand == 2)) script SHAMINO after delay ticks say "@There " + noun + " goes again...@"; else if (inParty(IOLO) && (rand == 3)) script IOLO after delay ticks say "@Where is my lute?@"; abort; } } else if (event == PATH_SUCCESS) { //Avatar reached destination //Find the path egg: pathegg = find_nearest(SHAPE_PATH_EGG, 5); if (!pathegg) //Not found means nothing to do; shouldn't happen... abort; dir = direction_from(pathegg); //Retrieve mantra and # of cycles: chosen_mantra = pathegg->get_item_frame(); var mantra = "@" + mantras[chosen_mantra] + "@"; cycles = pathegg->get_item_quality(); //Meditation with a frozen Avatar: script item { nohalt; finish; call trueFreeze; face dir; actor frame standing; wait 2; actor frame bowing; wait 2; repeat cycles - 1 { actor frame kneeling; wait 3; say mantra; wait 3; actor frame kneeling; wait 3; actor frame kneeling; wait 3; //actor frame kneeling; wait 3; }; actor frame bowing; wait 2; actor frame standing; wait 2; call Shrine, SCRIPTED; call trueUnfreeze; } } else if (event == PATH_FAILURE) //Avatar failed to get there item_say("@I can't get there@"); else if (event == SCRIPTED) { //Once again, find path egg: pathegg = find_nearest(SHAPE_PATH_EGG, 5); if (!pathegg) //Once again, should never happen... abort; //Retrieve mantra and # of cycles chosen_mantra = pathegg->get_item_frame(); cycles = pathegg->get_item_quality(); //destroy path egg (no longer needed): pathegg->remove_item(); //Find shrine and determine which shrine it is: var shrine = find_nearest(SHAPE_SHRINE, 5); shrine_frame = shrine->get_item_frame() + 1; if (chosen_mantra != shrine_frame) { //Wrong mantra for shrine AVATAR.say("You had difficulty focusing your thoughts, and could not meditate."); abort; } else if (cycles < 3) { //Too few cycles AVATAR.say("After a while, you feel a sense of calm and inner peace."); abort; } else if (cycles > 3) { //Too many cycles AVATAR.say("You meditated for too long and eventually lost your focus."); abort; } //Basically, there are two flags per shrine which are used in binary var codex_quest_level = CODEX_NOT_STARTED; var codex_flag = VIEWED_CODEX_BASE + shrine_frame; var shrine_flag = MEDITATED_AT_SHRINE_BASE + shrine_frame; if (gflags[codex_flag] && gflags[shrine_flag]) codex_quest_level = FINISHED_QUEST; else if (gflags[codex_flag]) codex_quest_level = WENT_TO_CODEX; else if (gflags[shrine_flag]) codex_quest_level = GOT_FROM_SHRINE; if ((codex_quest_level == WENT_TO_CODEX) || (codex_quest_level == CODEX_NOT_STARTED)) gflags[shrine_flag] = true; var xpbonus = 0; //The experience bonus from meditating: if (codex_quest_level == CODEX_NOT_STARTED) xpbonus = 25; else if (codex_quest_level == WENT_TO_CODEX) xpbonus = 75; giveExperience(xpbonus); SHRINE_FACES->show_npc_face(shrine_frame - 1); say("After a while, you feel a sense of calm and inner peace."); if (codex_quest_level == CODEX_NOT_STARTED) { //Got a sacred quest to see the Codex: say("A mystical voice sounds inside your head, and a sacred quest is ordained. @Go thou to the Codex, seeker, to learn about ", shrines[shrine_frame] + "!@"); } else if (codex_quest_level == WENT_TO_CODEX) { //Returning from Codex: say("Once again, the mystical voice sounds inside your head. @Well done, seeker! Use well thy newfound enlightenment!@"); } //NPC banther: if (UI_get_array_size(UI_get_party_list()) > 1) { var barks = ["@It's about time!@", "@We should be going...@"]; var rand = UI_get_random(2 * UI_get_array_size(barks)); if (rand > UI_get_array_size(barks)) abort; var npc = randomPartyMember(); while (npc->get_npc_number() == AVATAR) npc = randomPartyMember(); script npc after 8 ticks say barks[rand]; } abort; } }
{ "pile_set_name": "Github" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <link rel="stylesheet" type="text/css" href="https://www.jqwidgets.com/public/jqwidgets/styles/jqx.base.css"> <link rel="stylesheet" type="text/css" href="https://www.jqwidgets.com/public/jqwidgets/styles/jqx.material-purple.css"> </head> <body> <div id="app"></div> </body> </html>
{ "pile_set_name": "Github" }
# NOTICE # # This software was produced for the U. S. Government # under Basic Contract No. W15P7T-13-C-A802, and is # subject to the Rights in Noncommercial Computer Software # and Noncommercial Computer Software Documentation # Clause 252.227-7014 (FEB 2012) # # (C) 2017 The MITRE Corporation. import traceback import logging import datetime from .. import async from .jobs import Job logger = logging.getLogger(__name__) running_jobs = 0 def run(debug=False): # TODO: configuration here query_frequency = 1 # seconds between each job check jobs_run = [] def worker(): jobs_to_run = Job.objects(status=Job.READY) count = jobs_to_run.count() if count: logger.debug("worker call: %d jobs to run" % count) else: return False @async.async_routine def async_handle_job(j): global running_jobs j.update(status=Job.STARTED, message=None, count=0, results=[], events=[]) running_jobs += 1 logger.debug("handling {} {}".format(type(j).__name__, j.id)) try: j.run() logger.debug("success job \"%s\"----" % j.id) j.status = Job.SUCCESS except Exception as e: traceback.print_exc() j.message = "{}: {}".format(type(e).__name__, e.message if e.message else e) j.status = Job.FAILURE finally: j.save() for job in jobs_to_run: if job.user is not None: logger.debug("dispatching job \"%s\" ----" % job.id) job.update(status=Job.DISPATCHED) # will spawn a greenlet in the background async_handle_job(job) else: job.delete() return True logger.info("Resetting all dispatched events") # reclaim dispatched jobs that have not been started # useful for when restarting the job runner if it Job.objects(status=Job.DISPATCHED).update(status=Job.READY, updated=datetime.datetime.utcnow()) # reset all started events too Job.objects(status=Job.STARTED).update(status=Job.READY, updated=datetime.datetime.utcnow()) logger.info("Waiting for worker events...") while True: if worker(): logger.info("Completed all jobs. Waiting for new jobs to be submitted...") async.sleep(query_frequency)
{ "pile_set_name": "Github" }
/* * QEMU Crypto block device encryption * * Copyright (c) 2015-2016 Red Hat, Inc. * * 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, see <http://www.gnu.org/licenses/>. * */ #include "qemu/osdep.h" #include "qapi/error.h" #include "blockpriv.h" #include "block-qcow.h" #include "block-luks.h" static const QCryptoBlockDriver *qcrypto_block_drivers[] = { [Q_CRYPTO_BLOCK_FORMAT_QCOW] = &qcrypto_block_driver_qcow, [Q_CRYPTO_BLOCK_FORMAT_LUKS] = &qcrypto_block_driver_luks, }; bool qcrypto_block_has_format(QCryptoBlockFormat format, const uint8_t *buf, size_t len) { const QCryptoBlockDriver *driver; if (format >= G_N_ELEMENTS(qcrypto_block_drivers) || !qcrypto_block_drivers[format]) { return false; } driver = qcrypto_block_drivers[format]; return driver->has_format(buf, len); } QCryptoBlock *qcrypto_block_open(QCryptoBlockOpenOptions *options, const char *optprefix, QCryptoBlockReadFunc readfunc, void *opaque, unsigned int flags, size_t n_threads, Error **errp) { QCryptoBlock *block = g_new0(QCryptoBlock, 1); block->format = options->format; if (options->format >= G_N_ELEMENTS(qcrypto_block_drivers) || !qcrypto_block_drivers[options->format]) { error_setg(errp, "Unsupported block driver %s", QCryptoBlockFormat_str(options->format)); g_free(block); return NULL; } block->driver = qcrypto_block_drivers[options->format]; if (block->driver->open(block, options, optprefix, readfunc, opaque, flags, n_threads, errp) < 0) { g_free(block); return NULL; } qemu_mutex_init(&block->mutex); return block; } QCryptoBlock *qcrypto_block_create(QCryptoBlockCreateOptions *options, const char *optprefix, QCryptoBlockInitFunc initfunc, QCryptoBlockWriteFunc writefunc, void *opaque, Error **errp) { QCryptoBlock *block = g_new0(QCryptoBlock, 1); block->format = options->format; if (options->format >= G_N_ELEMENTS(qcrypto_block_drivers) || !qcrypto_block_drivers[options->format]) { error_setg(errp, "Unsupported block driver %s", QCryptoBlockFormat_str(options->format)); g_free(block); return NULL; } block->driver = qcrypto_block_drivers[options->format]; if (block->driver->create(block, options, optprefix, initfunc, writefunc, opaque, errp) < 0) { g_free(block); return NULL; } qemu_mutex_init(&block->mutex); return block; } QCryptoBlockInfo *qcrypto_block_get_info(QCryptoBlock *block, Error **errp) { QCryptoBlockInfo *info = g_new0(QCryptoBlockInfo, 1); info->format = block->format; if (block->driver->get_info && block->driver->get_info(block, info, errp) < 0) { g_free(info); return NULL; } return info; } int qcrypto_block_decrypt(QCryptoBlock *block, uint64_t offset, uint8_t *buf, size_t len, Error **errp) { return block->driver->decrypt(block, offset, buf, len, errp); } int qcrypto_block_encrypt(QCryptoBlock *block, uint64_t offset, uint8_t *buf, size_t len, Error **errp) { return block->driver->encrypt(block, offset, buf, len, errp); } QCryptoCipher *qcrypto_block_get_cipher(QCryptoBlock *block) { /* Ciphers should be accessed through pop/push method to be thread-safe. * Better, they should not be accessed externally at all (note, that * pop/push are static functions) * This function is used only in test with one thread (it's safe to skip * pop/push interface), so it's enough to assert it here: */ assert(block->n_ciphers <= 1); return block->ciphers ? block->ciphers[0] : NULL; } static QCryptoCipher *qcrypto_block_pop_cipher(QCryptoBlock *block) { QCryptoCipher *cipher; qemu_mutex_lock(&block->mutex); assert(block->n_free_ciphers > 0); block->n_free_ciphers--; cipher = block->ciphers[block->n_free_ciphers]; qemu_mutex_unlock(&block->mutex); return cipher; } static void qcrypto_block_push_cipher(QCryptoBlock *block, QCryptoCipher *cipher) { qemu_mutex_lock(&block->mutex); assert(block->n_free_ciphers < block->n_ciphers); block->ciphers[block->n_free_ciphers] = cipher; block->n_free_ciphers++; qemu_mutex_unlock(&block->mutex); } int qcrypto_block_init_cipher(QCryptoBlock *block, QCryptoCipherAlgorithm alg, QCryptoCipherMode mode, const uint8_t *key, size_t nkey, size_t n_threads, Error **errp) { size_t i; assert(!block->ciphers && !block->n_ciphers && !block->n_free_ciphers); block->ciphers = g_new0(QCryptoCipher *, n_threads); for (i = 0; i < n_threads; i++) { block->ciphers[i] = qcrypto_cipher_new(alg, mode, key, nkey, errp); if (!block->ciphers[i]) { qcrypto_block_free_cipher(block); return -1; } block->n_ciphers++; block->n_free_ciphers++; } return 0; } void qcrypto_block_free_cipher(QCryptoBlock *block) { size_t i; if (!block->ciphers) { return; } assert(block->n_ciphers == block->n_free_ciphers); for (i = 0; i < block->n_ciphers; i++) { qcrypto_cipher_free(block->ciphers[i]); } g_free(block->ciphers); block->ciphers = NULL; block->n_ciphers = block->n_free_ciphers = 0; } QCryptoIVGen *qcrypto_block_get_ivgen(QCryptoBlock *block) { /* ivgen should be accessed under mutex. However, this function is used only * in test with one thread, so it's enough to assert it here: */ assert(block->n_ciphers <= 1); return block->ivgen; } QCryptoHashAlgorithm qcrypto_block_get_kdf_hash(QCryptoBlock *block) { return block->kdfhash; } uint64_t qcrypto_block_get_payload_offset(QCryptoBlock *block) { return block->payload_offset; } uint64_t qcrypto_block_get_sector_size(QCryptoBlock *block) { return block->sector_size; } void qcrypto_block_free(QCryptoBlock *block) { if (!block) { return; } block->driver->cleanup(block); qcrypto_block_free_cipher(block); qcrypto_ivgen_free(block->ivgen); qemu_mutex_destroy(&block->mutex); g_free(block); } typedef int (*QCryptoCipherEncDecFunc)(QCryptoCipher *cipher, const void *in, void *out, size_t len, Error **errp); static int do_qcrypto_block_cipher_encdec(QCryptoCipher *cipher, size_t niv, QCryptoIVGen *ivgen, QemuMutex *ivgen_mutex, int sectorsize, uint64_t offset, uint8_t *buf, size_t len, QCryptoCipherEncDecFunc func, Error **errp) { g_autofree uint8_t *iv = niv ? g_new0(uint8_t, niv) : NULL; int ret = -1; uint64_t startsector = offset / sectorsize; assert(QEMU_IS_ALIGNED(offset, sectorsize)); assert(QEMU_IS_ALIGNED(len, sectorsize)); while (len > 0) { size_t nbytes; if (niv) { if (ivgen_mutex) { qemu_mutex_lock(ivgen_mutex); } ret = qcrypto_ivgen_calculate(ivgen, startsector, iv, niv, errp); if (ivgen_mutex) { qemu_mutex_unlock(ivgen_mutex); } if (ret < 0) { return -1; } if (qcrypto_cipher_setiv(cipher, iv, niv, errp) < 0) { return -1; } } nbytes = len > sectorsize ? sectorsize : len; if (func(cipher, buf, buf, nbytes, errp) < 0) { return -1; } startsector++; buf += nbytes; len -= nbytes; } return 0; } int qcrypto_block_cipher_decrypt_helper(QCryptoCipher *cipher, size_t niv, QCryptoIVGen *ivgen, int sectorsize, uint64_t offset, uint8_t *buf, size_t len, Error **errp) { return do_qcrypto_block_cipher_encdec(cipher, niv, ivgen, NULL, sectorsize, offset, buf, len, qcrypto_cipher_decrypt, errp); } int qcrypto_block_cipher_encrypt_helper(QCryptoCipher *cipher, size_t niv, QCryptoIVGen *ivgen, int sectorsize, uint64_t offset, uint8_t *buf, size_t len, Error **errp) { return do_qcrypto_block_cipher_encdec(cipher, niv, ivgen, NULL, sectorsize, offset, buf, len, qcrypto_cipher_encrypt, errp); } int qcrypto_block_decrypt_helper(QCryptoBlock *block, int sectorsize, uint64_t offset, uint8_t *buf, size_t len, Error **errp) { int ret; QCryptoCipher *cipher = qcrypto_block_pop_cipher(block); ret = do_qcrypto_block_cipher_encdec(cipher, block->niv, block->ivgen, &block->mutex, sectorsize, offset, buf, len, qcrypto_cipher_decrypt, errp); qcrypto_block_push_cipher(block, cipher); return ret; } int qcrypto_block_encrypt_helper(QCryptoBlock *block, int sectorsize, uint64_t offset, uint8_t *buf, size_t len, Error **errp) { int ret; QCryptoCipher *cipher = qcrypto_block_pop_cipher(block); ret = do_qcrypto_block_cipher_encdec(cipher, block->niv, block->ivgen, &block->mutex, sectorsize, offset, buf, len, qcrypto_cipher_encrypt, errp); qcrypto_block_push_cipher(block, cipher); return ret; }
{ "pile_set_name": "Github" }
#!/bin/sh # # Copyright (c) 2002, 2009, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as # published by the Free Software Foundation. # # This code is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # version 2 for more details (a copy is included in the LICENSE file that # accompanied this code). # # You should have received a copy of the GNU General Public License version # 2 along with this work; if not, write to the Free Software Foundation, # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. # # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA # or visit www.oracle.com if you need additional information or have any # questions. # if [ "${TESTSRC}" = "" ] then echo "TESTSRC not set. Test cannot execute. Failed." exit 1 fi echo "TESTSRC=${TESTSRC}" if [ "${TESTJAVA}" = "" ] then echo "TESTJAVA not set. Test cannot execute. Failed." exit 1 fi echo "TESTJAVA=${TESTJAVA}" if [ "${TESTCLASSES}" = "" ] then echo "TESTCLASSES not set. Test cannot execute. Failed." exit 1 fi echo "TESTCLASSES=${TESTCLASSES}" echo "CLASSPATH=${CLASSPATH}" # set platform-dependent variables OS=`uname -s` case "$OS" in SunOS | Linux ) PS=":" FS="/" ;; CYGWIN* ) PS=";" # Platform PS, not Cygwin PS FS="/" ;; Windows* ) PS=";" FS="\\" ;; * ) echo "Unrecognized system!" exit 1; ;; esac TMP1=OUTPUT.txt cp "${TESTSRC}${FS}$1.java" . "${TESTJAVA}${FS}bin${FS}javac" ${TESTTOOLVMOPTS} -g -d . -classpath .${PS}${TESTSRC} $1.java 2> ${TMP1} result=$? if [ $result -ne 0 ]; then exit $result; fi if "${TESTJAVA}${FS}bin${FS}javap" $1.class | grep clinit; then echo "Failed" exit 1; else echo "Passed" exit 0; fi
{ "pile_set_name": "Github" }
fileFormatVersion: 2 guid: b60d0149e4e689d46857ebccd4d116c6 MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData:
{ "pile_set_name": "Github" }
/* sptcon.f -- translated by f2c (version 20061008). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of the command line, as in cc *.o -lf2c -lm Source for libf2c is in /netlib/f2c/libf2c.zip, e.g., http://www.netlib.org/f2c/libf2c.zip */ #include "f2c.h" #include "blaswrap.h" /* Table of constant values */ static integer c__1 = 1; /* Subroutine */ int sptcon_(integer *n, real *d__, real *e, real *anorm, real *rcond, real *work, integer *info) { /* System generated locals */ integer i__1; real r__1; /* Local variables */ integer i__, ix; extern /* Subroutine */ int xerbla_(char *, integer *); extern integer isamax_(integer *, real *, integer *); real ainvnm; /* -- LAPACK routine (version 3.2) -- */ /* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */ /* November 2006 */ /* .. Scalar Arguments .. */ /* .. */ /* .. Array Arguments .. */ /* .. */ /* Purpose */ /* ======= */ /* SPTCON computes the reciprocal of the condition number (in the */ /* 1-norm) of a real symmetric positive definite tridiagonal matrix */ /* using the factorization A = L*D*L**T or A = U**T*D*U computed by */ /* SPTTRF. */ /* Norm(inv(A)) is computed by a direct method, and the reciprocal of */ /* the condition number is computed as */ /* RCOND = 1 / (ANORM * norm(inv(A))). */ /* Arguments */ /* ========= */ /* N (input) INTEGER */ /* The order of the matrix A. N >= 0. */ /* D (input) REAL array, dimension (N) */ /* The n diagonal elements of the diagonal matrix D from the */ /* factorization of A, as computed by SPTTRF. */ /* E (input) REAL array, dimension (N-1) */ /* The (n-1) off-diagonal elements of the unit bidiagonal factor */ /* U or L from the factorization of A, as computed by SPTTRF. */ /* ANORM (input) REAL */ /* The 1-norm of the original matrix A. */ /* RCOND (output) REAL */ /* The reciprocal of the condition number of the matrix A, */ /* computed as RCOND = 1/(ANORM * AINVNM), where AINVNM is the */ /* 1-norm of inv(A) computed in this routine. */ /* WORK (workspace) REAL array, dimension (N) */ /* INFO (output) INTEGER */ /* = 0: successful exit */ /* < 0: if INFO = -i, the i-th argument had an illegal value */ /* Further Details */ /* =============== */ /* The method used is described in Nicholas J. Higham, "Efficient */ /* Algorithms for Computing the Condition Number of a Tridiagonal */ /* Matrix", SIAM J. Sci. Stat. Comput., Vol. 7, No. 1, January 1986. */ /* ===================================================================== */ /* .. Parameters .. */ /* .. */ /* .. Local Scalars .. */ /* .. */ /* .. External Functions .. */ /* .. */ /* .. External Subroutines .. */ /* .. */ /* .. Intrinsic Functions .. */ /* .. */ /* .. Executable Statements .. */ /* Test the input arguments. */ /* Parameter adjustments */ --work; --e; --d__; /* Function Body */ *info = 0; if (*n < 0) { *info = -1; } else if (*anorm < 0.f) { *info = -4; } if (*info != 0) { i__1 = -(*info); xerbla_("SPTCON", &i__1); return 0; } /* Quick return if possible */ *rcond = 0.f; if (*n == 0) { *rcond = 1.f; return 0; } else if (*anorm == 0.f) { return 0; } /* Check that D(1:N) is positive. */ i__1 = *n; for (i__ = 1; i__ <= i__1; ++i__) { if (d__[i__] <= 0.f) { return 0; } /* L10: */ } /* Solve M(A) * x = e, where M(A) = (m(i,j)) is given by */ /* m(i,j) = abs(A(i,j)), i = j, */ /* m(i,j) = -abs(A(i,j)), i .ne. j, */ /* and e = [ 1, 1, ..., 1 ]'. Note M(A) = M(L)*D*M(L)'. */ /* Solve M(L) * x = e. */ work[1] = 1.f; i__1 = *n; for (i__ = 2; i__ <= i__1; ++i__) { work[i__] = work[i__ - 1] * (r__1 = e[i__ - 1], dabs(r__1)) + 1.f; /* L20: */ } /* Solve D * M(L)' * x = b. */ work[*n] /= d__[*n]; for (i__ = *n - 1; i__ >= 1; --i__) { work[i__] = work[i__] / d__[i__] + work[i__ + 1] * (r__1 = e[i__], dabs(r__1)); /* L30: */ } /* Compute AINVNM = max(x(i)), 1<=i<=n. */ ix = isamax_(n, &work[1], &c__1); ainvnm = (r__1 = work[ix], dabs(r__1)); /* Compute the reciprocal condition number. */ if (ainvnm != 0.f) { *rcond = 1.f / ainvnm / *anorm; } return 0; /* End of SPTCON */ } /* sptcon_ */
{ "pile_set_name": "Github" }
/* * Copyright 2018 The authors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Generated from ognl.bnf, do not modify package com.intellij.lang.ognl.psi; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.psi.PsiElement; public interface OgnlSequenceExpression extends OgnlExpression { @NotNull List<OgnlExpression> getElementsList(); }
{ "pile_set_name": "Github" }