text
stringlengths
2
100k
meta
dict
from automat import MethodicalMachine class Led(object): _machine = MethodicalMachine() @_machine.state() def led_on(self): "led is on" @_machine.state(initial=True) def led_off(self): "led is off" @_machine.input() def turn_on(self): "turn the led on" @_machine.output() def _light(self): print("light") led_off.upon(turn_on, enter=led_on, outputs=[_light]) led = Led() led.turn_on()
{ "pile_set_name": "Github" }
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Universal charset detector code. # # The Initial Developer of the Original Code is # Simon Montagu # Portions created by the Initial Developer are Copyright (C) 2005 # the Initial Developer. All Rights Reserved. # # Contributor(s): # Mark Pilgrim - port to Python # Shy Shalom - original C code # Shoshannah Forbes - original C code (?) # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA # 02110-1301 USA ######################### END LICENSE BLOCK ######################### # 255: Control characters that usually does not exist in any text # 254: Carriage/Return # 253: symbol (punctuation) that does not belong to word # 252: 0 - 9 # Windows-1255 language model # Character Mapping Table: win1255_CharToOrderMap = ( 255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10 253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20 252,252,252,252,252,252,252,252,252,252,253,253,253,253,253,253, # 30 253, 69, 91, 79, 80, 92, 89, 97, 90, 68,111,112, 82, 73, 95, 85, # 40 78,121, 86, 71, 67,102,107, 84,114,103,115,253,253,253,253,253, # 50 253, 50, 74, 60, 61, 42, 76, 70, 64, 53,105, 93, 56, 65, 54, 49, # 60 66,110, 51, 43, 44, 63, 81, 77, 98, 75,108,253,253,253,253,253, # 70 124,202,203,204,205, 40, 58,206,207,208,209,210,211,212,213,214, 215, 83, 52, 47, 46, 72, 32, 94,216,113,217,109,218,219,220,221, 34,116,222,118,100,223,224,117,119,104,125,225,226, 87, 99,227, 106,122,123,228, 55,229,230,101,231,232,120,233, 48, 39, 57,234, 30, 59, 41, 88, 33, 37, 36, 31, 29, 35,235, 62, 28,236,126,237, 238, 38, 45,239,240,241,242,243,127,244,245,246,247,248,249,250, 9, 8, 20, 16, 3, 2, 24, 14, 22, 1, 25, 15, 4, 11, 6, 23, 12, 19, 13, 26, 18, 27, 21, 17, 7, 10, 5,251,252,128, 96,253, ) # Model Table: # total sequences: 100% # first 512 sequences: 98.4004% # first 1024 sequences: 1.5981% # rest sequences: 0.087% # negative sequences: 0.0015% HebrewLangModel = ( 0,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,2,3,2,1,2,0,1,0,0, 3,0,3,1,0,0,1,3,2,0,1,1,2,0,2,2,2,1,1,1,1,2,1,1,1,2,0,0,2,2,0,1, 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2, 1,2,1,2,1,2,0,0,2,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0, 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2, 1,2,1,3,1,1,0,0,2,0,0,0,1,0,1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0, 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,0,1,2,2,1,3, 1,2,1,1,2,2,0,0,2,2,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,1,0,1,1,0, 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,2,2,2,3,2, 1,2,1,2,2,2,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0, 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,2,3,2,2,3,2,2,2,1,2,2,2,2, 1,2,1,1,2,2,0,1,2,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0, 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,0,2,2,2,2,2, 0,2,0,2,2,2,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0, 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,0,2,2,2, 0,2,1,2,2,2,0,0,2,1,0,0,0,0,1,0,1,0,0,0,0,0,0,2,0,0,0,0,0,0,1,0, 3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,2,1,2,3,2,2,2, 1,2,1,2,2,2,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,0, 3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,1,0,2,0,2, 0,2,1,2,2,2,0,0,1,2,0,0,0,0,1,0,1,0,0,0,0,0,0,1,0,0,0,2,0,0,1,0, 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,2,3,2,2,3,2,1,2,1,1,1, 0,1,1,1,1,1,3,0,1,0,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0, 3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,1,1,0,0,1,0,0,1,0,0,0,0, 0,0,1,0,0,0,0,0,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2, 0,2,0,1,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0, 3,3,3,3,3,3,3,3,3,2,3,3,3,2,1,2,3,3,2,3,3,3,3,2,3,2,1,2,0,2,1,2, 0,2,0,2,2,2,0,0,1,2,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0, 3,3,3,3,3,3,3,3,3,2,3,3,3,1,2,2,3,3,2,3,2,3,2,2,3,1,2,2,0,2,2,2, 0,2,1,2,2,2,0,0,1,2,0,0,0,0,1,0,0,0,0,0,1,0,0,1,0,0,0,1,0,0,1,0, 3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,2,3,3,2,2,2,3,3,3,3,1,3,2,2,2, 0,2,0,1,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0, 3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,3,3,3,2,3,2,2,2,1,2,2,0,2,2,2,2, 0,2,0,2,2,2,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0, 3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,1,3,2,3,3,2,3,3,2,2,1,2,2,2,2,2,2, 0,2,1,2,1,2,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,1,0, 3,3,3,3,3,3,2,3,2,3,3,2,3,3,3,3,2,3,2,3,3,3,3,3,2,2,2,2,2,2,2,1, 0,2,0,1,2,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0, 3,3,3,3,3,3,3,3,3,2,1,2,3,3,3,3,3,3,3,2,3,2,3,2,1,2,3,0,2,1,2,2, 0,2,1,1,2,1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,2,0, 3,3,3,3,3,3,3,3,3,2,3,3,3,3,2,1,3,1,2,2,2,1,2,3,3,1,2,1,2,2,2,2, 0,1,1,1,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,2,0,0,0,0,0,0,0,0, 3,3,3,3,3,3,3,3,3,3,0,2,3,3,3,1,3,3,3,1,2,2,2,2,1,1,2,2,2,2,2,2, 0,2,0,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0, 3,3,3,3,3,3,2,3,3,3,2,2,3,3,3,2,1,2,3,2,3,2,2,2,2,1,2,1,1,1,2,2, 0,2,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0, 3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,0,0,1,0,0,0,0,0, 1,0,1,0,0,0,0,0,2,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 3,3,3,3,3,2,3,3,2,3,1,2,2,2,2,3,2,3,1,1,2,2,1,2,2,1,1,0,2,2,2,2, 0,1,0,1,2,2,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0, 3,0,0,1,1,0,1,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,2,0, 0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 3,0,1,0,1,0,1,1,0,1,1,0,0,0,1,1,0,1,1,1,0,0,0,0,0,0,1,0,0,0,0,0, 0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 3,0,0,0,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0, 3,2,2,1,2,2,2,2,2,2,2,1,2,2,1,2,2,1,1,1,1,1,1,1,1,2,1,1,0,3,3,3, 0,3,0,2,2,2,2,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0, 2,2,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,2,2,1,1,1,2,0,1, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2,2,2,2,0,2,2,0,0,0,0,0,0, 0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 2,3,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,1,0,2,1,0, 0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 3,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0, 0,3,1,1,2,2,2,2,2,1,2,2,2,1,1,2,2,2,2,2,2,2,1,2,2,1,0,1,1,1,1,0, 0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 3,2,1,1,1,1,2,1,1,2,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,0,0,0,0,0,0,0, 0,0,2,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,1,0,0, 2,1,1,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,1,2,1,2,1,1,1,1,0,0,0,0, 0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 1,2,1,2,2,2,2,2,2,2,2,2,2,1,2,1,2,1,1,2,1,1,1,2,1,2,1,2,0,1,0,1, 0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,3,1,2,2,2,1,2,2,2,2,2,2,2,2,1,2,1,1,1,1,1,1,2,1,2,1,1,0,1,0,1, 0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 2,1,2,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2, 0,2,0,1,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0, 3,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 2,1,1,1,1,1,1,1,0,1,1,0,1,0,0,1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,2,0,1,1,1,0,1,0,0,0,1,1,0,1,1,0,0,0,0,0,1,1,0,0, 0,1,1,1,2,1,2,2,2,0,2,0,2,0,1,1,2,1,1,1,1,2,1,0,1,1,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0, 1,0,1,0,0,0,0,0,1,0,1,2,2,0,1,0,0,1,1,2,2,1,2,0,2,0,0,0,1,2,0,1, 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,2,0,2,1,2,0,2,0,0,1,1,1,1,1,1,0,1,0,0,0,1,0,0,1, 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,1,0,0,0,0,0,1,0,2,1,1,0,1,0,0,1,1,1,2,2,0,0,1,0,0,0,1,0,0,1, 1,1,2,1,0,1,1,1,0,1,0,1,1,1,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,2,2,1, 0,2,0,1,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 2,1,0,0,1,0,1,1,1,1,0,0,0,0,0,1,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 1,1,1,1,1,1,1,1,1,2,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,1,1,1,0,1,1,0,1,0,0,0,1,1,0,1, 2,0,1,0,1,0,1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,1,0,1,1,1,0,1,0,0,1,1,2,1,1,2,0,1,0,0,0,1,1,0,1, 1,0,0,1,0,0,1,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,1,0,1,1,2,0,1,0,0,0,0,2,1,1,2,0,2,0,0,0,1,1,0,1, 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,1,0,2,1,1,0,1,0,0,2,2,1,2,1,1,0,1,0,0,0,1,1,0,1, 2,0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,1,2,2,0,0,0,0,0,1,1,0,1,0,0,1,0,0,0,0,1,0,1, 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,1,2,2,0,0,0,0,2,1,1,1,0,2,1,1,0,0,0,2,1,0,1, 1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,1,0,1,1,2,0,1,0,0,1,1,0,2,1,1,0,1,0,0,0,1,1,0,1, 2,2,1,1,1,0,1,1,0,1,1,0,1,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,1,0,2,1,1,0,1,0,0,1,1,0,1,2,1,0,2,0,0,0,1,1,0,1, 2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0, 0,1,0,0,2,0,2,1,1,0,1,0,1,0,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,0,1,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,1,0,1,1,2,0,1,0,0,1,1,1,0,1,0,0,1,0,0,0,1,0,0,1, 1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 1,0,0,0,0,0,0,0,1,0,1,1,0,0,1,0,0,2,1,1,1,1,1,0,1,0,0,0,0,1,0,1, 0,1,1,1,2,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,1,2,1,0,0,0,0,0,1,1,1,1,1,0,1,0,0,0,1,1,0,0, ) Win1255HebrewModel = { 'charToOrderMap': win1255_CharToOrderMap, 'precedenceMatrix': HebrewLangModel, 'mTypicalPositiveRatio': 0.984004, 'keepEnglishLetter': False, 'charsetName': "windows-1255" } # flake8: noqa
{ "pile_set_name": "Github" }
# -*- python -*- # Copyright (c) 2012 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Import('env') env.Prepend(CPPDEFINES=['XP_UNIX']) env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' + 'ppb_scrollbar') nexe = env.ProgramNameForNmf('ppapi_ppb_scrollbar') env.Alias('ppapi_ppb_scrollbar${PROGSUFFIX}', ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) ppapi_ppb_scrollbar_nexe = env.ComponentProgram( nexe, ['ppapi_ppb_scrollbar.cc'], EXTRA_LIBS=['${PPAPI_LIBS}', 'ppapi_test_lib', 'platform', # for CHECK 'pthread', 'gio', ]) env.Publish(nexe, 'run', ['ppapi_ppb_scrollbar.html', 'ppapi_ppb_scrollbar.js']) node = env.PPAPIBrowserTester('ppapi_ppb_scrollbar_browser_test.out', url='ppapi_ppb_scrollbar.html', nmf_names=['ppapi_ppb_scrollbar'], files=env.ExtractPublishedFiles(nexe)) env.AddNodeToTestSuite(node, ['chrome_browser_tests'], 'run_ppapi_ppb_scrollbar_browser_test', is_broken=env.PPAPIBrowserTesterIsBroken())
{ "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 * <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> * 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.ambari.server.events; import java.util.Objects; import org.apache.ambari.server.actionmanager.HostRoleCommand; import org.apache.ambari.server.actionmanager.HostRoleStatus; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; /** * Single host role command update info. This update will be sent to all subscribed recipients. */ @JsonInclude(JsonInclude.Include.NON_NULL) public class NamedTaskUpdateEvent extends STOMPEvent { private Long id; private Long requestId; private String hostName; private Long endTime; private HostRoleStatus status; private String errorLog; private String outLog; private String stderr; private String stdout; @JsonProperty("structured_out") private String structuredOut; public NamedTaskUpdateEvent(Long id, Long requestId, String hostName, Long endTime, HostRoleStatus status, String errorLog, String outLog, String stderr, String stdout, String structuredOut) { super(Type.NAMEDTASK); this.id = id; this.requestId = requestId; this.hostName = hostName; this.endTime = endTime; this.status = status; this.errorLog = errorLog; this.outLog = outLog; this.stderr = stderr; this.stdout = stdout; this.structuredOut = structuredOut; } public NamedTaskUpdateEvent(HostRoleCommand hostRoleCommand) { this(hostRoleCommand.getTaskId(), hostRoleCommand.getRequestId(), hostRoleCommand.getHostName(), hostRoleCommand.getEndTime(), hostRoleCommand.getStatus(), hostRoleCommand.getErrorLog(), hostRoleCommand.getOutputLog(), hostRoleCommand.getStderr(), hostRoleCommand.getStdout(), hostRoleCommand.getStructuredOut()); } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getRequestId() { return requestId; } public void setRequestId(Long requestId) { this.requestId = requestId; } public String getHostName() { return hostName; } public void setHostName(String hostName) { this.hostName = hostName; } public Long getEndTime() { return endTime; } public void setEndTime(Long endTime) { this.endTime = endTime; } public HostRoleStatus getStatus() { return status; } public void setStatus(HostRoleStatus status) { this.status = status; } public String getErrorLog() { return errorLog; } public void setErrorLog(String errorLog) { this.errorLog = errorLog; } public String getOutLog() { return outLog; } public void setOutLog(String outLog) { this.outLog = outLog; } public String getStderr() { return stderr; } public void setStderr(String stderr) { this.stderr = stderr; } public String getStdout() { return stdout; } public void setStdout(String stdout) { this.stdout = stdout; } public String getStructuredOut() { return structuredOut; } public void setStructuredOut(String structuredOut) { this.structuredOut = structuredOut; } @Override public String completeDestination(String destination) { return destination + "/" + id; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; NamedTaskUpdateEvent that = (NamedTaskUpdateEvent) o; return Objects.equals(id, that.id) && Objects.equals(requestId, that.requestId) && Objects.equals(hostName, that.hostName) && Objects.equals(endTime, that.endTime) && status == that.status && Objects.equals(errorLog, that.errorLog) && Objects.equals(outLog, that.outLog) && Objects.equals(stderr, that.stderr) && Objects.equals(stdout, that.stdout) && Objects.equals(structuredOut, that.structuredOut); } @Override public int hashCode() { return Objects.hash(id, requestId, hostName, endTime, status, errorLog, outLog, stderr, stdout, structuredOut); } }
{ "pile_set_name": "Github" }
{ "notes": "", "support": { "Android Browser": "y 4.4", "Baidu Browser": "y 7.12", "Blackberry Browser": "y 10", "Chrome": "y 30", "Chrome for Android": "y 74", "Edge": "y 75", "Firefox": "y 16", "Firefox for Android": "y 66", "IE": "n 11", "IE Mobile": "n 11", "KaiOS Browser": "y 2.5", "Opera": "y 17", "Opera Mini": "n all", "Opera Mobile": "y 46", "QQ Browser": "y 1.2", "Safari": "n TP", "Samsung Internet": "y 4", "UC Browser for Android": "y 11.8", "iOS Safari": "n 13" }, "url": "https://www.w3.org/TR/vibration/" }
{ "pile_set_name": "Github" }
/**************************************************************************************** * Copyright (c) 2013 Bibek Shrestha <[email protected]> * * Copyright (c) 2013 Zaur Molotnikov <[email protected]> * * Copyright (c) 2013 Nicolas Raoul <[email protected]> * * Copyright (c) 2013 Flavio Lerda <[email protected]> * * * * 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/>. * ****************************************************************************************/ package com.ichi2.utils; import android.graphics.Bitmap; import android.graphics.Matrix; import androidx.annotation.NonNull; import androidx.exifinterface.media.ExifInterface; import java.io.File; public class ExifUtil { @NonNull public static Bitmap rotateFromCamera(File theFile, @NonNull Bitmap bmp) { try { ExifInterface exif = new ExifInterface(theFile.getPath()); int orientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL); int angle = 0; if (orientation == ExifInterface.ORIENTATION_ROTATE_90) { angle = 90; } else if (orientation == ExifInterface.ORIENTATION_ROTATE_180) { angle = 180; } else if (orientation == ExifInterface.ORIENTATION_ROTATE_270) { angle = 270; } Matrix mat = new Matrix(); mat.postRotate(angle); bmp = Bitmap.createBitmap(bmp, 0, 0, bmp.getWidth(), bmp.getHeight(), mat, true); return bmp; } catch (Exception e) { return bmp; } } }
{ "pile_set_name": "Github" }
'use strict'; // // Load all the fixtures and inject in all configuration resources. // 1. Push the ../config files (local configuration, may be used in next steps) // 2. Store the ESN configuration files into mongo // // Each configuration feature live in its module. On each module, index.js will be called and // it is up to the index to copy/store/inject configuration at the rigth place. // var copyFileConfig = require('./config'); var setEsnConfig = require('./esn-config'); var populateDb = require('./populate'); var db = require('./db'); module.exports = function(done) { copyFileConfig() .then(db.connectFromFileConfig) .then(setEsnConfig) .then(populateDb) .then(function() { console.log('Created 1 domain, 20 users and 1 admin.'); console.log('Success ! You have a working ESN !'); done(true); }) .catch(function(err) { console.log('[ERROR] Cannot inject fixtures, aborting...'); console.log('[ERROR] ', err.message); done(false); }) .finally(db.disconnect); };
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-16"?> <Task version="1.3" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> <RegistrationInfo> <Date>2013-12-05T22:55:35.177926</Date> <Author>AULTAN\rlk</Author> </RegistrationInfo> <Triggers> <CalendarTrigger> <Repetition> <Interval>PT5M</Interval> <Duration>PT23H52M</Duration> <StopAtDurationEnd>true</StopAtDurationEnd> </Repetition> <StartBoundary>2013-12-05T05:55:00</StartBoundary> <ExecutionTimeLimit>PT23H55M</ExecutionTimeLimit> <Enabled>true</Enabled> <ScheduleByWeek> <DaysOfWeek> <Monday /> <Tuesday /> <Wednesday /> <Thursday /> <Friday /> </DaysOfWeek> <WeeksInterval>1</WeeksInterval> </ScheduleByWeek> </CalendarTrigger> </Triggers> <Principals> <Principal id="Author"> <UserId>SVEN\Richard</UserId> <LogonType>InteractiveToken</LogonType> <RunLevel>LeastPrivilege</RunLevel> </Principal> </Principals> <Settings> <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy> <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries> <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries> <AllowHardTerminate>true</AllowHardTerminate> <StartWhenAvailable>true</StartWhenAvailable> <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable> <IdleSettings> <StopOnIdleEnd>true</StopOnIdleEnd> <RestartOnIdle>false</RestartOnIdle> </IdleSettings> <AllowStartOnDemand>true</AllowStartOnDemand> <Enabled>false</Enabled> <Hidden>false</Hidden> <RunOnlyIfIdle>false</RunOnlyIfIdle> <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession> <UseUnifiedSchedulingEngine>false</UseUnifiedSchedulingEngine> <WakeToRun>false</WakeToRun> <ExecutionTimeLimit>PT23H52M</ExecutionTimeLimit> <Priority>7</Priority> </Settings> <Actions Context="Author"> <Exec> <Command>C:\IBController\IBControllerStart.bat /INLINE</Command> <WorkingDirectory>C:\IBController</WorkingDirectory> </Exec> </Actions> </Task>
{ "pile_set_name": "Github" }
(* ==== PERVASIVE LIBRARY UTILITIES ==== * FUNCTOR * * Copyright 2013 Ravenbrook Limited <http://www.ravenbrook.com/>. * 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 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. * * Implementation * -------------- * See individual function comments for documentation. * * Revision Log * ------------ * $Log: _library.sml,v $ * Revision 1.58 1998/01/30 09:45:02 johnh * [Bug #30326] * Merge in change from branch MLWorks_workspace_97 * * Revision 1.57.2.2 1997/11/20 17:01:13 daveb * [Bug #30326] * * Revision 1.57.2.1 1997/09/11 20:56:58 daveb * branched from trunk for label MLWorks_workspace_97 * * Revision 1.57 1997/05/12 16:01:27 jont * [Bug #20050] * main/io now exports MLWORKS_IO * * Revision 1.56 1997/01/21 11:52:38 matthew * Adding Options * * Revision 1.55 1996/12/04 16:56:18 matthew * Simplifications * * Revision 1.54 1996/10/10 02:42:17 io * moving String from toplevel * * Revision 1.53 1996/02/23 16:19:00 jont * newmap becomes map, NEWMAP becomes MAP * * Revision 1.52 1995/08/11 17:09:05 daveb * Added new types for different sizes of ints, words, and reals. * * Revision 1.51 1995/02/28 14:08:59 matthew * Changes to DebuggerTypes. * * Revision 1.50 1994/10/10 10:13:39 matthew * Adding module annotations to lambda syntax. * * Revision 1.49 1994/09/19 13:43:24 matthew * Changes to lambdatypes * * Revision 1.48 1994/09/09 17:11:58 jont * Machine specific functions is_fun and implicit_references moved to machperv * * Revision 1.47 1994/07/19 15:10:38 matthew * Multiple args for functions and applications * * Revision 1.46 1993/12/17 15:23:12 io * Changed some require paths * * Revision 1.45 1993/08/12 12:14:01 nosa * FNs now passed closed-over type variables and * stack frame-offset for runtime-instance for polymorphic debugger. * * Revision 1.44 1993/07/29 16:27:44 nosa * structure Option. * * Revision 1.43 1993/03/10 17:07:03 matthew * Signature revisions * * Revision 1.42 1993/03/01 15:11:35 matthew * Added MLVALUE lambda exp * * Revision 1.41 1993/01/14 14:43:20 daveb * Changed explicit manipulation of list representation to use new format. * * Revision 1.40 1992/11/21 19:21:51 jont * Replaced MachSpec with MachPerv * * Revision 1.39 1992/10/26 18:20:23 daveb * Minor changes to support the new type of SWITCHes. * * Revision 1.38 1992/09/24 11:48:19 jont * removed some redundant bindings * * Revision 1.37 1992/09/03 16:40:02 richard * Moved the special names out of the compiler as a whole. * * Revision 1.36 1992/08/26 13:46:53 jont * Removed some redundant structures and sharing * * Revision 1.35 1992/08/19 18:37:21 davidt * Now uses NewMap instead of Map. * * Revision 1.34 1992/08/03 13:07:57 davidt * Type of BUILTIN changed a little. * * Revision 1.33 1992/07/17 14:38:30 clive * null_type_annotation no longer a function * * Revision 1.32 1992/07/01 13:42:12 davida * Added LET constructor and new slot to APP. * * Revision 1.31 1992/06/29 09:33:43 clive * Added type annotation information at application points * * Revision 1.30 1992/06/23 10:10:34 clive * Added an annotation slot to HANDLE * * Revision 1.29 1992/06/11 09:46:29 clive * Made changes as LET now has a string annotation * * Revision 1.28 1992/06/08 12:57:52 jont * changed to produce lists as compilation units instead of tuples * * Revision 1.27 1992/05/06 11:45:51 jont * Modified to use augmented lambda calculus * * Revision 1.26 1992/04/13 15:28:33 clive * First version of the profiler * * Revision 1.25 1992/02/11 11:07:19 clive * New pervasive library code * * Revision 1.24 1992/02/03 20:09:39 jont * Made sure eta abstraction on builtins occurs even when there are * no external references * * Revision 1.23 1992/01/09 14:50:02 richard * Removed extra set of lambda bindings wrapped around expression in * build_external_environment. * * Revision 1.22 1991/12/10 13:49:41 richard * Fixed bug whereby the switch expression was not analysed for * external references. * * Revision 1.21 91/12/09 12:17:28 richard * Removed redundant `.mo' extension from the name of the pervasive * library. * * Revision 1.20 91/12/04 15:00:04 richard * Added an extra SELECT operation on the pervasive library so * that this can be a structure rather than a set of top-level * declarations. This means it gets sorted correctly by the * compiler. * * Revision 1.19 91/11/28 16:33:37 richard * Completely reimplemented this module, tidied it up, and documented it. * The functions provided have changed quite a bit. * * Revision 1.18 91/11/18 15:08:03 jont * Fixed builtin_implicit_set so as to know about builtins which will be * eta_abstracted. Also tidied up remnants of old CALL_C stuff. * * Revision 1.17 91/11/15 14:13:57 richard * Changed the ordering on pervasive symbols to work on the library names * rather than on the printing names. * * Revision 1.16 91/11/14 17:08:10 jont * Eta abstracted builtin functions where they aren't applied so they * can be inline generated. Required by Pervasives * * Revision 1.15 91/11/12 16:57:09 jont * Moved is_inline function out into MachPerv, which knows the real answers * * Revision 1.14 91/10/29 14:57:35 jont * Added reference to existence of machine level div, mod, * for determining * whether to inline various primitives * * Revision 1.13 91/10/22 18:27:34 davidt * The structure LambdaSub.LambdaTypes is now called LambdaSub.LT * * Revision 1.12 91/10/22 16:53:23 davidt * Replaced impossible exception with call to Crash.impossible. * * Revision 1.11 91/10/16 16:19:01 jont * Added CALL_C to result of prims_in_le * * Revision 1.10 91/10/15 13:59:29 jont * Added stuff to do with CALL_C required for garbage collection. * * Revision 1.9 91/10/09 15:20:30 davidt * Made changes due to record selection now requiring both the total * size of the record as well as the index. * * Revision 1.8 91/10/08 11:50:01 jont * Changed use of lambdasub.number_from to lists.number_from_by_one * * Revision 1.7 91/09/24 15:41:14 jont * Fixed bug whereby chr -> Chr and ord -> Ord correspondences were left * out. Alos corrected exception raised by mod * * Revision 1.6 91/09/24 13:01:33 davida * Fixed bug in add_pervasive_refs function. * * Revision 1.5 91/09/23 12:30:08 jont * Added stuff to deal with implicit exceptions (eg from ADDV) * * Revision 1.4 91/09/18 11:29:30 jont * Fixed bug whereby builtin exceptions weren't visible * * Revision 1.3 91/09/16 16:43:40 jont * Corrected spelling of _make_new_unique * * Revision 1.2 91/09/09 13:34:15 davida * Changed to use reduce_left from Lists, not LambdaSub. * * Revision 1.1 91/09/05 11:00:38 jont * Initial revision *) require "../utils/diagnostic"; require "../utils/lists"; require "../utils/crash"; require "../utils/map"; require "../lambda/auglambda"; require "../lambda/lambdaprint"; require "machperv"; require "mlworks_io"; require "library"; functor Library( structure Diagnostic : DIAGNOSTIC structure Lists : LISTS structure Crash : CRASH structure NewMap : MAP structure AugLambda : AUGLAMBDA structure LambdaPrint : LAMBDAPRINT structure MachPerv : MACHPERV structure Io : MLWORKS_IO sharing LambdaPrint.LambdaTypes = AugLambda.LambdaTypes sharing type MachPerv.Pervasives.pervasive = LambdaPrint.LambdaTypes.Primitive ) : LIBRARY = struct structure Pervasives = MachPerv.Pervasives structure LambdaTypes = LambdaPrint.LambdaTypes structure NewMap = NewMap structure Set = LambdaTypes.Set structure AugLambda = AugLambda structure Ident = LambdaTypes.Ident type CompilerOptions = MachPerv.CompilerOptions (* == Change references to BUILTINs to lambda variables == * * Given a lambda expression and a map from pervasives to lambda * variables, this function generates a new lambda expression with all * references to pervasives in the map converted to lambda variables, * EXCEPT if the pervasive is in line and not applied, in which case an * eta-abstraction is built around it. * * For example, BUILTIN _int+ ---> \x.APP(BUILTIN _int+, x) *) (* This shouldn't really be needed *) (* Eta-abstraction over some expression. *) (* Generates a new lambda-variable. *) fun eta_abstract (le,annotation,ty) = let val lvar = LambdaTypes.new_LVar() in LambdaTypes.FN (([lvar],[]), LambdaTypes.APP (le, ([LambdaTypes.VAR lvar],[]), SOME(ty)), LambdaTypes.BODY, annotation, LambdaTypes.null_type_annotation, LambdaTypes.internal_funinfo) end (* Moved here from lambdasub as this was its only use *) (* could certainly be simplified somewhat *) fun apply_one_level appsub = let fun apopt f (SOME x) = SOME (f x) | apopt _ NONE = NONE fun apply_tagval (LambdaTypes.EXP_TAG tagexp, value) = (LambdaTypes.EXP_TAG (appsub tagexp), appsub value) | apply_tagval (tagexp, value) = (tagexp, appsub value) fun apply (le as LambdaTypes.VAR _) = le | apply (LambdaTypes.FN(args, le, status, x,ty,instance)) = LambdaTypes.FN (args, appsub le,status, x,ty,instance) | apply (LambdaTypes.LET((lv,info,lb),le)) = LambdaTypes.LET((lv,info,appsub lb),appsub le) | apply (LambdaTypes.LETREC(lvl, lel, le)) = LambdaTypes.LETREC (lvl, map appsub lel, appsub le) | apply (LambdaTypes.APP(p, (q,r), annotation)) = LambdaTypes.APP(appsub p, (map appsub q, map appsub r), annotation) | apply (le as LambdaTypes.SCON _) = le | apply (le as LambdaTypes.MLVALUE _) = le | apply (le as LambdaTypes.INT _) = le | apply (LambdaTypes.SWITCH(le, info, clel, leo)) = LambdaTypes.SWITCH (appsub le, info, map apply_tagval clel, apopt appsub leo) | apply (LambdaTypes.STRUCT (lel,ty)) = LambdaTypes.STRUCT (map appsub lel,ty) | apply (LambdaTypes.SELECT (fld, le)) = LambdaTypes.SELECT (fld, appsub le) | apply (LambdaTypes.RAISE (le)) = LambdaTypes.RAISE (appsub le) | apply (LambdaTypes.HANDLE (le1, le2,annotation)) = LambdaTypes.HANDLE (appsub le1, appsub le2, annotation) | apply (le as LambdaTypes.BUILTIN _) = le in apply end fun externalise (options,expression, extern_map) = let open LambdaTypes fun externalise' (APP (BUILTIN pervasive, (el,fpel), ty)) = if MachPerv.is_inline (options,pervasive) then APP (BUILTIN pervasive, (map externalise' el, map externalise' fpel), ty) else APP (VAR (NewMap.apply'(extern_map, pervasive)), (map externalise' el, map externalise' fpel), ty) | externalise' (expression as BUILTIN pervasive) = if (MachPerv.is_inline (options, pervasive) andalso MachPerv.is_fun pervasive) then externalise' (eta_abstract (expression,"Builtin function " ^ Pervasives.print_pervasive pervasive, ref null_type_annotation)) else VAR (NewMap.apply'(extern_map, pervasive)) | externalise' expression = apply_one_level externalise' expression in externalise' expression end (* === EXTRACT ALL EXTERNAL REFERENCES === * * The following rules are applied: * * APP(BUILTIN pervasive, ...) --> pervasive if not inline * implicits if inline * BUILTIN pervasive --> pervasive if not inline * pervasive if not a function * implicits if inline and a function * SWITCH on string --> STRING_EQ pervasive and its implicits * * In the first case the pervasive is known to be a function, so the * function test is not required. Non-functions cannot make implicit * references. *) fun external_references (options, expression) = let open LambdaTypes fun find (done, APP (BUILTIN pervasive, (el,fpel), ty)) = if MachPerv.is_inline (options,pervasive) then Lists.reducel find ((MachPerv.implicit_references pervasive) @ done, (fpel @ el)) else Lists.reducel find (pervasive :: done, fpel @ el) | find (done, BUILTIN pervasive) = if (MachPerv.is_inline (options, pervasive) andalso MachPerv.is_fun pervasive) then (MachPerv.implicit_references pervasive) @ done else pervasive :: done | find (done, SWITCH (expression, info, cases, default)) = let fun find_case (done, (EXP_TAG expression, expression')) = find (find (done, expression), expression') | find_case (done, (SCON_TAG (Ident.STRING _, _), expression')) = let val references = Pervasives.STRINGEQ :: (MachPerv.implicit_references Pervasives.STRINGEQ) in find (references @ done, expression') end | find_case (done, (_, expression')) = find (done, expression') fun find_option (done, SOME expression) = find (done, expression) | find_option (done, NONE) = done in Lists.reducel find_case (find_option (find (done, expression), default), cases) end | find (done, VAR _) = done | find (done, FN (_, expression,_,_,_,_)) = find (done, expression) | find (done, LET ((_,_, binding),expression)) = find (find (done,binding), expression) | find (done, APP (expression, (el,fpel), _)) = Lists.reducel find (find (done, expression), fpel @ el) | find (done, SCON _) = done | find (done, MLVALUE _) = done | find (done, INT _) = done | find (done, SELECT (_, expression)) = find (done, expression) | find (done, STRUCT (expressions,_)) = Lists.reducel find (done, expressions) | find (done, RAISE (expression)) = find (done, expression) | find (done, HANDLE (expression, expression',_)) = find (find (done, expression), expression') | find (done, LETREC (_, expressions, expression')) = Lists.reducel find (find (done, expression'), expressions) in Set.list_to_set (find ([], expression)) end (* === EXTRACT IMPLICIT EXTERNAL REFERENCES === * * The following rules are applied: * * APP (BUILTIN pervasive, ...) --> implicits of the pervasive * SWITCH on string --> implicits of STRINGEQ *) fun implicit_external_references expression = let open AugLambda fun find (done, {lexp=APP ({lexp=BUILTIN(pervasive,_), ...}, (el,fpel),_), size=_}) = Lists.reducel find ((MachPerv.implicit_references pervasive) @ done, fpel @ el) | find (done, {lexp=SWITCH (expression, info, cases, default), ...}) = let fun find_case (done, (EXP_TAG expression, expression')) = find (find (done, expression), expression') | find_case (done, (SCON_TAG (Ident.STRING _, _), expression')) = let val references = MachPerv.implicit_references Pervasives.STRINGEQ in find (references @ done, expression') end | find_case (done, (_, expression')) = find (done, expression') fun find_option (done, SOME expression) = find (done, expression) | find_option (done, NONE) = done in Lists.reducel find_case (find_option (find (done, expression), default), cases) end (* The rest of the cases are uninteresting, except LETREC which is *) (* just cute. *) | find (done, {lexp=BUILTIN pervasive, ...}) = done | find (done, {lexp=VAR _, ...}) = done | find (done, {lexp=FN (_, expression,_,_), ...}) = find (done, expression) | find (done, {lexp=LET ((_,_, binding), expression),...}) = find (find (done, binding), expression) | find (done, {lexp=APP (expression, (el,fpel),_), ...}) = Lists.reducel find (find (done, expression), fpel @ el) | find (done, {lexp=SCON _, ...}) = done | find (done, {lexp=MLVALUE _, ...}) = done | find (done, {lexp=INT _, ...}) = done | find (done, {lexp=SELECT (_, expression), ...}) = find (done, expression) | find (done, {lexp=STRUCT expressions, ...}) = Lists.reducel find (done, expressions) | find (done, {lexp=RAISE (expression), ...}) = find (done, expression) | find (done, {lexp=HANDLE (expression, expression'), ...}) = find (find (done, expression), expression') | find (done, {lexp=LETREC (_, expressions, expression'), ...}) = Lists.reducel find (find (done, expression'), expressions) in Set.list_to_set (find ([], {lexp=expression, size=0})) end (* === BUILD EXTERNAL ENVIRONMENT === * * This function calls `external_references' to find out which external * pervasives are actually needed by the expression. If there are any, * then it makes a new lambda variable which is the pervasive library * structure (obtained by applying LOAD_LIBRARY to its name), then makes * a new lambda variable for each pervasive needed by SELECTing from the * first variable. * * The original lambda expression is then transformed by converting the * external pervasives into their equivalent lambda variables, and this * is then wrapped in a LET expression containing the variable * definitions. *) fun build_external_environment (options, expression) = let val external_pervasives = external_references (options,expression) val _ = Diagnostic.output 1 (fn _ => "Library: External pervasives:" :: (map (fn p => " " ^ Pervasives.print_pervasive p) (Set.set_to_list external_pervasives))) in (* If there are no external references then there is no need to *) (* reference the library at all. *) if Set.empty_setp external_pervasives then (NewMap.empty (Pervasives.order,Pervasives.eq), externalise(options, expression, NewMap.empty (Pervasives.order,Pervasives.eq))) else let val library_lvar = LambdaTypes.new_LVar() val library_binding = let open LambdaTypes in (library_lvar, SELECT ({index = 0, size = 2,selecttype=TUPLE}, APP (BUILTIN Pervasives.LOAD_STRING, ([SCON (Ident.STRING Io.builtin_library_name, NONE)],[]), NONE))) end fun make_bindings (bindings, map, []) = (bindings, map) | make_bindings (bindings, map, pervasive::pervasives) = let val lvar = LambdaTypes.new_LVar() val select = LambdaTypes.SELECT ({index = Pervasives.field_number pervasive, size = Pervasives.nr_fields, selecttype = LambdaTypes.STRUCTURE}, LambdaTypes.VAR library_lvar) (* (* REMOVE BEFORE CHECKING IN *) val select = LambdaTypes.SELECT ({index=0, size=2, selecttype=LambdaTypes.TUPLE}, select) *) val map' = NewMap.define(map, pervasive, lvar) in make_bindings ((lvar, select)::bindings, map', pervasives) end val (bindings, map) = make_bindings ([], NewMap.empty (Pervasives.order,Pervasives.eq), Set.set_to_list external_pervasives) fun wrap_lets (expression, vas) = let fun nest ((var,arg),body) = LambdaTypes.LET((var, NONE, arg),body) in foldl nest expression (rev vas) end val expression' = wrap_lets (externalise (options, expression, map), library_binding::bindings) val _ = Diagnostic.output 3 (fn _ => ["Library: Externalised lambda expression:\n", LambdaPrint.string_of_lambda expression']) in (map, expression') end end end
{ "pile_set_name": "Github" }
#!/bin/sh . ./setup.sh commonName="/CN=Openswan Unit Testing Root CA" DN=$countryName$stateOrProvinceName$localityName DN=$DN$organizationName$organizationalUnitName$commonName export subjectAltName=email:[email protected] # 1220 days = three years plus 125 days if [ ! -f $rootca/private/ca.key.$format ]; then echo GENERATING RSA KEY CA key openssl genpkey $pass -aes256 -outform $format -out $rootca/private/ca.key.$format chmod 400 $rootca/private/ca.key.$format openssl pkey $passin -inform $format -in $rootca/private/ca.key.$format\ -text -noout fi openssl req -config $cfgdir/openssl-root.cnf $passin \ -set_serial 0x$(openssl rand -hex $sn)\ -keyform $format -outform $format\ -key $rootca/private/ca.key.$format -subj "$DN"\ -new -x509 -days 1220 -sha256 -extensions v3_ca\ -out $cadir/certs/ca.cert.$format
{ "pile_set_name": "Github" }
/* * This file is used to build the API routes, we may have * different routes for views and the like */ const express = require('express') const userRoutes = require('./users') //use the user route shit const router = express.Router() //make a new router router.use('/users', userRoutes) //tell it to use the userRoutes module.exports = router
{ "pile_set_name": "Github" }
export default function _readOnlyError(name) { throw new Error("\"" + name + "\" is read-only"); }
{ "pile_set_name": "Github" }
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. part of models; abstract class IsolateGroupRef { /// The id which is passed to the getIsolateGroup RPC to reload this /// isolate group. String get id; /// A numeric id for this isolate group, represented as a string. Unique. int get number; /// A name identifying this isolate group. Not guaranteed to be unique. String get name; bool get isSystemIsolateGroup; } abstract class IsolateGroup extends IsolateGroupRef { /// A list of all isolates in this isolate group. Iterable<IsolateRef> get isolates; }
{ "pile_set_name": "Github" }
/* iCheck plugin Square skin ----------------------------------- */ .icheckbox_square,.iradio_square { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(square.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square { background-position: 0 0; } .icheckbox_square.hover { background-position: -24px 0; } .icheckbox_square.checked { background-position: -48px 0; } .icheckbox_square.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square.checked.disabled { background-position: -96px 0; } .iradio_square { background-position: -120px 0; } .iradio_square.hover { background-position: -144px 0; } .iradio_square.checked { background-position: -168px 0; } .iradio_square.disabled { background-position: -192px 0; cursor: default; } .iradio_square.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5) , only screen and (-moz-min-device-pixel-ratio: 1.5) , only screen and (-o-min-device-pixel-ratio: 3/2) , only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square,.iradio_square { background-image: url([email protected]); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* red */ .icheckbox_square-red,.iradio_square-red { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(red.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-red { background-position: 0 0; } .icheckbox_square-red.hover { background-position: -24px 0; } .icheckbox_square-red.checked { background-position: -48px 0; } .icheckbox_square-red.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-red.checked.disabled { background-position: -96px 0; } .iradio_square-red { background-position: -120px 0; } .iradio_square-red.hover { background-position: -144px 0; } .iradio_square-red.checked { background-position: -168px 0; } .iradio_square-red.disabled { background-position: -192px 0; cursor: default; } .iradio_square-red.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5) , only screen and (-moz-min-device-pixel-ratio: 1.5) , only screen and (-o-min-device-pixel-ratio: 3/2) , only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-red,.iradio_square-red { background-image: url([email protected]); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* green */ .icheckbox_square-green,.iradio_square-green { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(green.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-green { background-position: 0 0; } .icheckbox_square-green.hover { background-position: -24px 0; } .icheckbox_square-green.checked { background-position: -48px 0; } .icheckbox_square-green.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-green.checked.disabled { background-position: -96px 0; } .iradio_square-green { background-position: -120px 0; } .iradio_square-green.hover { background-position: -144px 0; } .iradio_square-green.checked { background-position: -168px 0; } .iradio_square-green.disabled { background-position: -192px 0; cursor: default; } .iradio_square-green.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5) , only screen and (-moz-min-device-pixel-ratio: 1.5) , only screen and (-o-min-device-pixel-ratio: 3/2) , only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-green,.iradio_square-green { background-image: url([email protected]); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* blue */ .icheckbox_square-blue,.iradio_square-blue { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(blue.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-blue { background-position: 0 0; } .icheckbox_square-blue.hover { background-position: -24px 0; } .icheckbox_square-blue.checked { background-position: -48px 0; } .icheckbox_square-blue.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-blue.checked.disabled { background-position: -96px 0; } .iradio_square-blue { background-position: -120px 0; } .iradio_square-blue.hover { background-position: -144px 0; } .iradio_square-blue.checked { background-position: -168px 0; } .iradio_square-blue.disabled { background-position: -192px 0; cursor: default; } .iradio_square-blue.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5) , only screen and (-moz-min-device-pixel-ratio: 1.5) , only screen and (-o-min-device-pixel-ratio: 3/2) , only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-blue,.iradio_square-blue { background-image: url([email protected]); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* aero */ .icheckbox_square-aero,.iradio_square-aero { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(aero.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-aero { background-position: 0 0; } .icheckbox_square-aero.hover { background-position: -24px 0; } .icheckbox_square-aero.checked { background-position: -48px 0; } .icheckbox_square-aero.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-aero.checked.disabled { background-position: -96px 0; } .iradio_square-aero { background-position: -120px 0; } .iradio_square-aero.hover { background-position: -144px 0; } .iradio_square-aero.checked { background-position: -168px 0; } .iradio_square-aero.disabled { background-position: -192px 0; cursor: default; } .iradio_square-aero.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5) , only screen and (-moz-min-device-pixel-ratio: 1.5) , only screen and (-o-min-device-pixel-ratio: 3/2) , only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-aero,.iradio_square-aero { background-image: url([email protected]); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* grey */ .icheckbox_square-grey,.iradio_square-grey { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(grey.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-grey { background-position: 0 0; } .icheckbox_square-grey.hover { background-position: -24px 0; } .icheckbox_square-grey.checked { background-position: -48px 0; } .icheckbox_square-grey.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-grey.checked.disabled { background-position: -96px 0; } .iradio_square-grey { background-position: -120px 0; } .iradio_square-grey.hover { background-position: -144px 0; } .iradio_square-grey.checked { background-position: -168px 0; } .iradio_square-grey.disabled { background-position: -192px 0; cursor: default; } .iradio_square-grey.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5) , only screen and (-moz-min-device-pixel-ratio: 1.5) , only screen and (-o-min-device-pixel-ratio: 3/2) , only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-grey,.iradio_square-grey { background-image: url([email protected]); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* orange */ .icheckbox_square-orange,.iradio_square-orange { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(orange.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-orange { background-position: 0 0; } .icheckbox_square-orange.hover { background-position: -24px 0; } .icheckbox_square-orange.checked { background-position: -48px 0; } .icheckbox_square-orange.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-orange.checked.disabled { background-position: -96px 0; } .iradio_square-orange { background-position: -120px 0; } .iradio_square-orange.hover { background-position: -144px 0; } .iradio_square-orange.checked { background-position: -168px 0; } .iradio_square-orange.disabled { background-position: -192px 0; cursor: default; } .iradio_square-orange.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5) , only screen and (-moz-min-device-pixel-ratio: 1.5) , only screen and (-o-min-device-pixel-ratio: 3/2) , only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-orange,.iradio_square-orange { background-image: url([email protected]); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* yellow */ .icheckbox_square-yellow,.iradio_square-yellow { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(yellow.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-yellow { background-position: 0 0; } .icheckbox_square-yellow.hover { background-position: -24px 0; } .icheckbox_square-yellow.checked { background-position: -48px 0; } .icheckbox_square-yellow.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-yellow.checked.disabled { background-position: -96px 0; } .iradio_square-yellow { background-position: -120px 0; } .iradio_square-yellow.hover { background-position: -144px 0; } .iradio_square-yellow.checked { background-position: -168px 0; } .iradio_square-yellow.disabled { background-position: -192px 0; cursor: default; } .iradio_square-yellow.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5) , only screen and (-moz-min-device-pixel-ratio: 1.5) , only screen and (-o-min-device-pixel-ratio: 3/2) , only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-yellow,.iradio_square-yellow { background-image: url([email protected]); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* pink */ .icheckbox_square-pink,.iradio_square-pink { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(pink.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-pink { background-position: 0 0; } .icheckbox_square-pink.hover { background-position: -24px 0; } .icheckbox_square-pink.checked { background-position: -48px 0; } .icheckbox_square-pink.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-pink.checked.disabled { background-position: -96px 0; } .iradio_square-pink { background-position: -120px 0; } .iradio_square-pink.hover { background-position: -144px 0; } .iradio_square-pink.checked { background-position: -168px 0; } .iradio_square-pink.disabled { background-position: -192px 0; cursor: default; } .iradio_square-pink.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5) , only screen and (-moz-min-device-pixel-ratio: 1.5) , only screen and (-o-min-device-pixel-ratio: 3/2) , only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-pink,.iradio_square-pink { background-image: url([email protected]); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* purple */ .icheckbox_square-purple,.iradio_square-purple { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(purple.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-purple { background-position: 0 0; } .icheckbox_square-purple.hover { background-position: -24px 0; } .icheckbox_square-purple.checked { background-position: -48px 0; } .icheckbox_square-purple.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-purple.checked.disabled { background-position: -96px 0; } .iradio_square-purple { background-position: -120px 0; } .iradio_square-purple.hover { background-position: -144px 0; } .iradio_square-purple.checked { background-position: -168px 0; } .iradio_square-purple.disabled { background-position: -192px 0; cursor: default; } .iradio_square-purple.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5) , only screen and (-moz-min-device-pixel-ratio: 1.5) , only screen and (-o-min-device-pixel-ratio: 3/2) , only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-purple,.iradio_square-purple { background-image: url([email protected]); -webkit-background-size: 240px 24px; background-size: 240px 24px; } }
{ "pile_set_name": "Github" }
# Upgrade to 2.9 ## Deprecated `Statement::fetchColumn()` with an invalid index Calls to `Statement::fetchColumn()` with an invalid column index currently return `NULL`. In the future, such calls will result in a exception. ## Deprecated `Configuration::getFilterSchemaAssetsExpression()`, `::setFilterSchemaAssetsExpression()` and `AbstractSchemaManager::getFilterSchemaAssetsExpression()`. Regular expression-based filters are hard to extend by combining together. Instead, you may use callback-based filers via `::getSchemaAssetsFilter()` and `::getSchemaAssetsFilter()`. Callbacks can use regular expressions internally. ## Deprecated `Doctrine\DBAL\Types\Type::getDefaultLength()` This method was never used by DBAL internally. It is now deprecated and will be removed in DBAL 3.0. ## Deprecated `Doctrine\DBAL\Types\Type::__toString()` Relying on string representation is discouraged and will be removed in DBAL 3.0. ## Deprecated `NULL` value of `$offset` in LIMIT queries The `NULL` value of the `$offset` argument in `AbstractPlatform::(do)?ModifyLimitQuery()` methods is deprecated. If explicitly used in the method call, the absence of the offset should be indicated with a `0`. ## Deprecated dbal:import CLI command The `dbal:import` CLI command has been deprecated since it only works with PDO-based drivers by relying on a non-documented behavior of the extension, and it's impossible to make it work with other drivers. Please use other database client applications for import, e.g.: * For MySQL and MariaDB: `mysql [dbname] < data.sql`. * For PostgreSQL: `psql [dbname] < data.sql`. * For SQLite: `sqlite3 /path/to/file.db < data.sql`. # Upgrade to 2.8 ## Deprecated usage of DB-generated UUIDs The format of DB-generated UUIDs is inconsistent across supported platforms and therefore is not portable. Some of the platforms produce UUIDv1, some produce UUIDv4, some produce the values which are not even UUID. Unless UUIDs are used in stored procedures which DBAL doesn't support, there's no real benefit of DB-generated UUIDs comparing to the application-generated ones. Use a PHP library (e.g. [ramsey/uuid](https://packagist.org/packages/ramsey/uuid)) to generate UUIDs on the application side. ## Deprecated usage of binary fields whose length exceeds the platform maximum - The usage of binary fields whose length exceeds the maximum field size on a given platform is deprecated. Use binary fields of a size which fits all target platforms, or use blob explicitly instead. ## Removed dependency on doctrine/common The dependency on doctrine/common package has been removed. DBAL now depends on doctrine/cache and doctrine/event-manager instead. If you are using any other component from doctrine/common package, you will have to add an explicit dependency to your composer.json. ## Corrected exception thrown by ``Doctrine\DBAL\Platforms\SQLAnywhere16Platform::getAdvancedIndexOptionsSQL()`` This method now throws SPL ``UnexpectedValueException`` instead of accidentally throwing ``Doctrine\Common\Proxy\Exception\UnexpectedValueException``. # Upgrade to 2.7 ## Doctrine\DBAL\Platforms\AbstractPlatform::DATE_INTERVAL_UNIT_* constants deprecated ``Doctrine\DBAL\Platforms\AbstractPlatform::DATE_INTERVAL_UNIT_*`` constants were moved into ``Doctrine\DBAL\Platforms\DateIntervalUnit`` class without the ``DATE_INTERVAL_UNIT_`` prefix. ## Doctrine\DBAL\Platforms\AbstractPlatform::TRIM_* constants deprecated ``Doctrine\DBAL\Platforms\AbstractPlatform::TRIM_*`` constants were moved into ``Doctrine\DBAL\Platforms\TrimMode`` class without the ``TRIM_`` prefix. ## Doctrine\DBAL\Connection::TRANSACTION_* constants deprecated ``Doctrine\DBAL\Connection::TRANSACTION_*`` were moved into ``Doctrine\DBAL\TransactionIsolationLevel`` class without the ``TRANSACTION_`` prefix. ## DEPRECATION: direct usage of the PDO APIs in the DBAL API 1. When calling `Doctrine\DBAL\Driver\Statement` methods, instead of `PDO::PARAM_*` constants, `Doctrine\DBAL\ParameterType` constants should be used. 2. When calling `Doctrine\DBAL\Driver\ResultStatement` methods, instead of `PDO::FETCH_*` constants, `Doctrine\DBAL\FetchMode` constants should be used. 3. When configuring `Doctrine\DBAL\Portability\Connection`, instead of `PDO::CASE_*` constants, `Doctrine\DBAL\ColumnCase` constants should be used. 4. Usage of `PDO::PARAM_INPUT_OUTPUT` in `Doctrine\DBAL\Driver\Statement::bindValue()` is deprecated. 5. Usage of `PDO::FETCH_FUNC` in `Doctrine\DBAL\Driver\ResultStatement::fetch()` is deprecated. 6. Calls to `\PDOStatement` methods on a `\Doctrine\DBAL\Driver\PDOStatement` instance (e.g. `fetchObject()`) are deprecated. # Upgrade to 2.6 ## MINOR BC BREAK: `fetch()` and `fetchAll()` method signatures in `Doctrine\DBAL\Driver\ResultStatement` 1. ``Doctrine\DBAL\Driver\ResultStatement::fetch()`` now has 3 arguments instead of 1, respecting ``PDO::fetch()`` signature. Before: Doctrine\DBAL\Driver\ResultStatement::fetch($fetchMode); After: Doctrine\DBAL\Driver\ResultStatement::fetch($fetchMode, $cursorOrientation, $cursorOffset); 2. ``Doctrine\DBAL\Driver\ResultStatement::fetchAll()`` now has 3 arguments instead of 1, respecting ``PDO::fetchAll()`` signature. Before: Doctrine\DBAL\Driver\ResultStatement::fetchAll($fetchMode); After: Doctrine\DBAL\Driver\ResultStatement::fetch($fetchMode, $fetchArgument, $ctorArgs); ## MINOR BC BREAK: URL-style DSN with percentage sign in password URL-style DSNs (e.g. ``mysql://foo@bar:localhost/db``) are now assumed to be percent-encoded in order to allow certain special characters in usernames, paswords and database names. If you are using a URL-style DSN and have a username, password or database name containing a percentage sign, you need to update your DSN. If your password is, say, ``foo%foo``, it should be encoded as ``foo%25foo``. # Upgrade to 2.5.1 ## MINOR BC BREAK: Doctrine\DBAL\Schema\Table When adding indexes to ``Doctrine\DBAL\Schema\Table`` via ``addIndex()`` or ``addUniqueIndex()``, duplicate indexes are not silently ignored/dropped anymore (based on semantics, not naming!). Duplicate indexes are considered indexes that pass ``isFullfilledBy()`` or ``overrules()`` in ``Doctrine\DBAL\Schema\Index``. This is required to make the index renaming feature introduced in 2.5.0 work properly and avoid issues in the ORM schema tool / DBAL schema manager which pretends users from updating their schemas and migrate to DBAL 2.5.*. Additionally it offers more flexibility in declaring indexes for the user and potentially fixes related issues in the ORM. With this change, the responsibility to decide which index is a "duplicate" is completely deferred to the user. Please also note that adding foreign key constraints to a table via ``addForeignKeyConstraint()``, ``addUnnamedForeignKeyConstraint()`` or ``addNamedForeignKeyConstraint()`` now first checks if an appropriate index is already present and avoids adding an additional auto-generated one eventually. # Upgrade to 2.5 ## BC BREAK: time type resets date fields to UNIX epoch When mapping `time` type field to PHP's `DateTime` instance all unused date fields are reset to UNIX epoch (i.e. 1970-01-01). This might break any logic which relies on comparing `DateTime` instances with date fields set to the current date. Use `!` format prefix (see http://php.net/manual/en/datetime.createfromformat.php) for parsing time strings to prevent having different date fields when comparing user input and `DateTime` instances as mapped by Doctrine. ## BC BREAK: Doctrine\DBAL\Schema\Table The methods ``addIndex()`` and ``addUniqueIndex()`` in ``Doctrine\DBAL\Schema\Table`` have an additional, optional parameter. If you override these methods, you should add this new parameter to the declaration of your overridden methods. ## BC BREAK: Doctrine\DBAL\Connection The visibility of the property ``$_platform`` in ``Doctrine\DBAL\Connection`` was changed from protected to private. If you have subclassed ``Doctrine\DBAL\Connection`` in your application and accessed ``$_platform`` directly, you have to change the code portions to use ``getDatabasePlatform()`` instead to retrieve the underlying database platform. The reason for this change is the new automatic platform version detection feature, which lazily evaluates the appropriate platform class to use for the underlying database server version at runtime. Please also note, that calling ``getDatabasePlatform()`` now needs to establish a connection in order to evaluate the appropriate platform class if ``Doctrine\DBAL\Connection`` is not already connected. Under the following circumstances, it is not possible anymore to retrieve the platform instance from the connection object without having to do a real connect: 1. ``Doctrine\DBAL\Connection`` was instantiated without the ``platform`` connection parameter. 2. ``Doctrine\DBAL\Connection`` was instantiated without the ``serverVersion`` connection parameter. 3. The underlying driver is "version aware" and can provide different platform instances for different versions. 4. The underlying driver connection is "version aware" and can provide the database server version without having to query for it. If one of the above conditions is NOT met, there is no need for ``Doctrine\DBAL\Connection`` to do a connect when calling ``getDatabasePlatform()``. ## datetime Type uses date_create() as fallback Before 2.5 the DateTime type always required a specific format, defined in `$platform->getDateTimeFormatString()`, which could cause quite some troubles on platforms that had various microtime precision formats. Starting with 2.5 whenever the parsing of a date fails with the predefined platform format, the `date_create()` function will be used to parse the date. This could cause some troubles when your date format is weird and not parsed correctly by `date_create`, however since databases are rather strict on dates there should be no problem. ## Support for pdo_ibm driver removed The ``pdo_ibm`` driver is buggy and does not work well with Doctrine. Therefore it will no longer be supported and has been removed from the ``Doctrine\DBAL\DriverManager`` drivers map. It is highly encouraged to to use `ibm_db2` driver instead if you want to connect to an IBM DB2 database as it is much more stable and secure. If for some reason you have to utilize the ``pdo_ibm`` driver you can still use the `driverClass` connection parameter to explicitly specify the ``Doctrine\DBAL\Driver\PDOIbm\Driver`` class. However be aware that you are doing this at your own risk and it will not be guaranteed that Doctrine will work as expected. # Upgrade to 2.4 ## Doctrine\DBAL\Schema\Constraint If you have custom classes that implement the constraint interface, you have to implement an additional method ``getQuotedColumns`` now. This method is used to build proper constraint SQL for columns that need to be quoted, like keywords reserved by the specific platform used. The method has to return the same values as ``getColumns`` only that those column names that need quotation have to be returned quoted for the given platform. # Upgrade to 2.3 ## Oracle Session Init now sets Numeric Character Before 2.3 the Oracle Session Init did not care about the numeric character of the Session. This could lead to problems on non english locale systems that required a comma as a floating point seperator in Oracle. Since 2.3, using the Oracle Session Init on connection start the client session will be altered to set the numeric character to ".,": ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '.,' See [DBAL-345](http://www.doctrine-project.org/jira/browse/DBAL-345) for more details. ## Doctrine\DBAL\Connection and Doctrine\DBAL\Statement The query related methods including but not limited to executeQuery, exec, query, and executeUpdate now wrap the driver exceptions such as PDOException with DBALException to add more debugging information such as the executed SQL statement, and any bound parameters. If you want to retrieve the driver specific exception, you can retrieve it by calling the ``getPrevious()`` method on DBALException. Before: catch(\PDOException $ex) { // ... } After: catch(\Doctrine\DBAL\DBALException $ex) { $pdoException = $ex->getPrevious(); // ... } ## Doctrine\DBAL\Connection#setCharsetSQL() removed This method only worked on MySQL and it is considered unsafe on MySQL to use SET NAMES UTF-8 instead of setting the charset directly on connection already. Replace this behavior with the connection charset option: Before: $conn = DriverManager::getConnection(array(..)); $conn->setCharset('UTF8'); After: $conn = DriverManager::getConnection(array('charset' => 'UTF8', ..)); ## Doctrine\DBAL\Schema\Table#renameColumn() removed Doctrine\DBAL\Schema\Table#renameColumn() was removed, because it drops and recreates the column instead. There is no fix available, because a schema diff cannot reliably detect if a column was renamed or one column was created and another one dropped. You should use explicit SQL ALTER TABLE statements to change columns names. ## Schema Filter paths The Filter Schema assets expression is not wrapped in () anymore for the regexp automatically. Before: $config->setFilterSchemaAssetsExpression('foo'); After: $config->setFilterSchemaAssetsExpression('(foo)'); ## Creating MySQL Tables now defaults to UTF-8 If you are creating a new MySQL Table through the Doctrine API, charset/collate are now set to 'utf8'/'utf8_unicode_ci' by default. Previously the MySQL server defaults were used. # Upgrade to 2.2 ## Doctrine\DBAL\Connection#insert and Doctrine\DBAL\Connection#update Both methods now accept an optional last parameter $types with binding types of the values passed. This can potentially break child classes that have overwritten one of these methods. ## Doctrine\DBAL\Connection#executeQuery Doctrine\DBAL\Connection#executeQuery() got a new last parameter "QueryCacheProfile $qcp" ## Doctrine\DBAL\Driver\Statement split The Driver statement was split into a ResultStatement and the normal statement extending from it. This separates the configuration and the retrieval API from a statement. ## MsSql Platform/SchemaManager renamed The MsSqlPlatform was renamed to SQLServerPlatform, the MsSqlSchemaManager was renamed to SQLServerSchemaManager. ## Cleanup SQLServer Platform version mess DBAL 2.1 and before were actually only compatible to SQL Server 2008, not earlier versions. Still other parts of the platform did use old features instead of newly introduced datatypes in SQL Server 2005. Starting with DBAL 2.2 you can pick the Doctrine abstraction exactly matching your SQL Server version. The PDO SqlSrv driver now uses the new `SQLServer2008Platform` as default platform. This platform uses new features of SQL Server as of version 2008. This also includes a switch in the used fields for "text" and "blob" field types to: "text" => "VARCHAR(MAX)" "blob" => "VARBINARY(MAX)" Additionally `SQLServerPlatform` in DBAL 2.1 and before used "DATE", "TIME" and "DATETIME2" for dates. This types are only available since version 2008 and the introduction of an explicit SQLServer 2008 platform makes this dependency explicit. An `SQLServer2005Platform` was also introduced to differentiate the features between versions 2003, earlier and 2005. With this change the `SQLServerPlatform` now throws an exception for using limit queries with an offset, since SQLServer 2003 and lower do not support this feature. To use the old SQL Server Platform, because you are using SQL Server 2003 and below use the following configuration code: use Doctrine\DBAL\DriverManager; use Doctrine\DBAL\Platforms\SQLServerPlatform; use Doctrine\DBAL\Platforms\SQLServer2005Platform; // You are using SQL Server 2003 or earlier $conn = DriverManager::getConnection(array( 'driver' => 'pdo_sqlsrv', 'platform' => new SQLServerPlatform() // .. additional parameters )); // You are using SQL Server 2005 $conn = DriverManager::getConnection(array( 'driver' => 'pdo_sqlsrv', 'platform' => new SQLServer2005Platform() // .. additional parameters )); // You are using SQL Server 2008 $conn = DriverManager::getConnection(array( 'driver' => 'pdo_sqlsrv', // 2008 is default platform // .. additional parameters ));
{ "pile_set_name": "Github" }
/* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.ap.test.collection.wildcard; import java.math.BigDecimal; import java.util.List; import org.mapstruct.Mapper; /** * * @author Sjaak Derksen */ @Mapper public interface ErroneousIterableTypeVarBoundMapperOnMapper<T extends BigDecimal> { List<BigDecimal> map(List<T> in); }
{ "pile_set_name": "Github" }
/*============================================================================= Copyright (c) 2001-2008 Joel de Guzman Copyright (c) 2001-2008 Hartmut Kaiser http://spirit.sourceforge.net/ 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_SPIRIT_INCLUDE_CLASSIC_SUBRULE_FWD #define BOOST_SPIRIT_INCLUDE_CLASSIC_SUBRULE_FWD #include <boost/spirit/home/classic/core/non_terminal/subrule_fwd.hpp> #endif
{ "pile_set_name": "Github" }
// Copyright Daniel Wallin, David Abrahams 2010. Use, modification and // distribution is subject to 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_PARAMETER_IS_MAYBE_050329_HPP #define BOOST_PARAMETER_IS_MAYBE_050329_HPP #include <boost/type_traits/is_base_and_derived.hpp> namespace boost { namespace parameter { namespace aux { struct maybe_base {}; template <class T> struct is_maybe : is_base_and_derived<maybe_base, T> {}; } // namespace aux } // namespace parameter } // namespace boost #endif // BOOST_PARAMETER_IS_MAYBE_050329_HPP
{ "pile_set_name": "Github" }
//* This file is part of the MOOSE framework //* https://www.mooseframework.org //* //* All rights reserved, see COPYRIGHT for full restrictions //* https://github.com/idaholab/moose/blob/master/COPYRIGHT //* //* Licensed under LGPL 2.1, please see LICENSE for details //* https://www.gnu.org/licenses/lgpl-2.1.html #include "CreateProblemDefaultAction.h" #include "Factory.h" #include "FEProblem.h" #include "EigenProblem.h" #include "MooseApp.h" #include "CreateExecutionerAction.h" #include "CreateProblemAction.h" registerMooseAction("MooseApp", CreateProblemDefaultAction, "create_problem_default"); registerMooseAction("MooseApp", CreateProblemDefaultAction, "determine_system_type"); defineLegacyParams(CreateProblemDefaultAction); InputParameters CreateProblemDefaultAction::validParams() { InputParameters params = Action::validParams(); params.addPrivateParam<bool>("_solve"); return params; } CreateProblemDefaultAction::CreateProblemDefaultAction(InputParameters parameters) : Action(parameters) { } void CreateProblemDefaultAction::act() { if (_current_task == "determine_system_type") { // Determine whether the Executioner is derived from EigenExecutionerBase and // set a flag on MooseApp that can be used during problem construction. bool use_nonlinear = true; bool use_eigenvalue = false; auto p = _awh.getActionByTask<CreateExecutionerAction>("setup_executioner"); if (p) { auto & exparams = p->getObjectParams(); use_nonlinear = !(exparams.isParamValid("_eigen") && exparams.get<bool>("_eigen")); use_eigenvalue = (exparams.isParamValid("_use_eigen_value") && exparams.get<bool>("_use_eigen_value")); } _app.useNonlinear() = use_nonlinear; _app.useEigenvalue() = use_eigenvalue; return; } // act only if we have mesh if (_mesh.get() != NULL) { // Make sure the problem hasn't already been created elsewhere if (!_problem) { std::string type; if (_app.useEigenvalue()) type = "EigenProblem"; else type = "FEProblem"; auto params = _factory.getValidParams(type); // apply common parameters of the object held by CreateProblemAction to honor user inputs in // [Problem] auto p = _awh.getActionByTask<CreateProblemAction>("create_problem"); if (p) params.applyParameters(p->getObjectParams()); params.set<MooseMesh *>("mesh") = _mesh.get(); params.set<bool>("use_nonlinear") = _app.useNonlinear(); if (_pars.isParamSetByUser("_solve")) params.set<bool>("solve") = getParam<bool>("_solve"); _problem = _factory.create<FEProblemBase>(type, "MOOSE Problem", params); } else { // otherwise perform necessary sanity checks if (_app.useEigenvalue() && !(std::dynamic_pointer_cast<EigenProblem>(_problem))) mooseError("Problem has to be of a EigenProblem (or derived subclass) type when using " "eigen executioner"); } } }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:id="@+id/vg_cover" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_centerInParent="true" android:layout_marginBottom="60dp" android:layout_marginLeft="40dp" android:layout_marginRight="40dp" android:layout_marginTop="30dp" android:elevation="10dp"> <ImageView android:id="@+id/playlist_image" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:scaleType="centerCrop" android:transitionName="transition_album_art" /> <View android:id="@+id/foreground" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:transitionName="transition_foreground" /> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|left" android:layout_marginBottom="20dp" android:layout_marginLeft="30dp" android:orientation="vertical"> <TextView android:id="@+id/name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="13dp" android:ellipsize="end" android:maxLines="1" android:textColor="#ffffff" android:textSize="28sp" android:transitionName="transition_playlist_name" /> <TextView android:id="@+id/songcount" android:layout_width="wrap_content" android:layout_height="wrap_content" android:ellipsize="end" android:maxLines="1" android:paddingTop="3dp" android:textColor="#ffffff" android:textSize="15sp" /> </LinearLayout> <TextView android:id="@+id/number" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top|right" android:layout_marginRight="56dp" android:layout_marginTop="15dp" android:ellipsize="end" android:maxLines="2" android:textColor="#ffffff" android:textSize="35sp" /> <TextView android:id="@+id/playlisttype" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top|left" android:layout_marginLeft="40dp" android:layout_marginTop="15dp" android:ellipsize="end" android:maxLines="2" android:textColor="#ffffff" android:textSize="15sp" android:visibility="gone" /> </FrameLayout> </RelativeLayout>
{ "pile_set_name": "Github" }
============ ============ ============ ============ .====...====. ............. ............. ............. ############. ############. ############. ############.
{ "pile_set_name": "Github" }
diff --git a/Makefile.msc b/Makefile.msc index 9baa035..88d21e4 100644 --- a/Makefile.msc +++ b/Makefile.msc @@ -270,9 +270,9 @@ SQLITE3H = sqlite3.h # !IFNDEF SQLITE3DLL !IF $(FOR_WIN10)!=0 -SQLITE3DLL = winsqlite3.dll +SQLITE3DLL = sqlcipher.dll !ELSE -SQLITE3DLL = sqlite3.dll +SQLITE3DLL = sqlcipher.dll !ENDIF !ENDIF @@ -280,9 +280,9 @@ SQLITE3DLL = sqlite3.dll # !IFNDEF SQLITE3LIB !IF $(FOR_WIN10)!=0 -SQLITE3LIB = winsqlite3.lib +SQLITE3LIB = sqlcipher.lib !ELSE -SQLITE3LIB = sqlite3.lib +SQLITE3LIB = sqlcipher.lib !ENDIF !ENDIF @@ -649,7 +649,7 @@ SHELL_CORE_SRC = $(SQLITE3C) SHELL_CORE_DEP = $(SQLITE3DLL) # <<mark>> !ELSEIF $(USE_AMALGAMATION)==0 -SHELL_CORE_DEP = libsqlite3.lib +SHELL_CORE_DEP = sqlcipher.lib # <</mark>> !ELSE SHELL_CORE_DEP = @@ -672,7 +672,7 @@ TESTFIXTURE_DEP = zlib $(TESTFIXTURE_DEP) SHELL_CORE_LIB = $(SQLITE3LIB) # <<mark>> !ELSEIF $(USE_AMALGAMATION)==0 -SHELL_CORE_LIB = libsqlite3.lib +SHELL_CORE_LIB = sqlcipher.lib # <</mark>> !ELSE SHELL_CORE_LIB = @@ -707,8 +707,9 @@ RCC = $(RCC) -DWINAPI_FAMILY=WINAPI_FAMILY_APP # C compiler options for the Windows 10 platform (needs MSVC 2015). # !IF $(FOR_WIN10)!=0 -TCC = $(TCC) /d2guard4 -D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE -BCC = $(BCC) /d2guard4 -D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE +# /d2guard4 requires /guard:cf to be present as well, but it doesn't work with /Zi (Debug builds) +TCC = $(TCC) -D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE +BCC = $(BCC) -D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE !ENDIF # Also, we need to dynamically link to the correct MSVC runtime @@ -985,8 +986,10 @@ TLIBS = # default to file, 2 to default to memory, and 3 to force temporary # tables to always be in memory. # -TCC = $(TCC) -DSQLITE_TEMP_STORE=1 -RCC = $(RCC) -DSQLITE_TEMP_STORE=1 + +# Allow overriding the value +TCC = $(TCC) -DSQLITE_TEMP_STORE=$(SQLITE_TEMP_STORE) +RCC = $(RCC) -DSQLITE_TEMP_STORE=$(SQLITE_TEMP_STORE) # Enable/disable loadable extensions, and other optional features # based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*). @@ -1152,14 +1155,15 @@ LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(WP81LIBPATH)" !ENDIF LTLINKOPTS = $(LTLINKOPTS) /DYNAMICBASE LTLINKOPTS = $(LTLINKOPTS) WindowsPhoneCore.lib RuntimeObject.lib PhoneAppModelHost.lib -LTLINKOPTS = $(LTLINKOPTS) /NODEFAULTLIB:kernel32.lib /NODEFAULTLIB:ole32.lib +# Remove /NODEFAULTLIB:kernel32.lib, required by OpenSSL !ENDIF # When compiling for UWP or the Windows 10 platform, some extra linker # options are also required. # !IF $(FOR_UWP)!=0 || $(FOR_WIN10)!=0 -LTLINKOPTS = $(LTLINKOPTS) /DYNAMICBASE /NODEFAULTLIB:kernel32.lib +# Remove /NODEFAULTLIB:kernel32.lib, required by OpenSSL +LTLINKOPTS = $(LTLINKOPTS) /DYNAMICBASE LTLINKOPTS = $(LTLINKOPTS) mincore.lib !IFDEF PSDKLIBPATH LTLINKOPTS = $(LTLINKOPTS) "/LIBPATH:$(PSDKLIBPATH)" @@ -1214,7 +1218,7 @@ LTLIBS = $(LTLIBS) $(LIBICU) # LIBOBJS0 = vdbe.lo parse.lo alter.lo analyze.lo attach.lo auth.lo \ backup.lo bitvec.lo btmutex.lo btree.lo build.lo \ - callback.lo complete.lo ctime.lo \ + callback.lo complete.lo crypto.lo crypto_impl.lo crypto_openssl.lo ctime.lo \ date.lo dbpage.lo dbstat.lo delete.lo \ expr.lo fault.lo fkey.lo \ fts3.lo fts3_aux.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo \ @@ -1702,7 +1706,7 @@ ALL_TCL_TARGETS = # This is the default Makefile target. The objects listed here # are what get build when you type just "make" with no arguments. # -core: dll libsqlite3.lib shell +core: dll sqlcipher.lib shell # Targets that require the Tcl library. # @@ -1721,11 +1725,12 @@ dll: $(SQLITE3DLL) shell: $(SQLITE3EXE) # <<mark>> -libsqlite3.lib: $(LIBOBJ) - $(LTLIB) $(LTLIBOPTS) /OUT:$@ $(LIBOBJ) $(TLIBS) +# LTLIBPATHS is required to find the openssl/libressl libs +sqlcipher.lib: $(LIBOBJ) + $(LTLIB) $(LTLIBPATHS) $(LTLIBOPTS) /OUT:$@ $(LIBOBJ) $(TLIBS) -libtclsqlite3.lib: tclsqlite.lo libsqlite3.lib - $(LTLIB) $(LTLIBOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) /OUT:$@ tclsqlite.lo libsqlite3.lib $(LIBTCLSTUB) $(TLIBS) +libtclsqlite3.lib: tclsqlite.lo sqlcipher.lib + $(LTLIB) $(LTLIBOPTS) $(TCLLIBPATHS) $(LTLIBPATHS) /OUT:$@ tclsqlite.lo sqlcipher.lib $(LIBTCLSTUB) $(TLIBS) tclsqlite3.def: tclsqlite.lo echo EXPORTS > tclsqlite3.def @@ -1747,9 +1752,9 @@ $(SQLITE3DLL): $(LIBOBJ) $(LIBRESOBJS) $(CORE_LINK_DEP) $(LD) $(LDFLAGS) $(LTLINKOPTS) $(LTLIBPATHS) /DLL $(CORE_LINK_OPTS) /OUT:$@ $(LIBOBJ) $(LIBRESOBJS) $(LTLIBS) $(TLIBS) # <<block2>> -sqlite3.def: libsqlite3.lib +sqlite3.def: sqlcipher.lib echo EXPORTS > sqlite3.def - dumpbin /all libsqlite3.lib \ + dumpbin /all sqlcipher.lib \ | $(TCLSH_CMD) $(TOP)\tool\replace.tcl include "^\s+1 _?(sqlite3(?:session|changeset|changegroup|rebaser)?_[^@]*)(?:@\d+)?$$" \1 \ | sort >> sqlite3.def # <</block2>> @@ -1927,6 +1932,15 @@ callback.lo: $(TOP)\src\callback.c $(HDR) complete.lo: $(TOP)\src\complete.c $(HDR) $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\complete.c +crypto.lo: $(TOP)\src\crypto.c $(HDR) + $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\crypto.c + +crypto_impl.lo: $(TOP)\src\crypto_impl.c $(HDR) + $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\crypto_impl.c + +crypto_openssl.lo: $(TOP)\src\crypto_openssl.c $(HDR) + $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\crypto_openssl.c + ctime.lo: $(TOP)\src\ctime.c $(HDR) $(LTCOMPILE) $(CORE_COMPILE_OPTS) -c $(TOP)\src\ctime.c @@ -2336,7 +2350,7 @@ sqlite3rbu.lo: $(TOP)\ext\rbu\sqlite3rbu.c $(HDR) $(EXTHDR) # Rules to build the 'testfixture' application. # # If using the amalgamation, use sqlite3.c directly to build the test -# fixture. Otherwise link against libsqlite3.lib. (This distinction is +# fixture. Otherwise link against sqlcipher.lib. (This distinction is # necessary because the test fixture requires non-API symbols which are # hidden when the library is built via the amalgamation). #
{ "pile_set_name": "Github" }
Universidad Francisco de Vitoria
{ "pile_set_name": "Github" }
/****************************************** Copyright (C) 2009-2020 Authors of CryptoMiniSat, see AUTHORS file Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ***********************************************/ #ifndef PARTHANDLER_H #define PARTHANDLER_H #include "solvertypes.h" #include "cloffset.h" #include <map> #include <vector> namespace CMSat { using std::map; using std::vector; using std::pair; class SATSolver; class Solver; class CompFinder; class Watched; /** @brief Disconnected components are treated here Uses CompFinder to find disconnected components and treats them using subsolvers. The solutions (if SAT) are aggregated, and at then end, the solution is extended with the sub-solutions, and the removed clauses are added back to the problem. */ class CompHandler { public: explicit CompHandler(Solver* solver); ~CompHandler(); struct RemovedClauses { vector<Lit> lits; vector<uint32_t> sizes; }; bool handle(); const vector<lbool>& getSavedState(); void new_var(const uint32_t orig_outer); void new_vars(const size_t n); void save_on_var_memory(); void addSavedState(vector<lbool>& solution); void readdRemovedClauses(); const RemovedClauses& getRemovedClauses() const; uint32_t dump_removed_clauses(std::ostream* outfile) const; size_t get_num_vars_removed() const; size_t get_num_components_solved() const; size_t mem_used() const; private: struct sort_pred { bool operator()( const std::pair<int,int> &left , const std::pair<int,int> &right ) { return left.second < right.second; } }; bool assumpsInsideComponent(const vector<uint32_t>& vars); void move_decision_level_zero_vars_here( const SATSolver* newSolver ); void save_solution_to_savedstate( const SATSolver* newSolver , const vector<uint32_t>& vars , const uint32_t comp ); void check_solution_is_unassigned_in_main_solver( const SATSolver* newSolver , const vector<uint32_t>& vars ); void check_local_vardata_sanity(); bool try_to_solve_component( const uint32_t comp_at , const uint32_t comp , const vector<uint32_t>& vars , const size_t num_comps ); bool solve_component( const uint32_t comp_at , const uint32_t comp , const vector<uint32_t>& vars_orig , const size_t num_comps ); vector<pair<uint32_t, uint32_t> > get_component_sizes() const; SolverConf configureNewSolver( const size_t numVars ) const; void moveVariablesBetweenSolvers( SATSolver* newSolver , const vector<uint32_t>& vars , const uint32_t comp ); //For moving clauses void moveClausesImplicit( SATSolver* newSolver , const uint32_t comp , const vector<uint32_t>& vars ); void moveClausesLong( vector<ClOffset>& cs , SATSolver* newSolver , const uint32_t comp ); void move_binary_clause( SATSolver* newSolver , const uint32_t comp , Watched *i , const Lit lit ); void remove_bin_except_for_lit1(const Lit lit, const Lit lit2); Solver* solver; CompFinder* compFinder; ///The solutions that have been found by the comps vector<lbool> savedState; //Re-numbering void createRenumbering(const vector<uint32_t>& vars); vector<uint32_t> useless; //temporary vector<uint32_t> smallsolver_to_bigsolver; vector<uint32_t> bigsolver_to_smallsolver; Lit upd_bigsolver_to_smallsolver(const Lit lit) const { return Lit(upd_bigsolver_to_smallsolver(lit.var()), lit.sign()); } uint32_t upd_bigsolver_to_smallsolver(const uint32_t var) const { return bigsolver_to_smallsolver[var]; } //Saving clauses template<class T> void saveClause(const T& lits); RemovedClauses removedClauses; size_t num_vars_removed = 0; size_t components_solved = 0; //Clauses that have been moved to other comps //vector<ClOffset> clausesRemoved; //vector<pair<Lit, Lit> > binClausesRemoved; uint32_t numRemovedHalfIrred = 0; uint32_t numRemovedHalfRed = 0; vector<Lit> tmp_lits; }; /** @brief Returns the saved state of a variable */ inline const vector<lbool>& CompHandler::getSavedState() { return savedState; } inline const CompHandler::RemovedClauses& CompHandler::getRemovedClauses() const { return removedClauses; } inline size_t CompHandler::get_num_vars_removed() const { return num_vars_removed; } inline size_t CompHandler::get_num_components_solved() const { return components_solved; } } //end of namespace #endif //PARTHANDLER_H
{ "pile_set_name": "Github" }
TITLE:: PureUGen summary:: Pure UGen categories:: UGens related:: Classes/UGen DESCRIPTION:: A Pure UGen is a UGen, which does not access any shared resources like busses, buffers or random number generators. UGen classes which are derived from PureUGen are candidates for common subexpression elimination and dead code elimination passes during the SynthDef compilation. INSTANCEMETHODS:: PRIVATE:: optimizeGraph
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <!-- create table foo(a int, b int) partition by list (b) (partition p1 values(1,3), partition p2 values(4,2), default partition other); select * from foo where b = 1 union all select * from foo where b > 3 union all select * from foo where b in (0,1) union all select * from foo where b is not null; --> <dxl:DXLMessage xmlns:dxl="http://greenplum.com/dxl/2010/12/"> <dxl:Thread Id="0"> <dxl:OptimizerConfig> <dxl:EnumeratorConfig Id="0" PlanSamples="0" CostThreshold="0"/> <dxl:StatisticsConfig DampingFactorFilter="0.750000" DampingFactorJoin="0.010000" DampingFactorGroupBy="0.750000"/> <dxl:CTEConfig CTEInliningCutoff="0"/> <dxl:WindowOids RowNumber="7000" Rank="7001"/> <dxl:CostModelConfig CostModelType="1" SegmentsForCosting="3"> <dxl:CostParams> <dxl:CostParam Name="NLJFactor" Value="1.000000" LowerBound="0.500000" UpperBound="1.500000"/> </dxl:CostParams> </dxl:CostModelConfig> <dxl:Hint MinNumOfPartsToRequireSortOnInsert="2147483647" JoinArityForAssociativityCommutativity="2147483647" ArrayExpansionThreshold="25" JoinOrderDynamicProgThreshold="10" BroadcastThreshold="10000000"/> <dxl:TraceFlags Value="103027,101013,102120,103001,103014,103015,103022,104004,104005,105000"/> </dxl:OptimizerConfig> <dxl:Metadata SystemIds="0.GPDB"> <dxl:GPDBScalarOp Mdid="0.521.1.0" Name="&gt;" ComparisonType="GT" ReturnsNullOnNullInput="true"> <dxl:LeftType Mdid="0.23.1.0"/> <dxl:RightType Mdid="0.23.1.0"/> <dxl:ResultType Mdid="0.16.1.0"/> <dxl:OpFunc Mdid="0.147.1.0"/> <dxl:Commutator Mdid="0.97.1.0"/> <dxl:InverseOp Mdid="0.523.1.0"/> <dxl:Opfamilies> <dxl:Opfamily Mdid="0.1976.1.0"/> <dxl:Opfamily Mdid="0.3027.1.0"/> </dxl:Opfamilies> </dxl:GPDBScalarOp> <dxl:ColumnStatistics Mdid="1.322247.1.1.8" Name="gp_segment_id" Width="4.000000" NullFreq="0.000000" NdvRemain="0.000000" FreqRemain="0.000000" ColStatsMissing="true"/> <dxl:ColumnStatistics Mdid="1.322247.1.1.1" Name="b" Width="4.000000" NullFreq="0.000000" NdvRemain="0.000000" FreqRemain="0.000000" ColStatsMissing="true"/> <dxl:ColumnStatistics Mdid="1.322247.1.1.0" Name="a" Width="4.000000" NullFreq="0.000000" NdvRemain="0.000000" FreqRemain="0.000000" ColStatsMissing="true"/> <dxl:Type Mdid="0.16.1.0" Name="bool" IsRedistributable="true" IsHashable="true" IsMergeJoinable="true" IsComposite="false" IsFixedLength="true" Length="1" PassByValue="true"> <dxl:EqualityOp Mdid="0.91.1.0"/> <dxl:InequalityOp Mdid="0.85.1.0"/> <dxl:LessThanOp Mdid="0.58.1.0"/> <dxl:LessThanEqualsOp Mdid="0.1694.1.0"/> <dxl:GreaterThanOp Mdid="0.59.1.0"/> <dxl:GreaterThanEqualsOp Mdid="0.1695.1.0"/> <dxl:ComparisonOp Mdid="0.1693.1.0"/> <dxl:ArrayType Mdid="0.1000.1.0"/> <dxl:MinAgg Mdid="0.0.0.0"/> <dxl:MaxAgg Mdid="0.0.0.0"/> <dxl:AvgAgg Mdid="0.0.0.0"/> <dxl:SumAgg Mdid="0.0.0.0"/> <dxl:CountAgg Mdid="0.2147.1.0"/> </dxl:Type> <dxl:Type Mdid="0.23.1.0" Name="int4" IsRedistributable="true" IsHashable="true" IsMergeJoinable="true" IsComposite="false" IsFixedLength="true" Length="4" PassByValue="true"> <dxl:EqualityOp Mdid="0.96.1.0"/> <dxl:InequalityOp Mdid="0.518.1.0"/> <dxl:LessThanOp Mdid="0.97.1.0"/> <dxl:LessThanEqualsOp Mdid="0.523.1.0"/> <dxl:GreaterThanOp Mdid="0.521.1.0"/> <dxl:GreaterThanEqualsOp Mdid="0.525.1.0"/> <dxl:ComparisonOp Mdid="0.351.1.0"/> <dxl:ArrayType Mdid="0.1007.1.0"/> <dxl:MinAgg Mdid="0.2132.1.0"/> <dxl:MaxAgg Mdid="0.2116.1.0"/> <dxl:AvgAgg Mdid="0.2101.1.0"/> <dxl:SumAgg Mdid="0.2108.1.0"/> <dxl:CountAgg Mdid="0.2147.1.0"/> </dxl:Type> <dxl:Type Mdid="0.26.1.0" Name="oid" IsRedistributable="true" IsHashable="true" IsMergeJoinable="true" IsComposite="false" IsFixedLength="true" Length="4" PassByValue="true"> <dxl:EqualityOp Mdid="0.607.1.0"/> <dxl:InequalityOp Mdid="0.608.1.0"/> <dxl:LessThanOp Mdid="0.609.1.0"/> <dxl:LessThanEqualsOp Mdid="0.611.1.0"/> <dxl:GreaterThanOp Mdid="0.610.1.0"/> <dxl:GreaterThanEqualsOp Mdid="0.612.1.0"/> <dxl:ComparisonOp Mdid="0.356.1.0"/> <dxl:ArrayType Mdid="0.1028.1.0"/> <dxl:MinAgg Mdid="0.2118.1.0"/> <dxl:MaxAgg Mdid="0.2134.1.0"/> <dxl:AvgAgg Mdid="0.0.0.0"/> <dxl:SumAgg Mdid="0.0.0.0"/> <dxl:CountAgg Mdid="0.2147.1.0"/> </dxl:Type> <dxl:Type Mdid="0.27.1.0" Name="tid" IsRedistributable="true" IsHashable="false" IsMergeJoinable="false" IsComposite="false" IsFixedLength="true" Length="6" PassByValue="false"> <dxl:EqualityOp Mdid="0.387.1.0"/> <dxl:InequalityOp Mdid="0.402.1.0"/> <dxl:LessThanOp Mdid="0.2799.1.0"/> <dxl:LessThanEqualsOp Mdid="0.2801.1.0"/> <dxl:GreaterThanOp Mdid="0.2800.1.0"/> <dxl:GreaterThanEqualsOp Mdid="0.2802.1.0"/> <dxl:ComparisonOp Mdid="0.2794.1.0"/> <dxl:ArrayType Mdid="0.1010.1.0"/> <dxl:MinAgg Mdid="0.2798.1.0"/> <dxl:MaxAgg Mdid="0.2797.1.0"/> <dxl:AvgAgg Mdid="0.0.0.0"/> <dxl:SumAgg Mdid="0.0.0.0"/> <dxl:CountAgg Mdid="0.2147.1.0"/> </dxl:Type> <dxl:Type Mdid="0.29.1.0" Name="cid" IsRedistributable="false" IsHashable="true" IsMergeJoinable="false" IsComposite="false" IsFixedLength="true" Length="4" PassByValue="true"> <dxl:EqualityOp Mdid="0.385.1.0"/> <dxl:InequalityOp Mdid="0.0.0.0"/> <dxl:LessThanOp Mdid="0.0.0.0"/> <dxl:LessThanEqualsOp Mdid="0.0.0.0"/> <dxl:GreaterThanOp Mdid="0.0.0.0"/> <dxl:GreaterThanEqualsOp Mdid="0.0.0.0"/> <dxl:ComparisonOp Mdid="0.0.0.0"/> <dxl:ArrayType Mdid="0.1012.1.0"/> <dxl:MinAgg Mdid="0.0.0.0"/> <dxl:MaxAgg Mdid="0.0.0.0"/> <dxl:AvgAgg Mdid="0.0.0.0"/> <dxl:SumAgg Mdid="0.0.0.0"/> <dxl:CountAgg Mdid="0.2147.1.0"/> </dxl:Type> <dxl:Type Mdid="0.28.1.0" Name="xid" IsRedistributable="false" IsHashable="true" IsMergeJoinable="false" IsComposite="false" IsFixedLength="true" Length="4" PassByValue="true"> <dxl:EqualityOp Mdid="0.352.1.0"/> <dxl:InequalityOp Mdid="0.0.0.0"/> <dxl:LessThanOp Mdid="0.0.0.0"/> <dxl:LessThanEqualsOp Mdid="0.0.0.0"/> <dxl:GreaterThanOp Mdid="0.0.0.0"/> <dxl:GreaterThanEqualsOp Mdid="0.0.0.0"/> <dxl:ComparisonOp Mdid="0.0.0.0"/> <dxl:ArrayType Mdid="0.1011.1.0"/> <dxl:MinAgg Mdid="0.0.0.0"/> <dxl:MaxAgg Mdid="0.0.0.0"/> <dxl:AvgAgg Mdid="0.0.0.0"/> <dxl:SumAgg Mdid="0.0.0.0"/> <dxl:CountAgg Mdid="0.2147.1.0"/> </dxl:Type> <dxl:ColumnStatistics Mdid="1.322247.1.1.3" Name="xmin" Width="4.000000" NullFreq="0.000000" NdvRemain="0.000000" FreqRemain="0.000000" ColStatsMissing="true"/> <dxl:ColumnStatistics Mdid="1.322247.1.1.2" Name="ctid" Width="6.000000" NullFreq="0.000000" NdvRemain="0.000000" FreqRemain="0.000000" ColStatsMissing="true"/> <dxl:RelationStatistics Mdid="2.322247.1.1" Name="foo" Rows="0.000000" EmptyRelation="true"/> <dxl:Relation Mdid="0.322247.1.1" Name="foo" IsTemporary="false" HasOids="false" StorageType="Heap" DistributionPolicy="Hash" DistributionColumns="0" Keys="7,8,2" PartitionColumns="1" PartitionTypes="l" NumberLeafPartitions="3"> <dxl:Columns> <dxl:Column Name="a" Attno="1" Mdid="0.23.1.0" Nullable="true" ColWidth="4"> <dxl:DefaultValue/> </dxl:Column> <dxl:Column Name="b" Attno="2" Mdid="0.23.1.0" Nullable="true" ColWidth="4"> <dxl:DefaultValue/> </dxl:Column> <dxl:Column Name="ctid" Attno="-1" Mdid="0.27.1.0" Nullable="false" ColWidth="6"> <dxl:DefaultValue/> </dxl:Column> <dxl:Column Name="xmin" Attno="-3" Mdid="0.28.1.0" Nullable="false" ColWidth="4"> <dxl:DefaultValue/> </dxl:Column> <dxl:Column Name="cmin" Attno="-4" Mdid="0.29.1.0" Nullable="false" ColWidth="4"> <dxl:DefaultValue/> </dxl:Column> <dxl:Column Name="xmax" Attno="-5" Mdid="0.28.1.0" Nullable="false" ColWidth="4"> <dxl:DefaultValue/> </dxl:Column> <dxl:Column Name="cmax" Attno="-6" Mdid="0.29.1.0" Nullable="false" ColWidth="4"> <dxl:DefaultValue/> </dxl:Column> <dxl:Column Name="tableoid" Attno="-7" Mdid="0.26.1.0" Nullable="false" ColWidth="4"> <dxl:DefaultValue/> </dxl:Column> <dxl:Column Name="gp_segment_id" Attno="-8" Mdid="0.23.1.0" Nullable="false" ColWidth="4"> <dxl:DefaultValue/> </dxl:Column> </dxl:Columns> <dxl:IndexInfoList/> <dxl:Triggers/> <dxl:CheckConstraints/> <dxl:PartConstraint DefaultPartition="0" Unbounded="true"> </dxl:PartConstraint> </dxl:Relation> <dxl:ColumnStatistics Mdid="1.322247.1.1.5" Name="xmax" Width="4.000000" NullFreq="0.000000" NdvRemain="0.000000" FreqRemain="0.000000" ColStatsMissing="true"/> <dxl:ColumnStatistics Mdid="1.322247.1.1.4" Name="cmin" Width="4.000000" NullFreq="0.000000" NdvRemain="0.000000" FreqRemain="0.000000" ColStatsMissing="true"/> <dxl:GPDBScalarOp Mdid="0.97.1.0" Name="&lt;" ComparisonType="LT" ReturnsNullOnNullInput="true"> <dxl:LeftType Mdid="0.23.1.0"/> <dxl:RightType Mdid="0.23.1.0"/> <dxl:ResultType Mdid="0.16.1.0"/> <dxl:OpFunc Mdid="0.66.1.0"/> <dxl:Commutator Mdid="0.521.1.0"/> <dxl:InverseOp Mdid="0.525.1.0"/> <dxl:Opfamilies> <dxl:Opfamily Mdid="0.1976.1.0"/> <dxl:Opfamily Mdid="0.3027.1.0"/> </dxl:Opfamilies> </dxl:GPDBScalarOp> <dxl:GPDBScalarOp Mdid="0.96.1.0" Name="=" ComparisonType="Eq" ReturnsNullOnNullInput="true"> <dxl:LeftType Mdid="0.23.1.0"/> <dxl:RightType Mdid="0.23.1.0"/> <dxl:ResultType Mdid="0.16.1.0"/> <dxl:OpFunc Mdid="0.65.1.0"/> <dxl:Commutator Mdid="0.96.1.0"/> <dxl:InverseOp Mdid="0.518.1.0"/> <dxl:Opfamilies> <dxl:Opfamily Mdid="0.1976.1.0"/> <dxl:Opfamily Mdid="0.1977.1.0"/> <dxl:Opfamily Mdid="0.3027.1.0"/> </dxl:Opfamilies> </dxl:GPDBScalarOp> <dxl:ColumnStatistics Mdid="1.322247.1.1.7" Name="tableoid" Width="4.000000" NullFreq="0.000000" NdvRemain="0.000000" FreqRemain="0.000000" ColStatsMissing="true"/> <dxl:ColumnStatistics Mdid="1.322247.1.1.6" Name="cmax" Width="4.000000" NullFreq="0.000000" NdvRemain="0.000000" FreqRemain="0.000000" ColStatsMissing="true"/> </dxl:Metadata> <dxl:Query> <dxl:OutputColumns> <dxl:Ident ColId="1" ColName="a" TypeMdid="0.23.1.0"/> <dxl:Ident ColId="2" ColName="b" TypeMdid="0.23.1.0"/> </dxl:OutputColumns> <dxl:CTEList/> <dxl:UnionAll InputColumns="1,2;28,29" CastAcrossInputs="false"> <dxl:Columns> <dxl:Column ColId="1" Attno="1" ColName="a" TypeMdid="0.23.1.0"/> <dxl:Column ColId="2" Attno="2" ColName="b" TypeMdid="0.23.1.0"/> </dxl:Columns> <dxl:UnionAll InputColumns="1,2;19,20" CastAcrossInputs="false"> <dxl:Columns> <dxl:Column ColId="1" Attno="1" ColName="a" TypeMdid="0.23.1.0"/> <dxl:Column ColId="2" Attno="2" ColName="b" TypeMdid="0.23.1.0"/> </dxl:Columns> <dxl:UnionAll InputColumns="1,2;10,11" CastAcrossInputs="false"> <dxl:Columns> <dxl:Column ColId="1" Attno="1" ColName="a" TypeMdid="0.23.1.0"/> <dxl:Column ColId="2" Attno="2" ColName="b" TypeMdid="0.23.1.0"/> </dxl:Columns> <dxl:LogicalSelect> <dxl:Comparison ComparisonOperator="=" OperatorMdid="0.96.1.0"> <dxl:Ident ColId="2" ColName="b" TypeMdid="0.23.1.0"/> <dxl:ConstValue TypeMdid="0.23.1.0" Value="1"/> </dxl:Comparison> <dxl:LogicalGet> <dxl:TableDescriptor Mdid="0.322247.1.1" TableName="foo"> <dxl:Columns> <dxl:Column ColId="1" Attno="1" ColName="a" TypeMdid="0.23.1.0"/> <dxl:Column ColId="2" Attno="2" ColName="b" TypeMdid="0.23.1.0"/> <dxl:Column ColId="3" Attno="-1" ColName="ctid" TypeMdid="0.27.1.0"/> <dxl:Column ColId="4" Attno="-3" ColName="xmin" TypeMdid="0.28.1.0"/> <dxl:Column ColId="5" Attno="-4" ColName="cmin" TypeMdid="0.29.1.0"/> <dxl:Column ColId="6" Attno="-5" ColName="xmax" TypeMdid="0.28.1.0"/> <dxl:Column ColId="7" Attno="-6" ColName="cmax" TypeMdid="0.29.1.0"/> <dxl:Column ColId="8" Attno="-7" ColName="tableoid" TypeMdid="0.26.1.0"/> <dxl:Column ColId="9" Attno="-8" ColName="gp_segment_id" TypeMdid="0.23.1.0"/> </dxl:Columns> </dxl:TableDescriptor> </dxl:LogicalGet> </dxl:LogicalSelect> <dxl:LogicalSelect> <dxl:Comparison ComparisonOperator="&gt;" OperatorMdid="0.521.1.0"> <dxl:Ident ColId="11" ColName="b" TypeMdid="0.23.1.0"/> <dxl:ConstValue TypeMdid="0.23.1.0" Value="3"/> </dxl:Comparison> <dxl:LogicalGet> <dxl:TableDescriptor Mdid="0.322247.1.1" TableName="foo"> <dxl:Columns> <dxl:Column ColId="10" Attno="1" ColName="a" TypeMdid="0.23.1.0"/> <dxl:Column ColId="11" Attno="2" ColName="b" TypeMdid="0.23.1.0"/> <dxl:Column ColId="12" Attno="-1" ColName="ctid" TypeMdid="0.27.1.0"/> <dxl:Column ColId="13" Attno="-3" ColName="xmin" TypeMdid="0.28.1.0"/> <dxl:Column ColId="14" Attno="-4" ColName="cmin" TypeMdid="0.29.1.0"/> <dxl:Column ColId="15" Attno="-5" ColName="xmax" TypeMdid="0.28.1.0"/> <dxl:Column ColId="16" Attno="-6" ColName="cmax" TypeMdid="0.29.1.0"/> <dxl:Column ColId="17" Attno="-7" ColName="tableoid" TypeMdid="0.26.1.0"/> <dxl:Column ColId="18" Attno="-8" ColName="gp_segment_id" TypeMdid="0.23.1.0"/> </dxl:Columns> </dxl:TableDescriptor> </dxl:LogicalGet> </dxl:LogicalSelect> </dxl:UnionAll> <dxl:LogicalSelect> <dxl:ArrayComp OperatorName="=" OperatorMdid="0.96.1.0" OperatorType="Any"> <dxl:Ident ColId="20" ColName="b" TypeMdid="0.23.1.0"/> <dxl:Array ArrayType="0.1007.1.0" ElementType="0.23.1.0" MultiDimensional="false"> <dxl:ConstValue TypeMdid="0.23.1.0" Value="0"/> <dxl:ConstValue TypeMdid="0.23.1.0" Value="1"/> </dxl:Array> </dxl:ArrayComp> <dxl:LogicalGet> <dxl:TableDescriptor Mdid="0.322247.1.1" TableName="foo"> <dxl:Columns> <dxl:Column ColId="19" Attno="1" ColName="a" TypeMdid="0.23.1.0"/> <dxl:Column ColId="20" Attno="2" ColName="b" TypeMdid="0.23.1.0"/> <dxl:Column ColId="21" Attno="-1" ColName="ctid" TypeMdid="0.27.1.0"/> <dxl:Column ColId="22" Attno="-3" ColName="xmin" TypeMdid="0.28.1.0"/> <dxl:Column ColId="23" Attno="-4" ColName="cmin" TypeMdid="0.29.1.0"/> <dxl:Column ColId="24" Attno="-5" ColName="xmax" TypeMdid="0.28.1.0"/> <dxl:Column ColId="25" Attno="-6" ColName="cmax" TypeMdid="0.29.1.0"/> <dxl:Column ColId="26" Attno="-7" ColName="tableoid" TypeMdid="0.26.1.0"/> <dxl:Column ColId="27" Attno="-8" ColName="gp_segment_id" TypeMdid="0.23.1.0"/> </dxl:Columns> </dxl:TableDescriptor> </dxl:LogicalGet> </dxl:LogicalSelect> </dxl:UnionAll> <dxl:LogicalSelect> <dxl:IsNotNull> <dxl:Ident ColId="29" ColName="b" TypeMdid="0.23.1.0"/> </dxl:IsNotNull> <dxl:LogicalGet> <dxl:TableDescriptor Mdid="0.322247.1.1" TableName="foo"> <dxl:Columns> <dxl:Column ColId="28" Attno="1" ColName="a" TypeMdid="0.23.1.0"/> <dxl:Column ColId="29" Attno="2" ColName="b" TypeMdid="0.23.1.0"/> <dxl:Column ColId="30" Attno="-1" ColName="ctid" TypeMdid="0.27.1.0"/> <dxl:Column ColId="31" Attno="-3" ColName="xmin" TypeMdid="0.28.1.0"/> <dxl:Column ColId="32" Attno="-4" ColName="cmin" TypeMdid="0.29.1.0"/> <dxl:Column ColId="33" Attno="-5" ColName="xmax" TypeMdid="0.28.1.0"/> <dxl:Column ColId="34" Attno="-6" ColName="cmax" TypeMdid="0.29.1.0"/> <dxl:Column ColId="35" Attno="-7" ColName="tableoid" TypeMdid="0.26.1.0"/> <dxl:Column ColId="36" Attno="-8" ColName="gp_segment_id" TypeMdid="0.23.1.0"/> </dxl:Columns> </dxl:TableDescriptor> </dxl:LogicalGet> </dxl:LogicalSelect> </dxl:UnionAll> </dxl:Query> <dxl:Plan Id="0" SpaceSize="1"> <dxl:GatherMotion InputSegments="0,1,2" OutputSegments="-1"> <dxl:Properties> <dxl:Cost StartupCost="0" TotalCost="1724.000307" Rows="1.000000" Width="8"/> </dxl:Properties> <dxl:ProjList> <dxl:ProjElem ColId="0" Alias="a"> <dxl:Ident ColId="0" ColName="a" TypeMdid="0.23.1.0"/> </dxl:ProjElem> <dxl:ProjElem ColId="1" Alias="b"> <dxl:Ident ColId="1" ColName="b" TypeMdid="0.23.1.0"/> </dxl:ProjElem> </dxl:ProjList> <dxl:Filter/> <dxl:SortingColumnList/> <dxl:Append IsTarget="false" IsZapped="false"> <dxl:Properties> <dxl:Cost StartupCost="0" TotalCost="1724.000277" Rows="1.000000" Width="8"/> </dxl:Properties> <dxl:ProjList> <dxl:ProjElem ColId="0" Alias="a"> <dxl:Ident ColId="0" ColName="a" TypeMdid="0.23.1.0"/> </dxl:ProjElem> <dxl:ProjElem ColId="1" Alias="b"> <dxl:Ident ColId="1" ColName="b" TypeMdid="0.23.1.0"/> </dxl:ProjElem> </dxl:ProjList> <dxl:Filter/> <dxl:Sequence> <dxl:Properties> <dxl:Cost StartupCost="0" TotalCost="431.000069" Rows="1.000000" Width="8"/> </dxl:Properties> <dxl:ProjList> <dxl:ProjElem ColId="0" Alias="a"> <dxl:Ident ColId="0" ColName="a" TypeMdid="0.23.1.0"/> </dxl:ProjElem> <dxl:ProjElem ColId="1" Alias="b"> <dxl:Ident ColId="1" ColName="b" TypeMdid="0.23.1.0"/> </dxl:ProjElem> </dxl:ProjList> <dxl:PartitionSelector RelationMdid="0.322247.1.1" PartitionLevels="1" ScanId="1"> <dxl:Properties> <dxl:Cost StartupCost="10" TotalCost="100" Rows="100" Width="4"/> </dxl:Properties> <dxl:ProjList/> <dxl:PartEqFilters> <dxl:ConstValue TypeMdid="0.23.1.0" Value="1"/> </dxl:PartEqFilters> <dxl:PartFilters> <dxl:ConstValue TypeMdid="0.16.1.0" Value="true"/> </dxl:PartFilters> <dxl:ResidualFilter> <dxl:ConstValue TypeMdid="0.16.1.0" Value="true"/> </dxl:ResidualFilter> <dxl:PropagationExpression> <dxl:ConstValue TypeMdid="0.23.1.0" Value="1"/> </dxl:PropagationExpression> <dxl:PrintableFilter> <dxl:Comparison ComparisonOperator="=" OperatorMdid="0.96.1.0"> <dxl:Ident ColId="1" ColName="b" TypeMdid="0.23.1.0"/> <dxl:ConstValue TypeMdid="0.23.1.0" Value="1"/> </dxl:Comparison> </dxl:PrintableFilter> </dxl:PartitionSelector> <dxl:DynamicTableScan PartIndexId="1"> <dxl:Properties> <dxl:Cost StartupCost="0" TotalCost="431.000069" Rows="1.000000" Width="8"/> </dxl:Properties> <dxl:ProjList> <dxl:ProjElem ColId="0" Alias="a"> <dxl:Ident ColId="0" ColName="a" TypeMdid="0.23.1.0"/> </dxl:ProjElem> <dxl:ProjElem ColId="1" Alias="b"> <dxl:Ident ColId="1" ColName="b" TypeMdid="0.23.1.0"/> </dxl:ProjElem> </dxl:ProjList> <dxl:Filter> <dxl:Comparison ComparisonOperator="=" OperatorMdid="0.96.1.0"> <dxl:Ident ColId="1" ColName="b" TypeMdid="0.23.1.0"/> <dxl:ConstValue TypeMdid="0.23.1.0" Value="1"/> </dxl:Comparison> </dxl:Filter> <dxl:TableDescriptor Mdid="0.322247.1.1" TableName="foo"> <dxl:Columns> <dxl:Column ColId="0" Attno="1" ColName="a" TypeMdid="0.23.1.0"/> <dxl:Column ColId="1" Attno="2" ColName="b" TypeMdid="0.23.1.0"/> <dxl:Column ColId="2" Attno="-1" ColName="ctid" TypeMdid="0.27.1.0"/> <dxl:Column ColId="3" Attno="-3" ColName="xmin" TypeMdid="0.28.1.0"/> <dxl:Column ColId="4" Attno="-4" ColName="cmin" TypeMdid="0.29.1.0"/> <dxl:Column ColId="5" Attno="-5" ColName="xmax" TypeMdid="0.28.1.0"/> <dxl:Column ColId="6" Attno="-6" ColName="cmax" TypeMdid="0.29.1.0"/> <dxl:Column ColId="7" Attno="-7" ColName="tableoid" TypeMdid="0.26.1.0"/> <dxl:Column ColId="8" Attno="-8" ColName="gp_segment_id" TypeMdid="0.23.1.0"/> </dxl:Columns> </dxl:TableDescriptor> </dxl:DynamicTableScan> </dxl:Sequence> <dxl:Sequence> <dxl:Properties> <dxl:Cost StartupCost="0" TotalCost="431.000069" Rows="1.000000" Width="8"/> </dxl:Properties> <dxl:ProjList> <dxl:ProjElem ColId="9" Alias="a"> <dxl:Ident ColId="9" ColName="a" TypeMdid="0.23.1.0"/> </dxl:ProjElem> <dxl:ProjElem ColId="10" Alias="b"> <dxl:Ident ColId="10" ColName="b" TypeMdid="0.23.1.0"/> </dxl:ProjElem> </dxl:ProjList> <dxl:PartitionSelector RelationMdid="0.322247.1.1" PartitionLevels="1" ScanId="2"> <dxl:Properties> <dxl:Cost StartupCost="10" TotalCost="100" Rows="100" Width="4"/> </dxl:Properties> <dxl:ProjList/> <dxl:PartEqFilters> <dxl:ConstValue TypeMdid="0.16.1.0" Value="true"/> </dxl:PartEqFilters> <dxl:PartFilters> <dxl:Or> <dxl:ArrayComp OperatorName="&lt;" OperatorMdid="0.97.1.0" OperatorType="Any"> <dxl:ConstValue TypeMdid="0.23.1.0" Value="3"/> <dxl:PartListValues Level="0" ResultType="0.1007.1.0" ElementType="0.23.1.0"/> </dxl:ArrayComp> <dxl:DefaultPart Level="0"/> </dxl:Or> </dxl:PartFilters> <dxl:ResidualFilter> <dxl:ConstValue TypeMdid="0.16.1.0" Value="true"/> </dxl:ResidualFilter> <dxl:PropagationExpression> <dxl:ConstValue TypeMdid="0.23.1.0" Value="2"/> </dxl:PropagationExpression> <dxl:PrintableFilter> <dxl:Comparison ComparisonOperator="&gt;" OperatorMdid="0.521.1.0"> <dxl:Ident ColId="10" ColName="b" TypeMdid="0.23.1.0"/> <dxl:ConstValue TypeMdid="0.23.1.0" Value="3"/> </dxl:Comparison> </dxl:PrintableFilter> </dxl:PartitionSelector> <dxl:DynamicTableScan PartIndexId="2"> <dxl:Properties> <dxl:Cost StartupCost="0" TotalCost="431.000069" Rows="1.000000" Width="8"/> </dxl:Properties> <dxl:ProjList> <dxl:ProjElem ColId="9" Alias="a"> <dxl:Ident ColId="9" ColName="a" TypeMdid="0.23.1.0"/> </dxl:ProjElem> <dxl:ProjElem ColId="10" Alias="b"> <dxl:Ident ColId="10" ColName="b" TypeMdid="0.23.1.0"/> </dxl:ProjElem> </dxl:ProjList> <dxl:Filter> <dxl:Comparison ComparisonOperator="&gt;" OperatorMdid="0.521.1.0"> <dxl:Ident ColId="10" ColName="b" TypeMdid="0.23.1.0"/> <dxl:ConstValue TypeMdid="0.23.1.0" Value="3"/> </dxl:Comparison> </dxl:Filter> <dxl:TableDescriptor Mdid="0.322247.1.1" TableName="foo"> <dxl:Columns> <dxl:Column ColId="9" Attno="1" ColName="a" TypeMdid="0.23.1.0"/> <dxl:Column ColId="10" Attno="2" ColName="b" TypeMdid="0.23.1.0"/> <dxl:Column ColId="11" Attno="-1" ColName="ctid" TypeMdid="0.27.1.0"/> <dxl:Column ColId="12" Attno="-3" ColName="xmin" TypeMdid="0.28.1.0"/> <dxl:Column ColId="13" Attno="-4" ColName="cmin" TypeMdid="0.29.1.0"/> <dxl:Column ColId="14" Attno="-5" ColName="xmax" TypeMdid="0.28.1.0"/> <dxl:Column ColId="15" Attno="-6" ColName="cmax" TypeMdid="0.29.1.0"/> <dxl:Column ColId="16" Attno="-7" ColName="tableoid" TypeMdid="0.26.1.0"/> <dxl:Column ColId="17" Attno="-8" ColName="gp_segment_id" TypeMdid="0.23.1.0"/> </dxl:Columns> </dxl:TableDescriptor> </dxl:DynamicTableScan> </dxl:Sequence> <dxl:Sequence> <dxl:Properties> <dxl:Cost StartupCost="0" TotalCost="431.000069" Rows="1.000000" Width="8"/> </dxl:Properties> <dxl:ProjList> <dxl:ProjElem ColId="18" Alias="a"> <dxl:Ident ColId="18" ColName="a" TypeMdid="0.23.1.0"/> </dxl:ProjElem> <dxl:ProjElem ColId="19" Alias="b"> <dxl:Ident ColId="19" ColName="b" TypeMdid="0.23.1.0"/> </dxl:ProjElem> </dxl:ProjList> <dxl:PartitionSelector RelationMdid="0.322247.1.1" PartitionLevels="1" ScanId="3"> <dxl:Properties> <dxl:Cost StartupCost="10" TotalCost="100" Rows="100" Width="4"/> </dxl:Properties> <dxl:ProjList/> <dxl:PartEqFilters> <dxl:ConstValue TypeMdid="0.16.1.0" Value="true"/> </dxl:PartEqFilters> <dxl:PartFilters> <dxl:Or> <dxl:Or> <dxl:ArrayComp OperatorName="=" OperatorMdid="0.96.1.0" OperatorType="Any"> <dxl:ConstValue TypeMdid="0.23.1.0" Value="0"/> <dxl:PartListValues Level="0" ResultType="0.1007.1.0" ElementType="0.23.1.0"/> </dxl:ArrayComp> <dxl:DefaultPart Level="0"/> </dxl:Or> <dxl:Or> <dxl:ArrayComp OperatorName="=" OperatorMdid="0.96.1.0" OperatorType="Any"> <dxl:ConstValue TypeMdid="0.23.1.0" Value="1"/> <dxl:PartListValues Level="0" ResultType="0.1007.1.0" ElementType="0.23.1.0"/> </dxl:ArrayComp> <dxl:DefaultPart Level="0"/> </dxl:Or> </dxl:Or> </dxl:PartFilters> <dxl:ResidualFilter> <dxl:ConstValue TypeMdid="0.16.1.0" Value="true"/> </dxl:ResidualFilter> <dxl:PropagationExpression> <dxl:ConstValue TypeMdid="0.23.1.0" Value="3"/> </dxl:PropagationExpression> <dxl:PrintableFilter> <dxl:Or> <dxl:Comparison ComparisonOperator="=" OperatorMdid="0.96.1.0"> <dxl:Ident ColId="19" ColName="b" TypeMdid="0.23.1.0"/> <dxl:ConstValue TypeMdid="0.23.1.0" Value="0"/> </dxl:Comparison> <dxl:Comparison ComparisonOperator="=" OperatorMdid="0.96.1.0"> <dxl:Ident ColId="19" ColName="b" TypeMdid="0.23.1.0"/> <dxl:ConstValue TypeMdid="0.23.1.0" Value="1"/> </dxl:Comparison> </dxl:Or> </dxl:PrintableFilter> </dxl:PartitionSelector> <dxl:DynamicTableScan PartIndexId="3"> <dxl:Properties> <dxl:Cost StartupCost="0" TotalCost="431.000069" Rows="1.000000" Width="8"/> </dxl:Properties> <dxl:ProjList> <dxl:ProjElem ColId="18" Alias="a"> <dxl:Ident ColId="18" ColName="a" TypeMdid="0.23.1.0"/> </dxl:ProjElem> <dxl:ProjElem ColId="19" Alias="b"> <dxl:Ident ColId="19" ColName="b" TypeMdid="0.23.1.0"/> </dxl:ProjElem> </dxl:ProjList> <dxl:Filter> <dxl:ArrayComp OperatorName="=" OperatorMdid="0.96.1.0" OperatorType="Any"> <dxl:Ident ColId="19" ColName="b" TypeMdid="0.23.1.0"/> <dxl:Array ArrayType="0.1007.1.0" ElementType="0.23.1.0" MultiDimensional="false"> <dxl:ConstValue TypeMdid="0.23.1.0" Value="0"/> <dxl:ConstValue TypeMdid="0.23.1.0" Value="1"/> </dxl:Array> </dxl:ArrayComp> </dxl:Filter> <dxl:TableDescriptor Mdid="0.322247.1.1" TableName="foo"> <dxl:Columns> <dxl:Column ColId="18" Attno="1" ColName="a" TypeMdid="0.23.1.0"/> <dxl:Column ColId="19" Attno="2" ColName="b" TypeMdid="0.23.1.0"/> <dxl:Column ColId="20" Attno="-1" ColName="ctid" TypeMdid="0.27.1.0"/> <dxl:Column ColId="21" Attno="-3" ColName="xmin" TypeMdid="0.28.1.0"/> <dxl:Column ColId="22" Attno="-4" ColName="cmin" TypeMdid="0.29.1.0"/> <dxl:Column ColId="23" Attno="-5" ColName="xmax" TypeMdid="0.28.1.0"/> <dxl:Column ColId="24" Attno="-6" ColName="cmax" TypeMdid="0.29.1.0"/> <dxl:Column ColId="25" Attno="-7" ColName="tableoid" TypeMdid="0.26.1.0"/> <dxl:Column ColId="26" Attno="-8" ColName="gp_segment_id" TypeMdid="0.23.1.0"/> </dxl:Columns> </dxl:TableDescriptor> </dxl:DynamicTableScan> </dxl:Sequence> <dxl:Sequence> <dxl:Properties> <dxl:Cost StartupCost="0" TotalCost="431.000069" Rows="1.000000" Width="8"/> </dxl:Properties> <dxl:ProjList> <dxl:ProjElem ColId="27" Alias="a"> <dxl:Ident ColId="27" ColName="a" TypeMdid="0.23.1.0"/> </dxl:ProjElem> <dxl:ProjElem ColId="28" Alias="b"> <dxl:Ident ColId="28" ColName="b" TypeMdid="0.23.1.0"/> </dxl:ProjElem> </dxl:ProjList> <dxl:PartitionSelector RelationMdid="0.322247.1.1" PartitionLevels="1" ScanId="4"> <dxl:Properties> <dxl:Cost StartupCost="10" TotalCost="100" Rows="100" Width="4"/> </dxl:Properties> <dxl:ProjList/> <dxl:PartEqFilters> <dxl:ConstValue TypeMdid="0.16.1.0" Value="true"/> </dxl:PartEqFilters> <dxl:PartFilters> <dxl:Or> <dxl:PartListNullTest Level="0" IsNull="false"/> <dxl:DefaultPart Level="0"/> </dxl:Or> </dxl:PartFilters> <dxl:ResidualFilter> <dxl:ConstValue TypeMdid="0.16.1.0" Value="true"/> </dxl:ResidualFilter> <dxl:PropagationExpression> <dxl:ConstValue TypeMdid="0.23.1.0" Value="4"/> </dxl:PropagationExpression> <dxl:PrintableFilter> <dxl:Not> <dxl:IsNull> <dxl:Ident ColId="28" ColName="b" TypeMdid="0.23.1.0"/> </dxl:IsNull> </dxl:Not> </dxl:PrintableFilter> </dxl:PartitionSelector> <dxl:DynamicTableScan PartIndexId="4"> <dxl:Properties> <dxl:Cost StartupCost="0" TotalCost="431.000069" Rows="1.000000" Width="8"/> </dxl:Properties> <dxl:ProjList> <dxl:ProjElem ColId="27" Alias="a"> <dxl:Ident ColId="27" ColName="a" TypeMdid="0.23.1.0"/> </dxl:ProjElem> <dxl:ProjElem ColId="28" Alias="b"> <dxl:Ident ColId="28" ColName="b" TypeMdid="0.23.1.0"/> </dxl:ProjElem> </dxl:ProjList> <dxl:Filter> <dxl:Not> <dxl:IsNull> <dxl:Ident ColId="28" ColName="b" TypeMdid="0.23.1.0"/> </dxl:IsNull> </dxl:Not> </dxl:Filter> <dxl:TableDescriptor Mdid="0.322247.1.1" TableName="foo"> <dxl:Columns> <dxl:Column ColId="27" Attno="1" ColName="a" TypeMdid="0.23.1.0"/> <dxl:Column ColId="28" Attno="2" ColName="b" TypeMdid="0.23.1.0"/> <dxl:Column ColId="29" Attno="-1" ColName="ctid" TypeMdid="0.27.1.0"/> <dxl:Column ColId="30" Attno="-3" ColName="xmin" TypeMdid="0.28.1.0"/> <dxl:Column ColId="31" Attno="-4" ColName="cmin" TypeMdid="0.29.1.0"/> <dxl:Column ColId="32" Attno="-5" ColName="xmax" TypeMdid="0.28.1.0"/> <dxl:Column ColId="33" Attno="-6" ColName="cmax" TypeMdid="0.29.1.0"/> <dxl:Column ColId="34" Attno="-7" ColName="tableoid" TypeMdid="0.26.1.0"/> <dxl:Column ColId="35" Attno="-8" ColName="gp_segment_id" TypeMdid="0.23.1.0"/> </dxl:Columns> </dxl:TableDescriptor> </dxl:DynamicTableScan> </dxl:Sequence> </dxl:Append> </dxl:GatherMotion> </dxl:Plan> </dxl:Thread> </dxl:DXLMessage>
{ "pile_set_name": "Github" }
require('../modules/web.timers'); require('../modules/web.immediate'); require('../modules/web.dom.iterable'); module.exports = require('../modules/$.core');
{ "pile_set_name": "Github" }
from typing import Type from psqlextra.models import PostgresMaterializedViewModel from .view import PostgresViewModelState class PostgresMaterializedViewModelState(PostgresViewModelState): """Represents the state of a :see:PostgresMaterializedViewModel in the migrations.""" @classmethod def _get_base_model_class(self) -> Type[PostgresMaterializedViewModel]: """Gets the class to use as a base class for rendered models.""" return PostgresMaterializedViewModel
{ "pile_set_name": "Github" }
// RUN: %clang_cc1 -triple x86_64-unknown-linux -O0 -fsanitize-cfi-cross-dso \ // RUN: -fsanitize=cfi-icall,cfi-nvcall,cfi-vcall,cfi-unrelated-cast,cfi-derived-cast \ // RUN: -fsanitize-trap=cfi-icall,cfi-nvcall -fsanitize-recover=cfi-vcall,cfi-unrelated-cast \ // RUN: -emit-llvm -o - %s | FileCheck %s void caller(void (*f)()) { f(); } // CHECK: define weak_odr hidden void @__cfi_check_fail(i8*, i8*) // CHECK: store i8* %0, i8** %[[ALLOCA0:.*]], align 8 // CHECK: store i8* %1, i8** %[[ALLOCA1:.*]], align 8 // CHECK: %[[DATA:.*]] = load i8*, i8** %[[ALLOCA0]], align 8 // CHECK: %[[ADDR:.*]] = load i8*, i8** %[[ALLOCA1]], align 8 // CHECK: %[[ICMP_NOT_NULL:.*]] = icmp ne i8* %[[DATA]], null // CHECK: br i1 %[[ICMP_NOT_NULL]], label %[[CONT0:.*]], label %[[TRAP:.*]], // CHECK: [[TRAP]]: // CHECK-NEXT: call void @llvm.trap() // CHECK-NEXT: unreachable // CHECK: [[CONT0]]: // CHECK: %[[A:.*]] = bitcast i8* %[[DATA]] to { i8, { i8*, i32, i32 }, i8* }* // CHECK: %[[KINDPTR:.*]] = getelementptr {{.*}} %[[A]], i32 0, i32 0 // CHECK: %[[KIND:.*]] = load i8, i8* %[[KINDPTR]], align 4 // CHECK: %[[VTVALID0:.*]] = call i1 @llvm.type.test(i8* %[[ADDR]], metadata !"all-vtables") // CHECK: %[[VTVALID:.*]] = zext i1 %[[VTVALID0]] to i64 // CHECK: %[[NOT_0:.*]] = icmp ne i8 %[[KIND]], 0 // CHECK: br i1 %[[NOT_0]], label %[[CONT1:.*]], label %[[HANDLE0:.*]], !prof // CHECK: [[HANDLE0]]: // CHECK: %[[DATA0:.*]] = ptrtoint i8* %[[DATA]] to i64, // CHECK: %[[ADDR0:.*]] = ptrtoint i8* %[[ADDR]] to i64, // CHECK: call void @__ubsan_handle_cfi_check_fail(i64 %[[DATA0]], i64 %[[ADDR0]], i64 %[[VTVALID]]) // CHECK: br label %[[CONT1]] // CHECK: [[CONT1]]: // CHECK: %[[NOT_1:.*]] = icmp ne i8 %[[KIND]], 1 // CHECK: br i1 %[[NOT_1]], label %[[CONT2:.*]], label %[[HANDLE1:.*]], !nosanitize // CHECK: [[HANDLE1]]: // CHECK-NEXT: call void @llvm.trap() // CHECK-NEXT: unreachable // CHECK: [[CONT2]]: // CHECK: %[[NOT_2:.*]] = icmp ne i8 %[[KIND]], 2 // CHECK: br i1 %[[NOT_2]], label %[[CONT3:.*]], label %[[HANDLE2:.*]], !prof // CHECK: [[HANDLE2]]: // CHECK: %[[DATA2:.*]] = ptrtoint i8* %[[DATA]] to i64, // CHECK: %[[ADDR2:.*]] = ptrtoint i8* %[[ADDR]] to i64, // CHECK: call void @__ubsan_handle_cfi_check_fail_abort(i64 %[[DATA2]], i64 %[[ADDR2]], i64 %[[VTVALID]]) // CHECK: unreachable // CHECK: [[CONT3]]: // CHECK: %[[NOT_3:.*]] = icmp ne i8 %[[KIND]], 3 // CHECK: br i1 %[[NOT_3]], label %[[CONT4:.*]], label %[[HANDLE3:.*]], !prof // CHECK: [[HANDLE3]]: // CHECK: %[[DATA3:.*]] = ptrtoint i8* %[[DATA]] to i64, // CHECK: %[[ADDR3:.*]] = ptrtoint i8* %[[ADDR]] to i64, // CHECK: call void @__ubsan_handle_cfi_check_fail(i64 %[[DATA3]], i64 %[[ADDR3]], i64 %[[VTVALID]]) // CHECK: br label %[[CONT4]] // CHECK: [[CONT4]]: // CHECK: %[[NOT_4:.*]] = icmp ne i8 %[[KIND]], 4 // CHECK: br i1 %[[NOT_4]], label %[[CONT5:.*]], label %[[HANDLE4:.*]], !nosanitize // CHECK: [[HANDLE4]]: // CHECK-NEXT: call void @llvm.trap() // CHECK-NEXT: unreachable // CHECK: [[CONT5]]: // CHECK: ret void // CHECK: define weak void @__cfi_check(i64, i8*, i8*) // CHECK-NOT: } // CHECK: call void @llvm.trap() // CHECK-NEXT: ret void
{ "pile_set_name": "Github" }
; RUN: opt < %s -instcombine -S | FileCheck %s define zeroext i1 @_Z3fooPb(i8* nocapture %x) { entry: %a = load i8, i8* %x, align 1, !range !0 %b = and i8 %a, 1 %tobool = icmp ne i8 %b, 0 ret i1 %tobool } ; CHECK: %a = load i8, i8* %x, align 1, !range !0 ; CHECK-NEXT: %tobool = icmp ne i8 %a, 0 ; CHECK-NEXT: ret i1 %tobool !0 = !{i8 0, i8 2}
{ "pile_set_name": "Github" }
# Copyright 2020 Google Research. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== """Tests for tensorflow.contrib.graph_editor.""" # pylint: disable=g-direct-tensorflow-import from third_party.graph_edit.tests import match from tensorflow.python.framework import constant_op from tensorflow.python.framework import ops from tensorflow.python.ops import math_ops from tensorflow.python.platform import test class MatchTest(test.TestCase): """Match test.""" def setUp(self): """Set up.""" super().setUp() self.graph = ops.Graph() with self.graph.as_default(): self.a = constant_op.constant([1., 1.], shape=[2], name="a") with ops.name_scope("foo"): self.b = constant_op.constant([2., 2.], shape=[2], name="b") self.c = math_ops.add(self.a, self.b, name="c") self.d = constant_op.constant([3., 3.], shape=[2], name="d") with ops.name_scope("bar"): self.e = math_ops.add(self.c, self.d, name="e") self.f = math_ops.add(self.c, self.d, name="f") self.g = math_ops.add(self.c, self.a, name="g") with ops.control_dependencies([self.c.op]): self.h = math_ops.add(self.f, self.g, name="h") def test_simple_match(self): """Test simple match.""" self.assertTrue(match.OpMatcher("^.*/f$")(self.f.op)) self.assertTrue( match.OpMatcher("^.*/f$").input_ops("^.*/c$", "^.*/d$")(self.f.op)) self.assertTrue( match.OpMatcher("^.*/f$").input_ops(True, "^.*/d$")(self.f.op)) self.assertTrue( match.OpMatcher("^.*/f$").input_ops( match.op_type("Add"), match.op_type("Const"))(self.f.op)) self.assertTrue( match.OpMatcher("^.*/f$").input_ops("^.*/c$", "^.*/d$").output_ops( match.OpMatcher("^.*/h$").control_input_ops("^.*/c$"))(self.f.op)) self.assertTrue( match.OpMatcher("^.*/f$").input_ops("^.*/c$", "^.*/d$").output_ops( match.OpMatcher("^.*/h$").control_input_ops("^.*/c$").output_ops( []))(self.f.op)) if __name__ == "__main__": test.main()
{ "pile_set_name": "Github" }
{% load admin_tags %} {% with ip_log=item %} <tr> <td>{{ ip_log|details_url:"ip"|safe }}</td> <td>{{ ip_log|details_url:"vm"|safe }}</td> <td>{{ ip_log|details_url:"network"|safe }}</td> <td>{{ ip_log|details_url:"user"|safe }}</td> <td>{{ ip_log.action }}</td> <td>{{ ip_log.action_date }}</td> </tr> {% endwith %}
{ "pile_set_name": "Github" }
/* Copyright Oliver Kowalke 2009. 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) */ /****************************************************** * * * ------------------------------------------------- * * | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | * * ------------------------------------------------- * * | 0 | 4 | 8 | 12 | 16 | 20 | 24 | 28 | * * ------------------------------------------------- * * | F14 | F15 | F16 | F17 | * * ------------------------------------------------- * * ------------------------------------------------- * * | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | * * ------------------------------------------------- * * | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | * * ------------------------------------------------- * * | F18 | F19 | F20 | F21 | * * ------------------------------------------------- * * ------------------------------------------------- * * | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | * * ------------------------------------------------- * * | 64 | 68 | 72 | 76 | 80 | 84 | 88 | 92 | * * ------------------------------------------------- * * | F22 | F23 | F24 | F25 | * * ------------------------------------------------- * * ------------------------------------------------- * * | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | * * ------------------------------------------------- * * | 96 | 100 | 104 | 108 | 112 | 116 | 120 | 124 | * * ------------------------------------------------- * * | F26 | F27 | F28 | F29 | * * ------------------------------------------------- * * ------------------------------------------------- * * | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | * * ------------------------------------------------- * * | 128 | 132 | 136 | 140 | 144 | 148 | 152 | 156 | * * ------------------------------------------------- * * | F30 | F31 | fpscr | R13 | R14 | * * ------------------------------------------------- * * ------------------------------------------------- * * | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | * * ------------------------------------------------- * * | 160 | 164 | 168 | 172 | 176 | 180 | 184 | 188 | * * ------------------------------------------------- * * | R15 | R16 | R17 | R18 | R19 | R20 | R21 | R22 | * * ------------------------------------------------- * * ------------------------------------------------- * * | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | * * ------------------------------------------------- * * | 192 | 196 | 200 | 204 | 208 | 212 | 216 | 220 | * * ------------------------------------------------- * * | R23 | R24 | R25 | R26 | R27 | R28 | R29 | R30 | * * ------------------------------------------------- * * ------------------------------------------------- * * | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | * * ------------------------------------------------- * * | 224 | 228 | 232 | 236 | 240 | 244 | 248 | 252 | * * ------------------------------------------------- * * | R31 |hiddn| CR | LR | PC |bchai|linkr| FCTX| * * ------------------------------------------------- * * ------------------------------------------------- * * | 64 | | * * ------------------------------------------------- * * | 256 | | * * ------------------------------------------------- * * | DATA| | * * ------------------------------------------------- * * * *******************************************************/ .text .globl _ontop_fcontext .align 2 _ontop_fcontext: # reserve space on stack subi r1, r1, 244 stfd f14, 0(r1) # save F14 stfd f15, 8(r1) # save F15 stfd f16, 16(r1) # save F16 stfd f17, 24(r1) # save F17 stfd f18, 32(r1) # save F18 stfd f19, 40(r1) # save F19 stfd f20, 48(r1) # save F20 stfd f21, 56(r1) # save F21 stfd f22, 64(r1) # save F22 stfd f23, 72(r1) # save F23 stfd f24, 80(r1) # save F24 stfd f25, 88(r1) # save F25 stfd f26, 96(r1) # save F26 stfd f27, 104(r1) # save F27 stfd f28, 112(r1) # save F28 stfd f29, 120(r1) # save F29 stfd f30, 128(r1) # save F30 stfd f31, 136(r1) # save F31 mffs f0 # load FPSCR stfd f0, 144(r1) # save FPSCR stw r13, 152(r1) # save R13 stw r14, 156(r1) # save R14 stw r15, 160(r1) # save R15 stw r16, 164(r1) # save R16 stw r17, 168(r1) # save R17 stw r18, 172(r1) # save R18 stw r19, 176(r1) # save R19 stw r20, 180(r1) # save R20 stw r21, 184(r1) # save R21 stw r22, 188(r1) # save R22 stw r23, 192(r1) # save R23 stw r24, 196(r1) # save R24 stw r25, 200(r1) # save R25 stw r26, 204(r1) # save R26 stw r27, 208(r1) # save R27 stw r28, 212(r1) # save R28 stw r29, 216(r1) # save R29 stw r30, 220(r1) # save R30 stw r31, 224(r1) # save R31 stw r3, 228(r1) # save hidden # save CR mfcr r0 stw r0, 232(r1) # save LR mflr r0 stw r0, 236(r1) # save LR as PC stw r0, 240(r1) # store RSP (pointing to context-data) in R7 mr r7, r1 # restore RSP (pointing to context-data) from R4 mr r1, r4 lfd f14, 0(r1) # restore F14 lfd f15, 8(r1) # restore F15 lfd f16, 16(r1) # restore F16 lfd f17, 24(r1) # restore F17 lfd f18, 32(r1) # restore F18 lfd f19, 40(r1) # restore F19 lfd f20, 48(r1) # restore F20 lfd f21, 56(r1) # restore F21 lfd f22, 64(r1) # restore F22 lfd f23, 72(r1) # restore F23 lfd f24, 80(r1) # restore F24 lfd f25, 88(r1) # restore F25 lfd f26, 96(r1) # restore F26 lfd f27, 104(r1) # restore F27 lfd f28, 112(r1) # restore F28 lfd f29, 120(r1) # restore F29 lfd f30, 128(r1) # restore F30 lfd f31, 136(r1) # restore F31 lfd f0, 144(r1) # load FPSCR mtfsf 0xff, f0 # restore FPSCR lwz r13, 152(r1) # restore R13 lwz r14, 156(r1) # restore R14 lwz r15, 160(r1) # restore R15 lwz r16, 164(r1) # restore R16 lwz r17, 168(r1) # restore R17 lwz r18, 172(r1) # restore R18 lwz r19, 176(r1) # restore R19 lwz r20, 180(r1) # restore R20 lwz r21, 184(r1) # restore R21 lwz r22, 188(r1) # restore R22 lwz r23, 192(r1) # restore R23 lwz r24, 196(r1) # restore R24 lwz r25, 200(r1) # restore R25 lwz r26, 204(r1) # restore R26 lwz r27, 208(r1) # restore R27 lwz r28, 212(r1) # restore R28 lwz r29, 216(r1) # restore R29 lwz r30, 220(r1) # restore R30 lwz r31, 224(r1) # restore R31 lwz r4, 228(r1) # restore hidden # restore CR lwz r0, 232(r1) mtcr r0 # restore LR lwz r0, 236(r1) mtlr r0 # ignore PC # adjust stack addi r1, r1, 244 # return transfer_t stw r7, 0(r4) stw r5, 4(r4) # restore CTR mtctr r6 # jump to ontop-function bctr
{ "pile_set_name": "Github" }
mkdir -p $PREFIX/bin ./configure --disable-debugging make # cmfinder.pl requires env-var CMfinder be set to bin parent dir mv bin/cmfinder.pl bin/_cmfinder.pl echo 'export CMfinder='$PREFIX > bin/cmfinder.pl echo '_cmfinder.pl "$@"' >> bin/cmfinder.pl chmod +x bin/cmfinder.pl cp bin/* $PREFIX/bin/
{ "pile_set_name": "Github" }
<?php // +-----------------------------------------------------------------------+ // | This file is part of Piwigo. | // | | // | For copyright and license information, please view the COPYING.txt | // | file that was distributed with this source code. | // +-----------------------------------------------------------------------+ $lang['Database name'] = 'Databasenamn'; $lang['Note you can change your configuration by yourself and restart Piwigo after that.'] = 'Du kan endre konfigurasjonen sjølv og ta omstart på Piwigo etterpå.'; $lang['You may referer to your hosting provider\'s support and see how you could switch to PHP 5 by yourself.'] = 'Du bør sjekke med dei som leverar nett-tenaren om korleis du kan byte til PHP5.2'; $lang['also given by your host provider'] = 'er og levera av den som leverar nett-tenaren'; $lang['database tables names will be prefixed with it (enables you to manage better your tables)'] = 'namna på databasetabellane vil verta prefiksa med dette (gjev deg mogleghet til å handtere databasetabellane betre)'; $lang['enter a login for webmaster'] = 'skriv inn brukarnamn for webmaster'; $lang['please enter your password again'] = 'skriv inn passord ei gong til'; $lang['user login given by your host provider'] = 'brukarnamn du har fått av den som har nett-tenaren'; $lang['user password given by your host provider'] = 'passord du har fått av den som har nett-tenaren'; $lang['verification'] = 'sjekk'; $lang['webmaster login can\'t contain characters \' or "'] = 'brukarnamn for webmaster kan ikkje innehalde tegna \' eller "'; $lang['Don\'t hesitate to consult our forums for any help : %s'] = 'Ikkje vent med å sjå på foruma våre for hjelp: %s'; $lang['PHP 5 is required'] = 'PHP5.2 er påkrevd'; $lang['Password ']['confirm'] = 'Passord [stadfest]'; $lang['Piwigo may try to switch your configuration to PHP 5 by creating or modifying a .htaccess file.'] = 'Piwigo kan prøve å byte din konfigurasjon til PHP5.2 ved å lage eller endre fila .htaccess.'; $lang['Piwigo was not able to configure PHP 5.'] = 'Piwigo greidde ikkje å konfigurere PHP5.2'; $lang['Sorry!'] = 'Orsak!'; $lang['Start Install'] = 'Start installasjon'; $lang['Try to configure PHP 5'] = 'Prøv å konfigurere PHP5.2'; $lang['User'] = 'Brukar'; $lang['Visitors will be able to contact site administrator with this mail'] = 'Dei som vitjar nettsida kan bruke denne e-postadressa for å kontakte administrator for nettsida'; $lang['Welcome to my photo gallery'] = 'Velkomen til mitt biletgalleri'; $lang['Welcome to your new installation of Piwigo!'] = 'Velkomen til din nye installasjon av Piwigo!'; $lang['You can download the config file and upload it to local/config directory of your installation.'] = 'Du kan laste ned konfigurasjonsfila og laste den opp til "local/config" katalogen i din installasjon.'; $lang['Admin configuration'] = 'Administratorkonfigurasjone'; $lang['An alternate solution is to copy the text in the box above and paste it into the file "local/config/database.inc.php" (Warning : database.inc.php must only contain what is in the textarea, no line return or space character)'] = 'Ein alternativ løysing er å kopiere teksten i boksen over og lime den inn i fila "local/config/database.inc.php" (Åtvaring: "database.inc.php" kan bare innehalde det som er i tekstfeltet, ikkje lineskift eller mellomrom)'; $lang['Basic configuration'] = 'Grunnleggande konfigurasjon'; $lang['Can\'t connect to server'] = 'Kan ikkje kople til tenar'; $lang['Congratulations, Piwigo installation is completed'] = 'Gratulere, installasjon av Piwigo er ferdig'; $lang['Connection to server succeed, but it was impossible to connect to database'] = 'Kopling til tenar er vellukka, men tilkopling til databasen var ikkje mogleg.'; $lang['Creation of config file local/config/database.inc.php failed.'] = 'Oppretting av konfigurasjonsfila "local/config/database.inc.php" feila.'; $lang['Database configuration'] = 'Databasekonfigurasjon'; $lang['Database table prefix'] = 'Prefiks for databasetabellar'; $lang['Default gallery language'] = 'Standard språk for galleriet'; $lang['Download the config file'] = 'Last ned konfigurasjonsfil'; $lang['Hope to see you back soon.'] = 'Håpar å sjå deg att snart.'; $lang['Host'] = 'Tenar'; $lang['Installation'] = 'Installasjon'; $lang['It appears your webhost is currently running PHP %s.'] = 'Det verkar som nettenaren køyrer PHP %s.'; $lang['It will be shown to the visitors. It is necessary for website administration'] = 'Den vil bli vist til dei som vitjar galleriet. Den er naudsynt for administrasjon av nettsida'; $lang['Just another Piwigo gallery'] = 'Enda eit Piwigo galleri'; $lang['Keep it confidential, it enables you to access administration panel'] = 'Hald dette hemmeleg, det gjev deg tilgang til administrasjonspanelet'; $lang['Need help ? Ask your question on <a href="%s">Piwigo message board</a>.'] = 'Treng du hjelp? Still spørsmålet ditt på <a href="%s"> Piwigo sitt forum</a>.'; $lang['localhost or other, supplied by your host provider'] = 'localhost eller servernamn gjeve av administrator for server';
{ "pile_set_name": "Github" }
from __future__ import division, print_function, absolute_import import numpy as np from numpy.testing import assert_equal, assert_allclose, assert_ from scipy.sparse.linalg.isolve import minres import pytest from pytest import raises as assert_raises from .test_iterative import assert_normclose def get_sample_problem(): # A random 10 x 10 symmetric matrix np.random.seed(1234) matrix = np.random.rand(10, 10) matrix = matrix + matrix.T # A random vector of length 10 vector = np.random.rand(10) return matrix, vector def test_singular(): A, b = get_sample_problem() A[0, ] = 0 b[0] = 0 xp, info = minres(A, b) assert_equal(info, 0) assert_normclose(A.dot(xp), b, tol=1e-5) @pytest.mark.skip(reason="Skip Until gh #6843 is fixed") def test_gh_6843(): """check if x0 is being used by tracing iterates""" A, b = get_sample_problem() # Random x0 to feed minres np.random.seed(12345) x0 = np.random.rand(10) trace = [] def trace_iterates(xk): trace.append(xk) minres(A, b, x0=x0, callback=trace_iterates) trace_with_x0 = trace trace = [] minres(A, b, callback=trace_iterates) assert_(not np.array_equal(trace_with_x0[0], trace[0])) def test_shift(): A, b = get_sample_problem() shift = 0.5 shifted_A = A - shift * np.eye(10) x1, info1 = minres(A, b, shift=shift) x2, info2 = minres(shifted_A, b) assert_equal(info1, 0) assert_allclose(x1, x2, rtol=1e-5) def test_asymmetric_fail(): """Asymmetric matrix should raise `ValueError` when check=True""" A, b = get_sample_problem() A[1, 2] = 1 A[2, 1] = 2 with assert_raises(ValueError): xp, info = minres(A, b, check=True)
{ "pile_set_name": "Github" }
# $Id$ # Authority: shuff # Upstream: Khemir Nadim ibn Hamouda <nadim$khemir,net> %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib) %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch) %define real_name Data-TreeDumper-Renderer-GTK Summary: Gtk2::TreeView renderer for Data::TreeDumper Name: perl-%{real_name} Version: 0.02 Release: 1%{?dist} License: Artistic/GPL Group: Applications/CPAN URL: http://search.cpan.org/dist/Data-TreeDumper-Renderer-GTK/ Source: http://search.cpan.org/CPAN/authors/id/N/NK/NKH/Data-TreeDumper-Renderer-GTK-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: perl BuildRequires: perl(Cairo) BuildRequires: perl(Data::TreeDumper) >= 0.33 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Glib) BuildRequires: perl(Gtk2) BuildRequires: rpm-macros-rpmforge Requires: perl Requires: perl(Cairo) Requires: perl(Data::TreeDumper) >= 0.33 Requires: perl(Glib) Requires: perl(Gtk2) ### remove autoreq Perl dependencies %filter_from_requires /^perl.*/d %filter_setup %description This widget is the gui equivalent of Data::TreeDumper; it will display a perl data structure in a TreeView, allowing you to fold and unfold child data structures and get a quick feel for what's where. Right-clicking anywhere in the view brings up a context menu, from which the user can choose to expand or collapse all items. %prep %setup -n %{real_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__make} pure_install ### Clean up buildroot find %{buildroot} -name .packlist -exec %{__rm} {} \; %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc Changes MANIFEST README Todo %doc %{_mandir}/man?/* %dir %{perl_vendorlib}/Data/TreeDumper/Renderer/ %{perl_vendorlib}/Data/TreeDumper/Renderer/* %{perl_vendorlib}/auto/Data/TreeDumper/Renderer/* %changelog * Thu Mar 18 2010 Steve Huff <[email protected]> - 0.02-1 - Initial version.
{ "pile_set_name": "Github" }
# Test Upgrade from old version 5727 # Stop DB server which was created by MTR default # Copy and unzip old version data directory. List all files before upgrade ----------------------------- table_part_1#p#p0.ibd table_part_1#p#p1.ibd table_part_1#p#p2.ibd table_part_1#p#p3.ibd table_part_1#p#p4.ibd table_part_1.frm table_part_2#p#p0.ibd table_part_2#p#p1.ibd table_part_2#p#p2.ibd table_part_2#p#p3.ibd table_part_2#p#p4.ibd table_part_2.frm table_part_@005c_special_@002f_sub_@003f_3#p#part_@002f_3#sp#sub_@003f@002f_5.ibd table_part_@005c_special_@002f_sub_@003f_3#p#part_@002f_3#sp#sub_@005c@002f@003f_6.ibd table_part_@005c_special_@002f_sub_@003f_3#p#part_@003f_1#sp#sub_@002f_2.ibd table_part_@005c_special_@002f_sub_@003f_3#p#part_@003f_1#sp#sub_@003f_1.ibd table_part_@005c_special_@002f_sub_@003f_3#p#part_@005c_2#sp#sub_@003f@005c_4.ibd table_part_@005c_special_@002f_sub_@003f_3#p#part_@005c_2#sp#sub_@005c_3.ibd table_part_@005c_special_@002f_sub_@003f_3.frm table_part_cap_6#p#p0.ibd table_part_cap_6#p#p1.ibd table_part_cap_6#p#p2.ibd table_part_cap_6#p#p3.ibd table_part_cap_6#p#p4.ibd table_part_cap_6.frm table_part_nopart_cap_7.frm table_part_sub_1#p#part_1#sp#part_1sp0.ibd table_part_sub_1#p#part_1#sp#part_1sp1.ibd table_part_sub_1#p#part_2#sp#part_2sp0.ibd table_part_sub_1#p#part_2#sp#part_2sp1.ibd table_part_sub_1#p#part_3#sp#part_3sp0.ibd table_part_sub_1#p#part_3#sp#part_3sp1.ibd table_part_sub_1#p#part_4#sp#part_4sp0.ibd table_part_sub_1#p#part_4#sp#part_4sp1.ibd table_part_sub_1.frm table_part_sub_2#p#part_1#sp#sub_1.ibd table_part_sub_2#p#part_1#sp#sub_2.ibd table_part_sub_2#p#part_2#sp#sub_3.ibd table_part_sub_2#p#part_2#sp#sub_4.ibd table_part_sub_2#p#part_3#sp#sub_5.ibd table_part_sub_2#p#part_3#sp#sub_6.ibd table_part_sub_2.frm # Upgrade to latest mysql version List all files of upgraded data ------------------------------- table_part_1#p#p0.ibd table_part_1#p#p1.ibd table_part_1#p#p2.ibd table_part_1#p#p3.ibd table_part_1#p#p4.ibd table_part_2#p#p0.ibd table_part_2#p#p1.ibd table_part_2#p#p2.ibd table_part_2#p#p3.ibd table_part_2#p#p4.ibd table_part_@005c_special_@002f_sub_@003f_3#p#part_@002f_3#sp#sub_@003f@002f_5.ibd table_part_@005c_special_@002f_sub_@003f_3#p#part_@002f_3#sp#sub_@005c@002f@003f_6.ibd table_part_@005c_special_@002f_sub_@003f_3#p#part_@003f_1#sp#sub_@002f_2.ibd table_part_@005c_special_@002f_sub_@003f_3#p#part_@003f_1#sp#sub_@003f_1.ibd table_part_@005c_special_@002f_sub_@003f_3#p#part_@005c_2#sp#sub_@003f@005c_4.ibd table_part_@005c_special_@002f_sub_@003f_3#p#part_@005c_2#sp#sub_@005c_3.ibd table_part_cap_6#p#p0.ibd table_part_cap_6#p#p1.ibd table_part_cap_6#p#p2.ibd table_part_cap_6#p#p3.ibd table_part_cap_6#p#p4.ibd table_part_sub_1#p#part_1#sp#part_1sp0.ibd table_part_sub_1#p#part_1#sp#part_1sp1.ibd table_part_sub_1#p#part_2#sp#part_2sp0.ibd table_part_sub_1#p#part_2#sp#part_2sp1.ibd table_part_sub_1#p#part_3#sp#part_3sp0.ibd table_part_sub_1#p#part_3#sp#part_3sp1.ibd table_part_sub_1#p#part_4#sp#part_4sp0.ibd table_part_sub_1#p#part_4#sp#part_4sp1.ibd table_part_sub_2#p#part_1#sp#sub_1.ibd table_part_sub_2#p#part_1#sp#sub_2.ibd table_part_sub_2#p#part_2#sp#sub_3.ibd table_part_sub_2#p#part_2#sp#sub_4.ibd table_part_sub_2#p#part_3#sp#sub_5.ibd table_part_sub_2#p#part_3#sp#sub_6.ibd # A. Validate upgraded tables and data # 1. Check table metadata and data Checking partitioned tables --------------------------- SET NAMES utf8mb4 COLLATE utf8mb4_0900_as_cs; CHECK TABLE table_part_1; Table Op Msg_type Msg_text test.table_part_1 check status OK SHOW CREATE TABLE table_part_1; Table Create Table table_part_1 CREATE TABLE `table_part_1` ( `id` int NOT NULL, `value` int DEFAULT NULL, `name` varchar(32) DEFAULT NULL, `data` blob, PRIMARY KEY (`id`), KEY `k1` (`value`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (`id`) PARTITIONS 5 */ SELECT id, value, name, SUBSTRING(data, 1024, 32) FROM table_part_1 order by id; id value name SUBSTRING(data, 1024, 32) 0 55 Row - 0 ta - 0Large Column Data - 0Large 1 155 Row - 1 ta - 1Large Column Data - 1Large 2 255 Row - 2 ta - 2Large Column Data - 2Large 3 355 Row - 3 ta - 3Large Column Data - 3Large 4 455 Row - 4 ta - 4Large Column Data - 4Large 5 555 Row - 5 ta - 5Large Column Data - 5Large 6 655 Row - 6 ta - 6Large Column Data - 6Large 7 755 Row - 7 ta - 7Large Column Data - 7Large 8 855 Row - 8 ta - 8Large Column Data - 8Large 9 955 Row - 9 ta - 9Large Column Data - 9Large CHECK TABLE table_part_sub_1; Table Op Msg_type Msg_text test.table_part_sub_1 check status OK SHOW CREATE TABLE table_part_sub_1; Table Create Table table_part_sub_1 CREATE TABLE `table_part_sub_1` ( `id` int NOT NULL, `value` int NOT NULL, `name` varchar(32) DEFAULT NULL, `data` blob, PRIMARY KEY (`id`,`value`), KEY `k1` (`value`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (`value`) SUBPARTITION BY HASH (`id`) SUBPARTITIONS 2 (PARTITION Part_1 VALUES LESS THAN (101) ENGINE = InnoDB, PARTITION pArt_2 VALUES LESS THAN (401) ENGINE = InnoDB, PARTITION part_3 VALUES LESS THAN (701) ENGINE = InnoDB, PARTITION PART_4 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */ SELECT id, value, name, SUBSTRING(data, 1024, 32) FROM table_part_sub_1 order by id; id value name SUBSTRING(data, 1024, 32) 0 55 Row - 0 ta - 0Large Column Data - 0Large 1 155 Row - 1 ta - 1Large Column Data - 1Large 2 255 Row - 2 ta - 2Large Column Data - 2Large 3 355 Row - 3 ta - 3Large Column Data - 3Large 4 455 Row - 4 ta - 4Large Column Data - 4Large 5 555 Row - 5 ta - 5Large Column Data - 5Large 6 655 Row - 6 ta - 6Large Column Data - 6Large 7 755 Row - 7 ta - 7Large Column Data - 7Large 8 855 Row - 8 ta - 8Large Column Data - 8Large 9 955 Row - 9 ta - 9Large Column Data - 9Large CHECK TABLE table_part_sub_2; Table Op Msg_type Msg_text test.table_part_sub_2 check status OK SHOW CREATE TABLE table_part_sub_2; Table Create Table table_part_sub_2 CREATE TABLE `table_part_sub_2` ( `id` int NOT NULL, `value` int NOT NULL, `name` varchar(32) DEFAULT NULL, `data` blob, PRIMARY KEY (`id`,`value`), KEY `k1` (`value`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (`value`) SUBPARTITION BY HASH (`id`) (PARTITION Part_1 VALUES LESS THAN (101) (SUBPARTITION Sub_1 ENGINE = InnoDB, SUBPARTITION sUb_2 ENGINE = InnoDB), PARTITION pArt_2 VALUES LESS THAN (501) (SUBPARTITION suB_3 ENGINE = InnoDB, SUBPARTITION SUB_4 ENGINE = InnoDB), PARTITION PART_3 VALUES LESS THAN MAXVALUE (SUBPARTITION SUB_5 ENGINE = InnoDB, SUBPARTITION sub_6 ENGINE = InnoDB)) */ SELECT id, value, name, SUBSTRING(data, 1024, 32) FROM table_part_sub_2 order by id; id value name SUBSTRING(data, 1024, 32) 0 55 Row - 0 ta - 0Large Column Data - 0Large 1 155 Row - 1 ta - 1Large Column Data - 1Large 2 255 Row - 2 ta - 2Large Column Data - 2Large 3 355 Row - 3 ta - 3Large Column Data - 3Large 4 455 Row - 4 ta - 4Large Column Data - 4Large 5 555 Row - 5 ta - 5Large Column Data - 5Large 6 655 Row - 6 ta - 6Large Column Data - 6Large 7 755 Row - 7 ta - 7Large Column Data - 7Large 8 855 Row - 8 ta - 8Large Column Data - 8Large 9 955 Row - 9 ta - 9Large Column Data - 9Large CHECK TABLE `table_part_\_special_/_sub_?_3`; Table Op Msg_type Msg_text test.table_part_\_special_/_sub_?_3 check status OK SHOW CREATE TABLE `table_part_\_special_/_sub_?_3`; Table Create Table table_part_\_special_/_sub_?_3 CREATE TABLE `table_part_\_special_/_sub_?_3` ( `id` int NOT NULL, `value` int NOT NULL, `name` varchar(32) DEFAULT NULL, `data` blob, PRIMARY KEY (`id`,`value`), KEY `k1` (`value`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (`value`) SUBPARTITION BY HASH (`id`) (PARTITION `Part_?_1` VALUES LESS THAN (201) (SUBPARTITION `Sub_?_1` ENGINE = InnoDB, SUBPARTITION `sUb_/_2` ENGINE = InnoDB), PARTITION `pArt_\_2` VALUES LESS THAN (501) (SUBPARTITION `suB_\_3` ENGINE = InnoDB, SUBPARTITION `SUB_?\_4` ENGINE = InnoDB), PARTITION `PART_/_3` VALUES LESS THAN MAXVALUE (SUBPARTITION `SUB_?/_5` ENGINE = InnoDB, SUBPARTITION `sub_\/?_6` ENGINE = InnoDB)) */ SELECT id, value, name, SUBSTRING(data, 1024, 32) FROM `table_part_\_special_/_sub_?_3` order by id; id value name SUBSTRING(data, 1024, 32) 0 55 Row - 0 ta - 0Large Column Data - 0Large 1 155 Row - 1 ta - 1Large Column Data - 1Large 2 255 Row - 2 ta - 2Large Column Data - 2Large 3 355 Row - 3 ta - 3Large Column Data - 3Large 4 455 Row - 4 ta - 4Large Column Data - 4Large 5 555 Row - 5 ta - 5Large Column Data - 5Large 6 655 Row - 6 ta - 6Large Column Data - 6Large 7 755 Row - 7 ta - 7Large Column Data - 7Large 8 855 Row - 8 ta - 8Large Column Data - 8Large 9 955 Row - 9 ta - 9Large Column Data - 9Large CHECK TABLE table_part_2; Table Op Msg_type Msg_text test.table_part_2 check status OK SHOW CREATE TABLE table_part_2; Table Create Table table_part_2 CREATE TABLE `table_part_2` ( `id` int NOT NULL, `value` int DEFAULT NULL, `name` varchar(32) DEFAULT NULL, `data` blob, PRIMARY KEY (`id`), KEY `k1` (`value`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (`id`) PARTITIONS 5 */ SELECT id, value, name, SUBSTRING(data, 1024, 32) FROM table_part_2 order by id; id value name SUBSTRING(data, 1024, 32) 0 55 Row - 0 ta - 0Large Column Data - 0Large 1 155 Row - 1 ta - 1Large Column Data - 1Large 2 255 Row - 2 ta - 2Large Column Data - 2Large 3 355 Row - 3 ta - 3Large Column Data - 3Large 4 455 Row - 4 ta - 4Large Column Data - 4Large 5 555 Row - 5 ta - 5Large Column Data - 5Large 6 655 Row - 6 ta - 6Large Column Data - 6Large 7 755 Row - 7 ta - 7Large Column Data - 7Large 8 855 Row - 8 ta - 8Large Column Data - 8Large 9 955 Row - 9 ta - 9Large Column Data - 9Large Checking IFS views ------------------ select table_schema, table_name from information_schema.tables where table_name LIKE '%table_part%' order by table_schema, table_name; TABLE_SCHEMA TABLE_NAME test table_part_1 test table_part_2 test table_part_\_special_/_sub_?_3 test table_part_cap_6 test table_part_nopart_cap_7 test table_part_sub_1 test table_part_sub_2 select name, space_type from information_schema.innodb_tables where name LIKE '%table_part%' order by name, space_type; name space_type test/table_part_1#p#p0 Single test/table_part_1#p#p1 Single test/table_part_1#p#p2 Single test/table_part_1#p#p3 Single test/table_part_1#p#p4 Single test/table_part_2#p#p0 Single test/table_part_2#p#p1 Single test/table_part_2#p#p2 Single test/table_part_2#p#p3 Single test/table_part_2#p#p4 Single test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@002f_3#sp#sub_@003f@002f_5 Single test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@002f_3#sp#sub_@005c@002f@003f_6 Single test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@003f_1#sp#sub_@002f_2 Single test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@003f_1#sp#sub_@003f_1 Single test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@005c_2#sp#sub_@003f@005c_4 Single test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@005c_2#sp#sub_@005c_3 Single test/table_part_cap_6#p#p0 Single test/table_part_cap_6#p#p1 Single test/table_part_cap_6#p#p2 Single test/table_part_cap_6#p#p3 Single test/table_part_cap_6#p#p4 Single test/table_part_nopart_cap_7 General test/table_part_sub_1#p#part_1#sp#part_1sp0 Single test/table_part_sub_1#p#part_1#sp#part_1sp1 Single test/table_part_sub_1#p#part_2#sp#part_2sp0 Single test/table_part_sub_1#p#part_2#sp#part_2sp1 Single test/table_part_sub_1#p#part_3#sp#part_3sp0 Single test/table_part_sub_1#p#part_3#sp#part_3sp1 Single test/table_part_sub_1#p#part_4#sp#part_4sp0 Single test/table_part_sub_1#p#part_4#sp#part_4sp1 Single test/table_part_sub_2#p#part_1#sp#sub_1 Single test/table_part_sub_2#p#part_1#sp#sub_2 Single test/table_part_sub_2#p#part_2#sp#sub_3 Single test/table_part_sub_2#p#part_2#sp#sub_4 Single test/table_part_sub_2#p#part_3#sp#sub_5 Single test/table_part_sub_2#p#part_3#sp#sub_6 Single select table_schema, table_name, partition_name, subpartition_name from information_schema.partitions where table_name LIKE '%table_part%' order by table_schema, table_name, partition_name, subpartition_name; TABLE_SCHEMA TABLE_NAME PARTITION_NAME SUBPARTITION_NAME test table_part_1 p0 NULL test table_part_1 p1 NULL test table_part_1 p2 NULL test table_part_1 p3 NULL test table_part_1 p4 NULL test table_part_2 p0 NULL test table_part_2 p1 NULL test table_part_2 p2 NULL test table_part_2 p3 NULL test table_part_2 p4 NULL test table_part_\_special_/_sub_?_3 PART_/_3 SUB_?/_5 test table_part_\_special_/_sub_?_3 PART_/_3 sub_\/?_6 test table_part_\_special_/_sub_?_3 Part_?_1 sUb_/_2 test table_part_\_special_/_sub_?_3 Part_?_1 Sub_?_1 test table_part_\_special_/_sub_?_3 pArt_\_2 SUB_?\_4 test table_part_\_special_/_sub_?_3 pArt_\_2 suB_\_3 test table_part_cap_6 p0 NULL test table_part_cap_6 p1 NULL test table_part_cap_6 p2 NULL test table_part_cap_6 p3 NULL test table_part_cap_6 p4 NULL test table_part_nopart_cap_7 NULL NULL test table_part_sub_1 Part_1 Part_1sp0 test table_part_sub_1 Part_1 Part_1sp1 test table_part_sub_1 pArt_2 pArt_2sp0 test table_part_sub_1 pArt_2 pArt_2sp1 test table_part_sub_1 part_3 part_3sp0 test table_part_sub_1 part_3 part_3sp1 test table_part_sub_1 PART_4 PART_4sp0 test table_part_sub_1 PART_4 PART_4sp1 test table_part_sub_2 Part_1 Sub_1 test table_part_sub_2 Part_1 sUb_2 test table_part_sub_2 pArt_2 suB_3 test table_part_sub_2 pArt_2 SUB_4 test table_part_sub_2 PART_3 SUB_5 test table_part_sub_2 PART_3 sub_6 select name from information_schema.innodb_tablespaces where name LIKE '%table_part%' order by name; name test/table_part_1#p#p0 test/table_part_1#p#p1 test/table_part_1#p#p2 test/table_part_1#p#p3 test/table_part_1#p#p4 test/table_part_2#p#p0 test/table_part_2#p#p1 test/table_part_2#p#p2 test/table_part_2#p#p3 test/table_part_2#p#p4 test/table_part_cap_6#p#p0 test/table_part_cap_6#p#p1 test/table_part_cap_6#p#p2 test/table_part_cap_6#p#p3 test/table_part_cap_6#p#p4 test/table_part_sub_1#p#part_1#sp#part_1sp0 test/table_part_sub_1#p#part_1#sp#part_1sp1 test/table_part_sub_1#p#part_2#sp#part_2sp0 test/table_part_sub_1#p#part_2#sp#part_2sp1 test/table_part_sub_1#p#part_3#sp#part_3sp0 test/table_part_sub_1#p#part_3#sp#part_3sp1 test/table_part_sub_1#p#part_4#sp#part_4sp0 test/table_part_sub_1#p#part_4#sp#part_4sp1 test/table_part_sub_2#p#part_1#sp#sub_1 test/table_part_sub_2#p#part_1#sp#sub_2 test/table_part_sub_2#p#part_2#sp#sub_3 test/table_part_sub_2#p#part_2#sp#sub_4 test/table_part_sub_2#p#part_3#sp#sub_5 test/table_part_sub_2#p#part_3#sp#sub_6 test/table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 test/table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 test/table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 test/table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 test/table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 test/table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 select file_type, status, file_name, tablespace_name from information_schema.files where file_name LIKE '%table_part%' order by file_type, status, file_name, tablespace_name; FILE_TYPE STATUS FILE_NAME TABLESPACE_NAME TABLESPACE NORMAL ./test/table_part_1#p#p0.ibd test/table_part_1#p#p0 TABLESPACE NORMAL ./test/table_part_1#p#p1.ibd test/table_part_1#p#p1 TABLESPACE NORMAL ./test/table_part_1#p#p2.ibd test/table_part_1#p#p2 TABLESPACE NORMAL ./test/table_part_1#p#p3.ibd test/table_part_1#p#p3 TABLESPACE NORMAL ./test/table_part_1#p#p4.ibd test/table_part_1#p#p4 TABLESPACE NORMAL ./test/table_part_2#p#p0.ibd test/table_part_2#p#p0 TABLESPACE NORMAL ./test/table_part_2#p#p1.ibd test/table_part_2#p#p1 TABLESPACE NORMAL ./test/table_part_2#p#p2.ibd test/table_part_2#p#p2 TABLESPACE NORMAL ./test/table_part_2#p#p3.ibd test/table_part_2#p#p3 TABLESPACE NORMAL ./test/table_part_2#p#p4.ibd test/table_part_2#p#p4 TABLESPACE NORMAL ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@002f_3#sp#sub_@003f@002f_5.ibd test/table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 TABLESPACE NORMAL ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@002f_3#sp#sub_@005c@002f@003f_6.ibd test/table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 TABLESPACE NORMAL ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@003f_1#sp#sub_@002f_2.ibd test/table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 TABLESPACE NORMAL ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@003f_1#sp#sub_@003f_1.ibd test/table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 TABLESPACE NORMAL ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@005c_2#sp#sub_@003f@005c_4.ibd test/table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 TABLESPACE NORMAL ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@005c_2#sp#sub_@005c_3.ibd test/table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 TABLESPACE NORMAL ./test/table_part_cap_6#p#p0.ibd test/table_part_cap_6#p#p0 TABLESPACE NORMAL ./test/table_part_cap_6#p#p1.ibd test/table_part_cap_6#p#p1 TABLESPACE NORMAL ./test/table_part_cap_6#p#p2.ibd test/table_part_cap_6#p#p2 TABLESPACE NORMAL ./test/table_part_cap_6#p#p3.ibd test/table_part_cap_6#p#p3 TABLESPACE NORMAL ./test/table_part_cap_6#p#p4.ibd test/table_part_cap_6#p#p4 TABLESPACE NORMAL ./test/table_part_sub_1#p#part_1#sp#part_1sp0.ibd test/table_part_sub_1#p#part_1#sp#part_1sp0 TABLESPACE NORMAL ./test/table_part_sub_1#p#part_1#sp#part_1sp1.ibd test/table_part_sub_1#p#part_1#sp#part_1sp1 TABLESPACE NORMAL ./test/table_part_sub_1#p#part_2#sp#part_2sp0.ibd test/table_part_sub_1#p#part_2#sp#part_2sp0 TABLESPACE NORMAL ./test/table_part_sub_1#p#part_2#sp#part_2sp1.ibd test/table_part_sub_1#p#part_2#sp#part_2sp1 TABLESPACE NORMAL ./test/table_part_sub_1#p#part_3#sp#part_3sp0.ibd test/table_part_sub_1#p#part_3#sp#part_3sp0 TABLESPACE NORMAL ./test/table_part_sub_1#p#part_3#sp#part_3sp1.ibd test/table_part_sub_1#p#part_3#sp#part_3sp1 TABLESPACE NORMAL ./test/table_part_sub_1#p#part_4#sp#part_4sp0.ibd test/table_part_sub_1#p#part_4#sp#part_4sp0 TABLESPACE NORMAL ./test/table_part_sub_1#p#part_4#sp#part_4sp1.ibd test/table_part_sub_1#p#part_4#sp#part_4sp1 TABLESPACE NORMAL ./test/table_part_sub_2#p#part_1#sp#sub_1.ibd test/table_part_sub_2#p#part_1#sp#sub_1 TABLESPACE NORMAL ./test/table_part_sub_2#p#part_1#sp#sub_2.ibd test/table_part_sub_2#p#part_1#sp#sub_2 TABLESPACE NORMAL ./test/table_part_sub_2#p#part_2#sp#sub_3.ibd test/table_part_sub_2#p#part_2#sp#sub_3 TABLESPACE NORMAL ./test/table_part_sub_2#p#part_2#sp#sub_4.ibd test/table_part_sub_2#p#part_2#sp#sub_4 TABLESPACE NORMAL ./test/table_part_sub_2#p#part_3#sp#sub_5.ibd test/table_part_sub_2#p#part_3#sp#sub_5 TABLESPACE NORMAL ./test/table_part_sub_2#p#part_3#sp#sub_6.ibd test/table_part_sub_2#p#part_3#sp#sub_6 Checking Innodb stat tables --------------------------- select database_name, table_name from mysql.innodb_table_stats where table_name like '%table_part%' order by database_name, table_name; database_name table_name test table_part_1#p#p0 test table_part_1#p#p1 test table_part_1#p#p2 test table_part_1#p#p3 test table_part_1#p#p4 test table_part_2#p#p0 test table_part_2#p#p1 test table_part_2#p#p2 test table_part_2#p#p3 test table_part_2#p#p4 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 test table_part_cap_6#p#p0 test table_part_cap_6#p#p1 test table_part_cap_6#p#p2 test table_part_cap_6#p#p3 test table_part_cap_6#p#p4 test table_part_nopart_cap_7 test table_part_sub_1#p#part_1#sp#part_1sp0 test table_part_sub_1#p#part_1#sp#part_1sp1 test table_part_sub_1#p#part_2#sp#part_2sp0 test table_part_sub_1#p#part_2#sp#part_2sp1 test table_part_sub_1#p#part_3#sp#part_3sp0 test table_part_sub_1#p#part_3#sp#part_3sp1 test table_part_sub_1#p#part_4#sp#part_4sp0 test table_part_sub_1#p#part_4#sp#part_4sp1 test table_part_sub_2#p#part_1#sp#sub_1 test table_part_sub_2#p#part_1#sp#sub_2 test table_part_sub_2#p#part_2#sp#sub_3 test table_part_sub_2#p#part_2#sp#sub_4 test table_part_sub_2#p#part_3#sp#sub_5 test table_part_sub_2#p#part_3#sp#sub_6 select database_name, table_name, index_name, stat_name from mysql.innodb_index_stats where table_name like '%table_part%' order by database_name, table_name, index_name, stat_name; database_name table_name index_name stat_name test table_part_1#p#p0 PRIMARY n_diff_pfx01 test table_part_1#p#p0 PRIMARY n_leaf_pages test table_part_1#p#p0 PRIMARY size test table_part_1#p#p0 k1 n_diff_pfx01 test table_part_1#p#p0 k1 n_diff_pfx02 test table_part_1#p#p0 k1 n_leaf_pages test table_part_1#p#p0 k1 size test table_part_1#p#p1 PRIMARY n_diff_pfx01 test table_part_1#p#p1 PRIMARY n_leaf_pages test table_part_1#p#p1 PRIMARY size test table_part_1#p#p1 k1 n_diff_pfx01 test table_part_1#p#p1 k1 n_diff_pfx02 test table_part_1#p#p1 k1 n_leaf_pages test table_part_1#p#p1 k1 size test table_part_1#p#p2 PRIMARY n_diff_pfx01 test table_part_1#p#p2 PRIMARY n_leaf_pages test table_part_1#p#p2 PRIMARY size test table_part_1#p#p2 k1 n_diff_pfx01 test table_part_1#p#p2 k1 n_diff_pfx02 test table_part_1#p#p2 k1 n_leaf_pages test table_part_1#p#p2 k1 size test table_part_1#p#p3 PRIMARY n_diff_pfx01 test table_part_1#p#p3 PRIMARY n_leaf_pages test table_part_1#p#p3 PRIMARY size test table_part_1#p#p3 k1 n_diff_pfx01 test table_part_1#p#p3 k1 n_diff_pfx02 test table_part_1#p#p3 k1 n_leaf_pages test table_part_1#p#p3 k1 size test table_part_1#p#p4 PRIMARY n_diff_pfx01 test table_part_1#p#p4 PRIMARY n_leaf_pages test table_part_1#p#p4 PRIMARY size test table_part_1#p#p4 k1 n_diff_pfx01 test table_part_1#p#p4 k1 n_diff_pfx02 test table_part_1#p#p4 k1 n_leaf_pages test table_part_1#p#p4 k1 size test table_part_2#p#p0 PRIMARY n_diff_pfx01 test table_part_2#p#p0 PRIMARY n_leaf_pages test table_part_2#p#p0 PRIMARY size test table_part_2#p#p0 k1 n_diff_pfx01 test table_part_2#p#p0 k1 n_diff_pfx02 test table_part_2#p#p0 k1 n_leaf_pages test table_part_2#p#p0 k1 size test table_part_2#p#p1 PRIMARY n_diff_pfx01 test table_part_2#p#p1 PRIMARY n_leaf_pages test table_part_2#p#p1 PRIMARY size test table_part_2#p#p1 k1 n_diff_pfx01 test table_part_2#p#p1 k1 n_diff_pfx02 test table_part_2#p#p1 k1 n_leaf_pages test table_part_2#p#p1 k1 size test table_part_2#p#p2 PRIMARY n_diff_pfx01 test table_part_2#p#p2 PRIMARY n_leaf_pages test table_part_2#p#p2 PRIMARY size test table_part_2#p#p2 k1 n_diff_pfx01 test table_part_2#p#p2 k1 n_diff_pfx02 test table_part_2#p#p2 k1 n_leaf_pages test table_part_2#p#p2 k1 size test table_part_2#p#p3 PRIMARY n_diff_pfx01 test table_part_2#p#p3 PRIMARY n_leaf_pages test table_part_2#p#p3 PRIMARY size test table_part_2#p#p3 k1 n_diff_pfx01 test table_part_2#p#p3 k1 n_diff_pfx02 test table_part_2#p#p3 k1 n_leaf_pages test table_part_2#p#p3 k1 size test table_part_2#p#p4 PRIMARY n_diff_pfx01 test table_part_2#p#p4 PRIMARY n_leaf_pages test table_part_2#p#p4 PRIMARY size test table_part_2#p#p4 k1 n_diff_pfx01 test table_part_2#p#p4 k1 n_diff_pfx02 test table_part_2#p#p4 k1 n_leaf_pages test table_part_2#p#p4 k1 size test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 PRIMARY n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 PRIMARY n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 PRIMARY n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 PRIMARY size test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 k1 n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 k1 n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 k1 n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 k1 size test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 PRIMARY n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 PRIMARY n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 PRIMARY n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 PRIMARY size test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 k1 n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 k1 n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 k1 n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 k1 size test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 PRIMARY n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 PRIMARY n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 PRIMARY n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 PRIMARY size test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 k1 n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 k1 n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 k1 n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 k1 size test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 PRIMARY n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 PRIMARY n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 PRIMARY n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 PRIMARY size test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 k1 n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 k1 n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 k1 n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 k1 size test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 PRIMARY n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 PRIMARY n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 PRIMARY n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 PRIMARY size test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 k1 n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 k1 n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 k1 n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 k1 size test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 PRIMARY n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 PRIMARY n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 PRIMARY n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 PRIMARY size test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 k1 n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 k1 n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 k1 n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 k1 size test table_part_cap_6#p#p0 PRIMARY n_diff_pfx01 test table_part_cap_6#p#p0 PRIMARY n_leaf_pages test table_part_cap_6#p#p0 PRIMARY size test table_part_cap_6#p#p0 k1 n_diff_pfx01 test table_part_cap_6#p#p0 k1 n_diff_pfx02 test table_part_cap_6#p#p0 k1 n_leaf_pages test table_part_cap_6#p#p0 k1 size test table_part_cap_6#p#p1 PRIMARY n_diff_pfx01 test table_part_cap_6#p#p1 PRIMARY n_leaf_pages test table_part_cap_6#p#p1 PRIMARY size test table_part_cap_6#p#p1 k1 n_diff_pfx01 test table_part_cap_6#p#p1 k1 n_diff_pfx02 test table_part_cap_6#p#p1 k1 n_leaf_pages test table_part_cap_6#p#p1 k1 size test table_part_cap_6#p#p2 PRIMARY n_diff_pfx01 test table_part_cap_6#p#p2 PRIMARY n_leaf_pages test table_part_cap_6#p#p2 PRIMARY size test table_part_cap_6#p#p2 k1 n_diff_pfx01 test table_part_cap_6#p#p2 k1 n_diff_pfx02 test table_part_cap_6#p#p2 k1 n_leaf_pages test table_part_cap_6#p#p2 k1 size test table_part_cap_6#p#p3 PRIMARY n_diff_pfx01 test table_part_cap_6#p#p3 PRIMARY n_leaf_pages test table_part_cap_6#p#p3 PRIMARY size test table_part_cap_6#p#p3 k1 n_diff_pfx01 test table_part_cap_6#p#p3 k1 n_diff_pfx02 test table_part_cap_6#p#p3 k1 n_leaf_pages test table_part_cap_6#p#p3 k1 size test table_part_cap_6#p#p4 PRIMARY n_diff_pfx01 test table_part_cap_6#p#p4 PRIMARY n_leaf_pages test table_part_cap_6#p#p4 PRIMARY size test table_part_cap_6#p#p4 k1 n_diff_pfx01 test table_part_cap_6#p#p4 k1 n_diff_pfx02 test table_part_cap_6#p#p4 k1 n_leaf_pages test table_part_cap_6#p#p4 k1 size test table_part_nopart_cap_7 PRIMARY n_diff_pfx01 test table_part_nopart_cap_7 PRIMARY n_leaf_pages test table_part_nopart_cap_7 PRIMARY size test table_part_nopart_cap_7 k1 n_diff_pfx01 test table_part_nopart_cap_7 k1 n_diff_pfx02 test table_part_nopart_cap_7 k1 n_leaf_pages test table_part_nopart_cap_7 k1 size test table_part_sub_1#p#part_1#sp#part_1sp0 PRIMARY n_diff_pfx01 test table_part_sub_1#p#part_1#sp#part_1sp0 PRIMARY n_diff_pfx02 test table_part_sub_1#p#part_1#sp#part_1sp0 PRIMARY n_leaf_pages test table_part_sub_1#p#part_1#sp#part_1sp0 PRIMARY size test table_part_sub_1#p#part_1#sp#part_1sp0 k1 n_diff_pfx01 test table_part_sub_1#p#part_1#sp#part_1sp0 k1 n_diff_pfx02 test table_part_sub_1#p#part_1#sp#part_1sp0 k1 n_leaf_pages test table_part_sub_1#p#part_1#sp#part_1sp0 k1 size test table_part_sub_1#p#part_1#sp#part_1sp1 PRIMARY n_diff_pfx01 test table_part_sub_1#p#part_1#sp#part_1sp1 PRIMARY n_diff_pfx02 test table_part_sub_1#p#part_1#sp#part_1sp1 PRIMARY n_leaf_pages test table_part_sub_1#p#part_1#sp#part_1sp1 PRIMARY size test table_part_sub_1#p#part_1#sp#part_1sp1 k1 n_diff_pfx01 test table_part_sub_1#p#part_1#sp#part_1sp1 k1 n_diff_pfx02 test table_part_sub_1#p#part_1#sp#part_1sp1 k1 n_leaf_pages test table_part_sub_1#p#part_1#sp#part_1sp1 k1 size test table_part_sub_1#p#part_2#sp#part_2sp0 PRIMARY n_diff_pfx01 test table_part_sub_1#p#part_2#sp#part_2sp0 PRIMARY n_diff_pfx02 test table_part_sub_1#p#part_2#sp#part_2sp0 PRIMARY n_leaf_pages test table_part_sub_1#p#part_2#sp#part_2sp0 PRIMARY size test table_part_sub_1#p#part_2#sp#part_2sp0 k1 n_diff_pfx01 test table_part_sub_1#p#part_2#sp#part_2sp0 k1 n_diff_pfx02 test table_part_sub_1#p#part_2#sp#part_2sp0 k1 n_leaf_pages test table_part_sub_1#p#part_2#sp#part_2sp0 k1 size test table_part_sub_1#p#part_2#sp#part_2sp1 PRIMARY n_diff_pfx01 test table_part_sub_1#p#part_2#sp#part_2sp1 PRIMARY n_diff_pfx02 test table_part_sub_1#p#part_2#sp#part_2sp1 PRIMARY n_leaf_pages test table_part_sub_1#p#part_2#sp#part_2sp1 PRIMARY size test table_part_sub_1#p#part_2#sp#part_2sp1 k1 n_diff_pfx01 test table_part_sub_1#p#part_2#sp#part_2sp1 k1 n_diff_pfx02 test table_part_sub_1#p#part_2#sp#part_2sp1 k1 n_leaf_pages test table_part_sub_1#p#part_2#sp#part_2sp1 k1 size test table_part_sub_1#p#part_3#sp#part_3sp0 PRIMARY n_diff_pfx01 test table_part_sub_1#p#part_3#sp#part_3sp0 PRIMARY n_diff_pfx02 test table_part_sub_1#p#part_3#sp#part_3sp0 PRIMARY n_leaf_pages test table_part_sub_1#p#part_3#sp#part_3sp0 PRIMARY size test table_part_sub_1#p#part_3#sp#part_3sp0 k1 n_diff_pfx01 test table_part_sub_1#p#part_3#sp#part_3sp0 k1 n_diff_pfx02 test table_part_sub_1#p#part_3#sp#part_3sp0 k1 n_leaf_pages test table_part_sub_1#p#part_3#sp#part_3sp0 k1 size test table_part_sub_1#p#part_3#sp#part_3sp1 PRIMARY n_diff_pfx01 test table_part_sub_1#p#part_3#sp#part_3sp1 PRIMARY n_diff_pfx02 test table_part_sub_1#p#part_3#sp#part_3sp1 PRIMARY n_leaf_pages test table_part_sub_1#p#part_3#sp#part_3sp1 PRIMARY size test table_part_sub_1#p#part_3#sp#part_3sp1 k1 n_diff_pfx01 test table_part_sub_1#p#part_3#sp#part_3sp1 k1 n_diff_pfx02 test table_part_sub_1#p#part_3#sp#part_3sp1 k1 n_leaf_pages test table_part_sub_1#p#part_3#sp#part_3sp1 k1 size test table_part_sub_1#p#part_4#sp#part_4sp0 PRIMARY n_diff_pfx01 test table_part_sub_1#p#part_4#sp#part_4sp0 PRIMARY n_diff_pfx02 test table_part_sub_1#p#part_4#sp#part_4sp0 PRIMARY n_leaf_pages test table_part_sub_1#p#part_4#sp#part_4sp0 PRIMARY size test table_part_sub_1#p#part_4#sp#part_4sp0 k1 n_diff_pfx01 test table_part_sub_1#p#part_4#sp#part_4sp0 k1 n_diff_pfx02 test table_part_sub_1#p#part_4#sp#part_4sp0 k1 n_leaf_pages test table_part_sub_1#p#part_4#sp#part_4sp0 k1 size test table_part_sub_1#p#part_4#sp#part_4sp1 PRIMARY n_diff_pfx01 test table_part_sub_1#p#part_4#sp#part_4sp1 PRIMARY n_diff_pfx02 test table_part_sub_1#p#part_4#sp#part_4sp1 PRIMARY n_leaf_pages test table_part_sub_1#p#part_4#sp#part_4sp1 PRIMARY size test table_part_sub_1#p#part_4#sp#part_4sp1 k1 n_diff_pfx01 test table_part_sub_1#p#part_4#sp#part_4sp1 k1 n_diff_pfx02 test table_part_sub_1#p#part_4#sp#part_4sp1 k1 n_leaf_pages test table_part_sub_1#p#part_4#sp#part_4sp1 k1 size test table_part_sub_2#p#part_1#sp#sub_1 PRIMARY n_diff_pfx01 test table_part_sub_2#p#part_1#sp#sub_1 PRIMARY n_diff_pfx02 test table_part_sub_2#p#part_1#sp#sub_1 PRIMARY n_leaf_pages test table_part_sub_2#p#part_1#sp#sub_1 PRIMARY size test table_part_sub_2#p#part_1#sp#sub_1 k1 n_diff_pfx01 test table_part_sub_2#p#part_1#sp#sub_1 k1 n_diff_pfx02 test table_part_sub_2#p#part_1#sp#sub_1 k1 n_leaf_pages test table_part_sub_2#p#part_1#sp#sub_1 k1 size test table_part_sub_2#p#part_1#sp#sub_2 PRIMARY n_diff_pfx01 test table_part_sub_2#p#part_1#sp#sub_2 PRIMARY n_diff_pfx02 test table_part_sub_2#p#part_1#sp#sub_2 PRIMARY n_leaf_pages test table_part_sub_2#p#part_1#sp#sub_2 PRIMARY size test table_part_sub_2#p#part_1#sp#sub_2 k1 n_diff_pfx01 test table_part_sub_2#p#part_1#sp#sub_2 k1 n_diff_pfx02 test table_part_sub_2#p#part_1#sp#sub_2 k1 n_leaf_pages test table_part_sub_2#p#part_1#sp#sub_2 k1 size test table_part_sub_2#p#part_2#sp#sub_3 PRIMARY n_diff_pfx01 test table_part_sub_2#p#part_2#sp#sub_3 PRIMARY n_diff_pfx02 test table_part_sub_2#p#part_2#sp#sub_3 PRIMARY n_leaf_pages test table_part_sub_2#p#part_2#sp#sub_3 PRIMARY size test table_part_sub_2#p#part_2#sp#sub_3 k1 n_diff_pfx01 test table_part_sub_2#p#part_2#sp#sub_3 k1 n_diff_pfx02 test table_part_sub_2#p#part_2#sp#sub_3 k1 n_leaf_pages test table_part_sub_2#p#part_2#sp#sub_3 k1 size test table_part_sub_2#p#part_2#sp#sub_4 PRIMARY n_diff_pfx01 test table_part_sub_2#p#part_2#sp#sub_4 PRIMARY n_diff_pfx02 test table_part_sub_2#p#part_2#sp#sub_4 PRIMARY n_leaf_pages test table_part_sub_2#p#part_2#sp#sub_4 PRIMARY size test table_part_sub_2#p#part_2#sp#sub_4 k1 n_diff_pfx01 test table_part_sub_2#p#part_2#sp#sub_4 k1 n_diff_pfx02 test table_part_sub_2#p#part_2#sp#sub_4 k1 n_leaf_pages test table_part_sub_2#p#part_2#sp#sub_4 k1 size test table_part_sub_2#p#part_3#sp#sub_5 PRIMARY n_diff_pfx01 test table_part_sub_2#p#part_3#sp#sub_5 PRIMARY n_diff_pfx02 test table_part_sub_2#p#part_3#sp#sub_5 PRIMARY n_leaf_pages test table_part_sub_2#p#part_3#sp#sub_5 PRIMARY size test table_part_sub_2#p#part_3#sp#sub_5 k1 n_diff_pfx01 test table_part_sub_2#p#part_3#sp#sub_5 k1 n_diff_pfx02 test table_part_sub_2#p#part_3#sp#sub_5 k1 n_leaf_pages test table_part_sub_2#p#part_3#sp#sub_5 k1 size test table_part_sub_2#p#part_3#sp#sub_6 PRIMARY n_diff_pfx01 test table_part_sub_2#p#part_3#sp#sub_6 PRIMARY n_diff_pfx02 test table_part_sub_2#p#part_3#sp#sub_6 PRIMARY n_leaf_pages test table_part_sub_2#p#part_3#sp#sub_6 PRIMARY size test table_part_sub_2#p#part_3#sp#sub_6 k1 n_diff_pfx01 test table_part_sub_2#p#part_3#sp#sub_6 k1 n_diff_pfx02 test table_part_sub_2#p#part_3#sp#sub_6 k1 n_leaf_pages test table_part_sub_2#p#part_3#sp#sub_6 k1 size Checking DD tables ------------------ SET DEBUG='+d,skip_dd_table_access_check'; select t.name as "table", p.name as "partition", p.number from mysql.tables t, mysql.table_partitions p where p.table_id = t.id order by t.name, p.name, p.number; table partition number table_part_1 p0 0 table_part_1 p1 1 table_part_1 p2 2 table_part_1 p3 3 table_part_1 p4 4 table_part_2 p0 0 table_part_2 p1 1 table_part_2 p2 2 table_part_2 p3 3 table_part_2 p4 4 table_part_\_special_/_sub_?_3 PART_/_3 2 table_part_\_special_/_sub_?_3 Part_?_1 0 table_part_\_special_/_sub_?_3 pArt_\_2 1 table_part_\_special_/_sub_?_3 sUb_/_2 1 table_part_\_special_/_sub_?_3 SUB_?/_5 0 table_part_\_special_/_sub_?_3 SUB_?\_4 1 table_part_\_special_/_sub_?_3 Sub_?_1 0 table_part_\_special_/_sub_?_3 sub_\/?_6 1 table_part_\_special_/_sub_?_3 suB_\_3 0 table_part_cap_6 p0 0 table_part_cap_6 p1 1 table_part_cap_6 p2 2 table_part_cap_6 p3 3 table_part_cap_6 p4 4 table_part_sub_1 Part_1 0 table_part_sub_1 Part_1sp0 0 table_part_sub_1 Part_1sp1 1 table_part_sub_1 pArt_2 1 table_part_sub_1 pArt_2sp0 0 table_part_sub_1 pArt_2sp1 1 table_part_sub_1 part_3 2 table_part_sub_1 part_3sp0 0 table_part_sub_1 part_3sp1 1 table_part_sub_1 PART_4 3 table_part_sub_1 PART_4sp0 0 table_part_sub_1 PART_4sp1 1 table_part_sub_2 Part_1 0 table_part_sub_2 pArt_2 1 table_part_sub_2 PART_3 2 table_part_sub_2 Sub_1 0 table_part_sub_2 sUb_2 1 table_part_sub_2 suB_3 0 table_part_sub_2 SUB_4 1 table_part_sub_2 SUB_5 0 table_part_sub_2 sub_6 1 select name from mysql.tablespaces where name like '%table_part%' order by name; name test/table_part_1#p#p0 test/table_part_1#p#p1 test/table_part_1#p#p2 test/table_part_1#p#p3 test/table_part_1#p#p4 test/table_part_2#p#p0 test/table_part_2#p#p1 test/table_part_2#p#p2 test/table_part_2#p#p3 test/table_part_2#p#p4 test/table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 test/table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 test/table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 test/table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 test/table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 test/table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 test/table_part_cap_6#p#p0 test/table_part_cap_6#p#p1 test/table_part_cap_6#p#p2 test/table_part_cap_6#p#p3 test/table_part_cap_6#p#p4 test/table_part_sub_1#p#part_1#sp#part_1sp0 test/table_part_sub_1#p#part_1#sp#part_1sp1 test/table_part_sub_1#p#part_2#sp#part_2sp0 test/table_part_sub_1#p#part_2#sp#part_2sp1 test/table_part_sub_1#p#part_3#sp#part_3sp0 test/table_part_sub_1#p#part_3#sp#part_3sp1 test/table_part_sub_1#p#part_4#sp#part_4sp0 test/table_part_sub_1#p#part_4#sp#part_4sp1 test/table_part_sub_2#p#part_1#sp#sub_1 test/table_part_sub_2#p#part_1#sp#sub_2 test/table_part_sub_2#p#part_2#sp#sub_3 test/table_part_sub_2#p#part_2#sp#sub_4 test/table_part_sub_2#p#part_3#sp#sub_5 test/table_part_sub_2#p#part_3#sp#sub_6 select file_name from mysql.tablespace_files where file_name like '%table_part%' order by file_name; file_name ./test/table_part_1#p#p0.ibd ./test/table_part_1#p#p1.ibd ./test/table_part_1#p#p2.ibd ./test/table_part_1#p#p3.ibd ./test/table_part_1#p#p4.ibd ./test/table_part_2#p#p0.ibd ./test/table_part_2#p#p1.ibd ./test/table_part_2#p#p2.ibd ./test/table_part_2#p#p3.ibd ./test/table_part_2#p#p4.ibd ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@002f_3#sp#sub_@003f@002f_5.ibd ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@002f_3#sp#sub_@005c@002f@003f_6.ibd ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@003f_1#sp#sub_@002f_2.ibd ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@003f_1#sp#sub_@003f_1.ibd ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@005c_2#sp#sub_@003f@005c_4.ibd ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@005c_2#sp#sub_@005c_3.ibd ./test/table_part_cap_6#p#p0.ibd ./test/table_part_cap_6#p#p1.ibd ./test/table_part_cap_6#p#p2.ibd ./test/table_part_cap_6#p#p3.ibd ./test/table_part_cap_6#p#p4.ibd ./test/table_part_sub_1#p#part_1#sp#part_1sp0.ibd ./test/table_part_sub_1#p#part_1#sp#part_1sp1.ibd ./test/table_part_sub_1#p#part_2#sp#part_2sp0.ibd ./test/table_part_sub_1#p#part_2#sp#part_2sp1.ibd ./test/table_part_sub_1#p#part_3#sp#part_3sp0.ibd ./test/table_part_sub_1#p#part_3#sp#part_3sp1.ibd ./test/table_part_sub_1#p#part_4#sp#part_4sp0.ibd ./test/table_part_sub_1#p#part_4#sp#part_4sp1.ibd ./test/table_part_sub_2#p#part_1#sp#sub_1.ibd ./test/table_part_sub_2#p#part_1#sp#sub_2.ibd ./test/table_part_sub_2#p#part_2#sp#sub_3.ibd ./test/table_part_sub_2#p#part_2#sp#sub_4.ibd ./test/table_part_sub_2#p#part_3#sp#sub_5.ibd ./test/table_part_sub_2#p#part_3#sp#sub_6.ibd SET DEBUG='-d,skip_dd_table_access_check'; SET NAMES DEFAULT; # 2. Do DML insert/update/delete on upgraded tables DML on partitioned tables ------------------------- insert into table_part_1 values(15, 1555, "Row - 15", REPEAT('Large Column Data - 15' , 256)); update table_part_1 set name = 'Row - updated' where value > 500; delete from table_part_1 where id = 7; insert into table_part_sub_1 values(15, 1555, "Row - 15", REPEAT('Large Column Data - 15' , 256)); update table_part_sub_1 set name = 'Row - updated' where value > 500; delete from table_part_sub_1 where id = 7; insert into table_part_sub_2 values(15, 1555, "Row - 15", REPEAT('Large Column Data - 15' , 256)); update table_part_sub_2 set name = 'Row - updated' where value > 500; delete from table_part_sub_2 where id = 7; insert into `table_part_\_special_/_sub_?_3` values(15, 1555, "Row - 15", REPEAT('Large Column Data - 15' , 256)); update `table_part_\_special_/_sub_?_3` set name = 'Row - updated' where value > 500; delete from `table_part_\_special_/_sub_?_3` where id = 7; insert into table_part_2 values(15, 1555, "Row - 15", REPEAT('Large Column Data - 15' , 256)); update table_part_2 set name = 'Row - updated' where value > 500; delete from table_part_2 where id = 7; # 3. Do DDL ALTER/DROP on upgraded tables DDL on partitioned tables ------------------------- ALTER TABLE table_part_1 TRUNCATE PARTITION p0; ALTER TABLE table_part_1 COALESCE PARTITION 2; SHOW CREATE TABLE table_part_1; Table Create Table table_part_1 CREATE TABLE `table_part_1` ( `id` int NOT NULL, `value` int DEFAULT NULL, `name` varchar(32) DEFAULT NULL, `data` blob, PRIMARY KEY (`id`), KEY `k1` (`value`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (`id`) PARTITIONS 3 */ ALTER TABLE table_part_sub_1 TRUNCATE PARTITION part_1; ALTER TABLE table_part_sub_2 TRUNCATE PARTITION part_3; CREATE TABLE test_table LIKE table_part_sub_2; ALTER TABLE test_table REMOVE PARTITIONING; insert into test_table values(2, 265, "Row - 2", REPEAT('Large Column Data - 2' , 256)); SELECT id, value, name FROM table_part_sub_2 PARTITION (sub_3) order by id; id value name 2 255 Row - 2 4 455 Row - 4 SELECT id, value, name FROM test_table order by id; id value name 2 265 Row - 2 ALTER TABLE table_part_sub_2 EXCHANGE PARTITION sub_3 WITH TABLE test_table; SELECT id, value, name FROM table_part_sub_2 PARTITION (sub_3) order by id; id value name 2 265 Row - 2 SELECT id, value, name FROM test_table order by id; id value name 2 255 Row - 2 4 455 Row - 4 DROP TABLE test_table; ALTER TABLE table_part_sub_2 RENAME renamed_table;; SHOW CREATE TABLE renamed_table; Table Create Table renamed_table CREATE TABLE `renamed_table` ( `id` int NOT NULL, `value` int NOT NULL, `name` varchar(32) DEFAULT NULL, `data` blob, PRIMARY KEY (`id`,`value`), KEY `k1` (`value`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (`value`) SUBPARTITION BY HASH (`id`) (PARTITION Part_1 VALUES LESS THAN (101) (SUBPARTITION Sub_1 ENGINE = InnoDB, SUBPARTITION sUb_2 ENGINE = InnoDB), PARTITION pArt_2 VALUES LESS THAN (501) (SUBPARTITION suB_3 ENGINE = InnoDB, SUBPARTITION SUB_4 ENGINE = InnoDB), PARTITION PART_3 VALUES LESS THAN MAXVALUE (SUBPARTITION SUB_5 ENGINE = InnoDB, SUBPARTITION sub_6 ENGINE = InnoDB)) */ ALTER TABLE renamed_table RENAME table_part_sub_2;; ALTER TABLE table_part_1 ENGINE = InnoDB;; ALTER TABLE table_part_1 ADD COLUMN new_id int AFTER id; ALTER TABLE table_part_1 REMOVE PARTITIONING; ALTER TABLE table_part_sub_1 ENGINE = InnoDB;; ALTER TABLE table_part_sub_1 ADD COLUMN new_id int AFTER id; ALTER TABLE table_part_sub_1 REMOVE PARTITIONING; ALTER TABLE table_part_sub_2 ENGINE = InnoDB;; ALTER TABLE table_part_sub_2 ADD COLUMN new_id int AFTER id; ALTER TABLE table_part_sub_2 REMOVE PARTITIONING; ALTER TABLE `table_part_\_special_/_sub_?_3` ENGINE = InnoDB;; ALTER TABLE `table_part_\_special_/_sub_?_3` ADD COLUMN new_id int AFTER id; ALTER TABLE `table_part_\_special_/_sub_?_3` REMOVE PARTITIONING; ALTER TABLE table_part_2 ENGINE = InnoDB;; ALTER TABLE table_part_2 ADD COLUMN new_id int AFTER id; ALTER TABLE table_part_2 REMOVE PARTITIONING; # B. Create all the tables again and validate Dropping partitioned tables --------------------------- DROP TABLE table_part_1; DROP TABLE table_part_sub_1; DROP TABLE table_part_sub_2; DROP TABLE `table_part_\_special_/_sub_?_3`; DROP TABLE table_part_2; Creating partitioned tables --------------------------- CREATE TABLE table_part_1( id int primary key, value int, name varchar(32), data BLOB, key k1(value)) partition by hash (id) partitions 5; CREATE TABLE table_part_2( id int primary key, value int, name varchar(32), data BLOB, key k1(value)) partition by hash (id) partitions 5; CREATE TABLE table_part_sub_1( id int, value int, name varchar(32), data BLOB, primary key pk(id, value), key k1(value)) partition by range (value) subpartition by hash (id) subpartitions 2 ( partition Part_1 values less than (101), partition pArt_2 values less than (401), partition part_3 values less than (701), partition PART_4 values less than MAXVALUE); CREATE TABLE table_part_sub_2( id int, value int, name varchar(32), data BLOB, primary key pk(id, value), key k1(value)) partition by range (value) subpartition by hash (id) ( partition Part_1 values less than (101)( subpartition Sub_1, subpartition sUb_2), partition pArt_2 values less than (501)( subpartition suB_3 , subpartition SUB_4), partition PART_3 values less than MAXVALUE( subpartition SUB_5, subpartition sub_6)); CREATE TABLE `table_part_\_special_/_sub_?_3`( id int, value int, name varchar(32), data BLOB, primary key pk(id, value), key k1(value)) partition by range (value) subpartition by hash (id) ( partition `Part_?_1` values less than (201)( subpartition `Sub_?_1`, subpartition `sUb_/_2`), partition `pArt_\_2` values less than (501)( subpartition `suB_\_3`, subpartition `SUB_?\_4`), partition `PART_/_3` values less than MAXVALUE( subpartition `SUB_?/_5`, subpartition `sub_\/?_6`)); Inserting 10 rows to table_part_1 --------------------------------------- insert into table_part_1 VALUES(0, 55, "Row - 0", REPEAT('Large Column Data - 0' , 256)); insert into table_part_1 VALUES(1, 155, "Row - 1", REPEAT('Large Column Data - 1' , 256)); insert into table_part_1 VALUES(2, 255, "Row - 2", REPEAT('Large Column Data - 2' , 256)); insert into table_part_1 VALUES(3, 355, "Row - 3", REPEAT('Large Column Data - 3' , 256)); insert into table_part_1 VALUES(4, 455, "Row - 4", REPEAT('Large Column Data - 4' , 256)); insert into table_part_1 VALUES(5, 555, "Row - 5", REPEAT('Large Column Data - 5' , 256)); insert into table_part_1 VALUES(6, 655, "Row - 6", REPEAT('Large Column Data - 6' , 256)); insert into table_part_1 VALUES(7, 755, "Row - 7", REPEAT('Large Column Data - 7' , 256)); insert into table_part_1 VALUES(8, 855, "Row - 8", REPEAT('Large Column Data - 8' , 256)); insert into table_part_1 VALUES(9, 955, "Row - 9", REPEAT('Large Column Data - 9' , 256)); Inserting 10 rows to table_part_sub_1 --------------------------------------- insert into table_part_sub_1 VALUES(0, 55, "Row - 0", REPEAT('Large Column Data - 0' , 256)); insert into table_part_sub_1 VALUES(1, 155, "Row - 1", REPEAT('Large Column Data - 1' , 256)); insert into table_part_sub_1 VALUES(2, 255, "Row - 2", REPEAT('Large Column Data - 2' , 256)); insert into table_part_sub_1 VALUES(3, 355, "Row - 3", REPEAT('Large Column Data - 3' , 256)); insert into table_part_sub_1 VALUES(4, 455, "Row - 4", REPEAT('Large Column Data - 4' , 256)); insert into table_part_sub_1 VALUES(5, 555, "Row - 5", REPEAT('Large Column Data - 5' , 256)); insert into table_part_sub_1 VALUES(6, 655, "Row - 6", REPEAT('Large Column Data - 6' , 256)); insert into table_part_sub_1 VALUES(7, 755, "Row - 7", REPEAT('Large Column Data - 7' , 256)); insert into table_part_sub_1 VALUES(8, 855, "Row - 8", REPEAT('Large Column Data - 8' , 256)); insert into table_part_sub_1 VALUES(9, 955, "Row - 9", REPEAT('Large Column Data - 9' , 256)); Inserting 10 rows to table_part_sub_2 --------------------------------------- insert into table_part_sub_2 VALUES(0, 55, "Row - 0", REPEAT('Large Column Data - 0' , 256)); insert into table_part_sub_2 VALUES(1, 155, "Row - 1", REPEAT('Large Column Data - 1' , 256)); insert into table_part_sub_2 VALUES(2, 255, "Row - 2", REPEAT('Large Column Data - 2' , 256)); insert into table_part_sub_2 VALUES(3, 355, "Row - 3", REPEAT('Large Column Data - 3' , 256)); insert into table_part_sub_2 VALUES(4, 455, "Row - 4", REPEAT('Large Column Data - 4' , 256)); insert into table_part_sub_2 VALUES(5, 555, "Row - 5", REPEAT('Large Column Data - 5' , 256)); insert into table_part_sub_2 VALUES(6, 655, "Row - 6", REPEAT('Large Column Data - 6' , 256)); insert into table_part_sub_2 VALUES(7, 755, "Row - 7", REPEAT('Large Column Data - 7' , 256)); insert into table_part_sub_2 VALUES(8, 855, "Row - 8", REPEAT('Large Column Data - 8' , 256)); insert into table_part_sub_2 VALUES(9, 955, "Row - 9", REPEAT('Large Column Data - 9' , 256)); Inserting 10 rows to `table_part_\_special_/_sub_?_3` --------------------------------------- insert into `table_part_\_special_/_sub_?_3` VALUES(0, 55, "Row - 0", REPEAT('Large Column Data - 0' , 256)); insert into `table_part_\_special_/_sub_?_3` VALUES(1, 155, "Row - 1", REPEAT('Large Column Data - 1' , 256)); insert into `table_part_\_special_/_sub_?_3` VALUES(2, 255, "Row - 2", REPEAT('Large Column Data - 2' , 256)); insert into `table_part_\_special_/_sub_?_3` VALUES(3, 355, "Row - 3", REPEAT('Large Column Data - 3' , 256)); insert into `table_part_\_special_/_sub_?_3` VALUES(4, 455, "Row - 4", REPEAT('Large Column Data - 4' , 256)); insert into `table_part_\_special_/_sub_?_3` VALUES(5, 555, "Row - 5", REPEAT('Large Column Data - 5' , 256)); insert into `table_part_\_special_/_sub_?_3` VALUES(6, 655, "Row - 6", REPEAT('Large Column Data - 6' , 256)); insert into `table_part_\_special_/_sub_?_3` VALUES(7, 755, "Row - 7", REPEAT('Large Column Data - 7' , 256)); insert into `table_part_\_special_/_sub_?_3` VALUES(8, 855, "Row - 8", REPEAT('Large Column Data - 8' , 256)); insert into `table_part_\_special_/_sub_?_3` VALUES(9, 955, "Row - 9", REPEAT('Large Column Data - 9' , 256)); Inserting 10 rows to table_part_2 --------------------------------------- insert into table_part_2 VALUES(0, 55, "Row - 0", REPEAT('Large Column Data - 0' , 256)); insert into table_part_2 VALUES(1, 155, "Row - 1", REPEAT('Large Column Data - 1' , 256)); insert into table_part_2 VALUES(2, 255, "Row - 2", REPEAT('Large Column Data - 2' , 256)); insert into table_part_2 VALUES(3, 355, "Row - 3", REPEAT('Large Column Data - 3' , 256)); insert into table_part_2 VALUES(4, 455, "Row - 4", REPEAT('Large Column Data - 4' , 256)); insert into table_part_2 VALUES(5, 555, "Row - 5", REPEAT('Large Column Data - 5' , 256)); insert into table_part_2 VALUES(6, 655, "Row - 6", REPEAT('Large Column Data - 6' , 256)); insert into table_part_2 VALUES(7, 755, "Row - 7", REPEAT('Large Column Data - 7' , 256)); insert into table_part_2 VALUES(8, 855, "Row - 8", REPEAT('Large Column Data - 8' , 256)); insert into table_part_2 VALUES(9, 955, "Row - 9", REPEAT('Large Column Data - 9' , 256)); select id, value, name from table_part_sub_2 partition (sub_1) order by id; id value name 0 55 Row - 0 select id, value, name from table_part_sub_2 partition (sub_2) order by id; id value name select id, value, name from table_part_sub_2 partition (sub_3) order by id; id value name 2 255 Row - 2 4 455 Row - 4 select id, value, name from table_part_sub_2 partition (sub_4) order by id; id value name 1 155 Row - 1 3 355 Row - 3 select id, value, name from table_part_sub_2 partition (sub_5) order by id; id value name 6 655 Row - 6 8 855 Row - 8 select id, value, name from table_part_sub_2 partition (sub_6) order by id; id value name 5 555 Row - 5 7 755 Row - 7 9 955 Row - 9 # 1. Check table metadata and data Checking partitioned tables --------------------------- SET NAMES utf8mb4 COLLATE utf8mb4_0900_as_cs; CHECK TABLE table_part_1; Table Op Msg_type Msg_text test.table_part_1 check status OK SHOW CREATE TABLE table_part_1; Table Create Table table_part_1 CREATE TABLE `table_part_1` ( `id` int NOT NULL, `value` int DEFAULT NULL, `name` varchar(32) DEFAULT NULL, `data` blob, PRIMARY KEY (`id`), KEY `k1` (`value`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci /*!50100 PARTITION BY HASH (`id`) PARTITIONS 5 */ SELECT id, value, name, SUBSTRING(data, 1024, 32) FROM table_part_1 order by id; id value name SUBSTRING(data, 1024, 32) 0 55 Row - 0 ta - 0Large Column Data - 0Large 1 155 Row - 1 ta - 1Large Column Data - 1Large 2 255 Row - 2 ta - 2Large Column Data - 2Large 3 355 Row - 3 ta - 3Large Column Data - 3Large 4 455 Row - 4 ta - 4Large Column Data - 4Large 5 555 Row - 5 ta - 5Large Column Data - 5Large 6 655 Row - 6 ta - 6Large Column Data - 6Large 7 755 Row - 7 ta - 7Large Column Data - 7Large 8 855 Row - 8 ta - 8Large Column Data - 8Large 9 955 Row - 9 ta - 9Large Column Data - 9Large CHECK TABLE table_part_sub_1; Table Op Msg_type Msg_text test.table_part_sub_1 check status OK SHOW CREATE TABLE table_part_sub_1; Table Create Table table_part_sub_1 CREATE TABLE `table_part_sub_1` ( `id` int NOT NULL, `value` int NOT NULL, `name` varchar(32) DEFAULT NULL, `data` blob, PRIMARY KEY (`id`,`value`), KEY `k1` (`value`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci /*!50100 PARTITION BY RANGE (`value`) SUBPARTITION BY HASH (`id`) SUBPARTITIONS 2 (PARTITION Part_1 VALUES LESS THAN (101) ENGINE = InnoDB, PARTITION pArt_2 VALUES LESS THAN (401) ENGINE = InnoDB, PARTITION part_3 VALUES LESS THAN (701) ENGINE = InnoDB, PARTITION PART_4 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */ SELECT id, value, name, SUBSTRING(data, 1024, 32) FROM table_part_sub_1 order by id; id value name SUBSTRING(data, 1024, 32) 0 55 Row - 0 ta - 0Large Column Data - 0Large 1 155 Row - 1 ta - 1Large Column Data - 1Large 2 255 Row - 2 ta - 2Large Column Data - 2Large 3 355 Row - 3 ta - 3Large Column Data - 3Large 4 455 Row - 4 ta - 4Large Column Data - 4Large 5 555 Row - 5 ta - 5Large Column Data - 5Large 6 655 Row - 6 ta - 6Large Column Data - 6Large 7 755 Row - 7 ta - 7Large Column Data - 7Large 8 855 Row - 8 ta - 8Large Column Data - 8Large 9 955 Row - 9 ta - 9Large Column Data - 9Large CHECK TABLE table_part_sub_2; Table Op Msg_type Msg_text test.table_part_sub_2 check status OK SHOW CREATE TABLE table_part_sub_2; Table Create Table table_part_sub_2 CREATE TABLE `table_part_sub_2` ( `id` int NOT NULL, `value` int NOT NULL, `name` varchar(32) DEFAULT NULL, `data` blob, PRIMARY KEY (`id`,`value`), KEY `k1` (`value`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci /*!50100 PARTITION BY RANGE (`value`) SUBPARTITION BY HASH (`id`) (PARTITION Part_1 VALUES LESS THAN (101) (SUBPARTITION Sub_1 ENGINE = InnoDB, SUBPARTITION sUb_2 ENGINE = InnoDB), PARTITION pArt_2 VALUES LESS THAN (501) (SUBPARTITION suB_3 ENGINE = InnoDB, SUBPARTITION SUB_4 ENGINE = InnoDB), PARTITION PART_3 VALUES LESS THAN MAXVALUE (SUBPARTITION SUB_5 ENGINE = InnoDB, SUBPARTITION sub_6 ENGINE = InnoDB)) */ SELECT id, value, name, SUBSTRING(data, 1024, 32) FROM table_part_sub_2 order by id; id value name SUBSTRING(data, 1024, 32) 0 55 Row - 0 ta - 0Large Column Data - 0Large 1 155 Row - 1 ta - 1Large Column Data - 1Large 2 255 Row - 2 ta - 2Large Column Data - 2Large 3 355 Row - 3 ta - 3Large Column Data - 3Large 4 455 Row - 4 ta - 4Large Column Data - 4Large 5 555 Row - 5 ta - 5Large Column Data - 5Large 6 655 Row - 6 ta - 6Large Column Data - 6Large 7 755 Row - 7 ta - 7Large Column Data - 7Large 8 855 Row - 8 ta - 8Large Column Data - 8Large 9 955 Row - 9 ta - 9Large Column Data - 9Large CHECK TABLE `table_part_\_special_/_sub_?_3`; Table Op Msg_type Msg_text test.table_part_\_special_/_sub_?_3 check status OK SHOW CREATE TABLE `table_part_\_special_/_sub_?_3`; Table Create Table table_part_\_special_/_sub_?_3 CREATE TABLE `table_part_\_special_/_sub_?_3` ( `id` int NOT NULL, `value` int NOT NULL, `name` varchar(32) DEFAULT NULL, `data` blob, PRIMARY KEY (`id`,`value`), KEY `k1` (`value`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci /*!50100 PARTITION BY RANGE (`value`) SUBPARTITION BY HASH (`id`) (PARTITION `Part_?_1` VALUES LESS THAN (201) (SUBPARTITION `Sub_?_1` ENGINE = InnoDB, SUBPARTITION `sUb_/_2` ENGINE = InnoDB), PARTITION `pArt_\_2` VALUES LESS THAN (501) (SUBPARTITION `suB_\_3` ENGINE = InnoDB, SUBPARTITION `SUB_?\_4` ENGINE = InnoDB), PARTITION `PART_/_3` VALUES LESS THAN MAXVALUE (SUBPARTITION `SUB_?/_5` ENGINE = InnoDB, SUBPARTITION `sub_\/?_6` ENGINE = InnoDB)) */ SELECT id, value, name, SUBSTRING(data, 1024, 32) FROM `table_part_\_special_/_sub_?_3` order by id; id value name SUBSTRING(data, 1024, 32) 0 55 Row - 0 ta - 0Large Column Data - 0Large 1 155 Row - 1 ta - 1Large Column Data - 1Large 2 255 Row - 2 ta - 2Large Column Data - 2Large 3 355 Row - 3 ta - 3Large Column Data - 3Large 4 455 Row - 4 ta - 4Large Column Data - 4Large 5 555 Row - 5 ta - 5Large Column Data - 5Large 6 655 Row - 6 ta - 6Large Column Data - 6Large 7 755 Row - 7 ta - 7Large Column Data - 7Large 8 855 Row - 8 ta - 8Large Column Data - 8Large 9 955 Row - 9 ta - 9Large Column Data - 9Large CHECK TABLE table_part_2; Table Op Msg_type Msg_text test.table_part_2 check status OK SHOW CREATE TABLE table_part_2; Table Create Table table_part_2 CREATE TABLE `table_part_2` ( `id` int NOT NULL, `value` int DEFAULT NULL, `name` varchar(32) DEFAULT NULL, `data` blob, PRIMARY KEY (`id`), KEY `k1` (`value`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci /*!50100 PARTITION BY HASH (`id`) PARTITIONS 5 */ SELECT id, value, name, SUBSTRING(data, 1024, 32) FROM table_part_2 order by id; id value name SUBSTRING(data, 1024, 32) 0 55 Row - 0 ta - 0Large Column Data - 0Large 1 155 Row - 1 ta - 1Large Column Data - 1Large 2 255 Row - 2 ta - 2Large Column Data - 2Large 3 355 Row - 3 ta - 3Large Column Data - 3Large 4 455 Row - 4 ta - 4Large Column Data - 4Large 5 555 Row - 5 ta - 5Large Column Data - 5Large 6 655 Row - 6 ta - 6Large Column Data - 6Large 7 755 Row - 7 ta - 7Large Column Data - 7Large 8 855 Row - 8 ta - 8Large Column Data - 8Large 9 955 Row - 9 ta - 9Large Column Data - 9Large Checking IFS views ------------------ select table_schema, table_name from information_schema.tables where table_name LIKE '%table_part%' order by table_schema, table_name; TABLE_SCHEMA TABLE_NAME test table_part_1 test table_part_2 test table_part_\_special_/_sub_?_3 test table_part_cap_6 test table_part_nopart_cap_7 test table_part_sub_1 test table_part_sub_2 select name, space_type from information_schema.innodb_tables where name LIKE '%table_part%' order by name, space_type; name space_type test/table_part_1#p#p0 Single test/table_part_1#p#p1 Single test/table_part_1#p#p2 Single test/table_part_1#p#p3 Single test/table_part_1#p#p4 Single test/table_part_2#p#p0 Single test/table_part_2#p#p1 Single test/table_part_2#p#p2 Single test/table_part_2#p#p3 Single test/table_part_2#p#p4 Single test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@002f_3#sp#sub_@003f@002f_5 Single test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@002f_3#sp#sub_@005c@002f@003f_6 Single test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@003f_1#sp#sub_@002f_2 Single test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@003f_1#sp#sub_@003f_1 Single test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@005c_2#sp#sub_@003f@005c_4 Single test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@005c_2#sp#sub_@005c_3 Single test/table_part_cap_6#p#p0 Single test/table_part_cap_6#p#p1 Single test/table_part_cap_6#p#p2 Single test/table_part_cap_6#p#p3 Single test/table_part_cap_6#p#p4 Single test/table_part_nopart_cap_7 General test/table_part_sub_1#p#part_1#sp#part_1sp0 Single test/table_part_sub_1#p#part_1#sp#part_1sp1 Single test/table_part_sub_1#p#part_2#sp#part_2sp0 Single test/table_part_sub_1#p#part_2#sp#part_2sp1 Single test/table_part_sub_1#p#part_3#sp#part_3sp0 Single test/table_part_sub_1#p#part_3#sp#part_3sp1 Single test/table_part_sub_1#p#part_4#sp#part_4sp0 Single test/table_part_sub_1#p#part_4#sp#part_4sp1 Single test/table_part_sub_2#p#part_1#sp#sub_1 Single test/table_part_sub_2#p#part_1#sp#sub_2 Single test/table_part_sub_2#p#part_2#sp#sub_3 Single test/table_part_sub_2#p#part_2#sp#sub_4 Single test/table_part_sub_2#p#part_3#sp#sub_5 Single test/table_part_sub_2#p#part_3#sp#sub_6 Single select table_schema, table_name, partition_name, subpartition_name from information_schema.partitions where table_name LIKE '%table_part%' order by table_schema, table_name, partition_name, subpartition_name; TABLE_SCHEMA TABLE_NAME PARTITION_NAME SUBPARTITION_NAME test table_part_1 p0 NULL test table_part_1 p1 NULL test table_part_1 p2 NULL test table_part_1 p3 NULL test table_part_1 p4 NULL test table_part_2 p0 NULL test table_part_2 p1 NULL test table_part_2 p2 NULL test table_part_2 p3 NULL test table_part_2 p4 NULL test table_part_\_special_/_sub_?_3 PART_/_3 SUB_?/_5 test table_part_\_special_/_sub_?_3 PART_/_3 sub_\/?_6 test table_part_\_special_/_sub_?_3 Part_?_1 sUb_/_2 test table_part_\_special_/_sub_?_3 Part_?_1 Sub_?_1 test table_part_\_special_/_sub_?_3 pArt_\_2 SUB_?\_4 test table_part_\_special_/_sub_?_3 pArt_\_2 suB_\_3 test table_part_cap_6 p0 NULL test table_part_cap_6 p1 NULL test table_part_cap_6 p2 NULL test table_part_cap_6 p3 NULL test table_part_cap_6 p4 NULL test table_part_nopart_cap_7 NULL NULL test table_part_sub_1 Part_1 Part_1sp0 test table_part_sub_1 Part_1 Part_1sp1 test table_part_sub_1 pArt_2 pArt_2sp0 test table_part_sub_1 pArt_2 pArt_2sp1 test table_part_sub_1 part_3 part_3sp0 test table_part_sub_1 part_3 part_3sp1 test table_part_sub_1 PART_4 PART_4sp0 test table_part_sub_1 PART_4 PART_4sp1 test table_part_sub_2 Part_1 Sub_1 test table_part_sub_2 Part_1 sUb_2 test table_part_sub_2 pArt_2 suB_3 test table_part_sub_2 pArt_2 SUB_4 test table_part_sub_2 PART_3 SUB_5 test table_part_sub_2 PART_3 sub_6 select name from information_schema.innodb_tablespaces where name LIKE '%table_part%' order by name; name test/table_part_1#p#p0 test/table_part_1#p#p1 test/table_part_1#p#p2 test/table_part_1#p#p3 test/table_part_1#p#p4 test/table_part_2#p#p0 test/table_part_2#p#p1 test/table_part_2#p#p2 test/table_part_2#p#p3 test/table_part_2#p#p4 test/table_part_cap_6#p#p0 test/table_part_cap_6#p#p1 test/table_part_cap_6#p#p2 test/table_part_cap_6#p#p3 test/table_part_cap_6#p#p4 test/table_part_sub_1#p#part_1#sp#part_1sp0 test/table_part_sub_1#p#part_1#sp#part_1sp1 test/table_part_sub_1#p#part_2#sp#part_2sp0 test/table_part_sub_1#p#part_2#sp#part_2sp1 test/table_part_sub_1#p#part_3#sp#part_3sp0 test/table_part_sub_1#p#part_3#sp#part_3sp1 test/table_part_sub_1#p#part_4#sp#part_4sp0 test/table_part_sub_1#p#part_4#sp#part_4sp1 test/table_part_sub_2#p#part_1#sp#sub_1 test/table_part_sub_2#p#part_1#sp#sub_2 test/table_part_sub_2#p#part_2#sp#sub_3 test/table_part_sub_2#p#part_2#sp#sub_4 test/table_part_sub_2#p#part_3#sp#sub_5 test/table_part_sub_2#p#part_3#sp#sub_6 test/table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 test/table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 test/table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 test/table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 test/table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 test/table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 select file_type, status, file_name, tablespace_name from information_schema.files where file_name LIKE '%table_part%' order by file_type, status, file_name, tablespace_name; FILE_TYPE STATUS FILE_NAME TABLESPACE_NAME TABLESPACE NORMAL ./test/table_part_1#p#p0.ibd test/table_part_1#p#p0 TABLESPACE NORMAL ./test/table_part_1#p#p1.ibd test/table_part_1#p#p1 TABLESPACE NORMAL ./test/table_part_1#p#p2.ibd test/table_part_1#p#p2 TABLESPACE NORMAL ./test/table_part_1#p#p3.ibd test/table_part_1#p#p3 TABLESPACE NORMAL ./test/table_part_1#p#p4.ibd test/table_part_1#p#p4 TABLESPACE NORMAL ./test/table_part_2#p#p0.ibd test/table_part_2#p#p0 TABLESPACE NORMAL ./test/table_part_2#p#p1.ibd test/table_part_2#p#p1 TABLESPACE NORMAL ./test/table_part_2#p#p2.ibd test/table_part_2#p#p2 TABLESPACE NORMAL ./test/table_part_2#p#p3.ibd test/table_part_2#p#p3 TABLESPACE NORMAL ./test/table_part_2#p#p4.ibd test/table_part_2#p#p4 TABLESPACE NORMAL ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@002f_3#sp#sub_@003f@002f_5.ibd test/table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 TABLESPACE NORMAL ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@002f_3#sp#sub_@005c@002f@003f_6.ibd test/table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 TABLESPACE NORMAL ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@003f_1#sp#sub_@002f_2.ibd test/table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 TABLESPACE NORMAL ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@003f_1#sp#sub_@003f_1.ibd test/table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 TABLESPACE NORMAL ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@005c_2#sp#sub_@003f@005c_4.ibd test/table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 TABLESPACE NORMAL ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@005c_2#sp#sub_@005c_3.ibd test/table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 TABLESPACE NORMAL ./test/table_part_cap_6#p#p0.ibd test/table_part_cap_6#p#p0 TABLESPACE NORMAL ./test/table_part_cap_6#p#p1.ibd test/table_part_cap_6#p#p1 TABLESPACE NORMAL ./test/table_part_cap_6#p#p2.ibd test/table_part_cap_6#p#p2 TABLESPACE NORMAL ./test/table_part_cap_6#p#p3.ibd test/table_part_cap_6#p#p3 TABLESPACE NORMAL ./test/table_part_cap_6#p#p4.ibd test/table_part_cap_6#p#p4 TABLESPACE NORMAL ./test/table_part_sub_1#p#part_1#sp#part_1sp0.ibd test/table_part_sub_1#p#part_1#sp#part_1sp0 TABLESPACE NORMAL ./test/table_part_sub_1#p#part_1#sp#part_1sp1.ibd test/table_part_sub_1#p#part_1#sp#part_1sp1 TABLESPACE NORMAL ./test/table_part_sub_1#p#part_2#sp#part_2sp0.ibd test/table_part_sub_1#p#part_2#sp#part_2sp0 TABLESPACE NORMAL ./test/table_part_sub_1#p#part_2#sp#part_2sp1.ibd test/table_part_sub_1#p#part_2#sp#part_2sp1 TABLESPACE NORMAL ./test/table_part_sub_1#p#part_3#sp#part_3sp0.ibd test/table_part_sub_1#p#part_3#sp#part_3sp0 TABLESPACE NORMAL ./test/table_part_sub_1#p#part_3#sp#part_3sp1.ibd test/table_part_sub_1#p#part_3#sp#part_3sp1 TABLESPACE NORMAL ./test/table_part_sub_1#p#part_4#sp#part_4sp0.ibd test/table_part_sub_1#p#part_4#sp#part_4sp0 TABLESPACE NORMAL ./test/table_part_sub_1#p#part_4#sp#part_4sp1.ibd test/table_part_sub_1#p#part_4#sp#part_4sp1 TABLESPACE NORMAL ./test/table_part_sub_2#p#part_1#sp#sub_1.ibd test/table_part_sub_2#p#part_1#sp#sub_1 TABLESPACE NORMAL ./test/table_part_sub_2#p#part_1#sp#sub_2.ibd test/table_part_sub_2#p#part_1#sp#sub_2 TABLESPACE NORMAL ./test/table_part_sub_2#p#part_2#sp#sub_3.ibd test/table_part_sub_2#p#part_2#sp#sub_3 TABLESPACE NORMAL ./test/table_part_sub_2#p#part_2#sp#sub_4.ibd test/table_part_sub_2#p#part_2#sp#sub_4 TABLESPACE NORMAL ./test/table_part_sub_2#p#part_3#sp#sub_5.ibd test/table_part_sub_2#p#part_3#sp#sub_5 TABLESPACE NORMAL ./test/table_part_sub_2#p#part_3#sp#sub_6.ibd test/table_part_sub_2#p#part_3#sp#sub_6 Checking Innodb stat tables --------------------------- select database_name, table_name from mysql.innodb_table_stats where table_name like '%table_part%' order by database_name, table_name; database_name table_name test table_part_1#p#p0 test table_part_1#p#p1 test table_part_1#p#p2 test table_part_1#p#p3 test table_part_1#p#p4 test table_part_2#p#p0 test table_part_2#p#p1 test table_part_2#p#p2 test table_part_2#p#p3 test table_part_2#p#p4 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 test table_part_cap_6#p#p0 test table_part_cap_6#p#p1 test table_part_cap_6#p#p2 test table_part_cap_6#p#p3 test table_part_cap_6#p#p4 test table_part_nopart_cap_7 test table_part_sub_1#p#part_1#sp#part_1sp0 test table_part_sub_1#p#part_1#sp#part_1sp1 test table_part_sub_1#p#part_2#sp#part_2sp0 test table_part_sub_1#p#part_2#sp#part_2sp1 test table_part_sub_1#p#part_3#sp#part_3sp0 test table_part_sub_1#p#part_3#sp#part_3sp1 test table_part_sub_1#p#part_4#sp#part_4sp0 test table_part_sub_1#p#part_4#sp#part_4sp1 test table_part_sub_2#p#part_1#sp#sub_1 test table_part_sub_2#p#part_1#sp#sub_2 test table_part_sub_2#p#part_2#sp#sub_3 test table_part_sub_2#p#part_2#sp#sub_4 test table_part_sub_2#p#part_3#sp#sub_5 test table_part_sub_2#p#part_3#sp#sub_6 select database_name, table_name, index_name, stat_name from mysql.innodb_index_stats where table_name like '%table_part%' order by database_name, table_name, index_name, stat_name; database_name table_name index_name stat_name test table_part_1#p#p0 PRIMARY n_diff_pfx01 test table_part_1#p#p0 PRIMARY n_leaf_pages test table_part_1#p#p0 PRIMARY size test table_part_1#p#p0 k1 n_diff_pfx01 test table_part_1#p#p0 k1 n_diff_pfx02 test table_part_1#p#p0 k1 n_leaf_pages test table_part_1#p#p0 k1 size test table_part_1#p#p1 PRIMARY n_diff_pfx01 test table_part_1#p#p1 PRIMARY n_leaf_pages test table_part_1#p#p1 PRIMARY size test table_part_1#p#p1 k1 n_diff_pfx01 test table_part_1#p#p1 k1 n_diff_pfx02 test table_part_1#p#p1 k1 n_leaf_pages test table_part_1#p#p1 k1 size test table_part_1#p#p2 PRIMARY n_diff_pfx01 test table_part_1#p#p2 PRIMARY n_leaf_pages test table_part_1#p#p2 PRIMARY size test table_part_1#p#p2 k1 n_diff_pfx01 test table_part_1#p#p2 k1 n_diff_pfx02 test table_part_1#p#p2 k1 n_leaf_pages test table_part_1#p#p2 k1 size test table_part_1#p#p3 PRIMARY n_diff_pfx01 test table_part_1#p#p3 PRIMARY n_leaf_pages test table_part_1#p#p3 PRIMARY size test table_part_1#p#p3 k1 n_diff_pfx01 test table_part_1#p#p3 k1 n_diff_pfx02 test table_part_1#p#p3 k1 n_leaf_pages test table_part_1#p#p3 k1 size test table_part_1#p#p4 PRIMARY n_diff_pfx01 test table_part_1#p#p4 PRIMARY n_leaf_pages test table_part_1#p#p4 PRIMARY size test table_part_1#p#p4 k1 n_diff_pfx01 test table_part_1#p#p4 k1 n_diff_pfx02 test table_part_1#p#p4 k1 n_leaf_pages test table_part_1#p#p4 k1 size test table_part_2#p#p0 PRIMARY n_diff_pfx01 test table_part_2#p#p0 PRIMARY n_leaf_pages test table_part_2#p#p0 PRIMARY size test table_part_2#p#p0 k1 n_diff_pfx01 test table_part_2#p#p0 k1 n_diff_pfx02 test table_part_2#p#p0 k1 n_leaf_pages test table_part_2#p#p0 k1 size test table_part_2#p#p1 PRIMARY n_diff_pfx01 test table_part_2#p#p1 PRIMARY n_leaf_pages test table_part_2#p#p1 PRIMARY size test table_part_2#p#p1 k1 n_diff_pfx01 test table_part_2#p#p1 k1 n_diff_pfx02 test table_part_2#p#p1 k1 n_leaf_pages test table_part_2#p#p1 k1 size test table_part_2#p#p2 PRIMARY n_diff_pfx01 test table_part_2#p#p2 PRIMARY n_leaf_pages test table_part_2#p#p2 PRIMARY size test table_part_2#p#p2 k1 n_diff_pfx01 test table_part_2#p#p2 k1 n_diff_pfx02 test table_part_2#p#p2 k1 n_leaf_pages test table_part_2#p#p2 k1 size test table_part_2#p#p3 PRIMARY n_diff_pfx01 test table_part_2#p#p3 PRIMARY n_leaf_pages test table_part_2#p#p3 PRIMARY size test table_part_2#p#p3 k1 n_diff_pfx01 test table_part_2#p#p3 k1 n_diff_pfx02 test table_part_2#p#p3 k1 n_leaf_pages test table_part_2#p#p3 k1 size test table_part_2#p#p4 PRIMARY n_diff_pfx01 test table_part_2#p#p4 PRIMARY n_leaf_pages test table_part_2#p#p4 PRIMARY size test table_part_2#p#p4 k1 n_diff_pfx01 test table_part_2#p#p4 k1 n_diff_pfx02 test table_part_2#p#p4 k1 n_leaf_pages test table_part_2#p#p4 k1 size test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 PRIMARY n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 PRIMARY n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 PRIMARY n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 PRIMARY size test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 k1 n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 k1 n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 k1 n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 k1 size test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 PRIMARY n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 PRIMARY n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 PRIMARY n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 PRIMARY size test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 k1 n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 k1 n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 k1 n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 k1 size test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 PRIMARY n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 PRIMARY n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 PRIMARY n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 PRIMARY size test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 k1 n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 k1 n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 k1 n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 k1 size test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 PRIMARY n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 PRIMARY n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 PRIMARY n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 PRIMARY size test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 k1 n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 k1 n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 k1 n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 k1 size test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 PRIMARY n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 PRIMARY n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 PRIMARY n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 PRIMARY size test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 k1 n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 k1 n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 k1 n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 k1 size test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 PRIMARY n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 PRIMARY n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 PRIMARY n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 PRIMARY size test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 k1 n_diff_pfx01 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 k1 n_diff_pfx02 test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 k1 n_leaf_pages test table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 k1 size test table_part_cap_6#p#p0 PRIMARY n_diff_pfx01 test table_part_cap_6#p#p0 PRIMARY n_leaf_pages test table_part_cap_6#p#p0 PRIMARY size test table_part_cap_6#p#p0 k1 n_diff_pfx01 test table_part_cap_6#p#p0 k1 n_diff_pfx02 test table_part_cap_6#p#p0 k1 n_leaf_pages test table_part_cap_6#p#p0 k1 size test table_part_cap_6#p#p1 PRIMARY n_diff_pfx01 test table_part_cap_6#p#p1 PRIMARY n_leaf_pages test table_part_cap_6#p#p1 PRIMARY size test table_part_cap_6#p#p1 k1 n_diff_pfx01 test table_part_cap_6#p#p1 k1 n_diff_pfx02 test table_part_cap_6#p#p1 k1 n_leaf_pages test table_part_cap_6#p#p1 k1 size test table_part_cap_6#p#p2 PRIMARY n_diff_pfx01 test table_part_cap_6#p#p2 PRIMARY n_leaf_pages test table_part_cap_6#p#p2 PRIMARY size test table_part_cap_6#p#p2 k1 n_diff_pfx01 test table_part_cap_6#p#p2 k1 n_diff_pfx02 test table_part_cap_6#p#p2 k1 n_leaf_pages test table_part_cap_6#p#p2 k1 size test table_part_cap_6#p#p3 PRIMARY n_diff_pfx01 test table_part_cap_6#p#p3 PRIMARY n_leaf_pages test table_part_cap_6#p#p3 PRIMARY size test table_part_cap_6#p#p3 k1 n_diff_pfx01 test table_part_cap_6#p#p3 k1 n_diff_pfx02 test table_part_cap_6#p#p3 k1 n_leaf_pages test table_part_cap_6#p#p3 k1 size test table_part_cap_6#p#p4 PRIMARY n_diff_pfx01 test table_part_cap_6#p#p4 PRIMARY n_leaf_pages test table_part_cap_6#p#p4 PRIMARY size test table_part_cap_6#p#p4 k1 n_diff_pfx01 test table_part_cap_6#p#p4 k1 n_diff_pfx02 test table_part_cap_6#p#p4 k1 n_leaf_pages test table_part_cap_6#p#p4 k1 size test table_part_nopart_cap_7 PRIMARY n_diff_pfx01 test table_part_nopart_cap_7 PRIMARY n_leaf_pages test table_part_nopart_cap_7 PRIMARY size test table_part_nopart_cap_7 k1 n_diff_pfx01 test table_part_nopart_cap_7 k1 n_diff_pfx02 test table_part_nopart_cap_7 k1 n_leaf_pages test table_part_nopart_cap_7 k1 size test table_part_sub_1#p#part_1#sp#part_1sp0 PRIMARY n_diff_pfx01 test table_part_sub_1#p#part_1#sp#part_1sp0 PRIMARY n_diff_pfx02 test table_part_sub_1#p#part_1#sp#part_1sp0 PRIMARY n_leaf_pages test table_part_sub_1#p#part_1#sp#part_1sp0 PRIMARY size test table_part_sub_1#p#part_1#sp#part_1sp0 k1 n_diff_pfx01 test table_part_sub_1#p#part_1#sp#part_1sp0 k1 n_diff_pfx02 test table_part_sub_1#p#part_1#sp#part_1sp0 k1 n_leaf_pages test table_part_sub_1#p#part_1#sp#part_1sp0 k1 size test table_part_sub_1#p#part_1#sp#part_1sp1 PRIMARY n_diff_pfx01 test table_part_sub_1#p#part_1#sp#part_1sp1 PRIMARY n_diff_pfx02 test table_part_sub_1#p#part_1#sp#part_1sp1 PRIMARY n_leaf_pages test table_part_sub_1#p#part_1#sp#part_1sp1 PRIMARY size test table_part_sub_1#p#part_1#sp#part_1sp1 k1 n_diff_pfx01 test table_part_sub_1#p#part_1#sp#part_1sp1 k1 n_diff_pfx02 test table_part_sub_1#p#part_1#sp#part_1sp1 k1 n_leaf_pages test table_part_sub_1#p#part_1#sp#part_1sp1 k1 size test table_part_sub_1#p#part_2#sp#part_2sp0 PRIMARY n_diff_pfx01 test table_part_sub_1#p#part_2#sp#part_2sp0 PRIMARY n_diff_pfx02 test table_part_sub_1#p#part_2#sp#part_2sp0 PRIMARY n_leaf_pages test table_part_sub_1#p#part_2#sp#part_2sp0 PRIMARY size test table_part_sub_1#p#part_2#sp#part_2sp0 k1 n_diff_pfx01 test table_part_sub_1#p#part_2#sp#part_2sp0 k1 n_diff_pfx02 test table_part_sub_1#p#part_2#sp#part_2sp0 k1 n_leaf_pages test table_part_sub_1#p#part_2#sp#part_2sp0 k1 size test table_part_sub_1#p#part_2#sp#part_2sp1 PRIMARY n_diff_pfx01 test table_part_sub_1#p#part_2#sp#part_2sp1 PRIMARY n_diff_pfx02 test table_part_sub_1#p#part_2#sp#part_2sp1 PRIMARY n_leaf_pages test table_part_sub_1#p#part_2#sp#part_2sp1 PRIMARY size test table_part_sub_1#p#part_2#sp#part_2sp1 k1 n_diff_pfx01 test table_part_sub_1#p#part_2#sp#part_2sp1 k1 n_diff_pfx02 test table_part_sub_1#p#part_2#sp#part_2sp1 k1 n_leaf_pages test table_part_sub_1#p#part_2#sp#part_2sp1 k1 size test table_part_sub_1#p#part_3#sp#part_3sp0 PRIMARY n_diff_pfx01 test table_part_sub_1#p#part_3#sp#part_3sp0 PRIMARY n_diff_pfx02 test table_part_sub_1#p#part_3#sp#part_3sp0 PRIMARY n_leaf_pages test table_part_sub_1#p#part_3#sp#part_3sp0 PRIMARY size test table_part_sub_1#p#part_3#sp#part_3sp0 k1 n_diff_pfx01 test table_part_sub_1#p#part_3#sp#part_3sp0 k1 n_diff_pfx02 test table_part_sub_1#p#part_3#sp#part_3sp0 k1 n_leaf_pages test table_part_sub_1#p#part_3#sp#part_3sp0 k1 size test table_part_sub_1#p#part_3#sp#part_3sp1 PRIMARY n_diff_pfx01 test table_part_sub_1#p#part_3#sp#part_3sp1 PRIMARY n_diff_pfx02 test table_part_sub_1#p#part_3#sp#part_3sp1 PRIMARY n_leaf_pages test table_part_sub_1#p#part_3#sp#part_3sp1 PRIMARY size test table_part_sub_1#p#part_3#sp#part_3sp1 k1 n_diff_pfx01 test table_part_sub_1#p#part_3#sp#part_3sp1 k1 n_diff_pfx02 test table_part_sub_1#p#part_3#sp#part_3sp1 k1 n_leaf_pages test table_part_sub_1#p#part_3#sp#part_3sp1 k1 size test table_part_sub_1#p#part_4#sp#part_4sp0 PRIMARY n_diff_pfx01 test table_part_sub_1#p#part_4#sp#part_4sp0 PRIMARY n_diff_pfx02 test table_part_sub_1#p#part_4#sp#part_4sp0 PRIMARY n_leaf_pages test table_part_sub_1#p#part_4#sp#part_4sp0 PRIMARY size test table_part_sub_1#p#part_4#sp#part_4sp0 k1 n_diff_pfx01 test table_part_sub_1#p#part_4#sp#part_4sp0 k1 n_diff_pfx02 test table_part_sub_1#p#part_4#sp#part_4sp0 k1 n_leaf_pages test table_part_sub_1#p#part_4#sp#part_4sp0 k1 size test table_part_sub_1#p#part_4#sp#part_4sp1 PRIMARY n_diff_pfx01 test table_part_sub_1#p#part_4#sp#part_4sp1 PRIMARY n_diff_pfx02 test table_part_sub_1#p#part_4#sp#part_4sp1 PRIMARY n_leaf_pages test table_part_sub_1#p#part_4#sp#part_4sp1 PRIMARY size test table_part_sub_1#p#part_4#sp#part_4sp1 k1 n_diff_pfx01 test table_part_sub_1#p#part_4#sp#part_4sp1 k1 n_diff_pfx02 test table_part_sub_1#p#part_4#sp#part_4sp1 k1 n_leaf_pages test table_part_sub_1#p#part_4#sp#part_4sp1 k1 size test table_part_sub_2#p#part_1#sp#sub_1 PRIMARY n_diff_pfx01 test table_part_sub_2#p#part_1#sp#sub_1 PRIMARY n_diff_pfx02 test table_part_sub_2#p#part_1#sp#sub_1 PRIMARY n_leaf_pages test table_part_sub_2#p#part_1#sp#sub_1 PRIMARY size test table_part_sub_2#p#part_1#sp#sub_1 k1 n_diff_pfx01 test table_part_sub_2#p#part_1#sp#sub_1 k1 n_diff_pfx02 test table_part_sub_2#p#part_1#sp#sub_1 k1 n_leaf_pages test table_part_sub_2#p#part_1#sp#sub_1 k1 size test table_part_sub_2#p#part_1#sp#sub_2 PRIMARY n_diff_pfx01 test table_part_sub_2#p#part_1#sp#sub_2 PRIMARY n_diff_pfx02 test table_part_sub_2#p#part_1#sp#sub_2 PRIMARY n_leaf_pages test table_part_sub_2#p#part_1#sp#sub_2 PRIMARY size test table_part_sub_2#p#part_1#sp#sub_2 k1 n_diff_pfx01 test table_part_sub_2#p#part_1#sp#sub_2 k1 n_diff_pfx02 test table_part_sub_2#p#part_1#sp#sub_2 k1 n_leaf_pages test table_part_sub_2#p#part_1#sp#sub_2 k1 size test table_part_sub_2#p#part_2#sp#sub_3 PRIMARY n_diff_pfx01 test table_part_sub_2#p#part_2#sp#sub_3 PRIMARY n_diff_pfx02 test table_part_sub_2#p#part_2#sp#sub_3 PRIMARY n_leaf_pages test table_part_sub_2#p#part_2#sp#sub_3 PRIMARY size test table_part_sub_2#p#part_2#sp#sub_3 k1 n_diff_pfx01 test table_part_sub_2#p#part_2#sp#sub_3 k1 n_diff_pfx02 test table_part_sub_2#p#part_2#sp#sub_3 k1 n_leaf_pages test table_part_sub_2#p#part_2#sp#sub_3 k1 size test table_part_sub_2#p#part_2#sp#sub_4 PRIMARY n_diff_pfx01 test table_part_sub_2#p#part_2#sp#sub_4 PRIMARY n_diff_pfx02 test table_part_sub_2#p#part_2#sp#sub_4 PRIMARY n_leaf_pages test table_part_sub_2#p#part_2#sp#sub_4 PRIMARY size test table_part_sub_2#p#part_2#sp#sub_4 k1 n_diff_pfx01 test table_part_sub_2#p#part_2#sp#sub_4 k1 n_diff_pfx02 test table_part_sub_2#p#part_2#sp#sub_4 k1 n_leaf_pages test table_part_sub_2#p#part_2#sp#sub_4 k1 size test table_part_sub_2#p#part_3#sp#sub_5 PRIMARY n_diff_pfx01 test table_part_sub_2#p#part_3#sp#sub_5 PRIMARY n_diff_pfx02 test table_part_sub_2#p#part_3#sp#sub_5 PRIMARY n_leaf_pages test table_part_sub_2#p#part_3#sp#sub_5 PRIMARY size test table_part_sub_2#p#part_3#sp#sub_5 k1 n_diff_pfx01 test table_part_sub_2#p#part_3#sp#sub_5 k1 n_diff_pfx02 test table_part_sub_2#p#part_3#sp#sub_5 k1 n_leaf_pages test table_part_sub_2#p#part_3#sp#sub_5 k1 size test table_part_sub_2#p#part_3#sp#sub_6 PRIMARY n_diff_pfx01 test table_part_sub_2#p#part_3#sp#sub_6 PRIMARY n_diff_pfx02 test table_part_sub_2#p#part_3#sp#sub_6 PRIMARY n_leaf_pages test table_part_sub_2#p#part_3#sp#sub_6 PRIMARY size test table_part_sub_2#p#part_3#sp#sub_6 k1 n_diff_pfx01 test table_part_sub_2#p#part_3#sp#sub_6 k1 n_diff_pfx02 test table_part_sub_2#p#part_3#sp#sub_6 k1 n_leaf_pages test table_part_sub_2#p#part_3#sp#sub_6 k1 size Checking DD tables ------------------ SET DEBUG='+d,skip_dd_table_access_check'; select t.name as "table", p.name as "partition", p.number from mysql.tables t, mysql.table_partitions p where p.table_id = t.id order by t.name, p.name, p.number; table partition number table_part_1 p0 0 table_part_1 p1 1 table_part_1 p2 2 table_part_1 p3 3 table_part_1 p4 4 table_part_2 p0 0 table_part_2 p1 1 table_part_2 p2 2 table_part_2 p3 3 table_part_2 p4 4 table_part_\_special_/_sub_?_3 PART_/_3 2 table_part_\_special_/_sub_?_3 Part_?_1 0 table_part_\_special_/_sub_?_3 pArt_\_2 1 table_part_\_special_/_sub_?_3 sUb_/_2 1 table_part_\_special_/_sub_?_3 SUB_?/_5 0 table_part_\_special_/_sub_?_3 SUB_?\_4 1 table_part_\_special_/_sub_?_3 Sub_?_1 0 table_part_\_special_/_sub_?_3 sub_\/?_6 1 table_part_\_special_/_sub_?_3 suB_\_3 0 table_part_cap_6 p0 0 table_part_cap_6 p1 1 table_part_cap_6 p2 2 table_part_cap_6 p3 3 table_part_cap_6 p4 4 table_part_sub_1 Part_1 0 table_part_sub_1 Part_1sp0 0 table_part_sub_1 Part_1sp1 1 table_part_sub_1 pArt_2 1 table_part_sub_1 pArt_2sp0 0 table_part_sub_1 pArt_2sp1 1 table_part_sub_1 part_3 2 table_part_sub_1 part_3sp0 0 table_part_sub_1 part_3sp1 1 table_part_sub_1 PART_4 3 table_part_sub_1 PART_4sp0 0 table_part_sub_1 PART_4sp1 1 table_part_sub_2 Part_1 0 table_part_sub_2 pArt_2 1 table_part_sub_2 PART_3 2 table_part_sub_2 Sub_1 0 table_part_sub_2 sUb_2 1 table_part_sub_2 suB_3 0 table_part_sub_2 SUB_4 1 table_part_sub_2 SUB_5 0 table_part_sub_2 sub_6 1 select name from mysql.tablespaces where name like '%table_part%' order by name; name test/table_part_1#p#p0 test/table_part_1#p#p1 test/table_part_1#p#p2 test/table_part_1#p#p3 test/table_part_1#p#p4 test/table_part_2#p#p0 test/table_part_2#p#p1 test/table_part_2#p#p2 test/table_part_2#p#p3 test/table_part_2#p#p4 test/table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_?/_5 test/table_part_\_special_/_sub_?_3#p#part_/_3#sp#sub_\/?_6 test/table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_/_2 test/table_part_\_special_/_sub_?_3#p#part_?_1#sp#sub_?_1 test/table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_?\_4 test/table_part_\_special_/_sub_?_3#p#part_\_2#sp#sub_\_3 test/table_part_cap_6#p#p0 test/table_part_cap_6#p#p1 test/table_part_cap_6#p#p2 test/table_part_cap_6#p#p3 test/table_part_cap_6#p#p4 test/table_part_sub_1#p#part_1#sp#part_1sp0 test/table_part_sub_1#p#part_1#sp#part_1sp1 test/table_part_sub_1#p#part_2#sp#part_2sp0 test/table_part_sub_1#p#part_2#sp#part_2sp1 test/table_part_sub_1#p#part_3#sp#part_3sp0 test/table_part_sub_1#p#part_3#sp#part_3sp1 test/table_part_sub_1#p#part_4#sp#part_4sp0 test/table_part_sub_1#p#part_4#sp#part_4sp1 test/table_part_sub_2#p#part_1#sp#sub_1 test/table_part_sub_2#p#part_1#sp#sub_2 test/table_part_sub_2#p#part_2#sp#sub_3 test/table_part_sub_2#p#part_2#sp#sub_4 test/table_part_sub_2#p#part_3#sp#sub_5 test/table_part_sub_2#p#part_3#sp#sub_6 select file_name from mysql.tablespace_files where file_name like '%table_part%' order by file_name; file_name ./test/table_part_1#p#p0.ibd ./test/table_part_1#p#p1.ibd ./test/table_part_1#p#p2.ibd ./test/table_part_1#p#p3.ibd ./test/table_part_1#p#p4.ibd ./test/table_part_2#p#p0.ibd ./test/table_part_2#p#p1.ibd ./test/table_part_2#p#p2.ibd ./test/table_part_2#p#p3.ibd ./test/table_part_2#p#p4.ibd ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@002f_3#sp#sub_@003f@002f_5.ibd ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@002f_3#sp#sub_@005c@002f@003f_6.ibd ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@003f_1#sp#sub_@002f_2.ibd ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@003f_1#sp#sub_@003f_1.ibd ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@005c_2#sp#sub_@003f@005c_4.ibd ./test/table_part_@005c_special_@002f_sub_@003f_3#p#part_@005c_2#sp#sub_@005c_3.ibd ./test/table_part_cap_6#p#p0.ibd ./test/table_part_cap_6#p#p1.ibd ./test/table_part_cap_6#p#p2.ibd ./test/table_part_cap_6#p#p3.ibd ./test/table_part_cap_6#p#p4.ibd ./test/table_part_sub_1#p#part_1#sp#part_1sp0.ibd ./test/table_part_sub_1#p#part_1#sp#part_1sp1.ibd ./test/table_part_sub_1#p#part_2#sp#part_2sp0.ibd ./test/table_part_sub_1#p#part_2#sp#part_2sp1.ibd ./test/table_part_sub_1#p#part_3#sp#part_3sp0.ibd ./test/table_part_sub_1#p#part_3#sp#part_3sp1.ibd ./test/table_part_sub_1#p#part_4#sp#part_4sp0.ibd ./test/table_part_sub_1#p#part_4#sp#part_4sp1.ibd ./test/table_part_sub_2#p#part_1#sp#sub_1.ibd ./test/table_part_sub_2#p#part_1#sp#sub_2.ibd ./test/table_part_sub_2#p#part_2#sp#sub_3.ibd ./test/table_part_sub_2#p#part_2#sp#sub_4.ibd ./test/table_part_sub_2#p#part_3#sp#sub_5.ibd ./test/table_part_sub_2#p#part_3#sp#sub_6.ibd SET DEBUG='-d,skip_dd_table_access_check'; SET NAMES DEFAULT; # 2. Do DML insert/update/delete on upgraded tables DML on partitioned tables ------------------------- insert into table_part_1 values(15, 1555, "Row - 15", REPEAT('Large Column Data - 15' , 256)); update table_part_1 set name = 'Row - updated' where value > 500; delete from table_part_1 where id = 7; insert into table_part_sub_1 values(15, 1555, "Row - 15", REPEAT('Large Column Data - 15' , 256)); update table_part_sub_1 set name = 'Row - updated' where value > 500; delete from table_part_sub_1 where id = 7; insert into table_part_sub_2 values(15, 1555, "Row - 15", REPEAT('Large Column Data - 15' , 256)); update table_part_sub_2 set name = 'Row - updated' where value > 500; delete from table_part_sub_2 where id = 7; insert into `table_part_\_special_/_sub_?_3` values(15, 1555, "Row - 15", REPEAT('Large Column Data - 15' , 256)); update `table_part_\_special_/_sub_?_3` set name = 'Row - updated' where value > 500; delete from `table_part_\_special_/_sub_?_3` where id = 7; insert into table_part_2 values(15, 1555, "Row - 15", REPEAT('Large Column Data - 15' , 256)); update table_part_2 set name = 'Row - updated' where value > 500; delete from table_part_2 where id = 7; # 3. Do DDL ALTER/DROP on upgraded tables DDL on partitioned tables ------------------------- ALTER TABLE table_part_1 TRUNCATE PARTITION p0; ALTER TABLE table_part_1 COALESCE PARTITION 2; SHOW CREATE TABLE table_part_1; Table Create Table table_part_1 CREATE TABLE `table_part_1` ( `id` int NOT NULL, `value` int DEFAULT NULL, `name` varchar(32) DEFAULT NULL, `data` blob, PRIMARY KEY (`id`), KEY `k1` (`value`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci /*!50100 PARTITION BY HASH (`id`) PARTITIONS 3 */ ALTER TABLE table_part_sub_1 TRUNCATE PARTITION part_1; ALTER TABLE table_part_sub_2 TRUNCATE PARTITION part_3; CREATE TABLE test_table LIKE table_part_sub_2; ALTER TABLE test_table REMOVE PARTITIONING; insert into test_table values(2, 265, "Row - 2", REPEAT('Large Column Data - 2' , 256)); SELECT id, value, name FROM table_part_sub_2 PARTITION (sub_3) order by id; id value name 2 255 Row - 2 4 455 Row - 4 SELECT id, value, name FROM test_table order by id; id value name 2 265 Row - 2 ALTER TABLE table_part_sub_2 EXCHANGE PARTITION sub_3 WITH TABLE test_table; SELECT id, value, name FROM table_part_sub_2 PARTITION (sub_3) order by id; id value name 2 265 Row - 2 SELECT id, value, name FROM test_table order by id; id value name 2 255 Row - 2 4 455 Row - 4 DROP TABLE test_table; ALTER TABLE table_part_sub_2 RENAME renamed_table;; SHOW CREATE TABLE renamed_table; Table Create Table renamed_table CREATE TABLE `renamed_table` ( `id` int NOT NULL, `value` int NOT NULL, `name` varchar(32) DEFAULT NULL, `data` blob, PRIMARY KEY (`id`,`value`), KEY `k1` (`value`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci /*!50100 PARTITION BY RANGE (`value`) SUBPARTITION BY HASH (`id`) (PARTITION Part_1 VALUES LESS THAN (101) (SUBPARTITION Sub_1 ENGINE = InnoDB, SUBPARTITION sUb_2 ENGINE = InnoDB), PARTITION pArt_2 VALUES LESS THAN (501) (SUBPARTITION suB_3 ENGINE = InnoDB, SUBPARTITION SUB_4 ENGINE = InnoDB), PARTITION PART_3 VALUES LESS THAN MAXVALUE (SUBPARTITION SUB_5 ENGINE = InnoDB, SUBPARTITION sub_6 ENGINE = InnoDB)) */ ALTER TABLE renamed_table RENAME table_part_sub_2;; ALTER TABLE table_part_1 ENGINE = InnoDB;; ALTER TABLE table_part_1 ADD COLUMN new_id int AFTER id; ALTER TABLE table_part_1 REMOVE PARTITIONING; ALTER TABLE table_part_sub_1 ENGINE = InnoDB;; ALTER TABLE table_part_sub_1 ADD COLUMN new_id int AFTER id; ALTER TABLE table_part_sub_1 REMOVE PARTITIONING; ALTER TABLE table_part_sub_2 ENGINE = InnoDB;; ALTER TABLE table_part_sub_2 ADD COLUMN new_id int AFTER id; ALTER TABLE table_part_sub_2 REMOVE PARTITIONING; ALTER TABLE `table_part_\_special_/_sub_?_3` ENGINE = InnoDB;; ALTER TABLE `table_part_\_special_/_sub_?_3` ADD COLUMN new_id int AFTER id; ALTER TABLE `table_part_\_special_/_sub_?_3` REMOVE PARTITIONING; ALTER TABLE table_part_2 ENGINE = InnoDB;; ALTER TABLE table_part_2 ADD COLUMN new_id int AFTER id; ALTER TABLE table_part_2 REMOVE PARTITIONING; # Shutdown server # Remove upgraded data directory. # Cleanup: Restart with default options. # restart
{ "pile_set_name": "Github" }
/* * Copyright (C) 2018 Team Kodi * This file is part of Kodi - https://kodi.tv * * SPDX-License-Identifier: GPL-2.0-or-later * See LICENSES/README.md for more information. */ #include "MusicUtils.h" #include "Application.h" #include "PlayListPlayer.h" #include "ServiceBroker.h" #include "dialogs/GUIDialogSelect.h" #include "guilib/GUIComponent.h" #include "guilib/GUIKeyboardFactory.h" #include "guilib/GUIWindowManager.h" #include "guilib/LocalizeStrings.h" #include "music/MusicDatabase.h" #include "music/tags/MusicInfoTag.h" #include "playlists/PlayList.h" #include "settings/AdvancedSettings.h" #include "settings/Settings.h" #include "settings/SettingsComponent.h" #include "utils/JobManager.h" using namespace MUSIC_INFO; using namespace XFILE; using namespace PLAYLIST; namespace MUSIC_UTILS { class CSetArtJob : public CJob { CFileItemPtr pItem; std::string m_artType; std::string m_newArt; public: CSetArtJob(const CFileItemPtr item, const std::string& type, const std::string& newArt) : pItem(item), m_artType(type), m_newArt(newArt) { } ~CSetArtJob(void) override = default; bool HasSongExtraArtChanged(const CFileItemPtr pSongItem, const std::string& type, const int itemID, CMusicDatabase& db) { if (!pSongItem->HasMusicInfoTag()) return false; int idSong = pSongItem->GetMusicInfoTag()->GetDatabaseId(); if (idSong <= 0) return false; bool result = false; if (type == MediaTypeAlbum) // Update art when song is from album result = (itemID == pSongItem->GetMusicInfoTag()->GetAlbumId()); else if (type == MediaTypeArtist) { // Update art when artist is song or album artist of the song if (pSongItem->HasProperty("artistid")) { // Check artistid property when we have it for (CVariant::const_iterator_array varid = pSongItem->GetProperty("artistid").begin_array(); varid != pSongItem->GetProperty("artistid").end_array(); varid++) { int idArtist = varid->asInteger(); result = (itemID == idArtist); if (result) break; } } else { // Check song artists in database result = db.IsSongArtist(idSong, itemID); } if (!result) { // Check song album artists result = db.IsSongAlbumArtist(idSong, itemID); } } return result; } // Asynchronously update song, album or artist art in library // and trigger update to album & artist art of the currently playing song // and songs queued in the current playlist bool DoWork(void) override { int itemID = pItem->GetMusicInfoTag()->GetDatabaseId(); if (itemID <= 0) return false; std::string type = pItem->GetMusicInfoTag()->GetType(); CMusicDatabase db; if (!db.Open()) return false; if (!m_newArt.empty()) db.SetArtForItem(itemID, type, m_artType, m_newArt); else db.RemoveArtForItem(itemID, type, m_artType); /* Update the art of the songs of the current music playlist. Song thumb is often a fallback from the album and fanart is from the artist(s). Clear the art if it is a song from the album or by the artist (as song or album artist) that has modified artwork. The new artwork gets loaded when the playlist is shown. */ bool clearcache(false); CPlayList& playlist = CServiceBroker::GetPlaylistPlayer().GetPlaylist(PLAYLIST_MUSIC); for (int i = 0; i < playlist.size(); ++i) { CFileItemPtr songitem = playlist[i]; if (HasSongExtraArtChanged(songitem, type, itemID, db)) { songitem->ClearArt(); // Art gets reloaded when the current playist is shown clearcache = true; } } if (clearcache) { // Clear the music playlist from cache CFileItemList items("playlistmusic://"); items.RemoveDiscCache(WINDOW_MUSIC_PLAYLIST); } // Similarly update the art of the currently playing song so it shows on OSD if (g_application.GetAppPlayer().IsPlayingAudio() && g_application.CurrentFileItem().HasMusicInfoTag()) { CFileItemPtr songitem = CFileItemPtr(new CFileItem(g_application.CurrentFileItem())); if (HasSongExtraArtChanged(songitem, type, itemID, db)) g_application.UpdateCurrentPlayArt(); } db.Close(); return true; } }; class CSetSongRatingJob : public CJob { std::string strPath; int idSong; int iUserrating; public: CSetSongRatingJob(const std::string& filePath, int userrating) : strPath(filePath), idSong(-1), iUserrating(userrating) { } CSetSongRatingJob(int songId, int userrating) : strPath(), idSong(songId), iUserrating(userrating) { } ~CSetSongRatingJob(void) override = default; bool DoWork(void) override { // Asynchronously update song userrating in library CMusicDatabase db; if (db.Open()) { if (idSong > 0) db.SetSongUserrating(idSong, iUserrating); else db.SetSongUserrating(strPath, iUserrating); db.Close(); } return true; } }; void UpdateArtJob(const CFileItemPtr pItem, const std::string& strType, const std::string& strArt) { // Asynchronously update that type of art in the database CSetArtJob *job = new CSetArtJob(pItem, strType, strArt); CJobManager::GetInstance().AddJob(job, NULL); } // Add art types required in Kodi void AddHardCodedArtTypes(std::vector<std::string>& artTypes, const CMusicInfoTag& tag) { artTypes.emplace_back("thumb"); if (tag.GetType() == MediaTypeArtist) { artTypes.emplace_back("fanart"); } } // Add art types configured by the user void AddExtendedArtTypes(std::vector<std::string>& artTypes, const CMusicInfoTag& tag) { for (const auto& artType : GetArtTypesToScan(tag.GetType())) { if (find(artTypes.begin(), artTypes.end(), artType) == artTypes.end()) artTypes.push_back(artType); } } // Add art types currently assigned to to the media item void AddCurrentArtTypes(std::vector<std::string>& artTypes, const CMusicInfoTag& tag, CMusicDatabase& db) { std::map<std::string, std::string> currentArt; db.GetArtForItem(tag.GetDatabaseId(), tag.GetType(), currentArt); for (const auto& art : currentArt) { if (!art.second.empty() && find(artTypes.begin(), artTypes.end(), art.first) == artTypes.end()) artTypes.push_back(art.first); } } // Add art types that exist for other media items of the same type void AddMediaTypeArtTypes(std::vector<std::string>& artTypes, const CMusicInfoTag& tag, CMusicDatabase& db) { std::vector<std::string> dbArtTypes; db.GetArtTypes(tag.GetType(), dbArtTypes); for (const auto& artType : dbArtTypes) { if (find(artTypes.begin(), artTypes.end(), artType) == artTypes.end()) artTypes.push_back(artType); } } // Add art types from available but unassigned artwork for this media item void AddAvailableArtTypes(std::vector<std::string>& artTypes, const CMusicInfoTag& tag, CMusicDatabase& db) { for (const auto& artType : db.GetAvailableArtTypesForItem(tag.GetDatabaseId(), tag.GetType())) { if (find(artTypes.begin(), artTypes.end(), artType) == artTypes.end()) artTypes.push_back(artType); } } bool FillArtTypesList(CFileItem& musicitem, CFileItemList& artlist) { CMusicInfoTag &tag = *musicitem.GetMusicInfoTag(); if (tag.GetDatabaseId() < 1 || tag.GetType().empty()) return false; if (tag.GetType() != MediaTypeArtist && tag.GetType() != MediaTypeAlbum && tag.GetType() != MediaTypeSong) return false; artlist.Clear(); CMusicDatabase db; db.Open(); std::vector<std::string> artTypes; AddHardCodedArtTypes(artTypes, tag); AddExtendedArtTypes(artTypes, tag); AddCurrentArtTypes(artTypes, tag, db); AddMediaTypeArtTypes(artTypes, tag, db); AddAvailableArtTypes(artTypes, tag, db); db.Close(); for (const auto type : artTypes) { CFileItemPtr artitem(new CFileItem(type, false)); // Localise the names of common types of art if (type == "banner") artitem->SetLabel(g_localizeStrings.Get(20020)); else if (type == "fanart") artitem->SetLabel(g_localizeStrings.Get(20445)); else if (type == "poster") artitem->SetLabel(g_localizeStrings.Get(20021)); else if (type == "thumb") artitem->SetLabel(g_localizeStrings.Get(21371)); else artitem->SetLabel(type); // Set art type as art item property artitem->SetProperty("arttype", type); // Set current art as art item thumb if (musicitem.HasArt(type)) artitem->SetArt("thumb", musicitem.GetArt(type)); artlist.Add(artitem); } return !artlist.IsEmpty(); } std::string ShowSelectArtTypeDialog(CFileItemList& artitems) { // Prompt for choice CGUIDialogSelect *dialog = CServiceBroker::GetGUI()->GetWindowManager().GetWindow<CGUIDialogSelect>(WINDOW_DIALOG_SELECT); if (!dialog) return ""; dialog->SetHeading(CVariant{ 13521 }); dialog->Reset(); dialog->SetUseDetails(true); dialog->EnableButton(true, 13516); dialog->SetItems(artitems); dialog->Open(); if (dialog->IsButtonPressed()) { // Get the new art type name std::string strArtTypeName; if (!CGUIKeyboardFactory::ShowAndGetInput(strArtTypeName, CVariant{ g_localizeStrings.Get(13516) }, false)) return ""; // Add new type to the list of art types CFileItemPtr artitem(new CFileItem(strArtTypeName, false)); artitem->SetLabel(strArtTypeName); artitem->SetProperty("arttype", strArtTypeName); artitems.Add(artitem); return strArtTypeName; } return dialog->GetSelectedFileItem()->GetProperty("arttype").asString(); } int ShowSelectRatingDialog(int iSelected) { CGUIDialogSelect *dialog = CServiceBroker::GetGUI()->GetWindowManager().GetWindow<CGUIDialogSelect>(WINDOW_DIALOG_SELECT); if (dialog) { dialog->SetHeading(CVariant{ 38023 }); dialog->Add(g_localizeStrings.Get(38022)); for (int i = 1; i <= 10; i++) dialog->Add(StringUtils::Format("%s: %i", g_localizeStrings.Get(563).c_str(), i)); dialog->SetSelected(iSelected); dialog->Open(); int userrating = dialog->GetSelectedItem(); userrating = std::max(userrating, -1); userrating = std::min(userrating, 10); return userrating; } return -1; } void UpdateSongRatingJob(const CFileItemPtr pItem, int userrating) { // Asynchronously update the song user rating in music library const CMusicInfoTag *tag = pItem->GetMusicInfoTag(); CSetSongRatingJob *job; if (tag && tag->GetType() == MediaTypeSong && tag->GetDatabaseId() > 0) // Use song ID when known job = new CSetSongRatingJob(tag->GetDatabaseId(), userrating); else job = new CSetSongRatingJob(pItem->GetPath(), userrating); CJobManager::GetInstance().AddJob(job, NULL); } std::vector<std::string> GetArtTypesToScan(const MediaType& mediaType) { std::vector<std::string> arttypes; // Get default types of art that are to be automatically fetched during scanning if (mediaType == MediaTypeArtist) { arttypes = CServiceBroker::GetSettingsComponent()->GetAdvancedSettings()->m_musicArtistExtraArt; arttypes.emplace_back("thumb"); arttypes.emplace_back("fanart"); } else if (mediaType == MediaTypeAlbum) { arttypes = CServiceBroker::GetSettingsComponent()->GetAdvancedSettings()->m_musicAlbumExtraArt; arttypes.emplace_back("thumb"); } return arttypes; } }
{ "pile_set_name": "Github" }
[faster-signatures] ed25519ll [signatures] keyring keyrings.alt [signatures:sys_platform!="win32"] pyxdg [test] pytest>=3.0.0 pytest-cov
{ "pile_set_name": "Github" }
/* * Copyright (C) 2002 Sistina Software (UK) Limited. * Copyright (C) 2006 Red Hat GmbH * * This file is released under the GPL. * * Kcopyd provides a simple interface for copying an area of one * block-device to one or more other block-devices, with an asynchronous * completion notification. */ #include <linux/types.h> #include <asm/atomic.h> #include <linux/blkdev.h> #include <linux/fs.h> #include <linux/init.h> #include <linux/list.h> #include <linux/mempool.h> #include <linux/module.h> #include <linux/pagemap.h> #include <linux/slab.h> #include <linux/vmalloc.h> #include <linux/workqueue.h> #include <linux/mutex.h> #include <linux/device-mapper.h> #include <linux/dm-kcopyd.h> #include "dm.h" /*----------------------------------------------------------------- * Each kcopyd client has its own little pool of preallocated * pages for kcopyd io. *---------------------------------------------------------------*/ struct dm_kcopyd_client { spinlock_t lock; struct page_list *pages; unsigned int nr_pages; unsigned int nr_free_pages; struct dm_io_client *io_client; wait_queue_head_t destroyq; atomic_t nr_jobs; mempool_t *job_pool; struct workqueue_struct *kcopyd_wq; struct work_struct kcopyd_work; /* * We maintain three lists of jobs: * * i) jobs waiting for pages * ii) jobs that have pages, and are waiting for the io to be issued. * iii) jobs that have completed. * * All three of these are protected by job_lock. */ spinlock_t job_lock; struct list_head complete_jobs; struct list_head io_jobs; struct list_head pages_jobs; }; static void wake(struct dm_kcopyd_client *kc) { queue_work(kc->kcopyd_wq, &kc->kcopyd_work); } static struct page_list *alloc_pl(void) { struct page_list *pl; pl = kmalloc(sizeof(*pl), GFP_KERNEL); if (!pl) return NULL; pl->page = alloc_page(GFP_KERNEL); if (!pl->page) { kfree(pl); return NULL; } return pl; } static void free_pl(struct page_list *pl) { __free_page(pl->page); kfree(pl); } static int kcopyd_get_pages(struct dm_kcopyd_client *kc, unsigned int nr, struct page_list **pages) { struct page_list *pl; spin_lock(&kc->lock); if (kc->nr_free_pages < nr) { spin_unlock(&kc->lock); return -ENOMEM; } kc->nr_free_pages -= nr; for (*pages = pl = kc->pages; --nr; pl = pl->next) ; kc->pages = pl->next; pl->next = NULL; spin_unlock(&kc->lock); return 0; } static void kcopyd_put_pages(struct dm_kcopyd_client *kc, struct page_list *pl) { struct page_list *cursor; spin_lock(&kc->lock); for (cursor = pl; cursor->next; cursor = cursor->next) kc->nr_free_pages++; kc->nr_free_pages++; cursor->next = kc->pages; kc->pages = pl; spin_unlock(&kc->lock); } /* * These three functions resize the page pool. */ static void drop_pages(struct page_list *pl) { struct page_list *next; while (pl) { next = pl->next; free_pl(pl); pl = next; } } static int client_alloc_pages(struct dm_kcopyd_client *kc, unsigned int nr) { unsigned int i; struct page_list *pl = NULL, *next; for (i = 0; i < nr; i++) { next = alloc_pl(); if (!next) { if (pl) drop_pages(pl); return -ENOMEM; } next->next = pl; pl = next; } kcopyd_put_pages(kc, pl); kc->nr_pages += nr; return 0; } static void client_free_pages(struct dm_kcopyd_client *kc) { BUG_ON(kc->nr_free_pages != kc->nr_pages); drop_pages(kc->pages); kc->pages = NULL; kc->nr_free_pages = kc->nr_pages = 0; } /*----------------------------------------------------------------- * kcopyd_jobs need to be allocated by the *clients* of kcopyd, * for this reason we use a mempool to prevent the client from * ever having to do io (which could cause a deadlock). *---------------------------------------------------------------*/ struct kcopyd_job { struct dm_kcopyd_client *kc; struct list_head list; unsigned long flags; /* * Error state of the job. */ int read_err; unsigned long write_err; /* * Either READ or WRITE */ int rw; struct dm_io_region source; /* * The destinations for the transfer. */ unsigned int num_dests; struct dm_io_region dests[DM_KCOPYD_MAX_REGIONS]; sector_t offset; unsigned int nr_pages; struct page_list *pages; /* * Set this to ensure you are notified when the job has * completed. 'context' is for callback to use. */ dm_kcopyd_notify_fn fn; void *context; /* * These fields are only used if the job has been split * into more manageable parts. */ struct mutex lock; atomic_t sub_jobs; sector_t progress; }; /* FIXME: this should scale with the number of pages */ #define MIN_JOBS 512 static struct kmem_cache *_job_cache; int __init dm_kcopyd_init(void) { _job_cache = KMEM_CACHE(kcopyd_job, 0); if (!_job_cache) return -ENOMEM; return 0; } void dm_kcopyd_exit(void) { kmem_cache_destroy(_job_cache); _job_cache = NULL; } /* * Functions to push and pop a job onto the head of a given job * list. */ static struct kcopyd_job *pop(struct list_head *jobs, struct dm_kcopyd_client *kc) { struct kcopyd_job *job = NULL; unsigned long flags; spin_lock_irqsave(&kc->job_lock, flags); if (!list_empty(jobs)) { job = list_entry(jobs->next, struct kcopyd_job, list); list_del(&job->list); } spin_unlock_irqrestore(&kc->job_lock, flags); return job; } static void push(struct list_head *jobs, struct kcopyd_job *job) { unsigned long flags; struct dm_kcopyd_client *kc = job->kc; spin_lock_irqsave(&kc->job_lock, flags); list_add_tail(&job->list, jobs); spin_unlock_irqrestore(&kc->job_lock, flags); } static void push_head(struct list_head *jobs, struct kcopyd_job *job) { unsigned long flags; struct dm_kcopyd_client *kc = job->kc; spin_lock_irqsave(&kc->job_lock, flags); list_add(&job->list, jobs); spin_unlock_irqrestore(&kc->job_lock, flags); } /* * These three functions process 1 item from the corresponding * job list. * * They return: * < 0: error * 0: success * > 0: can't process yet. */ static int run_complete_job(struct kcopyd_job *job) { void *context = job->context; int read_err = job->read_err; unsigned long write_err = job->write_err; dm_kcopyd_notify_fn fn = job->fn; struct dm_kcopyd_client *kc = job->kc; if (job->pages) kcopyd_put_pages(kc, job->pages); mempool_free(job, kc->job_pool); fn(read_err, write_err, context); if (atomic_dec_and_test(&kc->nr_jobs)) wake_up(&kc->destroyq); return 0; } static void complete_io(unsigned long error, void *context) { struct kcopyd_job *job = (struct kcopyd_job *) context; struct dm_kcopyd_client *kc = job->kc; if (error) { if (job->rw == WRITE) job->write_err |= error; else job->read_err = 1; if (!test_bit(DM_KCOPYD_IGNORE_ERROR, &job->flags)) { push(&kc->complete_jobs, job); wake(kc); return; } } if (job->rw == WRITE) push(&kc->complete_jobs, job); else { job->rw = WRITE; push(&kc->io_jobs, job); } wake(kc); } /* * Request io on as many buffer heads as we can currently get for * a particular job. */ static int run_io_job(struct kcopyd_job *job) { int r; struct dm_io_request io_req = { .bi_rw = job->rw | (1 << BIO_RW_SYNCIO) | (1 << BIO_RW_UNPLUG), .mem.type = DM_IO_PAGE_LIST, .mem.ptr.pl = job->pages, .mem.offset = job->offset, .notify.fn = complete_io, .notify.context = job, .client = job->kc->io_client, }; if (job->rw == READ) r = dm_io(&io_req, 1, &job->source, NULL); else r = dm_io(&io_req, job->num_dests, job->dests, NULL); return r; } static int run_pages_job(struct kcopyd_job *job) { int r; job->nr_pages = dm_div_up(job->dests[0].count + job->offset, PAGE_SIZE >> 9); r = kcopyd_get_pages(job->kc, job->nr_pages, &job->pages); if (!r) { /* this job is ready for io */ push(&job->kc->io_jobs, job); return 0; } if (r == -ENOMEM) /* can't complete now */ return 1; return r; } /* * Run through a list for as long as possible. Returns the count * of successful jobs. */ static int process_jobs(struct list_head *jobs, struct dm_kcopyd_client *kc, int (*fn) (struct kcopyd_job *)) { struct kcopyd_job *job; int r, count = 0; while ((job = pop(jobs, kc))) { r = fn(job); if (r < 0) { /* error this rogue job */ if (job->rw == WRITE) job->write_err = (unsigned long) -1L; else job->read_err = 1; push(&kc->complete_jobs, job); break; } if (r > 0) { /* * We couldn't service this job ATM, so * push this job back onto the list. */ push_head(jobs, job); break; } count++; } return count; } /* * kcopyd does this every time it's woken up. */ static void do_work(struct work_struct *work) { struct dm_kcopyd_client *kc = container_of(work, struct dm_kcopyd_client, kcopyd_work); /* * The order that these are called is *very* important. * complete jobs can free some pages for pages jobs. * Pages jobs when successful will jump onto the io jobs * list. io jobs call wake when they complete and it all * starts again. */ process_jobs(&kc->complete_jobs, kc, run_complete_job); process_jobs(&kc->pages_jobs, kc, run_pages_job); process_jobs(&kc->io_jobs, kc, run_io_job); } /* * If we are copying a small region we just dispatch a single job * to do the copy, otherwise the io has to be split up into many * jobs. */ static void dispatch_job(struct kcopyd_job *job) { struct dm_kcopyd_client *kc = job->kc; atomic_inc(&kc->nr_jobs); if (unlikely(!job->source.count)) push(&kc->complete_jobs, job); else push(&kc->pages_jobs, job); wake(kc); } #define SUB_JOB_SIZE 128 static void segment_complete(int read_err, unsigned long write_err, void *context) { /* FIXME: tidy this function */ sector_t progress = 0; sector_t count = 0; struct kcopyd_job *job = (struct kcopyd_job *) context; struct dm_kcopyd_client *kc = job->kc; mutex_lock(&job->lock); /* update the error */ if (read_err) job->read_err = 1; if (write_err) job->write_err |= write_err; /* * Only dispatch more work if there hasn't been an error. */ if ((!job->read_err && !job->write_err) || test_bit(DM_KCOPYD_IGNORE_ERROR, &job->flags)) { /* get the next chunk of work */ progress = job->progress; count = job->source.count - progress; if (count) { if (count > SUB_JOB_SIZE) count = SUB_JOB_SIZE; job->progress += count; } } mutex_unlock(&job->lock); if (count) { int i; struct kcopyd_job *sub_job = mempool_alloc(kc->job_pool, GFP_NOIO); *sub_job = *job; sub_job->source.sector += progress; sub_job->source.count = count; for (i = 0; i < job->num_dests; i++) { sub_job->dests[i].sector += progress; sub_job->dests[i].count = count; } sub_job->fn = segment_complete; sub_job->context = job; dispatch_job(sub_job); } else if (atomic_dec_and_test(&job->sub_jobs)) { /* * Queue the completion callback to the kcopyd thread. * * Some callers assume that all the completions are called * from a single thread and don't race with each other. * * We must not call the callback directly here because this * code may not be executing in the thread. */ push(&kc->complete_jobs, job); wake(kc); } } /* * Create some little jobs that will do the move between * them. */ #define SPLIT_COUNT 8 static void split_job(struct kcopyd_job *job) { int i; atomic_inc(&job->kc->nr_jobs); atomic_set(&job->sub_jobs, SPLIT_COUNT); for (i = 0; i < SPLIT_COUNT; i++) segment_complete(0, 0u, job); } int dm_kcopyd_copy(struct dm_kcopyd_client *kc, struct dm_io_region *from, unsigned int num_dests, struct dm_io_region *dests, unsigned int flags, dm_kcopyd_notify_fn fn, void *context) { struct kcopyd_job *job; /* * Allocate a new job. */ job = mempool_alloc(kc->job_pool, GFP_NOIO); /* * set up for the read. */ job->kc = kc; job->flags = flags; job->read_err = 0; job->write_err = 0; job->rw = READ; job->source = *from; job->num_dests = num_dests; memcpy(&job->dests, dests, sizeof(*dests) * num_dests); job->offset = 0; job->nr_pages = 0; job->pages = NULL; job->fn = fn; job->context = context; if (job->source.count < SUB_JOB_SIZE) dispatch_job(job); else { mutex_init(&job->lock); job->progress = 0; split_job(job); } return 0; } EXPORT_SYMBOL(dm_kcopyd_copy); /* * Cancels a kcopyd job, eg. someone might be deactivating a * mirror. */ #if 0 int kcopyd_cancel(struct kcopyd_job *job, int block) { /* FIXME: finish */ return -1; } #endif /* 0 */ /*----------------------------------------------------------------- * Client setup *---------------------------------------------------------------*/ int dm_kcopyd_client_create(unsigned int nr_pages, struct dm_kcopyd_client **result) { int r = -ENOMEM; struct dm_kcopyd_client *kc; kc = kmalloc(sizeof(*kc), GFP_KERNEL); if (!kc) return -ENOMEM; spin_lock_init(&kc->lock); spin_lock_init(&kc->job_lock); INIT_LIST_HEAD(&kc->complete_jobs); INIT_LIST_HEAD(&kc->io_jobs); INIT_LIST_HEAD(&kc->pages_jobs); kc->job_pool = mempool_create_slab_pool(MIN_JOBS, _job_cache); if (!kc->job_pool) goto bad_slab; INIT_WORK(&kc->kcopyd_work, do_work); kc->kcopyd_wq = create_singlethread_workqueue("kcopyd"); if (!kc->kcopyd_wq) goto bad_workqueue; kc->pages = NULL; kc->nr_pages = kc->nr_free_pages = 0; r = client_alloc_pages(kc, nr_pages); if (r) goto bad_client_pages; kc->io_client = dm_io_client_create(nr_pages); if (IS_ERR(kc->io_client)) { r = PTR_ERR(kc->io_client); goto bad_io_client; } init_waitqueue_head(&kc->destroyq); atomic_set(&kc->nr_jobs, 0); *result = kc; return 0; bad_io_client: client_free_pages(kc); bad_client_pages: destroy_workqueue(kc->kcopyd_wq); bad_workqueue: mempool_destroy(kc->job_pool); bad_slab: kfree(kc); return r; } EXPORT_SYMBOL(dm_kcopyd_client_create); void dm_kcopyd_client_destroy(struct dm_kcopyd_client *kc) { /* Wait for completion of all jobs submitted by this client. */ wait_event(kc->destroyq, !atomic_read(&kc->nr_jobs)); BUG_ON(!list_empty(&kc->complete_jobs)); BUG_ON(!list_empty(&kc->io_jobs)); BUG_ON(!list_empty(&kc->pages_jobs)); destroy_workqueue(kc->kcopyd_wq); dm_io_client_destroy(kc->io_client); client_free_pages(kc); mempool_destroy(kc->job_pool); kfree(kc); } EXPORT_SYMBOL(dm_kcopyd_client_destroy);
{ "pile_set_name": "Github" }
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/AnnotationKit.framework/AnnotationKit */ @interface AKAnnotationImageHelper : NSObject + (void)_drawFilledShapeImageForAnnotation:(id)arg1 inRect:(struct CGRect { struct CGPoint { double x_1_1_1; double x_1_1_2; } x1; struct CGSize { double x_2_1_1; double x_2_1_2; } x2; })arg2 inContext:(struct CGContext { }*)arg3; + (void)_drawImageForPath:(id)arg1 inRect:(struct CGRect { struct CGPoint { double x_1_1_1; double x_1_1_2; } x1; struct CGSize { double x_2_1_1; double x_2_1_2; } x2; })arg2 inContext:(struct CGContext { }*)arg3; + (void)_drawImageForSignature:(id)arg1 withFillColor:(id)arg2 scale:(double)arg3 pathOffset:(struct CGPoint { double x1; double x2; })arg4 inContext:(struct CGContext { }*)arg5; + (struct CGImage { }*)createImageOfAnnotation:(id)arg1 withScale:(double)arg2; + (id)imageForShapeTag:(long long)arg1; + (id)imageOfSize:(struct CGSize { double x1; double x2; })arg1 forAnnotation:(id)arg2; + (id)imageOfSize:(struct CGSize { double x1; double x2; })arg1 forPath:(id)arg2; + (id)imageOfSize:(struct CGSize { double x1; double x2; })arg1 withFillColor:(id)arg2 forSignature:(id)arg3; @end
{ "pile_set_name": "Github" }
/*******************************************************************\ Module: Author: Daniel Kroening, [email protected] \*******************************************************************/ #include "c_preprocess.h" #include <util/c_types.h> #include <util/config.h> #include <util/prefix.h> #include <util/run.h> #include <util/suffix.h> #include <util/tempfile.h> #include <util/unicode.h> #include <fstream> /// quote a string for bash and CMD static std::string shell_quote(const std::string &src) { #ifdef _WIN32 // first check if quoting is needed at all if(src.find(' ')==std::string::npos && src.find('"')==std::string::npos && src.find('&')==std::string::npos && src.find('|')==std::string::npos && src.find('(')==std::string::npos && src.find(')')==std::string::npos && src.find('<')==std::string::npos && src.find('>')==std::string::npos && src.find('^')==std::string::npos) { // seems fine -- return as is return src; } std::string result; result+='"'; for(const char ch : src) { if(ch=='"') result+='"'; // quotes are doubled result+=ch; } result+='"'; return result; #else // first check if quoting is needed at all if(src.find(' ')==std::string::npos && src.find('"')==std::string::npos && src.find('*')==std::string::npos && src.find('$')==std::string::npos && src.find('\\')==std::string::npos && src.find('?')==std::string::npos && src.find('&')==std::string::npos && src.find('|')==std::string::npos && src.find('>')==std::string::npos && src.find('<')==std::string::npos && src.find('^')==std::string::npos && src.find('\'')==std::string::npos) { // seems fine -- return as is return src; } std::string result; // the single quotes catch everything but themselves! result+='\''; for(const char ch : src) { if(ch=='\'') result+="'\\''"; result+=ch; } result+='\''; return result; #endif } static void error_parse_line( const std::string &line, bool warning_only, messaget &message) { std::string error_msg=line; source_locationt saved_error_location; if(has_prefix(line, "file ")) { const char *tptr=line.c_str(); int state=0; std::string file, line_no, column, _error_msg, function; tptr+=5; char previous=0; while(*tptr!=0) { if(has_prefix(tptr, " line ") && state != 4) { state=1; tptr+=6; continue; } else if(has_prefix(tptr, " column ") && state != 4) { state=2; tptr+=8; continue; } else if(has_prefix(tptr, " function ") && state != 4) { state=3; tptr+=10; continue; } else if(*tptr==':' && state!=4) { if(tptr[1]==' ' && previous!=':') { state=4; tptr++; while(*tptr==' ') tptr++; continue; } } if(state==0) // file file+=*tptr; else if(state==1) // line number line_no+=*tptr; else if(state==2) // column column+=*tptr; else if(state==3) // function function+=*tptr; else if(state==4) // error message _error_msg+=*tptr; previous=*tptr; tptr++; } if(state==4) { saved_error_location.set_file(file); saved_error_location.set_function(function); saved_error_location.set_line(line_no); saved_error_location.set_column(column); error_msg=_error_msg; } } else if(has_prefix(line, "In file included from ")) { } else { const char *tptr=line.c_str(); int state=0; std::string file, line_no; while(*tptr!=0) { if(state==0) { if(*tptr==':') state++; else file+=*tptr; } else if(state==1) { if(*tptr==':') state++; else if(isdigit(*tptr)) line_no+=*tptr; else state=3; } tptr++; } if(state==2) { saved_error_location.set_file(file); saved_error_location.set_function(irep_idt()); saved_error_location.set_line(line_no); saved_error_location.set_column(irep_idt()); } } messaget::mstreamt &m= warning_only ? message.warning() : message.error(); m.source_location=saved_error_location; m << error_msg << messaget::eom; } static void error_parse( std::istream &errors, bool warning_only, messaget &message) { std::string line; while(std::getline(errors, line)) error_parse_line(line, warning_only, message); } /// ANSI-C preprocessing bool c_preprocess( std::istream &instream, std::ostream &outstream, message_handlert &message_handler) { temporary_filet tmp_file("tmp.stdin", ".c"); std::ofstream tmp(tmp_file()); if(!tmp) { messaget message(message_handler); message.error() << "failed to open temporary file" << messaget::eom; return true; // error } tmp << instream.rdbuf(); // copy tmp.close(); // flush bool result=c_preprocess(tmp_file(), outstream, message_handler); return result; } /// ANSI-C preprocessing static bool is_dot_i_file(const std::string &path) { return has_suffix(path, ".i") || has_suffix(path, ".ii"); } /// ANSI-C preprocessing bool c_preprocess_codewarrior( const std::string &, std::ostream &, message_handlert &); bool c_preprocess_arm( const std::string &, std::ostream &, message_handlert &); bool c_preprocess_gcc_clang( const std::string &, std::ostream &, message_handlert &, configt::ansi_ct::preprocessort); bool c_preprocess_none( const std::string &, std::ostream &, message_handlert &); bool c_preprocess_visual_studio( const std::string &, std::ostream &, message_handlert &); bool c_preprocess( const std::string &path, std::ostream &outstream, message_handlert &message_handler) { switch(config.ansi_c.preprocessor) { case configt::ansi_ct::preprocessort::CODEWARRIOR: return c_preprocess_codewarrior(path, outstream, message_handler); case configt::ansi_ct::preprocessort::GCC: return c_preprocess_gcc_clang( path, outstream, message_handler, config.ansi_c.preprocessor); case configt::ansi_ct::preprocessort::CLANG: return c_preprocess_gcc_clang( path, outstream, message_handler, config.ansi_c.preprocessor); case configt::ansi_ct::preprocessort::VISUAL_STUDIO: return c_preprocess_visual_studio(path, outstream, message_handler); case configt::ansi_ct::preprocessort::ARM: return c_preprocess_arm(path, outstream, message_handler); case configt::ansi_ct::preprocessort::NONE: return c_preprocess_none(path, outstream, message_handler); } // not reached return true; } /// ANSI-C preprocessing bool c_preprocess_visual_studio( const std::string &file, std::ostream &outstream, message_handlert &message_handler) { // check extension if(is_dot_i_file(file)) return c_preprocess_none(file, outstream, message_handler); messaget message(message_handler); // use Visual Studio's CL temporary_filet stderr_file("tmp.stderr", ""); temporary_filet command_file_name("tmp.cl-cmd", ""); { std::ofstream command_file(command_file_name()); // This marks the command file as UTF-8, which Visual Studio // understands. command_file << char(0xef) << char(0xbb) << char(0xbf); command_file << "/nologo" << '\n'; command_file << "/E" << '\n'; // This option will make CL produce utf-8 output, as // opposed to 8-bit with some code page. // It only works on Visual Studio 2015 or newer. command_file << "/source-charset:utf-8" << '\n'; command_file << "/D__CPROVER__" << "\n"; command_file << "/D__WORDSIZE=" << config.ansi_c.pointer_width << "\n"; if(pointer_diff_type()==signed_long_long_int_type()) { command_file << "\"/D__PTRDIFF_TYPE__=long long int\"" << "\n"; // yes, both _WIN32 and _WIN64 get defined command_file << "/D_WIN64" << "\n"; } else if(config.ansi_c.int_width == 16 && config.ansi_c.pointer_width == 32) { // 16-bit LP32 is an artificial architecture we simulate when using --16 DATA_INVARIANT( pointer_diff_type() == signed_long_int_type(), "Pointer difference expected to be long int typed"); command_file << "/D__PTRDIFF_TYPE__=long" << '\n'; } else { DATA_INVARIANT( pointer_diff_type()==signed_int_type(), "Pointer difference expected to be int typed"); command_file << "/D__PTRDIFF_TYPE__=int" << "\n"; } if(config.ansi_c.char_is_unsigned) command_file << "/J" << "\n"; // This causes _CHAR_UNSIGNED to be defined for(const auto &define : config.ansi_c.defines) command_file << "/D" << shell_quote(define) << "\n"; for(const auto &include_path : config.ansi_c.include_paths) command_file << "/I" << shell_quote(include_path) << "\n"; for(const auto &include_file : config.ansi_c.include_files) command_file << "/FI" << shell_quote(include_file) << "\n"; // Finally, the file to be preprocessed // (this is already in UTF-8). command_file << shell_quote(file) << "\n"; } temporary_filet tmpi("tmp.cl", ""); std::string command = "CL @\"" + command_file_name() + "\""; command += " 2> \"" + stderr_file() + "\""; // _popen isn't very reliable on WIN32 // that's why we use run() int result = run("cl", {"cl", "@" + command_file_name()}, "", outstream, stderr_file()); // errors/warnings std::ifstream stderr_stream(stderr_file()); error_parse(stderr_stream, result==0, message); if(result!=0) { message.error() << "CL Preprocessing failed" << messaget::eom; return true; } return false; } /// post-processing specifically for CodeWarrior void postprocess_codewarrior( std::istream &instream, std::ostream &outstream) { // CodeWarrior prepends some header to the file, // marked with '#' signs. // We skip over it. // // CodeWarrior has an ugly way of marking lines, e.g.: // // /* #line 1 "__ppc_eabi_init.cpp" /* stack depth 0 */ // // We remove the initial '/* ' prefix std::string line; while(instream) { std::getline(instream, line); if(line.size()>=2 && line[0]=='#' && (line[1]=='#' || line[1]==' ' || line[1]=='\t')) { // skip the line! } else if(line.size()>=3 && line[0]=='/' && line[1]=='*' && line[2]==' ') { outstream << line.c_str()+3 << "\n"; // strip the '/* ' } else outstream << line << "\n"; } } /// ANSI-C preprocessing bool c_preprocess_codewarrior( const std::string &file, std::ostream &outstream, message_handlert &message_handler) { // check extension if(is_dot_i_file(file)) return c_preprocess_none(file, outstream, message_handler); // preprocessing messaget message(message_handler); temporary_filet stderr_file("tmp.stderr", ""); std::vector<std::string> command = { "mwcceppc", "-E", "-P", "-D__CPROVER__", "-ppopt", "line", "-ppopt full"}; for(const auto &define : config.ansi_c.defines) command.push_back(" -D" + define); for(const auto &include_path : config.ansi_c.include_paths) command.push_back(" -I" + include_path); for(const auto &include_file : config.ansi_c.include_files) { command.push_back(" -include"); command.push_back(include_file); } for(const auto &opt : config.ansi_c.preprocessor_options) command.push_back(opt); temporary_filet tmpi("tmp.cl", ""); command.push_back(file); command.push_back("-o"); command.push_back(tmpi()); int result = run(command[0], command, "", "", stderr_file()); std::ifstream stream_i(tmpi()); if(stream_i) { postprocess_codewarrior(stream_i, outstream); stream_i.close(); } else { message.error() << "Preprocessing failed (fopen failed)" << messaget::eom; return true; } // errors/warnings std::ifstream stderr_stream(stderr_file()); error_parse(stderr_stream, result==0, message); if(result!=0) { message.error() << "Preprocessing failed" << messaget::eom; return true; } return false; } /// ANSI-C preprocessing bool c_preprocess_gcc_clang( const std::string &file, std::ostream &outstream, message_handlert &message_handler, configt::ansi_ct::preprocessort preprocessor) { // check extension if(is_dot_i_file(file)) return c_preprocess_none(file, outstream, message_handler); // preprocessing messaget message(message_handler); temporary_filet stderr_file("tmp.stderr", ""); std::vector<std::string> argv; if(preprocessor==configt::ansi_ct::preprocessort::CLANG) argv.push_back("clang"); else argv.push_back("gcc"); argv.push_back("-E"); argv.push_back("-D__CPROVER__"); const irep_idt &arch = config.ansi_c.arch; if(config.ansi_c.pointer_width == 16) { if(arch == "i386" || arch == "x86_64" || arch == "x32") argv.push_back("-m16"); else if(has_prefix(id2string(arch), "mips")) argv.push_back("-mips16"); } else if(config.ansi_c.pointer_width == 32) { if(arch == "i386" || arch == "x86_64") argv.push_back("-m32"); else if(arch == "x32") argv.push_back("-mx32"); else if(has_prefix(id2string(arch), "mips")) argv.push_back("-mabi=32"); else if(arch == "powerpc" || arch == "ppc64" || arch == "ppc64le") argv.push_back("-m32"); else if(arch == "s390" || arch == "s390x") argv.push_back("-m31"); // yes, 31, not 32! else if(arch == "sparc" || arch == "sparc64") argv.push_back("-m32"); } else if(config.ansi_c.pointer_width == 64) { if(arch == "i386" || arch == "x86_64" || arch == "x32") argv.push_back("-m64"); else if(has_prefix(id2string(arch), "mips")) argv.push_back("-mabi=64"); else if(arch == "powerpc" || arch == "ppc64" || arch == "ppc64le") argv.push_back("-m64"); else if(arch == "s390" || arch == "s390x") argv.push_back("-m64"); else if(arch == "sparc" || arch == "sparc64") argv.push_back("-m64"); } // The width of wchar_t depends on the OS! if(config.ansi_c.wchar_t_width == config.ansi_c.short_int_width) argv.push_back("-fshort-wchar"); if(config.ansi_c.char_is_unsigned) argv.push_back("-funsigned-char"); if(config.ansi_c.os == configt::ansi_ct::ost::NO_OS) argv.push_back("-nostdinc"); // Set the standard if( has_suffix(file, ".cpp") || has_suffix(file, ".CPP") || #ifndef _WIN32 has_suffix(file, ".C") || #endif has_suffix(file, ".c++") || has_suffix(file, ".C++") || has_suffix(file, ".cp") || has_suffix(file, ".CP") || has_suffix(file, ".cc") || has_suffix(file, ".cxx")) { switch(config.cpp.cpp_standard) { case configt::cppt::cpp_standardt::CPP98: #if defined(__OpenBSD__) if(preprocessor == configt::ansi_ct::preprocessort::CLANG) argv.push_back("-std=c++98"); else #endif argv.push_back("-std=gnu++98"); break; case configt::cppt::cpp_standardt::CPP03: #if defined(__OpenBSD__) if(preprocessor == configt::ansi_ct::preprocessort::CLANG) argv.push_back("-std=c++03"); else #endif argv.push_back("-std=gnu++03"); break; case configt::cppt::cpp_standardt::CPP11: #if defined(__OpenBSD__) if(preprocessor == configt::ansi_ct::preprocessort::CLANG) argv.push_back("-std=c++11"); else #endif argv.push_back("-std=gnu++11"); break; case configt::cppt::cpp_standardt::CPP14: #if defined(__OpenBSD__) if(preprocessor == configt::ansi_ct::preprocessort::CLANG) argv.push_back("-std=c++14"); else #endif argv.push_back("-std=gnu++14"); break; } } else { switch(config.ansi_c.c_standard) { case configt::ansi_ct::c_standardt::C89: #if defined(__OpenBSD__) if(preprocessor == configt::ansi_ct::preprocessort::CLANG) argv.push_back("-std=c89"); else #endif argv.push_back("-std=gnu89"); break; case configt::ansi_ct::c_standardt::C99: #if defined(__OpenBSD__) if(preprocessor == configt::ansi_ct::preprocessort::CLANG) argv.push_back("-std=c99"); else #endif argv.push_back("-std=gnu99"); break; case configt::ansi_ct::c_standardt::C11: #if defined(__OpenBSD__) if(preprocessor == configt::ansi_ct::preprocessort::CLANG) argv.push_back("-std=c11"); else #endif argv.push_back("-std=gnu11"); break; } } for(const auto &define : config.ansi_c.defines) argv.push_back("-D" + define); for(const auto &include_path : config.ansi_c.include_paths) argv.push_back("-I" + include_path); for(const auto &include_file : config.ansi_c.include_files) { argv.push_back("-include"); argv.push_back(include_file); } for(const auto &opt : config.ansi_c.preprocessor_options) argv.push_back(opt); int result; #if 0 // the following forces the mode switch(config.ansi_c.mode) { case configt::ansi_ct::flavourt::GCC_C: command+=" -x c"; break; case configt::ansi_ct::flavourt::GCC_CPP: command+=" -x c++"; break; default: { } } #endif // the file that is to be preprocessed argv.push_back(file); // execute clang or gcc result = run(argv[0], argv, "", outstream, stderr_file()); // errors/warnings std::ifstream stderr_stream(stderr_file()); error_parse(stderr_stream, result==0, message); if(result!=0) { message.error() << "GCC preprocessing failed" << messaget::eom; return true; } return false; } /// ANSI-C preprocessing bool c_preprocess_arm( const std::string &file, std::ostream &outstream, message_handlert &message_handler) { // check extension if(is_dot_i_file(file)) return c_preprocess_none(file, outstream, message_handler); // preprocessing using armcc messaget message(message_handler); temporary_filet stderr_file("tmp.stderr", ""); std::vector<std::string> argv; argv.push_back("armcc"); argv.push_back("-E"); argv.push_back("-D__CPROVER__"); if(config.ansi_c.endianness == configt::ansi_ct::endiannesst::IS_BIG_ENDIAN) argv.push_back("--bigend"); else argv.push_back("--littleend"); if(config.ansi_c.char_is_unsigned) argv.push_back("--unsigned_chars"); else argv.push_back("--signed_chars"); // Set the standard switch(config.ansi_c.c_standard) { case configt::ansi_ct::c_standardt::C89: argv.push_back("--c90"); break; case configt::ansi_ct::c_standardt::C99: case configt::ansi_ct::c_standardt::C11: argv.push_back("--c99"); break; } for(const auto &define : config.ansi_c.defines) argv.push_back("-D" + define); for(const auto &include_path : config.ansi_c.include_paths) argv.push_back("-I" + include_path); // the file that is to be preprocessed argv.push_back(file); int result; // execute armcc result = run(argv[0], argv, "", outstream, stderr_file()); // errors/warnings std::ifstream stderr_stream(stderr_file()); error_parse(stderr_stream, result==0, message); if(result!=0) { message.error() << "ARMCC preprocessing failed" << messaget::eom; return true; } return false; } /// ANSI-C preprocessing bool c_preprocess_none( const std::string &file, std::ostream &outstream, message_handlert &message_handler) { #ifdef _MSC_VER std::ifstream infile(widen(file)); #else std::ifstream infile(file); #endif if(!infile) { messaget message(message_handler); message.error() << "failed to open '" << file << "'" << messaget::eom; return true; } if(config.ansi_c.mode==configt::ansi_ct::flavourt::CODEWARRIOR) { // special treatment for "/* #line" postprocess_codewarrior(infile, outstream); } else { char ch; while(infile.read(&ch, 1)) outstream << ch; } return false; } /// tests ANSI-C preprocessing const char c_test_program[]= "#include <stdlib.h>\n" "\n" "int main() { }\n"; bool test_c_preprocessor(message_handlert &message_handler) { std::ostringstream out; std::istringstream in(c_test_program); return c_preprocess(in, out, message_handler); }
{ "pile_set_name": "Github" }
# Warning flags for C and C++: COMMON_FLAGS += -Wall -Wextra -pedantic -Werror COMMON_FLAGS += -Wmissing-declarations -g #COMMON_FLAGS += -Weverything CFLAGS += ${COMMON_FLAGS} CPPFLAGS += ${COMMON_FLAGS} # These warnings are not valid for C++: CFLAGS += -Wmissing-prototypes CFLAGS += -Wstrict-prototypes PROGRAMS_C= example example_no_suite example_no_runner \ example_shuffle example_trunc PROGRAMS_CPP= example_cpp # Uncomment to demo c99 parametric testing. #CFLAGS += -std=c99 # Uncomment to disable setjmp()/longjmp(). #CFLAGS += -DGREATEST_USE_LONGJMP=0 # Uncomment to disable clock() / time.h. #CFLAGS += -DGREATEST_USE_TIME=0 all: all_c all_c: ${PROGRAMS_C} all_cpp: ${PROGRAMS_CPP} example: example.o example_suite.o example_no_suite: example_no_suite.o example_no_runner: example_no_runner.o example_shuffle: example_shuffle.o example_cpp: example_cpp.cpp ${CXX} -o $@ example_cpp.cpp ${CPPFLAGS} ${LDFLAGS} %.o: %.c ${CC} -c -o $@ ${CFLAGS} $< %: %.o ${CC} -o $@ ${LDFLAGS} $^ *.o: Makefile *.o: greatest.h clean: rm -f ${PROGRAMS_C} ${PROGRAMS_CPP} *.o *.core
{ "pile_set_name": "Github" }
class AddNewIndexes < ActiveRecord::Migration def up add_index :communities_payment_gateways, :community_id end def down remove_index :communities_payment_gateways, :community_id end end
{ "pile_set_name": "Github" }
00:00 Okay, let's get cracking. 00:01 First thing we need to do is import requests, sorry. 00:07 import requests. 00:09 Now I know you probably know how to use requests 00:12 so I'm not going over this too much. 00:14 But what I'd like you to do is 00:15 enter the URL of your feed. 00:18 Now to get that for example, 00:20 we're going to be pulling the 00:23 new releases XML feed from Steam. 00:26 Stored up, steam powered. 00:28 Okay, 00:29 all I've done to get that is just Google 00:31 "Steam Feed." 00:33 Came up here, 00:34 I just grab the first one 00:35 and there was a link on the website for 00:38 their RSS feed. 00:39 Okay, this is the news one, 00:41 but we're actually 00:42 going to use the new releases 00:43 for the video games. 00:45 So you can feel free to grab whatever you want 00:47 and once you do that, 00:49 just pop the URL into here 00:52 and assign it to URL. 00:57 So there's mine there. 00:59 Next, we're just going to use our standard 01:02 Python and dunder there. 01:05 Okay, 01:06 and then what we're going to do is 01:08 we're going to 01:10 requests.get. 01:12 So, essentially, 01:13 we're going to get that URL 01:14 and we're going to store it 01:16 or we're going to assign it to the r variable. 01:19 Okay, and then we're actually going to 01:21 write the contents of this file, 01:24 of this XML feed, this that you're pulling down, 01:28 we're going to write that down to an XML file. 01:30 Okay, so to do that, 01:32 just going to do it the old fashioned way. 01:34 We're going to open a file, let's just call it 01:37 newreleases. 01:39 Just like the actual XML. 01:42 We're just going to write binary 01:43 and we're going to open it as f. 01:46 And I'm using that with Statement as usual 01:49 just to make sure it closes 01:50 out right when it's done. 01:53 So, we're going to write 01:55 r.content. 01:58 I'm not explaining this in detail 01:59 because you would have experienced requests 02:02 by now, so that should be nice and familiar. 02:05 But this is necessary to pull down the file. 02:08 Alright, so we save that, that's all we need. 02:11 Now, head over here to your shell. 02:13 Woops, we don't actually want to launch the shell, 02:18 We want to go Python pull_xml.py. 02:22 Alright, that completed. 02:25 Now, if we bring up our folder here, 02:28 or everything that's inside, 02:30 you will have seen it's created in newreleases XML file. 02:34 Alright, 02:36 that's it there. 02:38 Now, we'll open that file 02:42 in explorer. 02:43 Where are we? 02:45 Open, let's just choose, okay, don't hate me. 02:48 Let's just choose internet explorer. 02:51 So, now that this is open, 02:53 you can have a good look at what's inside this XML file. 02:57 Pay attention, maybe while you're doing this for yours, just open this, 03:01 your XML feed 03:02 in a browser 03:04 or in your favorite editor, 03:06 just so you can have a look at these little tags here. 03:09 So pay attention to that, 03:10 we'll talk about them in the next video.
{ "pile_set_name": "Github" }
/* * Copyright 2011 Sonian Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.sonian.elasticsearch.http.jetty; import org.elasticsearch.ElasticsearchException; import org.elasticsearch.common.io.Streams; import org.elasticsearch.common.transport.InetSocketTransportAddress; import org.elasticsearch.common.transport.TransportAddress; import com.fasterxml.jackson.databind.ObjectMapper; import sun.misc.BASE64Encoder; import java.io.*; import java.net.HttpURLConnection; import java.net.InetSocketAddress; import java.net.MalformedURLException; import java.net.URL; import java.util.Map; import static org.elasticsearch.common.collect.Maps.newHashMap; /** * @author imotov */ public class HttpClient { private final URL baseUrl; private final String encodedAuthorization; public HttpClient(TransportAddress transportAddress) { this(transportAddress, null, null); } public HttpClient(TransportAddress transportAddress, String username, String password) { InetSocketAddress address = ((InetSocketTransportAddress) transportAddress).address(); try { baseUrl = new URL("http", address.getHostName(), address.getPort(), "/"); } catch (MalformedURLException e) { throw new ElasticsearchException("", e); } if (username != null) { BASE64Encoder enc = new BASE64Encoder(); String userPassword = username + ":" + password; encodedAuthorization = enc.encode(userPassword.getBytes()); } else { encodedAuthorization = null; } } public HttpClientResponse request(String path) { return request("GET", path, (byte[]) null); } public HttpClientResponse request(String method, String path) { return request(method, path, (byte[]) null); } public HttpClientResponse request(String method, String path, byte[] data) { ObjectMapper mapper = new ObjectMapper(); URL url; try { url = new URL(baseUrl, path); } catch (MalformedURLException e) { throw new ElasticsearchException("Cannot parse " + path, e); } HttpURLConnection urlConnection; try { urlConnection = (HttpURLConnection) url.openConnection(); urlConnection.setRequestMethod(method); if (data != null) { urlConnection.setDoOutput(true); } if (encodedAuthorization != null) { urlConnection.setRequestProperty("Authorization", "Basic " + encodedAuthorization); } urlConnection.connect(); } catch (IOException e) { throw new ElasticsearchException("", e); } if (data != null) { OutputStream outputStream = null; try { outputStream = urlConnection.getOutputStream(); outputStream.write(data); } catch (IOException e) { throw new ElasticsearchException("", e); } finally { if (outputStream != null) { try { outputStream.close(); } catch (IOException e) { throw new ElasticsearchException("", e); } } } } int errorCode = -1; try { errorCode = urlConnection.getResponseCode(); InputStream inputStream = urlConnection.getInputStream(); return new HttpClientResponse(mapper.readValue(inputStream, Map.class), errorCode, null); } catch (IOException e) { InputStream errStream = urlConnection.getErrorStream(); String body = null; try { body = Streams.copyToString(new InputStreamReader(errStream)); } catch (IOException e1) { throw new ElasticsearchException("problem reading error stream", e1); } Map m = newHashMap(); m.put("body", body); return new HttpClientResponse(m, errorCode, e); } finally { urlConnection.disconnect(); } } @SuppressWarnings({"unchecked"}) public HttpClientResponse request(String method, String path, Map<String, Object> data) { ObjectMapper mapper = new ObjectMapper(); ByteArrayOutputStream out = new ByteArrayOutputStream(); try { mapper.writeValue(out, data); } catch (IOException e) { throw new ElasticsearchException("", e); } return request(method, path, out.toByteArray()); } }
{ "pile_set_name": "Github" }
// SPDX-License-Identifier: GPL-2.0-or-later /* * * Bluetooth HCI UART driver * * Copyright (C) 2000-2001 Qualcomm Incorporated * Copyright (C) 2002-2003 Maxim Krasnyansky <[email protected]> * Copyright (C) 2004-2005 Marcel Holtmann <[email protected]> */ #include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/types.h> #include <linux/fcntl.h> #include <linux/interrupt.h> #include <linux/ptrace.h> #include <linux/poll.h> #include <linux/slab.h> #include <linux/tty.h> #include <linux/errno.h> #include <linux/string.h> #include <linux/signal.h> #include <linux/ioctl.h> #include <linux/skbuff.h> #include <asm/unaligned.h> #include <net/bluetooth/bluetooth.h> #include <net/bluetooth/hci_core.h> #include "hci_uart.h" struct h4_struct { struct sk_buff *rx_skb; struct sk_buff_head txq; }; /* Initialize protocol */ static int h4_open(struct hci_uart *hu) { struct h4_struct *h4; BT_DBG("hu %p", hu); h4 = kzalloc(sizeof(*h4), GFP_KERNEL); if (!h4) return -ENOMEM; skb_queue_head_init(&h4->txq); hu->priv = h4; return 0; } /* Flush protocol data */ static int h4_flush(struct hci_uart *hu) { struct h4_struct *h4 = hu->priv; BT_DBG("hu %p", hu); skb_queue_purge(&h4->txq); return 0; } /* Close protocol */ static int h4_close(struct hci_uart *hu) { struct h4_struct *h4 = hu->priv; hu->priv = NULL; BT_DBG("hu %p", hu); skb_queue_purge(&h4->txq); kfree_skb(h4->rx_skb); hu->priv = NULL; kfree(h4); return 0; } /* Enqueue frame for transmittion (padding, crc, etc) */ static int h4_enqueue(struct hci_uart *hu, struct sk_buff *skb) { struct h4_struct *h4 = hu->priv; BT_DBG("hu %p skb %p", hu, skb); /* Prepend skb with frame type */ memcpy(skb_push(skb, 1), &hci_skb_pkt_type(skb), 1); skb_queue_tail(&h4->txq, skb); return 0; } static const struct h4_recv_pkt h4_recv_pkts[] = { { H4_RECV_ACL, .recv = hci_recv_frame }, { H4_RECV_SCO, .recv = hci_recv_frame }, { H4_RECV_EVENT, .recv = hci_recv_frame }, }; /* Recv data */ static int h4_recv(struct hci_uart *hu, const void *data, int count) { struct h4_struct *h4 = hu->priv; if (!test_bit(HCI_UART_REGISTERED, &hu->flags)) return -EUNATCH; h4->rx_skb = h4_recv_buf(hu->hdev, h4->rx_skb, data, count, h4_recv_pkts, ARRAY_SIZE(h4_recv_pkts)); if (IS_ERR(h4->rx_skb)) { int err = PTR_ERR(h4->rx_skb); bt_dev_err(hu->hdev, "Frame reassembly failed (%d)", err); h4->rx_skb = NULL; return err; } return count; } static struct sk_buff *h4_dequeue(struct hci_uart *hu) { struct h4_struct *h4 = hu->priv; return skb_dequeue(&h4->txq); } static const struct hci_uart_proto h4p = { .id = HCI_UART_H4, .name = "H4", .open = h4_open, .close = h4_close, .recv = h4_recv, .enqueue = h4_enqueue, .dequeue = h4_dequeue, .flush = h4_flush, }; int __init h4_init(void) { return hci_uart_register_proto(&h4p); } int __exit h4_deinit(void) { return hci_uart_unregister_proto(&h4p); } struct sk_buff *h4_recv_buf(struct hci_dev *hdev, struct sk_buff *skb, const unsigned char *buffer, int count, const struct h4_recv_pkt *pkts, int pkts_count) { struct hci_uart *hu = hci_get_drvdata(hdev); u8 alignment = hu->alignment ? hu->alignment : 1; /* Check for error from previous call */ if (IS_ERR(skb)) skb = NULL; while (count) { int i, len; /* remove padding bytes from buffer */ for (; hu->padding && count > 0; hu->padding--) { count--; buffer++; } if (!count) break; if (!skb) { for (i = 0; i < pkts_count; i++) { if (buffer[0] != (&pkts[i])->type) continue; skb = bt_skb_alloc((&pkts[i])->maxlen, GFP_ATOMIC); if (!skb) return ERR_PTR(-ENOMEM); hci_skb_pkt_type(skb) = (&pkts[i])->type; hci_skb_expect(skb) = (&pkts[i])->hlen; break; } /* Check for invalid packet type */ if (!skb) return ERR_PTR(-EILSEQ); count -= 1; buffer += 1; } len = min_t(uint, hci_skb_expect(skb) - skb->len, count); skb_put_data(skb, buffer, len); count -= len; buffer += len; /* Check for partial packet */ if (skb->len < hci_skb_expect(skb)) continue; for (i = 0; i < pkts_count; i++) { if (hci_skb_pkt_type(skb) == (&pkts[i])->type) break; } if (i >= pkts_count) { kfree_skb(skb); return ERR_PTR(-EILSEQ); } if (skb->len == (&pkts[i])->hlen) { u16 dlen; switch ((&pkts[i])->lsize) { case 0: /* No variable data length */ dlen = 0; break; case 1: /* Single octet variable length */ dlen = skb->data[(&pkts[i])->loff]; hci_skb_expect(skb) += dlen; if (skb_tailroom(skb) < dlen) { kfree_skb(skb); return ERR_PTR(-EMSGSIZE); } break; case 2: /* Double octet variable length */ dlen = get_unaligned_le16(skb->data + (&pkts[i])->loff); hci_skb_expect(skb) += dlen; if (skb_tailroom(skb) < dlen) { kfree_skb(skb); return ERR_PTR(-EMSGSIZE); } break; default: /* Unsupported variable length */ kfree_skb(skb); return ERR_PTR(-EILSEQ); } if (!dlen) { hu->padding = (skb->len - 1) % alignment; hu->padding = (alignment - hu->padding) % alignment; /* No more data, complete frame */ (&pkts[i])->recv(hdev, skb); skb = NULL; } } else { hu->padding = (skb->len - 1) % alignment; hu->padding = (alignment - hu->padding) % alignment; /* Complete frame */ (&pkts[i])->recv(hdev, skb); skb = NULL; } } return skb; } EXPORT_SYMBOL_GPL(h4_recv_buf);
{ "pile_set_name": "Github" }
+++ fragment = "copyright" #disabled = true date = "2016-09-07" weight = 110 background = "secondary" copyright = "" # default: Copyright $Year .Site.params.name attribution = true # enable attribution by setting it to true +++
{ "pile_set_name": "Github" }
package io.cattle.platform.configitem.server.resource; import java.io.IOException; import java.io.InputStream; import java.net.URL; import org.apache.commons.io.IOUtils; import org.apache.commons.io.output.CountingOutputStream; import org.apache.commons.io.output.NullOutputStream; public class URLResource extends AbstractResource { URL url; long size; public URLResource(String name, URL url) { super(name); this.url = url; calculateSize(); } protected void calculateSize() { InputStream is = null; CountingOutputStream os = null; try { os = new CountingOutputStream(new NullOutputStream()); is = getInputStream(); IOUtils.copy(is, os); size = os.getCount(); } catch (IOException e) { throw new IllegalStateException("Failed to count bytes for [" + url + "]", e); } finally { IOUtils.closeQuietly(is); IOUtils.closeQuietly(os); } } @Override public URL getURL() { return url; } @Override public long getSize() { return size; } @Override public InputStream getInputStream() throws IOException { return url.openStream(); } }
{ "pile_set_name": "Github" }
""" Boolean geometry utilities. """ from __future__ import absolute_import #Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module. import __init__ import os import sys import traceback __author__ = 'Enrique Perez ([email protected])' __credits__ = 'Art of Illusion <http://www.artofillusion.org/>' __date__ = '$Date: 2008/02/05 $' __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' globalTemporarySettingsPath = os.path.join(os.getcwd(), 'sfact_profiles')#(os.path.expanduser('~'), '.skeinforge')#thats default sfact way in own dir #globalTemporarySettingsPath = os.path.join(os.path.expanduser('~'), '.skeinforge')#thats default sf way in home dir #globalTemporarySettingsPath = os.path.join(os.path.expanduser('~'), '.sfact')#thats repetier compatible way in home dir def addToNamePathDictionary(directoryPath, namePathDictionary): 'Add to the name path dictionary.' pluginFileNames = getPluginFileNamesFromDirectoryPath(directoryPath) for pluginFileName in pluginFileNames: namePathDictionary[pluginFileName.replace('_', '')] = os.path.join(directoryPath, pluginFileName) def getAbsoluteFolderPath(filePath, folderName=''): 'Get the absolute folder path.' absoluteFolderPath = os.path.dirname(os.path.abspath(filePath)) if folderName == '': return absoluteFolderPath return os.path.join(absoluteFolderPath, folderName) def getAbsoluteFrozenFolderPath(filePath, folderName=''): 'Get the absolute frozen folder path.' if hasattr(sys, 'frozen'): if '.py' in filePath: filePath = ''.join(filePath.rpartition('\\')[: 2]) filePath = os.path.join(filePath, 'skeinforge_application') return getAbsoluteFolderPath(filePath, folderName) def getAnalyzePluginsDirectoryPath(subName=''): 'Get the analyze plugins directory path.' return getJoinedPath(getSkeinforgePluginsPath('analyze_plugins'), subName) def getCraftPluginsDirectoryPath(subName=''): 'Get the craft plugins directory path.' return getJoinedPath(getSkeinforgePluginsPath('craft_plugins'), subName) def getDocumentationPath(subName=''): 'Get the documentation file path.' return getJoinedPath(getFabmetheusPath('documentation'), subName) def getElementsPath(subName=''): 'Get the evaluate_elements directory path.' return getJoinedPath(getGeometryUtilitiesPath('evaluate_elements'), subName) def getEndsWithList(word, wordEndings): 'Determine if the word ends with a list.' for wordEnding in wordEndings: if word.endswith(wordEnding): return True return False def getFabmetheusPath(subName=''): 'Get the fabmetheus directory path.' fabmetheusFile = None if hasattr(sys, 'frozen'): fabmetheusFile = unicode(sys.executable, sys.getfilesystemencoding()) else: fabmetheusFile = os.path.dirname(os.path.abspath(__file__)) return getJoinedPath(os.path.dirname(fabmetheusFile), subName) def getFabmetheusToolsPath(subName=''): 'Get the fabmetheus tools directory path.' return getJoinedPath(getFabmetheusUtilitiesPath('fabmetheus_tools'), subName) def getFabmetheusUtilitiesPath(subName=''): 'Get the fabmetheus utilities directory path.' return getJoinedPath(getFabmetheusPath('fabmetheus_utilities'), subName) def getFileNamesByFilePaths(pluginFilePaths): 'Get the file names of the plugins by the file paths.' fileNames = [] for pluginFilePath in pluginFilePaths: pluginBasename = os.path.basename(pluginFilePath) pluginBasename = getUntilDot(pluginBasename) fileNames.append(pluginBasename) return fileNames def getFilePaths(fileInDirectory=''): 'Get the file paths in the directory of the file in directory.' directoryName = os.getcwd() if fileInDirectory != '': directoryName = os.path.dirname(fileInDirectory) return getFilePathsByDirectory(directoryName) def getFilePathsByDirectory(directoryName): 'Get the file paths in the directory of the file in directory.' absoluteDirectoryPath = os.path.abspath(directoryName) directory = os.listdir(directoryName) filePaths = [] for fileName in directory: filePaths.append(os.path.join(absoluteDirectoryPath, fileName)) return filePaths def getFilePathsRecursively(fileInDirectory=''): 'Get the file paths in the directory of the file in directory.' filePaths = getFilePaths(fileInDirectory) filePathsRecursively = filePaths[:] for filePath in filePaths: if os.path.isdir(filePath): directory = os.listdir(filePath) if len(directory) > 0: filePathsRecursively += getFilePathsRecursively(os.path.join(filePath, directory[0])) return filePathsRecursively def getFilePathWithUnderscoredBasename(fileName, suffix): 'Get the file path with all spaces in the basename replaced with underscores.' suffixFileName = getUntilDot(fileName) + suffix suffixDirectoryName = os.path.dirname(suffixFileName) suffixReplacedBaseName = os.path.basename(suffixFileName).replace(' ', '_') return os.path.join(suffixDirectoryName, suffixReplacedBaseName) def getFilesWithFileTypesWithoutWords(fileTypes, words = [], fileInDirectory=''): 'Get files which have a given file type, but with do not contain a word in a list.' filesWithFileTypes = [] for filePath in getFilePaths(fileInDirectory): for fileType in fileTypes: if isFileWithFileTypeWithoutWords(fileType, filePath, words): filesWithFileTypes.append(filePath) filesWithFileTypes.sort() return filesWithFileTypes def getFilesWithFileTypesWithoutWordsRecursively(fileTypes, words = [], fileInDirectory=''): 'Get files recursively which have a given file type, but with do not contain a word in a list.' filesWithFileTypesRecursively = [] for filePath in getFilePathsRecursively(fileInDirectory): for fileType in fileTypes: if isFileWithFileTypeWithoutWords(fileType, filePath, words): filesWithFileTypesRecursively.append(filePath) filesWithFileTypesRecursively.sort() return filesWithFileTypesRecursively def getFilesWithFileTypeWithoutWords(fileType, words = [], fileInDirectory=''): 'Get files which have a given file type, but with do not contain a word in a list.' filesWithFileType = [] for filePath in getFilePaths(fileInDirectory): if isFileWithFileTypeWithoutWords(fileType, filePath, words): filesWithFileType.append(filePath) filesWithFileType.sort() return filesWithFileType def getFileText(fileName, printWarning=True, readMode='r'): 'Get the entire text of a file.' try: file = open(fileName, readMode) fileText = file.read() file.close() return fileText except IOError: if printWarning: print('The file ' + fileName + ' does not exist.') return '' def getFileTextInFileDirectory(fileInDirectory, fileName, readMode='r'): 'Get the entire text of a file in the directory of the file in directory.' absoluteFilePathInFileDirectory = os.path.join(os.path.dirname(fileInDirectory), fileName) return getFileText(absoluteFilePathInFileDirectory, True, readMode) def getFundamentalsPath(subName=''): 'Get the evaluate_fundamentals directory path.' return getJoinedPath(getGeometryUtilitiesPath('evaluate_fundamentals'), subName) def getGeometryDictionary(folderName): 'Get to the geometry name path dictionary.' geometryDictionary={} geometryDirectory = getGeometryPath() addToNamePathDictionary(os.path.join(geometryDirectory, folderName), geometryDictionary) geometryPluginsDirectory = getFabmetheusUtilitiesPath('geometry_plugins') addToNamePathDictionary(os.path.join(geometryPluginsDirectory, folderName), geometryDictionary) return geometryDictionary def getGeometryPath(subName=''): 'Get the geometry directory path.' return getJoinedPath(getFabmetheusUtilitiesPath('geometry'), subName) def getGeometryToolsPath(subName=''): 'Get the geometry tools directory path.' return getJoinedPath(getGeometryPath('geometry_tools'), subName) def getGeometryUtilitiesPath(subName=''): 'Get the geometry_utilities directory path.' return getJoinedPath(getGeometryPath('geometry_utilities'), subName) def getInterpretPluginsPath(subName=''): 'Get the interpret plugins directory path.' return getJoinedPath(getFabmetheusToolsPath('interpret_plugins'), subName) def getJoinedPath(path, subName=''): 'Get the joined file path.' if subName == '': return path return os.path.join(path, subName) def getModuleWithDirectoryPath(directoryPath, fileName): 'Get the module from the fileName and folder name.' if fileName == '': print('The file name in getModule in archive was empty.') return None originalSystemPath = sys.path[:] try: sys.path.insert(0, directoryPath) folderPluginsModule = __import__(fileName) sys.path = originalSystemPath return folderPluginsModule except: sys.path = originalSystemPath print('') print('Exception traceback in getModuleWithDirectoryPath in archive:') traceback.print_exc(file=sys.stdout) print('') print('That error means; could not import a module with the fileName ' + fileName) print('and an absolute directory name of ' + directoryPath) print('') return None def getModuleWithPath(path): 'Get the module from the path.' return getModuleWithDirectoryPath(os.path.dirname(path), os.path.basename(path)) def getPluginFileNamesFromDirectoryPath(directoryPath): 'Get the file names of the python plugins in the directory path.' fileInDirectory = os.path.join(directoryPath, '__init__.py') return getFileNamesByFilePaths(getPythonFileNamesExceptInit(fileInDirectory)) def getProfilesPath(subName=''): 'Get the profiles directory path, which is the settings directory joined with profiles.' return getJoinedPath(getSettingsPath('profiles'), subName) def getPythonDirectoryNames(directoryName): 'Get the python directories.' pythonDirectoryNames = [] directory = os.listdir(directoryName) for fileName in directory: subdirectoryName = os.path.join(directoryName, fileName) if os.path.isdir(subdirectoryName): if os.path.isfile(os.path.join(subdirectoryName, '__init__.py')): pythonDirectoryNames.append(subdirectoryName) return pythonDirectoryNames def getPythonDirectoryNamesRecursively(directoryName=''): 'Get the python directories recursively.' recursivePythonDirectoryNames = [] if directoryName == '': directoryName = os.getcwd() if os.path.isfile(os.path.join(directoryName, '__init__.py')): recursivePythonDirectoryNames.append(directoryName) pythonDirectoryNames = getPythonDirectoryNames(directoryName) for pythonDirectoryName in pythonDirectoryNames: recursivePythonDirectoryNames += getPythonDirectoryNamesRecursively(pythonDirectoryName) else: return [] return recursivePythonDirectoryNames def getPythonFileNamesExceptInit(fileInDirectory=''): 'Get the python fileNames of the directory which the fileInDirectory is in, except for the __init__.py file.' pythonFileNamesExceptInit = getFilesWithFileTypeWithoutWords('py', ['__init__.py'], fileInDirectory) pythonFileNamesExceptInit.sort() return pythonFileNamesExceptInit def getPythonFileNamesExceptInitRecursively(directoryName=''): 'Get the python fileNames of the directory recursively, except for the __init__.py files.' pythonDirectoryNames = getPythonDirectoryNamesRecursively(directoryName) pythonFileNamesExceptInitRecursively = [] for pythonDirectoryName in pythonDirectoryNames: pythonFileNamesExceptInitRecursively += getPythonFileNamesExceptInit(os.path.join(pythonDirectoryName, '__init__.py')) pythonFileNamesExceptInitRecursively.sort() return pythonFileNamesExceptInitRecursively def getSettingsPath(subName=''): 'Get the settings directory path, which is the home directory joined with .skeinforge.' global globalTemporarySettingsPath return getJoinedPath(globalTemporarySettingsPath, subName) def getSkeinforgePath(subName=''): 'Get the skeinforge directory path.' return getJoinedPath(getFabmetheusPath('skeinforge_application'), subName) def getSkeinforgePluginsPath(subName=''): 'Get the skeinforge plugins directory path.' return getJoinedPath(getSkeinforgePath('skeinforge_plugins'), subName) def getSummarizedFileName(fileName): 'Get the fileName basename if the file is in the current working directory, otherwise return the original full name.' if os.getcwd() == os.path.dirname(fileName): return os.path.basename(fileName) return fileName def getTemplatesPath(subName=''): 'Get the templates directory path.' return getJoinedPath(getFabmetheusUtilitiesPath('templates'), subName) def getTextIfEmpty(fileName, text): 'Get the text from a file if it the text is empty.' if text != '': return text return getFileText(fileName) def getTextLines(text): 'Get the all the lines of text of a text.' if '\r' in text: text = text.replace('\r', '\n').replace('\n\n', '\n') textLines = text.split('\n') if len(textLines) == 1: if textLines[0] == '': return [] return textLines def getUntilDot(text): 'Get the text until the last dot, if any.' dotIndex = text.rfind('.') if dotIndex < 0: return text return text[: dotIndex] def getVersionFileName(): 'Get the file name of the version date.getFabmetheusUtilitiesPath(subName='')' return getFabmetheusUtilitiesPath('version.txt') def isFileWithFileTypeWithoutWords(fileType, fileName, words): 'Determine if file has a given file type, but with does not contain a word in a list.' fileName = os.path.basename(fileName) fileTypeDot = '.' + fileType if not fileName.endswith(fileTypeDot): return False for word in words: if fileName.find(word) >= 0: return False return True def makeDirectory(directoryPath): 'Make a directory if it does not already exist.' if os.path.isdir(directoryPath): return try: print('The following directory was made:') print(os.path.abspath(directoryPath)) os.makedirs(directoryPath) except OSError: print('Skeinforge can not make the directory %s so give it read/write permission for that directory and the containing directory.' % directoryPath) def removeBackupFilesByType(fileType): 'Remove backup files by type.' backupFilePaths = getFilesWithFileTypesWithoutWordsRecursively([fileType + '~']) for backupFilePath in backupFilePaths: os.remove(backupFilePath) def removeBackupFilesByTypes(fileTypes): 'Remove backup files by types.' for fileType in fileTypes: removeBackupFilesByType(fileType) def writeFileMessageEnd(end, fileName, fileText, message): 'Write to a fileName with a suffix and print a message.' suffixFileName = getUntilDot(fileName) + end writeFileText(suffixFileName, fileText) print(message + getSummarizedFileName(suffixFileName)) def writeFileText(fileName, fileText, writeMode='w+'): 'Write a text to a file.' try: file = open(fileName, writeMode) file.write(fileText) file.close() except IOError: print('The file ' + fileName + ' can not be written to.')
{ "pile_set_name": "Github" }
export default { adminUser: { lb_form_title: "填写用户信息", lb_userName: "用户名", lb_userGroup: "用户类型", lb_name: "姓名", lb_phoneNum: "手机号", lb_countryCode: "国家码", lb_password: "密码", lb_confirmPassword: "确认密码", lb_email: "邮箱", lb_enable: "是否有效", lb_comments: "备注", lb_options: "操作", scr_del_ask: "此操作将永久删除该用户, 是否继续?", }, //LangEnd }
{ "pile_set_name": "Github" }
// -*- C++ -*- // Copyright (C) 2005-2013 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the terms // of the GNU General Public License as published by the Free Software // Foundation; either version 3, or (at your option) any later // version. // 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 // General Public License for more details. // Under Section 7 of GPL version 3, you are granted additional // permissions described in the GCC Runtime Library Exception, version // 3.1, as published by the Free Software Foundation. // You should have received a copy of the GNU General Public License and // a copy of the GCC Runtime Library Exception along with this program; // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see // <http://www.gnu.org/licenses/>. // Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL. // Permission to use, copy, modify, sell, and distribute this software // is hereby granted without fee, provided that the above copyright // notice appears in all copies, and that both that copyright notice // and this permission notice appear in supporting documentation. None // of the above authors, nor IBM Haifa Research Laboratories, make any // representation about the suitability of this software for any // purpose. It is provided "as is" without express or implied // warranty. /** * @file ov_tree_map_/node_iterators.hpp * Contains an implementation class for ov_tree_. */ #ifndef PB_DS_OV_TREE_NODE_ITERATORS_HPP #define PB_DS_OV_TREE_NODE_ITERATORS_HPP #include <ext/pb_ds/tag_and_trait.hpp> #include <ext/pb_ds/detail/type_utils.hpp> #include <debug/debug.h> namespace __gnu_pbds { namespace detail { #define PB_DS_OV_TREE_CONST_NODE_ITERATOR_C_DEC \ ov_tree_node_const_it_<Value_Type, Metadata_Type, _Alloc> /// Const node reference. template<typename Value_Type, typename Metadata_Type, typename _Alloc> class ov_tree_node_const_it_ { protected: typedef typename _Alloc::template rebind< Value_Type>::other::pointer pointer; typedef typename _Alloc::template rebind< Value_Type>::other::const_pointer const_pointer; typedef typename _Alloc::template rebind< Metadata_Type>::other::const_pointer const_metadata_pointer; typedef PB_DS_OV_TREE_CONST_NODE_ITERATOR_C_DEC this_type; protected: template<typename Ptr> inline static Ptr mid_pointer(Ptr p_begin, Ptr p_end) { _GLIBCXX_DEBUG_ASSERT(p_end >= p_begin); return (p_begin + (p_end - p_begin) / 2); } public: typedef trivial_iterator_tag iterator_category; typedef trivial_iterator_difference_type difference_type; typedef typename _Alloc::template rebind< Value_Type>::other::const_pointer value_type; typedef typename _Alloc::template rebind< typename remove_const< Value_Type>::type>::other::const_pointer reference; typedef typename _Alloc::template rebind< typename remove_const< Value_Type>::type>::other::const_pointer const_reference; typedef Metadata_Type metadata_type; typedef typename _Alloc::template rebind< metadata_type>::other::const_reference metadata_const_reference; public: inline ov_tree_node_const_it_(const_pointer p_nd = 0, const_pointer p_begin_nd = 0, const_pointer p_end_nd = 0, const_metadata_pointer p_metadata = 0) : m_p_value(const_cast<pointer>(p_nd)), m_p_begin_value(const_cast<pointer>(p_begin_nd)), m_p_end_value(const_cast<pointer>(p_end_nd)), m_p_metadata(p_metadata) { } inline const_reference operator*() const { return m_p_value; } inline metadata_const_reference get_metadata() const { enum { has_metadata = !is_same<Metadata_Type, null_type>::value }; PB_DS_STATIC_ASSERT(should_have_metadata, has_metadata); _GLIBCXX_DEBUG_ASSERT(m_p_metadata != 0); return *m_p_metadata; } /// Returns the node iterator associated with the left node. inline this_type get_l_child() const { if (m_p_begin_value == m_p_value) return (this_type(m_p_begin_value, m_p_begin_value, m_p_begin_value)); const_metadata_pointer p_begin_metadata = m_p_metadata - (m_p_value - m_p_begin_value); return (this_type(mid_pointer(m_p_begin_value, m_p_value), m_p_begin_value, m_p_value, mid_pointer(p_begin_metadata, m_p_metadata))); } /// Returns the node iterator associated with the right node. inline this_type get_r_child() const { if (m_p_value == m_p_end_value) return (this_type(m_p_end_value, m_p_end_value, m_p_end_value)); const_metadata_pointer p_end_metadata = m_p_metadata + (m_p_end_value - m_p_value); return (this_type(mid_pointer(m_p_value + 1, m_p_end_value), m_p_value + 1, m_p_end_value,(m_p_metadata == 0) ? 0 : mid_pointer(m_p_metadata + 1, p_end_metadata))); } inline bool operator==(const this_type& other) const { const bool is_end = m_p_begin_value == m_p_end_value; const bool is_other_end = other.m_p_begin_value == other.m_p_end_value; if (is_end) return (is_other_end); if (is_other_end) return (is_end); return m_p_value == other.m_p_value; } inline bool operator!=(const this_type& other) const { return !operator==(other); } public: pointer m_p_value; pointer m_p_begin_value; pointer m_p_end_value; const_metadata_pointer m_p_metadata; }; #define PB_DS_OV_TREE_NODE_ITERATOR_C_DEC \ ov_tree_node_it_<Value_Type, Metadata_Type, _Alloc> /// Node reference. template<typename Value_Type, typename Metadata_Type, typename _Alloc> class ov_tree_node_it_ : public PB_DS_OV_TREE_CONST_NODE_ITERATOR_C_DEC { private: typedef PB_DS_OV_TREE_NODE_ITERATOR_C_DEC this_type; typedef PB_DS_OV_TREE_CONST_NODE_ITERATOR_C_DEC base_type; typedef typename base_type::pointer pointer; typedef typename base_type::const_pointer const_pointer; typedef typename base_type::const_metadata_pointer const_metadata_pointer; public: typedef trivial_iterator_tag iterator_category; typedef trivial_iterator_difference_type difference_type; typedef typename _Alloc::template rebind< Value_Type>::other::pointer value_type; typedef typename _Alloc::template rebind< typename remove_const< Value_Type>::type>::other::pointer reference; typedef typename _Alloc::template rebind< typename remove_const< Value_Type>::type>::other::pointer const_reference; inline ov_tree_node_it_(const_pointer p_nd = 0, const_pointer p_begin_nd = 0, const_pointer p_end_nd = 0, const_metadata_pointer p_metadata = 0) : base_type(p_nd, p_begin_nd, p_end_nd, p_metadata) { } /// Access. inline reference operator*() const { return reference(base_type::m_p_value); } /// Returns the node reference associated with the left node. inline ov_tree_node_it_ get_l_child() const { if (base_type::m_p_begin_value == base_type::m_p_value) return (this_type(base_type::m_p_begin_value, base_type::m_p_begin_value, base_type::m_p_begin_value)); const_metadata_pointer p_begin_metadata = base_type::m_p_metadata - (base_type::m_p_value - base_type::m_p_begin_value); return (this_type(base_type::mid_pointer(base_type::m_p_begin_value, base_type::m_p_value), base_type::m_p_begin_value, base_type::m_p_value, base_type::mid_pointer(p_begin_metadata, base_type::m_p_metadata))); } /// Returns the node reference associated with the right node. inline ov_tree_node_it_ get_r_child() const { if (base_type::m_p_value == base_type::m_p_end_value) return this_type(base_type::m_p_end_value, base_type::m_p_end_value, base_type::m_p_end_value); const_metadata_pointer p_end_metadata = base_type::m_p_metadata + (base_type::m_p_end_value - base_type::m_p_value); return (this_type(base_type::mid_pointer(base_type::m_p_value + 1, base_type::m_p_end_value), base_type::m_p_value + 1, base_type::m_p_end_value,(base_type::m_p_metadata == 0)? 0 : base_type::mid_pointer(base_type::m_p_metadata + 1, p_end_metadata))); } }; #undef PB_DS_OV_TREE_NODE_ITERATOR_C_DEC #undef PB_DS_OV_TREE_CONST_NODE_ITERATOR_C_DEC } // namespace detail } // namespace __gnu_pbds #endif
{ "pile_set_name": "Github" }
// SPDX-License-Identifier: GPL-2.0 /* * core.c - contains all core device and protocol registration functions * * Copyright 2002 Adam Belay <[email protected]> */ #include <linux/pnp.h> #include <linux/types.h> #include <linux/list.h> #include <linux/device.h> #include <linux/module.h> #include <linux/mutex.h> #include <linux/init.h> #include <linux/string.h> #include <linux/slab.h> #include <linux/errno.h> #include <linux/dma-mapping.h> #include "base.h" static LIST_HEAD(pnp_protocols); LIST_HEAD(pnp_global); DEFINE_MUTEX(pnp_lock); /* * ACPI or PNPBIOS should tell us about all platform devices, so we can * skip some blind probes. ISAPNP typically enumerates only plug-in ISA * devices, not built-in things like COM ports. */ int pnp_platform_devices; EXPORT_SYMBOL(pnp_platform_devices); void *pnp_alloc(long size) { void *result; result = kzalloc(size, GFP_KERNEL); if (!result) { printk(KERN_ERR "pnp: Out of Memory\n"); return NULL; } return result; } static void pnp_remove_protocol(struct pnp_protocol *protocol) { mutex_lock(&pnp_lock); list_del(&protocol->protocol_list); mutex_unlock(&pnp_lock); } /** * pnp_protocol_register - adds a pnp protocol to the pnp layer * @protocol: pointer to the corresponding pnp_protocol structure * * Ex protocols: ISAPNP, PNPBIOS, etc */ int pnp_register_protocol(struct pnp_protocol *protocol) { struct list_head *pos; int nodenum, ret; INIT_LIST_HEAD(&protocol->devices); INIT_LIST_HEAD(&protocol->cards); nodenum = 0; mutex_lock(&pnp_lock); /* assign the lowest unused number */ list_for_each(pos, &pnp_protocols) { struct pnp_protocol *cur = to_pnp_protocol(pos); if (cur->number == nodenum) { pos = &pnp_protocols; nodenum++; } } protocol->number = nodenum; dev_set_name(&protocol->dev, "pnp%d", nodenum); list_add_tail(&protocol->protocol_list, &pnp_protocols); mutex_unlock(&pnp_lock); ret = device_register(&protocol->dev); if (ret) pnp_remove_protocol(protocol); return ret; } /** * pnp_protocol_unregister - removes a pnp protocol from the pnp layer * @protocol: pointer to the corresponding pnp_protocol structure */ void pnp_unregister_protocol(struct pnp_protocol *protocol) { pnp_remove_protocol(protocol); device_unregister(&protocol->dev); } static void pnp_free_ids(struct pnp_dev *dev) { struct pnp_id *id; struct pnp_id *next; id = dev->id; while (id) { next = id->next; kfree(id); id = next; } } void pnp_free_resource(struct pnp_resource *pnp_res) { list_del(&pnp_res->list); kfree(pnp_res); } void pnp_free_resources(struct pnp_dev *dev) { struct pnp_resource *pnp_res, *tmp; list_for_each_entry_safe(pnp_res, tmp, &dev->resources, list) { pnp_free_resource(pnp_res); } } static void pnp_release_device(struct device *dmdev) { struct pnp_dev *dev = to_pnp_dev(dmdev); pnp_free_ids(dev); pnp_free_resources(dev); pnp_free_options(dev); kfree(dev); } struct pnp_dev *pnp_alloc_dev(struct pnp_protocol *protocol, int id, const char *pnpid) { struct pnp_dev *dev; struct pnp_id *dev_id; dev = kzalloc(sizeof(struct pnp_dev), GFP_KERNEL); if (!dev) return NULL; INIT_LIST_HEAD(&dev->resources); INIT_LIST_HEAD(&dev->options); dev->protocol = protocol; dev->number = id; dev->dma_mask = DMA_BIT_MASK(24); dev->dev.parent = &dev->protocol->dev; dev->dev.bus = &pnp_bus_type; dev->dev.dma_mask = &dev->dma_mask; dev->dev.coherent_dma_mask = dev->dma_mask; dev->dev.release = &pnp_release_device; dev_set_name(&dev->dev, "%02x:%02x", dev->protocol->number, dev->number); dev_id = pnp_add_id(dev, pnpid); if (!dev_id) { kfree(dev); return NULL; } return dev; } static void pnp_delist_device(struct pnp_dev *dev) { mutex_lock(&pnp_lock); list_del(&dev->global_list); list_del(&dev->protocol_list); mutex_unlock(&pnp_lock); } int __pnp_add_device(struct pnp_dev *dev) { int ret; pnp_fixup_device(dev); dev->status = PNP_READY; mutex_lock(&pnp_lock); list_add_tail(&dev->global_list, &pnp_global); list_add_tail(&dev->protocol_list, &dev->protocol->devices); mutex_unlock(&pnp_lock); ret = device_register(&dev->dev); if (ret) pnp_delist_device(dev); else if (dev->protocol->can_wakeup) device_set_wakeup_capable(&dev->dev, dev->protocol->can_wakeup(dev)); return ret; } /* * pnp_add_device - adds a pnp device to the pnp layer * @dev: pointer to dev to add * * adds to driver model, name database, fixups, interface, etc. */ int pnp_add_device(struct pnp_dev *dev) { int ret; char buf[128]; int len = 0; struct pnp_id *id; if (dev->card) return -EINVAL; ret = __pnp_add_device(dev); if (ret) return ret; buf[0] = '\0'; for (id = dev->id; id; id = id->next) len += scnprintf(buf + len, sizeof(buf) - len, " %s", id->id); dev_printk(KERN_DEBUG, &dev->dev, "%s device, IDs%s (%s)\n", dev->protocol->name, buf, dev->active ? "active" : "disabled"); return 0; } void __pnp_remove_device(struct pnp_dev *dev) { pnp_delist_device(dev); device_unregister(&dev->dev); } static int __init pnp_init(void) { return bus_register(&pnp_bus_type); } subsys_initcall(pnp_init); int pnp_debug; #if defined(CONFIG_PNP_DEBUG_MESSAGES) module_param_named(debug, pnp_debug, int, 0644); #endif
{ "pile_set_name": "Github" }
#pragma once #include <stdint.h> uint64_t singleTextureVS[] = { 0xe0024c6700601a00, 0x100210a715c27d80, 0x100200e715c27d80, 0x100049e220802037, 0x100049e1200e003e, 0x1002416321802477, 0x100049e2200e003e, 0x100250e0218026b7, 0x100049e3200e003e, 0x10025121218020f7, 0x100049e0200e003e, 0x1002410181c27236, 0xe0025c6700001a00, 0x100049e020801037, 0x100208e701167c00, 0x1002580181c207f6, 0x10025d2335801037, 0x100049e220801037, 0x10020867019c4ec0, 0x100240a2219c3e84, 0x100049e320801037, 0x1002116701127cc0, 0xd00208e7029e1e80, 0x10025806210a0de3, 0x100049e220827006, 0x10024863211a03d6, 0x10124020278276ce, 0x100049e1201a7006, 0x10220027079e7240, 0x1002086701805f80, 0x10024c2035020d8f, 0x100049e1201a7006, 0x10024c2081c203f6, 0x10020c27151a7d80, 0x18020c2708067d80, 0x1a020c2708067d80, 0x1c020c2708067d80, 0x1e020c2708067d80, 0x10024c2195c27036, 0x10020c27159e7240, 0x300009e7009e7000, 0x100009e7009e7000, 0x100009e7009e7000, }; uint64_t singleTextureCS[] = { 0xe0024c6700301a00, 0x100200a715c27d80, 0x100210a715c27d80, 0x100049e1200a003e, 0x100049e020802037, 0x10024122210a023e, 0x100049e320802037, 0x100049e120802037, 0x10025060210a047e, 0x100240e2218020f7, 0x100049e3200a003e, 0x1002406281c276b6, 0x100049e020827032, 0x1002502321120c3a, 0x10024821210e0cfa, 0x1002112701800f80, 0x100248e221801e72, 0xe0025c6700001a00, 0x1002487081044cbf, 0x1002082701827180, 0x100258b481827780, 0x1002417081827392, 0x100049e320827016, 0x10020c2715167d80, 0x10024c20359e7004, 0xd0020867029e1e00, 0x100049c3209e7021, 0x100049e12080403e, 0x100049e2209c300f, 0x10124020279c349f, 0x1022402227160037, 0x100049e3209c3017, 0x10020c2715027d80, 0x10020c2701827780, 0x10020c27159c3fc0, 0x300009e7009e7000, 0x100009e7009e7000, 0x100009e7009e7000, }; uint64_t singleTextureClippingPlaneVS[] = { 0xe0024c6700601a00, 0x1002122715c27d80, 0x1002026715c27d80, 0x100049e02080803e, 0x100049e22080803e, 0x100049e120260037, 0x100242a321260077, 0x10025261212604fe, 0x100049e320808037, 0x100242222180867e, 0x100049e320260037, 0x100251e0218084f7, 0x100049e22026003e, 0x100251a1218080b7, 0x100049e32026003e, 0x10025160212602fe, 0x100049e220808037, 0x1002414281c27436, 0x100049e32080803e, 0x100049e220260037, 0x10025120218026be, 0x1002504181c09e36, 0x100049e320802037, 0x100049e02080203e, 0x100201a7019c5ec0, 0x10020127019c7e00, 0x100049e120802037, 0x100049e22080203e, 0x100049e32080203e, 0x100049e020802037, 0x100210e701227c40, 0x100200e7012a7c80, 0x100212e7019c4ec0, 0x100212a701167c00, 0x10020867010e0dc0, 0x100208e701801f80, 0x100049e020827031, 0x100049e220802037, 0x100241e121806eb3, 0x10020827019e7200, 0x100208e701803f80, 0x1002587481120ddb, 0x100049e220827031, 0x100202e7019e7080, 0x100049e0209e701c, 0xd0020867029e1e00, 0x10025802211e0de1, 0x100049e220827006, 0x10020867011a0dc0, 0x100049e3200a7016, 0x10124020278276ce, 0x100049e1200a7006, 0x100208a70180af80, 0x1022402227827256, 0xe0025c6700001a00, 0x100049e3200a7016, 0x10020c2715027d80, 0x10024c2081c207f6, 0x10020c27150a7d80, 0x18020c2708067d80, 0x1a020c2708067d80, 0x1c020c2708067d80, 0x1e020c2708067d80, 0x1002487095c27d80, 0x100248308180bf89, 0x100049e320827030, 0x10020c27012e7cc0, 0x300009e7009e7000, 0x100009e7009e7000, 0x100009e7009e7000, }; uint64_t singleTextureClippingPlaneCS[] = { 0xe0024c6700301a00, 0x100200a715c27d80, 0x100210a715c27d80, 0x100049e1200a003e, 0x100049e020802037, 0x10024122210a023e, 0x100049e320802037, 0x100049e120802037, 0x10025060210a047e, 0x100240e2218020f7, 0x100049e3200a003e, 0x1002406281c276b6, 0x100049e020827032, 0x1002502321120c3a, 0x10024821210e0cfa, 0x1002112701800f80, 0x100248e221801e72, 0xe0025c6700001a00, 0x1002487081044cbf, 0x1002082701827180, 0x100258b481827780, 0x1002417081827392, 0x100049e320827016, 0x10020c2715167d80, 0x10024c20359e7004, 0xd0020867029e1e00, 0x100049c3209e7021, 0x100049e12080403e, 0x100049e2209c300f, 0x10124020279c349f, 0x1022402227160037, 0x100049e3209c3017, 0x10020c2715027d80, 0x10020c2701827780, 0x10020c27159c3fc0, 0x300009e7009e7000, 0x100009e7009e7000, 0x100009e7009e7000, }; uint64_t multiTextureVS[] = { 0xe0024c6700801a00, 0x100210a715c27d80, 0x100200e715c27d80, 0x100049e020802037, 0x100049e3200e003e, 0x10024161218020f7, 0x100049e0200e003e, 0x100250e221802237, 0x100049e1200e003e, 0x1002512321802477, 0x100049e2200e003e, 0x1002410181c276b6, 0xe0025c6700001a00, 0x100049e220801037, 0x1002086701167c80, 0x1002588181c203f6, 0x10025d21358014b7, 0x100049e020801037, 0x100208e7019c4e40, 0x100240a0219c3e14, 0x100049e120801037, 0x1002116701127c40, 0xd0020867029e1e00, 0x10025886210a0de1, 0x100049e020827016, 0x100248e1211a07c6, 0x101240222782725e, 0x100049e3201a7016, 0x1022402087c276f6, 0x100208e701805f80, 0x10024c2235020d9f, 0x100049e3201a7016, 0x10024c2181c207f6, 0x10020c27151a7d80, 0x18020c2708067d80, 0x1a020c2708067d80, 0x1c020c2708067d80, 0x1e020c2708067d80, 0x100248b095c27d80, 0x100248f095c27d89, 0x10020c27159e7480, 0x10020c27159e76c0, 0x300009e7009e7000, 0x100009e7009e7000, 0x100009e7009e7000, }; uint64_t multiTextureCS[] = { 0xe0024c6700301a00, 0x100200a715c27d80, 0x100210a715c27d80, 0x100049e1200a003e, 0x100049e020802037, 0x10024122210a023e, 0x100049e320802037, 0x100049e120802037, 0x10025060210a047e, 0x100240e2218020f7, 0x100049e3200a003e, 0x1002406281c276b6, 0x100049e020827032, 0x1002502321120c3a, 0x10024821210e0cfa, 0x1002112701800f80, 0x100248e221801e72, 0xe0025c6700001a00, 0x1002487081044cbf, 0x1002082701827180, 0x100258b481827780, 0x1002417081827392, 0x100049e320827016, 0x10020c2715167d80, 0x10024c20359e7004, 0xd0020867029e1e00, 0x100049c3209e7021, 0x100049e12080403e, 0x100049e2209c300f, 0x10124020279c349f, 0x1022402227160037, 0x100049e3209c3017, 0x10020c2715027d80, 0x10020c2701827780, 0x10020c27159c3fc0, 0x300009e7009e7000, 0x100009e7009e7000, 0x100009e7009e7000, }; uint64_t multiTextureClippingPlaneVS[] = { 0xe0024c6700801a00, 0x1002122715c27d80, 0x1002026715c27d80, 0x100049e22080803e, 0x100049e02080803e, 0x100049e320260037, 0x100242a1212604f7, 0x100252632126007e, 0x100049e120808037, 0x10024220218082fe, 0x100049e120260037, 0x100251e221808077, 0x100049e02026003e, 0x100251a321808437, 0x100049e12026003e, 0x100251622126067e, 0x100049e020808037, 0x1002414281c270b6, 0x100049e12080803e, 0x100049e020260037, 0x100251222180223e, 0x1002504181c09eb6, 0x100049e120802037, 0x100049e22080203e, 0x100201a7019c5e40, 0x10020127019c7e80, 0x100049e320802037, 0x100049e02080203e, 0x100049e12080203e, 0x100049e220802037, 0x100210e701227cc0, 0x100200e7012a7c00, 0x100212e7019c4e40, 0x100212a701167c80, 0x100208e7010e0dc0, 0x1002086701801f80, 0x100049e220827033, 0x100049e020802037, 0x100241e321806e31, 0x100208a7019e7680, 0x1002086701803f80, 0x100258f481120dc9, 0x100049e020827033, 0x100202e7019e7400, 0x100049e2209e700c, 0xd00208e7029e1e80, 0x10025882211e0de3, 0x100049e020827016, 0x100208e7011a0dc0, 0x100049e1200a7006, 0x101240222782725e, 0x100049e3200a7016, 0x100208270180af80, 0x10224020278276c6, 0xe0025c6700001a00, 0x100049e1200a7006, 0x10020c2715027d80, 0x10024c2081c203f6, 0x10020c27150a7d80, 0x18020c2708067d80, 0x1a020c2708067d80, 0x1c020c2708067d80, 0x1e020c2708067d80, 0x10024c2195c27036, 0x10024c2295c27276, 0x100248f095c27d92, 0x100248b08180bf9b, 0x100049e120827032, 0x10020c27012e7c40, 0x300009e7009e7000, 0x100009e7009e7000, 0x100009e7009e7000, }; uint64_t multiTextureClippingPlaneCS[] = { 0xe0024c6700301a00, 0x100200a715c27d80, 0x100210a715c27d80, 0x100049e1200a003e, 0x100049e020802037, 0x10024122210a023e, 0x100049e320802037, 0x100049e120802037, 0x10025060210a047e, 0x100240e2218020f7, 0x100049e3200a003e, 0x1002406281c276b6, 0x100049e020827032, 0x1002502321120c3a, 0x10024821210e0cfa, 0x1002112701800f80, 0x100248e221801e72, 0xe0025c6700001a00, 0x1002487081044cbf, 0x1002082701827180, 0x100258b481827780, 0x1002417081827392, 0x100049e320827016, 0x10020c2715167d80, 0x10024c20359e7004, 0xd0020867029e1e00, 0x100049c3209e7021, 0x100049e12080403e, 0x100049e2209c300f, 0x10124020279c349f, 0x1022402227160037, 0x100049e3209c3017, 0x10020c2715027d80, 0x10020c2701827780, 0x10020c27159c3fc0, 0x300009e7009e7000, 0x100009e7009e7000, 0x100009e7009e7000, }; //====================================================================== //====================================================================== //====================================================================== //====================================================================== //====================================================================== //====================================================================== uint64_t singleTexture_AlphaDisabled_BlendDisabled_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10024021213e317e, 0x10025022213e337e, 0x10024063213e357e, 0x10025060213e377e, 0x100248e1213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e76c0, 0xa0020ae715827d80, 0x190208e7049e7900, 0x1b62482324027933, 0x1d524863249c0938, 0x1f4248a324067931, 0x117049e3209c103a, 0x10020b27159cffc0, 0x10020ba7159e76c0, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaDisabled_DstZero_SrcDstColor_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10024021213e317e, 0x10025022213e337e, 0x10024063213e357e, 0x10025060213e377e, 0x100248e1213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e76c0, 0xa00009e7009e7000, 0x190208e7049e7900, 0x1b62482324027933, 0x1d524863249c0938, 0x1f4248a324067931, 0x117049e3209c103a, 0x80020ae715827d80, 0x10020b27159cffc0, 0x100059ee609e701c, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaDisabled_DstOneMinusSrcAlpha_SrcSrcAlpha_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10024061213e317e, 0x10025062213e337e, 0x100240a3213e357e, 0x10025020213e377e, 0x100248e1213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e76c0, 0xa00009e7009e7000, 0x190208e7049e7900, 0x1b62580024067933, 0x1d525840249c1938, 0x114059c0200a7031, 0x1f0049e2209c003c, 0x117059c0809e7012, 0x113049e3809e7012, 0x10024821770276f3, 0x80020ae715827d80, 0x10024b20759cffe0, 0x100059eec09e7008, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaDisabled_DstOne_SrcDstColor_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10024021213e317e, 0x10025022213e337e, 0x10024063213e357e, 0x10025060213e377e, 0x10024821213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e7000, 0xa00009e7009e7000, 0x190208e7049e7900, 0x1b62482324027933, 0x1d524863249c0938, 0x1f4248a324067931, 0x117049e3209c103a, 0x80020ae715827d80, 0x10024b23759cffdc, 0x100059eec09e701c, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaDisabled_DstOne_SrcOne_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10024021213e317e, 0x10025022213e337e, 0x10024063213e357e, 0x10025060213e377e, 0x100248e1213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e76c0, 0xa00009e7009e7000, 0x190208e7049e7900, 0x1b62482324027933, 0x1d524863249c0938, 0x1f4248a324067931, 0x117049e3209c103a, 0x80020ae715827d80, 0x10020b27159cffc0, 0x100059eec09e701c, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaDisabled_DstOneMinusSrcAlpha_SrcSrcAlpha_DepthStencilDisabled_FS[] = { 0x100049e0203e303e, 0x10025021213e317e, 0x10024062213e337e, 0x10025063213e357e, 0x10024020213e377e, 0x100248e1213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e76c0, 0xa00009e7009e7000, 0x190208e7049e7900, 0x1b624822249c093b, 0x1d52486224067930, 0x1f0049e320027034, 0x114049e2209c1039, 0x113049e0809e701b, 0x11724862979e701b, 0x100049e3609e7010, 0x800009e7009e7000, 0x100049e2609e7021, 0x100059eec09e701a, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaDisabled_BlendDisabled_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10025021213e317e, 0x10024062213e337e, 0x10025063213e357e, 0x100240a0213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x10021e67159e7480, 0x10024e23353e36fe, 0xd0020027159c0fc0, 0x60020827019e7740, 0x100229e7049e7000, 0xd0080027159dffc0, 0xa0020ae715827d80, 0x19020867049e7900, 0x1b6248a1249c0939, 0x1d5248e124067932, 0x100229e715027d80, 0x1f424821249c193b, 0x117049e1200a7030, 0x10040b27159cffc0, 0x10040ba7159e7240, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaDisabled_BlendDisabled_DepthStencilDisabled_FS[] = { 0x100049e0203e303e, 0x10024021213e317e, 0x10025022213e337e, 0x10024063213e357e, 0x10025060213e377e, 0x100248e1213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e76c0, 0xa00009e7009e7000, 0x190208e7049e7900, 0x1b62482324027933, 0x1d524863249c0938, 0x1f4248a324067931, 0x117049e3209c103a, 0x10020ba7159e76c0, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaDisabled_BlendDisabled_DepthStencilDisabled_FS[] = { 0x100049e0203e303e, 0x10025021213e317e, 0x10024062213e337e, 0x10025063213e357e, 0x100240a0213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x10021e67159e7480, 0x10024e23353e36fe, 0xd0020027159c0fc0, 0x60020827019e7740, 0x100229e7049e7000, 0xd0080027159dffc0, 0xa00009e7009e7000, 0x19020867049e7900, 0x1b6248a1249c0939, 0x1d5248e124067932, 0x1f424821249c193b, 0x100229e715027d80, 0x117049e1200a7030, 0x10040ba7159e7240, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaDisabled_DstOneMinusSrcAlpha_SrcSrcAlpha_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10025021213e317e, 0x10024062213e337e, 0x10025063213e357e, 0x100240a0213e377e, 0x10024821213e317e, 0x100248a3213e337e, 0x10021e67159e7480, 0x10024838819e7740, 0xd0020027159c0fc0, 0x600229e7049e7000, 0xd0080027159dffc0, 0x100009e7009e7000, 0x100229e715027d80, 0xa00009e7009e7000, 0x19020867049e7900, 0x1b6248a0249c0939, 0x1d5248e024067932, 0x1f0049e1200a7034, 0x114049e0209c103b, 0x113049e2809e7009, 0x117248e0979e7489, 0x100049e1609e7002, 0x80020ae715827d80, 0x10044b20759cffe3, 0x100049e2c09e7008, 0x10040ba7159e7480, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaDisabled_DstOne_SrcOne_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10025021213e317e, 0x10024062213e337e, 0x10025063213e357e, 0x100240a0213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x10021e67159e7480, 0x10024e23353e36fe, 0xd0020027159c0fc0, 0x60020827019e7740, 0x100229e7049e7000, 0xd0080027159dffc0, 0xa00009e7009e7000, 0x19020867049e7900, 0x1b6248a1249c0939, 0x1d5248e124067932, 0x1f424821249c193b, 0x100229e715027d80, 0x117049e1200a7030, 0x80020ae715827d80, 0x10044b20d59cffcc, 0x10040ba7159e7000, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaDisabled_DstOneMinusSrcAlpha_SrcSrcAlpha_DepthStencilDisabled_FS[] = { 0x100049e0203e303e, 0x10025021213e317e, 0x10024062213e337e, 0x10025063213e357e, 0x100240a0213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x10021e67159e7480, 0x10024e23353e36fe, 0xd0020027159c0fc0, 0x60020827019e7740, 0x100229e7049e7000, 0xd0080027159dffc0, 0xa00009e7009e7000, 0x19020867049e7900, 0x1b6248a0249c0939, 0x1d5248e024067932, 0x114049e0209c103b, 0x1f0049e2200a7034, 0x117049e0809e7012, 0x113049e3809e7012, 0x10024821779e76c3, 0x100229e715027d80, 0x800009e7009e7000, 0x100049e0609e7020, 0x100049e1c09e7008, 0x10040ba7159e7240, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaDisabled_DstSrcColor_SrcDstColor_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10024021213e317e, 0x10025022213e337e, 0x10024063213e357e, 0x10025060213e377e, 0x100248e1213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e76c0, 0xa00009e7009e7000, 0x190208e7049e7900, 0x1b62482324027933, 0x1d524863249c0938, 0x1f4248a324067931, 0x117049e3209c103a, 0x80020ae715827d80, 0x10024b20759cffdc, 0x100059eec09e7000, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaDisabled_DstSrcColor_SrcDstColor_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10025021213e317e, 0x10024062213e337e, 0x10025063213e357e, 0x100240a0213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x10021e67159e7480, 0x10024e23353e36fe, 0xd0020027159c0fc0, 0x60020827019e7740, 0x100229e7049e7000, 0xd0080027159dffc0, 0xa00009e7009e7000, 0x19020867049e7900, 0x1b6248a1249c0939, 0x1d5248e124067932, 0x1f424821249c193b, 0x117049e1200a7030, 0x100229e715027d80, 0x80020ae715827d80, 0x10044b21759cffcc, 0x100049e2c09e7009, 0x10040ba7159e7480, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t multiTextureMul_AlphaDisabled_BlendDisabled_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x100240e1213e317e, 0x100250e2213e337e, 0x10024123213e357e, 0x10025120213e377e, 0x10024821213e317e, 0x100248a3213e337e, 0x20024079819e7752, 0x10024e20353e303e, 0x10020027019e7140, 0x100213a7040e7d80, 0x10021e6715027d80, 0x60021e2715067d80, 0xa00009e7009e7000, 0x100200a7159e7900, 0xa0020ae715827d80, 0x180049c02008e03e, 0x19020867049e7900, 0x1b624882249c0939, 0x1a0049e12008303e, 0x100213a704127d80, 0x1d5248c2249e790a, 0x1c0049e22008e03e, 0x1f424802249e7913, 0x1e0049e32008403e, 0x117049c2209e7018, 0x10020b27159cffc0, 0x10020ba7159c2fc0, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t multiTextureMulClippingPlane_AlphaDisabled_BlendDisabled_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x100250e1213e317e, 0x10024122213e337e, 0x10025123213e357e, 0x10024160213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x100253b984127d92, 0x10024e23353e36fe, 0x10024060213e377e, 0x10025021213e317e, 0xd00200e7159c0fc0, 0x200208a7019e7340, 0x100229e7049e7480, 0xd00800e7159dffc0, 0x10021e67159c0fc0, 0x60021e2715067d80, 0xa00009e7009e7000, 0x100200a7159e7900, 0x100229e7150e7d80, 0xa80059c02008303e, 0x190258eb84827936, 0x1b62480224027933, 0x1a0049e32008e03e, 0x1d524842249e7918, 0x1c0049e02008403e, 0x100213a704167d80, 0x1f424882249e7901, 0x1e0049e12008e03e, 0x117049c2209e700a, 0x10040b27159cffc0, 0x10040ba7159c2fc0, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaDisabled_DstZero_SrcDstColor_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10025021213e317e, 0x10024062213e337e, 0x10025063213e357e, 0x100240a0213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x10021e67159e7480, 0x10024e23353e36fe, 0xd0020027159c0fc0, 0x60020827019e7740, 0x100229e7049e7000, 0xd0080027159dffc0, 0xa00009e7009e7000, 0x19020867049e7900, 0x1b6248a1249c0939, 0x1d5248e124067932, 0x1f424821249c193b, 0x100229e715027d80, 0x117049e1200a7030, 0x80020ae715827d80, 0x10044b20759cffcc, 0x10040ba7159e7000, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaDisabled_DstSrcAlpha_SrcDstColor_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10024061213e317e, 0x10025062213e337e, 0x100240a3213e357e, 0x10025020213e377e, 0x10024821213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e7000, 0xa00009e7009e7000, 0x190208e7049e7900, 0x1b62580024067933, 0x1d525840249c1938, 0x114059c0200a7031, 0x1f0049e2209c003c, 0x117059c0809e7012, 0x113049e3809e7012, 0x80020ae715827d80, 0x10024b22759cffe3, 0x100049e160027034, 0x100059eec09e700a, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaDisabled_DstSrcAlpha_SrcDstColor_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10025021213e317e, 0x10024062213e337e, 0x10025063213e357e, 0x100240a0213e377e, 0x10024821213e317e, 0x100248a3213e337e, 0x10021e67159e7480, 0x10024838819e7740, 0xd0020027159c0fc0, 0x600229e7049e7000, 0xd0080027159dffc0, 0x100009e7009e7000, 0x100229e715027d80, 0xa00009e7009e7000, 0x19020867049e7900, 0x1b6248a0249c0939, 0x1d5248e024067932, 0x1f0049e1200a7034, 0x114049e0209c103b, 0x113049e2809e7009, 0x117049e0809e7009, 0x80020ae715827d80, 0x10044b23759cffe2, 0x100049e0609e7004, 0x100049e1c09e7003, 0x10040ba7159e7240, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaDisabled_DstOneMinusDstAlpha_SrcDstColor_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10025021213e317e, 0x10024062213e337e, 0x10025063213e357e, 0x100240a0213e377e, 0x100248e1213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e76c0, 0xa00009e7009e7000, 0x190208e7049e7900, 0x1b625800249c093b, 0x1d52584024067930, 0x1f425880249c1939, 0x117059c0200a7032, 0x80020ae715827d80, 0x100248ac8e80f9bf, 0xd00208e7119c85c0, 0x100248e2750274f4, 0x1002082711827780, 0x10020827159e7600, 0x10020867179e7000, 0x100049e0609e7021, 0x100059eec09e7010, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaDisabled_DstOneMinusDstAlpha_SrcDstColor_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10024061213e317e, 0x10025062213e337e, 0x100240a3213e357e, 0x100250a0213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x10021e67159e7480, 0x10024e23353e36fe, 0xd0020027159c0fc0, 0x60020827019e7740, 0x100229e7049e7000, 0xd0080027159dffc0, 0xa00009e7009e7000, 0x19020867049e7900, 0x1b62488024067931, 0x1d5248c0249c193a, 0x1f424800240a7933, 0x117049c0209c2038, 0x100229e715027d80, 0x80020ae715827d80, 0x100288ac8e80f9bf, 0xd0020867119c85c0, 0x100248e1759c047c, 0x100208a711827780, 0x10020827159e7680, 0x100208e7179e7000, 0x100049e0609e7023, 0x100049e0c09e7008, 0x10040ba7159e7000, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaDisabled_DstOne_SrcDstColor_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10025021213e317e, 0x10024062213e337e, 0x10025063213e357e, 0x100240a0213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x10021e67159e7480, 0x10024e23353e36fe, 0xd0020027159c0fc0, 0x60020827019e7740, 0x100229e7049e7000, 0xd0080027159dffc0, 0xa00009e7009e7000, 0x19020867049e7900, 0x1b6248a1249c0939, 0x1d5248e124067932, 0x1f424821249c193b, 0x117049e1200a7030, 0x100229e715027d80, 0x80020ae715827d80, 0x10044b21759cffcc, 0x100049e0c09e700c, 0x10040ba7159e7000, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaDisabled_DstSrcAlpha_SrcOneMinusSrcAlpha_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10024061213e317e, 0x10025062213e337e, 0x100240a3213e357e, 0x100250a0213e377e, 0x10024821213e317e, 0x100248a3213e337e, 0x10021e67159e7480, 0x10024838819e7740, 0xd0020027159c0fc0, 0x600229e7049e7000, 0xd0080027159dffc0, 0x100009e7009e7000, 0x100229e715027d80, 0xa00009e7009e7000, 0x19020867049e7900, 0x1b62488024067931, 0x1d5248c0249c193a, 0x114049c0200a7033, 0x1f0049e2209c203c, 0x117049c0809e7012, 0x113049e1809e7012, 0x10020827179e7240, 0x100049e3609c0038, 0x80020ae715827d80, 0x10044b21759cffe1, 0x100049e2c09e7019, 0x10040ba7159e7480, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaDisabled_DstOneMinusSrcAlpha_SrcOne_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10024061213e317e, 0x10025062213e337e, 0x100240a3213e357e, 0x100250a0213e377e, 0x10024821213e317e, 0x100248a3213e337e, 0x10021e67159e7480, 0x10024838819e7740, 0xd0020027159c0fc0, 0x600229e7049e7000, 0xd0080027159dffc0, 0x100009e7009e7000, 0x100229e715027d80, 0xa00009e7009e7000, 0x19020867049e7900, 0x1b62488024067931, 0x1d5248c0249c193a, 0x1f0049e2209c203c, 0x114049c0200a7033, 0x113049e0809e7012, 0x117248c0979e7012, 0x80020ae715827d80, 0x10044b21759cffe3, 0x100049e1c09c0039, 0x10040ba7159e7240, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaDisabled_DstOneMinusSrcColor_SrcZero_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10025021213e317e, 0x10024062213e337e, 0x10025063213e357e, 0x100240a0213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x10021e67159e7480, 0x10024e23353e36fe, 0xd0020027159c0fc0, 0x60020827019e7740, 0x100229e7049e7000, 0xd0080027159dffc0, 0xa00009e7009e7000, 0x19020867049e7900, 0x1b6248a1249c0939, 0x1d5248e124067932, 0x1f424821249c193b, 0x117049e1200a7030, 0x100229e715027d80, 0x10020867179e7240, 0x80020ae715827d80, 0x10044b20759cffe1, 0x10040ba7159e7000, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaDisabled_DstOneMinusSrcColor_SrcOne_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10024061213e317e, 0x10025062213e337e, 0x100240a3213e357e, 0x100250a0213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x10021e67159e7480, 0x10024e23353e36fe, 0xd0021027159c0fc0, 0x60020827019e7740, 0x100229e7049e7000, 0xd0081027159dffc0, 0xa00009e7009e7000, 0x19020867049e7900, 0x1b62588024067931, 0x1d5258c0249c193a, 0x1f425800240a7933, 0x117059c0209c2038, 0x100229e7159c0fc0, 0x100208a717027d80, 0x80020ae715827d80, 0x10044b21759cffe2, 0x100049e0c0027031, 0x10040ba7159e7000, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaDisabled_DstSrcAlpha_SrcOneMinusSrcAlpha_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10024061213e317e, 0x10025062213e337e, 0x100240a3213e357e, 0x10025020213e377e, 0x10024821213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e7000, 0xa00009e7009e7000, 0x190208e7049e7900, 0x1b62580024067933, 0x1d525840249c1938, 0x114059c0200a7031, 0x1f0049e3209c003c, 0x117059c0809e701b, 0x113049e1809e701b, 0x100208a7179e7240, 0x100049e360027032, 0x80020ae715827d80, 0x10024b22759cffe1, 0x100059eec09e701a, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaDisabled_DstOneMinusSrcAlpha_SrcOne_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10024061213e317e, 0x10025062213e337e, 0x100240a3213e357e, 0x10025020213e377e, 0x100248e1213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e76c0, 0xa00009e7009e7000, 0x190208e7049e7900, 0x1b62580024067933, 0x1d525840249c1938, 0x1f0049e3209c003c, 0x114059c0200a7031, 0x113049e2809e701b, 0x11725800979e749b, 0x80020ae715827d80, 0x10024b20759cffe0, 0x100059eec0027030, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaDisabled_DstOneMinusSrcColor_SrcZero_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10024021213e317e, 0x10025022213e337e, 0x10024063213e357e, 0x10025060213e377e, 0x100248e1213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e76c0, 0xa00009e7009e7000, 0x190208e7049e7900, 0x1b62482324027933, 0x1d524863249c0938, 0x1f4248a324067931, 0x117049e3209c103a, 0x10020827179e76c0, 0x80020ae715827d80, 0x10020b27159cffc0, 0x100059ee609e7020, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaDisabled_DstOneMinusSrcColor_SrcOne_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10025021213e317e, 0x10024062213e337e, 0x10025063213e357e, 0x100240a0213e377e, 0x10024821213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e7000, 0xa00009e7009e7000, 0x190208e7049e7900, 0x1b625800249c093b, 0x1d52584024067930, 0x1f425880249c1939, 0x117059c0200a7032, 0x80020ae715827d80, 0x100248ec9700fdbf, 0x100049e1609e7023, 0x100059eec0027031, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaGE80_BlendDisabled_DepthStencilEnabled_FS[]= { 0x100049e0203e303e, 0x10025021213e317e, 0x10024062213e337e, 0x10025063213e357e, 0x10024020213e377e, 0x100248e1213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e76c0, 0xd00208a7159c0fc0, 0xa0020ae715827d80, 0x190208e7049e7900, 0x1b624823249c093b, 0x1d52486324067930, 0x1f0049e020027034, 0xd00229e7029ef1c0, 0xd00808a7159dffc0, 0x114049e3209c1039, 0x100229e7159e7480, 0x117049e3809e7000, 0x10040b27159cffc0, 0x10040ba7159e76c0, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaGE80_BlendDisabled_DepthStencilEnabled_FS[]= { 0x100049e0203e303e, 0x10025061213e317e, 0x100240a2213e337e, 0x100250a3213e357e, 0x10024060213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x10021e67159e7480, 0x10024e23353e36fe, 0xd0020027159c0fc0, 0x60020827019e7740, 0x100229e7049e7000, 0xd0080027159dffc0, 0xd0020827159c0fc0, 0xa0020ae715827d80, 0x19020867049e7900, 0x1b624880249c1939, 0x1d5248c0240a7932, 0x1f0049e120067034, 0xd00208a7159c0fc0, 0xd00229e7029ef3c0, 0x1142488035002dbb, 0xd0080827159dffc0, 0x1172488095027c09, 0x100229e7159e7480, 0x10040b27159cffc0, 0x10040ba7159c0fc0, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t multiTextureAdd_AlphaDisabled_BlendDisabled_DepthStencilEnabled_FS[]= { 0x100049e0203e303e, 0x10025121213e317e, 0x10024122213e337e, 0x100240e3213e357e, 0x100250e0213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x10021e67159e7480, 0x20024e23353e36fe, 0x10025020213e377e, 0x10020027019e7140, 0x100009e7009e7000, 0x10021e6715027d80, 0x10021e27159c0fc0, 0xa00009e7009e7000, 0x1d0059c2200e7034, 0x6b0049c120127034, 0x190059c1209c403c, 0x1f0049c2209c303c, 0xa0020ae715827d80, 0x1f020867049e7900, 0x1d7248e121082d39, 0x1b4248a1819c1f1b, 0x1952482181067d12, 0x116049e1809e7000, 0x10020b27159cffc0, 0x10020ba7159e7240, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t multiTextureAddClippingPlane_AlphaDisabled_BlendDisabled_DepthStencilEnabled_FS[]= { 0x100049e0203e303e, 0x10025121213e317e, 0x10024122213e337e, 0x100240e3213e357e, 0x100250e0213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x10021e67159e7480, 0x20024e23353e36fe, 0x10025020213e377e, 0x10020027019e7140, 0x100009e7009e7000, 0x10021e6715027d80, 0x10021e27159c0fc0, 0xa00009e7009e7000, 0x1d0059c2200e7034, 0x6b0049c120127034, 0x190059c1209c403c, 0x1f0049c2209c303c, 0xa0020ae715827d80, 0x1f020867049e7900, 0x1d7248e121082d39, 0x1b4248a1819c1f1b, 0x1952482181067d12, 0x116049e1809e7000, 0x10020b27159cffc0, 0x10020ba7159e7240, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t multiTextureAdd_AlphaDisabled_DstZero_SrcDstColor_DepthStencilEnabled_FS[]= { 0x100049e0203e303e, 0x10025121213e317e, 0x10024122213e337e, 0x100240e3213e357e, 0x100250e0213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x10021e67159e7480, 0x20024e23353e36fe, 0x10025020213e377e, 0x10020027019e7140, 0x100009e7009e7000, 0x10021e6715027d80, 0x10021e27159c0fc0, 0xa00009e7009e7000, 0x1d0059c2200e7034, 0x6b0049c120127034, 0x190059c1209c403c, 0x1f0049c2209c303c, 0xa00009e7009e7000, 0x1f020867049e7900, 0x1d7248e121082d39, 0x1b4248a1819c1f1b, 0x1952482181067d12, 0x116049e1809e7000, 0x80020ae715827d80, 0x10020b27159cffc0, 0x100059ee609e700c, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t multiTextureAddClippingPlane_AlphaDisabled_DstZero_SrcDstColor_DepthStencilEnabled_FS[]= { 0x100049e0203e303e, 0x10025121213e317e, 0x10024122213e337e, 0x100240e3213e357e, 0x100250e0213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x10021e67159e7480, 0x20024e23353e36fe, 0x10025020213e377e, 0x10020027019e7140, 0x100009e7009e7000, 0x10021e6715027d80, 0x10021e27159c0fc0, 0xa00009e7009e7000, 0x1d0059c2200e7034, 0x6b0049c120127034, 0x190059c1209c403c, 0x1f0049c2209c303c, 0xa00009e7009e7000, 0x1f020867049e7900, 0x1d7248e121082d39, 0x1b4248a1819c1f1b, 0x1952482181067d12, 0x116049e1809e7000, 0x80020ae715827d80, 0x10020b27159cffc0, 0x100059ee609e700c, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t multiTextureMul_AlphaDisabled_DstZero_SrcDstColor_DepthStencilEnabled_FS[]= { 0x100049e0203e303e, 0x100240e1213e317e, 0x100250e2213e337e, 0x10024123213e357e, 0x10025120213e377e, 0x10024821213e317e, 0x100248a3213e337e, 0x20024079819e7752, 0x10024e20353e303e, 0x10020027019e7140, 0x100213a7040e7d80, 0x10021e6715027d80, 0x60021e2715067d80, 0xa00009e7009e7000, 0x100200a7159e7900, 0xa00009e7009e7000, 0x180049c02008e03e, 0x19020867049e7900, 0x1b624882249c0939, 0x1a0049e12008303e, 0x100213a704127d80, 0x1d5248c2249e790a, 0x1c0049e22008e03e, 0x1f424802249e7913, 0x1e0049e32008403e, 0x117049c2209e7018, 0x80020ae715827d80, 0x10020b27159cffc0, 0x100059ee609c203c, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t multiTextureMulClippingPlane_AlphaDisabled_DstZero_SrcDstColor_DepthStencilEnabled_FS[]= { 0x100049e0203e303e, 0x100240e1213e317e, 0x100250e2213e337e, 0x10024123213e357e, 0x10025120213e377e, 0x10024821213e317e, 0x100248a3213e337e, 0x20024079819e7752, 0x10024e20353e303e, 0x10020027019e7140, 0x100213a7040e7d80, 0x10021e6715027d80, 0x60021e2715067d80, 0xa00009e7009e7000, 0x100200a7159e7900, 0xa00009e7009e7000, 0x180049c02008e03e, 0x19020867049e7900, 0x1b624882249c0939, 0x1a0049e12008303e, 0x100213a704127d80, 0x1d5248c2249e790a, 0x1c0049e22008e03e, 0x1f424802249e7913, 0x1e0049e32008403e, 0x117049c2209e7018, 0x80020ae715827d80, 0x10020b27159cffc0, 0x100059ee609c203c, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaDisabled_DstSrcAlpha_SrcZero_DepthStencilEnabled_FS[]= { 0x100049e0203e303e, 0x10024021213e317e, 0x10024862213e337e, 0x600208e7019e7540, 0x10021e67159e76c0, 0x10021e27159e7240, 0xa00009e7009e7000, 0x1f0049e020027034, 0x113049e2809e7000, 0x80020ae715827d80, 0x10020b27159cffc0, 0x100059ee609e7022, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaDisabled_DstSrcAlpha_SrcZero_DepthStencilEnabled_FS[]= { 0x100049e0203e303e, 0x10025021213e317e, 0x10024822213e337e, 0x100208e7019e7540, 0x10021e67159e76c0, 0x10024e20353e303e, 0xd0020027159c0fc0, 0x60020867019e7140, 0x100229e7049e7240, 0xd0080027159dffc0, 0xa00009e7009e7000, 0x1f0049e2209c003c, 0x100229e715027d80, 0x113049e3809e7012, 0x80020ae715827d80, 0x10044b21759cffe3, 0x10040ba7159e7240, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaDisabled_DstSrcAlpha_SrcOne_DepthStencilEnabled_FS[]= { 0x100049e0203e303e, 0x10024061213e317e, 0x10025062213e337e, 0x100240a3213e357e, 0x10025020213e377e, 0x10024821213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e7000, 0xa00009e7009e7000, 0x190208e7049e7900, 0x1b62580024067933, 0x1d525840249c1938, 0x1f0049e2209c003c, 0x114059c0200a7031, 0x113049e3809e7012, 0x117059c0809e7012, 0x80020ae715827d80, 0x10024b21759cffe3, 0x100059eec0027031, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaDisabled_DstSrcAlpha_SrcOne_DepthStencilEnabled_FS[]= { 0x100049e0203e303e, 0x10024061213e317e, 0x10025062213e337e, 0x100240a3213e357e, 0x10025020213e377e, 0x10024821213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e7000, 0xa00009e7009e7000, 0x190208e7049e7900, 0x1b62580024067933, 0x1d525840249c1938, 0x1f0049e2209c003c, 0x114059c0200a7031, 0x113049e3809e7012, 0x117059c0809e7012, 0x80020ae715827d80, 0x10024b21759cffe3, 0x100059eec0027031, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaGE80_DstOneMinusSrcAlpha_SrcSrcAlpha_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10025021213e317e, 0x10024062213e337e, 0x10025063213e357e, 0x10024020213e377e, 0x100248e1213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e76c0, 0xa00009e7009e7000, 0x190208e7049e7900, 0x1b624822249c093b, 0x1d52486224067930, 0x114049e2209c1039, 0x1f0049e120027034, 0xd00208e7159c0fc0, 0xd00229e7029ef3c0, 0xd00808e7159dffc0, 0x117049e2809e7009, 0x113049e0809e7009, 0x100229e7159e76c0, 0x10024863779e7010, 0x80020ae715827d80, 0x10044b22759cffe1, 0x100049e0c09e701a, 0x10040ba7159e7000, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaGE80_DstOneMinusSrcAlpha_SrcSrcAlpha_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10025061213e317e, 0x100240a2213e337e, 0x100250a3213e357e, 0x10024060213e377e, 0x10024821213e317e, 0x100248a3213e337e, 0x10021e67159e7480, 0x10024838819e7740, 0xd0020027159c0fc0, 0x600229e7049e7000, 0xd0080027159dffc0, 0x100009e7009e7000, 0xd0020827159c0fc0, 0xa002082715027d80, 0x19020867049e7900, 0x1b624880249c1939, 0x1d5248c0240a7932, 0x114049c0209c203b, 0x1f0049e220067034, 0xd0020867159c0fc0, 0xd00229e7029ef5c0, 0x117049c0809e7012, 0xd0080867159dffc0, 0x1132482295027c52, 0x100248e1779c04ba, 0x100229e7159e7000, 0x80020ae715827d80, 0x10044b20759cffe3, 0x100049e2c09e7008, 0x10040ba7159e7480, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t multiTextureAdd_AlphaDisabled_DstOne_SrcOne_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10025121213e317e, 0x10024122213e337e, 0x100240e3213e357e, 0x100250e0213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x10021e67159e7480, 0x20024e23353e36fe, 0x10025020213e377e, 0x10020027019e7140, 0x100009e7009e7000, 0x10021e6715027d80, 0x10021e27159c0fc0, 0xa00009e7009e7000, 0x1d0059c2200e7034, 0x6b0049c120127034, 0x190059c1209c403c, 0x1f0049c2209c303c, 0xa00009e7009e7000, 0x1f020867049e7900, 0x1d7248e121082d39, 0x1b4248a1819c1f1b, 0x1952482181067d12, 0x116049e1809e7000, 0x80020ae715827d80, 0x10020b27159cffc0, 0x100059eec09e700c, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t multiTextureAddClippingPlane_AlphaDisabled_DstOne_SrcOne_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10024161213e317e, 0x10025122213e337e, 0x100250e3213e357e, 0x10024120213e377e, 0x10024821213e317e, 0x100248a3213e337e, 0x100250b9819e7752, 0x10024e20353e303e, 0x10024021213e317e, 0xd00200e7159c0fc0, 0x200208a7019e7340, 0x100229e7049e7480, 0xd00800e7159dffc0, 0x10021e6715027d80, 0x10021e27159c2fc0, 0xa00009e7009e7000, 0x1d0049c1209c303c, 0x6b0059c1209c403c, 0x190049c020167034, 0x1f0059c220127034, 0x100229e7150e7d80, 0xa00009e7009e7000, 0x1f0208e7049e7900, 0x1d72486321081f33, 0x1b42482381067d09, 0x195248a3819c0f00, 0x116049e3809e7012, 0x80020ae715827d80, 0x10044b21d59cffdc, 0x10040ba7159e7240, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTexture_AlphaDisabled_DstSrcColor_SrcZero_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10024021213e317e, 0x10025022213e337e, 0x10024063213e357e, 0x10025060213e377e, 0x100248e1213e317e, 0x600208a7019e7340, 0x10021e67159e7480, 0x10021e27159e76c0, 0xa00009e7009e7000, 0x190208e7049e7900, 0x1b62482324027933, 0x1d524863249c0938, 0x1f4248a324067931, 0x117049e3209c103a, 0x80020ae715827d80, 0x10020b27159cffc0, 0x100059ee609e7023, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, }; uint64_t singleTextureClippingPlane_AlphaDisabled_DstSrcColor_SrcZero_DepthStencilEnabled_FS[] = { 0x100049e0203e303e, 0x10025021213e317e, 0x10024062213e337e, 0x10025063213e357e, 0x100240a0213e377e, 0x100248e1213e317e, 0x100208a7019e7340, 0x10021e67159e7480, 0x10024e23353e36fe, 0xd0020027159c0fc0, 0x60020827019e7740, 0x100229e7049e7000, 0xd0080027159dffc0, 0xa00009e7009e7000, 0x19020867049e7900, 0x1b6248a1249c0939, 0x1d5248e124067932, 0x1f424821249c193b, 0x100229e715027d80, 0x117049e1200a7030, 0x80020ae715827d80, 0x10044b20759cffe1, 0x10040ba7159e7000, 0x300009e7009e7000, 0x100009e7009e7000, 0x500009e7009e7000, };
{ "pile_set_name": "Github" }
'use strict'; module.exports = function () { var isSafeInteger = Number.isSafeInteger; if (typeof isSafeInteger !== 'function') return false; return !isSafeInteger('23') && isSafeInteger(34232322323) && !isSafeInteger(9007199254740992); };
{ "pile_set_name": "Github" }
//======================================================================= // (c) Copyright Juergen Hunold 2008 // Use, modification and distribution is subject to 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_DEPRECATED_INCLUDE_EDMONDS_KARP_MAX_FLOW_HPP #define BOOST_DEPRECATED_INCLUDE_EDMONDS_KARP_MAX_FLOW_HPP #if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__DMC__) # pragma message ("Warning: This header is deprecated. Please use: boost/graph/edmonds_karp_max_flow.hpp") #elif defined(__GNUC__) || defined(__HP_aCC) || defined(__SUNPRO_CC) || defined(__IBMCPP__) # warning "This header is deprecated. Please use: boost/graph/edmonds_karp_max_flow.hpp" #endif #include <boost/graph/edmonds_karp_max_flow.hpp> #endif // BOOST_DEPRECATED_INCLUDE_EDMONDS_KARP_MAX_FLOW_HPP
{ "pile_set_name": "Github" }
<?php namespace frontend\controllers\cabinet; use shop\readModels\Shop\ProductReadRepository; use shop\useCases\cabinet\WishlistService; use Yii; use yii\filters\AccessControl; use yii\filters\VerbFilter; use yii\web\Controller; class WishlistController extends Controller { public $layout = 'cabinet'; private $service; private $products; public function __construct($id, $module, WishlistService $service, ProductReadRepository $products, $config = []) { parent::__construct($id, $module, $config); $this->service = $service; $this->products = $products; } public function behaviors(): array { return [ 'access' => [ 'class' => AccessControl::className(), 'rules' => [ [ 'allow' => true, 'roles' => ['@'], ], ], ], 'verbs' => [ 'class' => VerbFilter::className(), 'actions' => [ 'add' => ['POST'], 'delete' => ['POST'], ], ], ]; } /** * @return mixed */ public function actionIndex() { $dataProvider = $this->products->getWishList(\Yii::$app->user->id); return $this->render('index', [ 'dataProvider' => $dataProvider, ]); } /** * @param $id * @return mixed */ public function actionAdd($id) { try { $this->service->add(Yii::$app->user->id, $id); Yii::$app->session->setFlash('success', 'Success!'); } catch (\DomainException $e) { Yii::$app->errorHandler->logException($e); Yii::$app->session->setFlash('error', $e->getMessage()); } return $this->redirect(Yii::$app->request->referrer ?: ['index']); } /** * @param $id * @return mixed */ public function actionDelete($id) { try { $this->service->remove(Yii::$app->user->id, $id); } catch (\DomainException $e) { Yii::$app->errorHandler->logException($e); Yii::$app->session->setFlash('error', $e->getMessage()); } return $this->redirect(['index']); } }
{ "pile_set_name": "Github" }
// // EmptyExecutorCommand.swift // OpenTerm // // Created by Louis D'hauwe on 09/04/2018. // Copyright © 2018 Silver Fox. All rights reserved. // import Foundation import ios_system /// No-op command to run. struct EmptyExecutorCommand: CommandExecutorCommand { func run(forExecutor executor: CommandExecutor) throws -> ReturnCode { return 0 } }
{ "pile_set_name": "Github" }
/* dumpf.h: Copyright (C) 1991 Barry Vercoe, John ffitch This file is part of Csound. The Csound 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. Csound 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 Csound; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /* DUMPF.H */ typedef struct { OPDS h; MYFLT *ksig, *ifilcod, *iformat, *iprd; int format; int32 countdown, timcount; FILE *f; FDCH fdch; } KDUMP; typedef struct { OPDS h; MYFLT *ksig1, *ksig2, *ifilcod, *iformat, *iprd; int format; int32 countdown, timcount; FILE *f; FDCH fdch; } KDUMP2; typedef struct { OPDS h; MYFLT *ksig1, *ksig2, *ksig3, *ifilcod, *iformat, *iprd; int format; int32 countdown, timcount; FILE *f; FDCH fdch; } KDUMP3; typedef struct { OPDS h; MYFLT *ksig1, *ksig2, *ksig3, *ksig4, *ifilcod, *iformat, *iprd; int format; int32 countdown, timcount; FILE *f; FDCH fdch; } KDUMP4; typedef struct { OPDS h; MYFLT *k1, *ifilcod, *iformat, *iprd; /* MYFLT *interp; */ int format; int32 countdown, timcount; MYFLT k[4]; FILE *f; FDCH fdch; } KREAD; typedef struct { OPDS h; MYFLT *k1, *k2, *ifilcod, *iformat, *iprd; /* MYFLT *interp; */ int format; int32 countdown, timcount; MYFLT k[4]; FILE *f; FDCH fdch; } KREAD2; typedef struct { OPDS h; MYFLT *k1, *k2, *k3, *ifilcod, *iformat, *iprd; /* MYFLT *interp; */ int format; int32 countdown, timcount; MYFLT k[4]; FILE *f; FDCH fdch; } KREAD3; typedef struct { OPDS h; MYFLT *k1, *k2, *k3, *k4, *ifilcod, *iformat, *iprd; /* MYFLT *interp; */ int format; int32 countdown, timcount; MYFLT k[4]; FILE *f; FDCH fdch; } KREAD4; typedef struct { OPDS h; STRINGDAT *str; MYFLT *ifilcod, *iprd; int32 countdown, timcount; char *lasts; FILE *f; FDCH fdch; } KREADS;
{ "pile_set_name": "Github" }
import Foundation /// The details of a specific condition struct ASTCondition: Codable, Equatable { enum Kind: String, Codable { case BooleanCondition /// TODO: What other kinds are there? } /// The kind of condition let kind: ASTCondition.Kind /// The name of the variable determining this condition let variableName: String /// If the condition is inverted let inverted: Bool }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8" ?> <Form version="1.2" maxVersion="1.2" type="org.netbeans.modules.form.forminfo.JPanelFormInfo"> <AuxValues> <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="true"/> <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="2"/> <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,44,0,0,1,-112"/> </AuxValues> <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/> <SubComponents> <Container class="javax.swing.JPanel" name="jPanel2"> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription"> <BorderConstraints direction="Center"/> </Constraint> </Constraints> <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/> <SubComponents> <Container class="javax.swing.JScrollPane" name="jScrollPane1"> <AuxValues> <AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new BeanTreeView();"/> </AuxValues> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription"> <BorderConstraints direction="Center"/> </Constraint> </Constraints> <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> </Container> </SubComponents> </Container> </SubComponents> </Form>
{ "pile_set_name": "Github" }
// Package mydnsjp implements a DNS provider for solving the DNS-01 challenge using MyDNS.jp. package mydnsjp import ( "errors" "fmt" "net/http" "time" "github.com/go-acme/lego/v4/challenge/dns01" "github.com/go-acme/lego/v4/platform/config/env" ) const defaultBaseURL = "https://www.mydns.jp/directedit.html" // Environment variables names. const ( envNamespace = "MYDNSJP_" EnvMasterID = envNamespace + "MASTER_ID" EnvPassword = envNamespace + "PASSWORD" EnvPropagationTimeout = envNamespace + "PROPAGATION_TIMEOUT" EnvPollingInterval = envNamespace + "POLLING_INTERVAL" EnvHTTPTimeout = envNamespace + "HTTP_TIMEOUT" ) // Config is used to configure the creation of the DNSProvider. type Config struct { MasterID string Password string PropagationTimeout time.Duration PollingInterval time.Duration HTTPClient *http.Client } // NewDefaultConfig returns a default configuration for the DNSProvider. func NewDefaultConfig() *Config { return &Config{ PropagationTimeout: env.GetOrDefaultSecond(EnvPropagationTimeout, 2*time.Minute), PollingInterval: env.GetOrDefaultSecond(EnvPollingInterval, 2*time.Second), HTTPClient: &http.Client{ Timeout: env.GetOrDefaultSecond(EnvHTTPTimeout, 30*time.Second), }, } } // DNSProvider implements the challenge.Provider interface. type DNSProvider struct { config *Config } // NewDNSProvider returns a DNSProvider instance configured for MyDNS.jp. // Credentials must be passed in the environment variables: MYDNSJP_MASTER_ID and MYDNSJP_PASSWORD. func NewDNSProvider() (*DNSProvider, error) { values, err := env.Get(EnvMasterID, EnvPassword) if err != nil { return nil, fmt.Errorf("mydnsjp: %w", err) } config := NewDefaultConfig() config.MasterID = values[EnvMasterID] config.Password = values[EnvPassword] return NewDNSProviderConfig(config) } // NewDNSProviderConfig return a DNSProvider instance configured for MyDNS.jp. func NewDNSProviderConfig(config *Config) (*DNSProvider, error) { if config == nil { return nil, errors.New("mydnsjp: the configuration of the DNS provider is nil") } if config.MasterID == "" || config.Password == "" { return nil, errors.New("mydnsjp: some credentials information are missing") } return &DNSProvider{config: config}, nil } // Timeout returns the timeout and interval to use when checking for DNS propagation. // Adjusting here to cope with spikes in propagation times. func (d *DNSProvider) Timeout() (timeout, interval time.Duration) { return d.config.PropagationTimeout, d.config.PollingInterval } // Present creates a TXT record to fulfill the dns-01 challenge. func (d *DNSProvider) Present(domain, token, keyAuth string) error { _, value := dns01.GetRecord(domain, keyAuth) err := d.doRequest(domain, value, "REGIST") if err != nil { return fmt.Errorf("mydnsjp: %w", err) } return nil } // CleanUp removes the TXT record matching the specified parameters. func (d *DNSProvider) CleanUp(domain, token, keyAuth string) error { _, value := dns01.GetRecord(domain, keyAuth) err := d.doRequest(domain, value, "DELETE") if err != nil { return fmt.Errorf("mydnsjp: %w", err) } return nil }
{ "pile_set_name": "Github" }
.. BACpypes bsll module .. module:: bsllservice BACnet Streaming Link Layer Service =================================== BACnet streaming link layer... Streaming Packets ----------------- .. function:: _Packetize(data) :param data: octet stream to slice into packets This is a long line of text. .. class:: _StreamToPacket(StreamToPacket) This is a long line of text. User Information ---------------- This is a long line of text. .. class:: UserInformation() .. method:: __init__(**kwargs) :param string username: the user name :param string password: the user password :param boolean allServices: :param boolean deviceToDeviceService: :param boolean routerToRouterService: :param boolean proxyService: :param boolean laneService: :param boolean proxyNetwork: This is a long line of text. Connection State ---------------- Every thing is connected and every connection has a state. * NOT_AUTHENTICATED - no authentication attempted * REQUESTED - access request sent to the server (client only) * CHALLENGED - access challenge sent to the client (server only) * AUTHENTICATED - authentication successful This is a long line of text. .. class:: ConnectionState This is a long line of text. .. attribute:: address This is a long line of text. .. attribute:: service This is a long line of text. .. attribute:: connected This is a long line of text. .. attribute:: accessState This is a long line of text. .. attribute:: challenge This is a long line of text. .. attribute:: userinfo This is a long line of text. .. attribute:: proxyAdapter This is a long line of text. Service Adapter --------------- This is a long line of text. .. class:: ServiceAdapter() This is a long line of text. .. method:: __init__(mux) This is a long line of text. .. method:: authentication_required(addr) This is a long line of text. .. method:: get_default_user_info(addr) This is a long line of text. .. method:: get_user_info(username) This is a long line of text. .. method:: add_connection(conn) This is a long line of text. .. method:: remove_connection(conn) This is a long line of text. .. method:: service_request(pdu) This is a long line of text. .. method:: service_confirmation(conn, pdu) This is a long line of text. .. class:: NetworkServiceAdapter(ServiceAdapter, NetworkAdapter) This is a long line of text. TCP Multiplexing ---------------- This is a long line of text. .. class:: TCPServerMultiplexer(Client) This is a long line of text. .. method:: __init__(addr=None) :param addr: address to bind This is a long line of text. .. method:: request(pdu) :param pdu: message to process This is a long line of text. .. method:: indication(server, pdu) :param server: multiplexer reference :param pdu: message to process This is a long line of text. .. method:: confirmation(pdu) :param pdu: message to process This is a long line of text. .. method:: do_AccessRequest(conn, bslpdu) :param conn: message to process :param bslpdu: message to process This is a long line of text. .. method:: do_AccessResponse(conn, bslpdu) :param conn: message to process :param bslpdu: message to process This is a long line of text. .. class:: TCPClientMultiplexer(Client) This is a long line of text. .. method:: __init__() This is a long line of text. .. method:: request(pdu) :param pdu: message to process This is a long line of text. .. method:: indication(server, pdu) :param server: multiplexer reference :param pdu: message to process This is a long line of text. .. method:: confirmation(pdu) :param pdu: message to process This is a long line of text. .. method:: do_AccessChallenge(conn, bslpdu) :param conn: message to process :param bslpdu: message to process This is a long line of text. .. class:: TCPMultiplexerASE(ApplicationServiceElement) This is a long line of text. .. method:: __init__(self, mux) This is a long line of text. .. method:: indication(*args, **kwargs) :param addPeer: peer address to add :param delPeer: peer address to delete This is a long line of text. Device-to-Device Service ------------------------ This is a long line of text. .. class:: DeviceToDeviceServerService(NetworkServiceAdapter) This is a long line of text. .. method:: process_npdu(npdu) This is a long line of text. .. method:: service_confirmation(conn, pdu) This is a long line of text. .. class:: DeviceToDeviceClientService(NetworkServiceAdapter) This is a long line of text. .. method:: process_npdu(npdu) This is a long line of text. .. method:: connect(addr) This is a long line of text. .. method:: connect_ack(conn, pdu) This is a long line of text. .. method:: service_confirmation(conn, pdu) This is a long line of text. Router-to-Router Service ------------------------ This is a long line of text. .. class:: RouterToRouterService(NetworkServiceAdapter) This is a long line of text. .. method:: process_npdu(npdu) This is a long line of text. .. method:: connect(addr) This is a long line of text. .. method:: connect_ack(conn, pdu) This is a long line of text. .. method:: add_connection(conn) This is a long line of text. .. method:: remove_connection(conn) This is a long line of text. .. method:: service_confirmation(conn, pdu) This is a long line of text. Proxy Service ------------- This is a long line of text. .. class:: ProxyServiceNetworkAdapter(NetworkAdapter) This is a long line of text. .. method:: process_npdu(npdu) This is a long line of text. .. method:: service_confirmation(conn, pdu) This is a long line of text. .. class:: ProxyServerService(ServiceAdapter) This is a long line of text. .. method:: add_connection(conn) This is a long line of text. .. method:: remove_connection(conn) This is a long line of text. .. method:: service_confirmation(conn, bslpdu) This is a long line of text. .. class:: ProxyClientService(ServiceAdapter) This is a long line of text. .. method:: __init__(self, mux, addr=None, userinfo=None) :param mux: :param addr: :param userinfo: This is a long line of text. .. method:: get_default_user_info(addr) This is a long line of text. .. method:: connect(addr=None, userinfo=None) This is a long line of text. .. method:: connect_ack(conn, bslpdu) This is a long line of text. .. method:: service_confirmation(conn, bslpdu) This is a long line of text. .. method:: confirmation(pdu) This is a long line of text. LAN Emulation Service --------------------- To be developed.
{ "pile_set_name": "Github" }
.generic-datasource-query-row .query-keyword { width: 75px; }
{ "pile_set_name": "Github" }
{{- if .Values.rbac.enabled }} apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ include "enmasse.fullname" . }}-address-space-controller labels: {{ include "enmasse.labels" . | indent 4 }} roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: {{ include "enmasse.fullname" . }}-address-space-controller subjects: - kind: ServiceAccount name: {{ include "enmasse.fullname" . }}-address-space-controller namespace: {{.Release.Namespace}} {{- end }}
{ "pile_set_name": "Github" }
// keygenerator.h : main header file for the KEYGENERATOR application // #if !defined(AFX_KEYGENERATOR_H__22CD5805_2CF6_11D9_A6F0_0060087D3389__INCLUDED_) #define AFX_KEYGENERATOR_H__22CD5805_2CF6_11D9_A6F0_0060087D3389__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CKeygeneratorApp: // See keygenerator.cpp for the implementation of this class // class CKeygeneratorApp : public CWinApp { public: CKeygeneratorApp(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CKeygeneratorApp) public: virtual BOOL InitInstance(); //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(CKeygeneratorApp) // NOTE - the ClassWizard will add and remove member functions here. // DO NOT EDIT what you see in these blocks of generated code ! //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_KEYGENERATOR_H__22CD5805_2CF6_11D9_A6F0_0060087D3389__INCLUDED_)
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>Eclipse Public License - Version 1.0</title> <style type="text/css"> body { size: 8.5in 11.0in; margin: 0.25in 0.5in 0.25in 0.5in; tab-interval: 0.5in; } p { margin-left: auto; margin-top: 0.5em; margin-bottom: 0.5em; } p.list { margin-left: 0.5in; margin-top: 0.05em; margin-bottom: 0.05em; } </style> </head> <body lang="EN-US"> <h2>Eclipse Public License - v 1.0</h2> <p>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (&quot;AGREEMENT&quot;). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.</p> <p><b>1. DEFINITIONS</b></p> <p>&quot;Contribution&quot; means:</p> <p class="list">a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and</p> <p class="list">b) in the case of each subsequent Contributor:</p> <p class="list">i) changes to the Program, and</p> <p class="list">ii) additions to the Program;</p> <p class="list">where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.</p> <p>&quot;Contributor&quot; means any person or entity that distributes the Program.</p> <p>&quot;Licensed Patents&quot; mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.</p> <p>&quot;Program&quot; means the Contributions distributed in accordance with this Agreement.</p> <p>&quot;Recipient&quot; means anyone who receives the Program under this Agreement, including all Contributors.</p> <p><b>2. GRANT OF RIGHTS</b></p> <p class="list">a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.</p> <p class="list">b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.</p> <p class="list">c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.</p> <p class="list">d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.</p> <p><b>3. REQUIREMENTS</b></p> <p>A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:</p> <p class="list">a) it complies with the terms and conditions of this Agreement; and</p> <p class="list">b) its license agreement:</p> <p class="list">i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;</p> <p class="list">ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;</p> <p class="list">iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and</p> <p class="list">iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.</p> <p>When the Program is made available in source code form:</p> <p class="list">a) it must be made available under this Agreement; and</p> <p class="list">b) a copy of this Agreement must be included with each copy of the Program.</p> <p>Contributors may not remove or alter any copyright notices contained within the Program.</p> <p>Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.</p> <p><b>4. COMMERCIAL DISTRIBUTION</b></p> <p>Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor (&quot;Commercial Contributor&quot;) hereby agrees to defend and indemnify every other Contributor (&quot;Indemnified Contributor&quot;) against any losses, damages and costs (collectively &quot;Losses&quot;) arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.</p> <p>For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.</p> <p><b>5. NO WARRANTY</b></p> <p>EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.</p> <p><b>6. DISCLAIMER OF LIABILITY</b></p> <p>EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), 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 OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</p> <p><b>7. GENERAL</b></p> <p>If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.</p> <p>If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.</p> <p>All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.</p> <p>Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.</p> <p>This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.</p> </body> </html>
{ "pile_set_name": "Github" }
<?php namespace Victoire\Bundle\ViewReferenceBundle\ViewReference; class BusinessPageReference extends ViewReference { protected $entityId; protected $entityNamespace; protected $templateId; /** * @return mixed */ public function getEntityId() { return $this->entityId; } /** * @param mixed $entityId */ public function setEntityId($entityId) { $this->entityId = $entityId; } /** * @return mixed */ public function getEntityNamespace() { return $this->entityNamespace; } /** * @param mixed $entityNamespace */ public function setEntityNamespace($entityNamespace) { $this->entityNamespace = $entityNamespace; } /** * @return mixed */ public function getTemplateId() { return $this->templateId; } /** * @param mixed $templateId */ public function setTemplateId($templateId) { $this->templateId = $templateId; } }
{ "pile_set_name": "Github" }
import { BlockHandler } from "./block-handler"; export class InvalidGeneratorHandler extends BlockHandler {}
{ "pile_set_name": "Github" }
# This is the CMakeCache file. # For build in directory: /Users/zhanggeng/CVCheck/app/.externalNativeBuild/cmake/universalRelease/x86 # It was generated by CMake: /Users/zhanggeng/android_tools/android_studio/android-sdk-macosx/cmake/3.6.3155560/bin/cmake # You can edit this file to change values found and used by cmake. # If you do not want to change any of the values, simply exit the editor. # If you do want to change a value, simply edit, save, and exit the editor. # The syntax for the file is as follows: # KEY:TYPE=VALUE # KEY is the name of a variable in the cache. # TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. # VALUE is the current value for the KEY. ######################## # EXTERNAL cache entries ######################## //No help, variable specified on the command line. ANDROID_ABI:UNINITIALIZED=x86 //No help, variable specified on the command line. ANDROID_NATIVE_API_LEVEL:UNINITIALIZED=14 //No help, variable specified on the command line. ANDROID_NDK:UNINITIALIZED=/Users/zhanggeng/android_tools/android_studio/android-sdk-macosx/ndk-bundle //No help, variable specified on the command line. ANDROID_TOOLCHAIN:UNINITIALIZED=clang //Path to a program. CMAKE_AR:FILEPATH=/Users/zhanggeng/android_tools/android_studio/android-sdk-macosx/ndk-bundle/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-ar //Choose the type of build, options are: None(CMAKE_CXX_FLAGS or // CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel. CMAKE_BUILD_TYPE:STRING=Release //Flags used by the compiler during all build types. CMAKE_CXX_FLAGS:STRING= //Flags used by the compiler during debug builds. CMAKE_CXX_FLAGS_DEBUG:STRING= //Flags used by the compiler during release builds for minimum // size. CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG //Flags used by the compiler during release builds. CMAKE_CXX_FLAGS_RELEASE:STRING= //Flags used by the compiler during release builds with debug info. CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG //Libraries linked by default with all C++ applications. CMAKE_CXX_STANDARD_LIBRARIES:STRING=-lm "/Users/zhanggeng/android_tools/android_studio/android-sdk-macosx/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86/libgnustl_static.a" //Flags used by the compiler during all build types. CMAKE_C_FLAGS:STRING= //Flags used by the compiler during debug builds. CMAKE_C_FLAGS_DEBUG:STRING= //Flags used by the compiler during release builds for minimum // size. CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG //Flags used by the compiler during release builds. CMAKE_C_FLAGS_RELEASE:STRING= //Flags used by the compiler during release builds with debug info. CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG //Libraries linked by default with all C applications. CMAKE_C_STANDARD_LIBRARIES:STRING=-lm //Flags used by the linker. CMAKE_EXE_LINKER_FLAGS:STRING= //Flags used by the linker during debug builds. CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during release minsize builds. CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during release builds. CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during Release with Debug Info builds. CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= //Enable/Disable output of compile commands during generation. CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF //Install path prefix, prepended onto install directories. CMAKE_INSTALL_PREFIX:PATH=/usr/local //No help, variable specified on the command line. CMAKE_LIBRARY_OUTPUT_DIRECTORY:UNINITIALIZED=/Users/zhanggeng/CVCheck/app/build/intermediates/cmake/universal/release/obj/x86 //Path to a program. CMAKE_LINKER:FILEPATH=/Users/zhanggeng/android_tools/android_studio/android-sdk-macosx/ndk-bundle/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-ld //No help, variable specified on the command line. CMAKE_MAKE_PROGRAM:UNINITIALIZED=/Users/zhanggeng/android_tools/android_studio/android-sdk-macosx/cmake/3.6.3155560/bin/ninja //Flags used by the linker during the creation of modules. CMAKE_MODULE_LINKER_FLAGS:STRING= //Flags used by the linker during debug builds. CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during release minsize builds. CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during release builds. CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during Release with Debug Info builds. CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= //Path to a program. CMAKE_NM:FILEPATH=/Users/zhanggeng/android_tools/android_studio/android-sdk-macosx/ndk-bundle/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-nm //Path to a program. CMAKE_OBJCOPY:FILEPATH=/Users/zhanggeng/android_tools/android_studio/android-sdk-macosx/ndk-bundle/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-objcopy //Path to a program. CMAKE_OBJDUMP:FILEPATH=/Users/zhanggeng/android_tools/android_studio/android-sdk-macosx/ndk-bundle/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-objdump //Value Computed by CMake CMAKE_PROJECT_NAME:STATIC=Project //Path to a program. CMAKE_RANLIB:FILEPATH=/Users/zhanggeng/android_tools/android_studio/android-sdk-macosx/ndk-bundle/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-ranlib //Flags used by the linker during the creation of dll's. CMAKE_SHARED_LINKER_FLAGS:STRING= //Flags used by the linker during debug builds. CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during release minsize builds. CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during release builds. CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during Release with Debug Info builds. CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= //If set, runtime paths are not added when installing shared libraries, // but are added when building. CMAKE_SKIP_INSTALL_RPATH:BOOL=NO //If set, runtime paths are not added when using shared libraries. CMAKE_SKIP_RPATH:BOOL=NO //Flags used by the linker during the creation of static libraries. CMAKE_STATIC_LINKER_FLAGS:STRING= //Flags used by the linker during debug builds. CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= //Flags used by the linker during release minsize builds. CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= //Flags used by the linker during release builds. CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= //Flags used by the linker during Release with Debug Info builds. CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= //Path to a program. CMAKE_STRIP:FILEPATH=/Users/zhanggeng/android_tools/android_studio/android-sdk-macosx/ndk-bundle/toolchains/x86-4.9/prebuilt/darwin-x86_64/bin/i686-linux-android-strip //The CMake toolchain file CMAKE_TOOLCHAIN_FILE:FILEPATH=/Users/zhanggeng/android_tools/android_studio/android-sdk-macosx/ndk-bundle/build/cmake/android.toolchain.cmake //If this value is on, makefiles will be generated without the // .SILENT directive, and all commands will be echoed to the console // during the make. This is useful for debugging only. With Visual // Studio IDE projects all commands are done without /nologo. CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE //Value Computed by CMake Project_BINARY_DIR:STATIC=/Users/zhanggeng/CVCheck/app/.externalNativeBuild/cmake/universalRelease/x86 //Value Computed by CMake Project_SOURCE_DIR:STATIC=/Users/zhanggeng/CVCheck/app/src/main/cpp //Dependencies for the target native-lib_LIB_DEPENDS:STATIC=general;android;general;log; ######################## # INTERNAL cache entries ######################## //ADVANCED property for variable: CMAKE_AR CMAKE_AR-ADVANCED:INTERNAL=1 //This is the directory where this CMakeCache.txt was created CMAKE_CACHEFILE_DIR:INTERNAL=/Users/zhanggeng/CVCheck/app/.externalNativeBuild/cmake/universalRelease/x86 //Major version of cmake used to create the current loaded cache CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 //Minor version of cmake used to create the current loaded cache CMAKE_CACHE_MINOR_VERSION:INTERNAL=6 //Patch version of cmake used to create the current loaded cache CMAKE_CACHE_PATCH_VERSION:INTERNAL=0 //Path to CMake executable. CMAKE_COMMAND:INTERNAL=/Users/zhanggeng/android_tools/android_studio/android-sdk-macosx/cmake/3.6.3155560/bin/cmake //Path to cpack program executable. CMAKE_CPACK_COMMAND:INTERNAL=/Users/zhanggeng/android_tools/android_studio/android-sdk-macosx/cmake/3.6.3155560/bin/cpack //Path to ctest program executable. CMAKE_CTEST_COMMAND:INTERNAL=/Users/zhanggeng/android_tools/android_studio/android-sdk-macosx/cmake/3.6.3155560/bin/ctest //ADVANCED property for variable: CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_CXX_STANDARD_LIBRARIES CMAKE_CXX_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_C_STANDARD_LIBRARIES CMAKE_C_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1 //Name of external makefile project generator. CMAKE_EXTRA_GENERATOR:INTERNAL=Android Gradle //Name of generator. CMAKE_GENERATOR:INTERNAL=Ninja //Name of generator platform. CMAKE_GENERATOR_PLATFORM:INTERNAL= //Name of generator toolset. CMAKE_GENERATOR_TOOLSET:INTERNAL= //Source directory with the top level CMakeLists.txt file for this // project CMAKE_HOME_DIRECTORY:INTERNAL=/Users/zhanggeng/CVCheck/app/src/main/cpp //Install .so files without execute permission. CMAKE_INSTALL_SO_NO_EXE:INTERNAL=0 //ADVANCED property for variable: CMAKE_LINKER CMAKE_LINKER-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_NM CMAKE_NM-ADVANCED:INTERNAL=1 //number of local generators CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1 //ADVANCED property for variable: CMAKE_OBJCOPY CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_OBJDUMP CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_RANLIB CMAKE_RANLIB-ADVANCED:INTERNAL=1 //Path to CMake installation. CMAKE_ROOT:INTERNAL=/Users/zhanggeng/android_tools/android_studio/android-sdk-macosx/cmake/3.6.3155560/share/cmake-3.6 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_SKIP_RPATH CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 //ADVANCED property for variable: CMAKE_STRIP CMAKE_STRIP-ADVANCED:INTERNAL=1 //uname command CMAKE_UNAME:INTERNAL=/usr/bin/uname //ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
{ "pile_set_name": "Github" }
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "WXPBGeneratedMessage.h" @class NSData; @interface HWParamBuffer : WXPBGeneratedMessage { } + (void)initialize; // Remaining properties @property(nonatomic) unsigned int headerLen; // @dynamic headerLen; @property(retain, nonatomic) NSData *ppsbuf; // @dynamic ppsbuf; @property(retain, nonatomic) NSData *spsbuf; // @dynamic spsbuf; @end
{ "pile_set_name": "Github" }
/* * OMAP5 thermal driver. * * Copyright (C) 2011-2012 Texas Instruments Inc. * Contact: * Eduardo Valentin <[email protected]> * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #include "ti-thermal.h" #include "ti-bandgap.h" #include "omap5xxx-bandgap.h" /* * OMAP5430 has three instances of thermal sensor for MPU, GPU & CORE, * need to describe the individual registers and bit fields. */ /* * OMAP5430 MPU thermal sensor register offset and bit-fields */ static struct temp_sensor_registers omap5430_mpu_temp_sensor_registers = { .temp_sensor_ctrl = OMAP5430_TEMP_SENSOR_MPU_OFFSET, .bgap_tempsoff_mask = OMAP5430_BGAP_TEMPSOFF_MASK, .bgap_eocz_mask = OMAP5430_BGAP_TEMP_SENSOR_EOCZ_MASK, .bgap_dtemp_mask = OMAP5430_BGAP_TEMP_SENSOR_DTEMP_MASK, .bgap_mask_ctrl = OMAP5430_BGAP_CTRL_OFFSET, .mask_hot_mask = OMAP5430_MASK_HOT_MPU_MASK, .mask_cold_mask = OMAP5430_MASK_COLD_MPU_MASK, .mask_sidlemode_mask = OMAP5430_MASK_SIDLEMODE_MASK, .mask_counter_delay_mask = OMAP5430_MASK_COUNTER_DELAY_MASK, .mask_freeze_mask = OMAP5430_MASK_FREEZE_MPU_MASK, .mask_clear_mask = OMAP5430_MASK_CLEAR_MPU_MASK, .mask_clear_accum_mask = OMAP5430_MASK_CLEAR_ACCUM_MPU_MASK, .bgap_counter = OMAP5430_BGAP_CTRL_OFFSET, .counter_mask = OMAP5430_COUNTER_MASK, .bgap_threshold = OMAP5430_BGAP_THRESHOLD_MPU_OFFSET, .threshold_thot_mask = OMAP5430_T_HOT_MASK, .threshold_tcold_mask = OMAP5430_T_COLD_MASK, .tshut_threshold = OMAP5430_BGAP_TSHUT_MPU_OFFSET, .tshut_hot_mask = OMAP5430_TSHUT_HOT_MASK, .tshut_cold_mask = OMAP5430_TSHUT_COLD_MASK, .bgap_status = OMAP5430_BGAP_STATUS_OFFSET, .status_clean_stop_mask = 0x0, .status_bgap_alert_mask = OMAP5430_BGAP_ALERT_MASK, .status_hot_mask = OMAP5430_HOT_MPU_FLAG_MASK, .status_cold_mask = OMAP5430_COLD_MPU_FLAG_MASK, .bgap_cumul_dtemp = OMAP5430_BGAP_CUMUL_DTEMP_MPU_OFFSET, .ctrl_dtemp_0 = OMAP5430_BGAP_DTEMP_MPU_0_OFFSET, .ctrl_dtemp_1 = OMAP5430_BGAP_DTEMP_MPU_1_OFFSET, .ctrl_dtemp_2 = OMAP5430_BGAP_DTEMP_MPU_2_OFFSET, .ctrl_dtemp_3 = OMAP5430_BGAP_DTEMP_MPU_3_OFFSET, .ctrl_dtemp_4 = OMAP5430_BGAP_DTEMP_MPU_4_OFFSET, .bgap_efuse = OMAP5430_FUSE_OPP_BGAP_MPU, }; /* * OMAP5430 GPU thermal sensor register offset and bit-fields */ static struct temp_sensor_registers omap5430_gpu_temp_sensor_registers = { .temp_sensor_ctrl = OMAP5430_TEMP_SENSOR_GPU_OFFSET, .bgap_tempsoff_mask = OMAP5430_BGAP_TEMPSOFF_MASK, .bgap_eocz_mask = OMAP5430_BGAP_TEMP_SENSOR_EOCZ_MASK, .bgap_dtemp_mask = OMAP5430_BGAP_TEMP_SENSOR_DTEMP_MASK, .bgap_mask_ctrl = OMAP5430_BGAP_CTRL_OFFSET, .mask_hot_mask = OMAP5430_MASK_HOT_GPU_MASK, .mask_cold_mask = OMAP5430_MASK_COLD_GPU_MASK, .mask_sidlemode_mask = OMAP5430_MASK_SIDLEMODE_MASK, .mask_counter_delay_mask = OMAP5430_MASK_COUNTER_DELAY_MASK, .mask_freeze_mask = OMAP5430_MASK_FREEZE_GPU_MASK, .mask_clear_mask = OMAP5430_MASK_CLEAR_GPU_MASK, .mask_clear_accum_mask = OMAP5430_MASK_CLEAR_ACCUM_GPU_MASK, .bgap_counter = OMAP5430_BGAP_CTRL_OFFSET, .counter_mask = OMAP5430_COUNTER_MASK, .bgap_threshold = OMAP5430_BGAP_THRESHOLD_GPU_OFFSET, .threshold_thot_mask = OMAP5430_T_HOT_MASK, .threshold_tcold_mask = OMAP5430_T_COLD_MASK, .tshut_threshold = OMAP5430_BGAP_TSHUT_GPU_OFFSET, .tshut_hot_mask = OMAP5430_TSHUT_HOT_MASK, .tshut_cold_mask = OMAP5430_TSHUT_COLD_MASK, .bgap_status = OMAP5430_BGAP_STATUS_OFFSET, .status_clean_stop_mask = 0x0, .status_bgap_alert_mask = OMAP5430_BGAP_ALERT_MASK, .status_hot_mask = OMAP5430_HOT_GPU_FLAG_MASK, .status_cold_mask = OMAP5430_COLD_GPU_FLAG_MASK, .bgap_cumul_dtemp = OMAP5430_BGAP_CUMUL_DTEMP_GPU_OFFSET, .ctrl_dtemp_0 = OMAP5430_BGAP_DTEMP_GPU_0_OFFSET, .ctrl_dtemp_1 = OMAP5430_BGAP_DTEMP_GPU_1_OFFSET, .ctrl_dtemp_2 = OMAP5430_BGAP_DTEMP_GPU_2_OFFSET, .ctrl_dtemp_3 = OMAP5430_BGAP_DTEMP_GPU_3_OFFSET, .ctrl_dtemp_4 = OMAP5430_BGAP_DTEMP_GPU_4_OFFSET, .bgap_efuse = OMAP5430_FUSE_OPP_BGAP_GPU, }; /* * OMAP5430 CORE thermal sensor register offset and bit-fields */ static struct temp_sensor_registers omap5430_core_temp_sensor_registers = { .temp_sensor_ctrl = OMAP5430_TEMP_SENSOR_CORE_OFFSET, .bgap_tempsoff_mask = OMAP5430_BGAP_TEMPSOFF_MASK, .bgap_eocz_mask = OMAP5430_BGAP_TEMP_SENSOR_EOCZ_MASK, .bgap_dtemp_mask = OMAP5430_BGAP_TEMP_SENSOR_DTEMP_MASK, .bgap_mask_ctrl = OMAP5430_BGAP_CTRL_OFFSET, .mask_hot_mask = OMAP5430_MASK_HOT_CORE_MASK, .mask_cold_mask = OMAP5430_MASK_COLD_CORE_MASK, .mask_sidlemode_mask = OMAP5430_MASK_SIDLEMODE_MASK, .mask_counter_delay_mask = OMAP5430_MASK_COUNTER_DELAY_MASK, .mask_freeze_mask = OMAP5430_MASK_FREEZE_CORE_MASK, .mask_clear_mask = OMAP5430_MASK_CLEAR_CORE_MASK, .mask_clear_accum_mask = OMAP5430_MASK_CLEAR_ACCUM_CORE_MASK, .bgap_counter = OMAP5430_BGAP_CTRL_OFFSET, .counter_mask = OMAP5430_COUNTER_MASK, .bgap_threshold = OMAP5430_BGAP_THRESHOLD_CORE_OFFSET, .threshold_thot_mask = OMAP5430_T_HOT_MASK, .threshold_tcold_mask = OMAP5430_T_COLD_MASK, .tshut_threshold = OMAP5430_BGAP_TSHUT_CORE_OFFSET, .tshut_hot_mask = OMAP5430_TSHUT_HOT_MASK, .tshut_cold_mask = OMAP5430_TSHUT_COLD_MASK, .bgap_status = OMAP5430_BGAP_STATUS_OFFSET, .status_clean_stop_mask = 0x0, .status_bgap_alert_mask = OMAP5430_BGAP_ALERT_MASK, .status_hot_mask = OMAP5430_HOT_CORE_FLAG_MASK, .status_cold_mask = OMAP5430_COLD_CORE_FLAG_MASK, .bgap_cumul_dtemp = OMAP5430_BGAP_CUMUL_DTEMP_CORE_OFFSET, .ctrl_dtemp_0 = OMAP5430_BGAP_DTEMP_CORE_0_OFFSET, .ctrl_dtemp_1 = OMAP5430_BGAP_DTEMP_CORE_1_OFFSET, .ctrl_dtemp_2 = OMAP5430_BGAP_DTEMP_CORE_2_OFFSET, .ctrl_dtemp_3 = OMAP5430_BGAP_DTEMP_CORE_3_OFFSET, .ctrl_dtemp_4 = OMAP5430_BGAP_DTEMP_CORE_4_OFFSET, .bgap_efuse = OMAP5430_FUSE_OPP_BGAP_CORE, }; /* Thresholds and limits for OMAP5430 MPU temperature sensor */ static struct temp_sensor_data omap5430_mpu_temp_sensor_data = { .tshut_hot = OMAP5430_MPU_TSHUT_HOT, .tshut_cold = OMAP5430_MPU_TSHUT_COLD, .t_hot = OMAP5430_MPU_T_HOT, .t_cold = OMAP5430_MPU_T_COLD, .min_freq = OMAP5430_MPU_MIN_FREQ, .max_freq = OMAP5430_MPU_MAX_FREQ, .max_temp = OMAP5430_MPU_MAX_TEMP, .min_temp = OMAP5430_MPU_MIN_TEMP, .hyst_val = OMAP5430_MPU_HYST_VAL, .update_int1 = 1000, .update_int2 = 2000, }; /* Thresholds and limits for OMAP5430 GPU temperature sensor */ static struct temp_sensor_data omap5430_gpu_temp_sensor_data = { .tshut_hot = OMAP5430_GPU_TSHUT_HOT, .tshut_cold = OMAP5430_GPU_TSHUT_COLD, .t_hot = OMAP5430_GPU_T_HOT, .t_cold = OMAP5430_GPU_T_COLD, .min_freq = OMAP5430_GPU_MIN_FREQ, .max_freq = OMAP5430_GPU_MAX_FREQ, .max_temp = OMAP5430_GPU_MAX_TEMP, .min_temp = OMAP5430_GPU_MIN_TEMP, .hyst_val = OMAP5430_GPU_HYST_VAL, .update_int1 = 1000, .update_int2 = 2000, }; /* Thresholds and limits for OMAP5430 CORE temperature sensor */ static struct temp_sensor_data omap5430_core_temp_sensor_data = { .tshut_hot = OMAP5430_CORE_TSHUT_HOT, .tshut_cold = OMAP5430_CORE_TSHUT_COLD, .t_hot = OMAP5430_CORE_T_HOT, .t_cold = OMAP5430_CORE_T_COLD, .min_freq = OMAP5430_CORE_MIN_FREQ, .max_freq = OMAP5430_CORE_MAX_FREQ, .max_temp = OMAP5430_CORE_MAX_TEMP, .min_temp = OMAP5430_CORE_MIN_TEMP, .hyst_val = OMAP5430_CORE_HYST_VAL, .update_int1 = 1000, .update_int2 = 2000, }; /* * OMAP54xx ES2.0 : Temperature values in milli degree celsius * ADC code values from 540 to 945 */ static int omap5430_adc_to_temp[ OMAP5430_ADC_END_VALUE - OMAP5430_ADC_START_VALUE + 1] = { /* Index 540 - 549 */ -40000, -40000, -40000, -40000, -39800, -39400, -39000, -38600, -38200, -37800, /* Index 550 - 559 */ -37400, -37000, -36600, -36200, -35800, -35300, -34700, -34200, -33800, -33400, /* Index 560 - 569 */ -33000, -32600, -32200, -31800, -31400, -31000, -30600, -30200, -29800, -29400, /* Index 570 - 579 */ -29000, -28600, -28200, -27700, -27100, -26600, -26200, -25800, -25400, -25000, /* Index 580 - 589 */ -24600, -24200, -23800, -23400, -23000, -22600, -22200, -21600, -21400, -21000, /* Index 590 - 599 */ -20500, -19900, -19400, -19000, -18600, -18200, -17800, -17400, -17000, -16600, /* Index 600 - 609 */ -16200, -15800, -15400, -15000, -14600, -14200, -13800, -13400, -13000, -12500, /* Index 610 - 619 */ -11900, -11400, -11000, -10600, -10200, -9800, -9400, -9000, -8600, -8200, /* Index 620 - 629 */ -7800, -7400, -7000, -6600, -6200, -5800, -5400, -5000, -4500, -3900, /* Index 630 - 639 */ -3400, -3000, -2600, -2200, -1800, -1400, -1000, -600, -200, 200, /* Index 640 - 649 */ 600, 1000, 1400, 1800, 2200, 2600, 3000, 3400, 3900, 4500, /* Index 650 - 659 */ 5000, 5400, 5800, 6200, 6600, 7000, 7400, 7800, 8200, 8600, /* Index 660 - 669 */ 9000, 9400, 9800, 10200, 10600, 11000, 11400, 11800, 12200, 12700, /* Index 670 - 679 */ 13300, 13800, 14200, 14600, 15000, 15400, 15800, 16200, 16600, 17000, /* Index 680 - 689 */ 17400, 17800, 18200, 18600, 19000, 19400, 19800, 20200, 20600, 21100, /* Index 690 - 699 */ 21400, 21900, 22500, 23000, 23400, 23800, 24200, 24600, 25000, 25400, /* Index 700 - 709 */ 25800, 26200, 26600, 27000, 27400, 27800, 28200, 28600, 29000, 29400, /* Index 710 - 719 */ 29800, 30200, 30600, 31000, 31400, 31900, 32500, 33000, 33400, 33800, /* Index 720 - 729 */ 34200, 34600, 35000, 35400, 35800, 36200, 36600, 37000, 37400, 37800, /* Index 730 - 739 */ 38200, 38600, 39000, 39400, 39800, 40200, 40600, 41000, 41400, 41800, /* Index 740 - 749 */ 42200, 42600, 43100, 43700, 44200, 44600, 45000, 45400, 45800, 46200, /* Index 750 - 759 */ 46600, 47000, 47400, 47800, 48200, 48600, 49000, 49400, 49800, 50200, /* Index 760 - 769 */ 50600, 51000, 51400, 51800, 52200, 52600, 53000, 53400, 53800, 54200, /* Index 770 - 779 */ 54600, 55000, 55400, 55900, 56500, 57000, 57400, 57800, 58200, 58600, /* Index 780 - 789 */ 59000, 59400, 59800, 60200, 60600, 61000, 61400, 61800, 62200, 62600, /* Index 790 - 799 */ 63000, 63400, 63800, 64200, 64600, 65000, 65400, 65800, 66200, 66600, /* Index 800 - 809 */ 67000, 67400, 67800, 68200, 68600, 69000, 69400, 69800, 70200, 70600, /* Index 810 - 819 */ 71000, 71500, 72100, 72600, 73000, 73400, 73800, 74200, 74600, 75000, /* Index 820 - 829 */ 75400, 75800, 76200, 76600, 77000, 77400, 77800, 78200, 78600, 79000, /* Index 830 - 839 */ 79400, 79800, 80200, 80600, 81000, 81400, 81800, 82200, 82600, 83000, /* Index 840 - 849 */ 83400, 83800, 84200, 84600, 85000, 85400, 85800, 86200, 86600, 87000, /* Index 850 - 859 */ 87400, 87800, 88200, 88600, 89000, 89400, 89800, 90200, 90600, 91000, /* Index 860 - 869 */ 91400, 91800, 92200, 92600, 93000, 93400, 93800, 94200, 94600, 95000, /* Index 870 - 879 */ 95400, 95800, 96200, 96600, 97000, 97500, 98100, 98600, 99000, 99400, /* Index 880 - 889 */ 99800, 100200, 100600, 101000, 101400, 101800, 102200, 102600, 103000, 103400, /* Index 890 - 899 */ 103800, 104200, 104600, 105000, 105400, 105800, 106200, 106600, 107000, 107400, /* Index 900 - 909 */ 107800, 108200, 108600, 109000, 109400, 109800, 110200, 110600, 111000, 111400, /* Index 910 - 919 */ 111800, 112200, 112600, 113000, 113400, 113800, 114200, 114600, 115000, 115400, /* Index 920 - 929 */ 115800, 116200, 116600, 117000, 117400, 117800, 118200, 118600, 119000, 119400, /* Index 930 - 939 */ 119800, 120200, 120600, 121000, 121400, 121800, 122400, 122600, 123000, 123400, /* Index 940 - 945 */ 123800, 1242000, 124600, 124900, 125000, 125000, }; /* OMAP54xx ES2.0 data */ const struct ti_bandgap_data omap5430_data = { .features = TI_BANDGAP_FEATURE_TSHUT_CONFIG | TI_BANDGAP_FEATURE_FREEZE_BIT | TI_BANDGAP_FEATURE_TALERT | TI_BANDGAP_FEATURE_COUNTER_DELAY | TI_BANDGAP_FEATURE_HISTORY_BUFFER | TI_BANDGAP_FEATURE_ERRATA_813, .fclock_name = "l3instr_ts_gclk_div", .div_ck_name = "l3instr_ts_gclk_div", .conv_table = omap5430_adc_to_temp, .adc_start_val = OMAP5430_ADC_START_VALUE, .adc_end_val = OMAP5430_ADC_END_VALUE, .expose_sensor = ti_thermal_expose_sensor, .remove_sensor = ti_thermal_remove_sensor, .report_temperature = ti_thermal_report_sensor_temperature, .sensors = { { .registers = &omap5430_mpu_temp_sensor_registers, .ts_data = &omap5430_mpu_temp_sensor_data, .domain = "cpu", .register_cooling = ti_thermal_register_cpu_cooling, .unregister_cooling = ti_thermal_unregister_cpu_cooling, .slope_pcb = OMAP_GRADIENT_SLOPE_W_PCB_5430_CPU, .constant_pcb = OMAP_GRADIENT_CONST_W_PCB_5430_CPU, }, { .registers = &omap5430_gpu_temp_sensor_registers, .ts_data = &omap5430_gpu_temp_sensor_data, .domain = "gpu", .slope_pcb = OMAP_GRADIENT_SLOPE_W_PCB_5430_GPU, .constant_pcb = OMAP_GRADIENT_CONST_W_PCB_5430_GPU, }, { .registers = &omap5430_core_temp_sensor_registers, .ts_data = &omap5430_core_temp_sensor_data, .domain = "core", }, }, .sensor_count = 3, };
{ "pile_set_name": "Github" }
/* * Copyright 2018-2020 ProfunKtor * * 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 dev.profunktor.redis4cats.algebra trait SetCommands[F[_], K, V] extends SetGetter[F, K, V] with SetSetter[F, K, V] with SetDeletion[F, K, V] { def sIsMember(key: K, value: V): F[Boolean] } trait SetGetter[F[_], K, V] { def sCard(key: K): F[Long] def sDiff(keys: K*): F[Set[V]] def sInter(keys: K*): F[Set[V]] def sMembers(key: K): F[Set[V]] def sRandMember(key: K): F[Option[V]] def sRandMember(key: K, count: Long): F[List[V]] def sUnion(keys: K*): F[Set[V]] def sUnionStore(destination: K, keys: K*): F[Unit] } trait SetSetter[F[_], K, V] { def sAdd(key: K, values: V*): F[Unit] def sDiffStore(destination: K, keys: K*): F[Unit] def sInterStore(destination: K, keys: K*): F[Unit] def sMove(source: K, destination: K, value: V): F[Unit] } trait SetDeletion[F[_], K, V] { def sPop(key: K): F[Option[V]] def sPop(key: K, count: Long): F[Set[V]] def sRem(key: K, values: V*): F[Unit] }
{ "pile_set_name": "Github" }
/** * Toggles * * Non-animation */ ;(function($, window, undefined) { "use strict"; $(document).ready(function() { // Chat Toggler $('a[data-toggle="chat"]').each(function(i, el) { $(el).on('click', function(ev) { ev.preventDefault(); public_vars.$body.toggleClass('chat-open'); if($.isFunction($.fn.perfectScrollbar)) { setTimeout(function() { public_vars.$chat.find('.chat_inner').perfectScrollbar('update'); $(window).trigger('xenon.resize'); }, 1); } }); }); // Settings Pane Toggler $('a[data-toggle="settings-pane"]').each(function(i, el) { $(el).on('click', function(ev) { ev.preventDefault(); var use_animation = attrDefault($(el), 'animate', false) && ! isxs(); var scroll = { top: $(document).scrollTop(), toTop: 0 }; if(public_vars.$body.hasClass('settings-pane-open')) { scroll.toTop = scroll.top; } TweenMax.to(scroll, (use_animation ? .1 : 0), {top: scroll.toTop, roundProps: ['top'], ease: scroll.toTop < 10 ? null : Sine.easeOut, onUpdate: function() { $(window).scrollTop( scroll.top ); }, onComplete: function() { if(use_animation) { // With Animation public_vars.$settingsPaneIn.addClass('with-animation'); // Opening if( ! public_vars.$settingsPane.is(':visible')) { public_vars.$body.addClass('settings-pane-open'); var height = public_vars.$settingsPane.outerHeight(true); public_vars.$settingsPane.css({ height: 0 }); TweenMax.to(public_vars.$settingsPane, .25, {css: {height: height}, ease: Circ.easeInOut, onComplete: function() { public_vars.$settingsPane.css({height: ''}); }}); public_vars.$settingsPaneIn.addClass('visible'); } // Closing else { public_vars.$settingsPaneIn.addClass('closing'); TweenMax.to(public_vars.$settingsPane, .25, {css: {height: 0}, delay: .15, ease: Power1.easeInOut, onComplete: function() { public_vars.$body.removeClass('settings-pane-open'); public_vars.$settingsPane.css({height: ''}); public_vars.$settingsPaneIn.removeClass('closing visible'); }}); } } else { // Without Animation public_vars.$body.toggleClass('settings-pane-open'); public_vars.$settingsPaneIn.removeClass('visible'); public_vars.$settingsPaneIn.removeClass('with-animation'); } } }); }); }); // Sidebar Toggle $('a[data-toggle="sidebar"]').each(function(i, el) { $(el).on('click', function(ev) { ev.preventDefault(); if(public_vars.$sidebarMenu.hasClass('collapsed')) { public_vars.$sidebarMenu.removeClass('collapsed'); ps_init(); } else { public_vars.$sidebarMenu.addClass('collapsed'); ps_destroy(); } $(window).trigger('xenon.resize'); }); }); // Mobile Menu Trigger $('a[data-toggle="mobile-menu"]').on('click', function(ev) { ev.preventDefault(); public_vars.$mainMenu.add(public_vars.$sidebarProfile).toggleClass('mobile-is-visible'); ps_destroy(); }); // Mobile Menu Trigger for Horizontal Menu $('a[data-toggle="mobile-menu-horizontal"]').on('click', function(ev) { ev.preventDefault(); public_vars.$horizontalMenu.toggleClass('mobile-is-visible'); }); // Mobile Menu Trigger for Sidebar & Horizontal Menu $('a[data-toggle="mobile-menu-both"]').on('click', function(ev) { ev.preventDefault(); public_vars.$mainMenu.toggleClass('mobile-is-visible both-menus-visible'); public_vars.$horizontalMenu.toggleClass('mobile-is-visible both-menus-visible'); }); // Mobile User Info Menu Trigger $('a[data-toggle="user-info-menu"]').on('click', function(ev) { ev.preventDefault(); public_vars.$userInfoMenu.toggleClass('mobile-is-visible'); }); // Mobile User Info Menu Trigger for Horizontal Menu $('a[data-toggle="user-info-menu-horizontal"]').on('click', function(ev) { ev.preventDefault(); public_vars.$userInfoMenuHor.find('.nav.nav-userinfo').toggleClass('mobile-is-visible'); }); // Panel Close $('body').on('click', '.panel a[data-toggle="remove"]', function(ev) { ev.preventDefault(); var $panel = $(this).closest('.panel'), $panel_parent = $panel.parent(); $panel.remove(); if($panel_parent.children().length == 0) { $panel_parent.remove(); } }); // Panel Reload $('body').on('click', '.panel a[data-toggle="reload"]', function(ev) { ev.preventDefault(); var $panel = $(this).closest('.panel'); // This is just a simulation, nothing is going to be reloaded $panel.append('<div class="panel-disabled"><div class="loader-1"></div></div>'); var $pd = $panel.find('.panel-disabled'); setTimeout(function() { $pd.fadeOut('fast', function() { $pd.remove(); }); }, 500 + 300 * (Math.random() * 5)); }); // Panel Expand/Collapse Toggle $('body').on('click', '.panel a[data-toggle="panel"]', function(ev) { ev.preventDefault(); var $panel = $(this).closest('.panel'); $panel.toggleClass('collapsed'); }); // Loading Text toggle $('[data-loading-text]').each(function(i, el) // Temporary for demo purpose only { var $this = $(el); $this.on('click', function(ev) { $this.button('loading'); setTimeout(function(){ $this.button('reset'); }, 1800); }); }); // Popovers and tooltips $('[data-toggle="popover"]').each(function(i, el) { var $this = $(el), placement = attrDefault($this, 'placement', 'right'), trigger = attrDefault($this, 'trigger', 'click'), popover_class = $this.get(0).className.match(/(popover-[a-z0-9]+)/i); $this.popover({ placement: placement, trigger: trigger }); if(popover_class) { $this.removeClass(popover_class[1]); $this.on('show.bs.popover', function(ev) { setTimeout(function() { var $popover = $this.next(); $popover.addClass(popover_class[1]); }, 0); }); } }); $('[data-toggle="tooltip"]').each(function(i, el) { var $this = $(el), placement = attrDefault($this, 'placement', 'top'), trigger = attrDefault($this, 'trigger', 'hover'), tooltip_class = $this.get(0).className.match(/(tooltip-[a-z0-9]+)/i); $this.tooltip({ placement: placement, trigger: trigger }); if(tooltip_class) { $this.removeClass(tooltip_class[1]); $this.on('show.bs.tooltip', function(ev) { setTimeout(function() { var $tooltip = $this.next(); $tooltip.addClass(tooltip_class[1]); }, 0); }); } }); }); })(jQuery, window);
{ "pile_set_name": "Github" }
package com.tencent.mm.ui.chatting; import android.content.Context; import android.view.MenuItem; import com.tencent.mm.a.n; import com.tencent.mm.model.ax; import com.tencent.mm.plugin.report.service.j; import com.tencent.mm.q.l; import com.tencent.mm.sdk.platformtools.t; import com.tencent.mm.ui.base.bk.d; final class os implements bk.d { os(String paramString, Context paramContext) {} public final void d(MenuItem paramMenuItem, int paramInt) { paramMenuItem = paramMenuItem.getTitle(); t.i("!56@/B4Tb64lLpIXFj7yHqNALrvvAHq7Yqk22bT9FeAfy2TsmeBjP5KDgw==", "connector click[location]: to[%s] content[%s]", new Object[] { paramMenuItem, jcK }); com.tencent.mm.ab.h localh = new com.tencent.mm.ab.h(paramMenuItem, jcK, 48); ax.tm().d(localh); j.eJZ.f(10424, new Object[] { Integer.valueOf(48), Integer.valueOf(16), paramMenuItem }); com.tencent.mm.ui.base.h.aN(val$context, val$context.getString(a.n.app_saved)); } } /* Location: * Qualified Name: com.tencent.mm.ui.chatting.os * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
{ "pile_set_name": "Github" }
# SPDX-License-Identifier: GPL-2.0 # =========================================================================== # Kernel configuration targets # These targets are used from top-level makefile PHONY += xconfig gconfig menuconfig config localmodconfig localyesconfig \ build_menuconfig build_nconfig build_gconfig build_xconfig ifdef KBUILD_KCONFIG Kconfig := $(KBUILD_KCONFIG) else Kconfig := Kconfig endif ifndef KBUILD_DEFCONFIG KBUILD_DEFCONFIG := defconfig endif ifeq ($(quiet),silent_) silent := -s endif # We need this, in case the user has it in its environment unexport CONFIG_ xconfig: $(obj)/qconf $< $(silent) $(Kconfig) gconfig: $(obj)/gconf $< $(silent) $(Kconfig) menuconfig: $(obj)/mconf $< $(silent) $(Kconfig) config: $(obj)/conf $< $(silent) --oldaskconfig $(Kconfig) nconfig: $(obj)/nconf $< $(silent) $(Kconfig) build_menuconfig: $(obj)/mconf build_nconfig: $(obj)/nconf build_gconfig: $(obj)/gconf build_xconfig: $(obj)/qconf localyesconfig localmodconfig: $(obj)/conf $(Q)perl $(srctree)/$(src)/streamline_config.pl --$@ $(srctree) $(Kconfig) > .tmp.config $(Q)if [ -f .config ]; then \ cmp -s .tmp.config .config || \ (mv -f .config .config.old.1; \ mv -f .tmp.config .config; \ $< $(silent) --oldconfig $(Kconfig); \ mv -f .config.old.1 .config.old) \ else \ mv -f .tmp.config .config; \ $< $(silent) --oldconfig $(Kconfig); \ fi $(Q)rm -f .tmp.config # These targets map 1:1 to the commandline options of 'conf' # # Note: # syncconfig has become an internal implementation detail and is now # deprecated for external use simple-targets := oldconfig allnoconfig allyesconfig allmodconfig \ alldefconfig randconfig listnewconfig olddefconfig syncconfig PHONY += $(simple-targets) $(simple-targets): $(obj)/conf $< $(silent) --$@ $(Kconfig) PHONY += savedefconfig defconfig savedefconfig: $(obj)/conf $< $(silent) --$@=defconfig $(Kconfig) defconfig: $(obj)/conf ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),) @$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'" $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig) else @$(kecho) "*** Default configuration is based on target '$(KBUILD_DEFCONFIG)'" $(Q)$(MAKE) -f $(srctree)/Makefile $(KBUILD_DEFCONFIG) endif %_defconfig: $(obj)/conf $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@) %.config: $(obj)/conf $(if $(call configfiles),, $(error No configuration exists for this target on this architecture)) $(Q)$(CONFIG_SHELL) $(srctree)/tools/kconfig/merge_config.sh -m .config $(configfiles) $(Q)$(MAKE) -f $(srctree)/tools/kconfig/Makefile.kconfig olddefconfig PHONY += kvmconfig kvmconfig: kvm_guest.config @: PHONY += xenconfig xenconfig: xen.config @: PHONY += tinyconfig tinyconfig: $(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config # CHECK: -o cache_dir=<path> working? PHONY += testconfig testconfig: $(obj)/conf $(PYTHON3) -B -m pytest $(srctree)/$(src)/tests \ -o cache_dir=$(abspath $(obj)/tests/.cache) \ $(if $(findstring 1,$(KBUILD_VERBOSE)),--capture=no) clean-files += tests/.cache # Help text used by make help help: @echo ' config - Update current config utilising a line-oriented program' @echo ' nconfig - Update current config utilising a ncurses menu based program' @echo ' menuconfig - Update current config utilising a menu based program' @echo ' xconfig - Update current config utilising a Qt based front-end' @echo ' gconfig - Update current config utilising a GTK+ based front-end' @echo ' oldconfig - Update current config utilising a provided .config as base' @echo ' localmodconfig - Update current config disabling modules not loaded' @echo ' localyesconfig - Update current config converting local mods to core' @echo ' defconfig - New config with default from ARCH supplied defconfig' @echo ' savedefconfig - Save current config as ./defconfig (minimal config)' @echo ' allnoconfig - New config where all options are answered with no' @echo ' allyesconfig - New config where all options are accepted with yes' @echo ' allmodconfig - New config selecting modules when possible' @echo ' alldefconfig - New config with all symbols set to default' @echo ' randconfig - New config with random answer to all options' @echo ' listnewconfig - List new options' @echo ' olddefconfig - Same as oldconfig but sets new symbols to their' @echo ' default value without prompting' @echo ' kvmconfig - Enable additional options for kvm guest kernel support' @echo ' xenconfig - Enable additional options for xen dom0 and guest kernel support' @echo ' tinyconfig - Configure the tiniest possible kernel' @echo ' testconfig - Run Kconfig unit tests (requires python3 and pytest)' # =========================================================================== # object files used by all kconfig flavours common-objs := confdata.o expr.o lexer.lex.o parser.tab.o preprocess.o \ symbol.o $(obj)/lexer.lex.o: $(obj)/parser.tab.h HOSTCFLAGS_lexer.lex.o := -I $(srctree)/$(src) HOSTCFLAGS_parser.tab.o := -I $(srctree)/$(src) # conf: Used for defconfig, oldconfig and related targets hostprogs-y += conf conf-objs := conf.o $(common-objs) # nconf: Used for the nconfig target based on ncurses hostprogs-y += nconf nconf-objs := nconf.o nconf.gui.o $(common-objs) HOSTLDLIBS_nconf = $(shell . $(obj)/nconf-cfg && echo $$libs) HOSTCFLAGS_nconf.o = $(shell . $(obj)/nconf-cfg && echo $$cflags) HOSTCFLAGS_nconf.gui.o = $(shell . $(obj)/nconf-cfg && echo $$cflags) $(obj)/nconf.o $(obj)/nconf.gui.o: $(obj)/nconf-cfg # mconf: Used for the menuconfig target based on lxdialog hostprogs-y += mconf lxdialog := $(addprefix lxdialog/, \ checklist.o inputbox.o menubox.o textbox.o util.o yesno.o) mconf-objs := mconf.o $(lxdialog) $(common-objs) HOSTLDLIBS_mconf = $(shell . $(obj)/mconf-cfg && echo $$libs) $(foreach f, mconf.o $(lxdialog), \ $(eval HOSTCFLAGS_$f = $$(shell . $(obj)/mconf-cfg && echo $$$$cflags))) $(addprefix $(obj)/, mconf.o $(lxdialog)): $(obj)/mconf-cfg # qconf: Used for the xconfig target based on Qt hostprogs-y += qconf qconf-cxxobjs := qconf.o qconf-objs := images.o $(common-objs) HOSTLDLIBS_qconf = $(shell . $(obj)/qconf-cfg && echo $$libs) HOSTCXXFLAGS_qconf.o = $(shell . $(obj)/qconf-cfg && echo $$cflags) $(obj)/qconf.o: $(obj)/qconf-cfg $(obj)/qconf.moc quiet_cmd_moc = MOC $@ cmd_moc = $(shell . $(obj)/qconf-cfg && echo $$moc) -i $< -o $@ $(obj)/%.moc: $(src)/%.h $(obj)/qconf-cfg $(call cmd,moc) # gconf: Used for the gconfig target based on GTK+ hostprogs-y += gconf gconf-objs := gconf.o images.o $(common-objs) HOSTLDLIBS_gconf = $(shell . $(obj)/gconf-cfg && echo $$libs) HOSTCFLAGS_gconf.o = $(shell . $(obj)/gconf-cfg && echo $$cflags) $(obj)/gconf.o: $(obj)/gconf-cfg # check if necessary packages are available, and configure build flags filechk_conf_cfg = $(CONFIG_SHELL) $< $(obj)/%conf-cfg: $(src)/%conf-cfg.sh FORCE $(call filechk,conf_cfg) clean-files += *conf-cfg
{ "pile_set_name": "Github" }
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-missing-fields #-} {-# OPTIONS_GHC -fno-warn-missing-signatures #-} {-# OPTIONS_GHC -fno-warn-name-shadowing #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} ----------------------------------------------------------------- -- Autogenerated by Thrift -- -- -- DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING -- @generated ----------------------------------------------------------------- module My.Namespacing.Extend.Test.ExtendTestService_Client(check) where import qualified My.Namespacing.Test.HsTestService_Client import Data.IORef import Prelude ( Bool(..), Enum, Float, IO, Double, String, Maybe(..), Eq, Show, Ord, concat, error, fromIntegral, fromEnum, length, map, maybe, not, null, otherwise, return, show, toEnum, enumFromTo, Bounded, minBound, maxBound, seq, succ, pred, enumFrom, enumFromThen, enumFromThenTo, (.), (&&), (||), (==), (++), ($), (-), (>>=), (>>)) import qualified Control.Applicative as Applicative (ZipList(..)) import Control.Applicative ( (<*>) ) import qualified Control.DeepSeq as DeepSeq import qualified Control.Exception as Exception import qualified Control.Monad as Monad ( liftM, ap, when ) import qualified Data.ByteString.Lazy as BS import Data.Functor ( (<$>) ) import qualified Data.Hashable as Hashable import qualified Data.Int as Int import Data.List import qualified Data.Maybe as Maybe (catMaybes) import qualified Data.Text.Lazy.Encoding as Encoding ( decodeUtf8, encodeUtf8 ) import qualified Data.Text.Lazy as LT import qualified Data.Typeable as Typeable ( Typeable ) import qualified Data.HashMap.Strict as Map import qualified Data.HashSet as Set import qualified Data.Vector as Vector import qualified Test.QuickCheck.Arbitrary as Arbitrary ( Arbitrary(..) ) import qualified Test.QuickCheck as QuickCheck ( elements ) import qualified Thrift import qualified Thrift.Types as Types import qualified Thrift.Serializable as Serializable import qualified Thrift.Arbitraries as Arbitraries import qualified My.Namespacing.Test.Hsmodule_Types as Hsmodule_Types import qualified My.Namespacing.Extend.Test.Extend_Types import qualified My.Namespacing.Extend.Test.ExtendTestService seqid = newIORef 0 check (ip,op) arg_struct1 = do send_check op arg_struct1 recv_check ip send_check op arg_struct1 = do seq <- seqid seqn <- readIORef seq Thrift.writeMessage op ("check", Types.M_CALL, seqn) $ ExtendTestService.write_Check_args op (ExtendTestService.Check_args{ExtendTestService.check_args_struct1=arg_struct1}) Thrift.tFlush (Thrift.getTransport op) recv_check ip = Thrift.readMessage ip $ \(fname,mtype,rseqid) -> do Monad.when (mtype == Types.M_EXCEPTION) $ Thrift.readAppExn ip >>= Exception.throw res <- ExtendTestService.read_Check_result ip return $ ExtendTestService.check_result_success res
{ "pile_set_name": "Github" }
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2012 EMC Corp. // // @filename: // CConstraintNegation.h // // @doc: // Representation of a negation constraint //--------------------------------------------------------------------------- #ifndef GPOPT_CConstraintNegation_H #define GPOPT_CConstraintNegation_H #include "gpos/base.h" #include "gpopt/base/CConstraint.h" namespace gpopt { using namespace gpos; using namespace gpmd; //--------------------------------------------------------------------------- // @class: // CConstraintNegation // // @doc: // Representation of a negation constraint // //--------------------------------------------------------------------------- class CConstraintNegation : public CConstraint { private: // child constraint CConstraint *m_pcnstr; // hidden copy ctor CConstraintNegation(const CConstraintNegation&); public: // ctor CConstraintNegation(CMemoryPool *mp, CConstraint *pcnstr); // dtor virtual ~CConstraintNegation(); // constraint type accessor virtual EConstraintType Ect() const { return CConstraint::EctNegation; } // child constraint CConstraint *PcnstrChild() const { return m_pcnstr; } // is this constraint a contradiction virtual BOOL FContradiction() const { return m_pcnstr->IsConstraintUnbounded(); } // is this constraint unbounded virtual BOOL IsConstraintUnbounded() const { return m_pcnstr->FContradiction(); } // scalar expression virtual CExpression *PexprScalar(CMemoryPool *mp); // check if there is a constraint on the given column virtual BOOL FConstraint ( const CColRef *colref ) const { return m_pcnstr->FConstraint(colref); } // return a copy of the constraint with remapped columns virtual CConstraint *PcnstrCopyWithRemappedColumns(CMemoryPool *mp, UlongToColRefMap *colref_mapping, BOOL must_exist); // return constraint on a given column virtual CConstraint *Pcnstr(CMemoryPool *mp, const CColRef *colref); // return constraint on a given column set virtual CConstraint *Pcnstr(CMemoryPool *mp, CColRefSet *pcrs); // return a clone of the constraint for a different column virtual CConstraint *PcnstrRemapForColumn(CMemoryPool *mp, CColRef *colref) const; // print virtual IOstream &OsPrint(IOstream &os) const; }; // class CConstraintNegation } #endif // !GPOPT_CConstraintNegation_H // EOF
{ "pile_set_name": "Github" }
// RUN: %clang_cc1 -std=c++1z -fcxx-exceptions -verify %s // RUN: %clang_cc1 -std=c++1z -fcxx-exceptions -verify %s -DCLASS #ifdef CLASS struct Outer { #endif template<typename> struct A {}; // Valid forms. A(int(&)[1]) -> A<int>; explicit A(int(&)[2]) -> A<int>; // Declarator pieces are not OK. *A(int(&)[3]) -> A<int>; // expected-error {{cannot specify any part of a return type in the declaration of a deduction guide}} &A(int(&)[4]) -> A<int>; // expected-error {{cannot specify any part of a return type in the declaration of a deduction guide}} A(int(&)[5])[3] -> A<int>; #ifdef CLASS // FIXME: These diagnostics are both pretty bad. // expected-error@-2 {{function cannot return array type}} expected-error@-2 {{';'}} #else // expected-error@-4 {{expected function body after function declarator}} #endif (A[3])(int(&)[5][1]) -> A<int>; // expected-error {{'<deduction guide for A>' cannot be the name of a variable}} #ifndef CLASS // expected-error@-2 {{declared as array of functions}} #endif (*A)(int(&)[5][2]) -> A<int>; // expected-error {{'<deduction guide for A>' cannot be the name of a variable}} (&A)(int(&)[5][3]) -> A<int>; // expected-error {{'<deduction guide for A>' cannot be the name of a variable}} (*A(int))(int(&)[5][4]) -> A<int>; // expected-error {{cannot specify any part of a return type in the declaration of a deduction guide}} // (Pending DR) attributes and parens around the declarator-id are OK. [[deprecated]] A(int(&)[6]) [[]] -> A<int> [[]]; A [[]] (int(&)[7]) -> A<int>; (A)(int(&)[8]) -> A<int>; // ... but the trailing-return-type is part of the function-declarator as normal (A(int(&)[9])) -> A<int>; #ifdef CLASS // FIXME: These diagnostics are both pretty bad. // expected-error@-2 {{deduction guide declaration without trailing return type}} expected-error@-2 {{';'}} #else // expected-error@-4 {{expected function body after function declarator}} #endif (A(int(&)[10]) -> A<int>); // expected-error {{trailing return type may not be nested within parentheses}} // A trailing-return-type is mandatory. A(int(&)[11]); // expected-error {{deduction guide declaration without trailing return type}} // No type specifier is permitted; we don't even parse such cases as a deduction-guide. int A(int) -> A<int>; // expected-error {{function with trailing return type must specify return type 'auto', not 'int'}} template<typename T> struct B {}; // expected-note {{here}} auto B(int) -> B<int>; // expected-error {{redefinition of 'B' as different kind of symbol}} // No storage class specifier, function specifier, ... friend A(int(&)[20]) -> A<int>; #ifdef CLASS // expected-error@-2 {{cannot declare a deduction guide as a friend}} #else // expected-error@-4 {{'friend' used outside of class}} #endif typedef A(int(&)[21]) -> A<int>; // expected-error {{deduction guide cannot be declared 'typedef'}} constexpr A(int(&)[22]) -> A<int>; // expected-error {{deduction guide cannot be declared 'constexpr'}} inline A(int(&)[23]) -> A<int>; // expected-error {{deduction guide cannot be declared 'inline'}} static A(int(&)[24]) -> A<int>; // expected-error {{deduction guide cannot be declared 'static'}} thread_local A(int(&)[25]) -> A<int>; // expected-error {{'thread_local' is only allowed on variable declarations}} extern A(int(&)[26]) -> A<int>; #ifdef CLASS // expected-error@-2 {{storage class specified for a member}} #else // expected-error@-4 {{deduction guide cannot be declared 'extern'}} #endif mutable A(int(&)[27]) -> A<int>; // expected-error-re {{{{'mutable' cannot be applied to|illegal storage class on}} function}} virtual A(int(&)[28]) -> A<int>; // expected-error {{'virtual' can only appear on non-static member functions}} const A(int(&)[31]) -> A<int>; // expected-error {{deduction guide cannot be declared 'const'}} const volatile static constexpr inline A(int(&)[29]) -> A<int>; // expected-error {{deduction guide cannot be declared 'static inline constexpr const volatile'}} A(int(&)[30]) const -> A<int>; // expected-error {{deduction guide cannot have 'const' qualifier}} // No definition is allowed. A(int(&)[40]) -> A<int> {} // expected-error {{deduction guide cannot have a function definition}} A(int(&)[41]) -> A<int> = default; // expected-error {{deduction guide cannot have a function definition}} expected-error {{only special member functions may be defaulted}} A(int(&)[42]) -> A<int> = delete; // expected-error {{deduction guide cannot have a function definition}} A(int(&)[43]) -> A<int> try {} catch (...) {} // expected-error {{deduction guide cannot have a function definition}} #ifdef CLASS }; #endif namespace ExplicitInst { // Explicit instantiation / specialization is not permitted. template<typename T> struct B {}; template<typename T> B(T) -> B<T>; template<> B(int) -> B<int>; // expected-error {{deduction guide cannot be explicitly specialized}} extern template B(float) -> B<float>; // expected-error {{deduction guide cannot be explicitly instantiated}} template B(char) -> B<char>; // expected-error {{deduction guide cannot be explicitly instantiated}} // An attempt at partial specialization doesn't even parse as a deduction-guide. template<typename T> B<T*>(T*) -> B<T*>; // expected-error 1+{{}} expected-note 0+{{}} struct X { template<typename T> struct C {}; template<typename T> C(T) -> C<T>; template<> C(int) -> C<int>; // expected-error {{deduction guide cannot be explicitly specialized}} extern template C(float) -> C<float>; // expected-error {{expected member name or ';'}} template C(char) -> C<char>; // expected-error {{expected '<' after 'template'}} }; }
{ "pile_set_name": "Github" }
// // SidebarAnimationController.m // Vesper // // Created by Brent Simmons on 8/8/14. // Copyright (c) 2014 Q Branch LLC. All rights reserved. // #import "SidebarAnimationController.h" @implementation SidebarAnimationController #pragma mark - UIViewControllerAnimatedTransitioning - (NSTimeInterval)transitionDuration:(id<UIViewControllerContextTransitioning>)transitionContext { return [app_delegate.theme timeIntervalForKey:@"sidebar.animationDuration"]; } - (void)animateTransition:(id<UIViewControllerContextTransitioning>)transitionContext { if ([[app_delegate.theme stringForKey:@"sidebar.animationStyle"] isEqualToString:@"fade"]) { [self animateFadeTransition:(id<UIViewControllerContextTransitioning>)transitionContext]; return; } UIViewController *fromVC = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey]; UIViewController *toVC = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey]; UIViewController *sidebarViewController = nil; UIView *sidebarView = nil; if (self.presenting) { sidebarViewController = toVC; sidebarView = sidebarViewController.view; [transitionContext.containerView addSubview:sidebarView]; } else { sidebarViewController = fromVC; sidebarView = sidebarViewController.view; } sidebarView.frame = [transitionContext finalFrameForViewController:sidebarViewController]; CGAffineTransform presentedTransform = CGAffineTransformIdentity; CGAffineTransform dismissedTransform = CGAffineTransformMakeTranslation(-CGRectGetWidth(sidebarView.frame), 0.0); sidebarView.transform = self.presenting ? dismissedTransform : presentedTransform; CGFloat damping = [app_delegate.theme floatForKey:@"sidebar.animationSpringDampingRatio"]; CGFloat velocity = [app_delegate.theme floatForKey:@"sidebar.animationSpringVelocity"]; [UIView animateWithDuration:[self transitionDuration:transitionContext] delay:0.0 usingSpringWithDamping:damping initialSpringVelocity:velocity options:UIViewAnimationOptionBeginFromCurrentState animations:^{ if ([[app_delegate.theme stringForKey:@"sidebar.animationStyle"] isEqualToString:@"fade"]) { sidebarView.alpha = self.presenting ? 1.0f : 0.0f; } else { sidebarView.transform = self.presenting ? presentedTransform : dismissedTransform; } } completion:^(BOOL finished) { if (!self.presenting) { [sidebarView removeFromSuperview]; } sidebarView.transform = CGAffineTransformIdentity; [transitionContext completeTransition:YES]; }]; } - (void)animateFadeTransition:(id<UIViewControllerContextTransitioning>)transitionContext { UIViewController *fromVC = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey]; UIViewController *toVC = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey]; UIViewController *sidebarViewController = nil; UIView *sidebarView = nil; if (self.presenting) { sidebarViewController = toVC; sidebarView = sidebarViewController.view; [transitionContext.containerView addSubview:sidebarView]; } else { sidebarViewController = fromVC; sidebarView = sidebarViewController.view; } sidebarView.frame = [transitionContext finalFrameForViewController:sidebarViewController]; if (self.presenting) { sidebarView.alpha = 0.0f; } else { sidebarView.alpha = 1.0f; } [UIView animateWithDuration:[self transitionDuration:transitionContext] delay:0.0 options:UIViewAnimationOptionCurveEaseOut animations:^{ sidebarView.alpha = self.presenting ? 1.0f : 0.0f; } completion:^(BOOL finished) { if (!self.presenting) { [sidebarView removeFromSuperview]; } sidebarView.transform = CGAffineTransformIdentity; [transitionContext completeTransition:YES]; }]; } @end
{ "pile_set_name": "Github" }
First, copy editing type nonsense: In sections 1.3, 1.4 and 1.6 the phrase "Q-Link Commodore 64" should read "Commodore 64 Q-Link" in order to correspond with the phrasing in the other definitions. In section 2.1 the phrase "...on the Q-Link under..." should read "...on the Q-Link system under..." Weird turns of phrase: In both 1.15. "Object Construction Kit" means the software to allow third- party developers to add new objects to the basic object set or advanced object set which Lucasfilm may develop as an enhancement to the Public MicroCosm system release. and 1.22. "Universe Construction Kit" means the software to allow third party developers to add new universes to the MicroCosm system which Lucasfilm may develop as an enhancement to the Public MicroCosm system release. What thing the pronoun "which" refers to is ambiguous. It should refer to "...the software..." but its placement in the sentence makes it appear to refer to something else, even though it doesn't really make sense for it to do so. In 14.2. If Quantum approves the Detailed Design Specifications, the balance of the contract price of Two Hundred Twenty-Five Thousand Dollars shall be paid to Lucasfilm in the amounts and at the times set forth in Exhibit B, upon satisfactory completion of the corresponding deliverables. It is not clear that you mean that the balance of the contract price *is* $225K. Rather, this implies that the contract price itself is $225K and that you are refering to what is left of that amount (i.e., in our case $200K if they already paid $25K). Terminology: Section 1.3 defines "Avatar Personalization Kit" and refers to "avatar" in the definition. Should we define avatar or is the attached specification exhibit sufficient to cover that? In section 4.16 it says "Develop demo of...". Is "demo" a proper word to use in a contract? In section 5.12 it says "The monthly reports shall continue until Beta-testing for the MicroCosm system is completed." What do we mean by "Beta-testing" and what does it mean for it to be completed? Misc: Section 1.8 defines "Commodore 64 Q-Link Subscriber" with reference to Commodore 64 and Commodore 128 computers. What about future Commodore 64 compatible machines that Commodore might produce (or ones produced by a third party equipment maker for that matter)? Sections 9.3, 16, 20 and 22 in my copy of the contract simply say "text to be supplied by LFL" or some such. This is fine by me, but I really want to see the text for section 16, Warranty Of Software Functions, before we sign. The Definitions: Other than the grammatical problems discussed I have few quibbles. However, the term "Story Elements" ought to be "Fantasy Elements" or something else similar to that, since what we are dealing with is not a story-oriented medium nor a story-like product. Also, the separation of MicroCosm into System Elements and Story (or Fantasy) Elements may solve some legal hassles for you guys, but I have some small problems with it since the dividing line between the two is VERY blurry. We need to discuss this in greater detail.
{ "pile_set_name": "Github" }
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import <DevToolsInterface/XCApplicationPropertiesInspectorPane.h> @class NSButton, NSMutableArray, NSMutableDictionary, NSTableView, PBXAddVariantPanel, XCExtendedArrayController, XCExtendedObjectController; @interface XCAutomatorActionPropertiesInspectorPane : XCApplicationPropertiesInspectorPane { NSButton *removeLocalizationButton; NSTableView *localizationsTableView; XCExtendedArrayController *_generalController; XCExtendedArrayController *_descriptionController; XCExtendedObjectController *_inputController; XCExtendedArrayController *_inputTypesController; XCExtendedObjectController *_outputController; XCExtendedArrayController *_outputTypesController; XCExtendedArrayController *_parametersController; XCExtendedArrayController *_keywordsController; XCExtendedArrayController *_resourcesController; XCExtendedArrayController *_warningsController; XCExtendedArrayController *_relatedActionsController; XCExtendedArrayController *_localizationsController; PBXAddVariantPanel *_addVariantPanel; NSMutableArray *_generalSettings; NSMutableArray *_descriptionSettings; NSMutableDictionary *_input; NSMutableArray *_inputTypes; NSMutableDictionary *_output; NSMutableArray *_outputTypes; NSMutableArray *_parameters; NSMutableArray *_keywords; NSMutableArray *_requiredResources; NSMutableArray *_warningSettings; NSMutableArray *_relatedActions; NSMutableArray *_localizations; long long _selectedTabViewIndex; } + (id)inspectableClasses; + (BOOL)canInspectItems:(id)arg1; + (void)initialize; - (BOOL)tableView:(id)arg1 shouldTrackCell:(id)arg2 forTableColumn:(id)arg3 row:(long long)arg4; - (void)tabView:(id)arg1 willSelectTabViewItem:(id)arg2; - (void)removeLocalization:(id)arg1; - (void)addLocalization:(id)arg1; - (void)_addVariantSheetDidEnd:(id)arg1 returnCode:(long long)arg2 contextInfo:(void *)arg3; - (id)stringsFileItemForLocalization:(id)arg1; - (void)openInfoPList:(id)arg1; - (void)openInfoPlistStringsFile:(id)arg1; - (void)contentDidChangeForArrayController:(id)arg1; - (void)contentDidChangeForObjectController:(id)arg1; - (void)currentInspectedItemsChanged:(id)arg1; - (void)rebuildAllSettingsWithProductSettings:(id)arg1; - (void)rebuildLocalizationsWithProductSettings:(id)arg1; - (void)rebuildRelatedActionsWithProductSettings:(id)arg1; - (void)rebuildWarningSettingsWithProductSettings:(id)arg1; - (void)rebuildRequiredResourcesWithProductSettings:(id)arg1; - (void)rebuildKeywordsWithProductSettings:(id)arg1; - (void)rebuildParametersWithProductSettings:(id)arg1; - (void)rebuildOutputTypesWithProductSettings:(id)arg1; - (void)rebuildOutputWithProductSettings:(id)arg1; - (void)rebuildInputTypesWithProductSettings:(id)arg1; - (void)rebuildInputWithProductSettings:(id)arg1; - (void)rebuildDescriptionSettingsWithProductSettings:(id)arg1; - (void)rebuildGeneralSettingsWithProductSettings:(id)arg1; - (id)newObjectBasedOnObject:(id)arg1 fromController:(id)arg2; - (void)viewDidLoad; - (id)containerTypes; - (long long)selectedTabViewIndex; - (void)setLocalizations:(id)arg1; - (id)localizations; - (void)setRelatedActions:(id)arg1; - (id)relatedActions; - (void)setWarningSettings:(id)arg1; - (id)warningSettings; - (void)setRequiredResources:(id)arg1; - (id)requiredResources; - (void)setKeywords:(id)arg1; - (id)keywords; - (void)setParameters:(id)arg1; - (id)parameters; - (void)setOutputTypes:(id)arg1; - (id)outputTypes; - (void)setOutput:(id)arg1; - (id)output; - (void)setInputTypes:(id)arg1; - (id)inputTypes; - (void)setInput:(id)arg1; - (id)input; - (void)setDescriptionSettings:(id)arg1; - (id)descriptionSettings; - (void)setGeneralSettings:(id)arg1; - (id)generalSettings; - (void)dealloc; @end
{ "pile_set_name": "Github" }
BUILDING rdiscount ================== You'll be needing Ruby, rake, and a basic build environment. Build the rdiscount extension for tests and local development: $ rake build Use your rdiscount working copy when running ruby programs: $ export RUBYLIB=~/rdiscount/lib:$RUBYLIB $ ruby some-program.rb Gathering changes from an upstream discount clone requires first grabbing the discount submodule into the root of the project and then running the rake gather task to copy discount source files into the ext/ directory: $ git submodule update --init Submodule 'discount' (git://github.com/davidfstr/discount.git) registered for path 'discount' Cloning into discount... $ cd discount $ ./configure.sh $ make # ensure it compiles $ cd .. $ rake gather $ rake build UPGRADING Discount ================== The most common maintenance task is upgrading the version of Discount that RDiscount is using. Before doing anything, make sure you can build the current (unmodified) version of RDiscount. See the section above for details. Update the Discount submodule to the desired version: $ cd discount $ git fetch $ git checkout v2.0.7.x # insert desired version $ cd .. Copy the new Discount sources to the appropriate directories for RDiscount: $ rake gather Update rdiscount.gemspec to include all *.c, *.h, and *.rb files in ext. This must be done manually. Here's a quick way to get the full list: $ echo ext/*.c ext/*.h ext/*.rb ext/blocktags ext/VERSION | tr ' ' "\n" | sort (There is an old Rakefile target called "rdiscount.gemspec" that looks like it is designed to perform an update of these files, however I haven't tested it.) Build the RDiscount gem. If you get errors related to missing files in ext, make sure you updated the gemspec correctly in the previous step. $ gem build rdiscount.gemspec Install this new gem locally. It is recommended that you use RVM to create an isolated installation environment. If you get an error after the line "Building native extensions", see the troubleshooting section below. $ rvm ruby@rdiscount --create # recommended; requires RVM $ gem install rdiscount-*.gem Make sure the gem can be imported: $ ruby -e 'require "rdiscount"' Make sure the tests (still) pass: $ rake test Worked? Swell! The hard part is past. Check the Discount release notes to determine whether it has gained any new features that should be exposed through the RDiscount Ruby interface (lib/rdiscount.rb), such as new MKD_* flags or configure flags. If so, update the Ruby interface. If the ./configure.sh line needs to be changed to support new features, you will need to port some #defines from discount/config.h to ext/config.h manually to get RDiscount's embedded Discount to use the same configure flags. For new Discount extensions via new MKD_* flags, you will need to update: * lib/rdiscount.rb with new accessors and * the rb_rdiscount__get_flags function in ext/rdiscount.c with new accessor-to-flag mappings for each new extension. You should also look for RDiscount-specific bugs & feature requests in the GitHub tracker and fix a few. If any bugs were fixed or features added be sure to also add new tests! And don't forget to rerun the preexisting tests. Update the CHANGELOG. Update rdiscount.gemspec with the new RDiscount version number and date. Also update the VERSION constant in lib/rdiscount.rb. Push that change as the final commit with a message in the format "2.0.7 release". Tag the release commit: $ git tag 2.0.7 # insert desired version Rebuild the gem file and push it to RubyGems. $ gem build rdiscount.gemspec $ gem push rdiscount-NEW_VERSION.gem Announce the new release! For releases with new features it is recommended to write a full blog post. Troubleshooting Native Extension Issues --------------------------------------- The most likely place where errors will crop up is when you attempt to build the C extension. If this happens, you will have to debug manually. Below are a few recommended sanity checks: Ensure the Makefile is generated correctly: $ cd ext $ ruby extconf.rb Ensure make succeeds: $ make If you get linker errors related to there being duplicate symbols for _main, you probably need to update the deploy target of the Rakefile to exclude new *.c files from Discount that have a main function. For issues related to config.h or extconf.rb, there was probably some change to Discount's configure.sh that broke them. You will probably need to update these files in ext/ manually. For other errors, you'll have to investigate yourself. Common error classes: * 'ext/configure.sh' fails: - Create a patch to the upstream Discount. * Some files missing from ext/ that are present in discount/: - Update 'rake deploy' target to copy more files. * Some files missing when `gem build` is run: - Update gemspec to enumerate the correct files in ext/.
{ "pile_set_name": "Github" }
librosa==0.6.2 pytube==9.5.2 requests==2.21.0 inflect==2.1.0 pocketsphinx==0.1.15 google-api-python-client==1.7.11 pydub==0.23.1
{ "pile_set_name": "Github" }
var v : 1 .. 1000 ; assert v contains "abc"; assert v contains "cde"; assert v contains "deg";
{ "pile_set_name": "Github" }
// Copyright 2013 Chris McGee <[email protected]>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "encoding/json" "errors" "go/build" "io" "net/http" "os" "path/filepath" "strconv" "strings" ) type Project struct { Id string Location string ContentLocation string } type Workspace struct { Id string Directory bool ChildrenLocation string Location string LastModified int64 Name string Projects []Project Children []FileDetails } type WorkspacesList struct { UserName string Name string Id string Workspaces []Workspace } func getWsProjects() ([]Project, []FileDetails) { projects := make([]Project, 0, 0) children := make([]FileDetails, 0, 0) nameMap := make(map[string]string) logger.Printf("Retrieving workspace projects from source directories\n") for _, srcDir := range srcDirs { logger.Printf("Walking %v to get projects.\n", srcDir) if strings.HasPrefix(srcDir, goroot) { continue } filesDir := srcDir _, err := os.Stat(filesDir) if err != nil { logger.Printf("src directory doesn't exist in gopath at %v", filesDir) return []Project{}, []FileDetails{} } dir, err := os.Open(filesDir) if err != nil { logger.Printf("Unable to open src directory in gopath at %v", filesDir) return []Project{}, []FileDetails{} } names, err := dir.Readdirnames(-1) dir.Close() for _, name := range names { logger.Printf("Found project %v\n", name) if strings.HasPrefix(name, ".") { continue } if nameMap[name] == "1" { continue } nameMap[name] = "1" fileinfo, err := os.Stat(filesDir + "/" + name) if err != nil { logger.Printf("Error: %v\n", err.Error()) return []Project{}, []FileDetails{} } projectInfo := Project{Id: name, Location: "/workspace/project/" + name, ContentLocation: "/file/" + name} projects = append(projects, projectInfo) info := FileDetails{} info.Name = fileinfo.Name() info.Id = fileinfo.Name() info.Location = "/file/" + name info.Directory = fileinfo.IsDir() // Provide a location to import into a directory if info.Directory { info.ImportLocation = "/xfer" + info.Location } info.LocalTimeStamp = fileinfo.ModTime().Unix() * 1000 info.ETag = strconv.FormatInt(fileinfo.ModTime().Unix(), 16) info.Parents = []FileDetails{} // TODO Calculate parent and put the object in here info.Attributes = make(map[string]bool) info.Attributes["ReadOnly"] = false executable := false mode := fileinfo.Mode() if (mode&os.ModePerm)&0111 != 0 { executable = true } info.Attributes["Executable"] = executable info.ChildrenLocation = "/file/" + name + "?depth=1" children = append(children, info) } } // Create a virtual project that represent the source code present at the GOROOT gorootPkgPath := filepath.Join(goroot, "/src/pkg") gorootInfo, err := os.Stat(gorootPkgPath) if err == nil { projectInfo := Project{Id: "GOROOT", Location: "/workspace/project/GOROOT", ContentLocation: "/file/GOROOT"} projects = append(projects, projectInfo) info := FileDetails{} info.Name = "GOROOT" info.Id = "GOROOT" info.Location = "/file/GOROOT" info.Directory = true info.LocalTimeStamp = gorootInfo.ModTime().Unix() * 1000 info.ETag = strconv.FormatInt(gorootInfo.ModTime().Unix(), 16) info.Parents = []FileDetails{} // TODO info.Attributes = make(map[string]bool) info.Attributes["ReadOnly"] = true executable := false mode := gorootInfo.Mode() if (mode&os.ModePerm)&0111 != 0 { executable = true } info.Attributes["Executable"] = executable info.ChildrenLocation = "/file/GOROOT?depth=1" children = append(children, info) } return projects, children } func workspaceHandler(writer http.ResponseWriter, req *http.Request, path string, pathSegs []string) bool { numPathSegs := len(pathSegs) switch { case req.Method == "POST" && numPathSegs == 2: if !strings.HasPrefix(req.Header.Get("Content-Type"), "application/json") { ShowError(writer, 400, "No project name provided", nil) return true } var data map[string]string dec := json.NewDecoder(req.Body) err := dec.Decode(&data) if err != nil { ShowError(writer, 400, "Invalid request body", nil) return true } projectName, ok := data["Name"] if !ok { ShowError(writer, 400, "No project name provided in JSON object", nil) return true } //workspaceId := pathSegs[1] // New top-level folders (ie projects) go at the end of the GOPATH gopaths := filepath.SplitList(build.Default.GOPATH) filesDir := gopaths[len(gopaths)-1] + "/src" createOptions := req.Header.Get("X-Create-Options") // This is a move if strings.Contains(createOptions, "move") { origLocation := data["Location"] origSegments := strings.Split(origLocation, "/") origProject := origSegments[len(origSegments)-1] origPath := "" for _, srcDir := range srcDirs { p := filepath.Join(srcDir, origProject) _, err := os.Stat(p) if err == nil { origPath = p break } } if origPath == "" { ShowError(writer, 400, "Original project not found", nil) return true } // Delete the destination if !strings.Contains(createOptions, "no-overwrite") { err := os.RemoveAll(filesDir + "/" + projectName) if err != nil { ShowError(writer, 500, "Destination already exists and couldn't be deleted", nil) return true } } err = os.Rename(origPath, filesDir+"/"+projectName) if err != nil { ShowError(writer, 500, "Could not move project", err) return true } } else if strings.Contains(createOptions, "copy") { origLocation := data["Location"] origSegments := strings.Split(origLocation, "/") origProject := origSegments[len(origSegments)-1] origPath := "" for _, srcDir := range srcDirs { p := filepath.Join(srcDir, origProject) _, err := os.Stat(p) if err == nil { origPath = p break } } if origPath == "" { ShowError(writer, 400, "Original project not found", nil) return true } overwrite := !strings.Contains(createOptions, "no-overwrite") err = filepath.Walk(origPath, func(path string, info os.FileInfo, err error) error { if err != nil { return err } destRelPath, _ := filepath.Rel(origPath, path) destPath := filepath.Join(filesDir, destRelPath) if !overwrite { _, statErr := os.Stat(destPath) if statErr == nil { // Already exists, return error return errors.New("File exists, can't overwrite") } } if info.IsDir() { err = os.Mkdir(destPath, info.Mode()) if err != nil && overwrite { err = nil } } else { sourceFile, err := os.Open(path) if err != nil { return err } defer sourceFile.Close() destFile, err := os.Create(destPath) if err != nil { return err } defer destFile.Close() _, err = io.Copy(destFile, sourceFile) } return err }) if err != nil { ShowError(writer, 500, "Error copying project", err) return true } writer.WriteHeader(201) return true } else { projectPath := filesDir + "/" + projectName os.Mkdir(filesDir, 0700) err = os.Mkdir(projectPath, 0700) if err != nil { ShowError(writer, 500, "Unable to create project directory", err) return true } } contentLocation := "/file/" + projectName location := "/workspace/project/" + projectName newProject := Project{Id: projectName, ContentLocation: contentLocation, Location: location} writer.Header().Set("Location", location) ShowJson(writer, 201, newProject) return true case req.Method == "GET" && numPathSegs < 3: workspaceList := WorkspacesList{Id: "anonymous", UserName: "anonymous", Name: "anonymous"} workspace := Workspace{Id: "1", Directory: true, ChildrenLocation: "/workspace/1", Location: "/workspace/1", LastModified: 1, Name: "Go Development"} workspace.Projects, workspace.Children = getWsProjects() workspaceList.Workspaces = []Workspace{workspace} etag := "1" writer.Header().Add("ETag", etag) if numPathSegs == 1 { // TODO Figure out if outputting all of the details (project, children) is too much for the plain workspace GET call ShowJson(writer, 200, workspaceList) } else { //workspaceId := pathSegs[1] ShowJson(writer, 200, workspace) } return true case req.Method == "POST" && numPathSegs == 1: ShowError(writer, 400, "Workspace POST not supported.", nil) return true case req.Method == "PUT" && numPathSegs == 2: ShowError(writer, 400, "Workspace PUT not supported.", nil) return true case req.Method == "DELETE" && numPathSegs == 3 && pathSegs[1] == "project": for _, srcDir := range srcDirs { projectPath := filepath.Join(srcDir, pathSegs[2]) _, err := os.Stat(projectPath) if err == nil { err = os.RemoveAll(projectPath) if err != nil { ShowError(writer, 400, "Project could not be removed", err) return true } ShowJson(writer, 200, "") return true } } ShowError(writer, 200, "Project could not be found. It was not removed.", nil) return true case req.Method == "DELETE" && numPathSegs == 2: ShowError(writer, 400, "Workspace deletion is not supported.", nil) return true } return false }
{ "pile_set_name": "Github" }
using Uno; using Uno.UX; using Uno.Platform.EventSources; using Fuse.Controls.FallbackTextRenderer; using Fuse.Controls.Graphics; using Fuse.Drawing; using Fuse.Elements; using Fuse.Input; using Fuse.Internal; using Fuse.Triggers; using Fuse.Controls.Native; using Fuse.Controls.FallbackTextEdit; namespace Fuse.Controls { extern (!Mobile) class DesktopTextEdit : TextEdit, INotifyFocus { public DesktopTextEdit(bool isMultiline): base(isMultiline) { _lineCache = new LineCache(OnTextEdited, InvalidateLineCacheLayout, isMultiline); _textWindow = new TextWindow(this, _lineCache); Children.Add(_textWindow); TextService.TextEntered.AddHandler(this, OnTextEntered); Pointer.Pressed.AddHandler(this, OnPointerPressed); Pointer.Moved.AddHandler(this, OnPointerMoved); Pointer.Released.AddHandler(this, OnPointerReleased); Keyboard.KeyPressed.AddHandler(this, OnKeyPressed); } bool UseGraphicsPlaceholder { get { return string.IsNullOrEmpty(Value); } } void INotifyFocus.OnFocusGained() { TextSource.BeginTextInput(0); //TODO: Remove this argument _selection = null; InvalidateLayout(); InvalidateVisual(); } void INotifyFocus.OnFocusLost() { TextSource.EndTextInput(); _selection = null; if (_textWindow != null) _textWindow.InvalidateVisual(); ResetWindowPosition(); InvalidateLayout(); InvalidateVisual(); } protected override void OnPlaceholderTextChanged() { base.OnPlaceholderTextChanged(); InvalidateVisual(); InvalidateLayout(); } protected override void OnPlaceholderColorChanged() { base.OnPlaceholderColorChanged(); InvalidateVisual(); InvalidateLayout(); } internal override string RenderValue { get { // Only use the built-in text rendering mechanism to render // the placeholder text return UseGraphicsPlaceholder ? PlaceholderText : null; } } internal override float4 RenderColor { get { return UseGraphicsPlaceholder ? PlaceholderColor : Color; } } protected override void OnRooted() { base.OnRooted(); if defined(!Mobile) { _caretBrush.Pin(); UpdateManager.AddAction(Update); } } protected override void OnUnrooted() { base.OnUnrooted(); if defined(!Mobile) { _caretBrush.Unpin(); UpdateManager.RemoveAction(Update); } } protected override void OnIsPasswordChanged() { base.OnIsPasswordChanged(); if (_lineCache == null) return; if (IsPassword) { _lineCache.Transform = new LineCachePasswordTransform(); } else { _lineCache.Transform = null; } } protected override void OnValueChanged(IPropertyListener origin) { base.OnValueChanged(origin); UpdateValue(Value); } void UpdateValue(string value) { if (_lineCache == null) return; _lineCache.Text = value; _textWindow.InvalidateVisual(); _caretPosition = Focus.IsWithin(this) ? _lineCache.GetLastTextPos() : new TextPosition(0, 0); _selection = null; InvalidateLayout(); InvalidateVisual(); } public string SelectedText { get { return _selection != null ? _lineCache.GetString(_selection) : ""; } } void Update() { if (Focus.IsWithin(this)) { InvalidateVisual(); } else { var pt = _lineCache.Transform as LineCachePasswordTransform; if (pt != null) { if (Time.FrameTime > _revealEnd) { if( pt.SetReveal( -1 ) ) _lineCache.InvalidateVisual(); } } } } void InvalidateLineCacheLayout() { InvalidateLayout(); } void OnTextEdited() { SetValueInternal(_lineCache.Text); } //for password temporary character veal double RevealTime = 2.0; double _revealEnd; bool IsWordWrapEnabled { get { return TextWrapping == Fuse.Controls.TextWrapping.Wrap; } } public void SelectAll() { _selection = _lineCache.GetFullTextSpan(); _caretPosition = _lineCache.GetLastTextPos(); InvalidateVisual(); } WordWrapInfo _wrapInfo; protected override float2 GetContentSize(LayoutParams lp) { if defined (Mobile) return base.GetContentSize(lp); else { if (Font == null) return float2(0f); if (UseGraphicsPlaceholder) return Math.Ceil(base.GetContentSize(lp)) + 1; _wrapInfo = CreateWrapInfo(lp.X, lp.HasX); var r = Math.Ceil(GetTextBoundsSize(_wrapInfo)) + 1; if (lp.HasX) r.X = Math.Min(r.X, lp.X); return r; } } WordWrapInfo CreateWrapInfo(float wrapWidth, bool haveWidth) { var renderer = TextRenderer.GetTextRenderer(Font); return new WordWrapInfo(renderer, haveWidth && IsWordWrapEnabled, wrapWidth, FontSize, renderer.GetLineHeight(FontSize), LineSpacing, AbsoluteZoom); } protected override float2 OnArrangeMarginBox(float2 position, LayoutParams lp) { if defined (Mobile) return base.OnArrangeMarginBox(position, lp); else { var sz = base.OnArrangeMarginBox(position, lp); _textWindow.ArrangeMarginBox(float2(0), LayoutParams.Create(sz)); return sz; } } public override void Draw(DrawContext dc) { if defined(!Mobile) FallbackDraw(dc); else base.Draw(dc); } void FallbackDraw(DrawContext dc) { base.DrawVisual(dc); if (_wrapInfo == null) _wrapInfo = CreateWrapInfo(ActualSize.X,true); var textBoundsSize = GetClampedTextBoundsSize(_wrapInfo); var textBoundsWidth = textBoundsSize.X; BringCaretIntoView(_wrapInfo, textBoundsWidth); DrawBackground(dc, Opacity); if (!string.IsNullOrEmpty(Value)) _textWindow.Draw(_wrapInfo, _selection, Color, SelectionColor, Value.Length, TextAlignment, textBoundsSize, -_windowPos, dc); if (Focus.IsWithin(this) && CaretColor.W > 0) { DrawCaret(_wrapInfo, textBoundsWidth, dc); UpdateManager.PerformNextFrame(InvalidateVisual); } } SolidColor _caretBrush = new SolidColor(); void DrawCaret(WordWrapInfo wrapInfo, float textBoundsWidth, DrawContext dc) { var caretRect = GetCaretRect(wrapInfo, textBoundsWidth); var pos = TextBoundsToControl(caretRect.Position); float blink = Math.Cos((float)(Time.FrameTime - _caretBlinkTime) * 2.0f * Math.PIf) * .5f + .5f; blink = 1.0f - Math.Pow(1.0f - blink, 4.3f); var caretSize = float2(1.0f, caretRect.Size.Y); _caretBrush.Color = float4(CaretColor.XYZ, CaretColor.W * blink); _caretBrush.Prepare(dc, caretSize); Fuse.Drawing.Primitives.Rectangle.Singleton.Fill(dc,this, caretSize, float4(0), _caretBrush, pos ); } // Line cache LineCache _lineCache; Rect GetClampedTextBoundsRect(WordWrapInfo wrapInfo) { return new Rect(float2(0), GetClampedTextBoundsSize(wrapInfo)); } float2 GetClampedTextBoundsSize(WordWrapInfo wrapInfo) { return Math.Max(GetTextBoundsSize(wrapInfo), ActualSize); } float2 GetTextBoundsSize(WordWrapInfo wrapInfo) { return _lineCache.GetBoundsSize(wrapInfo); } // Window TextWindow _textWindow; float2 _windowPos; void SetWindowPos(float2 p) { if (p != _windowPos) _textWindow.InvalidateVisual(); _windowPos = p; } void ResetWindowPosition() { SetWindowPos(float2(0)); } // Caret/Selection TextPosition _caretPosition = TextPosition.Default; TextPosition _interactionSelectionStartPos; TextSpan _selection; double _caretBlinkTime; void ResetCaretBlink() { _caretBlinkTime = Time.FrameTime; } void SetCaretPos(float2 p) { var wrapWidth = ActualSize.X; var wrapInfo = CreateWrapInfo(wrapWidth,true); var textBoundsWidth = GetClampedTextBoundsSize(wrapInfo).X; _caretPosition = _lineCache.BoundsToTextPos(wrapInfo, TextAlignment, textBoundsWidth, ControlToTextBounds(p)); BringCaretIntoView(wrapInfo, textBoundsWidth); ResetCaretBlink(); } void BringCaretIntoView(WordWrapInfo wrapInfo, float textBoundsWidth) { var windowRect = new Rect(_windowPos, ActualSize); var caretRect = GetCaretRect(wrapInfo, textBoundsWidth); var textRect = GetClampedTextBoundsRect(wrapInfo); var caretVisibleRect = windowRect.MoveRectToContainRect(caretRect); var clampedRect = caretVisibleRect.MoveRectInsideRect(textRect); SetWindowPos(clampedRect.Position); } Rect GetCaretRect(WordWrapInfo wrapInfo, float textBoundsWidth) { var pos = _lineCache.TextPosToBounds(wrapInfo, TextAlignment, textBoundsWidth, _caretPosition); var width = 2.0f; return new Rect(pos, float2(width, wrapInfo.LineHeight)); } void DeleteSelection() { if (_selection == null) return; _caretPosition = _lineCache.DeleteSpan(_selection); _selection = null; _interactionSelectionStartPos = null; } // Transformations float2 ControlToWindow(float2 p) { return p; } float2 WindowToControl(float2 p) { return p; } float2 WindowToTextBounds(float2 p) { return p + _windowPos; } float2 TextBoundsToWindow(float2 p) { return p - _windowPos; } float2 ControlToTextBounds(float2 p) { return WindowToTextBounds(ControlToWindow(p)); } float2 TextBoundsToControl(float2 p) { return WindowToControl(TextBoundsToWindow(p)); } static SwipeGestureHelper _horizontalGesture = new SwipeGestureHelper(15.0f, new DegreeSpan(45.0f, 135.0f), // Right new DegreeSpan(-45.0f, -135.0f)); // Left static SwipeGestureHelper _verticalGesture = new SwipeGestureHelper(15.0f, new DegreeSpan( -45.0f, 45.0f), new DegreeSpan(-135.0f, -180.0f), new DegreeSpan( 135.0f, 180.0f)); void OnLostCapture() { Focus.ReleaseFrom(this); _selection = null; _down = -1; } float2 _startCoord = float2(0f); int _down = -1; void OnPointerPressed(object sender, PointerPressedArgs c) { if (_down == -1) { _startCoord = c.WindowPoint; _down = c.PointIndex; if (Focus.IsWithin(this)) { c.TryHardCapture(this, OnLostCapture); } else { c.TrySoftCapture(this, OnLostCapture); } StartSelection(c.WindowPoint); } } void OnPointerMoved(object sender, PointerMovedArgs c) { if (_down != c.PointIndex) return; MoveSelection(c.WindowPoint); if (c.IsHardCapturedTo(this)) { c.IsHandled = true; } else if (c.IsSoftCapturedTo(this)) { var diff = c.WindowPoint - _startCoord; var withinBounds = _horizontalGesture.IsWithinBounds(diff); /*if (!withinBounds && _lineCache.Lines.Count > 1) { withinBounds = _verticalGesture.IsWithinBounds(diff); }*/ if (withinBounds) { c.TryHardCapture(this, OnLostCapture); Focus.GiveTo(this); } } } void OnPointerReleased(object sender, PointerReleasedArgs c) { if (_down != c.PointIndex) return; if (c.IsHardCapturedTo(this)) { c.ReleaseCapture(this); c.IsHandled = true; } if (c.IsSoftCapturedTo(this)) { c.ReleaseCapture(this); } _down = -1; } void StartSelection(float2 windowPoint) { SetCaretPos(WindowToLocal(windowPoint)); ResetCaretBlink(); _selection = null; _interactionSelectionStartPos = _caretPosition; ClearPasswordReveal(); } void MoveSelection(float2 windowPoint) { SetCaretPos(WindowToLocal(windowPoint)); if (_interactionSelectionStartPos == null) _interactionSelectionStartPos = _caretPosition; _selection = _interactionSelectionStartPos != _caretPosition ? new TextSpan(_interactionSelectionStartPos, _caretPosition) : null; } string _placeholderFallback; void SetPlaceholderTextFallback() { } LineCachePasswordTransform PasswordTransform { get { if (_lineCache == null) return null; return _lineCache.Transform as LineCachePasswordTransform; } } void OnTextEntered(object sender, TextEnteredArgs args) { DeleteSelection(); args.IsHandled = true; if (MaxLength != 0 && Value.Length >= MaxLength) return; foreach (var character in args.Text) { if (character == '\n' || character == '\r' || (int)character < 32) continue; _caretPosition = _lineCache.InsertChar(_caretPosition, character); if( PasswordTransform != null ) { PasswordTransform.SetReveal( _caretPosition.Char - 1 ); _revealEnd = Time.FrameTime + RevealTime; } var wrapWidth = ActualSize.X; var wrapInfo = CreateWrapInfo(wrapWidth,true); var textBoundsWidth = GetClampedTextBoundsSize(wrapInfo).X; BringCaretIntoView(wrapInfo, textBoundsWidth); ResetCaretBlink(); } } void ClearPasswordReveal() { if( PasswordTransform != null ) if( PasswordTransform.SetReveal( -1 ) ) _lineCache.InvalidateVisual(); } void OnKeyPressed(object sender, KeyPressedArgs args) { bool recognizedKey = false; var wrapWidth = ActualSize.X; var wrapInfo = CreateWrapInfo(wrapWidth,true); var textBoundsWidth = GetClampedTextBoundsSize(wrapInfo).X; ClearPasswordReveal(); if (!IsReadOnly) { switch (args.Key) { case Uno.Platform.Key.Enter: if (IsMultiline) { DeleteSelection(); _caretPosition = _lineCache.InsertNewline(_caretPosition); } else if(TextSource.IsTextInputActive) OnAction(TextInputActionType.Primary); recognizedKey = true; break; case Uno.Platform.Key.Delete: if (_selection == null) { _caretPosition = _lineCache.TryDelete(_caretPosition); } else { DeleteSelection(); } recognizedKey = true; break; case Uno.Platform.Key.Backspace: if (_selection == null) { _caretPosition = _lineCache.TryBackspace(_caretPosition); } else { DeleteSelection(); } recognizedKey = true; break; default: break; } } switch (args.Key) { case Uno.Platform.Key.A: if(!args.IsMetaKeyPressed) break; SelectAll(); recognizedKey = true; break; case Uno.Platform.Key.Left: HandleLeftArrow(args); recognizedKey = true; break; case Uno.Platform.Key.Right: HandleRightArrow(args); recognizedKey = true; break; case Uno.Platform.Key.Up: var oldCaretPos = _caretPosition; _caretPosition = _lineCache.TryMoveUp(wrapInfo, TextAlignment, textBoundsWidth, _caretPosition); if(args.IsShiftKeyPressed && _caretPosition.Line == oldCaretPos.Line) { _caretPosition = _lineCache.Home(wrapInfo, oldCaretPos); } Select(oldCaretPos, _caretPosition, args.IsShiftKeyPressed); recognizedKey = true; break; case Uno.Platform.Key.Down: var oldCaretPos = _caretPosition; _caretPosition = _lineCache.TryMoveDown(wrapInfo, TextAlignment, textBoundsWidth, _caretPosition); if(args.IsShiftKeyPressed && _caretPosition.Line == oldCaretPos.Line) { _caretPosition = _lineCache.End(wrapInfo, oldCaretPos); } Select(oldCaretPos, _caretPosition, args.IsShiftKeyPressed); recognizedKey = true; break; case Uno.Platform.Key.Home: var oldCaretPos = _caretPosition; _caretPosition = _lineCache.Home(wrapInfo, _caretPosition); Select(oldCaretPos, _caretPosition, args.IsShiftKeyPressed); recognizedKey = true; break; case Uno.Platform.Key.End: var oldCaretPos = _caretPosition; _caretPosition = _lineCache.End(wrapInfo, _caretPosition); Select(oldCaretPos, _caretPosition, args.IsShiftKeyPressed); recognizedKey = true; break; default: break; } if (recognizedKey) { ResetCaretBlink(); args.IsHandled = true; } } void HandleLeftArrow(KeyPressedArgs args) { if(args.IsMetaKeyPressed) { var oldCaretPosition = _caretPosition; _caretPosition = _lineCache.TryMoveOneWordLeft(_caretPosition); Select(oldCaretPosition, _caretPosition, args.IsShiftKeyPressed); } else { if(args.IsShiftKeyPressed) { var oldCaretPosition = _caretPosition; _caretPosition = _lineCache.TryMoveLeft(_caretPosition); SelectFunc(oldCaretPosition, _caretPosition); } else { if(_selection != null) { _caretPosition = _selection.Start; _selection = null; } else { _selection = null; _caretPosition = _lineCache.TryMoveLeft(_caretPosition); } } } } void HandleRightArrow(KeyPressedArgs args) { if(args.IsMetaKeyPressed) { var oldCaretPosition = _caretPosition; _caretPosition = _lineCache.TryMoveOneWordRight(_caretPosition); Select(oldCaretPosition, _caretPosition, args.IsShiftKeyPressed); } else { if(args.IsShiftKeyPressed) { var oldCaretPosition = _caretPosition; _caretPosition = _lineCache.TryMoveRight(_caretPosition); SelectFunc(oldCaretPosition, _caretPosition); } else { if(_selection != null) { _caretPosition = _selection.End; _selection = null; } else { _selection = null; _caretPosition = _lineCache.TryMoveRight(_caretPosition); } } } } void Select(TextPosition oldCaretPos, TextPosition newCaretPos, bool shouldSelect) { if(shouldSelect) { SelectFunc(oldCaretPos, newCaretPos); } else { _selection = null; } } void SelectFunc(TextPosition oldCaretPos, TextPosition newCaretPos) { bool movesLeft = oldCaretPos > newCaretPos; if(_selection == null) { if(movesLeft) { _selection = new TextSpan(newCaretPos, oldCaretPos); } else { _selection = new TextSpan(oldCaretPos, newCaretPos); } } else if(_selection.End > oldCaretPos) { if(movesLeft) { _selection = new TextSpan(newCaretPos, _selection.End); } else { _selection = new TextSpan(_selection.End, newCaretPos); } } else if(_selection.Start <= oldCaretPos) { if(movesLeft) { _selection = new TextSpan(newCaretPos, _selection.Start); } else { _selection = new TextSpan(_selection.Start, newCaretPos); } } } } }
{ "pile_set_name": "Github" }
"Filed out from Dolphin Smalltalk 7"! ENHMETARECORD subclass: #EMRPLGBLT instanceVariableNames: '' classVariableNames: '_OffsetOf_aptlDest _OffsetOf_cbBitsMask _OffsetOf_cbBitsSrc _OffsetOf_cbBmiMask _OffsetOf_cbBmiSrc _OffsetOf_crBkColorSrc _OffsetOf_cxSrc _OffsetOf_cySrc _OffsetOf_iUsageMask _OffsetOf_iUsageSrc _OffsetOf_offBitsMask _OffsetOf_offBitsSrc _OffsetOf_offBmiMask _OffsetOf_offBmiSrc _OffsetOf_rclBounds _OffsetOf_xformSrc _OffsetOf_xMask _OffsetOf_xSrc _OffsetOf_yMask _OffsetOf_ySrc' poolDictionaries: '' classInstanceVariableNames: ''! EMRPLGBLT guid: (GUID fromString: '{cdae1f25-39c4-4555-985b-3b2cd197d3e0}')! EMRPLGBLT addClassConstant: '_OffsetOf_aptlDest' value: 16r18! EMRPLGBLT addClassConstant: '_OffsetOf_cbBitsMask' value: 16r88! EMRPLGBLT addClassConstant: '_OffsetOf_cbBitsSrc' value: 16r6C! EMRPLGBLT addClassConstant: '_OffsetOf_cbBmiMask' value: 16r80! EMRPLGBLT addClassConstant: '_OffsetOf_cbBmiSrc' value: 16r64! EMRPLGBLT addClassConstant: '_OffsetOf_crBkColorSrc' value: 16r58! EMRPLGBLT addClassConstant: '_OffsetOf_cxSrc' value: 16r38! EMRPLGBLT addClassConstant: '_OffsetOf_cySrc' value: 16r3C! EMRPLGBLT addClassConstant: '_OffsetOf_iUsageMask' value: 16r78! EMRPLGBLT addClassConstant: '_OffsetOf_iUsageSrc' value: 16r5C! EMRPLGBLT addClassConstant: '_OffsetOf_offBitsMask' value: 16r84! EMRPLGBLT addClassConstant: '_OffsetOf_offBitsSrc' value: 16r68! EMRPLGBLT addClassConstant: '_OffsetOf_offBmiMask' value: 16r7C! EMRPLGBLT addClassConstant: '_OffsetOf_offBmiSrc' value: 16r60! EMRPLGBLT addClassConstant: '_OffsetOf_rclBounds' value: 16r8! EMRPLGBLT addClassConstant: '_OffsetOf_xformSrc' value: 16r40! EMRPLGBLT addClassConstant: '_OffsetOf_xMask' value: 16r70! EMRPLGBLT addClassConstant: '_OffsetOf_xSrc' value: 16r30! EMRPLGBLT addClassConstant: '_OffsetOf_yMask' value: 16r74! EMRPLGBLT addClassConstant: '_OffsetOf_ySrc' value: 16r34! EMRPLGBLT comment: '<EMRPLGBLT> is an <ExternalStructure> class to wrap the struct ''Win32.EMRPLGBLT'' from type information in the ''Win32 API (ANSI). Derived from Bruce McKinney´s Hardcore Visual Basic Type Library'' library. The type library contains no documentation for this struct Warning: This comment was automatically generated from the struct''s type information, but any changes made here will not be overwritten if the wrapper class is regenerated. IDL definition follows: typedef [uuid(CDAE1F25-39C4-4555-985B-3B2CD197D3E0)] struct tagEMRPLGBLT { EMR EMR; [helpstring("Inclusive-inclusive bounds in device units")] RECTL rclBounds; POINTL aptlDest[3]; long xSrc; long ySrc; long cxSrc; long cySrc; [helpstring("Source DC transform")] XFORM xformSrc; [helpstring("Source DC BkColor in RGB")] COLORREF crBkColorSrc; [helpstring("Source bitmap info color table usage")] DWORD iUsageSrc; [helpstring("Offset to the source BITMAPINFO structure")] DWORD offBmiSrc; [helpstring("Size of the source BITMAPINFO structure")] DWORD cbBmiSrc; [helpstring("Offset to the source bitmap bits")] DWORD offBitsSrc; [helpstring("Size of the source bitmap bits")] DWORD cbBitsSrc; long xMask; long yMask; [helpstring("Mask bitmap info color table usage")] DWORD iUsageMask; [helpstring("Offset to the mask BITMAPINFO structure if any")] DWORD offBmiMask; [helpstring("Size of the mask BITMAPINFO structure if any")] DWORD cbBmiMask; [helpstring("Offset to the mask bitmap bits if any")] DWORD offBitsMask; [helpstring("Size of the mask bitmap bits if any")] DWORD cbBitsMask; } EMRPLGBLT; '! !EMRPLGBLT categoriesForClass!Win32-Structs! ! !EMRPLGBLT methodsFor! aptlDest "Answer the <StructureArray> value of the receiver's 'aptlDest' field." ^StructureArray fromAddress: bytes yourAddress + _OffsetOf_aptlDest length: 3 elementClass: POINTL! aptlDest: aStructureArrayOfPOINTL "Set the receiver's 'aptlDest' field to the value of the argument, aStructureArrayOfPOINTL" | size | size := aStructureArrayOfPOINTL byteSize min: ##(3 * POINTL basicByteSize). aStructureArrayOfPOINTL replaceBytesOf: bytes from: ##(_OffsetOf_aptlDest + 1) to: _OffsetOf_aptlDest + size startingAt: 1! cbBitsMask "Answer the <Integer> value of the receiver's 'cbBitsMask' field." ^bytes dwordAtOffset: _OffsetOf_cbBitsMask! cbBitsMask: anInteger "Set the receiver's 'cbBitsMask' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_cbBitsMask put: anInteger! cbBitsSrc "Answer the <Integer> value of the receiver's 'cbBitsSrc' field." ^bytes dwordAtOffset: _OffsetOf_cbBitsSrc! cbBitsSrc: anInteger "Set the receiver's 'cbBitsSrc' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_cbBitsSrc put: anInteger! cbBmiMask "Answer the <Integer> value of the receiver's 'cbBmiMask' field." ^bytes dwordAtOffset: _OffsetOf_cbBmiMask! cbBmiMask: anInteger "Set the receiver's 'cbBmiMask' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_cbBmiMask put: anInteger! cbBmiSrc "Answer the <Integer> value of the receiver's 'cbBmiSrc' field." ^bytes dwordAtOffset: _OffsetOf_cbBmiSrc! cbBmiSrc: anInteger "Set the receiver's 'cbBmiSrc' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_cbBmiSrc put: anInteger! crBkColorSrc "Answer the <Integer> value of the receiver's 'crBkColorSrc' field." ^bytes dwordAtOffset: _OffsetOf_crBkColorSrc! crBkColorSrc: anInteger "Set the receiver's 'crBkColorSrc' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_crBkColorSrc put: anInteger! cxSrc "Answer the <Integer> value of the receiver's 'cxSrc' field." ^bytes sdwordAtOffset: _OffsetOf_cxSrc! cxSrc: anInteger "Set the receiver's 'cxSrc' field to the value of the argument, anInteger" bytes sdwordAtOffset: _OffsetOf_cxSrc put: anInteger! cySrc "Answer the <Integer> value of the receiver's 'cySrc' field." ^bytes sdwordAtOffset: _OffsetOf_cySrc! cySrc: anInteger "Set the receiver's 'cySrc' field to the value of the argument, anInteger" bytes sdwordAtOffset: _OffsetOf_cySrc put: anInteger! iUsageMask "Answer the <Integer> value of the receiver's 'iUsageMask' field." ^bytes dwordAtOffset: _OffsetOf_iUsageMask! iUsageMask: anInteger "Set the receiver's 'iUsageMask' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_iUsageMask put: anInteger! iUsageSrc "Answer the <Integer> value of the receiver's 'iUsageSrc' field." ^bytes dwordAtOffset: _OffsetOf_iUsageSrc! iUsageSrc: anInteger "Set the receiver's 'iUsageSrc' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_iUsageSrc put: anInteger! offBitsMask "Answer the <Integer> value of the receiver's 'offBitsMask' field." ^bytes dwordAtOffset: _OffsetOf_offBitsMask! offBitsMask: anInteger "Set the receiver's 'offBitsMask' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_offBitsMask put: anInteger! offBitsSrc "Answer the <Integer> value of the receiver's 'offBitsSrc' field." ^bytes dwordAtOffset: _OffsetOf_offBitsSrc! offBitsSrc: anInteger "Set the receiver's 'offBitsSrc' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_offBitsSrc put: anInteger! offBmiMask "Answer the <Integer> value of the receiver's 'offBmiMask' field." ^bytes dwordAtOffset: _OffsetOf_offBmiMask! offBmiMask: anInteger "Set the receiver's 'offBmiMask' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_offBmiMask put: anInteger! offBmiSrc "Answer the <Integer> value of the receiver's 'offBmiSrc' field." ^bytes dwordAtOffset: _OffsetOf_offBmiSrc! offBmiSrc: anInteger "Set the receiver's 'offBmiSrc' field to the value of the argument, anInteger" bytes dwordAtOffset: _OffsetOf_offBmiSrc put: anInteger! rclBounds "Answer the <RECT> value of the receiver's 'rclBounds' field." ^RECT fromAddress: bytes yourAddress + _OffsetOf_rclBounds! rclBounds: aRECT "Set the receiver's 'rclBounds' field to the value of the argument, aRECT" aRECT replaceBytesOf: bytes from: ##(_OffsetOf_rclBounds + 1) to: ##(_OffsetOf_rclBounds + RECT basicByteSize) startingAt: 1! xformSrc "Answer the <XFORM> value of the receiver's 'xformSrc' field." ^XFORM fromAddress: bytes yourAddress + _OffsetOf_xformSrc! xformSrc: aXFORM "Set the receiver's 'xformSrc' field to the value of the argument, aXFORM" aXFORM replaceBytesOf: bytes from: ##(_OffsetOf_xformSrc + 1) to: ##(_OffsetOf_xformSrc + XFORM basicByteSize) startingAt: 1! xMask "Answer the <Integer> value of the receiver's 'xMask' field." ^bytes sdwordAtOffset: _OffsetOf_xMask! xMask: anInteger "Set the receiver's 'xMask' field to the value of the argument, anInteger" bytes sdwordAtOffset: _OffsetOf_xMask put: anInteger! xSrc "Answer the <Integer> value of the receiver's 'xSrc' field." ^bytes sdwordAtOffset: _OffsetOf_xSrc! xSrc: anInteger "Set the receiver's 'xSrc' field to the value of the argument, anInteger" bytes sdwordAtOffset: _OffsetOf_xSrc put: anInteger! yMask "Answer the <Integer> value of the receiver's 'yMask' field." ^bytes sdwordAtOffset: _OffsetOf_yMask! yMask: anInteger "Set the receiver's 'yMask' field to the value of the argument, anInteger" bytes sdwordAtOffset: _OffsetOf_yMask put: anInteger! ySrc "Answer the <Integer> value of the receiver's 'ySrc' field." ^bytes sdwordAtOffset: _OffsetOf_ySrc! ySrc: anInteger "Set the receiver's 'ySrc' field to the value of the argument, anInteger" bytes sdwordAtOffset: _OffsetOf_ySrc put: anInteger! ! !EMRPLGBLT categoriesFor: #aptlDest!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #aptlDest:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cbBitsMask!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cbBitsMask:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cbBitsSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cbBitsSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cbBmiMask!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cbBmiMask:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cbBmiSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cbBmiSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #crBkColorSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #crBkColorSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cxSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cxSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cySrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #cySrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #iUsageMask!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #iUsageMask:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #iUsageSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #iUsageSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #offBitsMask!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #offBitsMask:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #offBitsSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #offBitsSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #offBmiMask!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #offBmiMask:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #offBmiSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #offBmiSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #rclBounds!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #rclBounds:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #xformSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #xformSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #xMask!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #xMask:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #xSrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #xSrc:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #yMask!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #yMask:!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #ySrc!**compiled accessors**!public! ! !EMRPLGBLT categoriesFor: #ySrc:!**compiled accessors**!public! ! !EMRPLGBLT class methodsFor! defineFields "Define the fields of the EMRPLGBLT structure. EMRPLGBLT compileDefinition typedef [uuid(CDAE1F25-39C4-4555-985B-3B2CD197D3E0)] struct tagEMRPLGBLT { EMR EMR; [helpstring('Inclusive-inclusive bounds in device units')] RECTL rclBounds; POINTL aptlDest[3]; long xSrc; long ySrc; long cxSrc; long cySrc; [helpstring('Source DC transform')] XFORM xformSrc; [helpstring('Source DC BkColor in RGB')] COLORREF crBkColorSrc; [helpstring('Source bitmap info color table usage')] DWORD iUsageSrc; [helpstring('Offset to the source BITMAPINFO structure')] DWORD offBmiSrc; [helpstring('Size of the source BITMAPINFO structure')] DWORD cbBmiSrc; [helpstring('Offset to the source bitmap bits')] DWORD offBitsSrc; [helpstring('Size of the source bitmap bits')] DWORD cbBitsSrc; long xMask; long yMask; [helpstring('Mask bitmap info color table usage')] DWORD iUsageMask; [helpstring('Offset to the mask BITMAPINFO structure if any')] DWORD offBmiMask; [helpstring('Size of the mask BITMAPINFO structure if any')] DWORD cbBmiMask; [helpstring('Offset to the mask bitmap bits if any')] DWORD offBitsMask; [helpstring('Size of the mask bitmap bits if any')] DWORD cbBitsMask; } EMRPLGBLT; " super defineFields. self defineField: #rclBounds type: (StructureField type: RECT) offset: 8; defineField: #aptlDest type: (StructureArrayField type: POINTL length: 3) offset: 24; defineField: #xSrc type: SDWORDField new offset: 48; defineField: #ySrc type: SDWORDField new offset: 52; defineField: #cxSrc type: SDWORDField new offset: 56; defineField: #cySrc type: SDWORDField new offset: 60; defineField: #xformSrc type: (StructureField type: XFORM) offset: 64; defineField: #crBkColorSrc type: DWORDField new offset: 88; defineField: #iUsageSrc type: DWORDField new offset: 92; defineField: #offBmiSrc type: DWORDField new offset: 96; defineField: #cbBmiSrc type: DWORDField new offset: 100; defineField: #offBitsSrc type: DWORDField new offset: 104; defineField: #cbBitsSrc type: DWORDField new offset: 108; defineField: #xMask type: SDWORDField new offset: 112; defineField: #yMask type: SDWORDField new offset: 116; defineField: #iUsageMask type: DWORDField new offset: 120; defineField: #offBmiMask type: DWORDField new offset: 124; defineField: #cbBmiMask type: DWORDField new offset: 128; defineField: #offBitsMask type: DWORDField new offset: 132; defineField: #cbBitsMask type: DWORDField new offset: 136. self byteSize: 140! getFieldNames ^#(#iType #nSize #rclBounds #aptlDest #xSrc #ySrc #cxSrc #cySrc #xformSrc #crBkColorSrc #iUsageSrc #offBmiSrc #cbBmiSrc #offBitsSrc #cbBitsSrc #xMask #yMask #iUsageMask #offBmiMask #cbBmiMask #offBitsMask #cbBitsMask)! iTypes "Answer the integer enhanced metafile record type id for this record class." ^Array with: EMR_PLGBLT! ! !EMRPLGBLT class categoriesFor: #defineFields!**auto generated**!public!template definition! ! !EMRPLGBLT class categoriesFor: #getFieldNames!**compiled accessors**!constants!private! ! !EMRPLGBLT class categoriesFor: #iTypes!constants!public! !
{ "pile_set_name": "Github" }
52 3 0 212 144 92 144 163 138 3 0 163 138 92 144 141 138 3 0 163 138 141 138 163 125 3 0 163 125 141 138 141 125 3 0 163 125 141 125 178 108 3 0 178 108 141 125 126 108 3 0 178 108 126 108 179 87 3 0 179 87 126 108 125 87 3 0 179 87 125 87 170 75 3 0 170 75 125 87 134 75 3 0 170 75 134 75 152 71 3 0 50 361 96 377 51 377 3 0 76 358 96 377 50 361 3 0 96 377 76 358 96 355 3 0 108 310 96 355 76 358 3 0 108 310 76 358 85 301 3 0 108 310 85 301 150 266 3 0 189 242 150 266 85 301 3 0 189 242 85 301 115 242 3 0 132 221 189 242 115 242 3 0 179 196 189 242 132 221 3 0 189 242 179 196 189 172 3 0 179 196 150 183 189 172 3 0 189 172 150 183 159 161 3 0 235 163 189 172 159 161 3 0 212 144 235 163 159 161 3 0 230 99 235 163 212 144 3 0 235 163 230 99 254 98 3 0 254 98 230 99 230 80 3 0 254 98 230 80 254 79 3 0 212 173 189 172 235 163 3 0 212 173 189 172 235 163 3 0 253 377 208 377 254 361 3 0 228 358 254 361 208 377 3 0 228 358 208 377 208 355 3 0 196 310 228 358 208 355 3 0 228 358 196 310 219 301 3 0 219 301 196 310 150 266 3 0 219 301 150 266 189 242 3 0 125 191 153 197 132 221 3 0 125 191 132 221 115 242 3 0 125 191 115 242 115 172 3 0 125 191 115 172 159 161 3 0 115 172 69 163 159 161 3 0 212 144 159 161 69 163 3 0 92 144 212 144 69 163 3 0 74 99 92 144 69 163 3 0 74 99 69 163 50 98 3 0 74 99 50 98 74 80 3 0 74 80 50 98 50 79 3 0 92 173 69 163 115 172 3 0 115 172 92 173 69 163
{ "pile_set_name": "Github" }
#include <iostream> #include "BenchUtil.h" #include "basicbenchmark.h" int main(int argc, char *argv[]) { DISABLE_SSE_EXCEPTIONS(); // this is the list of matrix type and size we want to bench: // ((suffix) (matrix size) (number of iterations)) #define MODES ((3d)(3)(4000000)) ((4d)(4)(1000000)) ((Xd)(4)(1000000)) ((Xd)(20)(10000)) // #define MODES ((Xd)(20)(10000)) #define _GENERATE_HEADER(R,ARG,EL) << BOOST_PP_STRINGIZE(BOOST_PP_SEQ_HEAD(EL)) << "-" \ << BOOST_PP_STRINGIZE(BOOST_PP_SEQ_ELEM(1,EL)) << "x" \ << BOOST_PP_STRINGIZE(BOOST_PP_SEQ_ELEM(1,EL)) << " / " std::cout BOOST_PP_SEQ_FOR_EACH(_GENERATE_HEADER, ~, MODES ) << endl; const int tries = 10; #define _RUN_BENCH(R,ARG,EL) \ std::cout << ARG( \ BOOST_PP_CAT(Matrix, BOOST_PP_SEQ_HEAD(EL)) (\ BOOST_PP_SEQ_ELEM(1,EL),BOOST_PP_SEQ_ELEM(1,EL)), BOOST_PP_SEQ_ELEM(2,EL), tries) \ << " "; BOOST_PP_SEQ_FOR_EACH(_RUN_BENCH, benchBasic<LazyEval>, MODES ); std::cout << endl; BOOST_PP_SEQ_FOR_EACH(_RUN_BENCH, benchBasic<EarlyEval>, MODES ); std::cout << endl; return 0; }
{ "pile_set_name": "Github" }
module App.Section.Demo exposing ( Model , Msg , init , update , view , subscriptions , routeChanged ) {-| The main demo component. Handles the demo section routing. -} import Html exposing (Html, section, h1, p, text) import App.Section.Demo.Route exposing (Route(..)) type Model = Model { routeModel : Route } type Msg = RouteChanged Route routeChanged : Route -> Msg routeChanged route = RouteChanged route init : Route -> ( Model, Cmd Msg ) init route = ( Model { routeModel = route } , Cmd.none ) update : Msg -> Model -> ( Model, Cmd Msg ) update msg (Model model) = case msg of RouteChanged route -> ( Model { model | routeModel = route } , Cmd.none ) view : Model -> Html Msg view (Model model) = case model.routeModel of DemoRoute -> section [] [ h1 [] [ text "Demo Overview" ] , p [] [ text "An overview of all demo pages will go here." ] ] AccordionDemoRoute -> section [] [ h1 [] [ text "Accordion Demo" ] , p [] [ text "An accordion component demo will go here." ] ] CheckboxDemoRoute -> section [] [ h1 [] [ text "Checkbox Demo" ] , p [] [ text "A checkbox demo will go here." ] ] OtherDemoRoute -> section [] [ h1 [] [ text "Other Demo" ] , p [] [ text "Some other demo will go here." ] ] subscriptions : Model -> Sub Msg subscriptions (Model model) = Sub.none
{ "pile_set_name": "Github" }
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="generator" content="Website XSL Stylesheet V1.79.1"><link rel="home" href="../index.html" title="Netkiller ebook - Linux ebook"><link rel="up" href="../home/project.html" title="Project"><link rel="previous" href="../home/deployment.svn.html" title="Deployment SVN"><link rel="next" href="../home/project.php.html" title="The PHP Extension Community Library"><link rel="first" href="../home/deployment.git.html" title="Deployment GIT"><link rel="last" href="../home/project.php.html" title="The PHP Extension Community Library"><link rel="stylesheet" href="../stylesheet.css" type="text/css"> <title>MySQL Plugin Project</title> <link rel="shortcut icon" href="/favicon.ico"><meta name="google-translate-customization" content="c6ca270b7421c69-7f96094f563bd60b-g019f6241168b32de-13"><script> (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','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-11694057-1', 'netkiller.github.io'); ga('send', 'pageview'); </script><script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?93967759a51cda79e49bf4e34d0b0f2c"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script></head><body class="tabular" bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="webpage"><a name="mysql"></a><table border="0" cellpadding="0" cellspacing="0" width="100%" summary="Navigation"><tr><td valign="top" align="left" bgcolor="#4080FF"><img src="../graphics/spacer.gif" alt=" " width="1" height="1"></td><td width="10"></td><td valign="top" align="left" bgcolor="" rowspan="2"><h1>MySQL Plugin Project</h1><hr><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idm9"></a>MySQL ZeroMQ Plugin</h2></div></div></div> <a class="ulink" href="https://github.com/netkiller/mysql-zmq-plugin" target="_top">https://github.com/netkiller/mysql-zmq-plugin</a> <p>git clone <a class="ulink" href="https://github.com/netkiller/mysql-zmq-plugin.git" target="_top">https://github.com/netkiller/mysql-zmq-plugin.git</a></p> <p><a class="ulink" href="../journal/mysql.plugin.fifo.html" target="_top">《数据库进程间通信解决方案》</a>的MQ实现版本</p> </div><hr><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idm17"></a>MySQL Pipes (FIFOs) Plugin</h2></div></div></div> <a class="ulink" href="https://github.com/netkiller/mysql-fifo-plugin" target="_top">https://github.com/netkiller/mysql-fifo-plugin</a> <p>git clone <a class="ulink" href="https://github.com/netkiller/mysql-fifo-plugin.git" target="_top">https://github.com/netkiller/mysql-fifo-plugin.git</a></p> <p><a class="ulink" href="../journal/mysql.plugin.fifo.html" target="_top">《数据库进程间通信解决方案》</a></p> </div><hr><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idm25"></a>MySQL Images Plugin</h2></div></div></div> <p><a class="ulink" href="https://github.com/netkiller/mysql-image-plugin" target="_top">https://github.com/netkiller/mysql-image-plugin</a></p> <p>git clone <a class="ulink" href="https://github.com/netkiller/mysql-image-plugin.git" target="_top">https://github.com/netkiller/mysql-image-plugin.git</a></p> <p><a class="ulink" href="/journal/mysql-plugin.html" target="_top">《数据库与图片完美解决方案》</a></p> </div><hr><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idm34"></a>SafeNet for MySQL Plugin</h2></div></div></div> <p><a class="ulink" href="https://github.com/netkiller/safenet-mysql" target="_top">https://github.com/netkiller/safenet-mysql</a></p> <p>git clone <a class="ulink" href="https://github.com/netkiller/safenet-mysql.git" target="_top">https://github.com/netkiller/safenet-mysql.git</a></p> </div><br></td></tr><tr><td valign="top" align="left" bgcolor="#4080FF" width="220"><p class="navtoc"><a href="../index.html"><img align="left" border="0" src="../images/license.png" alt="Banner"></a><br clear="all"><br><span class="toplevel">    <span class="otherpage"><a href="../home/news.html" title="LATEST NEWS / UPCOMING EVENTS">News</a></span><br></span><span class="toplevel">    <span class="otherpage"><a href="../journal/index.html" title="Technology Journal">Journal</a></span><br></span><span class="toplevel">    <span class="otherpage"><a href="../home/video.html" title="Netkiller Video">Netkiller Video</a></span><br></span><span class="toplevel">    <span class="otherpage"><a href="../home/technology.html" title="Netkiller ebook">系列电子书</a></span><br></span><span class="toplevel">    <span class="otherpage"><a href="../home/download.html" title="Netkiller 手札下载">Download</a></span><br></span><span class="toplevel">    <span class="ancestor"><a href="../home/project.html" title="Opensource Project">Project</a></span><br></span><span class="shrink1">       <span class="otherpage"><a href="../home/deployment.git.html" title="">Deployment GIT</a></span><br></span><span class="shrink1">       <span class="otherpage"><a href="../home/deployment.svn.html" title="">Deployment SVN</a></span><br></span><span class="shrink1">      +<span class="curpage">MySQL Plugin Project *</span><br></span><span class="shrink1">       <span class="otherpage"><a href="../home/project.php.html" title="The PHP Extension Community Library">PHP Extension Project</a></span><br></span><span class="toplevel">    <span class="otherpage"><a href="../home/screenshots.html" title="Website Solution Screenshots">Screenshots</a></span><br></span><span class="toplevel">    <span class="otherpage"><a href="../home/xml.html" title="RSS / ATOM">RSS / ATOM</a></span><br></span><span class="toplevel">    <span class="otherpage"><a href="../home/donations.html" title="支持这个项目(Support this project)">打赏(Donations)</a></span><br></span><span class="toplevel">    <span class="otherpage"><a href="../home/about.html" title="About">About</a></span><br></span><br></p><div align="center"><p style="color:white">Netkiller 微信订阅号 <br><img src="/images/weixin.jpg" width="180"></p><script type="text/javascript" id="clustrmaps" src="//cdn.clustrmaps.com/map_v2.js?u=r5HG&amp;d=9mi5r_kkDC8uxG8HuY3p4-2qgeeVypAK9vMD-2P6BYM"></script></div></td><td width="10"></td></tr><tr><td><div id="google_translate_element"></div><script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'zh-CN', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, gaTrack: true, gaId: 'UA-11694057-1'}, 'google_translate_element'); } </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script></td></tr></table></div></body></html>
{ "pile_set_name": "Github" }
#load "..\TestCs\ReferencedClass.cs" #load "ReferencedScript.csx" //Write using supplied ScriptContext Output.WriteLine("namespace TestNamespace{class TestClass{public void TestMethod(){}}}"); //With referenced script Output.WriteLine($"// we have multiplied {Go4th(2, 3)}"); //Create instance from intercepted class var rc1 = new ReferencedClass(Context); Output.WriteLine($"// Emitting prop with backing field {rc1.PropertyWithBackingField}"); rc1.Owl($"// using the referenced class to output")
{ "pile_set_name": "Github" }
好奇心原文链接:[《忠犬八公》导演的温情新作,还是能让你为一只狗哭上一回_娱乐_好奇心日报-陈心怡](https://www.qdaily.com/articles/31645.html) WebArchive归档链接:[《忠犬八公》导演的温情新作,还是能让你为一只狗哭上一回_娱乐_好奇心日报-陈心怡](http://web.archive.org/web/20161106062253/http://www.qdaily.com:80/articles/31645.html) ![image](http://ww3.sinaimg.cn/large/007d5XDply1g3y8xntnsvj30u04rye83)
{ "pile_set_name": "Github" }
dnl mpn_rshift2 dnl Copyright 2009 Jason Moxham dnl This file is part of the MPIR Library. dnl The MPIR Library is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Lesser General Public License as published dnl by the Free Software Foundation; either version 2.1 of the License, or (at dnl your option) any later version. dnl The MPIR Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public dnl License for more details. dnl You should have received a copy of the GNU Lesser General Public License dnl along with the MPIR Library; see the file COPYING.LIB. If not, write dnl to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, dnl Boston, MA 02110-1301, USA. include(`../config.m4') C ret mpn_rshift2(mp_ptr,mp_ptr,mp_size_t) C rax rdi, rsi, rdx ASM_START() PROLOGUE(mpn_rshift2) mov %rdx,%rcx lea 24(%rsi),%rsi lea 24(%rdi),%rdi xor %eax,%eax xor %edx,%edx sub $4,%rcx jc skiplp ALIGN(16) lp: mov (%rsi,%rcx,8),%r8 mov -8(%rsi,%rcx,8),%r9 mov -16(%rsi,%rcx,8),%r10 mov -24(%rsi,%rcx,8),%r11 add %rax,%rax rcr $1,%r8 rcr $1,%r9 rcr $1,%r10 rcr $1,%r11 sbb %rax,%rax add %rdx,%rdx rcr $1,%r8 rcr $1,%r9 rcr $1,%r10 rcr $1,%r11 mov %r11,-24(%rdi,%rcx,8) sbb %rdx,%rdx mov %r8,(%rdi,%rcx,8) sub $4,%rcx mov %r9,24(%rdi,%rcx,8) mov %r10,16(%rdi,%rcx,8) jnc lp skiplp: cmp $-2,%rcx ja case3 je case2 jp case1 case0: lea (%rax,%rdx,2),%rax neg %rax shl $62,%rax ret ALIGN(16) case3: mov (%rsi,%rcx,8),%r8 mov -8(%rsi,%rcx,8),%r9 mov -16(%rsi,%rcx,8),%r10 add %rax,%rax rcr $1,%r8 rcr $1,%r9 rcr $1,%r10 sbb %rax,%rax add %rdx,%rdx rcr $1,%r8 rcr $1,%r9 rcr $1,%r10 sbb %rdx,%rdx mov %r8,(%rdi,%rcx,8) mov %r9,-8(%rdi,%rcx,8) mov %r10,-16(%rdi,%rcx,8) lea (%rax,%rdx,2),%rax neg %rax shl $62,%rax ret ALIGN(16) case2: mov (%rsi,%rcx,8),%r8 mov -8(%rsi,%rcx,8),%r9 add %rax,%rax rcr $1,%r8 rcr $1,%r9 sbb %rax,%rax add %rdx,%rdx rcr $1,%r8 rcr $1,%r9 sbb %rdx,%rdx mov %r8,(%rdi,%rcx,8) mov %r9,-8(%rdi,%rcx,8) lea (%rax,%rdx,2),%rax neg %rax shl $62,%rax ret ALIGN(16) case1: mov (%rsi,%rcx,8),%r8 add %rax,%rax rcr $1,%r8 sbb %rax,%rax add %rdx,%rdx rcr $1,%r8 sbb %rdx,%rdx mov %r8,(%rdi,%rcx,8) lea (%rax,%rdx,2),%rax neg %rax shl $62,%rax ret EPILOGUE()
{ "pile_set_name": "Github" }
// // Grid // -------------------------------------------------- .row { &-flexbox { display: flex; flex-flow: row wrap; } }
{ "pile_set_name": "Github" }
/*jshint undef: false */ describe('Service with sample conf', function() { beforeEach(function() { module('ncy-sample-conf'); }); it('generate a unique step for the "home" state', inject(function($breadcrumb) { goToStateAndFlush('home'); var statesChain = $breadcrumb.getStatesChain(); expect(stringifyStateChain(statesChain)).toBe('home'); var lastStep = $breadcrumb.getLastStep(); expect(lastStep.name).toBe('home'); })); it('generate three steps for the "room" state', inject(function($breadcrumb) { goToStateAndFlush('room'); var statesChain = $breadcrumb.getStatesChain(); expect(stringifyStateChain(statesChain)).toBe('home --> sample --> room'); var lastStep = $breadcrumb.getLastStep(); expect(lastStep.name).toBe('room'); })); it('generate four steps for the "room.detail" state', inject(function($breadcrumb) { goToStateAndFlush('room.detail', {roomId: 1}); var statesChain = $breadcrumb.getStatesChain(); expect(stringifyStateChain(statesChain)).toBe('home --> sample --> room --> room.detail'); var lastStep = $breadcrumb.getLastStep(); expect(lastStep.name).toBe('room.detail'); })); it('generate four steps for the "room.detail.edit" state with working links', inject(function($breadcrumb) { goToStateAndFlush('room.detail.edit', {roomId: 1}); var statesChain = $breadcrumb.getStatesChain(); expect(stringifyStateChain(statesChain)).toBe('home --> sample --> room --> room.detail --> room.detail.edit'); expect(statesChain[3].ncyBreadcrumbLink).toBe('#/room/1'); expect(statesChain[4].ncyBreadcrumbLink).toBe('#/room/1/edit'); })); it('must build a correct link for each steps', inject(function($breadcrumb) { goToStateAndFlush('room'); var statesChain = $breadcrumb.getStatesChain(); expect(statesChain[0].ncyBreadcrumbLink).toBe('#/home'); expect(statesChain[1].ncyBreadcrumbLink).toBe('#/sample'); })); });
{ "pile_set_name": "Github" }
*PPD-Adobe: "4.0" *% Copyright 1994 Dataproducts corporation. *% All Rights Reserved. *% Permission is granted for redistribution of this file as *% long as this copyright notice is intact and the contents *% of the file are not altered in any way from their original form. *% End of Copyright statement *FormatVersion: "4.0" *FileVersion: "DPC4.0W1.02.042594" *LanguageVersion: English *PCFileName: "DPL15606.PPD" *Product: "(LZR 1560)" *PSVersion: "(2011.113) 12" *ModelName: "Dataproducts LZR 1560" *NickName: "Dataproducts LZR 1560 v2011.113" *ShortNickName: "Dataproducts LZR 1560 v2011.113" *% ==== Options and Constraints ===== *OpenGroup: InstallableOptions/Options Installed *OpenUI *Option1/Optional Tray 2: Boolean *DefaultOption1: True *Option1 True/Installed: "" *Option1 False/Not Installed: "" *CloseUI: *Option1 *OpenUI *Option2/Optional Tray 3: Boolean *DefaultOption2: False *Option2 True/Installed: "" *Option2 False/Not Installed: "" *CloseUI: *Option2 *OpenUI *Option3/Multi-Media Feeder: Boolean *DefaultOption3: False *Option3 True/Installed: "" *Option3 False/Not Installed: "" *CloseUI: *Option3 *OpenUI *Option4/Memory Configuration: PickOne *DefaultOption4: None *Option4 None/4 MB RAM: "" *Option4 5MB/5 MB RAM: "3200000" *Option4 6MB/6 MB RAM: "4200000" *Option4 7MB/7 MB RAM: "5200000" *Option4 8MB/8 MB RAM: "6200000" *Option4 9MB/9 MB RAM: "7200000" *Option4 10MB/10 MB RAM: "8200000" *Option4 12MB/12 MB RAM: "10200000" *Option4 13MB/13 MB RAM: "11200000" *Option4 16MB/16 MB RAM: "14200000" *CloseUI: *Option4 *CloseGroup: InstallableOptions *UIConstraints: *Option1 False *InputSlot Tray2 *UIConstraints: *Option2 False *InputSlot Tray3 *UIConstraints: *Option3 False *InputSlot Multi-MediaFeeder *%========== Use this to make wpd =============== *%========== UIConstraints: *Option3 True *InputSlot ManualFeed *UIConstraints: *Option3 True *ManualFeed *% This device does not support the following paper sizes through input trays: *% Statement, Postcard, Comm #10 Envelope, DL, C5, Monarch envelopes. *% General Information and Defaults =============== *LanguageLevel: "2" *Protocols: BCP *Emulators: hplj *StartEmulator_hplj: "currentfile /hpcl statusdict /emulate get exec " *StopEmulator_hplj: "<1B 7F>0" *FreeVM: "307244" *ColorDevice: False *DefaultColorSpace: Gray *VariablePaperSize: False *FileSystem: True *?FileSystem: " save false (%disk?%) { currentdevparams dup /Writeable known { /Writeable get {pop true} if } { pop } ifelse } 10 string /IODevice resourceforall {(True)}{(False)} ifelse = flush restore" *End *Throughput: "15" *Password: "()" *ExitServer: " count 0 eq { false } { true exch startjob } ifelse not { (WARNING: Cannot modify initial VM.) = (Missing or invalid password.) = (Please contact the author of this software.) = flush quit } if " *End *Reset: " count 0 eq { false } { true exch startjob } ifelse not { (WARNING: Cannot reset printer.) = (Missing or invalid password.) = (Please contact the author of this software.) = flush quit } if systemdict /quit get exec (WARNING : Printer Reset Failed.) = flush " *End *OpenUI *Resolution: PickOne *OrderDependency: 10 AnySetup *Resolution *DefaultResolution: 300dpi *Resolution 300dpi: "1 dict dup /HWResolution [300 300] put setpagedevice" *Resolution 400dpi: "1 dict dup /HWResolution [400 400] put setpagedevice" *?Resolution: " save currentpagedevice /HWResolution get aload pop exch ( ) cvs print pop (dpi) = flush restore " *End *CloseUI: *Resolution *% Halftone Information =============== *ScreenFreq: "60.0" *ScreenAngle: "45.0" *DefaultScreenProc: Dot *ScreenProc Dot: " {abs exch abs 2 copy add 1 gt {1 sub dup mul exch 1 sub dup mul add 1 sub } {dup mul exch dup mul add 1 exch sub } ifelse } " *End *ScreenProc Line: "{ pop }" *ScreenProc Ellipse: "{ dup 5 mul 8 div mul exch dup mul exch add sqrt 1 exch sub }" *DefaultTransfer: Null *Transfer Null: "{ }" *Transfer Null.Inverse: "{ 1 exch sub }" *% Paper Handling =================== *% Code in this section both selects a tray and sets up a frame buffer. *OpenUI *PageSize: PickOne *OrderDependency: 30 AnySetup *PageSize *DefaultPageSize: Unknown *PageSize Letter: " 2 dict dup /PageSize [612 792] put dup /ImagingBBox null put setpagedevice" *End *PageSize Legal: " 2 dict dup /PageSize [612 1008] put dup /ImagingBBox null put setpagedevice" *End *PageSize Tabloid/Ledger: " 2 dict dup /PageSize [792 1224] put dup /ImagingBBox null put setpagedevice" *End *PageSize A3: " 2 dict dup /PageSize [842 1191] put dup /ImagingBBox null put setpagedevice" *End *PageSize A4: " 2 dict dup /PageSize [595 842] put dup /ImagingBBox null put setpagedevice" *End *PageSize A5: " 2 dict dup /PageSize [420 595] put dup /ImagingBBox null put setpagedevice" *End *PageSize B4: " 2 dict dup /PageSize [729 1032] put dup /ImagingBBox null put setpagedevice" *End *PageSize B5: " 2 dict dup /PageSize [516 729] put dup /ImagingBBox null put setpagedevice" *End *PageSize Invoice/Statement: " 2 dict dup /PageSize [396 612] put dup /ImagingBBox null put setpagedevice" *End *PageSize Folio: " 2 dict dup /PageSize [595 936] put dup /ImagingBBox null put setpagedevice" *End *PageSize Executive: " 2 dict dup /PageSize [522 756] put dup /ImagingBBox null put setpagedevice" *End *PageSize Comm10/Comm #10 Envelope: " 2 dict dup /PageSize [297 684] put dup /ImagingBBox null put setpagedevice" *End *PageSize Monarch/Monarch Envelope: " 2 dict dup /PageSize [279 540] put dup /ImagingBBox null put setpagedevice" *End *PageSize DL/DL Envelope: " 2 dict dup /PageSize [312 624] put dup /ImagingBBox null put setpagedevice" *End *PageSize C5/C5 Envelope: " 2 dict dup /PageSize [459 649] put dup /ImagingBBox null put setpagedevice" *End *?PageSize: " save currentpagedevice /PageSize get aload pop 2 copy gt {exch} if (Unknown) 16 dict dup [612 792] (Letter) put dup [612 1008] (Legal) put dup [792 1224] (Tabloid) put dup [842 1191] (A3) put dup [595 842] (A4) put dup [420 595] (A5) put dup [729 1032] (B4) put dup [516 729] (B5) put dup [396 612] (Invoice) put dup [595 936] (Folio) put dup [522 756] (Executive) put dup [297 684] (Comm10) put dup [279 540] (Monarch) put dup [312 624] (DL) put dup [459 649] (C5) put { exch aload pop 4 index sub abs 5 le exch 5 index sub abs 5 le and {exch pop exit} {pop} ifelse } bind forall = flush pop pop restore " *End *CloseUI: *PageSize *OpenUI *PageRegion: PickOne *OrderDependency: 40 AnySetup *PageRegion *DefaultPageRegion: Unknown *PageRegion Letter: " currentpagedevice /InputAttributes get 3 get dup null ne {dup /PageSize [612 792] put setpagedevice} {pop} ifelse <</PageSize [612 792]>> setpagedevice " *End *PageRegion Legal: " currentpagedevice /InputAttributes get 3 get dup null ne {dup /PageSize [612 1008] put setpagedevice} {pop} ifelse <</PageSize [612 1008]>> setpagedevice " *End *PageRegion Tabloid/Ledger: " 2 dict dup /PageSize [792 1224] put dup /ImagingBBox null put setpagedevice" *End *PageRegion A3: " 2 dict dup /PageSize [842 1191] put dup /ImagingBBox null put setpagedevice" *End *PageRegion A4: " currentpagedevice /InputAttributes get 3 get dup null ne {dup /PageSize [595 842] put setpagedevice} {pop} ifelse <</PageSize [595 842]>> setpagedevice " *End *PageRegion A5: " currentpagedevice /InputAttributes get 3 get dup null ne {dup /PageSize [420 595] put setpagedevice} {pop} ifelse <</PageSize [420 595]>> setpagedevice " *End *PageRegion B4: " 2 dict dup /PageSize [729 1032] put dup /ImagingBBox null put setpagedevice" *End *PageRegion B5: " currentpagedevice /InputAttributes get 3 get dup null ne {dup /PageSize [516 729] put setpagedevice} {pop} ifelse <</PageSize [516 729]>> setpagedevice " *End *PageRegion Invoice/Statement: " currentpagedevice /InputAttributes get 3 get dup null ne {dup /PageSize [396 612] put setpagedevice} {pop} ifelse <</PageSize [396 612]>> setpagedevice " *End *PageRegion Folio: " currentpagedevice /InputAttributes get 3 get dup null ne {dup /PageSize [595 936] put setpagedevice} {pop} ifelse <</PageSize [595 936]>> setpagedevice " *End *PageRegion Executive: " currentpagedevice /InputAttributes get 3 get dup null ne {dup /PageSize [522 756] put setpagedevice} {pop} ifelse <</PageSize [522 756]>> setpagedevice " *End *PageRegion Comm10/Comm #10 Envelope: " currentpagedevice /InputAttributes get 3 get dup null ne {dup /PageSize [297 684] put setpagedevice} {pop} ifelse <</PageSize [297 684]>> setpagedevice " *End *PageRegion Monarch/Monarch Envelope: " currentpagedevice /InputAttributes get 3 get dup null ne {dup /PageSize [279 540] put setpagedevice} {pop} ifelse <</PageSize [279 540]>> setpagedevice " *End *PageRegion DL/DL Envelope: " currentpagedevice /InputAttributes get 3 get dup null ne {dup /PageSize [312 624] put setpagedevice} {pop} ifelse <</PageSize [312 624]>> setpagedevice " *End *PageRegion C5/C5 Envelope: " currentpagedevice /InputAttributes get 3 get dup null ne {dup /PageSize [459 649] put setpagedevice} {pop} ifelse <</PageSize [459 649]>> setpagedevice " *End *CloseUI: *PageRegion *% The following entries provide information about specific paper keywords. *DefaultImageableArea: Unknown *ImageableArea Letter: "16 14.4 595.4 778 " *ImageableArea Legal: "16 9.81 596.16 995 " *ImageableArea Tabloid/Ledger: "16 12 780 1208 " *ImageableArea A3: "16 12 825.84 1178 " *ImageableArea A4: "16 14.4 578.88 825.17 " *ImageableArea A5: "14 14.4 407.25 577 " *ImageableArea B4: "16 10.2 717.12 1019.25 " *ImageableArea B5: "11 15 503.1 717.12 " *ImageableArea Invoice/Statement: "14.4001 9.81 383.04 600.21 " *ImageableArea Folio: "16 10.2 579.28 922 " *ImageableArea Executive: "16 10.2 509.76 743.13 " *ImageableArea Comm10/Comm #10 Envelope: "16 12 279 678 " *ImageableArea Monarch/Monarch Envelope: "16 12 265.2 534.33 " *ImageableArea DL/DL Envelope: "16 10.2 295.64 618.3 " *ImageableArea C5/C5 Envelope: "16 10.2 452 641.36 " *?ImageableArea: " save /cvp { ( ) cvs print ( ) print } bind def /upperright {10000 mul floor 10000 div} bind def /lowerleft {10000 mul ceiling 10000 div} bind def newpath clippath pathbbox 4 -2 roll exch 2 {lowerleft cvp} repeat exch 2 {upperright cvp} repeat flush restore " *End *% These provide the physical dimensions of the paper (by keyword) *DefaultPaperDimension: Unknown *PaperDimension Letter: "612 792" *PaperDimension Legal: "612 1008" *PaperDimension Tabloid/Ledger: "792 1224" *PaperDimension A3: "842 1191" *PaperDimension A4: "595 842" *PaperDimension A5: "420 595" *PaperDimension B4: "729 1032" *PaperDimension B5: "516 729" *PaperDimension Invoice/Statement: "396 612" *PaperDimension Folio: "595 936" *PaperDimension Executive: "522 756" *PaperDimension Comm10/Comm #10 Envelope: "297 684" *PaperDimension Monarch/Monarch Envelope: "279 540" *PaperDimension DL/DL Envelope: "312 624" *PaperDimension C5/C5 Envelope: "459 649" *RequiresPageRegion Multi-MediaFeeder: True *OpenUI *ManualFeed/Manual Feed: Boolean *OrderDependency: 20 AnySetup *ManualFeed *DefaultManualFeed: False *ManualFeed True: "<</ManualFeed true>> setpagedevice" *ManualFeed False: "<</ManualFeed false>> setpagedevice" *?ManualFeed: " save currentpagedevice /ManualFeed get {(True)}{(False)}ifelse = flush restore " *End *CloseUI: *ManualFeed *OpenUI *InputSlot: PickOne *OrderDependency: 20 AnySetup *InputSlot *DefaultInputSlot: Tray1 *InputSlot Tray1/Tray 1/Upper: " currentpagedevice /InputAttributes get 0 get dup null eq {pop} { dup /InputAttributes 1 dict dup /Priority [0] put put setpagedevice } ifelse " *End *InputSlot Tray2/Tray 2: " currentpagedevice /InputAttributes get 1 get dup null eq {pop} { dup /InputAttributes 1 dict dup /Priority [1] put put setpagedevice } ifelse " *End *InputSlot Tray3/Tray 3: " currentpagedevice /InputAttributes get 2 get dup null eq {pop} { dup /InputAttributes 1 dict dup /Priority [2] put put setpagedevice } ifelse " *End *InputSlot Multi-MediaFeeder/Multi-Media Feeder: " currentpagedevice /InputAttributes get 3 get dup null eq {pop} { dup /InputAttributes 1 dict dup /Priority [3] put put setpagedevice } ifelse " *End *%=====================(Use these when make wpd)=============================== *%=====================InputSlot MixedBin/Mixed Bin Printing: " " *%============================End============================================== *?InputSlot: " save 4 dict dup /0 (Tray1) put dup /1 (Tray2) put dup /2 (Tray3) put dup /3 (Multi-MediaFeeder) put currentpagedevice /InputAttributes get dup /Priority known { /Priority get 0 get ( ) cvs cvn get } { dup length 1 eq { {pop} forall ( ) cvs cvn get } { pop pop (Unknown) } ifelse } ifelse = flush restore " *End *CloseUI: *InputSlot *PageStackOrder Front: Reverse *PageStackOrder Upper: Normal *OpenUI *TraySwitch: Boolean *OrderDependency: 50 AnySetup *TraySwitch *DefaultTraySwitch: False *TraySwitch True: "1 dict dup /TraySwitch true put setpagedevice" *TraySwitch False: "1 dict dup /TraySwitch false put setpagedevice" *?TraySwitch: " save currentpagedevice /TraySwitch get {(True)}{(False)}ifelse = flush restore " *End *CloseUI: *TraySwitch *% Font Information ===================== *DefaultFont: Courier *Font AvantGarde-Book: Standard "(001.002)" Standard ROM *Font AvantGarde-BookOblique: Standard "(001.002)" Standard ROM *Font AvantGarde-Demi: Standard "(001.003)" Standard ROM *Font AvantGarde-DemiOblique: Standard "(001.003)" Standard ROM *Font Bookman-Demi: Standard "(001.003)" Standard ROM *Font Bookman-DemiItalic: Standard "(001.003)" Standard ROM *Font Bookman-Light: Standard "(001.003)" Standard ROM *Font Bookman-LightItalic: Standard "(001.003)" Standard ROM *Font Courier: Standard "(002.004)" Standard ROM *Font Courier-Bold: Standard "(002.004)" Standard ROM *Font Courier-BoldOblique: Standard "(002.004)" Standard ROM *Font Courier-Oblique: Standard "(002.004)" Standard ROM *Font Helvetica: Standard "(001.006)" Standard ROM *Font Helvetica-Bold: Standard "(001.007)" Standard ROM *Font Helvetica-BoldOblique: Standard "(001.007)" Standard ROM *Font Helvetica-Narrow: Standard "(001.006)" Standard ROM *Font Helvetica-Narrow-Bold: Standard "(001.007)" Standard ROM *Font Helvetica-Narrow-BoldOblique: Standard "(001.007)" Standard ROM *Font Helvetica-Narrow-Oblique: Standard "(001.006)" Standard ROM *Font Helvetica-Oblique: Standard "(001.006)" Standard ROM *Font NewCenturySchlbk-Bold: Standard "(001.008)" Standard ROM *Font NewCenturySchlbk-BoldItalic: Standard "(001.006)" Standard ROM *Font NewCenturySchlbk-Italic: Standard "(001.005)" Standard ROM *Font NewCenturySchlbk-Roman: Standard "(001.006)" Standard ROM *Font Palatino-Bold: Standard "(001.005)" Standard ROM *Font Palatino-BoldItalic: Standard "(001.005)" Standard ROM *Font Palatino-Italic: Standard "(001.005)" Standard ROM *Font Palatino-Roman: Standard "(001.005)" Standard ROM *Font Symbol: Special "(001.007)" Special ROM *Font Times-Bold: Standard "(001.007)" Standard ROM *Font Times-BoldItalic: Standard "(001.009)" Standard ROM *Font Times-Italic: Standard "(001.007)" Standard ROM *Font Times-Roman: Standard "(001.007)" Standard ROM *Font ZapfChancery-MediumItalic: Standard "(001.006)" Standard ROM *Font ZapfDingbats: Special "(001.004)" Special ROM *?FontQuery: " save { count 1 gt { exch dup 127 string cvs (/) print print (:) print /Font resourcestatus {pop pop (Yes)} {(No)} ifelse = } { exit } ifelse } bind loop (*) = flush restore " *End *?FontList: " save (*) {cvn ==} 128 string /Font resourceforall (*) = flush restore " *End *% Printer Messages (verbatim from printer): *Message: "%%[ exitserver: permanent state may be changed ]%%" *Message: "%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%" *Message: "\FontName\ not found, using Courier" *% Status (format: %%[ status: <one of these> ] %%) *Status: "idle" *Status: "busy" *Status: "waiting" *Status: "printing" *Status: "warming up" *Status: "initializing" *Status: "idle" *Status: "holding" *Status: "busy" *Status: "waiting" *Status: "PrinterError: cover open" *Status: "PrinterError: warming up" *Status: "PrinterError: toner is low" *Status: "PrinterError: paper jam" *Status: "PrinterError: out of paper" *Status: "PrinterError: service call" *Status: "PrinterError: Engine is off line" *Status: "PrinterError: Engine is not responding" *Status: "PrinterError: Unknown problem occurred" *Status: "PrinterError: Manual feed page not requested" *Status: "Printer error: waiting for manual feed" *% Input Sources (format: %%[ status: <stat>; source: <one of these> ]%% ) *Source: "Serial" *Source: "SerialB" *Source: "LocalTalk" *Source: "Parallel" *Source: "other" *% Printer Error (format: %%[ PrinterError: <one of these> ]%%) *PrinterError: "cover open" *PrinterError: "warming up" *PrinterError: "toner is low" *PrinterError: "paper jam" *PrinterError: "out of paper" *PrinterError: "service call" *PrinterError: "Engine is off line" *PrinterError: "Engine is not responding" *PrinterError: "Unknown problem occurred" *PrinterError: "Manual feed page not requested" *PrinterError: "waiting for manual feed" *%DeviceAdjustMatrix: "[1 0 0 1 0 0]" *% Color Separation Information ===================== *DefaultColorSep: ProcessBlack.71lpi.400dpi/ 71 lpi / 400 dpi *InkName: ProcessBlack/Process Black *InkName: CustomColor/Custom Color *InkName: ProcessCyan/Process Cyan *InkName: ProcessMagenta/Process Magenta *InkName: ProcessYellow/Process Yellow *% For 60 lpi / 300 dpi =============================== *ColorSepScreenAngle ProcessBlack.60lpi.300dpi/60 lpi / 300 dpi: "45" *ColorSepScreenAngle CustomColor.60lpi.300dpi/60 lpi / 300 dpi: "45" *ColorSepScreenAngle ProcessCyan.60lpi.300dpi/60 lpi / 300 dpi: "15" *ColorSepScreenAngle ProcessMagenta.60lpi.300dpi/60 lpi / 300 dpi: "75" *ColorSepScreenAngle ProcessYellow.60lpi.300dpi/60 lpi / 300 dpi: "0" *ColorSepScreenFreq ProcessBlack.60lpi.300dpi/60 lpi / 300 dpi: "60" *ColorSepScreenFreq CustomColor.60lpi.300dpi/60 lpi / 300 dpi: "60" *ColorSepScreenFreq ProcessCyan.60lpi.300dpi/60 lpi / 300 dpi: "60" *ColorSepScreenFreq ProcessMagenta.60lpi.300dpi/60 lpi / 300 dpi: "60" *ColorSepScreenFreq ProcessYellow.60lpi.300dpi/60 lpi / 300 dpi: "60" *% For 53 lpi / 300 dpi =============================== *ColorSepScreenAngle ProcessBlack.53lpi.300dpi/53 lpi / 300 dpi: "45.0" *ColorSepScreenAngle CustomColor.53lpi.300dpi/53 lpi / 300 dpi: "45.0" *ColorSepScreenAngle ProcessCyan.53lpi.300dpi/53 lpi / 300 dpi: "71.5651" *ColorSepScreenAngle ProcessMagenta.53lpi.300dpi/53 lpi / 300 dpi: "18.4349" *ColorSepScreenAngle ProcessYellow.53lpi.300dpi/53 lpi / 300 dpi: "0.0" *ColorSepScreenFreq ProcessBlack.53lpi.300dpi/53 lpi / 300 dpi: "53.033" *ColorSepScreenFreq CustomColor.53lpi.300dpi/53 lpi / 300 dpi: "53.033" *ColorSepScreenFreq ProcessCyan.53lpi.300dpi/53 lpi / 300 dpi: "47.4342" *ColorSepScreenFreq ProcessMagenta.53lpi.300dpi/53 lpi / 300 dpi: "47.4342" *ColorSepScreenFreq ProcessYellow.53lpi.300dpi/53 lpi / 300 dpi: "50.0" *% For 71 lpi / 400 dpi =============================== *ColorSepScreenAngle ProcessBlack.71lpi.400dpi/71 lpi / 400 dpi: "45.0" *ColorSepScreenAngle CustomColor.71lpi.400dpi/71 lpi / 400 dpi: "45.0" *ColorSepScreenAngle ProcessCyan.71lpi.400dpi/71 lpi / 400 dpi: "71.5651" *ColorSepScreenAngle ProcessMagenta.71lpi.400dpi/71 lpi / 400 dpi: "18.4349" *ColorSepScreenAngle ProcessYellow.71lpi.400dpi/71 lpi / 400 dpi: "0.0" *ColorSepScreenFreq ProcessBlack.71lpi.400dpi/71 lpi / 400 dpi: "70.7107" *ColorSepScreenFreq CustomColor.71lpi.400dpi/71 lpi / 400 dpi: "70.7107" *ColorSepScreenFreq ProcessCyan.71lpi.400dpi/71 lpi / 400 dpi: "63.2456" *ColorSepScreenFreq ProcessMagenta.71lpi.400dpi/71 lpi / 400 dpi: "63.2456" *ColorSepScreenFreq ProcessYellow.71lpi.400dpi/71 lpi / 400 dpi: "66.6667" *% For 47 lpi / 400 dpi =============================== *ColorSepScreenAngle ProcessBlack.47lpi.400dpi/47 lpi / 400 dpi: "45.0" *ColorSepScreenAngle CustomColor.47lpi.400dpi/47 lpi / 400 dpi: "45.0" *ColorSepScreenAngle ProcessCyan.47lpi.400dpi/47 lpi / 400 dpi: "71.5651" *ColorSepScreenAngle ProcessMagenta.47lpi.400dpi/47 lpi / 400 dpi: "18.4349" *ColorSepScreenAngle ProcessYellow.47lpi.400dpi/47 lpi / 400 dpi: "0.0" *ColorSepScreenFreq ProcessBlack.47lpi.400dpi/47 lpi / 400 dpi: "47.1405" *ColorSepScreenFreq CustomColor.47lpi.400dpi/47 lpi / 400 dpi: "47.1405" *ColorSepScreenFreq ProcessCyan.47lpi.400dpi/47 lpi / 400 dpi: "42.1637" *ColorSepScreenFreq ProcessMagenta.47lpi.400dpi/47 lpi / 400 dpi: "42.1637" *ColorSepScreenFreq ProcessYellow.47lpi.400dpi/47 lpi / 400 dpi: "44.4444" *% 4/25/94 Maxim Sorkin *% Fixed default color separation - made it one of *% defined values (71lpi/400dpi) *% end of PPD file for LZR 1560
{ "pile_set_name": "Github" }
<?php /** * Phanbook : Delightfully simple forum software * * Licensed under The BSD License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * * @link http://phanbook.com Phanbook Project * @since 1.0.0 * @license https://github.com/phanbook/phanbook/blob/master/LICENSE.txt */ namespace Phanbook\Common\Library\Providers; use Phanbook\Auth\Auth; /** * \Phanbook\Common\Library\Providers\AuthServiceProvider * * @package Phanbook\Common\Library\Providers */ class AuthServiceProvider extends AbstractServiceProvider { /** * The Service name. * @var string */ protected $serviceName = 'auth'; /** * {@inheritdoc} * * @return void */ public function register() { $this->di->setShared( $this->serviceName, function () { $auth = new Auth(); $auth->setDI($this); $auth->setEventsManager($this->getShared('eventsManager')); return $auth; } ); } }
{ "pile_set_name": "Github" }