text
stringlengths
2
100k
meta
dict
/** * Marlin 3D Printer Firmware * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (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, see <http://www.gnu.org/licenses/>. * */ #ifndef __BUZZER_H__ #define __BUZZER_H__ #include "types.h" #include "fastio.h" #include "circularqueue.h" #include "temperature.h" #include "MarlinConfig.h" #define TONE_QUEUE_LENGTH 4 /** * @brief Tone structure * @details Simple abstraction of a tone based on a duration and a frequency. */ struct tone_t { uint16_t duration; uint16_t frequency; }; /** * @brief Buzzer class */ class Buzzer { private: struct state_t { tone_t tone; uint32_t endtime; } state; protected: CircularQueue<tone_t, TONE_QUEUE_LENGTH> buffer; /** * @brief Inverts the sate of a digital PIN * @details This will invert the current state of an digital IO pin. */ void invert() { TOGGLE(BEEPER_PIN); } /** * @brief Turn off a digital PIN * @details Alias of digitalWrite(PIN, LOW) using FastIO */ void off() { WRITE(BEEPER_PIN, LOW); } /** * @brief Turn on a digital PIN * @details Alias of digitalWrite(PIN, HIGH) using FastIO */ void on() { WRITE(BEEPER_PIN, HIGH); } /** * @brief Resets the state of the class * @details Brings the class state to a known one. */ void reset() { this->off(); this->state.endtime = 0; } public: /** * @brief Class constructor */ Buzzer() { SET_OUTPUT(BEEPER_PIN); this->reset(); } /** * @brief Add a tone to the queue * @details Adds a tone_t structure to the ring buffer, will block IO if the * queue is full waiting for one slot to get available. * * @param duration Duration of the tone in milliseconds * @param frequency Frequency of the tone in hertz */ void tone(const uint16_t &duration, const uint16_t &frequency=0) { while (buffer.isFull()) { this->tick(); thermalManager.manage_heater(); } tone_t tone = { duration, frequency }; this->buffer.enqueue(tone); } /** * @brief Loop function * @details This function should be called at loop, it will take care of * playing the tones in the queue. */ virtual void tick() { const millis_t now = millis(); if (!this->state.endtime) { if (this->buffer.isEmpty()) return; this->state.tone = this->buffer.dequeue(); this->state.endtime = now + this->state.tone.duration; if (this->state.tone.frequency > 0) { #if ENABLED(SPEAKER) CRITICAL_SECTION_START; ::tone(BEEPER_PIN, this->state.tone.frequency, this->state.tone.duration); CRITICAL_SECTION_END; #else this->on(); #endif } } else if (ELAPSED(now, this->state.endtime)) this->reset(); } }; extern Buzzer buzzer; #endif
{ "pile_set_name": "Github" }
<?php class ConfigurationTest extends PHPUnit_Framework_TestCase { /** * @expectedException Whip_InvalidType */ public function testItThrowsAnErrorIfAFaultyConfigurationIsPassed() { $configuration = new Whip_Configuration( 'Invalid configuration' ); } public function testItReturnsANegativeNumberIfRequirementCannotBeFound() { $configuration = new Whip_Configuration( array( 'php' => '5.6' ) ); $requirement = $this->getMockBuilder( 'Whip_Requirement' ) ->setMethods( array( 'component' ) ) ->getMock(); $requirement ->expects( $this->any() ) ->method( 'component' ) ->will( $this->returnValue( 'mysql' ) ); $this->assertEquals( -1, $configuration->configuredVersion( $requirement ) ); } public function testItReturnsAnEntryIfRequirementIsFound() { $configuration = new Whip_Configuration( array( 'php' => '5.6' ) ); $requirement = $this->getMockBuilder( 'Whip_Requirement' ) ->setMethods( array( 'component' ) ) ->getMock(); $requirement ->expects( $this->any() ) ->method( 'component' ) ->will( $this->returnValue( 'php' ) ); $this->assertEquals( '5.6', $configuration->configuredVersion( $requirement ) ); } public function testIfRequirementIsConfigured() { $configuration = new Whip_Configuration( array( 'php' => '5.6' ) ); $requirement = $this->getMockBuilder( 'Whip_Requirement' ) ->setMethods( array( 'component' ) ) ->getMock(); $requirement ->expects( $this->any() ) ->method( 'component' ) ->will( $this->returnValue( 'php' ) ); $falseRequirement = $this->getMockBuilder( 'Whip_Requirement' ) ->setMethods( array( 'component' ) ) ->getMock(); $falseRequirement ->expects( $this->any() ) ->method( 'component' ) ->will( $this->returnValue( 'mysql' ) ); $this->assertTrue( $configuration->hasRequirementConfigured( $requirement ) ); $this->assertFalse( $configuration->hasRequirementConfigured( $falseRequirement ) ); } }
{ "pile_set_name": "Github" }
<template> <create-view :loading="loading" :body-style="{ height: '100%'}"> <flexbox direction="column" align="stretch" class="crm-create-container"> <flexbox class="crm-create-header"> <div style="flex:1;font-size:17px;color:#333;">{{ name }}</div> <img class="close" src="@/assets/img/task_close.png" @click="hidenView" > </flexbox> <flexbox class="crm-create-flex" direction="column" align="stretch"> <div class="crm-create-body"> <el-form ref="crmForm" :model="crmForm" label-position="top" class="crm-create-box"> <el-form-item v-for="(item, index) in crmForm.crmFields" :key="'item'+index" :prop="'crmFields.' + index + '.value'" :class="{ 'crm-create-block-item': item.showblock, 'crm-create-item': !item.showblock }" :rules="crmRules[item.key]" :style="{'padding-left': getPaddingLeft(item, index), 'padding-right': getPaddingRight(item, index)}"> <div slot="label" style="display: inline-block;"> <div style="margin:5px 0;font-size:12px;word-wrap:break-word;word-break:break-all;"> {{ item.data.name }} <span style="color:#999;"> {{ item.data.input_tips ? '('+item.data.input_tips+')':'' }} </span> </div> </div> <component :is="item.data.form_type | typeToComponentName" :value="item.value" :index="index" :item="item" :disabled="item.disabled" @value-change="fieldValueChange"/> </el-form-item> </el-form> </div> </flexbox> <div class="handle-bar"> <el-button class="handle-button" @click.native="hidenView">取消</el-button> <el-button class="handle-button" type="primary" @click.native="saveField">保存</el-button> </div> </flexbox> </create-view> </template> <script type="text/javascript"> import { crmReceivablesPlanSave } from '@/api/customermanagement/contract' import CreateView from '@/components/CreateView' import { XhInput, XhTextarea, XhSelect, XhDate, CrmRelativeCell, XhFiles } from '@/components/CreateCom' import { formatTimeToTimestamp, timestampToFormatTime } from '@/utils' export default { name: 'MoneyPlanCreate', // 回款计划新建 components: { CreateView, XhInput, XhTextarea, XhSelect, XhDate, XhFiles, CrmRelativeCell }, filters: { /** 根据type 找到组件 */ typeToComponentName(form_type) { if (form_type == 'text') { return 'XhInput' } else if (form_type == 'textarea') { return 'XhTextarea' } else if (form_type == 'select') { return 'XhSelect' } else if (form_type == 'date') { return 'XhDate' } else if (form_type == 'file') { return 'XhFiles' } else if (form_type == 'customer') { return 'CrmRelativeCell' } else if (form_type == 'contract') { return 'CrmRelativeCell' } } }, props: { // CRM类型 crmType: { type: String, default: '' }, /** 模块ID */ id: [String, Number], action: { type: Object, default: () => { return { type: 'save', params: {} } } } }, data() { return { name: '', loading: false, // 自定义字段验证规则 crmRules: {}, // 自定义字段信息表单 crmForm: { crmFields: [] } } }, computed: {}, mounted() { document.body.appendChild(this.$el) if (this.action.type == 'update') { this.name = '编辑回款计划' this.getField(this.action.data) } else { this.name = '新建回款计划' this.getField() } }, destroyed() { // remove DOM node after destroy if (this.$el && this.$el.parentNode) { this.$el.parentNode.removeChild(this.$el) } }, methods: { // 字段的值更新 fieldValueChange(data) { var item = this.crmForm.crmFields[data.index] item.value = data.value }, // 获取自定义字段 getField(data) { var field = [ { field: 'customer_id', form_type: 'customer', is_null: 0, name: '客户名称', setting: [], input_tips: '', value: [] }, { field: 'contract_id', form_type: 'contract', is_null: 1, name: '合同编号', setting: [], id: '', // 用于关联客户id input_tips: '请先选择客户', value: [] }, { field: 'money', form_type: 'text', is_null: 0, name: '计划回款金额', setting: [], input_tips: '', value: data ? data.money : '' }, { field: 'return_date', form_type: 'date', is_null: 0, name: '计划回款日期', setting: [], input_tips: '', value: data ? timestampToFormatTime(data.return_date, 'YYYY-MM-DD') : '' }, { field: 'return_type', form_type: 'select', is_null: 1, name: '计划回款方式', setting: ['支付宝', '微信', '银行转账'], input_tips: '', value: data ? data.return_type : '' }, { field: 'remind', form_type: 'text', is_null: 0, name: '提前几日提醒', setting: [], input_tips: '', value: data ? data.remind : '' }, { field: 'remark', form_type: 'textarea', is_null: 0, name: '备注', setting: [], input_tips: '', value: data ? data.remark : '' }, { field: 'file_ids', form_type: 'file', is_null: 0, name: '附件', setting: [], input_tips: '', value: data ? data.fileList : [] } ] this.getcrmRulesAndModel(field) }, // 根据自定义字段获取自定义字段规则 getcrmRulesAndModel(list) { for (let index = 0; index < list.length; index++) { const item = list[index] /** 规则数据 */ var tempList = [] // 验证必填 if (item.is_null == 1) { tempList.push({ required: true, message: item.name + '不能为空', trigger: ['blur', 'change'] }) } this.crmRules[item.field] = tempList var params = {} params['value'] = item.value // 加入默认值 可能编辑的时候需要调整 params['key'] = item.field params['data'] = item // 合同下新建回款计划客户合同信息都有 if (this.crmType === 'contract') { if (item.form_type === 'customer') { params['value'] = [this.action.params.customer] params['disabled'] = true } if (item.form_type === 'contract') { params['value'] = [this.action.params.contract] params['disabled'] = true } // 客户下新建包含客户信息 默认禁止点击合同 } else if (this.crmType === 'customer') { if (item.form_type === 'customer') { params['value'] = [this.action.params.customer] params['disabled'] = true } // 注入客户ID if (item.form_type === 'contract') { item['relation_id'] = this.action.params.customer.customer_id params['data'] = item } } this.crmForm.crmFields.push(params) } }, // 保存数据 saveField() { this.$refs.crmForm.validate(valid => { if (valid) { this.submiteParams(this.crmForm.crmFields) } else { return false } }) }, /** 上传 */ submiteParams(array) { var params = this.getSubmiteParams(array) this.loading = true crmReceivablesPlanSave(params) .then(res => { this.loading = false this.hidenView() // 回到保存成功 this.$emit('save') }) .catch(() => { this.loading = false }) }, /** 拼接上传传输 */ getSubmiteParams(array) { var params = {} for (let index = 0; index < array.length; index++) { const element = array[index] params[element.key] = this.getRealParams(element) } return params }, // 部分数据要特殊处理 getRealParams(element) { if ( element.key == 'customer_id' || element.key == 'contacts_id' || element.key == 'contract_id' || element.key == 'business_id' || element.key == 'leads_id' ) { if (element.value.length) { return element.value[0][element.key] } else { return '' } } else if ( element.data.form_type == 'user' || element.data.form_type == 'structure' ) { if (element.value.length > 0) { return element.value[0].id } else { return '' } } else if (element.data.form_type == 'date') { if (element.value) { return formatTimeToTimestamp(element.value) } return '' } else if (element.data.form_type == 'file') { if (element.value.length > 0) { var temps = [] for (let index = 0; index < element.value.length; index++) { const file = element.value[index] if (file.isNewUpload && file.isNewUpload == true) { temps.push(file.file_id) } } return temps } return [] } return element.value }, hidenView() { this.$emit('close') }, // 获取左边padding getPaddingLeft(item, index) { if (item.showblock && item.showblock == true) { return '0' } return index % 2 == 0 ? '0' : '25px' }, // 获取左边padding getPaddingRight(item, index) { if (item.showblock && item.showblock == true) { return '0' } return index % 2 == 0 ? '25px' : '0' } } } </script> <style lang="scss" scoped> .crm-create-container { position: relative; height: 100%; } .crm-create-flex { position: relative; overflow-x: hidden; overflow-y: auto; flex: 1; } .crm-create-header { height: 40px; margin-bottom: 20px; padding: 0 10px; flex-shrink: 0; .close { display: block; width: 40px; height: 40px; margin-right: -10px; padding: 10px; } } .crm-create-body { flex: 1; overflow-x: hidden; overflow-y: auto; } /** 将其改变为flex布局 */ .crm-create-box { display: flex; flex-wrap: wrap; padding: 0 10px; } .crm-create-item { flex: 0 0 50%; flex-shrink: 0; padding-bottom: 10px; } // 占用一整行 .crm-create-block-item { flex: 0 0 100%; flex-shrink: 0; padding-bottom: 10px; } .el-form-item /deep/ .el-form-item__label { line-height: normal; font-size: 13px; color: #333333; position: relative; padding-left: 8px; padding-bottom: 0; } .el-form /deep/ .el-form-item { margin-bottom: 0px; } .el-form /deep/ .el-form-item.is-required .el-form-item__label:before { content: '*'; color: #f56c6c; margin-right: 4px; position: absolute; left: 0; top: 5px; } .handle-bar { position: relative; .handle-button { float: right; margin-top: 5px; margin-right: 20px; } } </style>
{ "pile_set_name": "Github" }
using Coevery.Data.Migration.Interpreters; using Coevery.Data.Migration.Schema; namespace Coevery.Tests.DataMigration.Utilities { public class NullInterpreter : IDataMigrationInterpreter { public void Visit(ISchemaBuilderCommand command) { } public void Visit(CreateTableCommand command) { } public void Visit(DropTableCommand command) { } public void Visit(AlterTableCommand command) { } public void Visit(SqlStatementCommand command) { } public void Visit(CreateForeignKeyCommand command) { } public void Visit(DropForeignKeyCommand command) { } } }
{ "pile_set_name": "Github" }
/** * modules/analytics data store: accounts tests. * * Site Kit by Google, Copyright 2020 Google LLC * * 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 * * https://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. */ /** * Internal dependencies */ import API from 'googlesitekit-api'; import { STORE_NAME, FORM_ACCOUNT_CREATE } from './constants'; import { STORE_NAME as CORE_FORMS } from '../../../googlesitekit/datastore/forms/constants'; import { STORE_NAME as CORE_SITE } from '../../../googlesitekit/datastore/site/constants'; import { STORE_NAME as CORE_USER } from '../../../googlesitekit/datastore/user/constants'; import { createTestRegistry, subscribeUntil, unsubscribeFromAll, untilResolved, } from 'tests/js/utils'; import * as factories from './__factories__'; import * as fixtures from './__fixtures__'; describe( 'modules/analytics accounts', () => { let registry; let store; beforeAll( () => { API.setUsingCache( false ); } ); beforeEach( () => { registry = createTestRegistry(); store = registry.stores[ STORE_NAME ].store; // Receive empty settings to prevent unexpected fetch by resolver. registry.dispatch( STORE_NAME ).receiveGetSettings( {} ); } ); afterAll( () => { API.setUsingCache( true ); } ); afterEach( () => { unsubscribeFromAll( registry ); } ); describe( 'actions', () => { describe( 'createAccount', () => { const accountName = fixtures.createAccount.account.name; const propertyName = fixtures.createAccount.webproperty.name; const profileName = fixtures.createAccount.profile.name; const timezone = fixtures.createAccount.profile.timezone; it( 'creates an account ticket and sets the account ticket ID', async () => { fetchMock.post( /^\/google-site-kit\/v1\/modules\/analytics\/data\/create-account-ticket/, { body: fixtures.createAccount, status: 200, } ); registry.dispatch( CORE_FORMS ).setValues( FORM_ACCOUNT_CREATE, { accountName, propertyName, profileName, timezone } ); await registry.dispatch( STORE_NAME ).createAccount(); // Ensure the proper body parameters were sent. expect( fetchMock ).toHaveFetched( /^\/google-site-kit\/v1\/modules\/analytics\/data\/create-account-ticket/, { body: { data: { accountName, propertyName, profileName, timezone }, }, } ); expect( store.getState().accountTicketID ).toEqual( fixtures.createAccount.id ); } ); it( 'sets isDoingCreateAccount ', async () => { fetchMock.post( /^\/google-site-kit\/v1\/modules\/analytics\/data\/create-account-ticket/, { body: fixtures.createAccount, status: 200 } ); registry.dispatch( STORE_NAME ).createAccount(); expect( registry.select( STORE_NAME ).isDoingCreateAccount() ).toEqual( true ); } ); it( 'dispatches an error if the request fails ', async () => { const response = { code: 'internal_server_error', message: 'Internal server error', data: { status: 500 }, }; fetchMock.post( /^\/google-site-kit\/v1\/modules\/analytics\/data\/create-account-ticket/, { body: response, status: 500 } ); registry.dispatch( CORE_FORMS ).setValues( FORM_ACCOUNT_CREATE, { accountName, propertyName, profileName, timezone } ); await registry.dispatch( STORE_NAME ).createAccount(); expect( registry.select( STORE_NAME ).getErrorForAction( 'createAccount' ) ).toMatchObject( response ); expect( console ).toHaveErrored(); } ); } ); describe( 'resetAccounts', () => { it( 'sets accounts and related values back to their initial values', async () => { registry.dispatch( STORE_NAME ).receiveGetExistingTag( null ); registry.dispatch( STORE_NAME ).setSettings( { accountID: '12345', propertyID: 'UA-12345-1', internalWebPropertyID: '23245', profileID: '54321', useSnippet: true, trackingDisabled: [], anonymizeIP: true, } ); const propertyID = fixtures.accountsPropertiesProfiles.properties[ 0 ].id; const accountID = fixtures.accountsPropertiesProfiles.accounts[ 0 ].id; registry.dispatch( STORE_NAME ).receiveGetAccounts( fixtures.accountsPropertiesProfiles.accounts ); registry.dispatch( STORE_NAME ).receiveGetProperties( fixtures.accountsPropertiesProfiles.properties, { accountID } ); registry.dispatch( STORE_NAME ).receiveGetProfiles( fixtures.accountsPropertiesProfiles.profiles, { accountID, propertyID } ); registry.dispatch( STORE_NAME ).resetAccounts(); // getAccounts() will trigger a request again. fetchMock.getOnce( /^\/google-site-kit\/v1\/modules\/analytics\/data\/accounts-properties-profiles/, { body: fixtures.accountsPropertiesProfiles, status: 200 } ); expect( registry.select( STORE_NAME ).getAccountID() ).toStrictEqual( undefined ); expect( registry.select( STORE_NAME ).getPropertyID() ).toStrictEqual( undefined ); expect( registry.select( STORE_NAME ).getInternalWebPropertyID() ).toStrictEqual( undefined ); expect( registry.select( STORE_NAME ).getProfileID() ).toStrictEqual( undefined ); expect( registry.select( STORE_NAME ).getAccounts() ).toStrictEqual( undefined ); // Other settings are left untouched. expect( registry.select( STORE_NAME ).getUseSnippet() ).toStrictEqual( true ); expect( registry.select( STORE_NAME ).getTrackingDisabled() ).toStrictEqual( [] ); expect( registry.select( STORE_NAME ).getAnonymizeIP() ).toStrictEqual( true ); // Wait until selector is resolved to prevent unmatched fetch error. await subscribeUntil( registry, () => registry.select( STORE_NAME ) .hasFinishedResolution( 'getAccounts' ) ); } ); it( 'invalidates the resolver for getAccounts', async () => { registry.dispatch( STORE_NAME ).receiveGetAccounts( fixtures.accountsPropertiesProfiles.accounts ); registry.select( STORE_NAME ).getAccounts(); await subscribeUntil( registry, () => registry.select( STORE_NAME ).hasFinishedResolution( 'getAccounts' ) ); registry.dispatch( STORE_NAME ).resetAccounts(); expect( registry.select( STORE_NAME ).hasFinishedResolution( 'getAccounts' ) ).toStrictEqual( false ); } ); } ); } ); describe( 'selectors', () => { describe( 'getAccounts', () => { it( 'uses a resolver to make a network request', async () => { registry.dispatch( STORE_NAME ).receiveGetExistingTag( null ); fetchMock.getOnce( /^\/google-site-kit\/v1\/modules\/analytics\/data\/accounts-properties-profiles/, { body: fixtures.accountsPropertiesProfiles, status: 200 } ); const accountID = fixtures.accountsPropertiesProfiles.properties[ 0 ].accountId; // Capitalization rule exception: `accountId` is a property of an API returned value. const propertyID = fixtures.accountsPropertiesProfiles.profiles[ 0 ].webPropertyId; // Capitalization rule exception: `webPropertyId` is a property of an API returned value. const initialAccounts = registry.select( STORE_NAME ).getAccounts(); expect( initialAccounts ).toEqual( undefined ); await subscribeUntil( registry, () => ( registry.select( STORE_NAME ).getAccounts() !== undefined ), ); const accounts = registry.select( STORE_NAME ).getAccounts(); expect( fetchMock ).toHaveFetchedTimes( 1 ); // Properties and profiles should also have been received by // this action. const properties = registry.select( STORE_NAME ).getProperties( accountID ); const profiles = registry.select( STORE_NAME ).getProfiles( accountID, propertyID ); expect( accounts ).toEqual( fixtures.accountsPropertiesProfiles.accounts ); expect( properties ).toEqual( fixtures.accountsPropertiesProfiles.properties ); expect( profiles ).toEqual( fixtures.accountsPropertiesProfiles.profiles ); } ); it( 'does not make a network request if accounts are already present', async () => { registry.dispatch( STORE_NAME ).receiveGetAccounts( fixtures.accountsPropertiesProfiles.accounts ); const accounts = registry.select( STORE_NAME ).getAccounts(); await subscribeUntil( registry, () => registry .select( STORE_NAME ) .hasFinishedResolution( 'getAccounts' ) ); expect( accounts ).toEqual( fixtures.accountsPropertiesProfiles.accounts ); expect( fetchMock ).not.toHaveFetched(); } ); it( 'does not make a network request if accounts exist but are empty (this is a valid state)', async () => { registry.dispatch( STORE_NAME ).receiveGetAccounts( [] ); const accounts = registry.select( STORE_NAME ).getAccounts(); await subscribeUntil( registry, () => registry .select( STORE_NAME ) .hasFinishedResolution( 'getAccounts' ) ); expect( accounts ).toEqual( [] ); expect( fetchMock ).not.toHaveFetched(); } ); it( 'dispatches an error if the request fails', async () => { const response = { code: 'internal_server_error', message: 'Internal server error', data: { status: 500 }, }; fetchMock.getOnce( /^\/google-site-kit\/v1\/modules\/analytics\/data\/accounts-properties-profiles/, { body: response, status: 500 } ); registry.dispatch( STORE_NAME ).receiveGetExistingTag( null ); registry.select( STORE_NAME ).getAccounts(); await untilResolved( registry, STORE_NAME ).getAccounts(); expect( fetchMock ).toHaveFetchedTimes( 1 ); const accounts = registry.select( STORE_NAME ).getAccounts(); expect( accounts ).toEqual( undefined ); expect( console ).toHaveErrored(); } ); it( 'passes existing tag ID when fetching accounts', async () => { const existingPropertyID = 'UA-1234567-1'; registry.dispatch( STORE_NAME ).receiveGetExistingTag( existingPropertyID ); registry.dispatch( STORE_NAME ).receiveGetTagPermission( { accountID: '1234567', permission: true, }, { propertyID: existingPropertyID } ); fetchMock.getOnce( /^\/google-site-kit\/v1\/modules\/analytics\/data\/accounts-properties-profiles/, { body: fixtures.accountsPropertiesProfiles, status: 200 } ); registry.select( STORE_NAME ).getAccounts(); await subscribeUntil( registry, () => registry.select( STORE_NAME ).getAccounts() !== undefined || registry.select( STORE_NAME ).getErrorForSelector( 'getAccounts' ) ); // Ensure the proper parameters were sent. expect( fetchMock ).toHaveFetched( /^\/google-site-kit\/v1\/modules\/analytics\/data\/accounts-properties-profiles/, { query: { existingPropertyID }, } ); expect( fetchMock ).toHaveFetchedTimes( 1 ); } ); it( 'supports asynchronous tag resolution before fetching accounts', async () => { const existingPropertyID = 'UA-1234567-1'; fetchMock.getOnce( { query: { tagverify: '1' } }, { body: factories.generateHTMLWithTag( existingPropertyID ), status: 200 } ); fetchMock.getOnce( /^\/google-site-kit\/v1\/modules\/analytics\/data\/tag-permission/, { body: { accountID: '1234567', permission: true }, status: 200 } ); fetchMock.getOnce( /^\/google-site-kit\/v1\/modules\/analytics\/data\/accounts-properties-profiles/, { body: fixtures.accountsPropertiesProfiles, status: 200 } ); registry.dispatch( CORE_SITE ).receiveSiteInfo( { homeURL: 'http://example.com/' } ); registry.select( STORE_NAME ).getAccounts(); await untilResolved( registry, STORE_NAME ).getAccounts(); expect( fetchMock ).toHaveFetched( true, { query: { tagverify: '1' } } ); expect( fetchMock ).toHaveFetched( /^\/google-site-kit\/v1\/modules\/analytics\/data\/tag-permission/, { query: { propertyID: existingPropertyID } } ); // Ensure the proper parameters were sent. expect( fetchMock ).toHaveFetched( /^\/google-site-kit\/v1\/modules\/analytics\/data\/accounts-properties-profiles/, { query: { existingPropertyID }, } ); expect( fetchMock ).toHaveFetchedTimes( 3 ); } ); it( 'sets account, property, and profile IDs in the store, if a matchedProperty is received and an account is not selected yet', async () => { const { accounts, properties, profiles, matchedProperty } = fixtures.accountsPropertiesProfiles; const matchedProfile = { ...fixtures.profiles[ 0 ], id: '123456', webPropertyId: matchedProperty.id, accountId: matchedProperty.accountId, }; const response = { accounts, properties, profiles: [ matchedProfile, ...profiles, ], matchedProperty, }; registry.dispatch( STORE_NAME ).receiveGetExistingTag( null ); fetchMock.getOnce( /^\/google-site-kit\/v1\/modules\/analytics\/data\/accounts-properties-profiles/, { body: response, status: 200 } ); expect( store.getState().matchedProperty ).toBeFalsy(); expect( registry.select( STORE_NAME ).getAccountID() ).toBeFalsy(); expect( registry.select( STORE_NAME ).getPropertyID() ).toBeFalsy(); expect( registry.select( STORE_NAME ).getInternalWebPropertyID() ).toBeFalsy(); expect( registry.select( STORE_NAME ).getProfileID() ).toBeFalsy(); registry.select( STORE_NAME ).getAccounts(); await subscribeUntil( registry, () => ( registry.select( STORE_NAME ).getAccounts() !== undefined ), ); expect( store.getState().matchedProperty ).toMatchObject( matchedProperty ); expect( registry.select( STORE_NAME ).getAccountID() ).toBe( matchedProperty.accountId ); expect( registry.select( STORE_NAME ).getPropertyID() ).toBe( matchedProperty.id ); expect( registry.select( STORE_NAME ).getInternalWebPropertyID() ).toBe( matchedProperty.internalWebPropertyId ); expect( registry.select( STORE_NAME ).getProfileID() ).toBe( matchedProperty.defaultProfileId ); } ); } ); describe( 'getAccountTicketTermsOfServiceURL', () => { it( 'requires the accountTicketID from createAccount', () => { registry.dispatch( CORE_USER ).receiveUserInfo( { email: '[email protected]' } ); expect( registry.select( STORE_NAME ).getAccountTicketTermsOfServiceURL() ).toEqual( undefined ); registry.dispatch( STORE_NAME ).receiveCreateAccount( { id: 'test-account-ticket-id' }, { data: {} } ); expect( registry.select( STORE_NAME ).getAccountTicketTermsOfServiceURL() ).toEqual( 'https://analytics.google.com/analytics/web/?provisioningSignup=false&authuser=test%40gmail.com#/termsofservice/test-account-ticket-id' ); } ); it( 'requires the user’s email', () => { expect( registry.select( STORE_NAME ).getAccountTicketTermsOfServiceURL() ).toEqual( undefined ); registry.dispatch( STORE_NAME ).receiveCreateAccount( { id: 'test-account-ticket-id' }, { data: {} } ); expect( registry.select( STORE_NAME ).getAccountTicketTermsOfServiceURL() ).toEqual( undefined ); registry.dispatch( CORE_USER ).receiveUserInfo( { email: '[email protected]' } ); expect( registry.select( STORE_NAME ).getAccountTicketTermsOfServiceURL() ).toEqual( 'https://analytics.google.com/analytics/web/?provisioningSignup=false&authuser=test%40gmail.com#/termsofservice/test-account-ticket-id' ); } ); } ); } ); } );
{ "pile_set_name": "Github" }
/* * Copyright (c) 2015 Twitter, Inc. All rights reserved. * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ package com.twitter.whiskey.net; import com.twitter.whiskey.util.ZlibInflater; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.ProtocolException; import java.net.URL; import java.nio.ByteBuffer; import java.util.HashSet; import java.util.Set; import java.util.zip.DataFormatException; /** * Represents a SPDY stream and is responsible for providing updates to * an associated {@link RequestOperation}. * * @author Michael Schore */ class SpdyStream { static final String SPDY_SCHEME = ":scheme"; static final String SPDY_HOST = ":host"; static final String SPDY_PATH = ":path"; static final String SPDY_METHOD = ":method"; private static final Set<String> INVALID_HEADERS; static { INVALID_HEADERS = new HashSet<String>() {{ add(Headers.CONNECTION); add(Headers.KEEP_ALIVE); add(Headers.PROXY_CONNECTION); add(Headers.TRANSFER_ENCODING); }}; } private RequestOperation operation; private Request request; private Request.Method redirectMethod; private ZlibInflater inflater; private URL redirectURL; private Integer statusCode; private final byte priority; private int streamId; private int sendWindow; private int receiveWindow; private int unackedWindow; private int expectedContentLength; private boolean compressed; private boolean local; private boolean open; private boolean closedLocally; private boolean closedRemotely; private boolean receivedReply; private boolean finalResponse; SpdyStream(boolean local, byte priority) { assert(priority == (byte) (priority & 0x07)); this.local = local; this.priority = priority; closedLocally = !local; closedRemotely = false; } /** * Factory constructor for various internal Stream types. */ static SpdyStream newStream(RequestOperation operation) { if (operation.getCurrentRequest().getBodyData() != null) { return new SpdyStream.Buffered(operation); } else if (operation.getCurrentRequest().getBodyStream() != null) { return new SpdyStream.Streamed(operation); } else { return new SpdyStream(operation); } } /** * Constructor for streams handling a {@link Request} with no body. */ SpdyStream(RequestOperation operation) { this(true, (byte) Math.min(7, (int) ((1d - operation.getCurrentRequest().getPriority()) * 8))); this.operation = operation; request = operation.getCurrentRequest(); } void open(int streamId, int sendWindow, int receiveWindow) { assert !open; this.streamId = streamId; this.sendWindow = sendWindow; this.receiveWindow = receiveWindow; open = true; } RequestOperation getOperation() { return operation; } void setOperation(RequestOperation operation) { this.operation = operation; } Request getRequest() { return request; } int getStreamId() { return streamId; } byte getPriority() { return priority; } void setStreamId(int streamId) { this.streamId = streamId; } boolean isLocal() { return local; } boolean isClosedLocally() { return closedLocally; } boolean isClosedRemotely() { return closedRemotely; } boolean isClosed() { return closedLocally && closedRemotely; } void closeLocally() { if (inflater != null) inflater.end(); closedLocally = true; } void closeRemotely() { if (inflater != null) inflater.end(); closedRemotely = true; } void closeRetryably(Throwable e) { if (!retry()) close(e); } void close(Throwable e) { closedLocally = true; closedRemotely = true; if (inflater != null) inflater.end(); operation.fail(e); } @Override protected void finalize() throws Throwable { if (inflater != null) inflater.end(); super.finalize(); } void complete() { if (redirectMethod != null && redirectURL != null) { redirect(); return; } if (!finalResponse) { finalizeResponse(); } if (inflater != null) inflater.end(); operation.complete(statusCode); } boolean isOpen() { return open; } boolean hasReceivedReply() { return receivedReply; } int getReceiveWindow() { return receiveWindow; } int getSendWindow() { return sendWindow; } void increaseReceiveWindow(int delta) { if (Integer.MAX_VALUE - delta < receiveWindow) { receiveWindow = Integer.MAX_VALUE; } else { receiveWindow += delta; } } void increaseSendWindow(int delta) { sendWindow += delta; } void reduceReceiveWindow(int delta) { receiveWindow -= delta; } void reduceSendWindow(int delta) { sendWindow -= delta; } Headers getCanonicalHeaders() { Headers canonical = new Headers(request.getHeaders()); URL url = request.getUrl(); String path = url.getPath(); // Though RFC-3986 allows path to be empty, most user agents will send // a trailing slash in lieu of an empty path, and Twitter seems to // require it. if (path.length() == 0) path = "/"; String query = url.getQuery(); String fragment = url.getRef(); String fullPath = path + (query != null ? "?" + query : "") + (fragment != null ? "#" + fragment : ""); canonical.put(":path", fullPath); canonical.put(":method", request.getMethod().toString()); canonical.put(":version", "HTTP/1.1"); canonical.put(":host", url.getHost()); canonical.put(":scheme", url.getProtocol()); return canonical; } boolean hasPendingData() { return false; } ByteBuffer readData(int length) throws IOException { throw new UnsupportedOperationException(); } void onReply() { receivedReply = true; } void onHeader(Header header) throws IOException { if (INVALID_HEADERS.contains(header.getKey())) { //throw new SpdyProtocolException("invalid header for SPDY response: " + header.getKey()); return; } switch(header.getKey()) { case ":status": Integer status; try { status = Integer.valueOf(header.getValue().substring(0, 3)); } catch (NumberFormatException e) { throw new IOException("invalid HTTP response: " + header.getValue()); } onStatus(status); // Don't include SPDY protocol headers in response headers return; case ":version": // Don't include SPDY protocol headers in response headers return; case Headers.LOCATION: try { Request currentRequest = operation.getCurrentRequest(); redirectURL = new URL(currentRequest.getUrl(), header.getValue()); } catch (MalformedURLException e) { throw new IOException( "malformed URL received for redirect: " + header.getValue(), e); } break; case Headers.CONTENT_ENCODING: String value = header.getValue(); if (value.equalsIgnoreCase("gzip")) { compressed = true; inflater = new ZlibInflater(ZlibInflater.Wrapper.GZIP); } else if (value.equalsIgnoreCase("zlib")) { compressed = true; inflater = new ZlibInflater(ZlibInflater.Wrapper.ZLIB); } else if (value.equalsIgnoreCase("deflate")) { compressed = true; inflater = new ZlibInflater(ZlibInflater.Wrapper.UNKNOWN); } else { break; } if (expectedContentLength > 0) { int approximateLength = estimateContentLength(expectedContentLength); operation.getBodyFuture().setExpectedLength(approximateLength); } return; case Headers.CONTENT_LENGTH: expectedContentLength = header.getIntegerValue(); if (expectedContentLength <= 0) break; if (compressed) { operation.getBodyFuture().setExpectedLength(estimateContentLength(expectedContentLength)); } else { operation.getBodyFuture().setExpectedLength(expectedContentLength); } break; } operation.getHeadersFuture().provide(header); } private static int estimateContentLength(int contentLength) { // This can be fine-tuned, but is based on a rough estimate of 80% // efficiency for plaintext compression. return Integer.highestOneBit(contentLength << 3); } void onData(ByteBuffer data) throws DataFormatException { if (!data.hasRemaining()) return; if (!compressed) { operation.getBodyFuture().provide(data); } else { // Set chunk size to twice the next power of 2 assert(data.remaining() < Integer.MAX_VALUE >> 2); int chunkSize = Integer.highestOneBit(data.remaining()) << 2; ByteBuffer decompressed = ByteBuffer.allocate(chunkSize); inflater.setInput(data.array(), data.arrayOffset() + data.position(), data.remaining()); int bytesWritten = 0; do { bytesWritten = inflater.inflate( decompressed.array(), decompressed.arrayOffset() + decompressed.position(), decompressed.remaining()); decompressed.position(decompressed.position() + bytesWritten); if (inflater.getRemaining() > 0 && !decompressed.hasRemaining()) { decompressed.flip(); operation.getBodyFuture().provide(decompressed); decompressed = ByteBuffer.allocate(chunkSize); } } while (!inflater.needsInput() && !inflater.finished()); decompressed.flip(); operation.getBodyFuture().provide(decompressed); assert(inflater.getRemaining() == 0); } } void onStatus(int statusCode) throws IOException { if (finalResponse) { throw new ProtocolException("unexpected second response status received: " + statusCode); } this.statusCode = statusCode; if (statusCode >= 300 && statusCode < 400 && operation.getRemainingRedirects() > 0) { Request currentRequest = operation.getCurrentRequest(); Request.Method currentMethod = currentRequest.getMethod(); if (statusCode == 301 || statusCode == 307) { /* RFC 2616: If the [status code] is received in response to a request other than * GET or HEAD, the user agent MUST NOT automatically redirect the request unless * it can be confirmed by the user, since this might change the conditions under * which the request was issued. */ if (currentMethod == Request.Method.GET || currentMethod == Request.Method.HEAD) { redirectMethod = currentMethod; } else { finalizeResponse(); } } else if (statusCode == 302 || statusCode == 303) { /* * This implementation follows convention over specification by changing the request * method to GET on a 302 redirect. Note this behavior violates RFC 1945, 2068, * and 2616, but is also expected by most servers and clients. */ redirectMethod = Request.Method.GET; } } else if (statusCode != 100) { finalizeResponse(); } } private void redirect() { Request redirect = new Request.Builder(operation.getCurrentRequest()) .method(redirectMethod) .url(redirectURL) .body() .create(); operation.redirect(redirect); } private boolean retry() { if (receivedReply || !local) return false; if (operation.getRemainingRetries() > 0) { operation.retry(); return true; } return false; } /** * The incoming response is the one to pass on to the client: no more * redirects will be followed and retry behavior is disallowed. */ private void finalizeResponse() { finalResponse = true; operation.getHeadersFuture().release(); operation.getBodyFuture().release(); operation.getPushFuture().release(); } private static class Buffered extends SpdyStream { private ByteBuffer[] data; private int dataIndex; Buffered(RequestOperation operation) { super(operation); this.data = operation.getCurrentRequest().getBodyData(); dataIndex = 0; } @Override boolean hasPendingData() { while (dataIndex < data.length) { if (data[dataIndex].hasRemaining()) return true; dataIndex++; } return false; } ByteBuffer readData(int length) throws IOException { while (dataIndex < data.length) { int available = data[dataIndex].remaining(); if (available > 0) { int bytesToRead = Math.min(length, available); int oldLimit = data[dataIndex].limit(); int sliceLimit = data[dataIndex].position() + bytesToRead; data[dataIndex].limit(sliceLimit); ByteBuffer slice = data[dataIndex].slice(); data[dataIndex].limit(oldLimit); data[dataIndex].position(sliceLimit); return slice; } dataIndex++; } throw new IOException("no pending data"); } boolean retry() { for (ByteBuffer buffer : data) { buffer.position(0); } return super.retry(); } } private static class Streamed extends SpdyStream { // Limit the amount of data that may be read from a stream before it is // considered "un-retryable" even if it supports mark and reset. Note that // BufferedInputStream apparently possesses some especially undesirable // behavior: it will buffer up to this limit in memory, even if the // underlying stream natively supports "free" mark and reset behaviors. private static final int MARK_READ_LIMIT = Integer.MAX_VALUE; InputStream dataStream; boolean pending = true; Streamed(RequestOperation operation) { super(operation); this.dataStream = operation.getCurrentRequest().getBodyStream(); if (dataStream.markSupported()) { dataStream.mark(MARK_READ_LIMIT); } } @Override boolean hasPendingData() { if (!pending) return false; try { pending = dataStream.available() > 0; } catch (IOException e) { pending = false; } return pending; } @Override ByteBuffer readData(int length) throws IOException { int bytesToRead = Math.min(length, dataStream.available()); byte[] data = new byte[bytesToRead]; int bytesRead = dataStream.read(data); return ByteBuffer.wrap(data, 0, bytesRead); } boolean retry() { if (dataStream.markSupported()) { try { dataStream.reset(); } catch (IOException e) { return false; } } return super.retry(); } } static class Pushed extends SpdyStream { private Request.Builder pushBuilder = new Request.Builder(); private RequestOperation parentOperation; private String scheme, host, path, method; Pushed(SpdyStream parent, byte priority) { super(false, priority); parentOperation = parent.getOperation(); pushBuilder = new Request.Builder(); pushBuilder.addHeaders(parent.getRequest().getHeaders()); } @Override void onHeader(Header header) throws IOException { switch(header.getKey()) { case SPDY_SCHEME: scheme = header.getValue(); break; case SPDY_HOST: host = header.getValue(); break; case SPDY_PATH: path = header.getValue(); break; case SPDY_METHOD: method = header.getValue(); break; default: assert(getOperation() != null); super.onHeader(header); return; } if (scheme != null && host != null && path != null) { pushBuilder.url(new URL(scheme, host, path)); final Request request = pushBuilder.create(); final RequestOperation pushOperation = new RequestOperation(parentOperation.getClient(), request); setOperation(pushOperation); parentOperation.getPushFuture().provide(pushOperation); } } @Override void onStatus(int statusCode) throws IOException { if (statusCode == 301 || statusCode == 302 || statusCode == 303 || statusCode == 307) { throw new SpdyStreamException("pushed resources cannot be redirects"); } super.onStatus(statusCode); } } }
{ "pile_set_name": "Github" }
/* * Copyright (C) 2013 The Android Open Source Project * * 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. */ #ifndef ART_RUNTIME_GC_COLLECTOR_TYPE_H_ #define ART_RUNTIME_GC_COLLECTOR_TYPE_H_ #include <iosfwd> namespace art { namespace gc { // Which types of collections are able to be performed. enum CollectorType { // No collector selected. kCollectorTypeNone, // Non concurrent mark-sweep. kCollectorTypeMS, // Concurrent mark-sweep. kCollectorTypeCMS, // Semi-space / mark-sweep hybrid, enables compaction. kCollectorTypeSS, // A generational variant of kCollectorTypeSS. kCollectorTypeGSS, // Mark compact collector. kCollectorTypeMC, // Heap trimming collector, doesn't do any actual collecting. kCollectorTypeHeapTrim, // A (mostly) concurrent copying collector. kCollectorTypeCC, // The background compaction of the concurrent copying collector. kCollectorTypeCCBackground, // Instrumentation critical section fake collector. kCollectorTypeInstrumentation, // Fake collector for adding or removing application image spaces. kCollectorTypeAddRemoveAppImageSpace, // Fake collector used to implement exclusion between GC and debugger. kCollectorTypeDebugger, // A homogeneous space compaction collector used in background transition // when both foreground and background collector are CMS. kCollectorTypeHomogeneousSpaceCompact, // Class linker fake collector. kCollectorTypeClassLinker, // JIT Code cache fake collector. kCollectorTypeJitCodeCache, // Hprof fake collector. kCollectorTypeHprof, // Fake collector for installing/removing a system-weak holder. kCollectorTypeAddRemoveSystemWeakHolder, // Fake collector type for GetObjectsAllocated kCollectorTypeGetObjectsAllocated, // Fake collector type for ScopedGCCriticalSection kCollectorTypeCriticalSection, }; std::ostream& operator<<(std::ostream& os, const CollectorType& collector_type); static constexpr CollectorType kCollectorTypeDefault = #if ART_DEFAULT_GC_TYPE_IS_CMS kCollectorTypeCMS #elif ART_DEFAULT_GC_TYPE_IS_SS kCollectorTypeSS #elif ART_DEFAULT_GC_TYPE_IS_GSS kCollectorTypeGSS #else kCollectorTypeCMS #error "ART default GC type must be set" #endif ; // NOLINT [whitespace/semicolon] [5] } // namespace gc } // namespace art #endif // ART_RUNTIME_GC_COLLECTOR_TYPE_H_
{ "pile_set_name": "Github" }
// // DYRoomHistoryModel.m // Douyu // // Created by Grayon on 2017/12/22. // Copyright © 2017年 Lanskaya. All rights reserved. // #import "DYRoomHistoryModel.h" @implementation DYRoomHistoryModel + (NSArray<DYRoomHistoryData *> *)getAll { return [[DYRoomHistoryData searchWithWhere:nil orderBy:@"lastWatchTime DESC" offset:0 count:0] copy]; } + (DYRoomHistoryData *)getRoomId:(NSString *)roomId { if (!roomId.length) { return nil; } return [DYRoomHistoryData searchSingleWithWhere:@{@"roomId":roomId} orderBy:nil]; } + (void)saveRoomId:(NSString *)roomId withNickname:(NSString *)nickname { DYRoomHistoryData *data = [self getRoomId:roomId]; if (!data) { data = [[DYRoomHistoryData alloc] init]; data.roomId = roomId; data.nickname = nickname; } data.lastWatchTime = [NSDate date]; [data saveToDB]; } @end
{ "pile_set_name": "Github" }
/* datetime.h */ #ifndef DATETIME_H #define DATETIME_H #ifdef __cplusplus extern "C" { #endif /* Fields are packed into successive bytes, each viewed as unsigned and * big-endian, unless otherwise noted: * * byte offset * 0 year 2 bytes, 1-9999 * 2 month 1 byte, 1-12 * 3 day 1 byte, 1-31 * 4 hour 1 byte, 0-23 * 5 minute 1 byte, 0-59 * 6 second 1 byte, 0-59 * 7 usecond 3 bytes, 0-999999 * 10 */ /* # of bytes for year, month, and day. */ #define _PyDateTime_DATE_DATASIZE 4 /* # of bytes for hour, minute, second, and usecond. */ #define _PyDateTime_TIME_DATASIZE 6 /* # of bytes for year, month, day, hour, minute, second, and usecond. */ #define _PyDateTime_DATETIME_DATASIZE 10 typedef struct { PyObject_HEAD long hashcode; /* -1 when unknown */ int days; /* -MAX_DELTA_DAYS <= days <= MAX_DELTA_DAYS */ int seconds; /* 0 <= seconds < 24*3600 is invariant */ int microseconds; /* 0 <= microseconds < 1000000 is invariant */ } PyDateTime_Delta; typedef struct { PyObject_HEAD /* a pure abstract base clase */ } PyDateTime_TZInfo; /* The datetime and time types have hashcodes, and an optional tzinfo member, * present if and only if hastzinfo is true. */ #define _PyTZINFO_HEAD \ PyObject_HEAD \ long hashcode; \ char hastzinfo; /* boolean flag */ /* No _PyDateTime_BaseTZInfo is allocated; it's just to have something * convenient to cast to, when getting at the hastzinfo member of objects * starting with _PyTZINFO_HEAD. */ typedef struct { _PyTZINFO_HEAD } _PyDateTime_BaseTZInfo; /* All time objects are of PyDateTime_TimeType, but that can be allocated * in two ways, with or without a tzinfo member. Without is the same as * tzinfo == None, but consumes less memory. _PyDateTime_BaseTime is an * internal struct used to allocate the right amount of space for the * "without" case. */ #define _PyDateTime_TIMEHEAD \ _PyTZINFO_HEAD \ unsigned char data[_PyDateTime_TIME_DATASIZE]; typedef struct { _PyDateTime_TIMEHEAD } _PyDateTime_BaseTime; /* hastzinfo false */ typedef struct { _PyDateTime_TIMEHEAD PyObject *tzinfo; } PyDateTime_Time; /* hastzinfo true */ /* All datetime objects are of PyDateTime_DateTimeType, but that can be * allocated in two ways too, just like for time objects above. In addition, * the plain date type is a base class for datetime, so it must also have * a hastzinfo member (although it's unused there). */ typedef struct { _PyTZINFO_HEAD unsigned char data[_PyDateTime_DATE_DATASIZE]; } PyDateTime_Date; #define _PyDateTime_DATETIMEHEAD \ _PyTZINFO_HEAD \ unsigned char data[_PyDateTime_DATETIME_DATASIZE]; typedef struct { _PyDateTime_DATETIMEHEAD } _PyDateTime_BaseDateTime; /* hastzinfo false */ typedef struct { _PyDateTime_DATETIMEHEAD PyObject *tzinfo; } PyDateTime_DateTime; /* hastzinfo true */ /* Apply for date and datetime instances. */ #define PyDateTime_GET_YEAR(o) ((((PyDateTime_Date*)o)->data[0] << 8) | \ ((PyDateTime_Date*)o)->data[1]) #define PyDateTime_GET_MONTH(o) (((PyDateTime_Date*)o)->data[2]) #define PyDateTime_GET_DAY(o) (((PyDateTime_Date*)o)->data[3]) #define PyDateTime_DATE_GET_HOUR(o) (((PyDateTime_DateTime*)o)->data[4]) #define PyDateTime_DATE_GET_MINUTE(o) (((PyDateTime_DateTime*)o)->data[5]) #define PyDateTime_DATE_GET_SECOND(o) (((PyDateTime_DateTime*)o)->data[6]) #define PyDateTime_DATE_GET_MICROSECOND(o) \ ((((PyDateTime_DateTime*)o)->data[7] << 16) | \ (((PyDateTime_DateTime*)o)->data[8] << 8) | \ ((PyDateTime_DateTime*)o)->data[9]) /* Apply for time instances. */ #define PyDateTime_TIME_GET_HOUR(o) (((PyDateTime_Time*)o)->data[0]) #define PyDateTime_TIME_GET_MINUTE(o) (((PyDateTime_Time*)o)->data[1]) #define PyDateTime_TIME_GET_SECOND(o) (((PyDateTime_Time*)o)->data[2]) #define PyDateTime_TIME_GET_MICROSECOND(o) \ ((((PyDateTime_Time*)o)->data[3] << 16) | \ (((PyDateTime_Time*)o)->data[4] << 8) | \ ((PyDateTime_Time*)o)->data[5]) /* Define structure for C API. */ typedef struct { /* type objects */ PyTypeObject *DateType; PyTypeObject *DateTimeType; PyTypeObject *TimeType; PyTypeObject *DeltaType; PyTypeObject *TZInfoType; /* constructors */ PyObject *(*Date_FromDate)(int, int, int, PyTypeObject*); PyObject *(*DateTime_FromDateAndTime)(int, int, int, int, int, int, int, PyObject*, PyTypeObject*); PyObject *(*Time_FromTime)(int, int, int, int, PyObject*, PyTypeObject*); PyObject *(*Delta_FromDelta)(int, int, int, int, PyTypeObject*); /* constructors for the DB API */ PyObject *(*DateTime_FromTimestamp)(PyObject*, PyObject*, PyObject*); PyObject *(*Date_FromTimestamp)(PyObject*, PyObject*); } PyDateTime_CAPI; #define PyDateTime_CAPSULE_NAME "datetime.datetime_CAPI" /* "magic" constant used to partially protect against developer mistakes. */ #define DATETIME_API_MAGIC 0x414548d5 #ifdef Py_BUILD_CORE /* Macros for type checking when building the Python core. */ #define PyDate_Check(op) PyObject_TypeCheck(op, &PyDateTime_DateType) #define PyDate_CheckExact(op) (Py_TYPE(op) == &PyDateTime_DateType) #define PyDateTime_Check(op) PyObject_TypeCheck(op, &PyDateTime_DateTimeType) #define PyDateTime_CheckExact(op) (Py_TYPE(op) == &PyDateTime_DateTimeType) #define PyTime_Check(op) PyObject_TypeCheck(op, &PyDateTime_TimeType) #define PyTime_CheckExact(op) (Py_TYPE(op) == &PyDateTime_TimeType) #define PyDelta_Check(op) PyObject_TypeCheck(op, &PyDateTime_DeltaType) #define PyDelta_CheckExact(op) (Py_TYPE(op) == &PyDateTime_DeltaType) #define PyTZInfo_Check(op) PyObject_TypeCheck(op, &PyDateTime_TZInfoType) #define PyTZInfo_CheckExact(op) (Py_TYPE(op) == &PyDateTime_TZInfoType) #else /* Define global variable for the C API and a macro for setting it. */ static PyDateTime_CAPI *PyDateTimeAPI = NULL; #define PyDateTime_IMPORT \ PyDateTimeAPI = (PyDateTime_CAPI *)PyCapsule_Import(PyDateTime_CAPSULE_NAME, 0) /* Macros for type checking when not building the Python core. */ #define PyDate_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DateType) #define PyDate_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DateType) #define PyDateTime_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DateTimeType) #define PyDateTime_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DateTimeType) #define PyTime_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->TimeType) #define PyTime_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->TimeType) #define PyDelta_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->DeltaType) #define PyDelta_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DeltaType) #define PyTZInfo_Check(op) PyObject_TypeCheck(op, PyDateTimeAPI->TZInfoType) #define PyTZInfo_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->TZInfoType) /* Macros for accessing constructors in a simplified fashion. */ #define PyDate_FromDate(year, month, day) \ PyDateTimeAPI->Date_FromDate(year, month, day, PyDateTimeAPI->DateType) #define PyDateTime_FromDateAndTime(year, month, day, hour, min, sec, usec) \ PyDateTimeAPI->DateTime_FromDateAndTime(year, month, day, hour, \ min, sec, usec, Py_None, PyDateTimeAPI->DateTimeType) #define PyTime_FromTime(hour, minute, second, usecond) \ PyDateTimeAPI->Time_FromTime(hour, minute, second, usecond, \ Py_None, PyDateTimeAPI->TimeType) #define PyDelta_FromDSU(days, seconds, useconds) \ PyDateTimeAPI->Delta_FromDelta(days, seconds, useconds, 1, \ PyDateTimeAPI->DeltaType) /* Macros supporting the DB API. */ #define PyDateTime_FromTimestamp(args) \ PyDateTimeAPI->DateTime_FromTimestamp( \ (PyObject*) (PyDateTimeAPI->DateTimeType), args, NULL) #define PyDate_FromTimestamp(args) \ PyDateTimeAPI->Date_FromTimestamp( \ (PyObject*) (PyDateTimeAPI->DateType), args) #endif /* Py_BUILD_CORE */ #ifdef __cplusplus } #endif #endif
{ "pile_set_name": "Github" }
<!doctype html> <html> <title>npm-commands</title> <meta http-equiv="content-type" value="text/html;utf-8"> <link rel="stylesheet" type="text/css" href="../../static/style.css"> <link rel="canonical" href="https://www.npmjs.org/doc/api/npm-commands.html"> <script async=true src="../../static/toc.js"></script> <body> <div id="wrapper"> <h1><a href="../api/npm-commands.html">npm-commands</a></h1> <p>npm commands</p> <h2 id="synopsis">SYNOPSIS</h2> <pre><code>npm.commands[&lt;command&gt;](args, callback) </code></pre><h2 id="description">DESCRIPTION</h2> <p>npm comes with a full set of commands, and each of the commands takes a similar set of arguments.</p> <p>In general, all commands on the command object take an <strong>array</strong> of positional argument <strong>strings</strong>. The last argument to any function is a callback. Some commands are special and take other optional arguments.</p> <p>All commands have their own man page. See <code>man npm-&lt;command&gt;</code> for command-line usage, or <code>man 3 npm-&lt;command&gt;</code> for programmatic usage.</p> <h2 id="see-also">SEE ALSO</h2> <ul> <li><a href="../misc/npm-index.html">npm-index(7)</a></li> </ul> </div> <table border=0 cellspacing=0 cellpadding=0 id=npmlogo> <tr><td style="width:180px;height:10px;background:rgb(237,127,127)" colspan=18>&nbsp;</td></tr> <tr><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td><td style="width:40px;height:10px;background:#fff" colspan=4>&nbsp;</td><td rowspan=4 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td><td colspan=6 style="width:60px;height:10px;background:#fff">&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=4>&nbsp;</td></tr> <tr><td colspan=2 style="width:20px;height:30px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=4 colspan=2>&nbsp;</td><td style="width:10px;height:20px;background:rgb(237,127,127)" rowspan=2>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:20px;height:10px;background:#fff" rowspan=3 colspan=2>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:#fff" rowspan=3>&nbsp;</td><td style="width:10px;height:10px;background:rgb(237,127,127)" rowspan=3>&nbsp;</td></tr> <tr><td style="width:10px;height:10px;background:#fff" rowspan=2>&nbsp;</td></tr> <tr><td style="width:10px;height:10px;background:#fff">&nbsp;</td></tr> <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr> <tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr> </table> <p id="footer">npm-commands &mdash; [email protected]</p>
{ "pile_set_name": "Github" }
using System; using Org.BouncyCastle.Crypto.Modes; using Org.BouncyCastle.Crypto.Paddings; namespace Org.BouncyCastle.Crypto.Macs { /** * standard CBC Block Cipher MAC - if no padding is specified the default of * pad of zeroes is used. */ public class CbcBlockCipherMac : IMac { private byte[] buf; private int bufOff; private IBlockCipher cipher; private IBlockCipherPadding padding; private int macSize; /** * create a standard MAC based on a CBC block cipher. This will produce an * authentication code half the length of the block size of the cipher. * * @param cipher the cipher to be used as the basis of the MAC generation. */ public CbcBlockCipherMac( IBlockCipher cipher) : this(cipher, (cipher.GetBlockSize() * 8) / 2, null) { } /** * create a standard MAC based on a CBC block cipher. This will produce an * authentication code half the length of the block size of the cipher. * * @param cipher the cipher to be used as the basis of the MAC generation. * @param padding the padding to be used to complete the last block. */ public CbcBlockCipherMac( IBlockCipher cipher, IBlockCipherPadding padding) : this(cipher, (cipher.GetBlockSize() * 8) / 2, padding) { } /** * create a standard MAC based on a block cipher with the size of the * MAC been given in bits. This class uses CBC mode as the basis for the * MAC generation. * <p> * Note: the size of the MAC must be at least 24 bits (FIPS Publication 81), * or 16 bits if being used as a data authenticator (FIPS Publication 113), * and in general should be less than the size of the block cipher as it reduces * the chance of an exhaustive attack (see Handbook of Applied Cryptography). * </p> * @param cipher the cipher to be used as the basis of the MAC generation. * @param macSizeInBits the size of the MAC in bits, must be a multiple of 8. */ public CbcBlockCipherMac( IBlockCipher cipher, int macSizeInBits) : this(cipher, macSizeInBits, null) { } /** * create a standard MAC based on a block cipher with the size of the * MAC been given in bits. This class uses CBC mode as the basis for the * MAC generation. * <p> * Note: the size of the MAC must be at least 24 bits (FIPS Publication 81), * or 16 bits if being used as a data authenticator (FIPS Publication 113), * and in general should be less than the size of the block cipher as it reduces * the chance of an exhaustive attack (see Handbook of Applied Cryptography). * </p> * @param cipher the cipher to be used as the basis of the MAC generation. * @param macSizeInBits the size of the MAC in bits, must be a multiple of 8. * @param padding the padding to be used to complete the last block. */ public CbcBlockCipherMac( IBlockCipher cipher, int macSizeInBits, IBlockCipherPadding padding) { if ((macSizeInBits % 8) != 0) throw new ArgumentException("MAC size must be multiple of 8"); this.cipher = new CbcBlockCipher(cipher); this.padding = padding; this.macSize = macSizeInBits / 8; buf = new byte[cipher.GetBlockSize()]; bufOff = 0; } public string AlgorithmName { get { return cipher.AlgorithmName; } } public void Init( ICipherParameters parameters) { Reset(); cipher.Init(true, parameters); } public int GetMacSize() { return macSize; } public void Update( byte input) { if (bufOff == buf.Length) { cipher.ProcessBlock(buf, 0, buf, 0); bufOff = 0; } buf[bufOff++] = input; } public void BlockUpdate( byte[] input, int inOff, int len) { if (len < 0) throw new ArgumentException("Can't have a negative input length!"); int blockSize = cipher.GetBlockSize(); int gapLen = blockSize - bufOff; if (len > gapLen) { Array.Copy(input, inOff, buf, bufOff, gapLen); cipher.ProcessBlock(buf, 0, buf, 0); bufOff = 0; len -= gapLen; inOff += gapLen; while (len > blockSize) { cipher.ProcessBlock(input, inOff, buf, 0); len -= blockSize; inOff += blockSize; } } Array.Copy(input, inOff, buf, bufOff, len); bufOff += len; } public int DoFinal( byte[] output, int outOff) { int blockSize = cipher.GetBlockSize(); if (padding == null) { // pad with zeroes while (bufOff < blockSize) { buf[bufOff++] = 0; } } else { if (bufOff == blockSize) { cipher.ProcessBlock(buf, 0, buf, 0); bufOff = 0; } padding.AddPadding(buf, bufOff); } cipher.ProcessBlock(buf, 0, buf, 0); Array.Copy(buf, 0, output, outOff, macSize); Reset(); return macSize; } /** * Reset the mac generator. */ public void Reset() { // Clear the buffer. Array.Clear(buf, 0, buf.Length); bufOff = 0; // Reset the underlying cipher. cipher.Reset(); } } }
{ "pile_set_name": "Github" }
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:generate go run maketables.go // Package charmap provides simple character encodings such as IBM Code Page 437 // and Windows 1252. package charmap // import "golang.org/x/text/encoding/charmap" import ( "unicode/utf8" "golang.org/x/text/encoding" "golang.org/x/text/encoding/internal" "golang.org/x/text/encoding/internal/identifier" "golang.org/x/text/transform" ) // These encodings vary only in the way clients should interpret them. Their // coded character set is identical and a single implementation can be shared. var ( // ISO8859_6E is the ISO 8859-6E encoding. ISO8859_6E encoding.Encoding = &iso8859_6E // ISO8859_6I is the ISO 8859-6I encoding. ISO8859_6I encoding.Encoding = &iso8859_6I // ISO8859_8E is the ISO 8859-8E encoding. ISO8859_8E encoding.Encoding = &iso8859_8E // ISO8859_8I is the ISO 8859-8I encoding. ISO8859_8I encoding.Encoding = &iso8859_8I iso8859_6E = internal.Encoding{ Encoding: ISO8859_6, Name: "ISO-8859-6E", MIB: identifier.ISO88596E, } iso8859_6I = internal.Encoding{ Encoding: ISO8859_6, Name: "ISO-8859-6I", MIB: identifier.ISO88596I, } iso8859_8E = internal.Encoding{ Encoding: ISO8859_8, Name: "ISO-8859-8E", MIB: identifier.ISO88598E, } iso8859_8I = internal.Encoding{ Encoding: ISO8859_8, Name: "ISO-8859-8I", MIB: identifier.ISO88598I, } ) // All is a list of all defined encodings in this package. var All []encoding.Encoding = listAll // TODO: implement these encodings, in order of importance. // ASCII, ISO8859_1: Rather common. Close to Windows 1252. // ISO8859_9: Close to Windows 1254. // utf8Enc holds a rune's UTF-8 encoding in data[:len]. type utf8Enc struct { len uint8 data [3]byte } // Charmap is an 8-bit character set encoding. type Charmap struct { // name is the encoding's name. name string // mib is the encoding type of this encoder. mib identifier.MIB // asciiSuperset states whether the encoding is a superset of ASCII. asciiSuperset bool // low is the lower bound of the encoded byte for a non-ASCII rune. If // Charmap.asciiSuperset is true then this will be 0x80, otherwise 0x00. low uint8 // replacement is the encoded replacement character. replacement byte // decode is the map from encoded byte to UTF-8. decode [256]utf8Enc // encoding is the map from runes to encoded bytes. Each entry is a // uint32: the high 8 bits are the encoded byte and the low 24 bits are // the rune. The table entries are sorted by ascending rune. encode [256]uint32 } // NewDecoder implements the encoding.Encoding interface. func (m *Charmap) NewDecoder() *encoding.Decoder { return &encoding.Decoder{Transformer: charmapDecoder{charmap: m}} } // NewEncoder implements the encoding.Encoding interface. func (m *Charmap) NewEncoder() *encoding.Encoder { return &encoding.Encoder{Transformer: charmapEncoder{charmap: m}} } // String returns the Charmap's name. func (m *Charmap) String() string { return m.name } // ID implements an internal interface. func (m *Charmap) ID() (mib identifier.MIB, other string) { return m.mib, "" } // charmapDecoder implements transform.Transformer by decoding to UTF-8. type charmapDecoder struct { transform.NopResetter charmap *Charmap } func (m charmapDecoder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { for i, c := range src { if m.charmap.asciiSuperset && c < utf8.RuneSelf { if nDst >= len(dst) { err = transform.ErrShortDst break } dst[nDst] = c nDst++ nSrc = i + 1 continue } decode := &m.charmap.decode[c] n := int(decode.len) if nDst+n > len(dst) { err = transform.ErrShortDst break } // It's 15% faster to avoid calling copy for these tiny slices. for j := 0; j < n; j++ { dst[nDst] = decode.data[j] nDst++ } nSrc = i + 1 } return nDst, nSrc, err } // DecodeByte returns the Charmap's rune decoding of the byte b. func (m *Charmap) DecodeByte(b byte) rune { switch x := &m.decode[b]; x.len { case 1: return rune(x.data[0]) case 2: return rune(x.data[0]&0x1f)<<6 | rune(x.data[1]&0x3f) default: return rune(x.data[0]&0x0f)<<12 | rune(x.data[1]&0x3f)<<6 | rune(x.data[2]&0x3f) } } // charmapEncoder implements transform.Transformer by encoding from UTF-8. type charmapEncoder struct { transform.NopResetter charmap *Charmap } func (m charmapEncoder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { r, size := rune(0), 0 loop: for nSrc < len(src) { if nDst >= len(dst) { err = transform.ErrShortDst break } r = rune(src[nSrc]) // Decode a 1-byte rune. if r < utf8.RuneSelf { if m.charmap.asciiSuperset { nSrc++ dst[nDst] = uint8(r) nDst++ continue } size = 1 } else { // Decode a multi-byte rune. r, size = utf8.DecodeRune(src[nSrc:]) if size == 1 { // All valid runes of size 1 (those below utf8.RuneSelf) were // handled above. We have invalid UTF-8 or we haven't seen the // full character yet. if !atEOF && !utf8.FullRune(src[nSrc:]) { err = transform.ErrShortSrc } else { err = internal.RepertoireError(m.charmap.replacement) } break } } // Binary search in [low, high) for that rune in the m.charmap.encode table. for low, high := int(m.charmap.low), 0x100; ; { if low >= high { err = internal.RepertoireError(m.charmap.replacement) break loop } mid := (low + high) / 2 got := m.charmap.encode[mid] gotRune := rune(got & (1<<24 - 1)) if gotRune < r { low = mid + 1 } else if gotRune > r { high = mid } else { dst[nDst] = byte(got >> 24) nDst++ break } } nSrc += size } return nDst, nSrc, err } // EncodeRune returns the Charmap's byte encoding of the rune r. ok is whether // r is in the Charmap's repertoire. If not, b is set to the Charmap's // replacement byte. This is often the ASCII substitute character '\x1a'. func (m *Charmap) EncodeRune(r rune) (b byte, ok bool) { if r < utf8.RuneSelf && m.asciiSuperset { return byte(r), true } for low, high := int(m.low), 0x100; ; { if low >= high { return m.replacement, false } mid := (low + high) / 2 got := m.encode[mid] gotRune := rune(got & (1<<24 - 1)) if gotRune < r { low = mid + 1 } else if gotRune > r { high = mid } else { return byte(got >> 24), true } } }
{ "pile_set_name": "Github" }
dependencies: \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/ext/filters/client_channel/http_proxy.cc \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/Target\ Support\ Files/gRPC-Core/gRPC-Core-prefix.pch \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/support/port_platform.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/impl/codegen/port_platform.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/ext/filters/client_channel/http_proxy.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/support/alloc.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/support/log.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/support/string_util.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/ext/filters/client_channel/http_connect_handshaker.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/ext/filters/client_channel/proxy_mapper_registry.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/ext/filters/client_channel/proxy_mapper.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/impl/codegen/grpc_types.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/impl/codegen/compression_types.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/impl/codegen/gpr_types.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/impl/codegen/slice.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/impl/codegen/gpr_slice.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/impl/codegen/status.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/iomgr/resolve_address.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/iomgr/port.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/iomgr/pollset_set.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/iomgr/pollset.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/support/sync.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/impl/codegen/sync.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/impl/codegen/sync_generic.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/impl/codegen/atm.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/impl/codegen/atm_gcc_atomic.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/impl/codegen/sync_posix.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/support/time.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/iomgr/exec_ctx.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/support/atm.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/support/cpu.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/gpr/tls.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/gpr/tls_pthread.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/gprpp/fork.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/iomgr/closure.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/gpr/mpscq.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/iomgr/error.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/slice.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/status.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/debug/trace.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/profiling/timers.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/ext/filters/client_channel/uri_parser.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/channel/channel_args.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/compression.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/grpc.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/byte_buffer.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/impl/codegen/byte_buffer.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/slice_buffer.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/impl/codegen/connectivity_state.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/include/grpc/impl/codegen/propagation_bits.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/iomgr/socket_mutator.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/gpr/env.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/gpr/host_port.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/gpr/string.h \ /Users/nikhilsridhar/Desktop/Geofirestore-ios/Example/Pods/gRPC-Core/src/core/lib/slice/b64.h
{ "pile_set_name": "Github" }
/* ------------------------------------------------------------------------------ * * # Google Visualization - diff scatter * * Google Visualization diff scatter chart demonstration * * Version: 1.0 * Latest update: August 1, 2015 * * ---------------------------------------------------------------------------- */ // Diff scatter chart // ------------------------------ // Initialize chart google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(drawScatterDiff); // Chart settings function drawScatterDiff() { // Old data var oldData = google.visualization.arrayToDataTable([ ['', 'Medicine 1', 'Medicine 2'], [23, null, 12], [9, null, 39], [15, null, 28], [37, null, 30], [21, null, 14], [12, null, 18], [29, null, 34], [ 8, null, 12], [38, null, 28], [35, null, 12], [26, null, 10], [10, null, 29], [11, null, 10], [27, null, 38], [39, null, 17], [34, null, 20], [38, null, 5], [33, null, 27], [23, null, 39], [12, null, 10], [ 8, 15, null], [39, 15, null], [27, 31, null], [30, 24, null], [31, 39, null], [35, 6, null], [ 5, 5, null], [19, 39, null], [22, 8, null], [19, 23, null], [27, 20, null], [11, 6, null], [34, 33, null], [38, 8, null], [39, 29, null], [13, 23, null], [13, 36, null], [39, 6, null], [14, 37, null], [13, 39, null] ]); // New data var newData = google.visualization.arrayToDataTable([ ['', 'Medicine 1', 'Medicine 2'], [22, null, 12], [7, null, 40], [14, null, 31], [37, null, 30], [18, null, 17], [9, null, 20], [26, null, 36], [5, null, 13], [36, null, 30], [35, null, 15], [24, null, 12], [7, null, 31], [10, null, 12], [24, null, 40], [37, null, 18], [32, null, 21], [35, null, 7], [31, null, 30], [21, null, 42], [12, null, 10], [10, 13, null], [40, 12, null], [28, 29, null], [32, 22, null], [31, 37, null], [38, 5, null], [6, 4, null], [21, 36, null], [22, 8, null], [21, 22, null], [28, 17, null], [12, 5, null], [37, 30, null], [41, 7, null], [41, 27, null], [15, 20, null], [14, 36, null], [42, 3, null], [14, 37, null], [15, 36, null] ]); // Options var options = { fontName: 'Roboto', height: 450, fontSize: 12, chartArea: { left: '5%', width: '90%', height: 400 }, tooltip: { textStyle: { fontName: 'Roboto', fontSize: 13 } }, hAxis: { minValue: 0 }, vAxis: { gridlines: { color: '#e5e5e5', count: 5 }, minValue: 0 }, legend: { position: 'top', alignment: 'center', textStyle: { fontSize: 12 } }, pointSize: 10, diff: { oldData: { opacity: 0.5 } }, }; // Attach chart to the DOM element var chartOldOpacity = new google.visualization.ScatterChart($('#google-scatter-diff')[0]); // Set data var diffData = chartOldOpacity.computeDiff(oldData, newData); // Draw our chart, passing in some options chartOldOpacity.draw(diffData, options); } // Resize chart // ------------------------------ $(function () { // Resize chart on sidebar width change and window resize $(window).on('resize', resize); $(".sidebar-control").on('click', resize); // Resize function function resize() { drawScatterDiff(); } });
{ "pile_set_name": "Github" }
[discrete] [[breaking_80_transport_changes]] === Transport changes //tag::notable-breaking-changes[] .Several `tranport` settings have been replaced. [%collapsible] ==== *Details* + The following settings have been deprecated in 7.x and removed in 8.0. Each setting has a replacement setting that was introduced in 6.7. - `transport.tcp.port` replaced by `transport.port` - `transport.tcp.compress` replaced by `transport.compress` - `transport.tcp.connect_timeout` replaced by `transport.connect_timeout` - `transport.tcp_no_delay` replaced by `transport.tcp.no_delay` - `transport.profiles.profile_name.tcp_no_delay` replaced by `transport.profiles.profile_name.tcp.no_delay` - `transport.profiles.profile_name.tcp_keep_alive` replaced by `transport.profiles.profile_name.tcp.keep_alive` - `transport.profiles.profile_name.reuse_address` replaced by `transport.profiles.profile_name.tcp.reuse_address` - `transport.profiles.profile_name.send_buffer_size` replaced by `transport.profiles.profile_name.tcp.send_buffer_size` - `transport.profiles.profile_name.receive_buffer_size` replaced by `transport.profiles.profile_name.tcp.receive_buffer_size` *Impact* + Use the replacement settings. Discontinue use of the removed settings. Specifying the removed settings in `elasticsearch.yml` will result in an error on startup. ==== // end::notable-breaking-changes[]
{ "pile_set_name": "Github" }
<ul class="UIAPIPlugin-toc"> <li><a href="#overview">Overview</a></li> <li><a href="#options">Options</a></li> <li><a href="#events">Events</a></li> <li><a href="#methods">Methods</a></li> <li><a href="#theming">Theming</a></li> </ul> <div class="UIAPIPlugin"> <h1>jQuery UI Button</h1> <div id="overview"> <h2 class="top-header">Overview</h2> <div id="overview-main"> <p>Button enhances standard form elements like button, input of type submit or reset or anchors to themable buttons with appropiate mouseover and active styles.</p> <p>In addition to basic push buttons, radio buttons and checkboxes (inputs of type radio and checkbox) can be converted to buttons: Their associated label is styled to appear as the button, while the underlying input is updated on click.</p> <p>In order to group radio buttons, Button also provides an additional widget-method, called Buttonset. Its used by selecting a container element (which contains the radio buttons) and calling buttonset(). Buttonset will also provide visual grouping, and therefore should be used whenever you have a group of buttons. It works by selecting all descendents and applying button() to them. You can enable and disable a buttonset, which will enable and disable all contained buttons. Destroying a buttonset also calls the button's destroy method.</p> <p>When using an input of type button, submit or reset, support is limited to plain text labels with no icons.</p> </div> <div id="overview-dependencies"> <h3>Dependencies</h3> <ul> <li>UI Core</li> <li>UI Widget</li> </ul> </div> <div id="overview-example"> <h3>Example</h3> <div id="overview-example" class="example"> <ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul> <p><div id="demo" class="tabs-container" rel="300"> A simple jQuery UI Button.<br /> </p> <pre>$(&quot;button&quot;).button(); </pre> <p></div><div id="source" class="tabs-container"> </p> <pre>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;link href=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt; &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js&quot;&gt;&lt;/script&gt; &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js&quot;&gt;&lt;/script&gt; &lt;script&gt; $(document).ready(function() { $(&quot;button&quot;).button(); }); &lt;/script&gt; &lt;/head&gt; &lt;body style="font-size:62.5%;"&gt; &lt;button&gt;Button label&lt;/button&gt; &lt;/body&gt; &lt;/html&gt; </pre> <p></div> </p><p></div> <div id="overview-example" class="example"> <ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul> <div id="demo" class="tabs-container" rel="300"> A simple jQuery UI Button.<br /> </p> <pre>$(&quot;#radio&quot;).buttonset(); </pre> <p></div><div id="source" class="tabs-container"> </p> <pre>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;link href=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt; &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js&quot;&gt;&lt;/script&gt; &lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js&quot;&gt;&lt;/script&gt; &lt;script&gt; $(document).ready(function() { $(&quot;#radio&quot;).buttonset(); }); &lt;/script&gt; &lt;/head&gt; &lt;body style="font-size:62.5%;"&gt; &lt;div id=&quot;radio&quot;&gt; &lt;input type=&quot;radio&quot; id=&quot;radio1&quot; name=&quot;radio&quot; /&gt;&lt;label for=&quot;radio1&quot;&gt;Choice 1&lt;/label&gt; &lt;input type=&quot;radio&quot; id=&quot;radio2&quot; name=&quot;radio&quot; checked=&quot;checked&quot; /&gt;&lt;label for=&quot;radio2&quot;&gt;Choice 2&lt;/label&gt; &lt;input type=&quot;radio&quot; id=&quot;radio3&quot; name=&quot;radio&quot; /&gt;&lt;label for=&quot;radio3&quot;&gt;Choice 3&lt;/label&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </pre> <p></div> </p><p></div> </div> </div> <div id="options"> <h2 class="top-header">Options</h2> <ul class="options-list"> <li class="option" id="option-disabled"> <div class="option-header"> <h3 class="option-name"><a href="#option-disabled">disabled</a></h3> <dl> <dt class="option-type-label">Type:</dt> <dd class="option-type">Boolean</dd> <dt class="option-default-label">Default:</dt> <dd class="option-default">false</dd> </dl> </div> <div class="option-description"> <p>Disables (true) or enables (false) the button. Can be set when initialising (first creating) the button.</p> </div> <div class="option-examples"> <h4>Code examples</h4> <dl class="option-examples-list"> <dt> Initialize a button with the <code>disabled</code> option specified. </dt> <dd> <pre><code>$( ".selector" ).button({ disabled: true });</code></pre> </dd> <dt> Get or set the <code>disabled</code> option, after init. </dt> <dd> <pre><code>//getter var disabled = $( ".selector" ).button( "option", "disabled" ); //setter $( ".selector" ).button( "option", "disabled", true );</code></pre> </dd> </dl> </div> </li> <li class="option" id="option-text"> <div class="option-header"> <h3 class="option-name"><a href="#option-text">text</a></h3> <dl> <dt class="option-type-label">Type:</dt> <dd class="option-type">Boolean</dd> <dt class="option-default-label">Default:</dt> <dd class="option-default">true</dd> </dl> </div> <div class="option-description"> <p>Whether to show any text - when set to false (display no text), icons (see icons option) must be enabled, otherwise it'll be ignored.</p> </div> <div class="option-examples"> <h4>Code examples</h4> <dl class="option-examples-list"> <dt> Initialize a button with the <code>text</code> option specified. </dt> <dd> <pre><code>$( ".selector" ).button({ text: false });</code></pre> </dd> <dt> Get or set the <code>text</code> option, after init. </dt> <dd> <pre><code>//getter var text = $( ".selector" ).button( "option", "text" ); //setter $( ".selector" ).button( "option", "text", false );</code></pre> </dd> </dl> </div> </li> <li class="option" id="option-icons"> <div class="option-header"> <h3 class="option-name"><a href="#option-icons">icons</a></h3> <dl> <dt class="option-type-label">Type:</dt> <dd class="option-type">Options</dd> <dt class="option-default-label">Default:</dt> <dd class="option-default">{ primary: null, secondary: null }</dd> </dl> </div> <div class="option-description"> <p>Icons to display, with or without text (see text option). The primary icon is displayed by default on the left of the label text, the secondary by default is on the right. Value for the primary and secondary properties must be a classname (String), eg. "ui-icon-gear". For using only one icon: icons: {primary:'ui-icon-locked'}. For using two icons: icons: {primary:'ui-icon-gear',secondary:'ui-icon-triangle-1-s'}</p> </div> <div class="option-examples"> <h4>Code examples</h4> <dl class="option-examples-list"> <dt> Initialize a button with the <code>icons</code> option specified. </dt> <dd> <pre><code>$( ".selector" ).button({ icons: {primary:'ui-icon-gear',secondary:'ui-icon-triangle-1-s'} });</code></pre> </dd> <dt> Get or set the <code>icons</code> option, after init. </dt> <dd> <pre><code>//getter var icons = $( ".selector" ).button( "option", "icons" ); //setter $( ".selector" ).button( "option", "icons", {primary:'ui-icon-gear',secondary:'ui-icon-triangle-1-s'} );</code></pre> </dd> </dl> </div> </li> <li class="option" id="option-label"> <div class="option-header"> <h3 class="option-name"><a href="#option-label">label</a></h3> <dl> <dt class="option-type-label">Type:</dt> <dd class="option-type">String</dd> <dt class="option-default-label">Default:</dt> <dd class="option-default">HTML content of the button, or value attribute</dd> </dl> </div> <div class="option-description"> <p>Text to show on the button. When not specified (null), the element's html content is used, or its value attribute when it's an input element of type submit or reset; or the html content of the associated label element if its an input of type radio or checkbox</p> </div> <div class="option-examples"> <h4>Code examples</h4> <dl class="option-examples-list"> <dt> Initialize a button with the <code>label</code> option specified. </dt> <dd> <pre><code>$( ".selector" ).button({ label: "custom label" });</code></pre> </dd> <dt> Get or set the <code>label</code> option, after init. </dt> <dd> <pre><code>//getter var label = $( ".selector" ).button( "option", "label" ); //setter $( ".selector" ).button( "option", "label", "custom label" );</code></pre> </dd> </dl> </div> </li> </ul> </div> <div id="events"> <h2 class="top-header">Events</h2> <ul class="events-list"> <li class="event" id="event-create"> <div class="event-header"> <h3 class="event-name"><a href="#event-create">create</a></h3> <dl> <dt class="event-type-label">Type:</dt> <dd class="event-type">buttoncreate</dd> </dl> </div> <div class="event-description"> <p>This event is triggered when button is created.</p> </div> <div class="event-examples"> <h4>Code examples</h4> <dl class="event-examples-list"> <dt> Supply a callback function to handle the <code>create</code> event as an init option. </dt> <dd> <pre><code>$( &quot;.selector&quot; ).button({ create: function(event, ui) { ... } });</code></pre> </dd> <dt> Bind to the <code>create</code> event by type: <code>buttoncreate</code>. </dt> <dd> <pre><code>$( &quot;.selector&quot; ).bind( &quot;buttoncreate&quot;, function(event, ui) { ... });</code></pre> </dd> </dl> </div> </li> </p> <p>There are no events for this plugin.</p> </ul> </div> <div id="methods"> <h2 class="top-header">Methods</h2> <ul class="methods-list"> <li class="method" id="method-destroy"> <div class="method-header"> <h3 class="method-name"><a href="#method-destroy">destroy</a></h3> <dl> <dt class="method-signature-label">Signature:</dt> <dd class="method-signature">.button( "destroy" )</dd> </dl> </div> <div class="method-description"> <p>Remove the button functionality completely. This will return the element back to its pre-init state.</p> </div> </li> <p> <li class="method" id="method-disable"> <div class="method-header"> <h3 class="method-name"><a href="#method-disable">disable</a></h3> <dl> <dt class="method-signature-label">Signature:</dt> <dd class="method-signature">.button( "disable" )</dd> </dl> </div> <div class="method-description"> <p>Disable the button.</p> </div> </li> <li class="method" id="method-enable"> <div class="method-header"> <h3 class="method-name"><a href="#method-enable">enable</a></h3> <dl> <dt class="method-signature-label">Signature:</dt> <dd class="method-signature">.button( "enable" )</dd> </dl> </div> <div class="method-description"> <p>Enable the button.</p> </div> </li> <li class="method" id="method-option"> <div class="method-header"> <h3 class="method-name"><a href="#method-option">option</a></h3> <dl> <dt class="method-signature-label">Signature:</dt> <dd class="method-signature">.button( "option" , optionName , <span class="optional">[</span>value<span class="optional">] </span> )</dd> </dl> </div> <div class="method-description"> <p>Get or set any button option. If no value is specified, will act as a getter.</p> </div> </li> <li class="method" id="method-option"> <div class="method-header"> <h3 class="method-name"><a href="#method-option">option</a></h3> <dl> <dt class="method-signature-label">Signature:</dt> <dd class="method-signature">.button( "option" , options )</dd> </dl> </div> <div class="method-description"> <p>Set multiple button options at once by providing an options object.</p> </div> </li> <li class="method" id="method-widget"> <div class="method-header"> <h3 class="method-name"><a href="#method-widget">widget</a></h3> <dl> <dt class="method-signature-label">Signature:</dt> <dd class="method-signature">.button( "widget" )</dd> </dl> </div> <div class="method-description"> <p>Returns the .ui-button element.</p> </div> </li> <li class="method" id="method-refresh"> <div class="method-header"> <h3 class="method-name"><a href="#method-refresh">refresh</a></h3> <dl> <dt class="method-signature-label">Signature:</dt> <dd class="method-signature">.button( "refresh" )</dd> </dl> </div> <div class="method-description"> <p>Refreshes the visual state of the button. Useful for updating button state after the native element's checked or disabled state is changed programatically.</p> </div> </li> </ul> </div> <div id="theming"> <h2 class="top-header">Theming</h2> <p>The jQuery UI Button plugin uses the jQuery UI CSS Framework to style its look and feel, including colors and background textures. We recommend using the ThemeRoller tool to create and download custom themes that are easy to build and maintain. </p> <p>If a deeper level of customization is needed, there are widget-specific classes referenced within the jquery.ui.button.css stylesheet that can be modified. These classes are highlighed in bold below. </p> <h3>Sample markup with jQuery UI CSS Framework classes</h3> &lt;button class=&quot;<strong>ui-button ui-button-text-only</strong> ui-widget ui-state-default ui-corner-all&quot;&gt;<br /> &nbsp;&nbsp;&nbsp;&lt;span class=&quot;<strong>ui-button-text</strong>&quot;&gt;Button Label&lt;/span&gt;<br />&lt;/button&gt; <p class="theme-note"> <strong> Note: This is a sample of markup generated by the button plugin, not markup you should use to create a button. The only markup needed for that is &lt;button&gt;Button Label&lt;/button&gt;. </strong> </p> </div> </div> </p><!-- Pre-expand include size: 24542 bytes Post-expand include size: 31799 bytes Template argument size: 14018 bytes Maximum: 2097152 bytes --> <!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3767-1!1!0!!en!2 and timestamp 20110815133305 -->
{ "pile_set_name": "Github" }
--- title: 3804 - RoutingServiceCreatingClientForEndpoint ms.date: 03/30/2017 ms.assetid: f53304b0-1201-4fff-94ed-d054774871c7 ms.openlocfilehash: af78de01686d15f7e12681972e9fb81088145886 ms.sourcegitcommit: 9b552addadfb57fab0b9e7852ed4f1f1b8a42f8e ms.translationtype: MT ms.contentlocale: es-ES ms.lasthandoff: 04/23/2019 ms.locfileid: "61789355" --- # <a name="3804---routingservicecreatingclientforendpoint"></a>3804 - RoutingServiceCreatingClientForEndpoint ## <a name="properties"></a>Propiedades ||| |-|-| |ID|3804| |Palabras clave|RoutingServices| |Nivel|Información| |Canal|Microsoft-Windows-Application Server-Applications/Debug| ## <a name="description"></a>Descripción Este evento se genera cuando el servicio de enrutamiento está creando un cliente para un extremo. ## <a name="message"></a>Mensaje El servicio de enrutamiento está creando un cliente para el extremo: '%1'. ## <a name="details"></a>Detalles
{ "pile_set_name": "Github" }
# Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. # All rights reserved. # # For the licensing terms see $ROOTSYS/LICENSE. # For the list of contributors see $ROOTSYS/README/CREDITS. add_subdirectory (geom) # special CMakeLists.txt add_subdirectory (geombuilder) # special CMakeLists.txt add_subdirectory (geompainter) # special CMakeLists.txt if(gdml) add_subdirectory(gdml) if(NOT gnuinstall) install(DIRECTORY gdml/ DESTINATION geom/gdml FILES_MATCHING PATTERN "*.py" PATTERN "inc" EXCLUDE PATTERN "src" EXCLUDE) endif() endif() if(vecgeom) add_subdirectory(vecgeom) endif()
{ "pile_set_name": "Github" }
#!/bin/bash # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. #TODO(dnfield): Get rid of this script and instead use proper build rules set -e # Needed because if it is set, cd may print the path it changed to. unset CDPATH # On Mac OS, readlink -f doesn't work, so follow_links traverses the path one # link at a time, and then cds into the link destination and find out where it # ends up. # # The function is enclosed in a subshell to avoid changing the working directory # of the caller. function follow_links() ( cd -P "$(dirname -- "$1")" file="$PWD/$(basename -- "$1")" while [[ -h "$file" ]]; do cd -P "$(dirname -- "$file")" file="$(readlink -- "$file")" cd -P "$(dirname -- "$file")" file="$PWD/$(basename -- "$file")" done echo "$file" ) SCRIPT_DIR=$(follow_links "$(dirname -- "${BASH_SOURCE[0]}")") HOST_TOOLS="$1" DEVICE_TOOLS="$2" if [[ ! -d "$HOST_TOOLS" ]]; then echo "Directory $HOST_TOOLS not found." echo "First argument must specify the host out directory containing dart (e.g. host_debug_unopt)." exit 1 fi if [[ ! -d "$DEVICE_TOOLS" ]]; then echo "Directory $DEVICE_TOOLS not found." ehco "Second argument must specify the device out directory containing gen_snapshot (e.g. ios_debug_unopt)." exit 1 fi PUB="$HOST_TOOLS/dart-sdk/bin/pub" PUB_VERSION=$("$PUB" --version) echo "Using Pub $PUB_VERSION from $PUB" "$PUB" get echo "Using dart from $HOST_TOOLS, gen_snapshot from $DEVICE_TOOLS." OUTDIR="$SCRIPT_DIR/build/ios" echo "Creating $OUTDIR..." mkdir -p "$OUTDIR" mkdir -p "$OUTDIR/App.framework/flutter_assets" echo "Compiling to kernel..." "$HOST_TOOLS/dart" \ "$HOST_TOOLS/gen/frontend_server.dart.snapshot" \ --sdk-root "$HOST_TOOLS/flutter_patched_sdk" \ --target=flutter \ --no-link-platform \ --output-dill "$OUTDIR/App.framework/flutter_assets/kernel_blob.bin" \ "${BASH_SOURCE%/*}/lib/main.dart" echo "Compiling JIT Snapshot..." "$DEVICE_TOOLS/gen_snapshot" --deterministic \ --enable-asserts \ --causal_async_stacks \ --isolate_snapshot_instructions="$OUTDIR/isolate_snapshot_instr" \ --snapshot_kind=app-jit \ --load_vm_snapshot_data="$DEVICE_TOOLS/../gen/flutter/lib/snapshot/vm_isolate_snapshot.bin" \ --load_isolate_snapshot_data="$DEVICE_TOOLS/../gen/flutter/lib/snapshot/isolate_snapshot.bin" \ --isolate_snapshot_data="$OUTDIR/App.framework/flutter_assets/isolate_snapshot_data" \ --isolate_snapshot_instructions="$OUTDIR/App.framework/flutter_assets/isolate_snapshot_instr" \ "$OUTDIR/App.framework/flutter_assets/kernel_blob.bin" cp "$DEVICE_TOOLS/../gen/flutter/lib/snapshot/vm_isolate_snapshot.bin" "$OUTDIR/App.framework/flutter_assets/vm_snapshot_data" SYSROOT=$(xcrun --sdk iphonesimulator --show-sdk-path) echo "Using $SYSROOT as sysroot." echo "Creating stub App using $SYSROOT..." echo "static const int Moo = 88;" | xcrun clang -x c \ -arch x86_64 \ -fembed-bitcode-marker \ -isysroot "$SYSROOT" \ -miphoneos-version-min=8.0 \ -dynamiclib \ -Xlinker -rpath -Xlinker '@executable_path/Frameworks' \ -Xlinker -rpath -Xlinker '@loader_path/Frameworks' \ -install_name '@rpath/App.framework/App' \ -o "$OUTDIR/App.framework/App" - strip "$OUTDIR/App.framework/App" cp "$SCRIPT_DIR/ios/AppFrameworkInfo.plist" "$OUTDIR/App.framework/Info.plist" echo "Created $OUTDIR/App.framework/App." rm -rf "$SCRIPT_DIR/ios/Scenarios/App.framework" rm -rf "$SCRIPT_DIR/ios/Scenarios/Flutter.framework" cp -R "$OUTDIR/App.framework" "$SCRIPT_DIR/ios/Scenarios" cp -R "$DEVICE_TOOLS/../Flutter.framework" "$SCRIPT_DIR/ios/Scenarios"
{ "pile_set_name": "Github" }
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI Tabs - Collapse content</title> <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"> <script src="../../jquery-1.9.1.js"></script> <script src="../../ui/jquery.ui.core.js"></script> <script src="../../ui/jquery.ui.widget.js"></script> <script src="../../ui/jquery.ui.tabs.js"></script> <link rel="stylesheet" href="../demos.css"> <script> $(function() { $( "#tabs" ).tabs({ collapsible: true }); }); </script> </head> <body> <div id="tabs"> <ul> <li><a href="#tabs-1">Nunc tincidunt</a></li> <li><a href="#tabs-2">Proin dolor</a></li> <li><a href="#tabs-3">Aenean lacinia</a></li> </ul> <div id="tabs-1"> <p><strong>Click this tab again to close the content pane.</strong></p> <p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p> </div> <div id="tabs-2"> <p><strong>Click this tab again to close the content pane.</strong></p> <p>Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.</p> </div> <div id="tabs-3"> <p><strong>Click this tab again to close the content pane.</strong></p> <p>Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.</p> </div> </div> <div class="demo-description"> <p>Click the selected tab to toggle its content closed/open. To enable this functionality, set the <code>collapsible</code> option to true.</p> <pre><code>collapsible: true </code></pre> </div> </body> </html>
{ "pile_set_name": "Github" }
29 Uracil ... Neopentane Dimer N 0.62608128 -0.85091265 0.80591569 H 0.40918989 -1.81150056 1.03440142 C -0.43245619 -0.08733581 0.29466376 O -1.53077162 -0.58840313 0.12359257 C -0.06687462 1.29127521 0.01963739 H -0.80974352 1.95181039 -0.39283965 C 1.18354208 1.71793501 0.29053321 H 1.50185022 2.73387064 0.10983284 N 2.13412979 0.88660160 0.81908177 H 3.05533594 1.22390137 1.04342778 C 1.90278319 -0.44317844 1.12831175 O 2.74380631 -1.16392354 1.62858730 C -0.89292579 -0.04566752 5.48580552 C -2.20967198 0.69562128 5.70067843 H -2.91674338 0.07741510 6.25554077 H -2.05017242 1.61580583 6.26486344 H -2.66738175 0.95711830 4.74552477 C -0.27748917 -0.39910544 6.83708296 H 0.66567300 -0.93147875 6.70630113 H -0.08046822 0.50063630 7.42188511 H -0.94878320 -1.03684245 7.41381971 C 0.07219848 0.84781030 4.71001643 H 1.02076896 0.33521560 4.53966243 H 0.27748868 1.76594675 5.26344280 H -0.35019691 1.12629691 3.74255199 C -1.15424298 -1.32570191 4.69544063 H -1.61798138 -1.10386821 3.73281599 H -0.22166668 -1.86410083 4.51580395 H -1.82475079 -1.98751587 5.24562555
{ "pile_set_name": "Github" }
Date: Tue, 13 Feb 2001 18:25:42 -0600 From: Vikram S. Adve <[email protected]> To: Chris Lattner <[email protected]> Subject: RE: LLVM Concerns... > 1. Reference types > Right now, I've spec'd out the language to have a pointer type, which > works fine for lots of stuff... except that Java really has > references: constrained pointers that cannot be manipulated: added and > subtracted, moved, etc... Do we want to have a type like this? It > could be very nice for analysis (pointer always points to the start of > an object, etc...) and more closely matches Java semantics. The > pointer type would be kept for C++ like semantics. Through analysis, > C++ pointers could be promoted to references in the LLVM > representation. You're right, having references would be useful. Even for C++ the *static* compiler could generate references instead of pointers with fairly straightforward analysis. Let's include a reference type for now. But I'm also really concerned that LLVM is becoming big and complex and (perhaps) too high-level. After we get some initial performance results, we may have a clearer idea of what our goals should be and we should revisit this question then. > 2. Our "implicit" memory references in assembly language: > After thinking about it, this model has two problems: > A. If you do pointer analysis and realize that two stores are > independent and can share the same memory source object, not sure what you meant by "share the same memory source object" > there is > no way to represent this in either the bytecode or assembly. > B. When parsing assembly/bytecode, we effectively have to do a full > SSA generation/PHI node insertion pass to build the dependencies > when we don't want the "pinned" representation. This is not > cool. I understand the concern. But again, let's focus on the performance first and then look at the language design issues. E.g., it would be good to know how big the bytecode files are before expanding them further. I am pretty keen to explore the implications of LLVM for mobile devices. Both bytecode size and power consumption are important to consider there. --Vikram
{ "pile_set_name": "Github" }
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.camel.component.avro; import org.apache.camel.FailedToCreateRouteException; import org.apache.camel.builder.RouteBuilder; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertThrows; public class AvroSettingsTest extends AvroTestSupport { @Test public void testConsumerForUnknownMessage() { assertThrows(FailedToCreateRouteException.class, () -> { context().addRoutes(new RouteBuilder() { @Override public void configure() { from("avro:http:localhost:" + avroPort + "/notValid?protocolClassName=org.apache.camel.avro.generated.KeyValueProtocol").to("log:test"); } }); }); } @Test public void testProducerForUnknownMessage() { assertThrows(FailedToCreateRouteException.class, () -> { context().addRoutes(new RouteBuilder() { @Override public void configure() { from("direct:test").to("avro:http:localhost:" + avroPort + "/notValid?protocolClassName=org.apache.camel.avro.generated.KeyValueProtocol"); } }); }); } @Test public void testProducerForNonSingleParamMessage() { assertThrows(FailedToCreateRouteException.class, () -> { context().addRoutes(new RouteBuilder() { @Override public void configure() { from("direct:test") .to("avro:http:localhost:" + avroPort + "/put?protocolClassName=org.apache.camel.avro.generated.KeyValueProtocol&singleParameter=true"); } }); }); } }
{ "pile_set_name": "Github" }
<?xml version="1.0"?> <!-- $Id: abap.xml,v 1.1 2007/06/03 02:35:28 ssttoo Exp $ --> <highlight lang="abap" case = "no"> <authors> <author name="Stoyan Stefanov" email ="[email protected]"/> </authors> <default innerClass="code" /> <region name="block" delimClass="brackets" innerClass="code" start="\{" end="\}"> <contains all="yes"/> </region> <region name="brackets" delimClass="brackets" innerClass="code" start="\(" end="\)"> <contains all="yes"/> </region> <region name="sqbrackets" delimClass="brackets" innerClass="code" start="\[" end="\]"> <contains all="yes"/> </region> <region name="comment" start="^\*|&quot;" end="/$/m" innerClass="comment"> <contains all="no"/> </region> <region name="strsingle" delimClass="quotes" innerClass="string" start="'" end="'" /> <block name="identifier" match="[a-zA-Z_]\w*" innerClass="identifier" contained="yes"/> <block name="hexinteger" match="0[xX][\da-f]+" innerClass="number" contained="yes"/> <block name="integer" match="\d\d*|\b0\b" innerClass="number" contained="yes"/> <block name="octinteger" match="0[0-7]+" innerClass="number" contained="yes"/> <block name="float" match="(\d*\.\d+)|(\d+\.\d*)" innerClass="number" contained="yes"/> <block name="identifier" match="[a-z_\-]\w*" innerClass="identifier" case="no"/> <keywords name="sy" inherits="identifier" innerClass="reserved"> <keyword match="SCREEN-NAME"/> <keyword match="SCREEN-GROUP1"/> <keyword match="SCREEN-GROUP2"/> <keyword match="SCREEN-GROUP3"/> <keyword match="SCREEN-GROUP4"/> <keyword match="SCREEN-REQUIRED"/> <keyword match="SCREEN-INPUT"/> <keyword match="SCREEN-OUTPUT"/> <keyword match="SCREEN-INTENSIFIED"/> <keyword match="SCREEN-INVISIBLE"/> <keyword match="SCREEN-LENGTH"/> <keyword match="SCREEN-ACTIVE"/> <keyword match="SY-INDEX"/> <keyword match="SY-PAGNO"/> <keyword match="SY-TABIX"/> <keyword match="SY-TFILL"/> <keyword match="SY-TLOPC"/> <keyword match="SY-TMAXL"/> <keyword match="SY-TOCCU"/> <keyword match="SY-TTABC"/> <keyword match="SY-TSTIS"/> <keyword match="SY-TTABI"/> <keyword match="SY-DBCNT"/> <keyword match="SY-FDPOS"/> <keyword match="SY-COLNO"/> <keyword match="SY-LINCT"/> <keyword match="SY-LINNO"/> <keyword match="SY-LINSZ"/> <keyword match="SY-PAGCT"/> <keyword match="SY-MACOL"/> <keyword match="SY-MAROW"/> <keyword match="SY-TLENG"/> <keyword match="SY-SFOFF"/> <keyword match="SY-WILLI"/> <keyword match="SY-LILLI"/> <keyword match="SY-SUBRC"/> <keyword match="SY-FLENG"/> <keyword match="SY-CUCOL"/> <keyword match="SY-CUROW"/> <keyword match="SY-LSIND"/> <keyword match="SY-LISTI"/> <keyword match="SY-STEPL"/> <keyword match="SY-TPAGI"/> <keyword match="SY-WINX1"/> <keyword match="SY-WINY1"/> <keyword match="SY-WINX2"/> <keyword match="SY-WINY2"/> <keyword match="SY-WINCO"/> <keyword match="SY-WINRO"/> <keyword match="SY-WINDI"/> <keyword match="SY-SROWS"/> <keyword match="SY-SCOLS"/> <keyword match="SY-LOOPC"/> <keyword match="SY-FOLEN"/> <keyword match="SY-FODEC"/> <keyword match="SY-TZONE"/> <keyword match="SY-DAYST"/> <keyword match="SY-FTYPE"/> <keyword match="SY-APPLI"/> <keyword match="SY-FDAYW"/> <keyword match="SY-CCURS"/> <keyword match="SY-CCURT"/> <keyword match="SY-DEBUG"/> <keyword match="SY-CTYPE"/> <keyword match="SY-INPUT"/> <keyword match="SY-LANGU"/> <keyword match="SY-MODNO"/> <keyword match="SY-BATCH"/> <keyword match="SY-BINPT"/> <keyword match="SY-CALLD"/> <keyword match="SY-DYNNR"/> <keyword match="SY-DYNGR"/> <keyword match="SY-NEWPA"/> <keyword match="SY-PRI40"/> <keyword match="SY-RSTRT"/> <keyword match="SY-WTITL"/> <keyword match="SY-CPAGE"/> <keyword match="SY-DBNAM"/> <keyword match="SY-MANDT"/> <keyword match="SY-PREFX"/> <keyword match="SY-FMKEY"/> <keyword match="SY-PEXPI"/> <keyword match="SY-PRINI"/> <keyword match="SY-PRIMM"/> <keyword match="SY-PRREL"/> <keyword match="SY-PLAYO"/> <keyword match="SY-PRBIG"/> <keyword match="SY-PLAYP"/> <keyword match="SY-PRNEW"/> <keyword match="SY-PRLOG"/> <keyword match="SY-PDEST"/> <keyword match="SY-PLIST"/> <keyword match="SY-PAUTH"/> <keyword match="SY-PRDSN"/> <keyword match="SY-PNWPA"/> <keyword match="SY-CALLR"/> <keyword match="SY-REPI2"/> <keyword match="SY-RTITL"/> <keyword match="SY-PRREC"/> <keyword match="SY-PRTXT"/> <keyword match="SY-PRABT"/> <keyword match="SY-LPASS"/> <keyword match="SY-NRPAG"/> <keyword match="SY-PAART"/> <keyword match="SY-PRCOP"/> <keyword match="SY-BATZS"/> <keyword match="SY-BSPLD"/> <keyword match="SY-BREP4"/> <keyword match="SY-BATZO"/> <keyword match="SY-BATZD"/> <keyword match="SY-BATZW"/> <keyword match="SY-BATZM"/> <keyword match="SY-CTABL"/> <keyword match="SY-DBSYS"/> <keyword match="SY-DCSYS"/> <keyword match="SY-MACDB"/> <keyword match="SY-SYSID"/> <keyword match="SY-OPSYS"/> <keyword match="SY-PFKEY"/> <keyword match="SY-SAPRL"/> <keyword match="SY-TCODE"/> <keyword match="SY-UCOMM"/> <keyword match="SY-CFWAE"/> <keyword match="SY-CHWAE"/> <keyword match="SY-SPONO"/> <keyword match="SY-SPONR"/> <keyword match="SY-WAERS"/> <keyword match="SY-CDATE"/> <keyword match="SY-DATUM"/> <keyword match="SY-SLSET"/> <keyword match="SY-SUBTY"/> <keyword match="SY-SUBCS"/> <keyword match="SY-GROUP"/> <keyword match="SY-FFILE"/> <keyword match="SY-UZEIT"/> <keyword match="SY-DSNAM"/> <keyword match="SY-REPID"/> <keyword match="SY-TABID"/> <keyword match="SY-TFDSN"/> <keyword match="SY-UNAME"/> <keyword match="SY-LSTAT"/> <keyword match="SY-ABCDE"/> <keyword match="SY-MARKY"/> <keyword match="SY-SFNAM"/> <keyword match="SY-TNAME"/> <keyword match="SY-MSGLI"/> <keyword match="SY-TITLE"/> <keyword match="SY-ENTRY"/> <keyword match="SY-LISEL"/> <keyword match="SY-ULINE"/> <keyword match="SY-XCODE"/> <keyword match="SY-CPROG"/> <keyword match="SY-XPROG"/> <keyword match="SY-XFORM"/> <keyword match="SY-LDBPG"/> <keyword match="SY-TVAR0"/> <keyword match="SY-TVAR1"/> <keyword match="SY-TVAR2"/> <keyword match="SY-TVAR3"/> <keyword match="SY-TVAR4"/> <keyword match="SY-TVAR5"/> <keyword match="SY-TVAR6"/> <keyword match="SY-TVAR7"/> <keyword match="SY-TVAR8"/> <keyword match="SY-TVAR9"/> <keyword match="SY-MSGID"/> <keyword match="SY-MSGTY"/> <keyword match="SY-MSGNO"/> <keyword match="SY-MSGV1"/> <keyword match="SY-MSGV2"/> <keyword match="SY-MSGV3"/> <keyword match="SY-MSGV4"/> <keyword match="SY-ONCOM"/> <keyword match="SY-VLINE"/> <keyword match="SY-WINSL"/> <keyword match="SY-STACO"/> <keyword match="SY-STARO"/> <keyword match="SY-DATAR"/> <keyword match="SY-HOST"/> <keyword match="SY-LOCDB"/> <keyword match="SY-LOCOP"/> <keyword match="SY-DATLO"/> <keyword match="SY-TIMLO"/> <keyword match="SY-ZONLO"/> <keyword match="SYST-INDEX"/> <keyword match="SYST-PAGNO"/> <keyword match="SYST-TABIX"/> <keyword match="SYST-TFILL"/> <keyword match="SYST-TLOPC"/> <keyword match="SYST-TMAXL"/> <keyword match="SYST-TOCCU"/> <keyword match="SYST-TTABC"/> <keyword match="SYST-TSTIS"/> <keyword match="SYST-TTABI"/> <keyword match="SYST-DBCNT"/> <keyword match="SYST-FDPOS"/> <keyword match="SYST-COLNO"/> <keyword match="SYST-LINCT"/> <keyword match="SYST-LINNO"/> <keyword match="SYST-LINSZ"/> <keyword match="SYST-PAGCT"/> <keyword match="SYST-MACOL"/> <keyword match="SYST-MAROW"/> <keyword match="SYST-TLENG"/> <keyword match="SYST-SFOFF"/> <keyword match="SYST-WILLI"/> <keyword match="SYST-LILLI"/> <keyword match="SYST-SUBRC"/> <keyword match="SYST-FLENG"/> <keyword match="SYST-CUCOL"/> <keyword match="SYST-CUROW"/> <keyword match="SYST-LSIND"/> <keyword match="SYST-LISTI"/> <keyword match="SYST-STEPL"/> <keyword match="SYST-TPAGI"/> <keyword match="SYST-WINX1"/> <keyword match="SYST-WINY1"/> <keyword match="SYST-WINX2"/> <keyword match="SYST-WINY2"/> <keyword match="SYST-WINCO"/> <keyword match="SYST-WINRO"/> <keyword match="SYST-WINDI"/> <keyword match="SYST-SROWS"/> <keyword match="SYST-SCOLS"/> <keyword match="SYST-LOOPC"/> <keyword match="SYST-FOLEN"/> <keyword match="SYST-FODEC"/> <keyword match="SYST-TZONE"/> <keyword match="SYST-DAYST"/> <keyword match="SYST-FTYPE"/> <keyword match="SYST-APPLI"/> <keyword match="SYST-FDAYW"/> <keyword match="SYST-CCURS"/> <keyword match="SYST-CCURT"/> <keyword match="SYST-DEBUG"/> <keyword match="SYST-CTYPE"/> <keyword match="SYST-INPUT"/> <keyword match="SYST-LANGU"/> <keyword match="SYST-MODNO"/> <keyword match="SYST-BATCH"/> <keyword match="SYST-BINPT"/> <keyword match="SYST-CALLD"/> <keyword match="SYST-DYNNR"/> <keyword match="SYST-DYNGR"/> <keyword match="SYST-NEWPA"/> <keyword match="SYST-PRI40"/> <keyword match="SYST-RSTRT"/> <keyword match="SYST-WTITL"/> <keyword match="SYST-CPAGE"/> <keyword match="SYST-DBNAM"/> <keyword match="SYST-MANDT"/> <keyword match="SYST-PREFX"/> <keyword match="SYST-FMKEY"/> <keyword match="SYST-PEXPI"/> <keyword match="SYST-PRINI"/> <keyword match="SYST-PRIMM"/> <keyword match="SYST-PRREL"/> <keyword match="SYST-PLAYO"/> <keyword match="SYST-PRBIG"/> <keyword match="SYST-PLAYP"/> <keyword match="SYST-PRNEW"/> <keyword match="SYST-PRLOG"/> <keyword match="SYST-PDEST"/> <keyword match="SYST-PLIST"/> <keyword match="SYST-PAUTH"/> <keyword match="SYST-PRDSN"/> <keyword match="SYST-PNWPA"/> <keyword match="SYST-CALLR"/> <keyword match="SYST-REPI2"/> <keyword match="SYST-RTITL"/> <keyword match="SYST-PRREC"/> <keyword match="SYST-PRTXT"/> <keyword match="SYST-PRABT"/> <keyword match="SYST-LPASS"/> <keyword match="SYST-NRPAG"/> <keyword match="SYST-PAART"/> <keyword match="SYST-PRCOP"/> <keyword match="SYST-BATZS"/> <keyword match="SYST-BSPLD"/> <keyword match="SYST-BREP4"/> <keyword match="SYST-BATZO"/> <keyword match="SYST-BATZD"/> <keyword match="SYST-BATZW"/> <keyword match="SYST-BATZM"/> <keyword match="SYST-CTABL"/> <keyword match="SYST-DBSYS"/> <keyword match="SYST-DCSYS"/> <keyword match="SYST-MACDB"/> <keyword match="SYST-SYSID"/> <keyword match="SYST-OPSYS"/> <keyword match="SYST-PFKEY"/> <keyword match="SYST-SAPRL"/> <keyword match="SYST-TCODE"/> <keyword match="SYST-UCOMM"/> <keyword match="SYST-CFWAE"/> <keyword match="SYST-CHWAE"/> <keyword match="SYST-SPONO"/> <keyword match="SYST-SPONR"/> <keyword match="SYST-WAERS"/> <keyword match="SYST-CDATE"/> <keyword match="SYST-DATUM"/> <keyword match="SYST-SLSET"/> <keyword match="SYST-SUBTY"/> <keyword match="SYST-SUBCS"/> <keyword match="SYST-GROUP"/> <keyword match="SYST-FFILE"/> <keyword match="SYST-UZEIT"/> <keyword match="SYST-DSNAM"/> <keyword match="SYST-REPID"/> <keyword match="SYST-TABID"/> <keyword match="SYST-TFDSN"/> <keyword match="SYST-UNAME"/> <keyword match="SYST-LSTAT"/> <keyword match="SYST-ABCDE"/> <keyword match="SYST-MARKY"/> <keyword match="SYST-SFNAM"/> <keyword match="SYST-TNAME"/> <keyword match="SYST-MSGLI"/> <keyword match="SYST-TITLE"/> <keyword match="SYST-ENTRY"/> <keyword match="SYST-LISEL"/> <keyword match="SYST-ULINE"/> <keyword match="SYST-XCODE"/> <keyword match="SYST-CPROG"/> <keyword match="SYST-XPROG"/> <keyword match="SYST-XFORM"/> <keyword match="SYST-LDBPG"/> <keyword match="SYST-TVAR0"/> <keyword match="SYST-TVAR1"/> <keyword match="SYST-TVAR2"/> <keyword match="SYST-TVAR3"/> <keyword match="SYST-TVAR4"/> <keyword match="SYST-TVAR5"/> <keyword match="SYST-TVAR6"/> <keyword match="SYST-TVAR7"/> <keyword match="SYST-TVAR8"/> <keyword match="SYST-TVAR9"/> <keyword match="SYST-MSGID"/> <keyword match="SYST-MSGTY"/> <keyword match="SYST-MSGNO"/> <keyword match="SYST-MSGV1"/> <keyword match="SYST-MSGV2"/> <keyword match="SYST-MSGV3"/> <keyword match="SYST-MSGV4"/> <keyword match="SYST-ONCOM"/> <keyword match="SYST-VLINE"/> <keyword match="SYST-WINSL"/> <keyword match="SYST-STACO"/> <keyword match="SYST-STARO"/> <keyword match="SYST-DATAR"/> <keyword match="SYST-HOST"/> <keyword match="SYST-LOCDB"/> <keyword match="SYST-LOCOP"/> <keyword match="SYST-DATLO"/> <keyword match="SYST-TIMLO"/> <keyword match="SYST-ZONLO"/> </keywords> <keywords name="reserved" inherits="identifier" innerClass="reserved"> <keyword match="ABS"/> <keyword match="ACOS"/> <keyword match="ADD"/> <keyword match="ADD-CORRESPONDING"/> <keyword match="ADJACENT"/> <keyword match="AFTER"/> <keyword match="ALIASES"/> <keyword match="ALL"/> <keyword match="ANALYZER"/> <keyword match="AND"/> <keyword match="ANY"/> <keyword match="APPEND"/> <keyword match="AS"/> <keyword match="ASCENDING"/> <keyword match="ASIN"/> <keyword match="ASSIGN"/> <keyword match="ASSIGNED"/> <keyword match="ASSIGNING"/> <keyword match="AT"/> <keyword match="ATAN"/> <keyword match="AUTHORITY-CHECK"/> <keyword match="AVG"/> <keyword match="BACK"/> <keyword match="BEFORE"/> <keyword match="BEGIN"/> <keyword match="BINARY"/> <keyword match="BIT"/> <keyword match="BIT-AND"/> <keyword match="BIT-NOT"/> <keyword match="BIT-OR"/> <keyword match="BIT-XOR"/> <keyword match="BLANK"/> <keyword match="BLOCK"/> <keyword match="BREAK-POINT"/> <keyword match="BUFFER"/> <keyword match="BY"/> <keyword match="C"/> <keyword match="CALL"/> <keyword match="CASE"/> <keyword match="CATCH"/> <keyword match="CEIL"/> <keyword match="CENTERED"/> <keyword match="CHAIN"/> <keyword match="CHANGE"/> <keyword match="CHANGING"/> <keyword match="CHECK"/> <keyword match="CHECKBOX"/> <keyword match="CLASS"/> <keyword match="CLASS-DATA"/> <keyword match="CLASS-EVENTS"/> <keyword match="CLASS-METHODS"/> <keyword match="CLASS-POOL"/> <keyword match="CLEAR"/> <keyword match="CLIENT"/> <keyword match="CLOSE"/> <keyword match="CNT"/> <keyword match="CODE"/> <keyword match="COLLECT"/> <keyword match="COLOR"/> <keyword match="COMMENT"/> <keyword match="COMMIT"/> <keyword match="COMMUNICATION"/> <keyword match="COMPUTE"/> <keyword match="CONCATENATE"/> <keyword match="CONDENSE"/> <keyword match="CONSTANTS"/> <keyword match="CONTEXT"/> <keyword match="CONTEXTS"/> <keyword match="CONTINUE"/> <keyword match="CONTROL"/> <keyword match="CONTROLS"/> <keyword match="CONVERT"/> <keyword match="COPY"/> <keyword match="CORRESPONDING"/> <keyword match="COS"/> <keyword match="COSH"/> <keyword match="COUNT"/> <keyword match="COUNTRY"/> <keyword match="CREATE"/> <keyword match="CURRENCY"/> <keyword match="CURSOR"/> <keyword match="CUSTOMER-FUNCTION"/> <keyword match="DATA"/> <keyword match="DATABASE"/> <keyword match="DATASET"/> <keyword match="DELETE"/> <keyword match="DECIMALS"/> <keyword match="DEFAULT"/> <keyword match="DEFINE"/> <keyword match="DELETE"/> <keyword match="DEMAND"/> <keyword match="DESCENDING"/> <keyword match="DESCRIBE"/> <keyword match="DIALOG"/> <keyword match="DISTINCT"/> <keyword match="DIV"/> <keyword match="DIVIDE"/> <keyword match="DIVIDE-CORRESPONDING"/> <keyword match="DO"/> <keyword match="DUPLICATES"/> <keyword match="DYNPRO"/> <keyword match="EDIT"/> <keyword match="EDITOR-CALL"/> <keyword match="ELSE"/> <keyword match="ELSEIF"/> <keyword match="END"/> <keyword match="END-OF-DEFINITION"/> <keyword match="END-OF-PAGE"/> <keyword match="END-OF-SELECTION"/> <keyword match="ENDAT"/> <keyword match="ENDCASE"/> <keyword match="ENDCATCH"/> <keyword match="ENDCHAIN"/> <keyword match="ENDCLASS"/> <keyword match="ENDDO"/> <keyword match="ENDEXEC"/> <keyword match="ENDFORM"/> <keyword match="ENDFUNCTION"/> <keyword match="ENDIF"/> <keyword match="ENDINTERFACE"/> <keyword match="ENDLOOP"/> <keyword match="ENDMETHOD"/> <keyword match="ENDMODULE"/> <keyword match="ENDON"/> <keyword match="ENDPROVIDE"/> <keyword match="ENDSELECT"/> <keyword match="ENDWHILE"/> <keyword match="ENTRIES"/> <keyword match="EVENTS"/> <keyword match="EXEC"/> <keyword match="EXIT"/> <keyword match="EXIT-COMMAND"/> <keyword match="EXP"/> <keyword match="EXPONENT"/> <keyword match="EXPORT"/> <keyword match="EXPORTING"/> <keyword match="EXCEPTIONS"/> <keyword match="EXTENDED"/> <keyword match="EXTRACT"/> <keyword match="FETCH"/> <keyword match="FIELD"/> <keyword match="FIELD-GROUPS"/> <keyword match="FIELD-SYMBOLS"/> <keyword match="FIELDS"/> <keyword match="FLOOR"/> <keyword match="FOR"/> <keyword match="FORM"/> <keyword match="FORMAT"/> <keyword match="FRAC"/> <keyword match="FRAME"/> <keyword match="FREE"/> <keyword match="FROM"/> <keyword match="FUNCTION"/> <keyword match="FUNCTION-POOL"/> <keyword match="GENERATE"/> <keyword match="GET"/> <keyword match="GROUP"/> <keyword match="HASHED"/> <keyword match="HEADER"/> <keyword match="HELP-ID"/> <keyword match="HELP-REQUEST"/> <keyword match="HIDE"/> <keyword match="HOTSPOT"/> <keyword match="ICON"/> <keyword match="ID"/> <keyword match="IF"/> <keyword match="IMPORT"/> <keyword match="IMPORTING"/> <keyword match="INCLUDE"/> <keyword match="INDEX"/> <keyword match="INFOTYPES"/> <keyword match="INITIALIZATION"/> <keyword match="INNER"/> <keyword match="INPUT"/> <keyword match="INSERT"/> <keyword match="INTENSIFIED"/> <keyword match="INTERFACE"/> <keyword match="INTERFACE-POOL"/> <keyword match="INTERFACES"/> <keyword match="INTO"/> <keyword match="INVERSE"/> <keyword match="JOIN"/> <keyword match="KEY"/> <keyword match="LANGUAGE"/> <keyword match="LAST"/> <keyword match="LEAVE"/> <keyword match="LEFT"/> <keyword match="LEFT-JUSTIFIED"/> <keyword match="LIKE"/> <keyword match="LINE"/> <keyword match="LINE-COUNT"/> <keyword match="LINE-SELECTION"/> <keyword match="LINE-SIZE"/> <keyword match="LINES"/> <keyword match="LIST-PROCESSING"/> <keyword match="LOAD"/> <keyword match="LOAD-OF-PROGRAM"/> <keyword match="LOCAL"/> <keyword match="LOCALE"/> <keyword match="LOG"/> <keyword match="LOG10"/> <keyword match="LOOP"/> <keyword match="M"/> <keyword match="MARGIN"/> <keyword match="MASK"/> <keyword match="MATCHCODE"/> <keyword match="MAX"/> <keyword match="MEMORY"/> <keyword match="MESSAGE"/> <keyword match="MESSAGE-ID"/> <keyword match="MESSAGES"/> <keyword match="METHOD"/> <keyword match="METHODS"/> <keyword match="MIN"/> <keyword match="MOD"/> <keyword match="MODE"/> <keyword match="MODIF"/> <keyword match="MODIFY"/> <keyword match="MODULE"/> <keyword match="MOVE"/> <keyword match="MOVE-CORRESPONDING"/> <keyword match="MULTIPLY"/> <keyword match="MULTIPLY-CORRESPONDING"/> <keyword match="NEW"/> <keyword match="NEW-LINE"/> <keyword match="NEW-PAGE"/> <keyword match="NEXT"/> <keyword match="NO"/> <keyword match="NO-GAP"/> <keyword match="NO-GAPS"/> <keyword match="NO-HEADING"/> <keyword match="NO-SCROLLING"/> <keyword match="NO-SIGN"/> <keyword match="NO-TITLE"/> <keyword match="NO-ZERO"/> <keyword match="NODES"/> <keyword match="NON-UNIQUE"/> <keyword match="O"/> <keyword match="OBJECT"/> <keyword match="OBLIGATORY"/> <keyword match="OCCURS"/> <keyword match="OF"/> <keyword match="OFF"/> <keyword match="ON"/> <keyword match="OPEN"/> <keyword match="OR"/> <keyword match="ORDER"/> <keyword match="OTHERS"/> <keyword match="OUTER"/> <keyword match="OUTPUT"/> <keyword match="OVERLAY"/> <keyword match="PACK"/> <keyword match="PAGE"/> <keyword match="PARAMETER"/> <keyword match="PARAMETERS"/> <keyword match="PERFORM"/> <keyword match="PF-STATUS"/> <keyword match="POSITION"/> <keyword match="PRINT"/> <keyword match="PRINT-CONTROL"/> <keyword match="PRIVATE"/> <keyword match="PROCESS"/> <keyword match="PROGRAM"/> <keyword match="PROPERTY"/> <keyword match="PROTECTED"/> <keyword match="PROVIDE"/> <keyword match="PUBLIC"/> <keyword match="PUT"/> <keyword match="RADIOBUTTON"/> <keyword match="RAISE"/> <keyword match="RAISING"/> <keyword match="RANGE"/> <keyword match="RANGES"/> <keyword match="READ"/> <keyword match="RECEIVE"/> <keyword match="REFRESH"/> <keyword match="REJECT"/> <keyword match="REPLACE"/> <keyword match="REPORT"/> <keyword match="REQUESTED"/> <keyword match="RESERVE"/> <keyword match="RESET"/> <keyword match="RIGHT-JUSTIFIED"/> <keyword match="ROLLBACK"/> <keyword match="ROUND"/> <keyword match="ROWS"/> <keyword match="RTTI"/> <keyword match="RUN"/> <keyword match="SCAN"/> <keyword match="SCREEN"/> <keyword match="SEARCH"/> <keyword match="SEPARATED"/> <keyword match="SCROLL"/> <keyword match="SCROLL-BOUNDARY"/> <keyword match="SEARCH"/> <keyword match="SELECT"/> <keyword match="SELECT-OPTIONS"/> <keyword match="SELECTION-SCREEN"/> <keyword match="SELECTION-TABLE"/> <keyword match="SET"/> <keyword match="SHARED"/> <keyword match="SHIFT"/> <keyword match="SIGN"/> <keyword match="SIN"/> <keyword match="SINGLE"/> <keyword match="SINH"/> <keyword match="SIZE"/> <keyword match="SKIP"/> <keyword match="SORT"/> <keyword match="SORTED"/> <keyword match="SPLIT"/> <keyword match="SQL"/> <keyword match="SQRT"/> <keyword match="STAMP"/> <keyword match="STANDARD"/> <keyword match="START-OF-SELECTION"/> <keyword match="STATICS"/> <keyword match="STOP"/> <keyword match="STRING"/> <keyword match="STRLEN"/> <keyword match="STRUCTURE"/> <keyword match="SUBMIT"/> <keyword match="SUBTRACT"/> <keyword match="SUBTRACT-CORRESPONDING"/> <keyword match="SUM"/> <keyword match="SUPPLY"/> <keyword match="SUPPRESS"/> <keyword match="SYMBOL"/> <keyword match="SYNTAX-CHECK"/> <keyword match="SYNTAX-TRACE"/> <keyword match="SYSTEM-CALL"/> <keyword match="SYSTEM-EXCEPTIONS"/> <keyword match="TABLE"/> <keyword match="TABLE_LINE"/> <keyword match="TABLES"/> <keyword match="TAN"/> <keyword match="TANH"/> <keyword match="TEXT"/> <keyword match="TEXTPOOL"/> <keyword match="TIME"/> <keyword match="TIMES"/> <keyword match="TITLE"/> <keyword match="TITLEBAR"/> <keyword match="TO"/> <keyword match="TOP-OF-PAGE"/> <keyword match="TRANSACTION"/> <keyword match="TRANSFER"/> <keyword match="TRANSLATE"/> <keyword match="TRANSPORTING"/> <keyword match="TRUNC"/> <keyword match="TYPE"/> <keyword match="TYPE-POOL"/> <keyword match="TYPE-POOLS"/> <keyword match="TYPES"/> <keyword match="ULINE"/> <keyword match="UNDER"/> <keyword match="UNIQUE"/> <keyword match="UNIT"/> <keyword match="UNPACK"/> <keyword match="UP"/> <keyword match="UPDATE"/> <keyword match="USER-COMMAND"/> <keyword match="USING"/> <keyword match="VALUE"/> <keyword match="VALUE-REQUEST"/> <keyword match="VALUES"/> <keyword match="VARY"/> <keyword match="WHEN"/> <keyword match="WHERE"/> <keyword match="WHILE"/> <keyword match="WINDOW"/> <keyword match="WITH"/> <keyword match="WITH-TITLE"/> <keyword match="WORK"/> <keyword match="WRITE"/> <keyword match="X"/> <keyword match="XSTRING"/> <keyword match="Z"/> <keyword match="ZONE"/> </keywords> <keywords name="constants" inherits="identifier" innerClass="reserved"> <keyword match="INITIAL"/> <keyword match="NULL"/> <keyword match="SPACE"/> <keyword match="COL_BACKGROUND"/> <keyword match="COL_HEADING"/> <keyword match="COL_NORMAL"/> <keyword match="COL_TOTAL"/> <keyword match="COL_KEY"/> <keyword match="COL_POSITIVE"/> <keyword match="COL_NEGATIVE"/> <keyword match="COL_GROUP"/> </keywords> </highlight>
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.design.widget.AppBarLayout android:id="@+id/abl_layout_coordinator" android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> <android.support.v7.widget.Toolbar android:id="@+id/tb_layout_coordinator" android:layout_width="match_parent" android:layout_height="200dp" android:minHeight="50dp" android:background="@color/colorPrimary" app:title="CoordinatorLayout" app:popupTheme="@style/ThemeOverlay.AppCompat.Light"></android.support.v7.widget.Toolbar> </android.support.design.widget.AppBarLayout> <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="vertical" app:layout_behavior="@string/appbar_scrolling_view_behavior"> <android.support.v7.widget.CardView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="8dp" app:cardElevation="8dp" app:contentPadding="16dp"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:lineSpacingExtra="8dp" android:text="@string/person_intro" /> </android.support.v7.widget.CardView> </android.support.v4.widget.NestedScrollView> </android.support.design.widget.CoordinatorLayout>
{ "pile_set_name": "Github" }
// Base class // // Requires one of the contextual, color modifier classes for `color` and // `background-color`. .badge { display: inline-block; padding: $badge-padding-y $badge-padding-x; font-size: $badge-font-size; font-weight: $badge-font-weight; line-height: 1; color: $badge-color; text-align: center; white-space: nowrap; vertical-align: baseline; @include border-radius(); // Empty badges collapse automatically &:empty { display: none; } } // Quick fix for badges in buttons .btn .badge { position: relative; top: -1px; } // Pill badges // // Make them extra rounded with a modifier to replace v3's badges. .badge-pill { padding-right: $badge-pill-padding-x; padding-left: $badge-pill-padding-x; @include border-radius($badge-pill-border-radius); } // Colors // // Contextual variations (linked badges get darker on :hover). @each $color, $value in $theme-colors { .badge-#{$color} { @include badge-variant($value); } }
{ "pile_set_name": "Github" }
{ "title": "" }
{ "pile_set_name": "Github" }
/* * Copyright (c) 2002-2011 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of 'LWJGL' nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package org.lwjgl.opengles; public interface AMD_compressed_3DC_texture { /** * Accepted by the &lt;internalFormat&gt; parameter of CompressedTexImage2D and * CompressedTexImage3DOES: */ int GL_3DC_X_AMD = 0x87F9, GL_3DC_XY_AMD = 0x87FA; }
{ "pile_set_name": "Github" }
/* * Copyright (C) 2015-2019 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. */ #import "config.h" #import "ParentalControlsContentFilter.h" #if HAVE(PARENTAL_CONTROLS) #import "ContentFilterUnblockHandler.h" #import "Logging.h" #import "ResourceResponse.h" #import "SharedBuffer.h" #import <objc/runtime.h> #import <pal/spi/cocoa/WebFilterEvaluatorSPI.h> #import <wtf/SoftLinking.h> SOFT_LINK_PRIVATE_FRAMEWORK(WebContentAnalysis); SOFT_LINK_CLASS(WebContentAnalysis, WebFilterEvaluator); namespace WebCore { bool ParentalControlsContentFilter::enabled() { bool enabled = [getWebFilterEvaluatorClass() isManagedSession]; LOG(ContentFiltering, "ParentalControlsContentFilter is %s.\n", enabled ? "enabled" : "not enabled"); return enabled; } std::unique_ptr<ParentalControlsContentFilter> ParentalControlsContentFilter::create() { return std::make_unique<ParentalControlsContentFilter>(); } static inline bool canHandleResponse(const ResourceResponse& response) { #if PLATFORM(MAC) || PLATFORM(MACCATALYST) return response.url().protocolIs("https"); #else return response.url().protocolIsInHTTPFamily(); #endif } void ParentalControlsContentFilter::responseReceived(const ResourceResponse& response) { ASSERT(!m_webFilterEvaluator); if (!canHandleResponse(response) || !enabled()) { m_state = State::Allowed; return; } m_webFilterEvaluator = adoptNS([allocWebFilterEvaluatorInstance() initWithResponse:response.nsURLResponse()]); updateFilterState(); } void ParentalControlsContentFilter::addData(const char* data, int length) { ASSERT(![m_replacementData.get() length]); m_replacementData = [m_webFilterEvaluator addData:[NSData dataWithBytesNoCopy:(void*)data length:length freeWhenDone:NO]]; updateFilterState(); ASSERT(needsMoreData() || [m_replacementData.get() length]); } void ParentalControlsContentFilter::finishedAddingData() { ASSERT(![m_replacementData.get() length]); m_replacementData = [m_webFilterEvaluator dataComplete]; updateFilterState(); } Ref<SharedBuffer> ParentalControlsContentFilter::replacementData() const { ASSERT(didBlockData()); return SharedBuffer::create(m_replacementData.get()); } #if ENABLE(CONTENT_FILTERING) ContentFilterUnblockHandler ParentalControlsContentFilter::unblockHandler() const { #if HAVE(PARENTAL_CONTROLS_WITH_UNBLOCK_HANDLER) return ContentFilterUnblockHandler { "unblock"_s, m_webFilterEvaluator }; #else return { }; #endif } #endif void ParentalControlsContentFilter::updateFilterState() { switch ([m_webFilterEvaluator filterState]) { case kWFEStateAllowed: case kWFEStateEvaluating: m_state = State::Allowed; break; case kWFEStateBlocked: m_state = State::Blocked; break; case kWFEStateBuffering: m_state = State::Filtering; break; } #if !LOG_DISABLED if (!needsMoreData()) LOG(ContentFiltering, "ParentalControlsContentFilter stopped buffering with state %d and replacement data length %zu.\n", m_state, [m_replacementData length]); #endif } } // namespace WebCore #endif // HAVE(PARENTAL_CONTROLS)
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <appengine-web-app xmlns="http://appengine.google.com/ns/1.0"> <application>your-app-id</application> <version>1</version> <threadsafe>true</threadsafe> <system-properties> <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/> </system-properties> </appengine-web-app>
{ "pile_set_name": "Github" }
/* * Marvell MV98DX3236 SoC clocks * * Copyright (C) 2012 Marvell * * Gregory CLEMENT <[email protected]> * Sebastian Hesselbarth <[email protected]> * Andrew Lunn <[email protected]> * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #include <linux/kernel.h> #include <linux/clk-provider.h> #include <linux/io.h> #include <linux/of.h> #include "common.h" /* * For 98DX4251 Sample At Reset the CPU, DDR and Main PLL clocks are all * defined at the same time * * SAR1[20:18] : CPU frequency DDR frequency MPLL frequency * 0 = 400 MHz 400 MHz 800 MHz * 2 = 667 MHz 667 MHz 2000 MHz * 3 = 800 MHz 800 MHz 1600 MHz * others reserved. * * For 98DX3236 Sample At Reset the CPU, DDR and Main PLL clocks are all * defined at the same time * * SAR1[20:18] : CPU frequency DDR frequency MPLL frequency * 1 = 667 MHz 667 MHz 2000 MHz * 2 = 400 MHz 400 MHz 400 MHz * 3 = 800 MHz 800 MHz 800 MHz * 5 = 800 MHz 400 MHz 800 MHz * others reserved. */ #define SAR1_MV98DX3236_CPU_DDR_MPLL_FREQ_OPT 18 #define SAR1_MV98DX3236_CPU_DDR_MPLL_FREQ_OPT_MASK 0x7 static u32 __init mv98dx3236_get_tclk_freq(void __iomem *sar) { /* Tclk = 200MHz, no SaR dependency */ return 200000000; } static const u32 mv98dx3236_cpu_frequencies[] __initconst = { 0, 667000000, 400000000, 800000000, 0, 800000000, 0, 0, }; static const u32 mv98dx4251_cpu_frequencies[] __initconst = { 400000000, 0, 667000000, 800000000, 0, 0, 0, 0, }; static u32 __init mv98dx3236_get_cpu_freq(void __iomem *sar) { u32 cpu_freq = 0; u8 cpu_freq_select = 0; cpu_freq_select = ((readl(sar) >> SAR1_MV98DX3236_CPU_DDR_MPLL_FREQ_OPT) & SAR1_MV98DX3236_CPU_DDR_MPLL_FREQ_OPT_MASK); if (of_machine_is_compatible("marvell,armadaxp-98dx4251")) cpu_freq = mv98dx4251_cpu_frequencies[cpu_freq_select]; else if (of_machine_is_compatible("marvell,armadaxp-98dx3236")) cpu_freq = mv98dx3236_cpu_frequencies[cpu_freq_select]; if (!cpu_freq) pr_err("CPU freq select unsupported %d\n", cpu_freq_select); return cpu_freq; } enum { MV98DX3236_CPU_TO_DDR, MV98DX3236_CPU_TO_MPLL }; static const struct coreclk_ratio mv98dx3236_core_ratios[] __initconst = { { .id = MV98DX3236_CPU_TO_DDR, .name = "ddrclk" }, { .id = MV98DX3236_CPU_TO_MPLL, .name = "mpll" }, }; static const int __initconst mv98dx3236_cpu_mpll_ratios[8][2] = { {0, 1}, {3, 1}, {1, 1}, {1, 1}, {0, 1}, {1, 1}, {0, 1}, {0, 1}, }; static const int __initconst mv98dx3236_cpu_ddr_ratios[8][2] = { {0, 1}, {1, 1}, {1, 1}, {1, 1}, {0, 1}, {1, 2}, {0, 1}, {0, 1}, }; static const int __initconst mv98dx4251_cpu_mpll_ratios[8][2] = { {2, 1}, {0, 1}, {3, 1}, {2, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, }; static const int __initconst mv98dx4251_cpu_ddr_ratios[8][2] = { {1, 1}, {0, 1}, {1, 1}, {1, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, }; static void __init mv98dx3236_get_clk_ratio( void __iomem *sar, int id, int *mult, int *div) { u32 opt = ((readl(sar) >> SAR1_MV98DX3236_CPU_DDR_MPLL_FREQ_OPT) & SAR1_MV98DX3236_CPU_DDR_MPLL_FREQ_OPT_MASK); switch (id) { case MV98DX3236_CPU_TO_DDR: if (of_machine_is_compatible("marvell,armadaxp-98dx4251")) { *mult = mv98dx4251_cpu_ddr_ratios[opt][0]; *div = mv98dx4251_cpu_ddr_ratios[opt][1]; } else if (of_machine_is_compatible("marvell,armadaxp-98dx3236")) { *mult = mv98dx3236_cpu_ddr_ratios[opt][0]; *div = mv98dx3236_cpu_ddr_ratios[opt][1]; } break; case MV98DX3236_CPU_TO_MPLL: if (of_machine_is_compatible("marvell,armadaxp-98dx4251")) { *mult = mv98dx4251_cpu_mpll_ratios[opt][0]; *div = mv98dx4251_cpu_mpll_ratios[opt][1]; } else if (of_machine_is_compatible("marvell,armadaxp-98dx3236")) { *mult = mv98dx3236_cpu_mpll_ratios[opt][0]; *div = mv98dx3236_cpu_mpll_ratios[opt][1]; } break; } } static const struct coreclk_soc_desc mv98dx3236_core_clocks = { .get_tclk_freq = mv98dx3236_get_tclk_freq, .get_cpu_freq = mv98dx3236_get_cpu_freq, .get_clk_ratio = mv98dx3236_get_clk_ratio, .ratios = mv98dx3236_core_ratios, .num_ratios = ARRAY_SIZE(mv98dx3236_core_ratios), }; /* * Clock Gating Control */ static const struct clk_gating_soc_desc mv98dx3236_gating_desc[] __initconst = { { "ge1", NULL, 3, 0 }, { "ge0", NULL, 4, 0 }, { "pex00", NULL, 5, 0 }, { "sdio", NULL, 17, 0 }, { "usb0", NULL, 18, 0 }, { "xor0", NULL, 22, 0 }, { } }; static void __init mv98dx3236_clk_init(struct device_node *np) { struct device_node *cgnp = of_find_compatible_node(NULL, NULL, "marvell,mv98dx3236-gating-clock"); mvebu_coreclk_setup(np, &mv98dx3236_core_clocks); if (cgnp) mvebu_clk_gating_setup(cgnp, mv98dx3236_gating_desc); } CLK_OF_DECLARE(mv98dx3236_clk, "marvell,mv98dx3236-core-clock", mv98dx3236_clk_init);
{ "pile_set_name": "Github" }
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build ignore // +godefs map struct_in6_addr [16]byte /* in6_addr */ package ipv6 /* #include <linux/in.h> #include <linux/in6.h> #include <linux/ipv6.h> #include <linux/icmpv6.h> #include <linux/filter.h> #include <sys/socket.h> */ import "C" const ( sysIPV6_ADDRFORM = C.IPV6_ADDRFORM sysIPV6_2292PKTINFO = C.IPV6_2292PKTINFO sysIPV6_2292HOPOPTS = C.IPV6_2292HOPOPTS sysIPV6_2292DSTOPTS = C.IPV6_2292DSTOPTS sysIPV6_2292RTHDR = C.IPV6_2292RTHDR sysIPV6_2292PKTOPTIONS = C.IPV6_2292PKTOPTIONS sysIPV6_CHECKSUM = C.IPV6_CHECKSUM sysIPV6_2292HOPLIMIT = C.IPV6_2292HOPLIMIT sysIPV6_NEXTHOP = C.IPV6_NEXTHOP sysIPV6_FLOWINFO = C.IPV6_FLOWINFO sysIPV6_UNICAST_HOPS = C.IPV6_UNICAST_HOPS sysIPV6_MULTICAST_IF = C.IPV6_MULTICAST_IF sysIPV6_MULTICAST_HOPS = C.IPV6_MULTICAST_HOPS sysIPV6_MULTICAST_LOOP = C.IPV6_MULTICAST_LOOP sysIPV6_ADD_MEMBERSHIP = C.IPV6_ADD_MEMBERSHIP sysIPV6_DROP_MEMBERSHIP = C.IPV6_DROP_MEMBERSHIP sysMCAST_JOIN_GROUP = C.MCAST_JOIN_GROUP sysMCAST_LEAVE_GROUP = C.MCAST_LEAVE_GROUP sysMCAST_JOIN_SOURCE_GROUP = C.MCAST_JOIN_SOURCE_GROUP sysMCAST_LEAVE_SOURCE_GROUP = C.MCAST_LEAVE_SOURCE_GROUP sysMCAST_BLOCK_SOURCE = C.MCAST_BLOCK_SOURCE sysMCAST_UNBLOCK_SOURCE = C.MCAST_UNBLOCK_SOURCE sysMCAST_MSFILTER = C.MCAST_MSFILTER sysIPV6_ROUTER_ALERT = C.IPV6_ROUTER_ALERT sysIPV6_MTU_DISCOVER = C.IPV6_MTU_DISCOVER sysIPV6_MTU = C.IPV6_MTU sysIPV6_RECVERR = C.IPV6_RECVERR sysIPV6_V6ONLY = C.IPV6_V6ONLY sysIPV6_JOIN_ANYCAST = C.IPV6_JOIN_ANYCAST sysIPV6_LEAVE_ANYCAST = C.IPV6_LEAVE_ANYCAST //sysIPV6_PMTUDISC_DONT = C.IPV6_PMTUDISC_DONT //sysIPV6_PMTUDISC_WANT = C.IPV6_PMTUDISC_WANT //sysIPV6_PMTUDISC_DO = C.IPV6_PMTUDISC_DO //sysIPV6_PMTUDISC_PROBE = C.IPV6_PMTUDISC_PROBE //sysIPV6_PMTUDISC_INTERFACE = C.IPV6_PMTUDISC_INTERFACE //sysIPV6_PMTUDISC_OMIT = C.IPV6_PMTUDISC_OMIT sysIPV6_FLOWLABEL_MGR = C.IPV6_FLOWLABEL_MGR sysIPV6_FLOWINFO_SEND = C.IPV6_FLOWINFO_SEND sysIPV6_IPSEC_POLICY = C.IPV6_IPSEC_POLICY sysIPV6_XFRM_POLICY = C.IPV6_XFRM_POLICY sysIPV6_RECVPKTINFO = C.IPV6_RECVPKTINFO sysIPV6_PKTINFO = C.IPV6_PKTINFO sysIPV6_RECVHOPLIMIT = C.IPV6_RECVHOPLIMIT sysIPV6_HOPLIMIT = C.IPV6_HOPLIMIT sysIPV6_RECVHOPOPTS = C.IPV6_RECVHOPOPTS sysIPV6_HOPOPTS = C.IPV6_HOPOPTS sysIPV6_RTHDRDSTOPTS = C.IPV6_RTHDRDSTOPTS sysIPV6_RECVRTHDR = C.IPV6_RECVRTHDR sysIPV6_RTHDR = C.IPV6_RTHDR sysIPV6_RECVDSTOPTS = C.IPV6_RECVDSTOPTS sysIPV6_DSTOPTS = C.IPV6_DSTOPTS sysIPV6_RECVPATHMTU = C.IPV6_RECVPATHMTU sysIPV6_PATHMTU = C.IPV6_PATHMTU sysIPV6_DONTFRAG = C.IPV6_DONTFRAG sysIPV6_RECVTCLASS = C.IPV6_RECVTCLASS sysIPV6_TCLASS = C.IPV6_TCLASS sysIPV6_ADDR_PREFERENCES = C.IPV6_ADDR_PREFERENCES sysIPV6_PREFER_SRC_TMP = C.IPV6_PREFER_SRC_TMP sysIPV6_PREFER_SRC_PUBLIC = C.IPV6_PREFER_SRC_PUBLIC sysIPV6_PREFER_SRC_PUBTMP_DEFAULT = C.IPV6_PREFER_SRC_PUBTMP_DEFAULT sysIPV6_PREFER_SRC_COA = C.IPV6_PREFER_SRC_COA sysIPV6_PREFER_SRC_HOME = C.IPV6_PREFER_SRC_HOME sysIPV6_PREFER_SRC_CGA = C.IPV6_PREFER_SRC_CGA sysIPV6_PREFER_SRC_NONCGA = C.IPV6_PREFER_SRC_NONCGA sysIPV6_MINHOPCOUNT = C.IPV6_MINHOPCOUNT sysIPV6_ORIGDSTADDR = C.IPV6_ORIGDSTADDR sysIPV6_RECVORIGDSTADDR = C.IPV6_RECVORIGDSTADDR sysIPV6_TRANSPARENT = C.IPV6_TRANSPARENT sysIPV6_UNICAST_IF = C.IPV6_UNICAST_IF sysICMPV6_FILTER = C.ICMPV6_FILTER sysICMPV6_FILTER_BLOCK = C.ICMPV6_FILTER_BLOCK sysICMPV6_FILTER_PASS = C.ICMPV6_FILTER_PASS sysICMPV6_FILTER_BLOCKOTHERS = C.ICMPV6_FILTER_BLOCKOTHERS sysICMPV6_FILTER_PASSONLY = C.ICMPV6_FILTER_PASSONLY sysSOL_SOCKET = C.SOL_SOCKET sysSO_ATTACH_FILTER = C.SO_ATTACH_FILTER sizeofKernelSockaddrStorage = C.sizeof_struct___kernel_sockaddr_storage sizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6 sizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo sizeofIPv6Mtuinfo = C.sizeof_struct_ip6_mtuinfo sizeofIPv6FlowlabelReq = C.sizeof_struct_in6_flowlabel_req sizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq sizeofGroupReq = C.sizeof_struct_group_req sizeofGroupSourceReq = C.sizeof_struct_group_source_req sizeofICMPv6Filter = C.sizeof_struct_icmp6_filter sizeofSockFprog = C.sizeof_struct_sock_fprog ) type kernelSockaddrStorage C.struct___kernel_sockaddr_storage type sockaddrInet6 C.struct_sockaddr_in6 type inet6Pktinfo C.struct_in6_pktinfo type ipv6Mtuinfo C.struct_ip6_mtuinfo type ipv6FlowlabelReq C.struct_in6_flowlabel_req type ipv6Mreq C.struct_ipv6_mreq type groupReq C.struct_group_req type groupSourceReq C.struct_group_source_req type icmpv6Filter C.struct_icmp6_filter type sockFProg C.struct_sock_fprog type sockFilter C.struct_sock_filter
{ "pile_set_name": "Github" }
#22000001 #22000002 #22000003 #22000004 #22000005 #22001001 #22001002 #22001003 #22002001 #22002002 #22002003 #22002004 #22002005 #22002006 #22002007 #22003001 #22003002 #22003003 #22003004 #22003005 #22003006 #22003007 #22004001 #22004002 #22004003 #22004004 #22004005 #22004006 #22004007 #22004008 #22004009 #22004010 #22004011 #22004012 #22004013 #22004014 #22004015 #22004016 #22004017 #22004018 #22004019 #22005001 #22005002 #22005003 #22006001 #22006002 #22006003 #22006004 #22006005 #22006006 #22006007 #22006008 #22006009 #22006010 #22007001 #22007002 #22007003 #22007004 #22007005 #22007006 #22007007 #22007008 #22007009 #22007010 #22007011 #22007012 #22007013 #22007014 #22007015 #22007016 #22007017 #22007018 #22007019 #22007020 #22007021 #22007022 #22007023 #22007024 #22007025 #22007026 #22007027 #22007028 #22007029 #22007030 #22007031 #22008001 #22008002 #22008003 #22008004 #22008005 #22008006 #22008007 #22008008 #22008009 #22008010 #22008011 #22008012 #22008013 #22008014 #22008015 #22008016 #22008017 #22009001 #22009002 #22009003 #22010001 #22010002 #22010003 #22010004 #22010005 #22010006 #22010007 #22010008 #22010009 #22010010 #22010011 #22010012 #22010013 #22010014 #22011001 #22011002 #22011003 #22011004 #22011005 #22011006 #22011007 #22011008 #22011009 #22011010 #22011011 #22012001 #22012002 #22012003 #22012004 #22012005 #22012006 #22012007 #22012008 #22012009 #22012010 #22012011 #22012012 #22012013 #22012014 #22012015 #22012016 #22013001 #22013002 #22013003 #22013004 #22013005 #22013006 #22013007 #22013008 #22013009 #22013010 #22013011 #22013012 #22013013 #22013014 #22013015 #22013016 #22013017 #22013018 #22013019 #22013020 #22013021 #22013022 #22013023 #22013024 #22013025 #22013026 #22013027 #22013028 #22013029 #22013030 #22013031 #22013032 #22013033 #22013034 #22013035 #22013036 #22013037 #22013038 #22013039 #22013040 #22013041 #22013042 #22013043 #22013044 #22013045 #22013046 #22013047 #22013048 #22013049 #22013050 #22013051 #22013052 #22013053 #22013054 #22013055 #22013056 #22013057 #22013058 #22013059 #22013060 #22013061 #22013062 #22013063 #22013064 #22013065 #22013066 #22013067 #22013068 #22013069 #22013070 #22013071 #22013072 #22013073 #22013074 #22013075 #22013076 #22013077 #22013078 #22013079 #22013080 #22013081 #22013082 #22013083 #22013084 #22013085 #22013086 #22013087 #22013088 #22013089 #22013090 #22013091 #22013092 #22013093 #22013094 #22013095 #22013096 #22013097 #22013098 #22013099 #22013100 #22013101 #22013102 #22013103 #22013104 #22013105 #22013106 #22013107 #22013108 #22013109 #22013110 #22013111 #22013112 #22013113 #22013114 #22013115 #22013116 #22013117 #22013118 #22013119 #22013120 #22013121 #22013122 #22013123 #22013124 #22013125 #22013126 #22013127 #22013128 #22013129 #22013130 #22013131 #22013132 #22013133 #22013134 #22013135 #22013136 #22013137 #22013138 #22013139 #22013140 #22013141 #22013142 #22013143 #22013144 #22013145 #22013146 #22013147 #22013148 #22013149 #22013150 #22013151 #22013152 #22013153 #22013154 #22013155 #22013156 #22013157 #22013158 #22013159 #22013160 #22013161 #22013162 #22013163 #22013164 #22013165 #22013166 #22013167 #22014001 #22014002 #22015001 #22015002 #22015003 #22015004 #22015005 #22015006 #22015007 #22015008 #22015009 #22015010 #22015011 #22015012 #22015013 #22015014 #22015015 #22015016 #22015017 #22015018 #22015019 #22015020 #22015021 #22016001 #22016002 #22016003 #22017001 #22017002 #22017003 #22017004 #22017005 #22017006 #22017007 #22017008 #22017009 #22017010 #22017011 #22017012 #22017013 #22017014 #22017015 #22017016 #22017017 #22017018 #22017019 #22017020 #22017021 #22017022 #22017023 #22017024 #22017025 #22017026 #22017027 #22017028 #22017029 #22017030 #22017031 #22018001 #22018002 #22018003 #22018004 #22019001 #22019002 #22019003 #22019004 #22019005 #22019006 #22019007 #22019008 #22019009 #22019010 #22019011 #22019012 #22019013 #22019014 #22019015 #22019016 #22019017 #22019018 #22019019 #22019020 #22019021 #22019022 #22019023 #22019024 #22019025 #22019026 #22019027 #22019028 #22019029 #22019030 #22019031 #22019032 #22019033 #22019034 #22019035 #22019036 #22019037 #22019038 #22019039 #22019040 #22019041 #22019042 #22019043 #22019044 #22019045 #22019046 #22019047 #22019048 #22020001 #22020002 #22020003 #22020004 #22020005 #22020006 #22020007 #22020008 #22020009 #22021001 #22021002 #22021003 #22021004 #22021005 #22021006 #22021007 #22021008 #22021009 #22021010 #22021011 #22021012 #22021013 #22021014 #22021015 #22021016 #22021017 #22021018 #22021019 #22021020 #22021021 #22021022 #22021023 #22021024 #22021025 #22021026 #22021027 #22021028 #22021029 #22021030 #22021031 #22021032 #22021033 #22021034 #22021035 #22021036 #22021037 #22021038 #22021039 #22022001 #22022002 #22022003 #22022004 #22022005 #22022006 #22022007 #22022008 #22022009 #22022010 #22022011 #22022012 #22022013 #22022014 #22022015 #22022016 #22022017 #22022018 #22022019 #22022020 #22022021 #22022022 #22022023 #22022024 #22023001 #22023002 #22023003 #22023004 #22023005 #22023006 #22023007 #22023008 #22023009 #22023010 #22023011 #22023012 #22023013 #22023014 #22023015 #22023016 #22023017 #22023018 #22023019 #22023020 #22023021 #22023022 #22023023 #22024001 #22024002 #22024003 #22025001 #22025002 #22025003 #22025004 #22025005 #22025006 #22025007 #22025008 #22025009 #22025010 #22025011 #22025012 #22025013 #22025014 #22025015 #22025016 #22025017 #22025018 #22025019 #22025020 #22025021 #22026001 #22026002 #22026003 #22026004 #22026005 #22026006 #22026007 #22026008 #22026009 #22026010 #22027001 #22027002 #22027003 #22028001 #22028002 #22028003 #22029001 #22029002 #22029003 #22029004 #22029005 #22029006 #22029007 #22029008 #22029009 #22029010 #22029011 #22029012 #22029013 #22030001 #22030002 #22030003 #22030004 #22030005 #22030006 #22030007 #22030008 #22030009 #22030010 #22030011 #22030012 #22030013 #22030014 #22030015 #22030016 #22031001 #22031002 #22031003 #22031004 #22031005 #22031006 #22031007 #22031008 #22031009 #22031010 #22031011 #22031012 #22031013 #22031014 #22031015 #22031016 #22031017 #22031018 #22031019 #22031020 #22031021 #22031022 #22031023 #22031024 #22031025 #22031026 #22032001 #22032002 #22032003 #22032004 #22032005 #22032006 #22032007 #22032008 #22032009 #22032010 #22032011 #22032012 #22032013 #22032014 #22032015 #22032016 #22032017 #22032018 #22032019 #22032020 #22032021 #22032022 #22032023 #22032024 #22032025 #22032026 #22032027 #22032028 #22032029 #22032030 #22032031 #22032032 #22032033 #22032034 #22032035 #22032036 #22032037 #22032038 #22032039 #22032040 #22032041 #22032042 #22032043 #22033001 #22033002 #22033003 #22033004 #22033005 #22033006 #22033007 #22033008 #22033009 #22033010 #22033011 #22033012 #22033013 #22033014 #22033015 #22033016 #22033017 #22033018 #22033019 #22033020 #22033021 #22033022 #22033023 #22033024 #22033025 #22033026 #22033027 #22033028 #22033029 #22033030 #22033031 #22033032 #22033033 #22033034 #22033035 #22033036 #22033037 #22033038 #22033039 #22033040 #22033041 #22033042 #22034001 #22034002 #22034003 #22034004 #22034005 #22034006 #22034007 #22034008 #22034009 #22034010 #22034011 #22034012 #22034013 #22034014 #22034015 #22034016 #22034017 #22034018 #22034019 #22034020 #22034021 #22034022 #22034023 #22034024 #22034025 #22034026 #22034027 #22034028 #22034029 #22034030 #22034031 #22034032 #22034033 #22034034 #22034035 #22034036 #22034037 #22034038 #22034039 #22034040 #22034041 #22034042 #22034043 #22034044 #22034045 #22034046 #22034047 #22034048 #22034049 #22034050 #22034051 #22034052 #22034053 #22034054 #22034055 #22034056 #22035001 #22035002 #22035003 #22035004 #22035005 #22036001 #22036002 #22036003 #22036004 #22036005 #22036006 #22036007 #22036008 #22036009 #22036010 #22036011 #22036012 #22036013 #22036014 #22036015 #22036016 #22036017 #22036018 #22036019 #22036020 #22036021 #22036022 #22036023 #22036024 #22036025 #22036026 #22037001 #22037002 #22037003 #22037004 #22037005 #22037006 #22037007 #22037008 #22038001 #22038002 #22038003 #22038004 #22038005 #22038006 #22038007 #22038008 #22038009 #22039001 #22039002 #22039003 #22039004 #22039005 #22039006 #22039007 #22039008 #22039009 #22039010 #22039011 #22040001 #22040002 #22040003 #22040004 #22040005 #22040006 #22040007 #22040008 #22040009 #22040010 #22040011 #22040012 #22040013 #22040014 #22040015 #22040016 #22040017 #22040018 #22040019 #22040020 #22040021 #22040022 #22040023 #22040024 #22040025 #22040026 #22040027 #22040028 #22040029 #22040030 #22040031 #22040032 #22040033 #22040034 #22040035 #22040036 #22040037 #22040038 #22040039 #22040040 #22040041 #22040042 #22040043 #22040044 #22040045 #22040046 #22040047 #22040048 #22041001 #22041002 #22041003 #22041004 #22041005 #22041006 #22041007 #22041008 #22041009 #22041010 #22041011 #22041012 #22041013 #22041014 #22041015 #22041016 #22041017 #22041018 #22041019 #22041020 #22041021 #22041022 #22041023 #22041024 #22041025 #22041026 #22041027 #22041028 #22041029 #22041030 #22041031 #22041032 #22041033 #22041034 #22041035 #22041036 #22041037 #22041038 #22041039 #22041040 #22041041 #22041042 #22041043 #22041044 #22041045 #22041046 #22041047 #22041048 #22041049 #22041050 #22041051 #22041052 #22041053 #22041054 #22041055 #22041056 #22041057 #22041058 #22041059 #22041060 #22041061 #22041062 #22041063 #22041064 #22041065 #22041066 #22041067 #22041068 #22041069 #22041070 #22041071 #22041072 #22041073 #22041074 #22041075 #22041076 #22041077 #22041078 #22042001 #22042002 #22042003 #22042004 #22042005 #22042006 #22042007 #22043001 #22043002 #22043003 #22043004 #22043005 #22043006 #22043007 #22043008 #22043009 #22043010 #22043011 #22043012 #22043013 #22043014 #22043015 #22043016 #22043017 #22043018 #22043019 #22043020 #22043021 #22043022 #22043023 #22043024 #22043025 #22043026 #22043027 #22043028 #22043029 #22043030 #22043031 #22043032 #22043033 #22043034 #22043035 #22043036 #22043037 #22043038 #22043039 #22043040 #22043041 #22043042 #22043043 #22043044 #22043045 #22043046 #22043047 #22043048 #22043049 #22043050 #22043051 #22043052 #22043053 #22043054 #22043055 #22043056 #22043057 #22043058 #22043059 #22043060 #22043061 #22043062 #22043063 #22043064 #22043065 #22043066 #22043067 #22043068 #22043069 #22043070 #22043071 #22043072 #22043073 #22043074 #22043075 #22043076 #22044001 #22044002 #22044003 #22044004 #22044005 #22044006 #22044007 #22044008 #22044009 #22044010 #22044011 #22044012 #22044013 #22044014 #22044015 #22044016 #22044017 #22044018 #22044019 #22044020 #22044021 #22044022 #22044023 #22044024 #22044025 #22044026 #22044027 #22044028 #22044029 #22044030 #22044031 #22044032 #22044033 #22044034 #22044035 #22044036 #22045001 #22045002 #22045003 #22045004 #22045005 #22045006 #22045007 #22045008 #22045009 #22045010 #22045011 #22045012 #22045013 #22045014 #22045015 #22045016 #22045017 #22045018 #22045019 #22045020 #22045021 #22045022 #22045023 #22045024 #22045025 #22045026 #22045027 #22045028 #22045029 #22045030 #22045031 #22045032 #22045033 #22045034 #22045035 #22045036 #22045037 #22045038 #22045039 #22045040 #22045041 #22045042 #22045043 #22045044 #22045045 #22045046 #22045047 #22045048 #22045049 #22045050 #22045051 #22046001 #22046002 #22046003 #22046004 #22047001 #22047002 #22047003 #22047004 #22047005 #22047006 #22047007 #22047008 #22047009 #22047010 #22047011 #22047012 #22047013 #22048001 #22048002 #22048003 #22048004 #22048005 #22048006 #22048007 #22048008 #22048009 #22048010 #22048011 #22048012 #22048013 #22048014 #22048015 #22048016 #22048017 #22048018 #22048019 #22048020 #22048021 #22048022 #22048023 #22048024 #22048025 #22048026 #22048027 #22048028 #22048029 #22048030 #22048031 #22048032 #22048033 #22048034 #22048035 #22048036 #22048037 #22048038 #22048039 #22048040 #22048041 #22048042 #22049001 #22049002 #22049003 #22049004 #22049005 #22049006 #22050001 #22050002 #22050003 #22051001 #22051002 #22051003 #22051004 #22051005 #22052001 #22052002 #22052003 #22052004 #22052005 #22052006 #22052007 #22052008 #22052009 #22052010 #22052011 #22052012 #22052013 #22052014 #22052015 #22052016 #22052017 #22052018 #22052019 #22052020 #22052021 #22052022 #22052023 #22052024 #22052025 #22052026 #22052027 #22052028 #22052029 #22052030 #22052031 #22052032 #22052033 #22052034 #22052035 #22052036 #22052037 #22052038 #22052039 #22052040 #22052041 #22052042 #22052043 #22052044 #22052045 #22052046 #22052047 #22052048 #22052049 #22052050 #22052051 #22052052 #22052053 #22052054 #22052055 #22052056 #22052057 #22052058 #22052059 #22053001 #22053002 #22053003 #22053004 #22053005 #22053006 #22053007 #22053008 #22053009 #22053010 #22053011 #22053012 #22053013 #22053014 #22053015 #22053016 #22053017 #22053018 #22053019 #22053020 #22053021 #22053022 #22053023 #22053024 #22053025 #22053026 #22053027 #22053028 #22053029 #22053030 #22053031 #22053032 #22053033 #22053034 #22053035 #22053036 #22053037 #22053038 #22053039 #22053040 #22053041 #22053042 #22053043 #22054001 #22054002 #22054003 #22054004 #22054005 #22054006 #22054007 #22054008 #22054009 #22054010 #22054011 #22054012 #22054013 #22054014 #22054015 #22054016 #22054017 #22054018 #22054019 #22054020 #22054021 #22054022 #22054023 #22054024 #22054025 #22054026 #22054027 #22055001 #22055002 #22055003 #22055004 #22055005 #22055006 #22055007 #22055008 #22055009 #22055010 #22055011 #22055012 #22055013 #22055014 #22055015 #22055016 #22055017 #22055018 #22055019 #22055020 #22055021 #22055022 #22055023 #22055024 #22055025 #22055026 #22055027 #22055028 #22055029 #22055030 #22055031 #22055032 #22055033 #22055034 #22055035 #22055036 #22055037 #22055038 #22055039 #22055040 #22055041 #22055042 #22055043 #22055044 #22056001 #22056002 #22056003 #22056004 #22056005 #22056006 #22056007 #22056008 #22056009 #22056010 #22056011 #22056012 #22056013 #22056014 #22057001 #22057002 #22057003 #22057004 #22057005 #22057006 #22057007 #22057008 #22057009 #22057010 #22057011 #22057012 #22057013 #22057014 #22057015 #22057016 #22057017 #22057018 #22057019 #22057020 #22057021 #22057022 #22057023 #22057024 #22057025 #22057026 #22057027 #22057028 #22057029 #22057030 #22057031 #22057032 #22057033 #22057034 #22057035 #22057036 #22057037 #22057038 #22057039 #22057040 #22057041 #22057042 #22057043 #22057044 #22057045 #22057046 #22057047 #22057048 #22057049 #22057050 #22057051 #22057052 #22057053 #22057054 #22057055 #22057056 #22057057 #22057058 #22057059 #22057060 #22057061 #22057062 #22057063 #22057064 #22057065 #22057066 #22058001 #22058002 #22058003 #22058004 #22058005 #22058006 #22058007 #22058008 #22058009 #22058010 #22058011 #22058012 #22058013 #22058014 #22058015 #22058016 #22058017 #22058018 #22058019 #22058020 #22058021 #22058022 #22058023 #22058024 #22058025 #22058026 #22058027 #22058028 #22059001 #22059002 #22059003 #22059004 #22059005 #22059006 #22059007 #22059008 #22059009 #22059010 #22059011 #22059012 #22059013 #22059014 #22059015 #22059016 #22059017 #22059018 #22059019 #22059020 #22059021 #22059022 #22059023 #22059024 #22059025 #22059026 #22059027 #22059028 #22059029 #22059030 #22059031 #22059032 #22059033 #22059034 #22059035 #22059036 #22059037 #22059038 #22059039 #22059040 #22059041 #22059042 #22059043 #22059044 #22059045 #22059046 #22059047 #22059048 #22059049 #22059050 #22059051 #22059052 #22059053 #22060001 #22060002 #22060003 #22060004 #22060005 #22060006 #22060007 #22060008 #22060009 #22060010 #22060011 #22061001 #22061002 #22061003 #22061004 #22061005 #22061006 #22061007 #22061008 #22061009 #22061010 #22061011 #22061012 #22061013 #22061014 #22061015 #22061016 #22061017 #22061018 #22061019 #22061020 #22061021 #22061022 #22061023 #22061024 #22061025 #22061026 #22061027 #22061028 #22061029 #22061030 #22061031 #22061032 #22061033 #22061034 #22061035 #22061036 #22061037 #22061038 #22061039 #22061040 #22061041 #22061042 #22061043 #22061044 #22061045 #22061046 #22061047 #22061048 #22061049 #22061050 #22061051 #22061052 #22061053 #22061054 #22061055 #22061056 #22061057 #22061058 #22061059 #22061060 #22061061 #22061062 #22061063 #22061064 #22061065 #22061066 #22061067 #22061068 #22061069 #22061070 #22061071 #22061072 #22061073 #22061074 #22061075 #22062001 #22062002 #22062003 #22062004 #22062005 #22063001 #22063002 #22063003 #22063004 #22063005 #22063006 #22063007 #22063008 #22063009 #22063010 #22063011 #22063012 #22063013 #22063014 #22063015 #22063016 #22063017 #22063018 #22063019 #22063020 #22063021 #22063022 #22063023 #22063024 #22063025 #22063026 #22063027 #22063028 #22064001 #22064002 #22064003 #22064004 #22064005 #22064006 #22064007 #22064008 #22064009 #22064010 #22064011 #22064012 #22064013 #22064014 #22064015 #22064016 #22064017 #22064018 #22064019 #22064020 #22064021 #22064022 #22064023 #22064024 #22064025 #22064026 #22064027 #22064028 #22064029 #22064030 #22064031 #22064032 #22064033 #22064034 #22064035 #22065001 #22065002 #22065003 #22065004 #22065005 #22065006 #22065007 #22065008 #22065009 #22066001 #22066002 #22066003 #22066004 #22066005 #22066006 #22066007 #22066008 #22066009 #22066010 #22066011 #22066012 #22066013 #22066014 #22066015 #22066016 #22066017 #22066018 #22066019 #22066020 #22067001 #22067002 #22067003 #22067004 #22067005 #22067006 #22067007 #22067008 #22067009 #22067010 #22068001 #22068002 #22068003 #22068004 #22068005 #22068006 #22068007 #22068008 #22069001 #22069002 #22069003 #22069004 #22069005 #22069006 #22069007 #22069008 #22070001 #22070002 #22070003 #22070004 #22070005 #22070006 #22070007 #22070008 #22070009 #22070010 #22070011 #22070012 #22070013 #22070014 #22070015 #22070016 #22070017 #22070018 #22070019 #22070020 #22070021 #22070022 #22070023 #22070024 #22070025 #22070026 #22070027 #22070028 #22070029 #22070030 #22070031 #22070032 #22071001 #22071002 #22071003 #22071004 #22071005 #22071006 #22072001 #22072002 #22072003 #22072004 #22072005 #22072006 #22072007 #22072008 #22072009 #22073001 #22073002 #22073003 #22073004 #22073005 #22073006 #22073007 #22073008 #22073009 #22074001 #22074002 #22074003 #22075001 #22075002 #22075003 #22075004 #22075005 #22075006 #22075007 #22075008 #22076001 #22076002 #22076003 #22076004 #22076005 #22077001 #22077002 #22077003 #22077004 #22077005 #22077006 #22077007 #22078001 #22078002 #22078003 #22078004 #22078005 #22078006 #22078007 #22078008 #22078009 #22078010 #22079001 #22079002 #22079003 #22079004 #22079005 #22079006 #22080001 #22080002 #22080003 #22080004 #22080005 #22081001 #22081002 #22081003 #22081004 #22081005 #22081006 #22081007 #22082001 #22082002 #22082003 #22082004 #22082005 #22082006 #22082007 #22083001 #22083002 #22083003 #22083004 #22083005 #22083006 #22083007 #22083008 #22083009 #22083010 #22084001 #22084002 #22084003 #22084004 #22084005 #22084006 #22085001 #22085002 #22085003 #22085004 #22085005 #22086001 #22086002 #22086003 #22086004 #22086005 #22086006 #22086007 #22086008 #22086009 #22086010 #22086011 #22086012 #22086013 #22086014 #22086015 #22086016 #22086017 #22086018 #22086019 #22086020 #22086021 #22086022 #22086023 #22086024 #22086025 #22086026 #22086027 #22086028 #22086029 #22086030 #22086031 #22086032 #22086033 #22086034 #22086035 #22086036 #22086037 #22086038 #22086039 #22086040 #22086041 #22086042 #22086043 #22086044 #22086045 #22086046 #22086047 #22086048 #22086049 #22087001 #22087002 #22087003 #22088001 #22088002 #22088003 #22088004 #22088005 #22089001 #22089002 #22089003 #22089004 #22090001 #22090002 #22090003 #22090004 #22090005 #22091001 #22091002 #22091003 #22091004 #22091005 #22091006 #22091007 #22091008 #22091009 #22091010 #22091011 #22091012 #22091013 #22091014 #22091015 #22092001 #22092002 #22092003 #22092004 #22092005 #22092006 #22092007 #22093001 #22093002 #22093003 #22093004 #22093005 #22093006 #22093007 #22093008 #22093009 #22093010 #22093011 #22093012 #22093013 #22093014 #22093015 #22093016 #22093017 #22093018 #22093019 #22093020 #22093021 #22093022 #22093023 #22093024 #22093025 #22093026 #22093027 #22093028 #22093029 #22093030 #22093031 #22093032 #22093033 #22093034 #22094001 #22094002 #22094003 #22095001 #22095002 #22095003 #22095004 #22095005 #22095006 #22096001 #22096002 #22096003 #22097001 #22097002 #22097003 #22097004 #22098001 #22098002 #22098003 #22098004 #22098005 #22098006 #22098007 #22098008 #22098009 #22099001 #22099002 #22099003 #22099004 #22099005 #22099006
{ "pile_set_name": "Github" }
namespace RPGCore.Behaviour { public interface ISocketConvertable<T> { T Convert { get; } } }
{ "pile_set_name": "Github" }
#ifdef HAVE_DIX_CONFIG_H #include <dix-config.h> #endif #ifndef _singlesize_h_ #define _singlesize_h_ /* * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008) * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved. * * 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 including the dates of first publication and * either this permission notice or a reference to * http://oss.sgi.com/projects/FreeB/ * 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 * SILICON GRAPHICS, INC. 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. * * Except as contained in this notice, the name of Silicon Graphics, Inc. * shall not be used in advertising or otherwise to promote the sale, use or * other dealings in this Software without prior written authorization from * Silicon Graphics, Inc. */ #include "indirect_size.h" extern GLint __glReadPixels_size(GLenum format, GLenum type, GLint width, GLint height); extern GLint __glGetMap_size(GLenum pname, GLenum query); extern GLint __glGetMapdv_size(GLenum target, GLenum query); extern GLint __glGetMapfv_size(GLenum target, GLenum query); extern GLint __glGetMapiv_size(GLenum target, GLenum query); extern GLint __glGetPixelMap_size(GLenum map); extern GLint __glGetPixelMapfv_size(GLenum map); extern GLint __glGetPixelMapuiv_size(GLenum map); extern GLint __glGetPixelMapusv_size(GLenum map); extern GLint __glGetTexImage_size(GLenum target, GLint level, GLenum format, GLenum type, GLint width, GLint height, GLint depth); #endif /* _singlesize_h_ */
{ "pile_set_name": "Github" }
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package ecr provides the client and types for making API // requests to Amazon EC2 Container Registry. // // Amazon Elastic Container Registry (Amazon ECR) is a managed Docker registry // service. Customers can use the familiar Docker CLI to push, pull, and manage // images. Amazon ECR provides a secure, scalable, and reliable registry. Amazon // ECR supports private Docker repositories with resource-based permissions // using IAM so that specific users or Amazon EC2 instances can access repositories // and images. Developers can use the Docker CLI to author and manage images. // // See https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21 for more information on this service. // // See ecr package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/ecr/ // // Using the Client // // To contact Amazon EC2 Container Registry with the SDK use the New function to create // a new service client. With that client you can make API requests to the service. // These clients are safe to use concurrently. // // See the SDK's documentation for more information on how to use the SDK. // https://docs.aws.amazon.com/sdk-for-go/api/ // // See aws.Config documentation for more information on configuring SDK clients. // https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config // // See the Amazon EC2 Container Registry client ECR for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/ecr/#New package ecr
{ "pile_set_name": "Github" }
include/master-slave.inc Warnings: Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information. [connection master] ### Create some data on master CREATE TABLE t1(a INT, b INT, PRIMARY KEY (a)) ENGINE=TokuDB; INSERT INTO t1 SET a=100, b=100; INSERT INTO t1 SET a=200, b=100; INSERT INTO t1 SET a=300, b=100; INSERT INTO t1 SET a=400, b=100; INSERT INTO t1 SET a=500, b=100; UPDATE t1 SET b = 200 WHERE a = 200; DELETE FROM t1 WHERE a = 100; SELECT * FROM t1; a b 200 200 300 100 400 100 500 100 ### Check for slave options SELECT @@tokudb_commit_sync; @@tokudb_commit_sync 0 SELECT @@tokudb_fsync_log_period; @@tokudb_fsync_log_period 1000000 ### Check data on slave after sync SELECT * FROM t1; a b 200 200 300 100 400 100 500 100 ### Do backup on slave ### Check for errors SELECT @@session.tokudb_backup_last_error; @@session.tokudb_backup_last_error 0 SELECT @@session.tokudb_backup_last_error_string; @@session.tokudb_backup_last_error_string NULL ### Stop slave server include/rpl_stop_server.inc [server_number=2] ### Restore backup ### Start slave server and slave threads include/rpl_start_server.inc [server_number=2] include/start_slave.inc ### Sync slave with master ### Check data on slave SELECT * FROM t1; a b 200 200 300 100 400 100 500 100 ### Cleanup DROP TABLE t1; include/rpl_end.inc
{ "pile_set_name": "Github" }
Subject: enron / hpl actuals for july 26 , 2000 teco tap 30 . 000 / enron ; 90 . 000 / iferc ls hpl lsk ic 30 . 000 / enron
{ "pile_set_name": "Github" }
/* CALLY - The Clutter Accessibility Implementation Library * * Copyright (C) 2009 Igalia, S.L. * * Author: Alejandro Piñeiro Iglesias <[email protected]> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #include <clutter/clutter.h> #include "cally-examples-util.h" #define WIDTH 300 #define HEIGHT 300 #define SIZE 50 #define DEPTH -100 int main (int argc, char *argv[]) { ClutterActor *stage = NULL; ClutterActor *button1 = NULL; ClutterActor *button2 = NULL; ClutterActor *button3 = NULL; ClutterActor *button4 = NULL; ClutterActor *group[4]; int i = 0; if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) return 1; cally_util_a11y_init (&argc, &argv); stage = clutter_stage_new (); clutter_stage_set_title (CLUTTER_STAGE (stage), "Cally - AtkComponent Test"); clutter_stage_set_color (CLUTTER_STAGE (stage), CLUTTER_COLOR_White); clutter_actor_set_size (stage, WIDTH, HEIGHT); g_signal_connect (stage, "destroy", G_CALLBACK (clutter_main_quit), NULL); button1 = clutter_rectangle_new_with_color (CLUTTER_COLOR_Yellow); clutter_actor_set_size (button1, SIZE, SIZE); button2 = clutter_rectangle_new_with_color (CLUTTER_COLOR_Green); clutter_actor_set_position (button2, 2 * SIZE, 0); clutter_actor_set_size (button2, SIZE, SIZE); button3 = clutter_rectangle_new_with_color (CLUTTER_COLOR_Blue); clutter_actor_set_position (button3, 0, 2 * SIZE); clutter_actor_set_size (button3, SIZE, SIZE); clutter_actor_set_depth( button3, DEPTH); /* a nested hierarchy, to check that the relative positions are computed properly */ button4 = clutter_rectangle_new_with_color (CLUTTER_COLOR_Magenta); clutter_actor_set_position (button4, SIZE / 2, SIZE / 2); clutter_actor_set_size (button4, SIZE, SIZE); for (i = 0; i < 4; i++) { group[i] = clutter_group_new (); clutter_actor_set_position (group[i], SIZE / 2, SIZE / 2); clutter_actor_set_size (group[i], SIZE, SIZE); if (i > 0) clutter_container_add_actor (CLUTTER_CONTAINER (group[i]), group [i - 1]); } clutter_container_add_actor (CLUTTER_CONTAINER (stage), button1); clutter_container_add_actor (CLUTTER_CONTAINER (stage), button2); clutter_container_add_actor (CLUTTER_CONTAINER (stage), button3); clutter_container_add_actor (CLUTTER_CONTAINER (stage), group[3]); clutter_container_add_actor (CLUTTER_CONTAINER (group[0]), button4); clutter_actor_show (stage); clutter_main (); return 0; }
{ "pile_set_name": "Github" }
package listener import ( "github.com/iotaledger/iota.go/account/event" "github.com/iotaledger/iota.go/account/plugins/promoter" "github.com/iotaledger/iota.go/account/plugins/transfer/poller" "github.com/iotaledger/iota.go/bundle" "sync" ) // ChannelEventListener handles channels and registration for events against an EventMachine. // Use the builder methods to register this listener against certain events. // Once registered for events, you must listen for incoming events on the specific channel. type ChannelEventListener struct { em event.EventMachine ids []uint64 idsMu sync.Mutex Promoted chan *promoter.PromotionReattachmentEvent Reattached chan *promoter.PromotionReattachmentEvent SentTransfer chan bundle.Bundle TransferConfirmed chan bundle.Bundle ReceivingDeposit chan bundle.Bundle ReceivedDeposit chan bundle.Bundle ReceivedMessage chan bundle.Bundle InternalError chan error ExecutingInputSelection chan bool PreparingTransfers chan struct{} GettingTransactionsToApprove chan struct{} AttachingToTangle chan struct{} Shutdown chan struct{} } // NewChannelEventListener creates a new ChannelEventListener using the given EventMachine. func NewChannelEventListener(em event.EventMachine) *ChannelEventListener { return &ChannelEventListener{em: em, ids: []uint64{}} } // Close frees up all underlying channels from the EventMachine. func (el *ChannelEventListener) Close() error { el.idsMu.Lock() defer el.idsMu.Unlock() for _, id := range el.ids { if err := el.em.UnregisterListener(id); err != nil { return err } } return nil } // RegPromotions registers this listener to listen for promotions. func (el *ChannelEventListener) RegPromotions() *ChannelEventListener { el.Promoted = make(chan *promoter.PromotionReattachmentEvent) el.ids = append(el.ids, el.em.RegisterListener(func(data interface{}) { el.Promoted <- data.(*promoter.PromotionReattachmentEvent) }, promoter.EventPromotion)) return el } // RegReattachments registers this listener to listen for reattachments. func (el *ChannelEventListener) RegReattachments() *ChannelEventListener { el.Reattached = make(chan *promoter.PromotionReattachmentEvent) el.ids = append(el.ids, el.em.RegisterListener(func(data interface{}) { el.Reattached <- data.(*promoter.PromotionReattachmentEvent) }, promoter.EventReattachment)) return el } // RegSentTransfers registers this listener to listen for sent off transfers. func (el *ChannelEventListener) RegSentTransfers() *ChannelEventListener { el.SentTransfer = make(chan bundle.Bundle) el.ids = append(el.ids, el.em.RegisterListener(func(data interface{}) { el.SentTransfer <- data.(bundle.Bundle) }, event.EventSentTransfer)) return el } // RegConfirmedTransfers registers this listener to listen for sent off confirmed transfers. func (el *ChannelEventListener) RegConfirmedTransfers() *ChannelEventListener { el.TransferConfirmed = make(chan bundle.Bundle) el.ids = append(el.ids, el.em.RegisterListener(func(data interface{}) { el.TransferConfirmed <- data.(bundle.Bundle) }, poller.EventTransferConfirmed)) return el } // RegReceivingDeposits registers this listener to listen for incoming deposits which are not yet confirmed. func (el *ChannelEventListener) RegReceivingDeposits() *ChannelEventListener { el.ReceivingDeposit = make(chan bundle.Bundle) el.ids = append(el.ids, el.em.RegisterListener(func(data interface{}) { el.ReceivingDeposit <- data.(bundle.Bundle) }, poller.EventReceivingDeposit)) return el } // RegReceivedDeposits registers this listener to listen for received (confirmed) deposits. func (el *ChannelEventListener) RegReceivedDeposits() *ChannelEventListener { el.ReceivedDeposit = make(chan bundle.Bundle) el.ids = append(el.ids, el.em.RegisterListener(func(data interface{}) { el.ReceivedDeposit <- data.(bundle.Bundle) }, poller.EventReceivedDeposit)) return el } // RegReceivedMessages registers this listener to listen for incoming messages. func (el *ChannelEventListener) RegReceivedMessages() *ChannelEventListener { el.ReceivedMessage = make(chan bundle.Bundle) el.ids = append(el.ids, el.em.RegisterListener(func(data interface{}) { el.ReceivedMessage <- data.(bundle.Bundle) }, poller.EventReceivedMessage)) return el } // RegAccountShutdown registers this listener to listen for shutdown messages. // A shutdown signal is normally only signaled once by the account on it's graceful termination. func (el *ChannelEventListener) RegAccountShutdown() *ChannelEventListener { el.Shutdown = make(chan struct{}) el.ids = append(el.ids, el.em.RegisterListener(func(data interface{}) { el.Shutdown <- struct{}{} }, event.EventShutdown)) return el } // RegInputSelection registers this listener to listen to when input selection is executed. func (el *ChannelEventListener) RegInputSelection() *ChannelEventListener { el.ExecutingInputSelection = make(chan bool) el.ids = append(el.ids, el.em.RegisterListener(func(data interface{}) { el.ExecutingInputSelection <- data.(bool) }, event.EventDoingInputSelection)) return el } // RegPreparingTransfer registers this listener to listen to when a transfer is being prepared. func (el *ChannelEventListener) RegPreparingTransfer() *ChannelEventListener { el.PreparingTransfers = make(chan struct{}) el.ids = append(el.ids, el.em.RegisterListener(func(data interface{}) { el.PreparingTransfers <- struct{}{} }, event.EventPreparingTransfer)) return el } // RegGettingTransactionsToApprove registers this listener to listen to when transactions to approve are getting fetched. func (el *ChannelEventListener) RegGettingTransactionsToApprove() *ChannelEventListener { el.GettingTransactionsToApprove = make(chan struct{}) el.ids = append(el.ids, el.em.RegisterListener(func(data interface{}) { el.GettingTransactionsToApprove <- struct{}{} }, event.EventGettingTransactionsToApprove)) return el } // RegAttachingToTangle registers this listener to listen to when Proof-of-Work is executed. func (el *ChannelEventListener) RegAttachingToTangle() *ChannelEventListener { el.AttachingToTangle = make(chan struct{}) el.ids = append(el.ids, el.em.RegisterListener(func(data interface{}) { el.AttachingToTangle <- struct{}{} }, event.EventAttachingToTangle)) return el } // RegInternalErrors registers this listener to listen for internal account errors. func (el *ChannelEventListener) RegInternalErrors() *ChannelEventListener { el.InternalError = make(chan error) el.ids = append(el.ids, el.em.RegisterListener(func(data interface{}) { el.InternalError <- data.(error) }, event.EventError)) return el } // All sets this listener up to listen to all account events. func (el *ChannelEventListener) All() *ChannelEventListener { return el. RegAccountShutdown(). RegPromotions(). RegReattachments(). RegSentTransfers(). RegConfirmedTransfers(). RegReceivedDeposits(). RegReceivingDeposits(). RegReceivedMessages(). RegInputSelection(). RegPreparingTransfer(). RegGettingTransactionsToApprove(). RegAttachingToTangle(). RegInternalErrors() }
{ "pile_set_name": "Github" }
// Copyright 2008-2010 Gordon Woodhull // 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) #ifndef BOOST_MSM_MPL_GRAPH_DEPTH_FIRST_SEARCH_HPP_INCLUDED #define BOOST_MSM_MPL_GRAPH_DEPTH_FIRST_SEARCH_HPP_INCLUDED #include <boost/msm/mpl_graph/mpl_graph.hpp> #include <boost/mpl/has_key.hpp> #include <boost/mpl/insert.hpp> #include <boost/mpl/pair.hpp> #include <boost/mpl/map.hpp> #include <boost/mpl/has_key.hpp> #include "search_colors.hpp" namespace boost { namespace msm { namespace mpl_graph { // dfs takes a visitor which has all the bgl-like metafunctions encapsulated in an // "operations" member class, and also a state. the operations are expected to return a new state // in addition, the visitor operations are expected to update the colors of vertices // and need to support a new metafunction get_color<Vertex, State> struct dfs_default_visitor_operations { template<typename Vertex, typename Graph, typename State> struct initialize_vertex { typedef State type; }; template<typename Vertex, typename Graph, typename State> struct discover_vertex { typedef State type; }; template<typename Vertex, typename Graph, typename State> struct finish_vertex { typedef State type; }; template<typename Edge, typename Graph, typename State> struct tree_edge { typedef State type; }; template<typename Edge, typename Graph, typename State> struct back_edge { typedef State type; }; template<typename Edge, typename Graph, typename State> struct forward_or_cross_edge { typedef State type; }; }; // requires IncidenceGraph // returns pair<VisitorState, ColorState> template<typename Graph, typename VisitorOps, typename VisitorState, typename Vertex, typename ColorState = create_search_color_map::type > struct depth_first_search { // enter vertex typedef typename VisitorOps::template discover_vertex<Vertex, Graph, VisitorState>::type discovered_state; typedef typename search_color_map_ops::template set_color<Vertex, search_colors::Gray, ColorState>::type discovered_colors; // loop over out edges typedef typename mpl::fold<typename mpl_graph::out_edges<Vertex, Graph>::type, mpl::pair<discovered_state, discovered_colors>, mpl::if_<boost::is_same<search_color_map_ops::get_color<mpl_graph::target<mpl::_2, Graph>, mpl::second<mpl::_1> >, search_colors::White>, // unseen target: recurse depth_first_search<Graph, VisitorOps, typename VisitorOps::template tree_edge<mpl::_2, Graph, mpl::first<mpl::_1> >, mpl_graph::target<mpl::_2, Graph>, mpl::second<mpl::_1> >, // seen: back or forward edge mpl::pair<mpl::if_<boost::is_same<typename search_color_map_ops::template get_color<mpl_graph::target<mpl::_2, Graph>, mpl::second<mpl::_1 > >, search_colors::Gray>, typename VisitorOps::template back_edge<mpl::_2, Graph, mpl::first<mpl::_1> >, typename VisitorOps::template forward_or_cross_edge<mpl::_2, Graph, mpl::first<mpl::_1> > >, // Black mpl::second<mpl::_1> > > >::type after_outedges; // leave vertex, and done! typedef mpl::pair<typename VisitorOps::template finish_vertex<Vertex, Graph, typename mpl::first<after_outedges>::type >::type, typename search_color_map_ops::template set_color<Vertex, search_colors::Black, typename mpl::second<after_outedges>::type>::type> type; }; // requires IncidenceGraph, VertexListGraph template<typename Graph, typename VisitorOps, typename VisitorState, typename FirstVertex = typename mpl::front<typename mpl_graph::vertices<Graph>::type>::type, typename ColorState = create_search_color_map::type> struct depth_first_search_all : // visit first then rest mpl::fold<typename mpl_graph::vertices<Graph>::type, typename depth_first_search<Graph, VisitorOps, VisitorState, FirstVertex, ColorState>::type, mpl::if_<boost::is_same<search_color_map_ops::get_color<mpl::_2, mpl::second<mpl::_1> >, search_colors::White>, // visit any yet unvisited depth_first_search<Graph, VisitorOps, mpl::first<mpl::_1>, mpl::_2, mpl::second<mpl::_1> >, mpl::_1> > {}; } // namespace mpl_graph } // namespace msm } // namespace boost #endif // BOOST_MSM_MPL_GRAPH_DEPTH_FIRST_SEARCH_HPP_INCLUDED
{ "pile_set_name": "Github" }
test_no_mva.doctest - more detailed doctests for stdnum.no.mva module Copyright (C) 2015 Arthur de Jong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA This file contains more detailed doctests for the stdnum.no.mva module. It tries to cover more corner cases and detailed functionality that is not really useful as module documentation. >>> from stdnum.no import mva These have been found online and should all be valid numbers. >>> numbers = ''' ... ... 965 920 358 MVA ... 980 430 596 MVA ... 998 772 680 MVA ... NO 987 008 644 MVA ... NO 917 313 008 MVA ... NO 948007029 MVA ... NO 966 813 946 MVA ... NO 982 930 057 MVA ... NO 982 952 573 MVA ... NO 987 008 644 MVA ... NO 987 989 297 MVA ... ... ''' >>> [x for x in numbers.splitlines() if x and not mva.is_valid(x)] []
{ "pile_set_name": "Github" }
// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs defs_freebsd.go package socket type iovec struct { Base *byte Len uint64 } type msghdr struct { Name *byte Namelen uint32 Pad_cgo_0 [4]byte Iov *iovec Iovlen int32 Pad_cgo_1 [4]byte Control *byte Controllen uint32 Flags int32 } type cmsghdr struct { Len uint32 Level int32 Type int32 } type sockaddrInet struct { Len uint8 Family uint8 Port uint16 Addr [4]byte /* in_addr */ Zero [8]int8 } type sockaddrInet6 struct { Len uint8 Family uint8 Port uint16 Flowinfo uint32 Addr [16]byte /* in6_addr */ Scope_id uint32 } const ( sizeofIovec = 0x10 sizeofMsghdr = 0x30 sizeofCmsghdr = 0xc sizeofSockaddrInet = 0x10 sizeofSockaddrInet6 = 0x1c )
{ "pile_set_name": "Github" }
package com.htmessage.yichatopen.activity.main.details; import com.htmessage.yichatopen.activity.BasePresenter; /** * 项目名称:yichat0504 * 类描述:UserDetailsBasePrester 描述: * 创建人:songlijie * 创建时间:2017/7/10 11:35 * 邮箱:[email protected] */ public interface UserDetailsBasePrester extends BasePresenter { void onDestory(); void refreshInfo(String userId, boolean backTask); boolean isMe(String userId); boolean isFriend(String userId); }
{ "pile_set_name": "Github" }
import webpack from 'webpack' const entry = `${__dirname}/src/index.js` module.exports = { entry: { 'index.browser': entry, 'index.browser.min': entry }, output: { path: `${__dirname}/dist/src`, filename: '[name].js', library: 'firedux', libraryTarget: 'umd', umdNamedDefine: true }, externals: [ { firebase: 'firebase', updeep: 'updeep' } ], module: { rules: [ { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' } ] }, devtool: 'source-map', plugins: [ new webpack.optimize.UglifyJsPlugin({ include: /\.min\.js$/ }) ] }
{ "pile_set_name": "Github" }
## Reformer Model trained on "Crime and Punishment" Crime and Punishment text was taken from `gs://trax-ml/reformer/crime-and-punishment-2554.txt`. Model was trained in flax using colab notebook proposed by authors: https://colab.research.google.com/github/google/trax/blob/master/trax/models/reformer/text_generation.ipynb Weights were converted to Hugging Face PyTorch `ReformerModelWithLMHead`. Model is used as a proof of concept that the forward pass works for a `ReformerModelWithLMHead`. Given that the model was trained only for 30mins on a ~0.5M tokens dataset and has only 320 tokens, the generation results are reasonable: ```python model = ReformerModelWithLMHead.from_pretrained("patrickvonplaten/reformer-crime-and-punish") tok = ReformerTokenizer.from_pretrained("patrickvonplaten/reformer-crime-and-punish") tok.decode(model.generate(tok.encode("A few months later", return_tensors="pt"), do_sample=True,temperature=0.7, max_length=100)[0]) # gives:'A few months later on was more than anything in the flat. # “I have already.” “That’s not my notion that he had forgotten him. # What does that matter? And why do you mean? It’s only another fellow,” he said as he went out, as though he want' ```
{ "pile_set_name": "Github" }
var searchData= [ ['wrapangle',['wrapAngle',['../a00195.html#ga069527c6dbd64f53435b8ebc4878b473',1,'glm']]] ];
{ "pile_set_name": "Github" }
// automatically generated by the FlatBuffers compiler, do not modify package org.nd4j.graph; import java.nio.*; import java.lang.*; import java.nio.ByteOrder; import java.util.*; import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class FlatTiming extends Table { public static FlatTiming getRootAsFlatTiming(ByteBuffer _bb) { return getRootAsFlatTiming(_bb, new FlatTiming()); } public static FlatTiming getRootAsFlatTiming(ByteBuffer _bb, FlatTiming obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__assign(_bb.getInt(_bb.position()) + _bb.position(), _bb)); } public void __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; } public FlatTiming __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public int id() { int o = __offset(4); return o != 0 ? bb.getInt(o + bb_pos) : 0; } public String name() { int o = __offset(6); return o != 0 ? __string(o + bb_pos) : null; } public ByteBuffer nameAsByteBuffer() { return __vector_as_bytebuffer(6, 1); } public LongPair timing() { return timing(new LongPair()); } public LongPair timing(LongPair obj) { int o = __offset(8); return o != 0 ? obj.__assign(__indirect(o + bb_pos), bb) : null; } public static int createFlatTiming(FlatBufferBuilder builder, int id, int nameOffset, int timingOffset) { builder.startObject(3); FlatTiming.addTiming(builder, timingOffset); FlatTiming.addName(builder, nameOffset); FlatTiming.addId(builder, id); return FlatTiming.endFlatTiming(builder); } public static void startFlatTiming(FlatBufferBuilder builder) { builder.startObject(3); } public static void addId(FlatBufferBuilder builder, int id) { builder.addInt(0, id, 0); } public static void addName(FlatBufferBuilder builder, int nameOffset) { builder.addOffset(1, nameOffset, 0); } public static void addTiming(FlatBufferBuilder builder, int timingOffset) { builder.addOffset(2, timingOffset, 0); } public static int endFlatTiming(FlatBufferBuilder builder) { int o = builder.endObject(); return o; } }
{ "pile_set_name": "Github" }
// Module: Log4CPLUS // File: consoleappender.cxx // Created: 6/2001 // Author: Tad E. Smith // // // Copyright 2001-2017 Tad E. Smith // // 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. #include <log4cplus/layout.h> #include <log4cplus/consoleappender.h> #include <log4cplus/streams.h> #include <log4cplus/helpers/loglog.h> #include <log4cplus/helpers/stringhelper.h> #include <log4cplus/helpers/property.h> #include <log4cplus/spi/loggingevent.h> #include <log4cplus/thread/syncprims-pub-impl.h> #include <ostream> namespace log4cplus { namespace helpers { extern log4cplus::thread::Mutex const & getConsoleOutputMutex (); } // namespace helpers log4cplus::thread::Mutex const & ConsoleAppender::getOutputMutex () { return helpers::getConsoleOutputMutex (); } ////////////////////////////////////////////////////////////////////////////// // ConsoleAppender ctors and dtor ////////////////////////////////////////////////////////////////////////////// ConsoleAppender::ConsoleAppender(bool logToStdErr_, bool immediateFlush_) : logToStdErr(logToStdErr_), immediateFlush(immediateFlush_) { } ConsoleAppender::ConsoleAppender(const helpers::Properties & properties) : Appender(properties), logToStdErr(false), immediateFlush(false) { properties.getBool (logToStdErr, LOG4CPLUS_TEXT("logToStdErr")); properties.getBool (immediateFlush, LOG4CPLUS_TEXT("ImmediateFlush")); } ConsoleAppender::~ConsoleAppender() { destructorImpl(); } ////////////////////////////////////////////////////////////////////////////// // ConsoleAppender public methods ////////////////////////////////////////////////////////////////////////////// void ConsoleAppender::close() { helpers::getLogLog().debug( LOG4CPLUS_TEXT("Entering ConsoleAppender::close()..")); closed = true; } ////////////////////////////////////////////////////////////////////////////// // ConsoleAppender protected methods ////////////////////////////////////////////////////////////////////////////// void ConsoleAppender::append(const spi::InternalLoggingEvent& event) { thread::MutexGuard guard (getOutputMutex ()); tostream& output = (logToStdErr ? tcerr : tcout); layout->formatAndAppend(output, event); if(immediateFlush) { output.flush(); } } } // namespace log4cplus
{ "pile_set_name": "Github" }
/** * * WARNING! This file was autogenerated by: * _ _ _ _ __ __ * | | | | | | |\ \ / / * | | | | |_| | \ V / * | | | | _ | / \ * | |_| | | | |/ /^\ \ * \___/\_| |_/\/ \/ * * This file was autogenerated by UnrealHxGenerator using UHT definitions. * It only includes UPROPERTYs and UFUNCTIONs. Do not modify it! * In order to add more definitions, create or edit a type with the same name/package, but with an `_Extra` suffix **/ package unreal.alembiclibrary; @:umodule("AlembicLibrary") @:glueCppIncludes("Public/AbcImportSettings.h") @:noCopy @:noEquals @:uextern @:ustruct extern class FAbcSamplingSettings { /** Skip empty (pre-roll) frames and start importing at the frame which actually contains data **/ @:uproperty public var bSkipEmpty : Bool; /** Ending index to stop sampling the animation at **/ @:uproperty public var FrameEnd : unreal.Int32; /** Starting index to start sampling the animation from **/ @:uproperty public var FrameStart : unreal.Int32; /** Time steps to take when sampling the animation **/ @:uproperty public var TimeSteps : unreal.Float32; /** Steps to take when sampling the animation **/ @:uproperty public var FrameSteps : unreal.Int32; /** Type of sampling performed while importing the animation **/ @:uproperty public var SamplingType : unreal.alembiclibrary.EAlembicSamplingType; }
{ "pile_set_name": "Github" }
# Most of the parameters will be imported from the training config src: ckpt: 'ckpt/asr_example_sd0/best_ctc.pth' config: 'config/libri/asr_example.yaml' data: corpus: name: 'Librispeech' dev_split: ['dev-clean'] test_split: ['test-clean'] decode: beam_size: 20 vocab_candidate: 30 lm_path: 'ckpt/lm_example_sd0/best_ppx.pth' lm_config: 'config/libri/lm_example.yaml' lm_weight: 0.5 ctc_weight: 1.0
{ "pile_set_name": "Github" }
// ----------------------------------------- // input-group and input-group-addon styles // note: form-groups are not required // @mixin input-group-button-variation($vertical-padding) { .input-group-btn { .btn { //margin: 0 0 $vertical-padding 0; } } } // default margin - no form-group required @include input-group-button-variation(input-padding-y); .bmd-form-group-sm { @include input-group-button-variation($input-padding-y-sm); } .bmd-form-group-lg { @include input-group-button-variation($input-padding-y-lg); } .input-group { // may be in or outside of form-group .input-group-addon { display: flex; justify-content: center; align-items: center; background-color: transparent; border-color: transparent; } .input-group-addon + input, input + .input-group-addon { margin-left: .75rem; } }
{ "pile_set_name": "Github" }
package v1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // +genclient // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // KubeScheduler provides information to configure an operator to manage scheduler. type KubeScheduler struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` // spec is the specification of the desired behavior of the Kubernetes Scheduler // +kubebuilder:validation:Required // +required Spec KubeSchedulerSpec `json:"spec"` // status is the most recently observed status of the Kubernetes Scheduler // +optional Status KubeSchedulerStatus `json:"status"` } type KubeSchedulerSpec struct { StaticPodOperatorSpec `json:",inline"` } type KubeSchedulerStatus struct { StaticPodOperatorStatus `json:",inline"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // KubeSchedulerList is a collection of items type KubeSchedulerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` // Items contains the items Items []KubeScheduler `json:"items"` }
{ "pile_set_name": "Github" }
#!/usr/bin/env python # coding=utf-8 # 使用reduce计算序列和与积 if __name__ == "__main__": # 计算和 sum_result = reduce(lambda x, y: x+y, range(1, 10)) assert(sum_result == 45) print(sum_result) # 计算阶乘 factorial_result = reduce(lambda x, y: x * y, range(1, 10)) assert(factorial_result == 362880) print(factorial_result)
{ "pile_set_name": "Github" }
// https://html.spec.whatwg.org/#htmlareaelement [Exposed=Window, HTMLConstructor] interface HTMLAreaElement : HTMLElement { [CEReactions, Reflect] attribute DOMString alt; [CEReactions, Reflect] attribute DOMString coords; [CEReactions, Reflect] attribute DOMString shape; [CEReactions, Reflect] attribute DOMString target; // [CEReactions] attribute DOMString download; // [CEReactions] attribute USVString ping; [CEReactions, Reflect] attribute DOMString rel; [SameObject, PutForwards=value] readonly attribute DOMTokenList relList; // [CEReactions] attribute DOMString referrerPolicy; // also has obsolete members }; HTMLAreaElement includes HTMLHyperlinkElementUtils; partial interface HTMLAreaElement { [CEReactions, Reflect] attribute boolean noHref; };
{ "pile_set_name": "Github" }
{ "name": "terraform-test-app", "config_vars": { "FOO": "bar" } }
{ "pile_set_name": "Github" }
/******************************************************************************* * Copyright (c) 2008, 2013 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.jdt.internal.codeassist.impl; import java.util.Map; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.internal.core.Initializer; import org.eclipse.jdt.internal.core.JavaElement; @SuppressWarnings("rawtypes") public class AssistInitializer extends Initializer { private Map bindingCache; private Map infoCache; public AssistInitializer(JavaElement parent, int count, Map bindingCache, Map infoCache) { super(parent, count); this.bindingCache = bindingCache; this.infoCache = infoCache; } @Override public Object getElementInfo(IProgressMonitor monitor) throws JavaModelException { return this.infoCache.get(this); } @Override public IType getType(String typeName, int count) { AssistSourceType type = new AssistSourceType(this, typeName, this.bindingCache, this.infoCache); type.occurrenceCount = count; return type; } }
{ "pile_set_name": "Github" }
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js (function(global) { global.ng = global.ng || {}; global.ng.common = global.ng.common || {}; global.ng.common.locales = global.ng.common.locales || {}; const u = undefined; function plural(n) { let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length; if (i === 1 && v === 0) return 1; return 5; } global.ng.common.locales['ca-es-valencia'] = [ 'ca-ES-VALENCIA', [['a. m.', 'p. m.'], u, u], u, [ ['dg', 'dl', 'dt', 'dc', 'dj', 'dv', 'ds'], ['dg.', 'dl.', 'dt.', 'dc.', 'dj.', 'dv.', 'ds.'], ['diumenge', 'dilluns', 'dimarts', 'dimecres', 'dijous', 'divendres', 'dissabte'], ['dg.', 'dl.', 'dt.', 'dc.', 'dj.', 'dv.', 'ds.'] ], u, [ ['GN', 'FB', 'MÇ', 'AB', 'MG', 'JN', 'JL', 'AG', 'ST', 'OC', 'NV', 'DS'], [ 'de gen.', 'de febr.', 'de març', 'd’abr.', 'de maig', 'de juny', 'de jul.', 'd’ag.', 'de set.', 'd’oct.', 'de nov.', 'de des.' ], [ 'de gener', 'de febrer', 'de març', 'd’abril', 'de maig', 'de juny', 'de juliol', 'd’agost', 'de setembre', 'd’octubre', 'de novembre', 'de desembre' ] ], [ ['GN', 'FB', 'MÇ', 'AB', 'MG', 'JN', 'JL', 'AG', 'ST', 'OC', 'NV', 'DS'], [ 'gen.', 'febr.', 'març', 'abr.', 'maig', 'juny', 'jul.', 'ag.', 'set.', 'oct.', 'nov.', 'des.' ], [ 'gener', 'febrer', 'març', 'abril', 'maig', 'juny', 'juliol', 'agost', 'setembre', 'octubre', 'novembre', 'desembre' ] ], [['aC', 'dC'], u, ['abans de Crist', 'després de Crist']], 1, [6, 0], ['d/M/yy', 'd MMM y', 'd MMMM \'de\' y', 'EEEE, d MMMM \'de\' y'], ['H:mm', 'H:mm:ss', 'H:mm:ss z', 'H:mm:ss zzzz'], ['{1} {0}', '{1}, {0}', '{1} \'a\' \'les\' {0}', u], [',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '#,##0.00 ¤', '#E0'], 'EUR', '€', 'euro', { 'AUD': ['AU$', '$'], 'BRL': [u, 'R$'], 'CAD': [u, '$'], 'CNY': [u, '¥'], 'ESP': ['₧'], 'MXN': [u, '$'], 'THB': ['฿'], 'USD': [u, '$'], 'VEF': [u, 'Bs F'], 'XCD': [u, '$'], 'XXX': [] }, 'ltr', plural, [ [ ['mitjanit', 'mat.', 'matí', 'md', 'tarda', 'vespre', 'nit'], ['mitjanit', 'matinada', 'matí', 'migdia', 'tarda', 'vespre', 'nit'], u ], [['mitjanit', 'matinada', 'matí', 'migdia', 'tarda', 'vespre', 'nit'], u, u], [ '00:00', ['00:00', '06:00'], ['06:00', '12:00'], ['12:00', '13:00'], ['13:00', '19:00'], ['19:00', '21:00'], ['21:00', '24:00'] ] ] ]; })(typeof globalThis !== 'undefined' && globalThis || typeof global !== 'undefined' && global || typeof window !== 'undefined' && window);
{ "pile_set_name": "Github" }
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.alibaba.druid.bvt.sql.oracle.select; import com.alibaba.druid.sql.OracleTest; import com.alibaba.druid.sql.SQLUtils; import com.alibaba.druid.sql.ast.SQLStatement; import com.alibaba.druid.sql.dialect.oracle.parser.OracleStatementParser; import com.alibaba.druid.sql.dialect.oracle.visitor.OracleSchemaStatVisitor; import org.junit.Assert; import java.util.List; public class OracleSelectTest73 extends OracleTest { public void test_0() throws Exception { String sql = // "SELECT fact_1_id,\n" + " fact_2_id,\n" + " SUM(sales_value) AS sales_value\n" + "FROM dimension_tab\n" + "GROUP BY CUBE (fact_1_id, fact_2_id)\n" + "ORDER BY fact_1_id, fact_2_id;"; // OracleStatementParser parser = new OracleStatementParser(sql); List<SQLStatement> statementList = parser.parseStatementList(); SQLStatement stmt = statementList.get(0); print(statementList); Assert.assertEquals(1, statementList.size()); OracleSchemaStatVisitor visitor = new OracleSchemaStatVisitor(); stmt.accept(visitor); System.out.println("Tables : " + visitor.getTables()); System.out.println("fields : " + visitor.getColumns()); System.out.println("coditions : " + visitor.getConditions()); System.out.println("relationships : " + visitor.getRelationships()); System.out.println("orderBy : " + visitor.getOrderByColumns()); assertEquals(1, visitor.getTables().size()); assertEquals(3, visitor.getColumns().size()); { String text = SQLUtils.toOracleString(stmt); assertEquals("SELECT fact_1_id, fact_2_id, SUM(sales_value) AS sales_value\n" + "FROM dimension_tab\n" + "GROUP BY CUBE (fact_1_id, fact_2_id\n" + "ORDER BY fact_1_id, fact_2_id;", text); } // Assert.assertTrue(visitor.getColumns().contains(new TableStat.Column("acduser.vw_acd_info", "xzqh"))); // Assert.assertTrue(visitor.getOrderByColumns().contains(new TableStat.Column("employees", "last_name"))); } }
{ "pile_set_name": "Github" }
While some other iconv(3) implementations - like FreeBSD iconv(3) - choose the "many small shared libraries" and dlopen(3) approach, this implementation packs everything into a single shared library. Here is a comparison of the two designs. * Run-time efficiency 1. A dlopen() based approach needs a cache of loaded shared libraries. Otherwise, every iconv_open() call will result in a call to dlopen() and thus to file system related system calls - which is prohibitive because some applications use the iconv_open/iconv/iconv_close sequence for every single filename, string, or piece of text. 2. In terms of virtual memory use, both approaches are on par. Being shared libraries, the tables are shared between any processes that use them. And because of the demand loading used by Unix systems (and because libiconv does not have initialization functions), only those parts of the tables which are needed (typically very few kilobytes) will be read from disk and paged into main memory. 3. Even with a cache of loaded shared libraries, the dlopen() based approach makes more system calls, because it has to load one or two shared libraries for every encoding in use. * Total size In the dlopen(3) approach, every shared library has a symbol table and relocation offset. All together, FreeBSD iconv installs more than 200 shared libraries with a total size of 2.3 MB. Whereas libiconv installs 0.45 MB. * Extensibility The dlopen(3) approach is good for guaranteeing extensibility if the iconv implementation is distributed without source. (Or when, as in glibc, you cannot rebuild iconv without rebuilding your libc, thus possibly destabilizing your system.) The libiconv package achieves extensibility through the LGPL license: Every user has access to the source of the package and can extend and replace just libiconv.so. The places which have to be modified when a new encoding is added are as follows: add an #include statement in iconv.c, add an entry in the table in iconv.c, and of course, update the README and iconv_open.3 manual page. * Use within other packages If you want to incorporate an iconv implementation into another package (such as a mail user agent or web browser), the single library approach is easier, because: 1. In the shared library approach you have to provide the right directory prefix which will be used at run time. 2. Incorporating iconv as a static library into the executable is easy - it won't need dynamic loading. (This assumes that your package is under the LGPL or GPL license.) All conversions go through Unicode. This is possible because most of the world's characters have already been allocated in the Unicode standard. Therefore we have for each encoding two functions: - For conversion from the encoding to Unicode, a function called xxx_mbtowc. - For conversion from Unicode to the encoding, a function called xxx_wctomb, and for stateful encodings, a function called xxx_reset which returns to the initial shift state. All our functions operate on a single Unicode character at a time. This is obviously less efficient than operating on an entire buffer of characters at a time, but it makes the coding considerably easier and less bug-prone. Those who wish best performance should install the Real Thing (TM): GNU libc 2.1 or newer.
{ "pile_set_name": "Github" }
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. /** * AuthCodeListener is the base class from which * special CustomFileProtocol and HttpAuthCode inherit * their structure and members. */ export abstract class AuthCodeListener { private hostName: string; /** * Constructor * @param hostName - A string that represents the host name that should be listened on (i.e. 'msal' or '127.0.0.1') */ constructor(hostName: string) { this.hostName = hostName; } public get host(): string { return this.hostName; } public abstract start(): void; public abstract close(): void; }
{ "pile_set_name": "Github" }
{ "version": "1.0", "examples": { } }
{ "pile_set_name": "Github" }
module github.com/flosch/pongo2/v4 go 1.14 require ( github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b )
{ "pile_set_name": "Github" }
<?php /* * This file is part of Flarum. * * For detailed copyright and license information, please view the * LICENSE file that was distributed with this source code. */ namespace Flarum\Tests\integration; use Flarum\Extend\ExtenderInterface; use Flarum\Foundation\InstalledSite; use Flarum\Foundation\Paths; use Illuminate\Database\ConnectionInterface; use Laminas\Diactoros\ServerRequest; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; abstract class TestCase extends \PHPUnit\Framework\TestCase { use BuildsHttpRequests; /** * @var \Flarum\Foundation\InstalledApp */ protected $app; /** * @return \Flarum\Foundation\InstalledApp */ protected function app() { if (is_null($this->app)) { $site = new InstalledSite( new Paths([ 'base' => __DIR__.'/tmp', 'vendor' => __DIR__.'/../../vendor', 'public' => __DIR__.'/tmp/public', 'storage' => __DIR__.'/tmp/storage', ]), include __DIR__.'/tmp/config.php' ); $site->extendWith($this->extenders); $this->app = $site->bootApp(); } return $this->app; } /** * @var ExtenderInterface[] */ protected $extenders = []; protected function extend(ExtenderInterface ...$extenders) { $this->extenders = array_merge($this->extenders, $extenders); } /** * @var RequestHandlerInterface */ protected $server; protected function server(): RequestHandlerInterface { if (is_null($this->server)) { $this->server = $this->app()->getRequestHandler(); } return $this->server; } protected $database; protected function database(): ConnectionInterface { if (is_null($this->database)) { $this->database = $this->app()->getContainer()->make( ConnectionInterface::class ); } return $this->database; } protected function prepareDatabase(array $tableData) { // We temporarily disable foreign key checks to simplify this process. $this->database()->getSchemaBuilder()->disableForeignKeyConstraints(); // First, truncate all referenced tables so that they are empty. foreach (array_keys($tableData) as $table) { if ($table !== 'settings') { $this->database()->table($table)->truncate(); } } // Then, insert all rows required for this test case. foreach ($tableData as $table => $rows) { foreach ($rows as $row) { if ($table === 'settings') { $this->database()->table($table)->updateOrInsert( ['key' => $row['key']], $row ); } else { $this->database()->table($table)->updateOrInsert( isset($row['id']) ? ['id' => $row['id']] : $row, $row ); } } } // And finally, turn on foreign key checks again. $this->database()->getSchemaBuilder()->enableForeignKeyConstraints(); } /** * Send a full HTTP request through Flarum's middleware stack. */ protected function send(ServerRequestInterface $request): ResponseInterface { return $this->server()->handle($request); } /** * Build a HTTP request that can be passed through middleware. * * This method simplifies building HTTP requests for use in our HTTP-level * integration tests. It provides options for all features repeatedly being * used in those tests. * * @param string $method * @param string $path * @param array $options * An array of optional request properties. * Currently supported: * - "json" should point to a JSON-serializable object that will be * serialized and used as request body. The corresponding Content-Type * header will be set automatically. * - "authenticatedAs" should identify an *existing* user by ID. This will * cause an access token to be created for this user, which will be used * to authenticate the request via the "Authorization" header. * - "cookiesFrom" should hold a response object from a previous HTTP * interaction. All cookies returned from the server in that response * (via the "Set-Cookie" header) will be copied to the cookie params of * the new request. * @return ServerRequestInterface */ protected function request(string $method, string $path, array $options = []): ServerRequestInterface { $request = new ServerRequest([], [], $path, $method); // Do we want a JSON request body? if (isset($options['json'])) { $request = $this->requestWithJsonBody( $request, $options['json'] ); } // Authenticate as a given user if (isset($options['authenticatedAs'])) { $request = $this->requestAsUser( $request, $options['authenticatedAs'] ); } // Let's copy the cookies from a previous response if (isset($options['cookiesFrom'])) { $request = $this->requestWithCookiesFrom( $request, $options['cookiesFrom'] ); } return $request; } }
{ "pile_set_name": "Github" }
{ "callOutput1" : { "_info" : { "comment" : "", "filledwith" : "testeth 1.6.0-alpha.0-11+commit.978e68d2", "lllcversion" : "Version: 0.5.0-develop.2018.11.9+commit.9709dfe0.Linux.g++", "source" : "src/GeneralStateTestsFiller/stCallCreateCallCodeTest/callOutput1Filler.json", "sourceHash" : "b3018140f14a1cfd1aa7a9f0d2a26fca01c6fc501889021d37ef8753566f6b54" }, "env" : { "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", "currentDifficulty" : "0x20000", "currentGasLimit" : "0x0f4240", "currentNumber" : "0x01", "currentTimestamp" : "0x03e8", "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" }, "post" : { "Byzantium" : [ { "hash" : "0x798d1e55defeabefb8e2625b6429f7ab0d47474b6624a013ec0b385cf031e772", "indexes" : { "data" : 0, "gas" : 0, "value" : 0 }, "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" } ], "Constantinople" : [ { "hash" : "0x798d1e55defeabefb8e2625b6429f7ab0d47474b6624a013ec0b385cf031e772", "indexes" : { "data" : 0, "gas" : 0, "value" : 0 }, "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" } ], "ConstantinopleFix" : [ { "hash" : "0x798d1e55defeabefb8e2625b6429f7ab0d47474b6624a013ec0b385cf031e772", "indexes" : { "data" : 0, "gas" : 0, "value" : 0 }, "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" } ], "Frontier" : [ { "hash" : "0x7b27c1a486cad63a429086b85416cb2d8cebb0c159a7f73be018c30de2ecdf28", "indexes" : { "data" : 0, "gas" : 0, "value" : 0 }, "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" } ] }, "pre" : { "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "0x0de0b6b3a7640000", "code" : "0x7f5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b66000526000600060006000600073aaae7baea6a6c7c4c2dfeb977efac326af552d8761c350f150600051600055", "nonce" : "0x00", "storage" : { } }, "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0x0de0b6b3a7640000", "code" : "", "nonce" : "0x00", "storage" : { } }, "0xaaae7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "0x0de0b6b3a7640000", "code" : "0x6001600101600055", "nonce" : "0x00", "storage" : { } } }, "transaction" : { "data" : [ "0x" ], "gasLimit" : [ "0x0f4240" ], "gasPrice" : "0x00", "nonce" : "0x00", "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", "to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87", "value" : [ "0x0186a0" ] } } }
{ "pile_set_name": "Github" }
import { IconDefinition } from '../types'; declare const DeploymentUnitOutlined: IconDefinition; export default DeploymentUnitOutlined;
{ "pile_set_name": "Github" }
<html> <head> <title>GHEdit Documentation</title> <script> if (document.location.hostname == 'spiffcode.github.io') { (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-81752237-1', {'siteSpeedSampleRate': 100}); ga('send', 'pageview'); } </script> </head> <body> <h1>GHEdit</h1> <a href="https://spiffcode.github.io/ghedit/">GHEdit</a> is a fast, rich, open source code editor that runs great in web browsers. It's directly integrated with GitHub so you can work on your projects without installing anything. <p> GHEdit is derived from Microsoft's <a href='https://code.visualstudio.com'>Visual Studio Code</a>. We developed it to learn about web-based development environments and think it is useful enough to share. </p> <h1>Features</h1> <ul> <li>GitHub integration (view and edit repositories and files, in place)</li> <li>Complete project explorer and text editor</li> <li>Syntax highlighting and auto-complete for all major programming and markup languages</li> <li>IntelliSense for Javascript, TypeScript, JSON</li> <li>Project-wide search and replace</li> <li>Fuzzy filename search</li> <li>Side-by-side file comparison</li> <li>Themes</li> <li>Customizable Keyboard Shortcuts</li> <li>Per-user, per-project customizable editor settings</li> <li>Free and <a href='https://github.com/spiffcode/ghedit'>Open Source!</a></li> </ul> We have not implemented all the major features of Visual Studio Code. These in particular: <ul> <li>Debugger</li> <li>Extensions</li> <li>Git integration</li> <li>Integrated Terminal</li> <li>Project-wide IntelliSense</li> <li>Task Runner</li> <li>Markdown Preview</li> </ul> <h1>Usage</h1> <ul style="list-style: none; margin-left: -15px"> <li>- Select one of your GitHub repositories to get started.</li> <li>- Select a file for viewing/editing from the Explorer panel on the left. <li>- Edit the file as you wish!</li> <li>- Saved files are committed directly to GitHub.</li> <li>- If you don't see your private repositories, sign out, check the "Include my private repositories" box, and sign back in again.</li> <li>- Customize GHEdit User and Workspace Settings, Keyboard Shortcuts, and Color Theme.</li> </ul> <h1>FAQ</h1> <p><b>Q: Why did you do it?</b></p> <p>A: We think Visual Studio Code is a great IDE and that Cloud IDEs have tremendous potential. We decided to see if VSCode could be adapted to run in the Cloud. It can! </p> <p><b>Q: How does it work?</b></p> <p>A: GHEdit runs entirely in the browser without server-side processing. It is hosted as a static GitHub Page and uses the GitHub API to read/write repositories and files. The only custom "back-end" is a <a href="https://github.com/spiffcode/ghedit/blob/master/ghedit/auth-server/function.js">tiny Google Cloud Function</a> to facilitate the GitHub authorization process. User Settings are saved to a GitHub Gist.</p> <p><b>Q: What next?</b></p> <p>A: We're testing what people think of GHEdit and deciding what to do next. <a href="https://github.com/spiffcode/ghedit/issues/new?labels=feedback">Tell us what YOU think.</a></p> <p><b>Q: Why do I need to give GHEdit GitHub permissions?</b></p> <p>A: GHEdit needs permission to operate on your behalf and to not be throttled by GitHub API rate limits.</p> <p><b>Q: Go To Symbol, Go To Definition, and IntelliSense don't always seem to work. What's up with that?</b></p> <p>A: GHEdit can only perform these operations across open files :(</p> <p><b>Q: What's your privacy policy?</b></p> <p>A: We don't retain any user information, including GitHub credentials. We use Google Analytics to monitor overall usage.</p> </body> </html>
{ "pile_set_name": "Github" }
// Copyright (c) 2011, The Toft Authors. // All rights reserved. // // Author: CHEN Feng <[email protected]> #ifndef TOFT_ENCODING_ASCII_H #define TOFT_ENCODING_ASCII_H #include <limits.h> #include <stdint.h> namespace toft { // Used for ASCII encoding only. // If you want to process locale ralated text, please using <ctype.h> struct Ascii { private: Ascii(); ~Ascii(); private: enum CharTypeMask { kUpper = 1 << 0, kLower = 1 << 1, kDigit = 1 << 2, kHexDigit = 1 << 3, kBlank = 1 << 4, kSpace = 1 << 5, kControl = 1 << 6, kPunct = 1 << 7, kPrint = 1 << 8, kGraph = 1 << 9, }; public: static bool IsValid(char c) { return (c & 0x80) == 0; } static inline bool IsLower(char c) { return CharIncludeAnyTypeMask(c, kLower); } static inline bool IsUpper(char c) { return CharIncludeAnyTypeMask(c, kUpper); } static bool IsAlpha(char c) { return CharIncludeAnyTypeMask(c, kUpper | kLower); } static bool IsDigit(char c) { return CharIncludeAnyTypeMask(c, kDigit); } static bool IsAlphaNumber(char c) { return CharIncludeAnyTypeMask(c, kUpper | kLower | kDigit); } static bool IsBlank(char c) { return CharIncludeAnyTypeMask(c, kBlank); } static inline bool IsSpace(char c) { return CharIncludeAnyTypeMask(c, kSpace); } static bool IsControl(char c) { return CharIncludeAnyTypeMask(c, kControl); } static inline bool IsPunct(char c) { return CharIncludeAnyTypeMask(c, kPunct); } static inline bool IsHexDigit(char c) { return CharIncludeAnyTypeMask(c, kHexDigit); } static inline bool IsGraph(char c) { return CharIncludeAnyTypeMask(c, kGraph); } static inline bool IsPrint(char c) { return CharIncludeAnyTypeMask(c, kPrint); } static inline char ToAscii(char c) { return c & 0x7F; } static inline char ToLower(char c) { return IsUpper(c) ? c + ('a' - 'A') : c; } static inline char ToUpper(char c) { return IsLower(c) ? c - ('a' - 'A') : c; } private: static int GetCharTypeMask(char c) { return table[static_cast<unsigned char>(c)]; } static bool CharIncludeAnyTypeMask(char c, int mask) { return (GetCharTypeMask(c) & mask) != 0; } static bool CharIncludeAallTypeMask(char c, int mask) { return (GetCharTypeMask(c) & mask) == mask; } private: static const uint16_t table[UCHAR_MAX + 1]; }; } // namespace toft #endif // TOFT_ENCODING_ASCII_H
{ "pile_set_name": "Github" }
/* * Copyright (C) 2016 Felix Fietkau <[email protected]> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/pci.h> #include "mt76x2.h" #include "mt76x2_trace.h" static const struct pci_device_id mt76pci_device_table[] = { { PCI_DEVICE(0x14c3, 0x7662) }, { PCI_DEVICE(0x14c3, 0x7612) }, { PCI_DEVICE(0x14c3, 0x7602) }, { }, }; static int mt76pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) { struct mt76x2_dev *dev; int ret; ret = pcim_enable_device(pdev); if (ret) return ret; ret = pcim_iomap_regions(pdev, BIT(0), pci_name(pdev)); if (ret) return ret; pci_set_master(pdev); ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); if (ret) return ret; dev = mt76x2_alloc_device(&pdev->dev); if (!dev) return -ENOMEM; mt76_mmio_init(&dev->mt76, pcim_iomap_table(pdev)[0]); mt76x2_reset_wlan(dev, false); dev->mt76.rev = mt76_rr(dev, MT_ASIC_VERSION); dev_info(dev->mt76.dev, "ASIC revision: %08x\n", dev->mt76.rev); ret = devm_request_irq(dev->mt76.dev, pdev->irq, mt76x2_irq_handler, IRQF_SHARED, KBUILD_MODNAME, dev); if (ret) goto error; ret = mt76x2_register_device(dev); if (ret) goto error; /* Fix up ASPM configuration */ /* RG_SSUSB_G1_CDR_BIR_LTR = 0x9 */ mt76_rmw_field(dev, 0x15a10, 0x1f << 16, 0x9); /* RG_SSUSB_G1_CDR_BIC_LTR = 0xf */ mt76_rmw_field(dev, 0x15a0c, 0xf << 28, 0xf); /* RG_SSUSB_CDR_BR_PE1D = 0x3 */ mt76_rmw_field(dev, 0x15c58, 0x3 << 6, 0x3); return 0; error: ieee80211_free_hw(mt76_hw(dev)); return ret; } static void mt76pci_remove(struct pci_dev *pdev) { struct mt76_dev *mdev = pci_get_drvdata(pdev); struct mt76x2_dev *dev = container_of(mdev, struct mt76x2_dev, mt76); mt76_unregister_device(mdev); mt76x2_cleanup(dev); ieee80211_free_hw(mdev->hw); } MODULE_DEVICE_TABLE(pci, mt76pci_device_table); MODULE_FIRMWARE(MT7662_FIRMWARE); MODULE_FIRMWARE(MT7662_ROM_PATCH); MODULE_LICENSE("Dual BSD/GPL"); static struct pci_driver mt76pci_driver = { .name = KBUILD_MODNAME, .id_table = mt76pci_device_table, .probe = mt76pci_probe, .remove = mt76pci_remove, }; module_pci_driver(mt76pci_driver);
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <resources> <array name="popup_menu_items"> <item>Compress</item> <item>Extract</item> <item>Remove</item> </array> </resources>
{ "pile_set_name": "Github" }
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") go_library( name = "go_default_library", srcs = [ "client_manager.go", "main.go", ], importpath = "github.com/kubeflow/pipelines/backend/src/cache", visibility = ["//visibility:private"], deps = [ "//backend/src/cache/client:go_default_library", "//backend/src/cache/model:go_default_library", "//backend/src/cache/server:go_default_library", "//backend/src/cache/storage:go_default_library", "//backend/src/common/util:go_default_library", "@com_github_cenkalti_backoff//:go_default_library", "@com_github_golang_glog//:go_default_library", "@com_github_jinzhu_gorm//:go_default_library", ], ) go_binary( name = "cache", embed = [":go_default_library"], visibility = ["//visibility:public"], )
{ "pile_set_name": "Github" }
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // <complex> // complex& operator/=(const T& rhs); #include <complex> #include <cassert> #include "test_macros.h" template <class T> void test() { std::complex<T> c(1); assert(c.real() == 1); assert(c.imag() == 0); c /= 0.5; assert(c.real() == 2); assert(c.imag() == 0); c /= 0.5; assert(c.real() == 4); assert(c.imag() == 0); c /= -0.5; assert(c.real() == -8); assert(c.imag() == 0); c.imag(2); c /= 0.5; assert(c.real() == -16); assert(c.imag() == 4); } int main(int, char**) { test<float>(); test<double>(); test<long double>(); return 0; }
{ "pile_set_name": "Github" }
#!/bin/sh # creates or updates a fat binary by replacing or adding a new architecture. # the target file doesn't need to exist - it will be created if not # already present if [ -z "$1" -o -z "$2" ]; then echo "" echo " Usage: updatefat <target> <new-file>" echo "" echo " Works even if <target> doesn't exist or is not fat." echo "" exit 1 fi thisarch=`lipo -detailed_info "$2"|sed -n 's/.\{0,\}architecture:* \(.\{1,\}\)/\1/p'` if [ -z "$thisarch" ]; then echo "Cannot find out architecture of $2" >&2 exit 2 fi #echo "architecture: $thisarch"; if [ -e "$1" ]; then \ if lipo -detailed_info "$1"|grep "architecture:* $thisarch\$" > /dev/null; then if lipo -info "$1"|grep ^Non-fat > /dev/null; then lipo -create "$2" -o "$1" else lipo -replace "$thisarch" "$2" "$1" -o "$1" fi else lipo -create "$1" "$2" -o "$1" fi else lipo -create "$2" -o "$1" fi
{ "pile_set_name": "Github" }
package org.wikidata.query.rdf.tool.utils; import static java.nio.file.Files.delete; import static java.nio.file.Files.getLastModifiedTime; import static java.time.Instant.now; import static java.time.temporal.ChronoUnit.HOURS; import java.io.BufferedOutputStream; import java.io.ByteArrayOutputStream; import java.io.FilterOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.StandardOpenOption; import java.time.Clock; import java.time.Duration; import java.time.Instant; import java.util.concurrent.atomic.AtomicLong; import java.util.stream.Stream; import org.apache.commons.io.input.TeeInputStream; import org.apache.commons.io.output.NullOutputStream; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.google.common.annotations.VisibleForTesting; /** * Wraps {@link OutputStream}s and send a copy to file once it has been read. * * The output file will be rotated on demand. Files older than 1h will be deleted. */ public class FileStreamDumper implements StreamDumper { private static final Logger log = LoggerFactory.getLogger(FileStreamDumper.class); private static final String DUMP_FILE_SUFFIX = ".dump"; private final Path dumpDir; public final Duration keepDumpsDuration; private final Clock clock; private OutputStream dumpOutput; private final AtomicLong numberOfRotations = new AtomicLong(); public FileStreamDumper(Path dumpDir) { this(dumpDir, Clock.systemUTC(), Duration.of(1, HOURS)); } /** Creates a StreamDumper that will dump to {@code dumpDir}. */ public FileStreamDumper(Path dumpDir, Clock clock, Duration keepDumpsDuration) { this.dumpDir = dumpDir; this.clock = clock; dumpOutput = createDumpFile(); this.keepDumpsDuration = keepDumpsDuration; } @Override public InputStream wrap(InputStream inputStream) { if (inputStream == null) return null; ByteArrayOutputStream buffer = new ByteArrayOutputStream(); OutputStream tee = new FilterOutputStream(buffer) { @Override public void close() throws IOException { synchronized (FileStreamDumper.this) { dumpOutput.write(buffer.toByteArray()); } super.close(); } }; return new TeeInputStream(inputStream, tee, true); } @Override public void rotate() { synchronized (this) { closeCurrentOutput(); dumpOutput = createDumpFile(); } // cleanup once per 20 runs if (numberOfRotations.incrementAndGet() % 20 == 0) { cleanDumps(); } } @VisibleForTesting synchronized void flush() throws IOException { dumpOutput.flush(); } private void closeCurrentOutput() { try { dumpOutput.close(); } catch (IOException ioe) { log.info("Could not close dump file, some data might be lost", ioe); } } private OutputStream createDumpFile() { try { long timestamp = clock.millis(); final Path dumpFile = dumpDir.resolve(String.valueOf(timestamp) + DUMP_FILE_SUFFIX); return new BufferedOutputStream(Files.newOutputStream(dumpFile, StandardOpenOption.CREATE)); } catch (IOException ioe) { log.info("Could not create dump file, dump will be ignored."); return new NullOutputStream(); } } /** * Periodically clean up old dumps. */ private void cleanDumps() { Instant cutoff = now(clock).minus(keepDumpsDuration); try (Stream<Path> dumpFiles = Files.list(dumpDir)) { dumpFiles .filter(p -> { try { return p.toString().endsWith(DUMP_FILE_SUFFIX) && getLastModifiedTime(p).toInstant().isBefore(cutoff); } catch (IOException e) { return false; } }) .forEach(p -> { try { delete(p); } catch (IOException e) { log.info("Could not delete {}.", p); } }); } catch (IOException e) { log.info("Could not list files in {}", dumpDir, e); } } }
{ "pile_set_name": "Github" }
package archive import ( "archive/tar" "bytes" "io/ioutil" ) // Generate generates a new archive from the content provided // as input. // // `files` is a sequence of path/content pairs. A new file is // added to the archive for each pair. // If the last pair is incomplete, the file is created with an // empty content. For example: // // Generate("foo.txt", "hello world", "emptyfile") // // The above call will return an archive with 2 files: // * ./foo.txt with content "hello world" // * ./empty with empty content // // FIXME: stream content instead of buffering // FIXME: specify permissions and other archive metadata func Generate(input ...string) (Archive, error) { files := parseStringPairs(input...) buf := new(bytes.Buffer) tw := tar.NewWriter(buf) for _, file := range files { name, content := file[0], file[1] hdr := &tar.Header{ Name: name, Size: int64(len(content)), } if err := tw.WriteHeader(hdr); err != nil { return nil, err } if _, err := tw.Write([]byte(content)); err != nil { return nil, err } } if err := tw.Close(); err != nil { return nil, err } return ioutil.NopCloser(buf), nil } func parseStringPairs(input ...string) (output [][2]string) { output = make([][2]string, 0, len(input)/2+1) for i := 0; i < len(input); i += 2 { var pair [2]string pair[0] = input[i] if i+1 < len(input) { pair[1] = input[i+1] } output = append(output, pair) } return }
{ "pile_set_name": "Github" }
# encoding: utf-8 Gem::Specification.new do |s| s.name = 'redcarpet' s.version = '3.5.0' s.summary = "Markdown that smells nice" s.description = 'A fast, safe and extensible Markdown to (X)HTML parser' s.date = '2019-07-29' s.email = '[email protected]' s.homepage = 'http://github.com/vmg/redcarpet' s.authors = ["Natacha Porté", "Vicent Martí"] s.license = 'MIT' s.required_ruby_version = '>= 1.9.2' # = MANIFEST = s.files = %w[ COPYING Gemfile README.markdown Rakefile bin/redcarpet ext/redcarpet/autolink.c ext/redcarpet/autolink.h ext/redcarpet/buffer.c ext/redcarpet/buffer.h ext/redcarpet/extconf.rb ext/redcarpet/houdini.h ext/redcarpet/houdini_href_e.c ext/redcarpet/houdini_html_e.c ext/redcarpet/html.c ext/redcarpet/html.h ext/redcarpet/html_blocks.h ext/redcarpet/html_smartypants.c ext/redcarpet/markdown.c ext/redcarpet/markdown.h ext/redcarpet/rc_markdown.c ext/redcarpet/rc_render.c ext/redcarpet/redcarpet.h ext/redcarpet/stack.c ext/redcarpet/stack.h lib/redcarpet.rb lib/redcarpet/cli.rb lib/redcarpet/compat.rb lib/redcarpet/render_man.rb lib/redcarpet/render_strip.rb redcarpet.gemspec test/benchmark.rb test/custom_render_test.rb test/fixtures/benchmark.md test/html5_test.rb test/html_render_test.rb test/html_toc_render_test.rb test/markdown_test.rb test/pathological_inputs_test.rb test/redcarpet_bin_test.rb test/redcarpet_compat_test.rb test/safe_render_test.rb test/smarty_html_test.rb test/smarty_pants_test.rb test/stripdown_render_test.rb test/test_helper.rb ] # = MANIFEST = s.test_files = s.files.grep(%r{^test/}) s.extra_rdoc_files = ["COPYING"] s.extensions = ["ext/redcarpet/extconf.rb"] s.executables = ["redcarpet"] s.require_paths = ["lib"] s.add_development_dependency "rake", "~> 12.2.1" s.add_development_dependency "rake-compiler", "~> 1.0.3" s.add_development_dependency "test-unit", "~> 3.2.3" end
{ "pile_set_name": "Github" }
/* * Copyright (c) 1987, 1993, 1994 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)getopt.c 8.3 (Berkeley) 4/27/95"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "getopt.h" int opterr = 1, /* if error message should be printed */ optind = 1, /* index into parent argv vector */ optopt, /* character checked for validity */ optreset; /* reset getopt */ char *optarg; /* argument associated with option */ #define BADCH (int)'?' #define BADARG (int)':' #define EMSG "" /* * getopt -- * Parse argc/argv argument vector. */ int getopt(int nargc, char * const *nargv, const char *ostr) { char *cp; static char *__progname; static char *place = EMSG; /* option letter processing */ char *oli; /* option letter list index */ if (__progname == NULL) { if ((cp = strrchr(nargv[0], '/')) != NULL) __progname = cp + 1; else __progname = nargv[0]; } if (optreset || !*place) { /* update scanning pointer */ optreset = 0; if (optind >= nargc || *(place = nargv[optind]) != '-') { place = EMSG; return (-1); } if (place[1] && *++place == '-') { /* found "--" */ ++optind; place = EMSG; return (-1); } } /* option letter okay? */ if ((optopt = (int)*place++) == (int)':' || !(oli = strchr(ostr, optopt))) { /* * if the user didn't specify '-' as an option, * assume it means -1. */ if (optopt == (int)'-') return (-1); if (!*place) ++optind; if (opterr && *ostr != ':') (void)fprintf(stderr, "%s: illegal option -- %c\n", __progname, optopt); return (BADCH); } if (*++oli != ':') { /* don't need argument */ optarg = NULL; if (!*place) ++optind; } else { /* need an argument */ if (*place) /* no white space */ optarg = place; else if (nargc <= ++optind) { /* no arg */ place = EMSG; if (*ostr == ':') return (BADARG); if (opterr) (void)fprintf(stderr, "%s: option requires an argument -- %c\n", __progname, optopt); return (BADCH); } else /* white space */ optarg = nargv[optind]; place = EMSG; ++optind; } return (optopt); /* dump back option letter */ }
{ "pile_set_name": "Github" }
const merge = require('webpack-merge'); const common = require('./webpack.common.js'); module.exports = merge(common, { devtool: 'inline-source-map', mode: 'development', });
{ "pile_set_name": "Github" }
/* * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information * * 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, see <http://www.gnu.org/licenses/>. */ #ifndef SCARLET_M_ #define SCARLET_M_ #include "CreatureAIImpl.h" #define SMScriptName "instance_scarlet_monastery" #define DataHeader "SM" uint32 const EncounterCount = 10; enum SMDataTypes { DATA_MOGRAINE_AND_WHITE_EVENT = 1, DATA_MOGRAINE = 2, DATA_WHITEMANE = 3, DATA_HORSEMAN_EVENT = 4, DATA_PUMPKIN_SHRINE = 5, DATA_VORREL = 6, DATA_ARCANIST_DOAN = 7, DATA_AZSHIR = 8, DATA_BLOODMAGE_THALNOS = 9, DATA_HEROD = 10, DATA_HIGH_INQUISITOR_FAIRBANKS = 11, DATA_HOUNDMASTER_LOKSEY = 12, DATA_INTERROGATOR_VISHAS = 13, DATA_SCORN = 14 }; enum SMCreatureIds { NPC_MOGRAINE = 3976, NPC_WHITEMANE = 3977, NPC_VORREL = 3981, NPC_HORSEMAN = 23682, NPC_HEAD = 23775, NPC_PUMPKIN = 23694 }; enum SMGameObjectIds { GO_HIGH_INQUISITORS_DOOR = 104600, GO_PUMPKIN_SHRINE = 186267 }; template<typename AI> inline AI* GetScarletMonasteryAI(Creature* creature) { return GetInstanceAI<AI>(creature, SMScriptName); } #endif // SCARLET_M_
{ "pile_set_name": "Github" }
.BYT $EF,$A1 ;ALL OF THIS IS AVAILABLE FOR PATCH SPACE .BYT $DF,$A6 .BYT $E1,$B1 .BYT $E2,$B2 .BYT $E3,$B3 .BYT $E4,$B4 .BYT $E5,$B5 .BYT $E6,$B6 .BYT $E7,$B7 .BYT $E8,$B8 .BYT $E9,$B9 .BYT $FA,$BA .BYT $FB,$BB .BYT $FC,$BC .BYT $EC,$BD .BYT $FE,$BE .BYT $84,$BF .BYT $F7,$C0 .BYT $F8,$DB .BYT $F9,$DD .BYT $EA,$DE UNKAT .BYT $5E,$E0 ;E0-E2 SPECIAL CONVERSION CODES .BYT $5B,$E1 .BYT $5D,$E2 .BYT $40,$B0 .BYT $61,$B1 ;UNCONVERSION .BYT $78,$DB .BYT $79,$DD .BYT $66,$B6 .BYT $77,$C0 .BYT $70,$F0 .BYT $71,$F1 .BYT $72,$F2 .BYT $73,$F3 .BYT $74,$F4 .BYT $75,$F5 .BYT $76,$F6 .BYT $7D,$FD .END
{ "pile_set_name": "Github" }
# Barbeque [![Build Status](https://travis-ci.org/cookpad/barbeque.svg?branch=master)](https://travis-ci.org/cookpad/barbeque) Job queue system to run job with Docker <img src="https://raw.githubusercontent.com/cookpad/barbeque/master/doc/images/job_definitions.png" height="280px" /> <img src="https://raw.githubusercontent.com/cookpad/barbeque/master/doc/images/statistics.png" height="280px" /> ## Project Status Barbeque is used on production at Cookpad. ## What's Barbeque? Barbeque is a job queue system that consists of: - Web console to manage jobs - Web API to queue a job - Worker to execute a job A job for Barbeque is a command you configured on web console. A message serialized by JSON and a job name are given to the command when performed. In Barbeque worker, they are done on Docker container. ## Why Barbeque? - You can achieve job-level auto scaling using tools like [Amazon ECS](https://aws.amazon.com/ecs/) [EC2 Auto Scaling group](https://aws.amazon.com/autoscaling/) - For Amazon ECS, Barbeque has Hako executor - You don't have to manage infrastructure for each application like Resque or Sidekiq For details, see [Scalable Job Queue System Built with Docker // Speaker Deck](https://speakerdeck.com/k0kubun/scalable-job-queue-system-built-with-docker). ## Deployment ### Web API & console Install barbeque.gem to an empty Rails app and mount `Barbeque::Engine`. And deploy it as you like. You also need to prepare MySQL, Amazon SQS and Amazon S3. #### For sandbox environment Barbeque's enqueue API tries to be independent of MySQL by design. Although that design policy, verifying the enqueued job is useful in some environment (such as sandboxed environment). Passing `BARBEQUE_VERIFY_ENQUEUED_JOBS=1` to the Web API server enables the feature that verifies the enqueued job by accessing MySQL. ### Worker ```bash $ rake barbeque:worker BARBEQUE_QUEUE=default ``` The rake task launches four worker processes. - Two runners - receives message from SQS queue, starts job execution and stores its identifier to the database - One execution poller - gets execution status and reflect it to the database - One retry poller - gets retried execution status and reflect it to the database ## Usage Web API documentation is available at [doc/toc.md](./doc/toc.md). ### Ruby [barbeque\_client.gem](https://github.com/cookpad/barbeque_client) has API client and ActiveJob integration. ## Executor Barbeque executor can be customized in config/barbeque.yml. Executor is responsible for starting executions and getting status of executions. Barbeque has currently two executors. ### Docker (default) Barbeque::Executor::Docker starts execution by `docker run --detach` and gets status by `docker inspect`. ### Hako Barbeque::Executor::Hako starts execution by `hako oneshot --no-wait` and gets status from S3 task notification. #### Requirement You must configure CloudWatch Events for putting S3 task notification. See Hako's documentation for detail. https://github.com/eagletmt/hako/blob/master/docs/ecs-task-notification.md ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
{ "pile_set_name": "Github" }
V1 # 3D Points 8 # Number of points 0 0 0 # Point 0: X Y Z 0 0 -0.08 0.165 0 -0.08 0.165 0 0 0.165 0.068 0 0.165 0.068 -0.08 0 0.068 -0.08 0 0.068 0 # Point 7 # 3D Lines 0 # Number of lines # Faces from 3D lines 0 # Number of faces # Faces from 3D points 6 # Number of faces 4 0 1 2 3 # Face 0: [number of points] [index of the 3D points]... 4 1 6 5 2 4 4 5 6 7 4 0 3 4 7 4 5 4 3 2 4 0 7 6 1 # Face 5 # 3D cylinders 0 # Number of cylinders # 3D circles 0 # Number of circles
{ "pile_set_name": "Github" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head><link rel="apple-touch-icon" sizes="180x180" href="/glide/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/glide/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/glide/favicon-16x16.png"><link rel="manifest" href="/glide/manifest.json"> <!-- Generated by javadoc (1.8.0_151) on Tue Apr 10 14:10:05 PDT 2018 --> <title>LruArrayPool (glide API)</title> <meta name="date" content="2018-04-10"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="LruArrayPool (glide API)"; } } catch(err) { } //--> var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":42,"i5":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/IntegerArrayAdapter.html" title="class in com.bumptech.glide.load.engine.bitmap_recycle"><span class="typeNameLink">Prev&nbsp;Class</span></a></li> <li><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/LruBitmapPool.html" title="class in com.bumptech.glide.load.engine.bitmap_recycle"><span class="typeNameLink">Next&nbsp;Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?com/bumptech/glide/load/engine/bitmap_recycle/LruArrayPool.html" target="_top">Frames</a></li> <li><a href="LruArrayPool.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">com.bumptech.glide.load.engine.bitmap_recycle</div> <h2 title="Class LruArrayPool" class="title">Class LruArrayPool</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li><a href="http://d.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> <li> <ul class="inheritance"> <li>com.bumptech.glide.load.engine.bitmap_recycle.LruArrayPool</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">ArrayPool</a></dd> </dl> <hr> <br> <pre>public final class <span class="typeNameLabel">LruArrayPool</span> extends <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> implements <a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">ArrayPool</a></pre> <div class="block">A fixed size Array Pool that evicts arrays using an LRU strategy to keep the pool under the maximum byte size.</div> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- =========== FIELD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="field.summary"> <!-- --> </a> <h3>Field Summary</h3> <ul class="blockList"> <li class="blockList"><a name="fields.inherited.from.class.com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool"> <!-- --> </a> <h3>Fields inherited from interface&nbsp;com.bumptech.glide.load.engine.bitmap_recycle.<a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">ArrayPool</a></h3> <code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html#STANDARD_BUFFER_SIZE_BYTES">STANDARD_BUFFER_SIZE_BYTES</a></code></li> </ul> </li> </ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/LruArrayPool.html#LruArrayPool--">LruArrayPool</a></span>()</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/LruArrayPool.html#LruArrayPool-int-">LruArrayPool</a></span>(int&nbsp;maxSize)</code> <div class="block">Constructor for a new pool.</div> </td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/LruArrayPool.html#clearMemory--">clearMemory</a></span>()</code> <div class="block">Clears all arrays from the pool.</div> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code>&lt;T&gt;&nbsp;T</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/LruArrayPool.html#get-int-java.lang.Class-">get</a></span>(int&nbsp;size, <a href="http://d.android.com/reference/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;arrayClass)</code> <div class="block">Returns a non-null array of the given type with a length >= to the given size.</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code>&lt;T&gt;&nbsp;T</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/LruArrayPool.html#getExact-int-java.lang.Class-">getExact</a></span>(int&nbsp;size, <a href="http://d.android.com/reference/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;arrayClass)</code> <div class="block">Returns a non-null array of the given type with a length exactly equal to the given size.</div> </td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code>&lt;T&gt;&nbsp;void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/LruArrayPool.html#put-T-">put</a></span>(T&nbsp;array)</code> <div class="block">Optionally adds the given array of the given type to the pool.</div> </td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code>&lt;T&gt;&nbsp;void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/LruArrayPool.html#put-T-java.lang.Class-">put</a></span>(T&nbsp;array, <a href="http://d.android.com/reference/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;arrayClass)</code> <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div> </td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/LruArrayPool.html#trimMemory-int-">trimMemory</a></span>(int&nbsp;level)</code> <div class="block">Trims the size to the appropriate level.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class&nbsp;java.lang.<a href="http://d.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> <code><a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://d.android.com/reference/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="LruArrayPool--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>LruArrayPool</h4> <pre>public&nbsp;LruArrayPool()</pre> </li> </ul> <a name="LruArrayPool-int-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>LruArrayPool</h4> <pre>public&nbsp;LruArrayPool(int&nbsp;maxSize)</pre> <div class="block">Constructor for a new pool.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>maxSize</code> - The maximum size in integers of the pool.</dd> </dl> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="put-java.lang.Object-java.lang.Class-"> <!-- --> </a><a name="put-T-java.lang.Class-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>put</h4> <pre><a href="http://d.android.com/reference/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> public&nbsp;&lt;T&gt;&nbsp;void&nbsp;put(T&nbsp;array, <a href="http://d.android.com/reference/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;arrayClass)</pre> <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div> <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html#put-T-java.lang.Class-">ArrayPool</a></code></span></div> <div class="block">Optionally adds the given array of the given type to the pool. <p>Arrays may be ignored, for example if the array is larger than the maximum size of the pool.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html#put-T-java.lang.Class-">put</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">ArrayPool</a></code></dd> </dl> </li> </ul> <a name="put-java.lang.Object-"> <!-- --> </a><a name="put-T-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>put</h4> <pre>public&nbsp;&lt;T&gt;&nbsp;void&nbsp;put(T&nbsp;array)</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html#put-T-">ArrayPool</a></code></span></div> <div class="block">Optionally adds the given array of the given type to the pool. <p>Arrays may be ignored, for example if the array is larger than the maximum size of the pool.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html#put-T-">put</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">ArrayPool</a></code></dd> </dl> </li> </ul> <a name="getExact-int-java.lang.Class-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getExact</h4> <pre>public&nbsp;&lt;T&gt;&nbsp;T&nbsp;getExact(int&nbsp;size, <a href="http://d.android.com/reference/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;arrayClass)</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html#getExact-int-java.lang.Class-">ArrayPool</a></code></span></div> <div class="block">Returns a non-null array of the given type with a length exactly equal to the given size. <p>If an array of the given size isn't in the pool, a new one will be allocated. <p>This class makes no guarantees about the contents of the returned array.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html#getExact-int-java.lang.Class-">getExact</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">ArrayPool</a></code></dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html#get-int-java.lang.Class-"><code>ArrayPool.get(int, Class)</code></a></dd> </dl> </li> </ul> <a name="get-int-java.lang.Class-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>get</h4> <pre>public&nbsp;&lt;T&gt;&nbsp;T&nbsp;get(int&nbsp;size, <a href="http://d.android.com/reference/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;arrayClass)</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html#get-int-java.lang.Class-">ArrayPool</a></code></span></div> <div class="block">Returns a non-null array of the given type with a length >= to the given size. <p>If an array of the given size isn't in the pool, a new one will be allocated. <p>This class makes no guarantees about the contents of the returned array.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html#get-int-java.lang.Class-">get</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">ArrayPool</a></code></dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html#getExact-int-java.lang.Class-"><code>ArrayPool.getExact(int, Class)</code></a></dd> </dl> </li> </ul> <a name="clearMemory--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>clearMemory</h4> <pre>public&nbsp;void&nbsp;clearMemory()</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html#clearMemory--">ArrayPool</a></code></span></div> <div class="block">Clears all arrays from the pool.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html#clearMemory--">clearMemory</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">ArrayPool</a></code></dd> </dl> </li> </ul> <a name="trimMemory-int-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>trimMemory</h4> <pre>public&nbsp;void&nbsp;trimMemory(int&nbsp;level)</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html#trimMemory-int-">ArrayPool</a></code></span></div> <div class="block">Trims the size to the appropriate level.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html#trimMemory-int-">trimMemory</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/ArrayPool.html" title="interface in com.bumptech.glide.load.engine.bitmap_recycle">ArrayPool</a></code></dd> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>level</code> - A trim specified in <a href="http://d.android.com/reference/android/content/ComponentCallbacks2.html?is-external=true" title="class or interface in android.content"><code>ComponentCallbacks2</code></a>.</dd> </dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/IntegerArrayAdapter.html" title="class in com.bumptech.glide.load.engine.bitmap_recycle"><span class="typeNameLink">Prev&nbsp;Class</span></a></li> <li><a href="../../../../../../com/bumptech/glide/load/engine/bitmap_recycle/LruBitmapPool.html" title="class in com.bumptech.glide.load.engine.bitmap_recycle"><span class="typeNameLink">Next&nbsp;Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../../../index.html?com/bumptech/glide/load/engine/bitmap_recycle/LruArrayPool.html" target="_top">Frames</a></li> <li><a href="LruArrayPool.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
{ "pile_set_name": "Github" }
import getLog from './js/get-log' const dispose = async (): Promise<any> => { const log = getLog(`dispose`) log.debug(`disposing the adapter`) } export default dispose
{ "pile_set_name": "Github" }
<blockquote><p>A list within a blockquote:</p> <ul> <li>asterisk 1</li> <li>asterisk 2</li> <li>asterisk 3</li> </ul> </blockquote>
{ "pile_set_name": "Github" }
/* * Copyright 2012-2019 the original author or 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.boot.diagnostics.analyzer; import org.junit.jupiter.api.Test; import org.springframework.boot.diagnostics.FailureAnalysis; import org.springframework.boot.diagnostics.FailureAnalyzer; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.EnableAsync; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.fail; /** * Tests for {@link BeanNotOfRequiredTypeFailureAnalyzer}. * * @author Andy Wilkinson */ class BeanNotOfRequiredTypeFailureAnalyzerTests { private final FailureAnalyzer analyzer = new BeanNotOfRequiredTypeFailureAnalyzer(); @Test void jdkProxyCausesInjectionFailure() { FailureAnalysis analysis = performAnalysis(JdkProxyConfiguration.class); assertThat(analysis.getDescription()).startsWith("The bean 'asyncBean'"); assertThat(analysis.getDescription()).contains("'" + AsyncBean.class.getName() + "'"); assertThat(analysis.getDescription()).endsWith(String.format("%s%n", SomeInterface.class.getName())); } private FailureAnalysis performAnalysis(Class<?> configuration) { FailureAnalysis analysis = this.analyzer.analyze(createFailure(configuration)); assertThat(analysis).isNotNull(); return analysis; } private Exception createFailure(Class<?> configuration) { try (ConfigurableApplicationContext context = new AnnotationConfigApplicationContext(configuration)) { fail("Expected failure did not occur"); return null; } catch (Exception ex) { return ex; } } @Configuration(proxyBeanMethods = false) @EnableAsync @Import(UserConfiguration.class) static class JdkProxyConfiguration { @Bean AsyncBean asyncBean() { return new AsyncBean(); } } @Configuration(proxyBeanMethods = false) static class UserConfiguration { @Bean AsyncBeanUser user(AsyncBean bean) { return new AsyncBeanUser(bean); } } static class AsyncBean implements SomeInterface { @Async void foo() { } @Override public void bar() { } } interface SomeInterface { void bar(); } static class AsyncBeanUser { AsyncBeanUser(AsyncBean asyncBean) { } } }
{ "pile_set_name": "Github" }
/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #if !defined(FUSION_VECTOR50_05052005_0207) #define FUSION_VECTOR50_05052005_0207 #include <boost/fusion/support/config.hpp> #include <boost/fusion/container/vector/detail/cpp03/vector50_fwd.hpp> #include <boost/fusion/support/sequence_base.hpp> #include <boost/fusion/support/is_sequence.hpp> #include <boost/fusion/support/detail/access.hpp> #include <boost/fusion/iterator/next.hpp> #include <boost/fusion/iterator/deref.hpp> #include <boost/fusion/sequence/intrinsic/begin.hpp> #include <boost/fusion/container/vector/detail/at_impl.hpp> #include <boost/fusion/container/vector/detail/value_at_impl.hpp> #include <boost/fusion/container/vector/detail/begin_impl.hpp> #include <boost/fusion/container/vector/detail/end_impl.hpp> #include <boost/mpl/void.hpp> #include <boost/mpl/int.hpp> #include <boost/mpl/at.hpp> #include <boost/mpl/bool.hpp> #include <boost/mpl/vector/vector50.hpp> #include <boost/type_traits/is_convertible.hpp> #include <boost/utility/enable_if.hpp> #include <boost/preprocessor/dec.hpp> #include <boost/preprocessor/iteration/iterate.hpp> #include <boost/preprocessor/repetition/enum.hpp> #include <boost/preprocessor/repetition/enum_shifted.hpp> #include <boost/preprocessor/repetition/enum_params.hpp> #include <boost/preprocessor/repetition/enum_binary_params.hpp> #include <boost/preprocessor/repetition/repeat_from_to.hpp> #if !defined(BOOST_FUSION_DONT_USE_PREPROCESSED_FILES) #include <boost/fusion/container/vector/detail/cpp03/preprocessed/vector50.hpp> #else #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES) #pragma wave option(preserve: 2, line: 0, output: "preprocessed/vector50.hpp") #endif /*============================================================================= Copyright (c) 2001-2011 Joel de Guzman Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) This is an auto-generated file. Do not edit! ==============================================================================*/ #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES) #pragma wave option(preserve: 1) #endif namespace boost { namespace fusion { struct vector_tag; struct fusion_sequence_tag; struct random_access_traversal_tag; #define FUSION_HASH # // expand vector41 to vector50 #define BOOST_PP_FILENAME_1 <boost/fusion/container/vector/detail/cpp03/vector_n.hpp> #define BOOST_PP_ITERATION_LIMITS (41, 50) #include BOOST_PP_ITERATE() #undef FUSION_HASH }} #if defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES) #pragma wave option(output: null) #endif #endif // BOOST_FUSION_DONT_USE_PREPROCESSED_FILES #endif
{ "pile_set_name": "Github" }
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCommentHighlightRules = function() { this.$rules = { "start" : [ { token : "comment.doc.tag", regex : "@[\\w\\d_]+" // TODO: fix email addresses }, DocCommentHighlightRules.getTagRule(), { defaultToken : "comment.doc", caseInsensitive: true }] }; }; oop.inherits(DocCommentHighlightRules, TextHighlightRules); DocCommentHighlightRules.getTagRule = function(start) { return { token : "comment.doc.tag.storage.type", regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b" }; }; DocCommentHighlightRules.getStartRule = function(start) { return { token : "comment.doc", // doc comment regex : "\\/\\*(?=\\*)", next : start }; }; DocCommentHighlightRules.getEndRule = function (start) { return { token : "comment.doc", // closing comment regex : "\\*\\/", next : start }; }; exports.DocCommentHighlightRules = DocCommentHighlightRules; }); ace.define("ace/mode/haxe_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules; var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var HaxeHighlightRules = function() { var keywords = ( "break|case|cast|catch|class|continue|default|else|enum|extends|for|function|if|implements|import|in|inline|interface|new|override|package|private|public|return|static|super|switch|this|throw|trace|try|typedef|untyped|var|while|Array|Void|Bool|Int|UInt|Float|Dynamic|String|List|Hash|IntHash|Error|Unknown|Type|Std" ); var buildinConstants = ( "null|true|false" ); var keywordMapper = this.createKeywordMapper({ "variable.language": "this", "keyword": keywords, "constant.language": buildinConstants }, "identifier"); this.$rules = { "start" : [ { token : "comment", regex : "\\/\\/.*$" }, DocCommentHighlightRules.getStartRule("doc-start"), { token : "comment", // multi line comment regex : "\\/\\*", next : "comment" }, { token : "string.regexp", regex : "[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)" }, { token : "string", // single line regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]' }, { token : "string", // single line regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']" }, { token : "constant.numeric", // hex regex : "0[xX][0-9a-fA-F]+\\b" }, { token : "constant.numeric", // float regex : "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b" }, { token : "constant.language.boolean", regex : "(?:true|false)\\b" }, { token : keywordMapper, regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b" }, { token : "keyword.operator", regex : "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|delete|typeof|void)" }, { token : "punctuation.operator", regex : "\\?|\\:|\\,|\\;|\\." }, { token : "paren.lparen", regex : "[[({<]" }, { token : "paren.rparen", regex : "[\\])}>]" }, { token : "text", regex : "\\s+" } ], "comment" : [ { token : "comment", // closing comment regex : "\\*\\/", next : "start" }, { defaultToken : "comment" } ] }; this.embedRules(DocCommentHighlightRules, "doc-", [ DocCommentHighlightRules.getEndRule("start") ]); }; oop.inherits(HaxeHighlightRules, TextHighlightRules); exports.HaxeHighlightRules = HaxeHighlightRules; }); ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) { "use strict"; var Range = require("../range").Range; var MatchingBraceOutdent = function() {}; (function() { this.checkOutdent = function(line, input) { if (! /^\s+$/.test(line)) return false; return /^\s*\}/.test(input); }; this.autoOutdent = function(doc, row) { var line = doc.getLine(row); var match = line.match(/^(\s*\})/); if (!match) return 0; var column = match[1].length; var openBracePos = doc.findMatchingBracket({row: row, column: column}); if (!openBracePos || openBracePos.row == row) return 0; var indent = this.$getIndent(doc.getLine(openBracePos.row)); doc.replace(new Range(row, 0, row, column-1), indent); }; this.$getIndent = function(line) { return line.match(/^\s*/)[0]; }; }).call(MatchingBraceOutdent.prototype); exports.MatchingBraceOutdent = MatchingBraceOutdent; }); ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) { "use strict"; var oop = require("../../lib/oop"); var Range = require("../../range").Range; var BaseFoldMode = require("./fold_mode").FoldMode; var FoldMode = exports.FoldMode = function(commentRegex) { if (commentRegex) { this.foldingStartMarker = new RegExp( this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start) ); this.foldingStopMarker = new RegExp( this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end) ); } }; oop.inherits(FoldMode, BaseFoldMode); (function() { this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/; this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/; this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/; this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/; this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/; this._getFoldWidgetBase = this.getFoldWidget; this.getFoldWidget = function(session, foldStyle, row) { var line = session.getLine(row); if (this.singleLineBlockCommentRe.test(line)) { if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line)) return ""; } var fw = this._getFoldWidgetBase(session, foldStyle, row); if (!fw && this.startRegionRe.test(line)) return "start"; // lineCommentRegionStart return fw; }; this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) { var line = session.getLine(row); if (this.startRegionRe.test(line)) return this.getCommentRegionBlock(session, line, row); var match = line.match(this.foldingStartMarker); if (match) { var i = match.index; if (match[1]) return this.openingBracketBlock(session, match[1], row, i); var range = session.getCommentFoldRange(row, i + match[0].length, 1); if (range && !range.isMultiLine()) { if (forceMultiline) { range = this.getSectionRange(session, row); } else if (foldStyle != "all") range = null; } return range; } if (foldStyle === "markbegin") return; var match = line.match(this.foldingStopMarker); if (match) { var i = match.index + match[0].length; if (match[1]) return this.closingBracketBlock(session, match[1], row, i); return session.getCommentFoldRange(row, i, -1); } }; this.getSectionRange = function(session, row) { var line = session.getLine(row); var startIndent = line.search(/\S/); var startRow = row; var startColumn = line.length; row = row + 1; var endRow = row; var maxRow = session.getLength(); while (++row < maxRow) { line = session.getLine(row); var indent = line.search(/\S/); if (indent === -1) continue; if (startIndent > indent) break; var subRange = this.getFoldWidgetRange(session, "all", row); if (subRange) { if (subRange.start.row <= startRow) { break; } else if (subRange.isMultiLine()) { row = subRange.end.row; } else if (startIndent == indent) { break; } } endRow = row; } return new Range(startRow, startColumn, endRow, session.getLine(endRow).length); }; this.getCommentRegionBlock = function(session, line, row) { var startColumn = line.search(/\s*$/); var maxRow = session.getLength(); var startRow = row; var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/; var depth = 1; while (++row < maxRow) { line = session.getLine(row); var m = re.exec(line); if (!m) continue; if (m[1]) depth--; else depth++; if (!depth) break; } var endRow = row; if (endRow > startRow) { return new Range(startRow, startColumn, endRow, line.length); } }; }).call(FoldMode.prototype); }); ace.define("ace/mode/haxe",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/haxe_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextMode = require("./text").Mode; var HaxeHighlightRules = require("./haxe_highlight_rules").HaxeHighlightRules; var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent; var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour; var CStyleFoldMode = require("./folding/cstyle").FoldMode; var Mode = function() { this.HighlightRules = HaxeHighlightRules; this.$outdent = new MatchingBraceOutdent(); this.$behaviour = new CstyleBehaviour(); this.foldingRules = new CStyleFoldMode(); }; oop.inherits(Mode, TextMode); (function() { this.lineCommentStart = "//"; this.blockComment = {start: "/*", end: "*/"}; this.getNextLineIndent = function(state, line, tab) { var indent = this.$getIndent(line); var tokenizedLine = this.getTokenizer().getLineTokens(line, state); var tokens = tokenizedLine.tokens; if (tokens.length && tokens[tokens.length-1].type == "comment") { return indent; } if (state == "start") { var match = line.match(/^.*[\{\(\[]\s*$/); if (match) { indent += tab; } } return indent; }; this.checkOutdent = function(state, line, input) { return this.$outdent.checkOutdent(line, input); }; this.autoOutdent = function(state, doc, row) { this.$outdent.autoOutdent(doc, row); }; this.$id = "ace/mode/haxe"; }).call(Mode.prototype); exports.Mode = Mode; }); (function() { ace.require(["ace/mode/haxe"], function(m) { if (typeof module == "object" && typeof exports == "object" && module) { module.exports = m; } }); })();
{ "pile_set_name": "Github" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.5.0_13) on Thu Feb 21 16:35:36 EST 2008 --> <TITLE> ConstructorInstance </TITLE> <META NAME="keywords" CONTENT="polyglot.types.ConstructorInstance interface"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="ConstructorInstance"; } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../polyglot/types/CompoundResolver.html" title="class in polyglot.types"><B>PREV CLASS</B></A>&nbsp; &nbsp;<A HREF="../../polyglot/types/Context.html" title="interface in polyglot.types"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?polyglot/types/ConstructorInstance.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="ConstructorInstance.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> polyglot.types</FONT> <BR> Interface ConstructorInstance</H2> <DL> <DT><B>All Superinterfaces:</B> <DD>java.lang.Cloneable, <A HREF="../../polyglot/types/CodeInstance.html" title="interface in polyglot.types">CodeInstance</A>, <A HREF="../../polyglot/util/Copy.html" title="interface in polyglot.util">Copy</A>, <A HREF="../../polyglot/types/MemberInstance.html" title="interface in polyglot.types">MemberInstance</A>, <A HREF="../../polyglot/types/ProcedureInstance.html" title="interface in polyglot.types">ProcedureInstance</A>, java.io.Serializable, <A HREF="../../polyglot/types/TypeObject.html" title="interface in polyglot.types">TypeObject</A></DD> </DL> <DL> <DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../polyglot/ext/coffer/types/CofferConstructorInstance.html" title="interface in polyglot.ext.coffer.types">CofferConstructorInstance</A></DD> </DL> <DL> <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../polyglot/ext/coffer/types/CofferConstructorInstance_c.html" title="class in polyglot.ext.coffer.types">CofferConstructorInstance_c</A>, <A HREF="../../polyglot/ext/jl/types/ConstructorInstance_c.html" title="class in polyglot.ext.jl.types">ConstructorInstance_c</A></DD> </DL> <HR> <DL> <DT><PRE>public interface <B>ConstructorInstance</B><DT>extends <A HREF="../../polyglot/types/ProcedureInstance.html" title="interface in polyglot.types">ProcedureInstance</A></DL> </PRE> <P> A <code>ConstructorInstance</code> contains type information for a constructor. <P> <P> <HR> <P> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;<A HREF="../../polyglot/types/ConstructorInstance.html" title="interface in polyglot.types">ConstructorInstance</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../polyglot/types/ConstructorInstance.html#container(polyglot.types.ClassType)">container</A></B>(<A HREF="../../polyglot/types/ClassType.html" title="interface in polyglot.types">ClassType</A>&nbsp;container)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the containing class of the constructor.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;<A HREF="../../polyglot/types/ConstructorInstance.html" title="interface in polyglot.types">ConstructorInstance</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../polyglot/types/ConstructorInstance.html#flags(polyglot.types.Flags)">flags</A></B>(<A HREF="../../polyglot/types/Flags.html" title="class in polyglot.types">Flags</A>&nbsp;flags)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the flags of the constructor.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;<A HREF="../../polyglot/types/ConstructorInstance.html" title="interface in polyglot.types">ConstructorInstance</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../polyglot/types/ConstructorInstance.html#formalTypes(java.util.List)">formalTypes</A></B>(java.util.List&nbsp;l)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the types of the formal parameters of the constructor.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;<A HREF="../../polyglot/types/ConstructorInstance.html" title="interface in polyglot.types">ConstructorInstance</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../polyglot/types/ConstructorInstance.html#throwTypes(java.util.List)">throwTypes</A></B>(java.util.List&nbsp;l)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the types of the exceptions thrown by the constructor.</TD> </TR> </TABLE> &nbsp;<A NAME="methods_inherited_from_class_polyglot.types.ProcedureInstance"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from interface polyglot.types.<A HREF="../../polyglot/types/ProcedureInstance.html" title="interface in polyglot.types">ProcedureInstance</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../polyglot/types/ProcedureInstance.html#callValid(java.util.List)">callValid</A>, <A HREF="../../polyglot/types/ProcedureInstance.html#callValidImpl(java.util.List)">callValidImpl</A>, <A HREF="../../polyglot/types/ProcedureInstance.html#designator()">designator</A>, <A HREF="../../polyglot/types/ProcedureInstance.html#formalTypes()">formalTypes</A>, <A HREF="../../polyglot/types/ProcedureInstance.html#hasFormals(java.util.List)">hasFormals</A>, <A HREF="../../polyglot/types/ProcedureInstance.html#hasFormalsImpl(java.util.List)">hasFormalsImpl</A>, <A HREF="../../polyglot/types/ProcedureInstance.html#moreSpecific(polyglot.types.ProcedureInstance)">moreSpecific</A>, <A HREF="../../polyglot/types/ProcedureInstance.html#moreSpecificImpl(polyglot.types.ProcedureInstance)">moreSpecificImpl</A>, <A HREF="../../polyglot/types/ProcedureInstance.html#signature()">signature</A>, <A HREF="../../polyglot/types/ProcedureInstance.html#throwsSubset(polyglot.types.ProcedureInstance)">throwsSubset</A>, <A HREF="../../polyglot/types/ProcedureInstance.html#throwsSubsetImpl(polyglot.types.ProcedureInstance)">throwsSubsetImpl</A>, <A HREF="../../polyglot/types/ProcedureInstance.html#throwTypes()">throwTypes</A></CODE></TD> </TR> </TABLE> &nbsp;<A NAME="methods_inherited_from_class_polyglot.types.MemberInstance"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from interface polyglot.types.<A HREF="../../polyglot/types/MemberInstance.html" title="interface in polyglot.types">MemberInstance</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../polyglot/types/MemberInstance.html#container()">container</A>, <A HREF="../../polyglot/types/MemberInstance.html#flags()">flags</A></CODE></TD> </TR> </TABLE> &nbsp;<A NAME="methods_inherited_from_class_polyglot.types.TypeObject"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from interface polyglot.types.<A HREF="../../polyglot/types/TypeObject.html" title="interface in polyglot.types">TypeObject</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../polyglot/types/TypeObject.html#equalsImpl(polyglot.types.TypeObject)">equalsImpl</A>, <A HREF="../../polyglot/types/TypeObject.html#isCanonical()">isCanonical</A>, <A HREF="../../polyglot/types/TypeObject.html#position()">position</A>, <A HREF="../../polyglot/types/TypeObject.html#typeSystem()">typeSystem</A></CODE></TD> </TR> </TABLE> &nbsp;<A NAME="methods_inherited_from_class_polyglot.util.Copy"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from interface polyglot.util.<A HREF="../../polyglot/util/Copy.html" title="interface in polyglot.util">Copy</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../polyglot/util/Copy.html#copy()">copy</A></CODE></TD> </TR> </TABLE> &nbsp; <P> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="flags(polyglot.types.Flags)"><!-- --></A><H3> flags</H3> <PRE> <A HREF="../../polyglot/types/ConstructorInstance.html" title="interface in polyglot.types">ConstructorInstance</A> <B>flags</B>(<A HREF="../../polyglot/types/Flags.html" title="class in polyglot.types">Flags</A>&nbsp;flags)</PRE> <DL> <DD>Set the flags of the constructor. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="formalTypes(java.util.List)"><!-- --></A><H3> formalTypes</H3> <PRE> <A HREF="../../polyglot/types/ConstructorInstance.html" title="interface in polyglot.types">ConstructorInstance</A> <B>formalTypes</B>(java.util.List&nbsp;l)</PRE> <DL> <DD>Set the types of the formal parameters of the constructor. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>l</CODE> - A list of <code>Type</code>.<DT><B>See Also:</B><DD><A HREF="../../polyglot/types/Type.html" title="interface in polyglot.types"><CODE>Type</CODE></A></DL> </DD> </DL> <HR> <A NAME="throwTypes(java.util.List)"><!-- --></A><H3> throwTypes</H3> <PRE> <A HREF="../../polyglot/types/ConstructorInstance.html" title="interface in polyglot.types">ConstructorInstance</A> <B>throwTypes</B>(java.util.List&nbsp;l)</PRE> <DL> <DD>Set the types of the exceptions thrown by the constructor. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>l</CODE> - A list of <code>Type</code>.<DT><B>See Also:</B><DD><A HREF="../../polyglot/types/Type.html" title="interface in polyglot.types"><CODE>Type</CODE></A></DL> </DD> </DL> <HR> <A NAME="container(polyglot.types.ClassType)"><!-- --></A><H3> container</H3> <PRE> <A HREF="../../polyglot/types/ConstructorInstance.html" title="interface in polyglot.types">ConstructorInstance</A> <B>container</B>(<A HREF="../../polyglot/types/ClassType.html" title="interface in polyglot.types">ClassType</A>&nbsp;container)</PRE> <DL> <DD>Set the containing class of the constructor. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;<A HREF="../../polyglot/types/CompoundResolver.html" title="class in polyglot.types"><B>PREV CLASS</B></A>&nbsp; &nbsp;<A HREF="../../polyglot/types/Context.html" title="interface in polyglot.types"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?polyglot/types/ConstructorInstance.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="ConstructorInstance.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>
{ "pile_set_name": "Github" }
/* * The Clear BSD License * Copyright 2017 NXP * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaimer below) provided * that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, this list * of conditions and the following disclaimer. * * o Redistributions in binary form must reproduce the above copyright notice, this * list of conditions and the following disclaimer in the documentation and/or * other materials provided with the distribution. * * o Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "fsl_common.h" #include "fsl_debug_console.h" #include "board.h" /******************************************************************************* * Variables ******************************************************************************/ /******************************************************************************* * Code ******************************************************************************/ /* Get debug console frequency. */ uint32_t BOARD_DebugConsoleSrcFreq(void) { uint32_t freq; /* To make it simple, we assume default PLL and divider settings, and the only variable from application is use PLL3 source or OSC source */ if (CLOCK_GetMux(kCLOCK_UartMux) == 0) /* PLL3 div6 80M */ { freq = (CLOCK_GetPllFreq(kCLOCK_PllUsb1) / 6U) / (CLOCK_GetDiv(kCLOCK_UartDiv) + 1U); } else { freq = CLOCK_GetOscFreq() / (CLOCK_GetDiv(kCLOCK_UartDiv) + 1U); } return freq; } /* Initialize debug console. */ void BOARD_InitDebugConsole(void) { uint32_t uartClkSrcFreq = BOARD_DebugConsoleSrcFreq(); DbgConsole_Init(BOARD_DEBUG_UART_BASEADDR, BOARD_DEBUG_UART_BAUDRATE, BOARD_DEBUG_UART_TYPE, uartClkSrcFreq); } /* MPU configuration. */ void BOARD_ConfigMPU(void) { uint32_t rgnNdx = 0; /* Disable I cache and D cache */ SCB_DisableICache(); SCB_DisableDCache(); /* Disable MPU */ ARM_MPU_Disable(); /* Region 0 setting : ITCM */ MPU->RBAR = ARM_MPU_RBAR(rgnNdx++, 0x00000000U); // itcm, max 512kB MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 1, 0, 0, 0, 0, ARM_MPU_REGION_SIZE_512KB); // /* Region 1 setting : ITCM RO zone*/ // // itcm RO region, catch wild pointers that will corrupt firmware code, region number must be larger to enable nest // MPU->RBAR = ARM_MPU_RBAR(1, 0x00000000U); // MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_RO, 1, 0, 0, 0, 0, ARM_MPU_REGION_SIZE_8KB); /* Region 2 setting : DTCM */ MPU->RBAR = ARM_MPU_RBAR(rgnNdx++, 0x20000000U); // dtcm, max 512kB MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 1, 0, 0, 0, 0, ARM_MPU_REGION_SIZE_512KB); /* Region 3 setting : OCRAM, non-cachable part*/ MPU->RBAR = ARM_MPU_RBAR(rgnNdx++, 0x20200000U); // ocram // better to disable bufferable ---- write back, so CPU always write through, avoid DMA and CPU write same line, error prone // 20181011_2159: ARM announced a critical M7 bug that write through memory may wrongly load in a rare condition, so change back to enable bufferable MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_512KB); /* Region 4 setting : OCRAM, cachable part*/ // rocky: Must NOT set to device or strong ordered types, otherwise, unaligned access leads to fault // MPU->RBAR = ARM_MPU_RBAR(rgnNdx++, 0x20200000U); // ocram // MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_16KB); /* Region 5 setting, flexspi region */ MPU->RBAR = ARM_MPU_RBAR(7, 0x60000000U); MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_512MB); // /* Region 6 setting, set whole SDRAM can be accessed by cache */ // MPU->RBAR = ARM_MPU_RBAR(6, 0x80000000U); // MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_32MB); // /* Region 7 setting, set last 4MB of SDRAM can't be accessed by cache, glocal variables which are not expected to be accessed by cache can be put here */ // MPU->RBAR = ARM_MPU_RBAR(7, 0x81C00000U); // MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 1, 0, 0, 0, 0, ARM_MPU_REGION_SIZE_4MB); /* Enable MPU, enable background region for priviliged access */ ARM_MPU_Enable(MPU_CTRL_PRIVDEFENA_Msk); /* Enable I cache and D cache */ SCB_EnableDCache(); SCB_EnableICache(); } /* MPU configuration. */ void BOARD_ConfigMPUForCacheErratumTest(void) { uint32_t rgnNdx = 0; /* Disable I cache and D cache */ SCB_DisableICache(); SCB_DisableDCache(); /* Disable MPU */ ARM_MPU_Disable(); /* Region 0 setting : ITCM */ MPU->RBAR = ARM_MPU_RBAR(rgnNdx++, 0x00000000U); // itcm, max 512kB MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 1, 0, 0, 0, 0, ARM_MPU_REGION_SIZE_512KB); // /* Region 1 setting : ITCM RO zone*/ // // itcm RO region, catch wild pointers that will corrupt firmware code, region number must be larger to enable nest // MPU->RBAR = ARM_MPU_RBAR(1, 0x00000000U); // MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_RO, 1, 0, 0, 0, 0, ARM_MPU_REGION_SIZE_8KB); /* Region 2 setting : DTCM */ MPU->RBAR = ARM_MPU_RBAR(rgnNdx++, 0x20000000U); // dtcm, max 512kB MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 1, 0, 0, 0, 0, ARM_MPU_REGION_SIZE_512KB); /* Region 3 setting : OCRAM, non-cachable part*/ MPU->RBAR = ARM_MPU_RBAR(rgnNdx++, 0x20200000U); // ocram // better to disable bufferable ---- write back, so CPU always write through, avoid DMA and CPU write same line, error prone // 20181011_2159: ARM announced a critical M7 bug that write through memory may wrongly load in a rare condition, so change back to enable bufferable MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_512KB); /* Region 4 setting : OCRAM, cachable part*/ // rocky: Must NOT set to device or strong ordered types, otherwise, unaligned access leads to fault // MPU->RBAR = ARM_MPU_RBAR(rgnNdx++, 0x20200000U); // ocram // MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_16KB); /* Region 5 setting, flexspi region */ MPU->RBAR = ARM_MPU_RBAR(rgnNdx++, 0x60000000U); MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_512MB); // /* Region 6 setting, set whole SDRAM can be accessed by cache */ // MPU->RBAR = ARM_MPU_RBAR(6, 0x80000000U); // MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_32MB); // /* Region 7 setting, set last 4MB of SDRAM can't be accessed by cache, glocal variables which are not expected to be accessed by cache can be put here */ // MPU->RBAR = ARM_MPU_RBAR(7, 0x81C00000U); // MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 1, 0, 0, 0, 0, ARM_MPU_REGION_SIZE_4MB); /* Enable MPU, enable background region for priviliged access */ ARM_MPU_Enable(MPU_CTRL_PRIVDEFENA_Msk); /* Enable I cache and D cache */ SCB_EnableDCache(); SCB_EnableICache(); }
{ "pile_set_name": "Github" }
/*- * -\-\- * Spotify Styx API Service * -- * Copyright (C) 2016 Spotify AB * -- * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * -/-/- */ package com.spotify.styx.api; import static com.github.npathai.hamcrestopt.OptionalMatchers.isEmpty; import static com.github.npathai.hamcrestopt.OptionalMatchers.isPresentAndIs; import static com.spotify.apollo.test.unit.ResponseMatchers.hasStatus; import static com.spotify.apollo.test.unit.StatusTypeMatchers.belongsToFamily; import static com.spotify.styx.api.JsonMatchers.assertJson; import static org.hamcrest.Matchers.containsInAnyOrder; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.hasSize; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.spy; import static org.mockito.Mockito.verify; import com.spotify.apollo.Environment; import com.spotify.apollo.Response; import com.spotify.apollo.StatusType; import com.spotify.styx.model.Resource; import com.spotify.styx.storage.AggregateStorage; import com.spotify.styx.storage.DatastoreEmulator; import java.io.IOException; import java.util.Map; import okio.ByteString; import org.apache.hadoop.hbase.client.Connection; import org.junit.After; import org.junit.Before; import org.junit.ClassRule; import org.junit.Test; import org.mockito.MockitoAnnotations; public class ResourceResourceTest extends VersionedApiTest { @ClassRule public static final DatastoreEmulator datastoreEmulator = new DatastoreEmulator(); private AggregateStorage storage; private static final Resource RESOURCE_1 = Resource.create("resource1", 1); private static final Resource RESOURCE_2 = Resource.create("resource2", 2); public ResourceResourceTest(Api.Version version) { super(ResourceResource.BASE, version, "resource-test"); MockitoAnnotations.initMocks(this); } @Override protected void init(Environment environment) { storage = spy(new AggregateStorage( mock(Connection.class), datastoreEmulator.client() )); ResourceResource resourceResource = new ResourceResource(storage); environment.routingEngine() .registerRoutes(resourceResource.routes()); } @Before public void setUp() throws Exception { storage.storeResource(RESOURCE_1); } @After public void tearDown() { datastoreEmulator.reset(); } @Test public void shouldListResources() throws Exception { sinceVersion(Api.Version.V3); Response<ByteString> response = awaitResponse(serviceHelper.request("GET", path(""))); assertThat(response, hasStatus(belongsToFamily(StatusType.Family.SUCCESSFUL))); assertJson(response, "resources[0].id", equalTo("resource1")); assertJson(response, "resources[0].concurrency", equalTo(1)); } @Test public void shouldListMultipleResources() throws Exception { sinceVersion(Api.Version.V3); storage.storeResource(RESOURCE_2); Response<ByteString> response = awaitResponse(serviceHelper.request("GET", path(""))); assertThat(response, hasStatus(belongsToFamily(StatusType.Family.SUCCESSFUL))); assertJson(response, "resources", hasSize(2)); assertJson(response, "resources", containsInAnyOrder( Map.of("id", "resource1", "concurrency", 1), Map.of("id", "resource2", "concurrency", 2) )); } @Test public void shouldFailToListResources() throws Exception { sinceVersion(Api.Version.V3); doThrow(new IOException()).when(storage).resources(); Response<ByteString> response = awaitResponse(serviceHelper.request("GET", path(""))); assertThat(response, hasStatus(belongsToFamily(StatusType.Family.SERVER_ERROR))); } @Test public void shouldGetResource() throws Exception { sinceVersion(Api.Version.V3); Response<ByteString> response = awaitResponse(serviceHelper.request("GET", path("/resource1"))); assertThat(response, hasStatus(belongsToFamily(StatusType.Family.SUCCESSFUL))); assertJson(response, "id", equalTo("resource1")); assertJson(response, "concurrency", equalTo(1)); } @Test public void shouldFailToGetResource() throws Exception { sinceVersion(Api.Version.V3); doThrow(new IOException()).when(storage).resource(anyString()); Response<ByteString> response = awaitResponse(serviceHelper.request("GET", path("/resource1"))); assertThat(response, hasStatus(belongsToFamily(StatusType.Family.SERVER_ERROR))); } @Test public void shouldPostResource() throws Exception { sinceVersion(Api.Version.V3); Response<ByteString> response = awaitResponse(serviceHelper.request("POST", path(""), ByteString.encodeUtf8("{\"id\": \"resource2\", \"concurrency\": 2}"))); assertThat(response, hasStatus(belongsToFamily(StatusType.Family.SUCCESSFUL))); assertJson(response, "id", equalTo("resource2")); assertJson(response, "concurrency", equalTo(2)); assertThat(storage.resource(RESOURCE_2.id()), isPresentAndIs(RESOURCE_2)); verify(storage).storeResource(RESOURCE_2); assertThat(storage.getLimitForCounter(RESOURCE_2.id()), is(RESOURCE_2.concurrency())); } @Test public void shouldFailToPostResource() throws Exception { sinceVersion(Api.Version.V3); doThrow(new IOException()).when(storage).storeResource(any(Resource.class)); Response<ByteString> response = awaitResponse(serviceHelper.request("POST", path(""), ByteString.encodeUtf8("{\"id\": \"resource2\", \"concurrency\": 2}"))); assertThat(response, hasStatus(belongsToFamily(StatusType.Family.SERVER_ERROR))); } @Test public void shouldUpdateResource() throws Exception { sinceVersion(Api.Version.V3); Response<ByteString> response = awaitResponse(serviceHelper.request("PUT", path("/resource1"), ByteString.encodeUtf8("{\"id\": \"resource1\", \"concurrency\": 21}"))); assertThat(response, hasStatus(belongsToFamily(StatusType.Family.SUCCESSFUL))); assertJson(response, "id", equalTo("resource1")); assertJson(response, "concurrency", equalTo(21)); assertThat(storage.resource(RESOURCE_1.id()), isPresentAndIs(Resource.create(RESOURCE_1.id(), 21))); verify(storage).storeResource(Resource.create(RESOURCE_1.id(), 21L)); assertThat(storage.getLimitForCounter(RESOURCE_1.id()), is(21L)); } @Test public void shouldFailToUpdateResource() throws Exception { sinceVersion(Api.Version.V3); doThrow(new IOException()).when(storage).storeResource(any(Resource.class)); Response<ByteString> response = awaitResponse(serviceHelper.request("PUT", path("/resource1"), ByteString.encodeUtf8("{\"id\": \"resource1\", \"concurrency\": 21}"))); assertThat(response, hasStatus(belongsToFamily(StatusType.Family.SERVER_ERROR))); } @Test public void shouldDeleteResource() throws Exception { sinceVersion(Api.Version.V3); Response<ByteString> response = awaitResponse(serviceHelper.request("DELETE", path("/resource1"))); assertThat(response, hasStatus(belongsToFamily(StatusType.Family.SUCCESSFUL))); assertThat(storage.resource(RESOURCE_1.id()).isPresent(), is(false)); assertThat(storage.shardsForCounter(RESOURCE_1.id()), is(Map.of())); } @Test public void shouldFailToDeleteResource() throws Exception { sinceVersion(Api.Version.V3); doThrow(new IOException()).when(storage).deleteResource(anyString()); Response<ByteString> response = awaitResponse(serviceHelper.request("DELETE", path("/resource1"))); assertThat(response, hasStatus(belongsToFamily(StatusType.Family.SERVER_ERROR))); } @Test public void shouldHandleMultipleResourcesIndependently() throws Exception { sinceVersion(Api.Version.V3); // add resource2 awaitResponse(serviceHelper.request("POST", path(""), ByteString.encodeUtf8("{\"id\": \"resource2\", \"concurrency\": 2}"))); // make sure both are listed Response<ByteString> listResponse = awaitResponse(serviceHelper.request("GET", path(""))); assertThat(listResponse, hasStatus(belongsToFamily(StatusType.Family.SUCCESSFUL))); assertJson(listResponse, "resources", hasSize(2)); assertJson(listResponse, "resources", containsInAnyOrder( Map.of("id", "resource1", "concurrency", 1), Map.of("id", "resource2", "concurrency", 2) )); // change resource2 Response<ByteString> putResponse = awaitResponse(serviceHelper.request("PUT", path("/resource2"), ByteString.encodeUtf8("{\"id\": \"resource2\", \"concurrency\": 3}"))); assertThat(putResponse, hasStatus(belongsToFamily(StatusType.Family.SUCCESSFUL))); // make sure resource2 is changed in list and that resource1 is unchanged Response<ByteString> listResponse2 = awaitResponse(serviceHelper.request("GET", path(""))); assertThat(listResponse2, hasStatus(belongsToFamily(StatusType.Family.SUCCESSFUL))); assertJson(listResponse2, "resources", hasSize(2)); assertJson(listResponse2, "resources", containsInAnyOrder( Map.of("id", "resource1", "concurrency", 1), Map.of("id", "resource2", "concurrency", 3) )); assertThat(storage.resource(RESOURCE_1.id()), isPresentAndIs(RESOURCE_1)); assertThat(storage.resource("resource2"), isPresentAndIs(Resource.create("resource2", 3))); assertThat(storage.getLimitForCounter(RESOURCE_1.id()), is(RESOURCE_1.concurrency())); assertThat(storage.getLimitForCounter(RESOURCE_2.id()), is(3L)); // delete resource2 Response<ByteString> deleteResponse = awaitResponse(serviceHelper.request("DELETE", path("/resource2"))); assertThat(deleteResponse, hasStatus(belongsToFamily(StatusType.Family.SUCCESSFUL))); // make sure resource2 is not showing up in the listing Response<ByteString> listResponse3 = awaitResponse(serviceHelper.request("GET", path(""))); assertThat(listResponse3, hasStatus(belongsToFamily(StatusType.Family.SUCCESSFUL))); assertJson(listResponse3, "resources", hasSize(1)); assertJson(listResponse3, "resources", containsInAnyOrder( Map.of("id", "resource1", "concurrency", 1) )); assertThat(storage.resource(RESOURCE_1.id()), isPresentAndIs(RESOURCE_1)); assertThat(storage.resource("resource2"), isEmpty()); assertThat(storage.getLimitForCounter(RESOURCE_1.id()), is(RESOURCE_1.concurrency())); try { storage.getLimitForCounter(RESOURCE_2.id()); fail(); } catch (IllegalArgumentException e) { assertThat(e.getMessage(), is("No limit found in Datastore for resource2")); } } }
{ "pile_set_name": "Github" }
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package flex2.compiler.mxml.dom; /** * Represents a &lt;int&gt; tag in the MXML language namespace. */ public class IntNode extends PrimitiveNode { IntNode(String uri, String localName, int size) { super(uri, localName, size); } public void analyze(Analyzer analyzer) { analyzer.prepare(this); analyzer.analyze(this); } }
{ "pile_set_name": "Github" }
fileFormatVersion: 2 guid: 1054646c0eeefda428898cd90653e125 timeCreated: 1461900309 licenseType: Pro TextureImporter: fileIDToRecycleName: {} serializedVersion: 2 mipmaps: mipMapMode: 0 enableMipMap: 0 linearTexture: 0 correctGamma: 0 fadeOut: 0 borderMipMap: 0 mipMapFadeDistanceStart: 1 mipMapFadeDistanceEnd: 3 bumpmap: convertToNormalMap: 0 externalNormalMap: 0 heightScale: 0.25 normalMapFilter: 0 isReadable: 0 grayScaleToAlpha: 0 generateCubemap: 0 cubemapConvolution: 0 cubemapConvolutionSteps: 7 cubemapConvolutionExponent: 1.5 seamlessCubemap: 0 textureFormat: 34 maxTextureSize: 128 textureSettings: filterMode: -1 aniso: 0 mipBias: -1 wrapMode: 0 nPOTScale: 1 lightmap: 0 rGBM: 0 compressionQuality: 50 allowsAlphaSplitting: 0 spriteMode: 0 spriteExtrude: 1 spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} spriteBorder: {x: 0, y: 0, z: 0, w: 0} spritePixelsToUnits: 100 alphaIsTransparency: 0 textureType: 5 buildTargetSettings: - buildTarget: Android maxTextureSize: 128 textureFormat: 34 compressionQuality: 50 allowsAlphaSplitting: 0 spriteSheet: sprites: [] outline: [] spritePackingTag: userData: assetBundleName: assetBundleVariant:
{ "pile_set_name": "Github" }
import Ember from 'ember'; import utils from 'vault/lib/key-utils'; const { inject, computed, Controller } = Ember; export default Controller.extend({ flashMessages: inject.service(), store: inject.service(), clusterController: inject.controller('vault.cluster'), queryParams: { page: 'page', pageFilter: 'pageFilter', }, page: 1, pageFilter: null, filter: null, backendCrumb: computed(function() { return { label: 'leases', text: 'leases', path: 'vault.cluster.access.leases.list-root', model: this.get('clusterController.model.name'), }; }), isLoading: false, filterMatchesKey: computed('filter', 'model', 'model.[]', function() { var filter = this.get('filter'); var content = this.get('model'); return !!(content.length && content.findBy('id', filter)); }), firstPartialMatch: computed('filter', 'model', 'model.[]', 'filterMatchesKey', function() { var filter = this.get('filter'); var content = this.get('model'); var filterMatchesKey = this.get('filterMatchesKey'); var re = new RegExp('^' + filter); return filterMatchesKey ? null : content.find(function(key) { return re.test(key.get('id')); }); }), filterIsFolder: computed('filter', function() { return !!utils.keyIsFolder(this.get('filter')); }), actions: { setFilter(val) { this.set('filter', val); }, setFilterFocus(bool) { this.set('filterFocused', bool); }, revokePrefix(prefix, isForce) { const adapter = this.get('store').adapterFor('lease'); const method = isForce ? 'forceRevokePrefix' : 'revokePrefix'; const fn = adapter[method]; fn .call(adapter, prefix) .then(() => { return this.transitionToRoute('vault.cluster.access.leases.list-root').then(() => { this.get('flashMessages').success(`All of the leases under ${prefix} will be revoked.`); }); }) .catch(e => { const errString = e.errors.join('.'); this.get('flashMessages').danger( `There was an error attempting to revoke the prefix: ${prefix}. ${errString}.` ); }); }, }, });
{ "pile_set_name": "Github" }
import { Observable } from 'rxjs'; export interface OutlineData { label: string; value: number; } export abstract class VisitorsAnalyticsData { abstract getInnerLineChartData(): Observable<number[]>; abstract getOutlineLineChartData(): Observable<OutlineData[]>; abstract getPieChartData(): Observable<number>; }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!-- --> <!-- Copyright 2008 Google Inc. --> <!-- Licensed under the Apache License, Version 2.0 (the "License"); you --> <!-- may not use this file except in compliance with the License. You may --> <!-- 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. License for the specific language governing permissions and --> <!-- limitations under the License. --> <!-- The module root element --> <!ELEMENT module (inherits | source | public | super-source | entry-point | stylesheet | script | servlet | replace-with | generate-with | define-property | extend-property | set-property | set-property-fallback | clear-configuration-property | define-configuration-property | extend-configuration-property | set-configuration-property | property-provider | define-linker | add-linker | collapse-all-properties | collapse-property)*> <!ATTLIST module rename-to CDATA #IMPLIED > <!-- Inherit the contents of another module --> <!ELEMENT inherits EMPTY> <!ATTLIST inherits name CDATA #REQUIRED > <!-- Specify the source path, relative to the classpath location of the module descriptor --> <!ELEMENT source (include | exclude)*> <!ATTLIST source path CDATA #REQUIRED includes CDATA #IMPLIED excludes CDATA #IMPLIED defaultexcludes (yes | no) "yes" casesensitive (true | false) "true" > <!-- Specify the public resource path, relative to the classpath location of the module descriptor --> <!ELEMENT public (include | exclude)*> <!ATTLIST public path CDATA #REQUIRED includes CDATA #IMPLIED excludes CDATA #IMPLIED defaultexcludes (yes | no) "yes" casesensitive (true | false) "true" > <!-- Specify a source path that rebases subpackages into the root namespace --> <!ELEMENT super-source (include | exclude)*> <!ATTLIST super-source path CDATA #REQUIRED includes CDATA #IMPLIED excludes CDATA #IMPLIED defaultexcludes (yes | no) "yes" casesensitive (true | false) "true" > <!ELEMENT include EMPTY> <!ATTLIST include name CDATA #REQUIRED > <!ELEMENT exclude EMPTY> <!ATTLIST exclude name CDATA #REQUIRED > <!-- Define a module entry point --> <!ELEMENT entry-point EMPTY> <!ATTLIST entry-point class CDATA #REQUIRED > <!-- Preload a stylesheet before executing the GWT application --> <!ELEMENT stylesheet EMPTY> <!ATTLIST stylesheet src CDATA #REQUIRED > <!-- Preload an external JavaScript file before executing the GWT application --> <!ELEMENT script (#PCDATA)> <!ATTLIST script src CDATA #REQUIRED > <!-- Map a named servlet class to a module-relative path in hosted mode --> <!ELEMENT servlet EMPTY> <!ATTLIST servlet path CDATA #REQUIRED class CDATA #REQUIRED > <!-- Adds a Linker to the compilation process --> <!ELEMENT add-linker EMPTY> <!-- A comma-separated list of linker names --> <!ATTLIST add-linker name CDATA #REQUIRED > <!-- Defines a Linker type to package compiler output --> <!ELEMENT define-linker EMPTY> <!ATTLIST define-linker class CDATA #REQUIRED name CDATA #REQUIRED > <!-- ^^^ Commonly-used elements ^^^ --> <!-- VVV Deferred binding elements VVV --> <!-- All possible predicates --> <!ENTITY % predicates "when-property-is | when-type-assignable | when-type-is | all | any | none"> <!-- Define a property and allowable values (comma-separated identifiers) --> <!ELEMENT define-property EMPTY> <!ATTLIST define-property name CDATA #REQUIRED values CDATA #REQUIRED > <!-- Define a configuration property --> <!ELEMENT define-configuration-property EMPTY> <!ATTLIST define-configuration-property name CDATA #REQUIRED is-multi-valued CDATA #REQUIRED > <!-- Set the value of a previously-defined property --> <!ELEMENT set-property (%predicates;)*> <!ATTLIST set-property name CDATA #REQUIRED value CDATA #REQUIRED > <!-- Set the value of a previously-defined property --> <!ELEMENT set-property-fallback EMPTY> <!ATTLIST set-property-fallback name CDATA #REQUIRED value CDATA #REQUIRED > <!-- Set the value of a configuration property --> <!ELEMENT set-configuration-property EMPTY> <!ATTLIST set-configuration-property name CDATA #REQUIRED value CDATA #REQUIRED > <!-- Add additional allowable values to a property --> <!ELEMENT extend-property EMPTY> <!ATTLIST extend-property name CDATA #REQUIRED values CDATA #REQUIRED fallback-value CDATA #IMPLIED > <!-- Collapse property values to produce soft permutations --> <!ELEMENT collapse-property EMPTY> <!ATTLIST collapse-property name CDATA #REQUIRED values CDATA #REQUIRED > <!-- Collapse all deferred-binding properties to produce a single permutation --> <!ELEMENT collapse-all-properties EMPTY> <!ATTLIST collapse-all-properties value (true | false) "true" > <!-- Add additional allowable values to a configuration property --> <!ELEMENT extend-configuration-property EMPTY> <!ATTLIST extend-configuration-property name CDATA #REQUIRED value CDATA #REQUIRED > <!-- Remove all allowable values from a configuration property --> <!ELEMENT clear-configuration-property EMPTY> <!ATTLIST clear-configuration-property name CDATA #REQUIRED > <!-- Define a JavaScript fragment that will return the value for the named property at runtime --> <!ELEMENT property-provider (#PCDATA)> <!ATTLIST property-provider name CDATA #REQUIRED generator CDATA #IMPLIED > <!-- Deferred binding assignment to substitute a named class --> <!ELEMENT replace-with (%predicates;)*> <!ATTLIST replace-with class CDATA #REQUIRED > <!-- Deferred binding assignment to substitute a generated class --> <!ELEMENT generate-with (%predicates;)*> <!ATTLIST generate-with class CDATA #REQUIRED > <!-- Deferred binding predicate that is true when a named property has a given value--> <!ELEMENT when-property-is EMPTY> <!ATTLIST when-property-is name CDATA #REQUIRED value CDATA #REQUIRED > <!-- Deferred binding predicate that is true for types in the type system that are assignable to the specified type --> <!ELEMENT when-type-assignable EMPTY> <!ATTLIST when-type-assignable class CDATA #REQUIRED > <!-- Deferred binding predicate that is true for exactly one type in the type system --> <!ELEMENT when-type-is EMPTY> <!ATTLIST when-type-is class CDATA #REQUIRED > <!-- Predicate that ANDs all child conditions --> <!ELEMENT all (%predicates;)*> <!-- Predicate that ORs all child conditions --> <!ELEMENT any (%predicates;)*> <!-- Predicate that NANDs all child conditions --> <!ELEMENT none (%predicates;)*>
{ "pile_set_name": "Github" }
#pragma once //------------------------------------------------------------------------------------------------- // <copyright file="fileutil.h" company="Outercurve Foundation"> // Copyright (c) 2004, Outercurve Foundation. // This software is released under Microsoft Reciprocal License (MS-RL). // The license and further copyright text can be found in the file // LICENSE.TXT at the root directory of the distribution. // </copyright> // // <summary> // Header for file helper functions. // </summary> //------------------------------------------------------------------------------------------------- #ifdef __cplusplus extern "C" { #endif #define ReleaseFile(h) if (INVALID_HANDLE_VALUE != h) { ::CloseHandle(h); h = INVALID_HANDLE_VALUE; } #define ReleaseFileHandle(h) if (INVALID_HANDLE_VALUE != h) { ::CloseHandle(h); h = INVALID_HANDLE_VALUE; } #define ReleaseFileFindHandle(h) if (INVALID_HANDLE_VALUE != h) { ::FindClose(h); h = INVALID_HANDLE_VALUE; } #define FILEMAKEVERSION(major, minor, build, revision) static_cast<DWORD64>((static_cast<DWORD64>(major & 0xFFFF) << 48) \ | (static_cast<DWORD64>(minor & 0xFFFF) << 32) \ | (static_cast<DWORD64>(build & 0xFFFF) << 16) \ | (static_cast<DWORD64>(revision & 0xFFFF))) typedef enum FILE_ARCHITECTURE { FILE_ARCHITECTURE_UNKNOWN, FILE_ARCHITECTURE_X86, FILE_ARCHITECTURE_X64, FILE_ARCHITECTURE_IA64, } FILE_ARCHITECTURE; typedef enum FILE_ENCODING { FILE_ENCODING_UNSPECIFIED = 0, // TODO: distinguish between non-BOM utf-8 and ANSI in the future? FILE_ENCODING_UTF8, FILE_ENCODING_UTF8_WITH_BOM, FILE_ENCODING_UTF16, FILE_ENCODING_UTF16_WITH_BOM, } FILE_ENCODING; LPWSTR DAPI FileFromPath( __in_z LPCWSTR wzPath ); HRESULT DAPI FileResolvePath( __in_z LPCWSTR wzRelativePath, __out LPWSTR *ppwzFullPath ); HRESULT DAPI FileStripExtension( __in_z LPCWSTR wzFileName, __out LPWSTR *ppwzFileNameNoExtension ); HRESULT DAPI FileChangeExtension( __in_z LPCWSTR wzFileName, __in_z LPCWSTR wzNewExtension, __out LPWSTR *ppwzFileNameNewExtension ); HRESULT DAPI FileAddSuffixToBaseName( __in_z LPCWSTR wzFileName, __in_z LPCWSTR wzSuffix, __out_z LPWSTR* psczNewFileName ); HRESULT DAPI FileVersionFromString( __in_z LPCWSTR wzVersion, __out DWORD *pdwVerMajor, __out DWORD* pdwVerMinor ); HRESULT DAPI FileVersionFromStringEx( __in_z LPCWSTR wzVersion, __in DWORD cchVersion, __out DWORD64* pqwVersion ); HRESULT DAPI FileVersionToStringEx( __in DWORD64 qwVersion, __out LPWSTR* psczVersion ); HRESULT DAPI FileSetPointer( __in HANDLE hFile, __in DWORD64 dw64Move, __out_opt DWORD64* pdw64NewPosition, __in DWORD dwMoveMethod ); HRESULT DAPI FileSize( __in_z LPCWSTR pwzFileName, __out LONGLONG* pllSize ); HRESULT DAPI FileSizeByHandle( __in HANDLE hFile, __out LONGLONG* pllSize ); BOOL DAPI FileExistsEx( __in_z LPCWSTR wzPath, __out_opt DWORD *pdwAttributes ); BOOL DAPI FileExistsAfterRestart( __in_z LPCWSTR wzPath, __out_opt DWORD *pdwAttributes ); HRESULT DAPI FileRemoveFromPendingRename( __in_z LPCWSTR wzPath ); HRESULT DAPI FileRead( __deref_out_bcount_full(*pcbDest) LPBYTE* ppbDest, __out DWORD* pcbDest, __in_z LPCWSTR wzSrcPath ); HRESULT DAPI FileReadUntil( __deref_out_bcount_full(*pcbDest) LPBYTE* ppbDest, __out_range(<=, cbMaxRead) DWORD* pcbDest, __in_z LPCWSTR wzSrcPath, __in DWORD cbMaxRead ); HRESULT DAPI FileReadPartial( __deref_out_bcount_full(*pcbDest) LPBYTE* ppbDest, __out_range(<=, cbMaxRead) DWORD* pcbDest, __in_z LPCWSTR wzSrcPath, __in BOOL fSeek, __in DWORD cbStartPosition, __in DWORD cbMaxRead, __in BOOL fPartialOK ); HRESULT DAPI FileWrite( __in_z LPCWSTR pwzFileName, __in DWORD dwFlagsAndAttributes, __in_bcount_opt(cbData) LPCBYTE pbData, __in DWORD cbData, __out_opt HANDLE* pHandle ); HRESULT DAPI FileWriteHandle( __in HANDLE hFile, __in_bcount_opt(cbData) LPCBYTE pbData, __in DWORD cbData ); HRESULT DAPI FileCopyUsingHandles( __in HANDLE hSource, __in HANDLE hTarget, __in DWORD64 cbCopy, __out_opt DWORD64* pcbCopied ); HRESULT DAPI FileEnsureCopy( __in_z LPCWSTR wzSource, __in_z LPCWSTR wzTarget, __in BOOL fOverwrite ); HRESULT DAPI FileEnsureCopyWithRetry( __in LPCWSTR wzSource, __in LPCWSTR wzTarget, __in BOOL fOverwrite, __in DWORD cRetry, __in DWORD dwWaitMilliseconds ); HRESULT DAPI FileEnsureMove( __in_z LPCWSTR wzSource, __in_z LPCWSTR wzTarget, __in BOOL fOverwrite, __in BOOL fAllowCopy ); HRESULT DAPI FileEnsureMoveWithRetry( __in LPCWSTR wzSource, __in LPCWSTR wzTarget, __in BOOL fOverwrite, __in BOOL fAllowCopy, __in DWORD cRetry, __in DWORD dwWaitMilliseconds ); HRESULT DAPI FileCreateTemp( __in_z LPCWSTR wzPrefix, __in_z LPCWSTR wzExtension, __deref_opt_out_z LPWSTR* ppwzTempFile, __out_opt HANDLE* phTempFile ); HRESULT DAPI FileCreateTempW( __in_z LPCWSTR wzPrefix, __in_z LPCWSTR wzExtension, __deref_opt_out_z LPWSTR* ppwzTempFile, __out_opt HANDLE* phTempFile ); HRESULT DAPI FileVersion( __in_z LPCWSTR wzFilename, __out DWORD *pdwVerMajor, __out DWORD* pdwVerMinor ); HRESULT DAPI FileIsSame( __in_z LPCWSTR wzFile1, __in_z LPCWSTR wzFile2, __out LPBOOL lpfSameFile ); HRESULT DAPI FileEnsureDelete( __in_z LPCWSTR wzFile ); HRESULT DAPI FileGetTime( __in_z LPCWSTR wzFile, __out_opt LPFILETIME lpCreationTime, __out_opt LPFILETIME lpLastAccessTime, __out_opt LPFILETIME lpLastWriteTime ); HRESULT DAPI FileSetTime( __in_z LPCWSTR wzFile, __in_opt const FILETIME *lpCreationTime, __in_opt const FILETIME *lpLastAccessTime, __in_opt const FILETIME *lpLastWriteTime ); HRESULT DAPI FileResetTime( __in_z LPCWSTR wzFile ); HRESULT DAPI FileExecutableArchitecture( __in_z LPCWSTR wzFile, __out FILE_ARCHITECTURE *pArchitecture ); HRESULT DAPI FileToString( __in_z LPCWSTR wzFile, __out LPWSTR *psczString, __out_opt FILE_ENCODING *pfeEncoding ); HRESULT DAPI FileFromString( __in_z LPCWSTR wzFile, __in DWORD dwFlagsAndAttributes, __in_z LPCWSTR sczString, __in FILE_ENCODING feEncoding ); #ifdef __cplusplus } #endif
{ "pile_set_name": "Github" }
#!/usr/bin/env bash export SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "${SCRIPTDIR}/.validate" IFS=$'\n' files=( $(validate_diff --diff-filter=ACMR --name-only -- 'cli/compose/schema/data' || true) ) unset IFS if [ ${#files[@]} -gt 0 ]; then go generate github.com/docker/docker/cli/compose/schema 2> /dev/null # Let see if the working directory is clean diffs="$(git status --porcelain -- cli/compose/schema 2>/dev/null)" if [ "$diffs" ]; then { echo 'The result of `go generate github.com/docker/docker/cli/compose/schema` differs' echo echo "$diffs" echo echo 'Please run `go generate github.com/docker/docker/cli/compose/schema`' } >&2 false else echo 'Congratulations! cli/compose/schema/bindata.go is up-to-date.' fi else echo 'No cli/compose/schema/data changes in diff.' fi
{ "pile_set_name": "Github" }
commit 3f10a16153308f967149917585d2bc0b9c06492c Author: Anil Madhavapeddy <[email protected]> Date: Sun Jun 21 18:40:27 2020 +0100 Add `-fcommon` unconditionally to CFLAGS to fix gcc10 build Signed-off-by: Anil Madhavapeddy <[email protected]> diff --git a/configure b/configure index 9a78a4554..0c54b560b 100755 --- a/configure +++ b/configure @@ -12424,7 +12424,7 @@ $as_echo "$as_me: WARNING: Consider using GCC version 4.2 or above." >&2;}; -fno-builtin-memcmp"; internal_cflags="$gcc_warnings" ;; #( gcc-*) : - common_cflags="-O2 -fno-strict-aliasing -fwrapv"; + common_cflags="-O2 -fno-strict-aliasing -fwrapv -fcommon"; internal_cflags="$gcc_warnings" ;; #( msvc-*) : common_cflags="-nologo -O2 -Gy- -MD" diff --git a/configure.ac b/configure.ac index f5d8a2687..775e0e2db 100644 --- a/configure.ac +++ b/configure.ac @@ -540,7 +540,7 @@ AS_CASE([$host], -fno-builtin-memcmp"; internal_cflags="$gcc_warnings"], [gcc-*], - [common_cflags="-O2 -fno-strict-aliasing -fwrapv"; + [common_cflags="-O2 -fno-strict-aliasing -fwrapv -fcommon"; internal_cflags="$gcc_warnings"], [msvc-*], [common_cflags="-nologo -O2 -Gy- -MD"
{ "pile_set_name": "Github" }
// SPDX-License-Identifier: GPL-2.0-only /* * Implementation of get_cpuid(). * * Copyright IBM Corp. 2014, 2018 * Author(s): Alexander Yarygin <[email protected]> * Thomas Richter <[email protected]> */ #include <sys/types.h> #include <errno.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include <linux/ctype.h> #include <linux/kernel.h> #include <linux/zalloc.h> #include "../../util/header.h" #define SYSINFO_MANU "Manufacturer:" #define SYSINFO_TYPE "Type:" #define SYSINFO_MODEL "Model:" #define SRVLVL_CPUMF "CPU-MF:" #define SRVLVL_VERSION "version=" #define SRVLVL_AUTHORIZATION "authorization=" #define SYSINFO "/proc/sysinfo" #define SRVLVL "/proc/service_levels" int get_cpuid(char *buffer, size_t sz) { char *cp, *line = NULL, *line2; char type[8], model[33], version[8], manufacturer[32], authorization[8]; int tpsize = 0, mdsize = 0, vssize = 0, mfsize = 0, atsize = 0; int read; unsigned long line_sz; size_t nbytes; FILE *sysinfo; /* * Scan /proc/sysinfo line by line and read out values for * Manufacturer:, Type: and Model:, for example: * Manufacturer: IBM * Type: 2964 * Model: 702 N96 * The first word is the Model Capacity and the second word is * Model (can be omitted). Both words have a maximum size of 16 * bytes. */ memset(manufacturer, 0, sizeof(manufacturer)); memset(type, 0, sizeof(type)); memset(model, 0, sizeof(model)); memset(version, 0, sizeof(version)); memset(authorization, 0, sizeof(authorization)); sysinfo = fopen(SYSINFO, "r"); if (sysinfo == NULL) return errno; while ((read = getline(&line, &line_sz, sysinfo)) != -1) { if (!strncmp(line, SYSINFO_MANU, strlen(SYSINFO_MANU))) { line2 = line + strlen(SYSINFO_MANU); while ((cp = strtok_r(line2, "\n ", &line2))) { mfsize += scnprintf(manufacturer + mfsize, sizeof(manufacturer) - mfsize, "%s", cp); } } if (!strncmp(line, SYSINFO_TYPE, strlen(SYSINFO_TYPE))) { line2 = line + strlen(SYSINFO_TYPE); while ((cp = strtok_r(line2, "\n ", &line2))) { tpsize += scnprintf(type + tpsize, sizeof(type) - tpsize, "%s", cp); } } if (!strncmp(line, SYSINFO_MODEL, strlen(SYSINFO_MODEL))) { line2 = line + strlen(SYSINFO_MODEL); while ((cp = strtok_r(line2, "\n ", &line2))) { mdsize += scnprintf(model + mdsize, sizeof(model) - mdsize, "%s%s", model[0] ? "," : "", cp); } break; } } fclose(sysinfo); /* Missing manufacturer, type or model information should not happen */ if (!manufacturer[0] || !type[0] || !model[0]) return EINVAL; /* * Scan /proc/service_levels and return the CPU-MF counter facility * version number and authorization level. * Optional, does not exist on z/VM guests. */ sysinfo = fopen(SRVLVL, "r"); if (sysinfo == NULL) goto skip_sysinfo; while ((read = getline(&line, &line_sz, sysinfo)) != -1) { if (strncmp(line, SRVLVL_CPUMF, strlen(SRVLVL_CPUMF))) continue; line2 = line + strlen(SRVLVL_CPUMF); while ((cp = strtok_r(line2, "\n ", &line2))) { if (!strncmp(cp, SRVLVL_VERSION, strlen(SRVLVL_VERSION))) { char *sep = strchr(cp, '='); vssize += scnprintf(version + vssize, sizeof(version) - vssize, "%s", sep + 1); } if (!strncmp(cp, SRVLVL_AUTHORIZATION, strlen(SRVLVL_AUTHORIZATION))) { char *sep = strchr(cp, '='); atsize += scnprintf(authorization + atsize, sizeof(authorization) - atsize, "%s", sep + 1); } } } fclose(sysinfo); skip_sysinfo: free(line); if (version[0] && authorization[0] ) nbytes = snprintf(buffer, sz, "%s,%s,%s,%s,%s", manufacturer, type, model, version, authorization); else nbytes = snprintf(buffer, sz, "%s,%s,%s", manufacturer, type, model); return (nbytes >= sz) ? ENOBUFS : 0; } char *get_cpuid_str(struct perf_pmu *pmu __maybe_unused) { char *buf = malloc(128); if (buf && get_cpuid(buf, 128)) zfree(&buf); return buf; }
{ "pile_set_name": "Github" }