repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
Lucsparidans/GGP-Project
src/main/java/csironi/ggp/course/gamers/CSequentialGamer.java
<gh_stars>0 /** * */ package csironi.ggp.course.gamers; import java.util.List; import org.ggp.base.player.gamer.event.GamerSelectedMoveEvent; import org.ggp.base.player.gamer.statemachine.sample.SampleGamer; import org.ggp.base.util.statemachine.abstractsm.AbstractStateMachine; import org.ggp.base.util.statemachine.exceptions.GoalDefinitionException; import org.ggp.base.util.statemachine.exceptions.MoveDefinitionException; import org.ggp.base.util.statemachine.exceptions.StateMachineException; import org.ggp.base.util.statemachine.exceptions.TransitionDefinitionException; import org.ggp.base.util.statemachine.structure.Move; import org.ggp.base.util.statemachine.structure.explicit.ExplicitMove; import csironi.ggp.course.algorithms.MinMaxSequence; /** * Sequential planning gamer realized for the GGP course. * This gamer during the start clock searches the whole search space and builds a plan with all the legal actions * that lead to the best treminal state (i.e. the one with highest utility). Then for each game step returns the * corresponding action in the computed plan. * * NOTE: this player works for single-player games. If used to play multi-player games the uncertainty about other * players' actions might cause the plan to be inconsistent after the first step. This is because the plan is based on * certain opponents' actions that might be different from what the opponents actually chose to do. * * NOTE: this gamer doesn't manage time limits, thus if used for games with a big search space it might exceed time limits * when computing the sequence of actions and the game manager will assign it a random chosen action for every move not * returned in time. * * @author C.Sironi * */ public class CSequentialGamer extends SampleGamer { /** * Sequence of the best moves to play for each step of the game. */ private List<ExplicitMove> bestPlan; /* * (non-Javadoc) * @see org.ggp.base.player.gamer.statemachine.sample.SampleGamer#stateMachineMetaGame(long) */ @Override public void stateMachineMetaGame(long timeout) throws TransitionDefinitionException, MoveDefinitionException, GoalDefinitionException, StateMachineException { // Get the state machine AbstractStateMachine stateMachine = getStateMachine(); // Search the bast sequence of action to play during the whole game MinMaxSequence search = new MinMaxSequence(true, "C:\\Users\\c.sironi\\BITBUCKET REPOS\\GGP-Base\\LOG\\SequentialLog.txt", stateMachine.getActualStateMachine()); this.bestPlan = search.bestmove(stateMachine.convertToExplicitMachineState(getCurrentState()), stateMachine.convertToExplicitRole(getRole())); } /* (non-Javadoc) * @see org.ggp.base.player.gamer.statemachine.StateMachineGamer#stateMachineSelectMove(long) */ @Override public ExplicitMove stateMachineSelectMove(long timeout) throws TransitionDefinitionException, MoveDefinitionException, GoalDefinitionException, StateMachineException { // We get the current start time long start = System.currentTimeMillis(); // Get state machine and list of available legal moves for the player AbstractStateMachine stateMachine = getStateMachine(); List<Move> moves = stateMachine.getLegalMoves(getCurrentState(), getRole()); // Return and remove the best move for the current step from the sequence of best moves ExplicitMove selection = bestPlan.remove(0); // We get the end time // It is mandatory that stop<timeout long stop = System.currentTimeMillis(); notifyObservers(new GamerSelectedMoveEvent(stateMachine.convertToExplicitMoves(moves), selection, stop - start)); return selection; } }
teamsnap/jemal
server/data/schema/EmailPartial.js
const { gql } = require('apollo-server-express'); const EmailPartial = gql` extend type Query { getCurrentEmailPartial(_id: String!): EmailPartial getAllEmailPartials(_id: String!, offset: Int, limit: Int): [EmailPartial] getEmailPartialsCount(_id: String!): Count downloadAllPartials: [EmailPartial] } type EmailPartial { _id: String! title: String! createdAt: String createdById: String updatedAt: String updatedById: String folderPath: String mjmlSource: String organizationId: String } extend type Mutation { createEmailPartial( title: String! mjmlSource: String organizationId: String! folderPath: String ): EmailPartial editEmailPartial( _id: String! title: String! mjmlSource: String! organizationId: String! folderPath: String ): EmailPartial deleteEmailPartial(_id: String!): EmailPartial duplicateEmailPartial(_id: String!): EmailPartial } `; module.exports = EmailPartial;
trendspotter/hid_app2
src/app/components/duplicate/DuplicatesController.js
(function () { 'use strict'; angular .module('app.duplicate') .controller('DuplicatesController', DuplicatesController); DuplicatesController.$inject = ['$exceptionHandler', '$scope', '$routeParams', 'alertService', 'Duplicate', 'gettextCatalog']; function DuplicatesController ($exceptionHandler, $scope, $routeParams, alertService, Duplicate, gettextCatalog) { var thisScope = $scope; thisScope.pagination = { currentPage: 1, itemsPerPage: 10, totalItems: 0 }; var setTotalDuplicates = function (duplicates, headers) { thisScope.pagination.totalItems = headers()["x-total-count"]; }; function getDuplicates (offset) { var params = { sort: 'name', limit: thisScope.pagination.itemsPerPage }; params.offset = offset || 0; Duplicate.query(params, function (duplicates, headers) { setTotalDuplicates(duplicates, headers); thisScope.duplicates = duplicates; }); } getDuplicates(); thisScope.pageChanged = function () { var offset = thisScope.pagination.itemsPerPage * (thisScope.pagination.currentPage - 1); getDuplicates(offset); }; thisScope.deleteDuplicate = function (duplicate, user) { duplicate.delete(user, function () { alertService.add('success', gettextCatalog.getString('Duplicate successfully removed')); }, function (error) { $exceptionHandler(error, 'Removing duplicate'); }); }; } })();
billchenxujia/springbootDemo
effectiveJava/src/main/java/effectiveJava/chapter9/item62/AvoidStrings.java
package effectiveJava.chapter9.item62; import java.util.Arrays; import java.util.List; /** * * 类 @code(AvoidStrings) * * <p> * 功能简介: * <p> * 总而言之,当存在或可以编写更好的数据类型时,避免将对象表示为字符串的自然倾向。 使用不当,字符串比其他类型更麻烦,更灵活更差,速度更慢,更容易出错。 * 字符串通常被滥用的类型包括基本类型,枚举类型和聚合类型。 * <p> * 创建时间:2019年5月16日 * * @author chenxj */ public class AvoidStrings { public static void main(String[] args) { String s = "bill_ss_bs_cd"; String[] temps = s.split("_"); List<String> lists = Arrays.asList(temps); System.out.println(lists.get(lists.size()-1)); } }
Akrivus/MoeMagic
src/main/java/block_party/scene/data/Counters.java
<reponame>Akrivus/MoeMagic<filename>src/main/java/block_party/scene/data/Counters.java package block_party.scene.data; import net.minecraft.nbt.CompoundTag; public class Counters extends AbstractVariables<Integer> { public Counters(CompoundTag compound) { super(compound); } public Counters() { super(); } @Override public String getKey() { return "Counters"; } @Override public Integer read(CompoundTag compound) { return compound.getInt("Value"); } @Override public CompoundTag write(CompoundTag compound, Integer value) { compound.putInt("Value", value); return compound; } public void increment(String key, int value) { this.set(key, this.get(key) + value); } public void decrement(String key, int value) { this.set(key, this.get(key) - value); } }
EXHades/v8
src/snapshot/snapshot-utils.cc
// Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/snapshot/snapshot-utils.h" #include "src/base/sanitizer/msan.h" #include "third_party/zlib/zlib.h" namespace v8 { namespace internal { uint32_t Checksum(base::Vector<const byte> payload) { #ifdef MEMORY_SANITIZER // Computing the checksum includes padding bytes for objects like strings. // Mark every object as initialized in the code serializer. MSAN_MEMORY_IS_INITIALIZED(payload.begin(), payload.length()); #endif // MEMORY_SANITIZER // Priming the adler32 call so it can see what CPU features are available. adler32(0, nullptr, 0); return static_cast<uint32_t>(adler32(0, payload.begin(), payload.length())); } } // namespace internal } // namespace v8
AgeOfLearning/material-design-icons
action/icon-sharp-picture-in-picture-element/template.js
<reponame>AgeOfLearning/material-design-icons export default (context, html) => html` <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 7h-8v6h8V7zm4-4H1v17.98h22V3zm-2 16.01H3V4.98h18v14.03z"/></svg> `;
unwashed-and-dazed/visallo
core/core/src/main/java/org/visallo/core/model/notification/UserNotification.java
<gh_stars>1-10 package org.visallo.core.model.notification; import com.google.common.annotations.VisibleForTesting; import org.json.JSONObject; import java.util.*; public class UserNotification extends Notification { private String userId; private Date sentDate; private Integer expirationAgeAmount; private ExpirationAgeUnit expirationAgeUnit; private boolean markedRead; private boolean notified; @SuppressWarnings("UnusedDeclaration") protected UserNotification() { super(); } @VisibleForTesting public UserNotification( String userId, String title, String message, String actionEvent, JSONObject actionPayload, ExpirationAge expirationAge ) { this(userId, title, message, actionEvent, actionPayload, new Date(), expirationAge); } @VisibleForTesting public UserNotification( String userId, String title, String message, String actionEvent, JSONObject actionPayload, Date sentDate, ExpirationAge expirationAge ) { this(createRowKey(sentDate), userId, title, message, actionEvent, actionPayload, sentDate, expirationAge); } public UserNotification( String id, String userId, String title, String message, String actionEvent, JSONObject actionPayload, Date sentDate, ExpirationAge expirationAge ) { super(id, title, message, actionEvent, actionPayload); this.userId = userId; this.sentDate = sentDate; this.markedRead = false; this.notified = false; if (expirationAge != null) { this.expirationAgeAmount = expirationAge.getAmount(); this.expirationAgeUnit = expirationAge.getExpirationAgeUnit(); } } private static String createRowKey(Date date) { return Long.toString(date.getTime()) + ":" + UUID.randomUUID().toString(); } public String getUserId() { return userId; } public Date getSentDate() { return sentDate; } public ExpirationAge getExpirationAge() { if (expirationAgeUnit != null && expirationAgeAmount != null) { return new ExpirationAge(expirationAgeAmount, expirationAgeUnit); } return null; } public boolean isMarkedRead() { return markedRead; } public void setMarkedRead(boolean markedRead) { this.markedRead = markedRead; } public boolean isNotified() { return notified; } public void setNotified(boolean notified) { this.notified = notified; } public boolean isActive() { if (isMarkedRead()) { return false; } Date now = new Date(); Date expirationDate = getExpirationDate(); Date sentDate = getSentDate(); return sentDate.before(now) && (expirationDate == null || expirationDate.after(now)); } public Date getExpirationDate() { ExpirationAge age = getExpirationAge(); if (age == null) { return null; } Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("UTC")); cal.setTime(getSentDate()); cal.add(age.getExpirationAgeUnit().getCalendarUnit(), age.getAmount()); return cal.getTime(); } @Override protected String getType() { return "user"; } @Override public void populateJSONObject(JSONObject json) { json.put("userId", getUserId()); json.put("sentDate", getSentDate()); json.put("expirationAge", getExpirationAge()); json.put("markedRead", isMarkedRead()); json.put("notified", isNotified()); } @Override public String toString() { return "UserNotification{" + "userId='" + userId + '\'' + ", title=" + getTitle() + ", sentDate=" + sentDate + ", expirationAgeAmount=" + expirationAgeAmount + ", expirationAgeUnit=" + expirationAgeUnit + ", markedRead=" + markedRead + ", notified=" + notified + '}'; } }
hipstersmoothie/parse-commit-message
src/plugins/index.js
<reponame>hipstersmoothie/parse-commit-message import increment from './increment'; import mentions from './mentions'; export { increment, mentions };
asherry99/gozw
gen/types.go
package gen import ( "encoding/xml" "strconv" "strings" "github.com/reiver/go-stringcase" ) type ZwClasses struct { XMLName xml.Name `xml:"zw_classes"` BasicDevices []BasicDevice `xml:"bas_dev"` GenericDevices []GenericDevice `xml:"gen_dev"` CommandClasses []CommandClass `xml:"cmd_class"` } type BasicDevice struct { Name string `xml:"name,attr"` Key string `xml:"key,attr"` Help string `xml:"help,attr"` ReadOnly bool `xml:"read_only,attr"` Comment string `xml:"comment,attr"` } type GenericDevice struct { Name string `xml:"name,attr"` Key string `xml:"key,attr"` Help string `xml:"help,attr"` ReadOnly bool `xml:"read_only,attr"` Comment string `xml:"comment,attr"` SpecificDevices []SpecificDevice `xml:"spec_dev"` } type SpecificDevice struct { Name string `xml:"name,attr"` Key string `xml:"key,attr"` Help string `xml:"help,attr"` ReadOnly bool `xml:"read_only,attr"` Comment string `xml:"comment,attr"` } type CommandClass struct { Name string `xml:"name,attr"` Key string `xml:"key,attr"` Version int `xml:"version,attr"` Help string `xml:"help,attr"` Comment string `xml:"comment,attr"` Commands []Command `xml:"cmd"` Enabled bool `xml:"-"` } func (c CommandClass) GetBaseName() string { return strings.Replace(c.Name, "COMMAND_CLASS_", "", 1) } func (c CommandClass) GetConstName() string { name := c.GetBaseName() if c.Version > 1 { versionStr := strconv.Itoa(c.Version) name += "_V" + versionStr } return stringcase.ToPascalCase(name) } func (c CommandClass) GetDirName() string { ccname := stringcase.ToPropertyCase(c.GetBaseName()) if c.Version > 1 { versionStr := strconv.Itoa(c.Version) ccname += "-v" + versionStr } return ccname } func (c CommandClass) GetPackageName() string { ccname := stringcase.ToLowerCase(stringcase.ToPascalCase(c.GetBaseName())) if c.Version > 1 { versionStr := strconv.Itoa(c.Version) ccname += "v" + versionStr } return ccname } func (c CommandClass) CanGenerate() (can bool, reason string) { if len(c.Commands) == 0 { return false, "No commands" } if c.Name == "ZWAVE_CMD_CLASS" { return false, "Not an actual command class" } if c.Name == "COMMAND_CLASS_ZIP" { return false, "Not supported" } return true, "" } func (c CommandClass) CanGen() (can bool) { can, _ = c.CanGenerate() return } type Command struct { Name string `xml:"name,attr"` Key string `xml:"key,attr"` Type string `xml:"type,attr"` HashCode string Comment string `xml:"comment,attr"` Params []Param `xml:"param"` } func (c Command) GetBaseName(cc CommandClass) string { commandName := c.Name if strings.HasPrefix(strings.ToLower(commandName), "command_") && !strings.HasPrefix(strings.ToLower(commandName), "command_class_") { commandName = commandName[8:] } ccBaseName := cc.GetBaseName() if strings.HasPrefix(commandName, ccBaseName) { if len(commandName) > len(ccBaseName) { commandName = commandName[len(ccBaseName)+1:] } } return commandName } func (c Command) GetStructName(cc CommandClass) string { return stringcase.ToPascalCase(c.GetBaseName(cc)) } func (c Command) GetFileName(cc CommandClass) string { return stringcase.ToPropertyCase(c.GetBaseName(cc)) }
fpignalet/my-website-springreact
client1/src/test/java/com/core/RepoADBookTests.java
<filename>client1/src/test/java/com/core/RepoADBookTests.java package com.core; import com.core.data.IDBContactDAO; import com.core.data.impl.sql.DBAddressBook; import com.core.data.impl.sql.DBContact; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import java.util.List; @RunWith(SpringRunner.class) @SpringBootTest public class RepoADBookTests { @Autowired private IDBContactDAO userRepository; @Test public void saveTest() { final DBContact contact = new DBContact(); contact.setVorname(TESTVORNAME); contact.setNachname(TESTNACHNAME); contact.setEmailadresse(TESTEMAILADRESSE); userRepository.save(contact); Assert.assertNotNull(userRepository.findByNachname(TESTNACHNAME)); } @Test public void editTest() { final List<DBContact> items = userRepository.findByNachname(TESTNACHNAME); final DBAddressBook contacts = new DBAddressBook(items); final DBContact contact = contacts.get(0); contact.setNachname(NEWNACHNAME); userRepository.save(contact); Assert.assertNotNull(userRepository.findByVorname(TESTVORNAME)); Assert.assertNotNull(userRepository.findByNachname(NEWNACHNAME)); } @Test public void deleteTest() { final List<DBContact> items = userRepository.findByNachname(TESTNACHNAME); final DBAddressBook contacts = new DBAddressBook(items); final DBContact contact = contacts.get(0); userRepository.delete(contact); final List<DBContact> nothing = userRepository.findByNachname(TESTNACHNAME); Assert.assertNull(nothing); } private static final String TESTVORNAME = "TESTVORNAME"; private static final String NEWVORNAME = "NEWVORNAME"; private static final String TESTNACHNAME = "TESTNACHNAME"; private static final String NEWNACHNAME = "NEWNACHNAME"; private static final String TESTEMAILADRESSE = "TESTEMAILADRESSE"; }
andrewtarzia/stk
tests/molecular/molecules/molecule/fixtures/cof/square.py
<reponame>andrewtarzia/stk<filename>tests/molecular/molecules/molecule/fixtures/cof/square.py import pytest import stk from ...case_data import CaseData @pytest.fixture( scope='session', params=( lambda name: CaseData( molecule=stk.ConstructedMolecule( topology_graph=stk.cof.Square( building_blocks=( stk.BuildingBlock( smiles='BrC1=C(Br)[C+]=N1', functional_groups=[stk.BromoFactory()], ), stk.BuildingBlock( smiles='BrC1=C(Br)C(F)(Br)[C+]1Br', functional_groups=[stk.BromoFactory()], ), ), lattice_size=(2, 2, 1), ), ), smiles=( 'FC1(Br)C2=C(C3=C([C+]=N3)C3(F)C(=C(C4=C(Br)[C+]=N4)[C' '+]3Br)C3=C([C+]=N3)[C+]3C(C4=C(Br)[C+]=N4)=C(C4=C(Br)' '[C+]=N4)C3(F)C3=C(N=[C+]3)C3=C(C4=C(Br)[C+]=N4)C(F)(B' 'r)[C+]3C3=C2N=[C+]3)[C+]1Br' ), name=name, ), ), ) def cof_square(request) -> CaseData: return request.param( f'{request.fixturename}{request.param_index}', )
GaoGian/kalang
src/main/java/kalang/compiler/function/FunctionType.java
<gh_stars>1-10 package kalang.compiler.function; import kalang.compiler.ast.ClassNode; import kalang.compiler.core.ClassType; import kalang.compiler.core.NullableKind; import kalang.compiler.core.Type; import kalang.compiler.core.Types; import kalang.type.FunctionClasses; import javax.annotation.Nullable; /** * * @author <NAME> */ public class FunctionType extends ClassType { private Type[] parameterTypes; private Type returnType; public FunctionType(Type returnType, @Nullable Type[] parameterTypes, NullableKind nullable) { super(buildClassNode(parameterTypes), buildArgumentTypes(returnType, parameterTypes), nullable); this.returnType = returnType; this.parameterTypes = parameterTypes; } public Type[] getParameterTypes() { return parameterTypes; } public Type getReturnType() { return returnType; } @Override public boolean isAssignableFrom(Type type) { if (super.isAssignableFrom(type)) { return true; } if (!(type instanceof ClassType)) { return false; } ClassType classType = (ClassType) type; //TODO check nullable if (classType.equals(Types.requireClassType(Types.FUNCTION_CLASS_NAME))) { return true; } return false; } private static Type[] buildArgumentTypes(Type returnType, Type[] parameterTypes) { if (parameterTypes == null) { parameterTypes = new Type[0]; } int paramCount = parameterTypes.length; if (paramCount > FunctionClasses.CLASSES.length - 1) { throw new IllegalArgumentException(""); } Type[] types = new Type[paramCount + 1]; types[0] = returnType; for (int i = 1; i < types.length; i++) { types[i] = parameterTypes[i - 1]; } return types; } private static ClassNode buildClassNode(@Nullable Type[] parameterTypes) { int pcount = parameterTypes == null ? 0 : parameterTypes.length; if (pcount > FunctionClasses.CLASSES.length - 1) { throw new IllegalArgumentException(""); } return Types.requireClassType(FunctionClasses.CLASSES[pcount].getName()).getClassNode(); } }
AnthonyDiGirolamo/connectedhomeip
src/protocols/user_directed_commissioning/UDCClients.h
/* * * Copyright (c) 2021 Project CHIP 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. */ #pragma once #include "UDCClientState.h" #include <lib/core/CHIPError.h> #include <lib/support/CodeUtils.h> #include <system/TimeSource.h> namespace chip { namespace Protocols { namespace UserDirectedCommissioning { // UDC client state times out after 1 hour. This may need to be tweaked. constexpr const uint64_t kUDCClientTimeoutMs = 60 * 60 * 1000; /** * Handles a set of UDC Client Processing States. * * Intended for: * - ignoring/dropping duplicate UDC messages for the same instance * - tracking state of UDC work flow (see UDCClientProcessingState) * - timing out failed/declined UDC Clients */ template <size_t kMaxClientCount, Time::Source kTimeSource = Time::Source::kSystem> class UDCClients { public: /** * Allocates a new UDC client state object out of the internal resource pool. * * @param instanceName represents the UDS Client instance name * @param state [out] will contain the UDC Client state if one was available. May be null if no return value is desired. * * @note the newly created state will have an 'expiration' time set based on the current time source. * * @returns CHIP_NO_ERROR if state could be initialized. May fail if maximum UDC Client count * has been reached (with CHIP_ERROR_NO_MEMORY). */ CHECK_RETURN_VALUE CHIP_ERROR CreateNewUDCClientState(const char * instanceName, UDCClientState ** state) { const uint64_t currentTime = mTimeSource.GetCurrentMonotonicTimeMs(); CHIP_ERROR err = CHIP_ERROR_NO_MEMORY; if (state) { *state = nullptr; } for (auto & stateiter : mStates) { if (!stateiter.IsInitialized(currentTime)) { stateiter.SetInstanceName(instanceName); stateiter.SetExpirationTimeMs(currentTime + kUDCClientTimeoutMs); stateiter.SetUDCClientProcessingState(UDCClientProcessingState::kDiscoveringNode); if (state) { *state = &stateiter; } err = CHIP_NO_ERROR; break; } } return err; } /** * Get a UDC Client state given a Peer address. * * @param address is the connection to find (based on address) * * @return the state found, nullptr if not found */ CHECK_RETURN_VALUE UDCClientState * GetUDCClientState(size_t index) { if (index >= kMaxClientCount) { return nullptr; } const uint64_t currentTime = mTimeSource.GetCurrentMonotonicTimeMs(); UDCClientState state = mStates[index]; if (!state.IsInitialized(currentTime)) { return nullptr; } return &mStates[index]; } /** * Get a UDC Client state given a Peer address. * * @param address is the connection to find (based on address) * * @return the state found, nullptr if not found */ CHECK_RETURN_VALUE UDCClientState * FindUDCClientState(const PeerAddress & address) { const uint64_t currentTime = mTimeSource.GetCurrentMonotonicTimeMs(); UDCClientState * state = nullptr; for (auto & stateiter : mStates) { if (!stateiter.IsInitialized(currentTime)) { continue; } if (stateiter.GetPeerAddress() == address) { state = &stateiter; break; } } return state; } /** * Get a UDC Client state given an instance name. * * @param instanceName is the instance name to find (based upon instance name) * * @return the state found, nullptr if not found */ CHECK_RETURN_VALUE UDCClientState * FindUDCClientState(const char * instanceName) { const uint64_t currentTime = mTimeSource.GetCurrentMonotonicTimeMs(); UDCClientState * state = nullptr; for (auto & stateiter : mStates) { if (!stateiter.IsInitialized(currentTime)) { continue; } // TODO: check length of instanceName if (strncmp(stateiter.GetInstanceName(), instanceName, Dnssd::Commissionable::kInstanceNameMaxLength + 1) == 0) { state = &stateiter; break; } } return state; } // Reset all states to kNotInitialized void ResetUDCClientStates() { for (auto & stateiter : mStates) { stateiter.Reset(); } } /// Convenience method to mark a UDC Client state as active (non-expired) void MarkUDCClientActive(UDCClientState * state) { state->SetExpirationTimeMs(mTimeSource.GetCurrentMonotonicTimeMs() + kUDCClientTimeoutMs); } private: Time::TimeSource<kTimeSource> mTimeSource; UDCClientState mStates[kMaxClientCount]; }; } // namespace UserDirectedCommissioning } // namespace Protocols } // namespace chip
raspygold/advent_of_code
2015/4/solution-1.rb
#!/usr/bin/env ruby input = "ckczppom" require "digest" num = -1 loop do num += 1 hash = Digest::MD5.hexdigest("#{input}#{num}") break if hash[0...5] == "0"*5 end puts num # => 117946
network-for-good/nfg_ui
lib/nfg_ui/components/patterns/tile.rb
# frozen_string_literal: true module NfgUi module Components module Patterns # Tile doc coming soon class Tile < NfgUi::Components::Base include Bootstrap::Utilities::Collapsible include NfgUi::Components::Utilities::Iconable include NfgUi::Components::Utilities::Titleable include NfgUi::Components::Traits::Collapse def heading options.fetch(:heading, nil) end def button options.fetch(:button, nil) end def href options.fetch(:href, nil) end def component_family :tile end def render_in_body options.fetch(:render_in_body, true) end def render super do if render_in_body if title.present? concat(NfgUi::Components::Patterns::TileHeader.new({ title: title, subtitle: subtitle, button: button, href: href, icon: icon, collapsible: collapsible, collapsed: collapsed, collapse: ("#collapse_#{id}" if collapsible) }, view_context).render) end if collapsible concat(NfgUi::Components::Patterns::Collapse.new({ id: "collapse_#{id}", collapsed: collapsed }, view_context).render { NfgUi::Components::Patterns::TileBody.new({ heading: heading }, view_context).render do (block_given? ? yield : body) end }) else concat(NfgUi::Components::Patterns::TileBody.new({ heading: heading }, view_context).render { (block_given? ? yield : body) }) end else (block_given? ? yield : body) end end end def subtitle options.fetch(:subtitle, nil) end private def non_html_attribute_options super.push(:heading, :render_in_body, :subtitle, :button, :href) end end end end end
WeihanLi/runtime
src/mono/mono/eglib/test/sizes.c
<gh_stars>10-100 /* * Tests to ensure that our type definitions are correct * * These depend on -Werror, -Wall being set to catch the build error. */ #include <stdio.h> #ifndef _MSC_VER #include <stdint.h> #endif #include <string.h> #include <glib.h> #include "test.h" static RESULT test_formats (void) { char buffer [1024]; gsize a = 1; sprintf (buffer, "%" G_GSIZE_FORMAT, a); return NULL; } static RESULT test_ptrconv (void) { int iv, iv2; unsigned int uv, uv2; gpointer ptr; iv = G_MAXINT32; ptr = GINT_TO_POINTER (iv); iv2 = GPOINTER_TO_INT (ptr); if (iv != iv2) return FAILED ("int to pointer and back conversions fail %d != %d", iv, iv2); iv = G_MININT32; ptr = GINT_TO_POINTER (iv); iv2 = GPOINTER_TO_INT (ptr); if (iv != iv2) return FAILED ("int to pointer and back conversions fail %d != %d", iv, iv2); iv = 1; ptr = GINT_TO_POINTER (iv); iv2 = GPOINTER_TO_INT (ptr); if (iv != iv2) return FAILED ("int to pointer and back conversions fail %d != %d", iv, iv2); iv = -1; ptr = GINT_TO_POINTER (iv); iv2 = GPOINTER_TO_INT (ptr); if (iv != iv2) return FAILED ("int to pointer and back conversions fail %d != %d", iv, iv2); iv = 0; ptr = GINT_TO_POINTER (iv); iv2 = GPOINTER_TO_INT (ptr); if (iv != iv2) return FAILED ("int to pointer and back conversions fail %d != %d", iv, iv2); uv = 0; ptr = GUINT_TO_POINTER (uv); uv2 = GPOINTER_TO_UINT (ptr); if (uv != uv2) return FAILED ("uint to pointer and back conversions fail %u != %d", uv, uv2); uv = 1; ptr = GUINT_TO_POINTER (uv); uv2 = GPOINTER_TO_UINT (ptr); if (uv != uv2) return FAILED ("uint to pointer and back conversions fail %u != %d", uv, uv2); uv = UINT32_MAX; ptr = GUINT_TO_POINTER (uv); uv2 = GPOINTER_TO_UINT (ptr); if (uv != uv2) return FAILED ("uint to pointer and back conversions fail %u != %d", uv, uv2); return NULL; } typedef struct { int a; int b; } my_struct; static RESULT test_offset (void) { if (G_STRUCT_OFFSET (my_struct, a) != 0) return FAILED ("offset of a is not zero"); if (G_STRUCT_OFFSET (my_struct, b) != 4 && G_STRUCT_OFFSET (my_struct, b) != 8) return FAILED ("offset of b is 4 or 8, macro might be busted"); return OK; } static Test size_tests [] = { {"formats", test_formats}, {"ptrconv", test_ptrconv}, {"g_struct_offset", test_offset}, {NULL, NULL} }; DEFINE_TEST_GROUP_INIT(size_tests_init, size_tests)
shin-kinoshita/dbflute-core
dbflute-runtime/src/main/java/org/dbflute/optional/OptionalEntity.java
<filename>dbflute-runtime/src/main/java/org/dbflute/optional/OptionalEntity.java /* * Copyright 2014-2018 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 * * 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.dbflute.optional; import org.dbflute.exception.EntityAlreadyDeletedException; import org.dbflute.exception.NonSetupSelectRelationAccessException; import org.dbflute.helper.message.ExceptionMessageBuilder; /** * The entity as optional object, which has entity instance in it. <br> * You can handle null value by this methods without direct null handling. * <pre> * <span style="color: #3F7E5E">// if the data always exists as your business rule</span> * <span style="color: #0000C0">memberBhv</span>.<span style="color: #994747">selectEntity</span>(<span style="color: #553000">cb</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { * <span style="color: #553000">cb</span>.setupSelect_MemberStatus(); * <span style="color: #553000">cb</span>.query().setMemberId_Equal(<span style="color: #2A00FF">1</span>); * }).<span style="color: #CC4747">alwaysPresent</span>(<span style="color: #553000">member</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { * <span style="color: #3F7E5E">// called if present, or exception</span> * ... = <span style="color: #553000">member</span>.getMemberName(); * }); * * <span style="color: #3F7E5E">// if it might be no data, ...</span> * <span style="color: #0000C0">memberBhv</span>.<span style="color: #994747">selectEntity</span>(<span style="color: #553000">cb</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> <span style="color: #553000">cb</span>.acceptPK(<span style="color: #2A00FF">1</span>)).<span style="color: #CC4747">ifPresent</span>(<span style="color: #553000">member</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { * <span style="color: #3F7E5E">// called if present</span> * ... = <span style="color: #553000">member</span>.getMemberName(); * }).<span style="color: #994747">orElse</span>(() <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { * <span style="color: #3F7E5E">// called if not present</span> * }); * </pre> * @param <ENTITY> The type of entity. * @author jflute * @since 1.0.5F (2014/05/05 Monday) */ public class OptionalEntity<ENTITY> extends BaseOptional<ENTITY> { // =================================================================================== // Definition // ========== private static final long serialVersionUID = 1L; // basically for relation entity's optional protected static final OptionalEntity<Object> EMPTY_INSTANCE; static { EMPTY_INSTANCE = new OptionalEntity<Object>(null, new SerializableOptionalThingExceptionThrower() { private static final long serialVersionUID = 1L; public void throwNotFoundException() { String msg = "The empty optional so the value is null."; throw new EntityAlreadyDeletedException(msg); } }); } protected static final OptionalThingExceptionThrower NOWAY_THROWER = new SerializableOptionalThingExceptionThrower() { private static final long serialVersionUID = 1L; @Override public void throwNotFoundException() { throw new EntityAlreadyDeletedException("no way"); } }; // =================================================================================== // Constructor // =========== /** * @param entity The wrapped instance of entity. (NullAllowed) * @param thrower The exception thrower when illegal access. (NotNull) */ public OptionalEntity(ENTITY entity, OptionalThingExceptionThrower thrower) { // basically called by DBFlute super(entity, thrower); } /** * @param <EMPTY> The type of empty optional entity. * @return The fixed instance as empty. (NotNull) */ @SuppressWarnings("unchecked") public static <EMPTY> OptionalEntity<EMPTY> empty() { return (OptionalEntity<EMPTY>) EMPTY_INSTANCE; } /** * @param <ENTITY> The type of entity wrapped in the optional entity. * @param entity The wrapped entity for the optional object. (NotNull) * @return The new-created instance as existing optional object. (NotNull) */ public static <ENTITY> OptionalEntity<ENTITY> of(ENTITY entity) { if (entity == null) { String msg = "The argument 'entity' should not be null."; throw new IllegalArgumentException(msg); } return new OptionalEntity<ENTITY>(entity, NOWAY_THROWER); } /** * @param <ENTITY> The type of entity for the optional type. * @param entity The wrapped instance or entity. (NullAllowed) * @param noArgLambda The exception thrower when illegal access. (NotNull) * @return The new-created instance as existing or empty optional object. (NotNull) */ public static <ENTITY> OptionalEntity<ENTITY> ofNullable(ENTITY entity, OptionalThingExceptionThrower noArgLambda) { if (entity != null) { return of(entity); } else { return new OptionalEntity<ENTITY>(entity, noArgLambda); } } /** * @param <EMPTY> The type of empty optional entity. * @param entity The base entity of the relation for exception message. (NotNull) * @param relation The property name of the relation for exception message. (NotNull) * @return The new-created instance as existing or empty optional object. (NotNull) */ public static <EMPTY> OptionalEntity<EMPTY> relationEmpty(final Object entity, final String relation) { if (entity == null) { String msg = "The argument 'entity' should not be null."; throw new IllegalArgumentException(msg); } if (relation == null) { String msg = "The argument 'relation' should not be null."; throw new IllegalArgumentException(msg); } return new OptionalEntity<EMPTY>(null, new OptionalThingExceptionThrower() { public void throwNotFoundException() { throwNonSetupSelectRelationAccessException(entity, relation); } }); } protected static void throwNonSetupSelectRelationAccessException(Object entity, String relation) { final ExceptionMessageBuilder br = new ExceptionMessageBuilder(); br.addNotice("Non-setupSelect relation was accessed."); br.addItem("Advice"); br.addElement("Confirm your access to the relation."); br.addElement("Call setupSelect or fix your access."); br.addElement("For example:"); br.addElement(" (x):"); br.addElement(" memberBhv.selectList(cb -> {"); br.addElement(" cb.setupSelect_MemberStatus();"); br.addElement(" }).forEach(member -> {"); br.addElement(" ... = member.getMemberSecurityAsOne().alwaysPresent(...); // *NG"); br.addElement(" });"); br.addElement(" (o): (fix access mistake)"); br.addElement(" List<Member> memberList = memberBhv.selectList(cb -> {"); br.addElement(" cb.setupSelect_MemberStatus();"); br.addElement(" }).forEach(member -> {"); br.addElement(" ... = member.getMemberStatus().alwaysPresent(...); // OK"); br.addElement(" });"); br.addElement(" (o): (fix setupSelect mistake)"); br.addElement(" List<Member> memberList = memberBhv.selectList(cb -> {"); br.addElement(" cb.setupSelect_MemberSecurityAsOne(); // OK"); br.addElement(" }).forEach(member -> {"); br.addElement(" ... = member.getMemberSecurityAsOne().alwaysPresent(...);"); br.addElement(" });"); br.addItem("Your Relation"); br.addElement(entity.getClass().getSimpleName() + "." + relation); final String msg = br.buildExceptionMessage(); throw new NonSetupSelectRelationAccessException(msg); } // =================================================================================== // Standard Handling // ================= /** * Handle the wrapped entity if it is present. <br> * You should call this if null entity handling is unnecessary (do nothing if null). <br> * If exception is preferred when null entity, use required(). * <pre> * <span style="color: #0000C0">memberBhv</span>.<span style="color: #994747">selectEntity</span>(<span style="color: #553000">cb</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { * <span style="color: #553000">cb</span>.setupSelect_MemberWithdrawal(); * <span style="color: #553000">cb</span>.query().setMemberId_Equal(<span style="color: #2A00FF">1</span>); * }).<span style="color: #CC4747">ifPresent</span>(<span style="color: #553000">member</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { <span style="color: #3F7E5E">// called if value exists, or not called</span> * ... = <span style="color: #553000">member</span>.getMemberName(); * <span style="color: #553000">member</span>.getMemberWithdrawal().<span style="color: #CC4747">ifPresent</span>(<span style="color: #553000">withdrawal</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { <span style="color: #3F7E5E">// also relation</span> * ... = <span style="color: #553000">withdrawal</span>.getWithdrawalDatetime(); * }); * }).<span style="color: #994747">orElse</span>(() <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { * <span style="color: #3F7E5E">// called if no value</span> * }); * </pre> * @param entityLambda The callback interface to consume the optional entity. (NotNull) * @return The handler of after process when if not present. (NotNull) */ public OptionalThingIfPresentAfter ifPresent(OptionalThingConsumer<ENTITY> entityLambda) { assertEntityLambdaNotNull(entityLambda); return callbackIfPresent(entityLambda); } /** * Is the entity instance present? (existing?) * <pre> * OptionalEntity&lt;Member&gt; <span style="color: #553000">optMember</span> = <span style="color: #0000C0">memberBhv</span>.<span style="color: #994747">selectEntity</span>(cb <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { * cb.query()...; * }); * if (<span style="color: #553000">optMember</span>.<span style="color: #CC4747">isPresent()</span>) { <span style="color: #3F7E5E">// true if the entity exists</span> * Member member = <span style="color: #553000">optMember</span>.get(); * } else { * ... * } * </pre> * @return The determination, true or false. */ public boolean isPresent() { return exists(); } /** * Get the entity or exception if null. * <pre> * OptionalEntity&lt;Member&gt; <span style="color: #553000">optMember</span> = <span style="color: #0000C0">memberBhv</span>.selectEntity(<span style="color: #553000">cb</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { * <span style="color: #553000">cb</span>.setupSelect_MemberStatus(); * <span style="color: #553000">cb</span>.query().setMemberId_Equal(<span style="color: #2A00FF">1</span>); * }); * * <span style="color: #3F7E5E">// if the data always exists as your business rule</span> * Member member = <span style="color: #553000">optMember</span>.<span style="color: #CC4747">get()</span>; * * <span style="color: #3F7E5E">// if it might be no data, isPresent(), orElse(), ...</span> * if (<span style="color: #553000">optMember</span>.<span style="color: #CC4747">isPresent()</span>) { * Member member = <span style="color: #553000">optMember</span>.<span style="color: #CC4747">get()</span>; * } else { * ... * } * </pre> * @return The entity instance wrapped in this optional object. (NotNull) * @throws EntityAlreadyDeletedException When the entity instance wrapped in this optional object is null, which means entity has already been deleted (point is not found). */ public ENTITY get() { return directlyGet(); } /** * Filter the entity by the predicate. * <pre> * <span style="color: #0000C0">memberBhv</span>.<span style="color: #994747">selectEntity</span>(<span style="color: #553000">cb</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> <span style="color: #553000">cb</span>.acceptPK(<span style="color: #2A00FF">1</span>)).<span style="color: #CC4747">filter</span>(<span style="color: #553000">member</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { * <span style="color: #3F7E5E">// called if value exists, not called if not present</span> * return <span style="color: #553000">member</span>.getMemberId() % 2 == 0; * }).<span style="color: #994747">ifPresent</span>(<span style="color: #553000">member</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { * ... * }); * </pre> * @param entityLambda The callback to predicate whether the entity is remained. (NotNull) * @return The filtered optional entity, might be empty. (NotNull) */ public OptionalEntity<ENTITY> filter(OptionalThingPredicate<ENTITY> entityLambda) { assertEntityLambdaNotNull(entityLambda); return (OptionalEntity<ENTITY>) callbackFilter(entityLambda); } /** {@inheritDoc} */ protected <ARG> OptionalEntity<ARG> createOptionalFilteredObject(ARG obj) { return new OptionalEntity<ARG>(obj, _thrower); } /** * Apply the mapping of entity to result object. * <pre> * <span style="color: #0000C0">memberBhv</span>.<span style="color: #994747">selectEntity</span>(<span style="color: #553000">cb</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> <span style="color: #553000">cb</span>.acceptPK(<span style="color: #2A00FF">1</span>)).<span style="color: #CC4747">map</span>(<span style="color: #553000">member</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { * <span style="color: #3F7E5E">// called if value exists, not called if not present</span> * <span style="color: #70226C">return new</span> MemberWebBean(<span style="color: #553000">member</span>); * }).<span style="color: #994747">alwaysPresent</span>(<span style="color: #553000">member</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { * ... * }); * </pre> * @param <RESULT> The type of mapping result. * @param entityLambda The callback interface to apply, null return allowed as empty. (NotNull) * @return The optional thing as mapped result. (NotNull, EmptyOptionalAllowed: if not present or callback returns null) */ @SuppressWarnings("unchecked") public <RESULT> OptionalEntity<RESULT> map(OptionalThingFunction<? super ENTITY, ? extends RESULT> entityLambda) { assertEntityLambdaNotNull(entityLambda); return (OptionalEntity<RESULT>) callbackMapping(entityLambda); // downcast allowed because factory is overridden } /** {@inheritDoc} */ protected <ARG> OptionalEntity<ARG> createOptionalMappedObject(ARG obj) { return new OptionalEntity<ARG>(obj, _thrower); } /** * Apply the flat-mapping of entity to result object. * <pre> * <span style="color: #0000C0">memberBhv</span>.<span style="color: #994747">selectEntity</span>(<span style="color: #553000">cb</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> <span style="color: #553000">cb</span>.acceptPK(<span style="color: #2A00FF">1</span>)).<span style="color: #CC4747">flatMap</span>(<span style="color: #553000">member</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { * <span style="color: #3F7E5E">// called if value exists, not called if not present</span> * <span style="color: #70226C">return</span> <span style="color: #553000">member</span>.getMemberWithdrawal(); * }).<span style="color: #994747">ifPresent</span>(<span style="color: #553000">withdrawal</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { * ... * }); * </pre> * @param <RESULT> The type of mapping result. * @param entityLambda The callback interface to apply, cannot return null. (NotNull) * @return The optional thing as mapped result. (NotNull, EmptyOptionalAllowed: when not present) */ public <RESULT> OptionalThing<RESULT> flatMap(OptionalThingFunction<? super ENTITY, OptionalThing<RESULT>> entityLambda) { assertEntityLambdaNotNull(entityLambda); return callbackFlatMapping(entityLambda); } /** {@inheritDoc} */ protected <ARG> OptionalEntity<ARG> createOptionalFlatMappedObject(ARG obj) { return new OptionalEntity<ARG>(obj, _thrower); } // _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ // following methods might be rare case... // _/_/_/_/_/_/_/_/_/_/ /** {@inheritDoc} */ public ENTITY orElse(ENTITY other) { return directlyGetOrElse(other); } /** {@inheritDoc} */ public ENTITY orElseGet(OptionalThingSupplier<ENTITY> noArgLambda) { return directlyGetOrElseGet(noArgLambda); } /** {@inheritDoc} */ public <CAUSE extends Throwable> ENTITY orElseThrow(OptionalThingSupplier<? extends CAUSE> noArgLambda) throws CAUSE { return directlyGetOrElseThrow(noArgLambda); } /** {@inheritDoc} */ public <CAUSE extends Throwable, TRANSLATED extends Throwable> ENTITY orElseTranslatingThrow( OptionalThingFunction<CAUSE, TRANSLATED> oneArgLambda) throws TRANSLATED { return directlyGetOrElseTranslatingThrow(oneArgLambda); } // =================================================================================== // DBFlute Extension // ================= /** * Handle the entity in the optional object or exception if not present. * <pre> * <span style="color: #0000C0">memberBhv</span>.<span style="color: #994747">selectEntity</span>(<span style="color: #553000">cb</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { * <span style="color: #553000">cb</span>.setupSelect_MemberStatus(); * <span style="color: #553000">cb</span>.query().setMemberId_Equal(<span style="color: #2A00FF">1</span>); * }).<span style="color: #CC4747">alwaysPresent</span>(<span style="color: #553000">member</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { <span style="color: #3F7E5E">// called if value exists, or exception</span> * ... = <span style="color: #553000">member</span>.getMemberName(); * <span style="color: #553000">member</span>.getMemberStatus().<span style="color: #CC4747">alwaysPresent</span>(<span style="color: #553000">status</span> <span style="color: #90226C; font-weight: bold"><span style="font-size: 120%">-</span>&gt;</span> { <span style="color: #3F7E5E">// also relation</span> * ... = <span style="color: #553000">status</span>.getMemberStatusName(); * }); * }); * </pre> * @param entityLambda The callback interface to consume the optional value. (NotNull) * @throws EntityAlreadyDeletedException When the entity instance wrapped in this optional object is null, which means entity has already been deleted (point is not found). */ public void alwaysPresent(OptionalThingConsumer<ENTITY> entityLambda) { assertEntityLambdaNotNull(entityLambda); callbackAlwaysPresent(entityLambda); } /** * Get the entity instance or null if not present. <br> * basically use ifPresent() if might be not present, this is for emergency * @return The object instance wrapped in this optional object or null. (NullAllowed: if not present) * @deprecated basically use ifPresent() or use orElse(null) */ public ENTITY orElseNull() { return directlyGetOrElse(null); } // =================================================================================== // Assert Helper // ============= protected void assertEntityLambdaNotNull(Object entityLambda) { if (entityLambda == null) { throw new IllegalArgumentException("The argument 'entityLambda' should not be null."); } } }
targeter21/drools
drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/builder/generator/consequence/ConsequenceGenerator.java
/* * Copyright 2015 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * 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.drools.modelcompiler.builder.generator.consequence; import java.util.ArrayList; import java.util.List; import java.util.function.IntFunction; import java.util.function.Predicate; import java.util.stream.Collectors; import java.util.stream.IntStream; import java.util.stream.Stream; import com.github.javaparser.StaticJavaParser; import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; import com.github.javaparser.ast.body.ConstructorDeclaration; import com.github.javaparser.ast.body.MethodDeclaration; import com.github.javaparser.ast.body.Parameter; import com.github.javaparser.ast.expr.Expression; import com.github.javaparser.ast.expr.MethodCallExpr; import com.github.javaparser.ast.expr.NameExpr; import com.github.javaparser.ast.expr.SimpleName; import com.github.javaparser.ast.nodeTypes.NodeWithSimpleName; import com.github.javaparser.ast.stmt.BlockStmt; import com.github.javaparser.ast.stmt.ExpressionStmt; import com.github.javaparser.ast.type.ClassOrInterfaceType; import com.github.javaparser.ast.type.Type; import com.github.javaparser.ast.type.TypeParameter; import static com.github.javaparser.StaticJavaParser.parseClassOrInterfaceType; import static com.github.javaparser.ast.NodeList.nodeList; /* Used to generate ConsequenceBuilder File */ class ConsequenceGenerator { private static String ARITY_CLASS_NAME = "_ARITY_CLASS_NAME"; private static String ARITY_CLASS_BLOCK = "_ARITY_BLOCK"; private static String ARITY_CLASS_BLOCK_PLUS_ONE = "_ARITY_BLOCK_PLUS_ONE"; private static ClassOrInterfaceDeclaration templateInnerClass; private static CompilationUnit templateCU; private static ClassOrInterfaceDeclaration consequenceBuilder; private static int arity; public static void main(String[] args) throws Exception { arity = 24; templateCU = StaticJavaParser.parseResource("ConsequenceBuilderTemplate.java"); consequenceBuilder = templateCU.getClassByName("ConsequenceBuilder") .orElseThrow(() -> new RuntimeException("Main class not found")); templateInnerClass = consequenceBuilder .findFirst(ClassOrInterfaceDeclaration.class, c -> ARITY_CLASS_NAME.equals(c.getNameAsString())) .orElseThrow(() -> new RuntimeException("Inner class not found")); consequenceBuilder.remove(templateInnerClass); for (int i = 1; i <= arity; i++) { generateInnerClass(i); } System.out.println(templateCU); } private static void generateInnerClass(int arity) { ClassOrInterfaceDeclaration clone = templateInnerClass.clone(); clone.setComment(null); ConstructorDeclaration constructor = findConstructor(clone); replaceName(arity, clone, constructor); replaceGenericType(arity, clone, constructor); consequenceBuilder.addMember(clone); } private static ConstructorDeclaration findConstructor(ClassOrInterfaceDeclaration clone) { return clone.findFirst(ConstructorDeclaration.class, findNodeWithNameArityClassName(ARITY_CLASS_NAME)) .orElseThrow(() -> new RuntimeException("Constructor not found")); } private static void replaceName(int arity, ClassOrInterfaceDeclaration clone, ConstructorDeclaration constructor) { ClassOrInterfaceType arityType = parseClassOrInterfaceType(arityName(arity)); clone.findAll(ClassOrInterfaceDeclaration.class, findNodeWithNameArityClassName(ARITY_CLASS_NAME)) .forEach(c -> c.setName(arityName(arity))); clone.findAll(ClassOrInterfaceType.class, findNodeWithNameArityClassName(ARITY_CLASS_NAME)) .forEach(oldType -> oldType.replace(arityType)); constructor.setName(arityName(arity)); } private static String arityName(int arity) { return "_" + arity; } private static <N extends NodeWithSimpleName> Predicate<N> findNodeWithNameArityClassName(String name) { return c -> name.equals(c.getName().asString()); } private static void replaceGenericType(int arity, ClassOrInterfaceDeclaration clone, ConstructorDeclaration constructor) { List<TypeParameter> genericTypeParameterList = genericTypeStream(arity, ConsequenceGenerator::createTypeParameter) .collect(Collectors.toList()); clone.setTypeParameters(nodeList(genericTypeParameterList)); List<Type> genericTypeList = genericTypeStream(arity, ConsequenceGenerator::parseType) .collect(Collectors.toList()); ClassOrInterfaceType extendTypeParameter = parseClassOrInterfaceType(arityName(arity)); extendTypeParameter.setTypeArguments(nodeList(genericTypeList)); ClassOrInterfaceType extendedType = new ClassOrInterfaceType(null, new SimpleName("AbstractValidBuilder"), nodeList(extendTypeParameter)); clone.findAll(MethodDeclaration.class, mc -> mc.getType().asString().equals(arityName(arity))) .forEach(c -> c.setType(extendTypeParameter)); clone.setExtendedTypes(nodeList(extendedType)); List<Parameter> parameters = genericTypeStream(arity, genericTypeIndex -> { ClassOrInterfaceType type = parseClassOrInterfaceType(String.format("Variable<%s>", argumentTypeName(genericTypeIndex))); return new Parameter(type, argName(genericTypeIndex)); }).collect(Collectors.toList()); constructor.setParameters(nodeList(parameters)); constructorBody(arity, constructor); ClassOrInterfaceType arityBlockType = parseClassOrInterfaceType("Block" + arity); arityBlockType.setTypeArguments(nodeList(genericTypeList)); ClassOrInterfaceType arityBlockTypePlusOne = parseClassOrInterfaceType("Block" + (arity + 1)); List<Type> genericTypeListPlusDrools = new ArrayList<>(genericTypeList); genericTypeListPlusDrools.add(0, parseClassOrInterfaceType("Drools")); arityBlockTypePlusOne.setTypeArguments(nodeList(genericTypeListPlusDrools)); clone.findAll(ClassOrInterfaceType.class, findNodeWithNameArityClassName(ARITY_CLASS_BLOCK)) .forEach(oldType -> oldType.replace(arityBlockType)); clone.findAll(ClassOrInterfaceType.class, findNodeWithNameArityClassName(ARITY_CLASS_BLOCK_PLUS_ONE)) .forEach(oldType -> oldType.replace(arityBlockTypePlusOne)); } private static void constructorBody(int arity, ConstructorDeclaration constructor) { List<Expression> constructorArgument = genericTypeStream(arity, genericTypeIndex -> new NameExpr(argName(genericTypeIndex))).collect(Collectors.toList()); MethodCallExpr superCall = new MethodCallExpr(null, "super", nodeList(constructorArgument)); constructor.setBody(new BlockStmt(nodeList(new ExpressionStmt(superCall)))); } private static String argName(int genericTypeIndex) { return "arg" + genericTypeIndex; } private static <T> Stream<T> genericTypeStream(int arity, IntFunction<T> parseType) { return IntStream.range(1, arity + 1) .mapToObj(parseType); } private static ClassOrInterfaceType parseType(int genericTypeIndex) { return parseClassOrInterfaceType(argumentTypeName(genericTypeIndex)); } private static String argumentTypeName(int genericTypeIndex) { return "T" + genericTypeIndex; } private static TypeParameter createTypeParameter(int genericTypeIndex) { return new TypeParameter(argumentTypeName(genericTypeIndex)); } }
sunruiguang/java1808_Basic
src/com/day02/Homework08.java
<reponame>sunruiguang/java1808_Basic package com.day02; public class Homework08 { public static void main(String[] args) { int x; double y; x = (int) 22.5 + (int) 34.7; y = (double) x; System.out.println("x=" + x); System.out.println("y=" + y); } }
davidbrochart/pythran
pythran/pythonic/numpy/alltrue.hpp
<filename>pythran/pythonic/numpy/alltrue.hpp #ifndef PYTHONIC_NUMPY_ALLTRUE_HPP #define PYTHONIC_NUMPY_ALLTRUE_HPP #include "pythonic/include/numpy/alltrue.hpp" #include "pythonic/numpy/all.hpp" PYTHONIC_NS_BEGIN namespace numpy { template <class... Types> auto alltrue(Types &&... types) -> decltype(all(std::forward<Types>(types)...)) { return all(std::forward<Types>(types)...); } } PYTHONIC_NS_END #endif
NityaNandPandey/AndroidPDF
headers/C/PDF/TRN_Date.h
//--------------------------------------------------------------------------------------- // Copyright (c) 2001-2018 by PDFTron Systems Inc. All Rights Reserved. // Consult legal.txt regarding legal and license information. //--------------------------------------------------------------------------------------- #ifndef PDFTRON_H_CPDFDate #define PDFTRON_H_CPDFDate #include <C/Common/TRN_Types.h> #ifdef __cplusplus extern "C" { #endif TRN_API TRN_DateInit (TRN_UInt16 year, char month, char day, char hour, char minute, char second, TRN_Date* result); TRN_API TRN_DateAssign (TRN_Date* left, const TRN_Date* right); TRN_API TRN_DateIsValid(const TRN_Date* date, TRN_Bool* result); TRN_API TRN_DateAttach(TRN_Date* date, TRN_Obj d); TRN_API TRN_DateUpdate(TRN_Date* date, TRN_Obj d, TRN_Bool* result); TRN_API_T(void) TRN_DateSetCurrentTime(TRN_Date* date); TRN_API_T(TRN_UInt16) TRN_DateGetYear(TRN_Date* date); TRN_API_T(TRN_UChar) TRN_DateGetMonth(TRN_Date* date); TRN_API_T(TRN_UChar) TRN_DateGetDay(TRN_Date* date); TRN_API_T(TRN_UChar) TRN_DateGetHour(TRN_Date* date); TRN_API_T(TRN_UChar) TRN_DateGetMinute(TRN_Date* date); TRN_API_T(TRN_UChar) TRN_DateGetSecond(TRN_Date* date); TRN_API_T(TRN_UChar) TRN_DateGetUT(TRN_Date* date); TRN_API_T(TRN_UChar) TRN_DateGetUTHour(TRN_Date* date); TRN_API_T(TRN_UChar) TRN_DateGetUTMin(TRN_Date* date); #ifdef __cplusplus } #endif #endif // PDFTRON_H_CPDFDate
jainsakshi2395/linux
samples/watch_queue/watch_test.c
<filename>samples/watch_queue/watch_test.c // SPDX-License-Identifier: GPL-2.0 /* Use watch_queue API to watch for notifications. * * Copyright (C) 2020 Red Hat, Inc. All Rights Reserved. * Written by <NAME> (<EMAIL>) */ #define _GNU_SOURCE #include <stdbool.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include <unistd.h> #include <errno.h> #include <sys/ioctl.h> #include <limits.h> #include <linux/watch_queue.h> #include <linux/unistd.h> #include <linux/keyctl.h> #ifndef KEYCTL_WATCH_KEY #define KEYCTL_WATCH_KEY -1 #endif #ifndef __NR_keyctl #define __NR_keyctl -1 #endif #define BUF_SIZE 256 static long keyctl_watch_key(int key, int watch_fd, int watch_id) { return syscall(__NR_keyctl, KEYCTL_WATCH_KEY, key, watch_fd, watch_id); } static const char *key_subtypes[256] = { [NOTIFY_KEY_INSTANTIATED] = "instantiated", [NOTIFY_KEY_UPDATED] = "updated", [NOTIFY_KEY_LINKED] = "linked", [NOTIFY_KEY_UNLINKED] = "unlinked", [NOTIFY_KEY_CLEARED] = "cleared", [NOTIFY_KEY_REVOKED] = "revoked", [NOTIFY_KEY_INVALIDATED] = "invalidated", [NOTIFY_KEY_SETATTR] = "setattr", }; static void saw_key_change(struct watch_notification *n, size_t len) { struct key_notification *k = (struct key_notification *)n; if (len != sizeof(struct key_notification)) { fprintf(stderr, "Incorrect key message length\n"); return; } printf("KEY %08x change=%u[%s] aux=%u\n", k->key_id, n->subtype, key_subtypes[n->subtype], k->aux); } /* * Consume and display events. */ static void consumer(int fd) { unsigned char buffer[433], *p, *end; union { struct watch_notification n; unsigned char buf1[128]; } n; ssize_t buf_len; for (;;) { buf_len = read(fd, buffer, sizeof(buffer)); if (buf_len == -1) { perror("read"); exit(1); } if (buf_len == 0) { printf("-- END --\n"); return; } if (buf_len > sizeof(buffer)) { fprintf(stderr, "Read buffer overrun: %zd\n", buf_len); return; } printf("read() = %zd\n", buf_len); p = buffer; end = buffer + buf_len; while (p < end) { size_t largest, len; largest = end - p; if (largest > 128) largest = 128; if (largest < sizeof(struct watch_notification)) { fprintf(stderr, "Short message header: %zu\n", largest); return; } memcpy(&n, p, largest); printf("NOTIFY[%03zx]: ty=%06x sy=%02x i=%08x\n", p - buffer, n.n.type, n.n.subtype, n.n.info); len = n.n.info & WATCH_INFO_LENGTH; if (len < sizeof(n.n) || len > largest) { fprintf(stderr, "Bad message length: %zu/%zu\n", len, largest); exit(1); } switch (n.n.type) { case WATCH_TYPE_META: switch (n.n.subtype) { case WATCH_META_REMOVAL_NOTIFICATION: printf("REMOVAL of watchpoint %08x\n", (n.n.info & WATCH_INFO_ID) >> WATCH_INFO_ID__SHIFT); break; case WATCH_META_LOSS_NOTIFICATION: printf("-- LOSS --\n"); break; default: printf("other meta record\n"); break; } break; case WATCH_TYPE_KEY_NOTIFY: saw_key_change(&n.n, len); break; default: printf("other type\n"); break; } p += len; } } } static struct watch_notification_filter filter = { .nr_filters = 1, .filters = { [0] = { .type = WATCH_TYPE_KEY_NOTIFY, .subtype_filter[0] = UINT_MAX, }, }, }; int main(int argc, char **argv) { int pipefd[2], fd; if (pipe2(pipefd, O_NOTIFICATION_PIPE) == -1) { perror("pipe2"); exit(1); } fd = pipefd[0]; if (ioctl(fd, IOC_WATCH_QUEUE_SET_SIZE, BUF_SIZE) == -1) { perror("watch_queue(size)"); exit(1); } if (ioctl(fd, IOC_WATCH_QUEUE_SET_FILTER, &filter) == -1) { perror("watch_queue(filter)"); exit(1); } if (keyctl_watch_key(KEY_SPEC_SESSION_KEYRING, fd, 0x01) == -1) { perror("keyctl"); exit(1); } if (keyctl_watch_key(KEY_SPEC_USER_KEYRING, fd, 0x02) == -1) { perror("keyctl"); exit(1); } consumer(fd); exit(0); }
folker/AWE
vendor/github.com/docker/docker/vendor/google.golang.org/genproto/googleapis/api/serviceconfig/log.pb.go
<gh_stars>10-100 // Code generated by protoc-gen-go. // source: google.golang.org/genproto/googleapis/api/serviceconfig/log.proto // DO NOT EDIT! package google_api // import "google.golang.org/genproto/googleapis/api/serviceconfig" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import google_api1 "google.golang.org/genproto/googleapis/api/label" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // A description of a log type. Example in YAML format: // // - name: library.googleapis.com/activity_history // description: The history of borrowing and returning library items. // display_name: Activity // labels: // - key: /customer_id // description: Identifier of a library customer type LogDescriptor struct { // The name of the log. It must be less than 512 characters long and can // include the following characters: upper- and lower-case alphanumeric // characters [A-Za-z0-9], and punctuation characters including // slash, underscore, hyphen, period [/_-.]. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // The set of labels that are available to describe a specific log entry. // Runtime requests that contain labels not specified here are // considered invalid. Labels []*google_api1.LabelDescriptor `protobuf:"bytes,2,rep,name=labels" json:"labels,omitempty"` // A human-readable description of this log. This information appears in // the documentation and can contain details. Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` // The human-readable name for this log. This information appears on // the user interface and should be concise. DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName" json:"display_name,omitempty"` } func (m *LogDescriptor) Reset() { *m = LogDescriptor{} } func (m *LogDescriptor) String() string { return proto.CompactTextString(m) } func (*LogDescriptor) ProtoMessage() {} func (*LogDescriptor) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{0} } func (m *LogDescriptor) GetLabels() []*google_api1.LabelDescriptor { if m != nil { return m.Labels } return nil } func init() { proto.RegisterType((*LogDescriptor)(nil), "google.api.LogDescriptor") } func init() { proto.RegisterFile("google.golang.org/genproto/googleapis/api/serviceconfig/log.proto", fileDescriptor10) } var fileDescriptor10 = []byte{ // 233 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x72, 0x4c, 0xcf, 0xcf, 0x4f, 0xcf, 0x49, 0xd5, 0x4b, 0xcf, 0xcf, 0x49, 0xcc, 0x4b, 0xd7, 0xcb, 0x2f, 0x4a, 0xd7, 0x4f, 0x4f, 0xcd, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x87, 0x48, 0x25, 0x16, 0x64, 0x16, 0xeb, 0x03, 0x09, 0xfd, 0xe2, 0xd4, 0xa2, 0xb2, 0xcc, 0xe4, 0xd4, 0xe4, 0xfc, 0xbc, 0xb4, 0xcc, 0x74, 0xfd, 0x9c, 0xfc, 0x74, 0x3d, 0xb0, 0x32, 0x21, 0x2e, 0xa8, 0x11, 0x40, 0x35, 0x52, 0xd6, 0xc4, 0x1b, 0x97, 0x93, 0x98, 0x94, 0x9a, 0x03, 0x21, 0x21, 0x06, 0x29, 0xcd, 0x65, 0xe4, 0xe2, 0xf5, 0xc9, 0x4f, 0x77, 0x49, 0x2d, 0x4e, 0x2e, 0xca, 0x2c, 0x28, 0xc9, 0x2f, 0x12, 0x12, 0xe2, 0x62, 0xc9, 0x4b, 0xcc, 0x4d, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x02, 0xb3, 0x85, 0x8c, 0xb9, 0xd8, 0xc0, 0x9a, 0x8a, 0x25, 0x98, 0x14, 0x98, 0x35, 0xb8, 0x8d, 0xa4, 0xf5, 0x10, 0xf6, 0xeb, 0xf9, 0x80, 0x64, 0x10, 0x06, 0x04, 0x41, 0x95, 0x0a, 0x29, 0x70, 0x71, 0xa7, 0x40, 0x45, 0x33, 0xf3, 0xf3, 0x24, 0x98, 0xc1, 0xe6, 0x21, 0x0b, 0x09, 0x29, 0x72, 0xf1, 0xa4, 0x64, 0x16, 0x17, 0xe4, 0x24, 0x56, 0xc6, 0x83, 0xad, 0x64, 0x81, 0x2a, 0x81, 0x88, 0xf9, 0x01, 0x85, 0x9c, 0x94, 0xb9, 0xf8, 0x92, 0xf3, 0x73, 0x91, 0xac, 0x73, 0xe2, 0x00, 0x3a, 0x37, 0x00, 0xe4, 0xf6, 0x00, 0xc6, 0x45, 0x4c, 0x2c, 0xee, 0x8e, 0x01, 0x9e, 0x49, 0x6c, 0x60, 0xbf, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x32, 0x96, 0x08, 0x72, 0x59, 0x01, 0x00, 0x00, }
daodao10/chart
sg/C05_d.js
<filename>sg/C05_d.js<gh_stars>1-10 var data=[['19940103',2.1825], ['19940104',2.1737], ['19940105',2.1825], ['19940106',2.2018], ['19940107',2.1922], ['19940110',2.2669], ['19940111',2.3223], ['19940112',2.2854], ['19940113',2.2476], ['19940114',2.3320], ['19940117',2.2757], ['19940118',2.3135], ['19940119',2.2950], ['19940120',2.2854], ['19940121',2.2854], ['19940124',2.2388], ['19940125',2.2388], ['19940126',2.1922], ['19940127',2.2106], ['19940128',2.2106], ['19940131',2.2299], ['19940201',2.2476], ['19940202',2.2476], ['19940203',2.2388], ['19940204',2.2476], ['19940207',2.2388], ['19940208',2.2388], ['19940209',2.2388], ['19940214',2.2476], ['19940215',2.2573], ['19940216',2.2854], ['19940217',2.2854], ['19940218',2.2854], ['19940221',2.2854], ['19940222',2.2950], ['19940223',2.3135], ['19940224',2.2950], ['19940225',2.3039], ['19940228',2.2854], ['19940301',2.2950], ['19940302',2.2854], ['19940303',2.2854], ['19940304',2.2854], ['19940307',2.2854], ['19940308',2.2854], ['19940309',2.2757], ['19940310',2.2757], ['19940311',2.2854], ['19940315',2.2854], ['19940316',2.2950], ['19940317',2.2950], ['19940318',2.2757], ['19940321',2.2757], ['19940322',2.2757], ['19940323',2.2854], ['19940324',2.2854], ['19940325',2.2854], ['19940328',2.2854], ['19940329',2.2854], ['19940330',2.2854], ['19940331',2.2854], ['19940404',2.1922], ['19940405',2.2388], ['19940406',2.2388], ['19940407',2.2388], ['19940408',2.1922], ['19940411',2.1544], ['19940412',2.1922], ['19940413',2.2388], ['19940414',2.2388], ['19940415',2.1922], ['19940418',2.1922], ['19940419',2.1922], ['19940420',2.1922], ['19940421',2.1922], ['19940422',2.1922], ['19940425',2.1922], ['19940426',2.1922], ['19940427',2.1737], ['19940428',2.1737], ['19940429',2.1737], ['19940503',2.1737], ['19940504',2.2299], ['19940505',2.2299], ['19940506',2.2299], ['19940509',2.2299], ['19940510',2.2195], ['19940511',2.1922], ['19940512',2.2018], ['19940513',2.2388], ['19940516',2.2195], ['19940517',2.2195], ['19940518',2.2195], ['19940519',2.2299], ['19940520',2.2299], ['19940523',2.2299], ['19940524',2.2299], ['19940526',2.2388], ['19940527',2.2195], ['19940530',2.2195], ['19940531',2.1922], ['19940601',2.1825], ['19940602',2.1640], ['19940603',2.1640], ['19940606',2.1825], ['19940607',2.1825], ['19940608',2.1544], ['19940609',2.1544], ['19940610',2.1544], ['19940613',2.1544], ['19940614',2.1544], ['19940615',2.1825], ['19940616',2.1825], ['19940617',2.1825], ['19940620',2.1825], ['19940621',2.1737], ['19940622',2.1825], ['19940623',2.1737], ['19940624',2.1078], ['19940627',2.1078], ['19940628',2.1078], ['19940629',2.1078], ['19940630',2.0893], ['19940701',2.0515], ['19940704',1.9591], ['19940705',1.9591], ['19940706',1.9591], ['19940707',1.9591], ['19940708',1.9591], ['19940711',1.9591], ['19940712',1.9591], ['19940713',1.9591], ['19940714',1.9591], ['19940715',1.9591], ['19940718',1.9591], ['19940719',1.9591], ['19940720',1.9591], ['19940721',1.9591], ['19940722',1.9591], ['19940725',1.9591], ['19940726',1.9591], ['19940727',1.9591], ['19940728',1.9591], ['19940729',1.9591], ['19940801',1.9591], ['19940802',2.0242], ['19940803',2.0427], ['19940804',1.8659], ['19940805',1.8659], ['19940808',1.8659], ['19940810',1.8659], ['19940811',2.0515], ['19940812',2.0515], ['19940815',1.9591], ['19940816',1.9591], ['19940817',1.9591], ['19940818',1.9591], ['19940819',1.9591], ['19940822',1.9591], ['19940823',2.0708], ['19940824',2.0708], ['19940825',2.0708], ['19940826',2.0515], ['19940829',2.0515], ['19940830',2.0989], ['19940831',2.0989], ['19940901',2.0989], ['19940902',2.1359], ['19940905',2.1456], ['19940906',2.1456], ['19940907',2.1359], ['19940908',2.1271], ['19940909',2.1271], ['19940912',2.1271], ['19940913',2.1271], ['19940914',2.1271], ['19940915',2.1271], ['19940916',2.1271], ['19940919',2.1271], ['19940920',2.1359], ['19940921',2.1271], ['19940922',2.1271], ['19940923',2.1271], ['19940926',2.1271], ['19940927',2.1271], ['19940928',2.1271], ['19940929',2.1271], ['19940930',2.1271], ['19941003',2.1271], ['19941004',2.1359], ['19941005',2.1271], ['19941006',2.1271], ['19941007',2.1359], ['19941010',2.1359], ['19941011',2.1359], ['19941012',2.1359], ['19941013',2.1359], ['19941014',2.1456], ['19941017',2.1456], ['19941018',2.1456], ['19941019',2.1456], ['19941020',2.1456], ['19941021',2.1456], ['19941024',2.1456], ['19941025',2.1271], ['19941026',2.1271], ['19941027',2.1271], ['19941028',2.1544], ['19941031',2.1640], ['19941101',2.1640], ['19941103',2.1640], ['19941104',2.1640], ['19941107',2.1640], ['19941108',2.1737], ['19941109',2.1737], ['19941110',2.1737], ['19941111',2.1737], ['19941114',2.1737], ['19941115',2.1737], ['19941116',2.1737], ['19941117',2.1737], ['19941118',2.1737], ['19941121',2.1737], ['19941122',2.1737], ['19941123',2.1456], ['19941124',2.1456], ['19941125',2.1456], ['19941128',2.1456], ['19941129',2.1456], ['19941130',2.1456], ['19941201',2.1456], ['19941202',2.1456], ['19941205',2.1456], ['19941206',2.0893], ['19941207',2.0893], ['19941208',2.0893], ['19941209',2.0893], ['19941213',2.0893], ['19941214',2.0893], ['19941215',2.0893], ['19941216',2.0893], ['19941219',2.0893], ['19941220',2.0893], ['19941221',2.0893], ['19941222',2.0893], ['19941223',2.0893], ['19941227',2.0893], ['19941228',2.0893], ['19941229',2.0893], ['19941230',2.0427], ['19950103',2.0427], ['19950104',2.0515], ['19950105',2.0515], ['19950106',2.0515], ['19950109',2.0515], ['19950110',2.0515], ['19950111',2.0515], ['19950112',2.0515], ['19950113',2.0515], ['19950116',2.0515], ['19950117',2.0515], ['19950118',2.0515], ['19950119',2.0515], ['19950120',1.9591], ['19950123',1.9591], ['19950124',1.8659], ['19950125',1.8659], ['19950126',1.8659], ['19950127',1.8659], ['19950130',1.8659], ['19950202',1.8659], ['19950203',1.8659], ['19950206',1.8659], ['19950207',1.8659], ['19950208',1.8659], ['19950209',1.8659], ['19950210',1.8659], ['19950213',1.9591], ['19950214',1.9591], ['19950215',1.9591], ['19950216',1.9591], ['19950217',2.0057], ['19950220',2.0057], ['19950221',2.0515], ['19950222',2.0515], ['19950223',2.0515], ['19950224',2.0515], ['19950227',1.9591], ['19950228',1.9591], ['19950301',2.1174], ['19950302',2.0620], ['19950306',2.0515], ['19950307',2.0515], ['19950308',2.0620], ['19950309',2.0893], ['19950310',2.0893], ['19950313',2.0893], ['19950314',2.0893], ['19950315',2.0989], ['19950316',2.0893], ['19950317',2.0797], ['19950320',2.0708], ['19950321',2.0708], ['19950322',2.0708], ['19950323',2.0708], ['19950324',2.0708], ['19950327',2.1271], ['19950328',2.1359], ['19950329',2.1271], ['19950330',2.0989], ['19950331',2.0989], ['19950403',2.0989], ['19950404',2.0989], ['19950405',2.0989], ['19950406',2.0989], ['19950407',2.0989], ['19950410',2.0989], ['19950411',2.0893], ['19950412',2.0797], ['19950413',2.0620], ['19950417',2.0620], ['19950418',2.0620], ['19950419',2.0620], ['19950420',2.0708], ['19950421',2.1359], ['19950424',2.1544], ['19950425',2.1640], ['19950426',2.1544], ['19950427',2.1544], ['19950428',2.1456], ['19950502',2.1456], ['19950503',2.1456], ['19950504',2.1456], ['19950505',2.1271], ['19950508',2.1271], ['19950509',2.1544], ['19950511',2.1922], ['19950512',2.1922], ['19950516',2.1922], ['19950517',2.1825], ['19950518',2.1825], ['19950519',2.1922], ['19950522',2.3039], ['19950523',2.3135], ['19950524',2.3786], ['19950525',2.3786], ['19950526',2.3553], ['19950529',2.3553], ['19950530',2.3553], ['19950531',2.3223], ['19950601',2.3786], ['19950602',2.3553], ['19950605',2.3553], ['19950606',2.3786], ['19950607',2.3553], ['19950608',2.4718], ['19950609',2.4718], ['19950612',2.5184], ['19950613',2.4485], ['19950614',2.4019], ['19950615',2.4485], ['19950616',2.4718], ['19950619',2.4485], ['19950620',2.4485], ['19950621',2.4485], ['19950622',2.4485], ['19950623',2.4485], ['19950626',2.4485], ['19950627',2.4485], ['19950628',2.4485], ['19950629',2.4019], ['19950630',2.4019], ['19950703',2.4019], ['19950704',2.3786], ['19950705',2.4348], ['19950706',2.4204], ['19950707',2.4204], ['19950710',2.4204], ['19950711',2.3649], ['19950712',2.3649], ['19950713',2.3649], ['19950714',2.3649], ['19950717',2.3649], ['19950718',2.3505], ['19950719',2.3505], ['19950720',2.3368], ['19950721',2.3505], ['19950724',2.3923], ['19950725',2.3087], ['19950726',2.3786], ['19950727',2.3649], ['19950728',2.3505], ['19950731',2.3505], ['19950801',2.3505], ['19950802',2.3505], ['19950803',2.3505], ['19950804',2.3505], ['19950807',2.3505], ['19950808',2.3649], ['19950810',2.3505], ['19950811',2.3649], ['19950814',2.3649], ['19950815',2.3649], ['19950816',2.2524], ['19950817',2.2524], ['19950818',2.2524], ['19950821',2.2806], ['19950822',2.2806], ['19950823',2.3087], ['19950824',2.3368], ['19950825',2.3368], ['19950828',2.3368], ['19950829',2.3223], ['19950830',2.3786], ['19950831',2.3368], ['19950901',2.3368], ['19950904',2.2669], ['19950905',2.2806], ['19950906',2.2806], ['19950907',2.2806], ['19950908',2.2806], ['19950911',2.2806], ['19950912',2.2806], ['19950913',2.2806], ['19950914',2.2806], ['19950915',2.2806], ['19950918',2.2806], ['19950919',2.2524], ['19950920',2.2524], ['19950921',2.2388], ['19950922',2.2950], ['19950925',2.2950], ['19950926',2.2524], ['19950927',2.2388], ['19950928',2.2243], ['19950929',2.2243], ['19951002',2.2243], ['19951003',2.2243], ['19951004',2.2243], ['19951005',2.2243], ['19951006',2.1825], ['19951009',2.1825], ['19951010',2.1825], ['19951011',2.1825], ['19951012',2.1825], ['19951013',2.1825], ['19951016',2.1544], ['19951017',2.1407], ['19951018',2.1407], ['19951019',2.1407], ['19951020',2.1407], ['19951024',2.1407], ['19951025',2.1407], ['19951026',2.1407], ['19951027',2.1689], ['19951030',2.1407], ['19951031',2.0989], ['19951101',2.0845], ['19951102',2.0989], ['19951103',2.0989], ['19951106',2.0989], ['19951107',2.1126], ['19951108',2.1126], ['19951109',2.1126], ['19951110',2.1126], ['19951113',2.1126], ['19951114',2.1126], ['19951115',2.1126], ['19951116',2.1271], ['19951117',2.1271], ['19951120',2.1271], ['19951121',2.1271], ['19951122',2.1689], ['19951123',2.1689], ['19951124',2.1689], ['19951127',2.1689], ['19951128',2.1271], ['19951129',2.1271], ['19951130',2.1271], ['19951201',2.0989], ['19951204',2.1407], ['19951205',2.1271], ['19951206',2.1271], ['19951207',2.1271], ['19951208',2.1407], ['19951211',2.1407], ['19951212',2.1407], ['19951213',2.1407], ['19951214',2.1689], ['19951215',2.1407], ['19951218',2.1407], ['19951219',2.1407], ['19951220',2.1544], ['19951221',2.1544], ['19951222',2.1544], ['19951226',2.1544], ['19951227',2.1544], ['19951228',2.1544], ['19951229',2.1970], ['19960102',2.1970], ['19960103',2.2388], ['19960104',2.2388], ['19960105',2.2106], ['19960108',2.2388], ['19960109',2.2806], ['19960110',2.2806], ['19960111',2.3087], ['19960112',2.3786], ['19960115',2.4067], ['19960116',2.4204], ['19960117',2.4204], ['19960118',2.3786], ['19960119',2.3786], ['19960122',2.3786], ['19960123',2.3786], ['19960124',2.3786], ['19960125',2.3923], ['19960126',2.3786], ['19960129',2.3786], ['19960130',2.3786], ['19960131',2.3923], ['19960201',2.3923], ['19960202',2.3786], ['19960205',2.3923], ['19960206',2.4067], ['19960207',2.4485], ['19960208',2.4348], ['19960209',2.4348], ['19960212',2.3505], ['19960213',2.3923], ['19960214',2.3923], ['19960215',2.3786], ['19960216',2.3786], ['19960222',2.3786], ['19960223',2.4204], ['19960226',2.4204], ['19960227',2.4204], ['19960228',2.4204], ['19960229',2.3786], ['19960301',2.3649], ['19960304',2.4067], ['19960305',2.4067], ['19960306',2.4067], ['19960307',2.4067], ['19960308',2.4067], ['19960311',2.3505], ['19960312',2.4204], ['19960313',2.3923], ['19960314',2.3923], ['19960315',2.4067], ['19960318',2.3923], ['19960319',2.3786], ['19960320',2.4204], ['19960321',2.4204], ['19960322',2.4204], ['19960325',2.4204], ['19960326',2.4067], ['19960327',2.4622], ['19960328',2.5465], ['19960329',2.8125], ['19960401',2.8125], ['19960402',2.7281], ['19960403',2.7981], ['19960404',2.8406], ['19960408',2.7844], ['19960409',2.7981], ['19960410',2.7844], ['19960411',2.7844], ['19960412',2.7844], ['19960415',2.7844], ['19960416',2.7844], ['19960417',2.7844], ['19960418',2.7844], ['19960419',2.7844], ['19960422',2.7707], ['19960423',2.7707], ['19960424',2.7707], ['19960425',2.7707], ['19960426',2.7426], ['19960430',2.7426], ['19960502',2.7426], ['19960503',2.7426], ['19960506',2.7426], ['19960507',2.7563], ['19960508',2.7981], ['19960509',2.7844], ['19960510',2.7981], ['19960513',2.7981], ['19960514',2.7981], ['19960515',2.7981], ['19960516',2.7981], ['19960517',2.7981], ['19960520',2.7426], ['19960521',2.7426], ['19960522',2.7000], ['19960523',2.5883], ['19960524',2.5883], ['19960527',2.5883], ['19960528',2.5883], ['19960529',2.5883], ['19960530',2.6028], ['19960603',2.6028], ['19960604',2.6028], ['19960605',2.5883], ['19960606',2.5184], ['19960607',2.5883], ['19960610',2.5883], ['19960611',2.5883], ['19960612',2.5184], ['19960613',2.5184], ['19960614',2.5184], ['19960617',2.5184], ['19960618',2.5184], ['19960619',2.5184], ['19960620',2.5747], ['19960621',2.5747], ['19960624',2.5883], ['19960625',2.5747], ['19960626',2.5747], ['19960627',2.5465], ['19960628',2.5048], ['19960701',2.5048], ['19960702',2.5048], ['19960703',2.5048], ['19960704',2.4485], ['19960705',2.4485], ['19960708',2.4485], ['19960709',2.4485], ['19960710',2.4485], ['19960711',2.4485], ['19960712',2.4766], ['19960715',2.4766], ['19960716',2.4766], ['19960717',2.4766], ['19960718',2.4766], ['19960719',2.4766], ['19960722',2.4485], ['19960723',2.3786], ['19960724',2.4485], ['19960725',2.3786], ['19960726',2.3087], ['19960729',2.3087], ['19960730',2.3087], ['19960731',2.3087], ['19960801',2.3786], ['19960802',2.3786], ['19960805',2.4067], ['19960806',2.3786], ['19960807',2.3786], ['19960808',2.3786], ['19960812',2.5184], ['19960813',2.5329], ['19960814',2.4903], ['19960815',2.5465], ['19960816',2.5465], ['19960819',2.5465], ['19960820',2.5465], ['19960821',2.5465], ['19960822',2.5465], ['19960823',2.5465], ['19960826',2.5465], ['19960827',2.5465], ['19960828',2.5329], ['19960829',2.5329], ['19960830',2.4485], ['19960902',2.4485], ['19960903',2.4348], ['19960904',2.4348], ['19960905',2.4348], ['19960906',2.4348], ['19960909',2.4348], ['19960910',2.4348], ['19960911',2.4348], ['19960912',2.4348], ['19960913',2.4348], ['19960916',2.4485], ['19960917',2.4348], ['19960918',2.4348], ['19960919',2.4348], ['19960920',2.4485], ['19960923',2.4485], ['19960924',2.4485], ['19960925',2.4204], ['19960926',2.4204], ['19960927',2.4204], ['19960930',2.4067], ['19961001',2.4067], ['19961002',2.4067], ['19961003',2.4067], ['19961004',2.3923], ['19961007',2.3923], ['19961008',2.3923], ['19961009',2.4067], ['19961010',2.4067], ['19961011',2.3786], ['19961014',2.3786], ['19961015',2.3786], ['19961016',2.3786], ['19961017',2.3786], ['19961018',2.3786], ['19961021',2.3786], ['19961022',2.3786], ['19961023',2.3786], ['19961024',2.3786], ['19961025',2.3505], ['19961028',2.3505], ['19961029',2.3505], ['19961030',2.3505], ['19961031',2.3923], ['19961101',2.3923], ['19961104',2.3923], ['19961105',2.4067], ['19961106',2.4067], ['19961107',2.3923], ['19961108',2.3923], ['19961112',2.3923], ['19961113',2.4348], ['19961114',2.4485], ['19961115',2.4622], ['19961118',2.4622], ['19961119',2.4485], ['19961120',2.4485], ['19961121',2.4485], ['19961122',2.4485], ['19961125',2.4485], ['19961126',2.4485], ['19961127',2.4485], ['19961128',2.4485], ['19961129',2.4485], ['19961202',2.4485], ['19961203',2.4485], ['19961204',2.4485], ['19961205',2.4485], ['19961206',2.4485], ['19961209',2.4485], ['19961210',2.4485], ['19961211',2.4348], ['19961212',2.4348], ['19961213',2.4348], ['19961216',2.4348], ['19961217',2.4348], ['19961218',2.4348], ['19961219',2.4348], ['19961220',2.4348], ['19961223',2.4348], ['19961224',2.4348], ['19961226',2.4348], ['19961227',2.4348], ['19961230',2.2388], ['19961231',2.3087], ['19970103',2.3087], ['19970106',2.3087], ['19970107',2.3223], ['19970108',2.3223], ['19970109',2.3087], ['19970110',2.2806], ['19970113',2.2806], ['19970114',2.2669], ['19970115',2.2669], ['19970116',2.2669], ['19970117',2.2669], ['19970120',2.2524], ['19970121',2.2388], ['19970122',2.2524], ['19970123',2.2388], ['19970124',2.2243], ['19970127',2.2243], ['19970128',2.2243], ['19970129',2.2106], ['19970130',2.1970], ['19970131',2.2388], ['19970203',2.2388], ['19970204',2.2388], ['19970205',2.2388], ['19970206',2.2388], ['19970211',2.2388], ['19970212',2.2388], ['19970213',2.3087], ['19970214',2.3786], ['19970217',2.3786], ['19970218',2.3786], ['19970219',2.3223], ['19970220',2.3087], ['19970221',2.3087], ['19970224',2.3087], ['19970225',2.3087], ['19970226',2.3223], ['19970227',2.3223], ['19970228',2.3087], ['19970303',2.3087], ['19970304',2.3087], ['19970305',2.3087], ['19970306',2.3087], ['19970307',2.3087], ['19970310',2.3087], ['19970311',2.3649], ['19970312',2.3649], ['19970313',2.3649], ['19970314',2.3649], ['19970317',2.3649], ['19970318',2.3649], ['19970319',2.3786], ['19970320',2.3786], ['19970321',2.3923], ['19970324',2.3923], ['19970325',2.4067], ['19970326',2.3786], ['19970327',2.3786], ['19970331',2.3786], ['19970401',2.3786], ['19970402',2.3786], ['19970403',2.3786], ['19970404',2.3786], ['19970407',2.3786], ['19970408',2.3786], ['19970409',2.3786], ['19970410',2.3786], ['19970411',2.3786], ['19970414',2.3786], ['19970415',2.3505], ['19970416',2.3505], ['19970417',2.3505], ['19970421',2.3505], ['19970422',2.3505], ['19970423',2.3505], ['19970424',2.3505], ['19970425',2.3505], ['19970428',2.3505], ['19970429',2.3505], ['19970430',2.3505], ['19970502',2.3087], ['19970505',2.3087], ['19970506',2.3087], ['19970507',2.3087], ['19970508',2.3087], ['19970509',2.3087], ['19970512',2.3087], ['19970513',2.2806], ['19970514',2.2806], ['19970515',2.2806], ['19970516',2.2806], ['19970519',2.2806], ['19970520',2.2806], ['19970522',2.2806], ['19970523',2.2806], ['19970526',2.2806], ['19970527',2.2806], ['19970528',2.2806], ['19970529',2.2806], ['19970530',2.2806], ['19970602',2.2806], ['19970603',2.2388], ['19970604',2.2388], ['19970605',2.2388], ['19970606',2.2388], ['19970609',2.2388], ['19970610',2.2388], ['19970611',2.2388], ['19970612',2.1970], ['19970613',2.1970], ['19970616',2.1970], ['19970617',2.1970], ['19970618',2.1970], ['19970619',2.1970], ['19970620',2.1970], ['19970623',2.1970], ['19970624',2.1825], ['19970625',2.2106], ['19970626',2.1825], ['19970627',2.2106], ['19970630',2.2106], ['19970701',2.2388], ['19970702',2.2388], ['19970703',2.2388], ['19970704',2.2388], ['19970707',2.2388], ['19970708',2.2388], ['19970709',2.2388], ['19970710',2.2388], ['19970711',2.2388], ['19970714',2.1689], ['19970715',2.1689], ['19970716',2.1689], ['19970717',2.1689], ['19970718',2.1689], ['19970721',2.1689], ['19970722',2.1825], ['19970723',2.1825], ['19970724',2.1825], ['19970725',2.2243], ['19970728',2.2388], ['19970729',2.2388], ['19970730',2.2106], ['19970731',2.2106], ['19970801',2.2243], ['19970804',2.2243], ['19970805',2.2243], ['19970806',2.2243], ['19970807',2.2243], ['19970808',2.1689], ['19970811',2.1970], ['19970812',2.1970], ['19970813',2.1825], ['19970814',2.1825], ['19970815',2.1825], ['19970818',2.2243], ['19970819',2.2388], ['19970820',2.2243], ['19970821',2.2243], ['19970822',2.2243], ['19970825',2.1970], ['19970826',2.1825], ['19970827',2.1825], ['19970828',2.1825], ['19970829',2.0989], ['19970901',2.0989], ['19970902',2.0290], ['19970903',2.0290], ['19970904',2.0290], ['19970905',2.0290], ['19970908',2.0290], ['19970909',2.1689], ['19970910',2.1689], ['19970911',2.1689], ['19970912',2.1825], ['19970915',2.1689], ['19970916',2.1689], ['19970917',2.1689], ['19970918',2.1689], ['19970919',2.1689], ['19970922',2.0989], ['19970923',2.0989], ['19970924',2.0989], ['19970925',2.0989], ['19970926',2.0989], ['19970929',2.1407], ['19970930',2.1407], ['19971001',2.2243], ['19971002',2.2243], ['19971003',2.2243], ['19971006',2.2243], ['19971007',2.2243], ['19971008',2.2243], ['19971009',2.1544], ['19971010',2.1544], ['19971013',2.1544], ['19971014',2.1544], ['19971015',2.1544], ['19971016',2.0290], ['19971017',2.0290], ['19971020',2.0290], ['19971021',2.0290], ['19971022',2.0290], ['19971023',2.0290], ['19971024',2.0290], ['19971027',2.0290], ['19971028',2.0290], ['19971029',1.8892], ['19971031',1.8892], ['19971103',1.8956], ['19971104',1.8892], ['19971105',1.8892], ['19971106',1.8892], ['19971107',1.8892], ['19971110',1.8892], ['19971111',1.8892], ['19971112',1.8193], ['19971113',1.8193], ['19971114',1.8892], ['19971117',1.8892], ['19971118',1.8892], ['19971119',1.8892], ['19971120',1.8892], ['19971121',1.7486], ['19971124',1.7486], ['19971125',1.7486], ['19971126',1.7486], ['19971127',1.7486], ['19971128',1.6787], ['19971201',1.6787], ['19971202',1.6787], ['19971203',1.6787], ['19971204',1.6787], ['19971205',1.6787], ['19971208',1.6787], ['19971209',1.7486], ['19971210',1.7486], ['19971211',1.7486], ['19971212',1.7486], ['19971215',1.7486], ['19971216',1.7486], ['19971217',1.7486], ['19971218',1.7486], ['19971219',1.7486], ['19971222',1.7486], ['19971223',1.7486], ['19971224',1.7486], ['19971226',1.7486], ['19971229',1.7486], ['19971230',1.7486], ['19971231',1.7486], ['19980102',1.7486], ['19980105',1.7486], ['19980106',1.7486], ['19980107',1.7486], ['19980108',1.7486], ['19980109',1.7486], ['19980112',1.6088], ['19980113',1.3990], ['19980114',1.6088], ['19980115',1.6088], ['19980116',1.6088], ['19980119',1.6088], ['19980120',1.6088], ['19980121',1.6088], ['19980122',1.6088], ['19980123',1.6088], ['19980126',1.6088], ['19980127',1.5951], ['19980202',1.5951], ['19980203',1.5951], ['19980204',1.6023], ['19980205',1.6023], ['19980206',1.6023], ['19980209',1.5951], ['19980210',1.5951], ['19980211',1.5951], ['19980212',1.5951], ['19980213',1.5814], ['19980216',1.5597], ['19980217',1.5597], ['19980218',1.5597], ['19980219',1.5597], ['19980220',1.5597], ['19980223',1.5597], ['19980224',1.5597], ['19980225',1.5597], ['19980226',1.5389], ['19980227',1.5814], ['19980302',1.5814], ['19980303',1.5814], ['19980304',1.5814], ['19980305',1.5389], ['19980306',1.5389], ['19980309',1.5389], ['19980310',1.5389], ['19980311',1.5389], ['19980312',1.5389], ['19980313',1.5389], ['19980316',1.5389], ['19980317',1.5389], ['19980318',1.5389], ['19980319',1.6088], ['19980320',1.6088], ['19980323',1.6088], ['19980324',1.6088], ['19980325',1.6088], ['19980326',1.5389], ['19980327',1.6088], ['19980330',1.6088], ['19980331',1.6088], ['19980401',1.6088], ['19980402',1.6088], ['19980403',1.6088], ['19980406',1.6088], ['19980408',1.6088], ['19980409',1.6088], ['19980413',1.6088], ['19980414',1.6088], ['19980415',1.6088], ['19980416',1.5389], ['19980417',1.5389], ['19980420',1.5389], ['19980421',1.6232], ['19980422',1.6232], ['19980423',1.6232], ['19980424',1.6088], ['19980427',1.6088], ['19980428',1.6088], ['19980429',1.6088], ['19980430',1.6088], ['19980504',1.6088], ['19980505',1.6088], ['19980506',1.6088], ['19980507',1.6088], ['19980508',1.6023], ['19980512',1.6023], ['19980513',1.6023], ['19980514',1.6023], ['19980515',1.6023], ['19980518',1.6023], ['19980519',1.5951], ['19980520',1.5951], ['19980521',1.5951], ['19980522',1.5951], ['19980525',1.5951], ['19980526',1.5951], ['19980527',1.5951], ['19980528',1.5879], ['19980529',1.5879], ['19980601',1.5879], ['19980602',1.5879], ['19980603',1.5879], ['19980604',1.5814], ['19980605',1.5879], ['19980608',1.5879], ['19980609',1.5951], ['19980610',1.5951], ['19980611',1.5951], ['19980612',1.5951], ['19980615',1.5951], ['19980616',1.4689], ['19980617',1.4689], ['19980618',1.4689], ['19980619',1.4689], ['19980622',1.5389], ['19980623',1.5389], ['19980624',1.5389], ['19980625',1.5389], ['19980626',1.5389], ['19980629',1.4689], ['19980630',1.4689], ['19980701',1.4689], ['19980702',1.4689], ['19980703',1.4689], ['19980706',1.4689], ['19980707',1.4689], ['19980708',1.4689], ['19980709',1.4689], ['19980710',1.4689], ['19980713',1.2592], ['19980714',1.4689], ['19980715',1.4689], ['19980716',1.4689], ['19980717',1.4689], ['19980720',1.4689], ['19980721',1.4689], ['19980722',1.4689], ['19980723',1.4689], ['19980724',1.4689], ['19980727',1.4689], ['19980728',1.4625], ['19980729',1.4689], ['19980730',1.4625], ['19980731',1.4625], ['19980803',1.4625], ['19980804',1.4625], ['19980805',1.4625], ['19980806',1.4625], ['19980807',1.4625], ['19980811',1.4553], ['19980812',1.4553], ['19980813',1.4344], ['19980814',1.4344], ['19980817',1.4344], ['19980818',1.4344], ['19980819',1.3990], ['19980820',1.3990], ['19980821',1.3990], ['19980824',1.3990], ['19980825',1.3918], ['19980826',1.3918], ['19980827',1.3918], ['19980828',1.3918], ['19980831',1.3500], ['19980901',1.3500], ['19980902',1.3500], ['19980903',1.3500], ['19980904',1.3500], ['19980907',1.3500], ['19980908',1.3291], ['19980909',1.3291], ['19980910',1.2592], ['19980911',1.2946], ['19980914',1.2592], ['19980915',1.2592], ['19980916',1.2592], ['19980917',1.2592], ['19980918',1.2592], ['19980921',1.3291], ['19980922',1.3155], ['19980923',1.3219], ['19980924',1.3219], ['19980925',1.3219], ['19980928',1.3219], ['19980929',1.3219], ['19980930',1.3219], ['19981001',1.2946], ['19981002',1.2946], ['19981005',1.2592], ['19981006',1.2520], ['19981007',1.2946], ['19981008',1.2946], ['19981009',1.2946], ['19981012',1.2946], ['19981013',1.2946], ['19981014',1.2946], ['19981015',1.2946], ['19981016',1.2946], ['19981020',1.2946], ['19981021',1.2873], ['19981022',1.2873], ['19981023',1.2801], ['19981026',1.2801], ['19981027',1.2873], ['19981028',1.2873], ['19981029',1.2873], ['19981030',1.2946], ['19981102',1.3291], ['19981103',1.3436], ['19981104',1.3436], ['19981105',1.3436], ['19981106',1.3436], ['19981109',1.3010], ['19981110',1.2592], ['19981111',1.2946], ['19981112',1.2946], ['19981113',1.2946], ['19981116',1.2520], ['19981117',1.2520], ['19981118',1.2520], ['19981119',1.2520], ['19981120',1.2592], ['19981123',1.2729], ['19981124',1.2729], ['19981125',1.2729], ['19981126',1.2592], ['19981127',1.2247], ['19981130',1.2247], ['19981201',1.2247], ['19981202',1.2247], ['19981203',1.2247], ['19981204',1.2174], ['19981207',1.2174], ['19981208',1.2174], ['19981209',1.1965], ['19981210',1.1893], ['19981211',1.1893], ['19981214',1.1893], ['19981215',1.1893], ['19981216',1.1893], ['19981217',1.1893], ['19981218',1.1965], ['19981221',1.1893], ['19981222',1.1893], ['19981223',1.1893], ['19981224',1.2030], ['19981228',1.1893], ['19981229',1.1893], ['19981230',1.1893], ['19981231',1.1893], ['19990104',1.1893], ['19990105',1.1539], ['19990106',1.1893], ['19990107',1.1893], ['19990108',1.2383], ['19990111',1.2729], ['19990112',1.2664], ['19990113',1.2520], ['19990114',1.2174], ['19990115',1.1756], ['19990118',1.1893], ['19990120',1.1893], ['19990121',1.1893], ['19990122',1.1821], ['19990125',1.1684], ['19990126',1.1684], ['19990127',1.1403], ['19990128',1.1266], ['19990129',1.1194], ['19990201',1.1194], ['19990202',1.1194], ['19990203',1.1057], ['19990204',1.0985], ['19990205',1.0985], ['19990208',1.0985], ['19990209',1.0350], ['19990210',1.0213], ['19990211',1.0005], ['19990212',0.9796], ['19990215',0.9796], ['19990218',0.9796], ['19990219',0.9796], ['19990222',0.9796], ['19990223',0.9796], ['19990224',0.9796], ['19990225',0.9723], ['19990226',1.0350], ['19990301',1.0286], ['19990302',1.0286], ['19990303',1.0286], ['19990304',1.0286], ['19990305',1.0350], ['19990308',0.9932], ['19990309',0.9796], ['19990310',0.9796], ['19990311',0.9796], ['19990312',0.9796], ['19990315',0.9796], ['19990316',0.9932], ['19990317',0.9932], ['19990318',0.9932], ['19990319',0.9932], ['19990322',0.9932], ['19990323',1.0005], ['19990324',1.0005], ['19990325',1.0005], ['19990326',1.0077], ['19990330',1.0213], ['19990331',1.0077], ['19990401',1.0567], ['19990405',1.0840], ['19990406',1.0840], ['19990407',1.0631], ['19990408',1.0631], ['19990409',1.0913], ['19990412',1.0776], ['19990413',1.1057], ['19990414',1.1266], ['19990415',1.1539], ['19990416',1.1893], ['19990419',1.2174], ['19990420',1.1965], ['19990421',1.2311], ['19990422',1.2455], ['19990423',1.2383], ['19990426',1.2592], ['19990427',1.2729], ['19990428',1.2520], ['19990429',1.2311], ['19990430',1.2455], ['19990503',1.3291], ['19990504',1.3364], ['19990505',1.5742], ['19990506',1.6088], ['19990507',1.4762], ['19990510',1.4199], ['19990511',1.4480], ['19990512',1.5043], ['19990513',1.4834], ['19990514',1.4689], ['19990517',1.4480], ['19990518',1.4344], ['19990519',1.4344], ['19990520',1.4480], ['19990521',1.4480], ['19990524',1.4971], ['19990525',1.4898], ['19990526',1.5107], ['19990527',1.5670], ['19990528',1.5742], ['19990531',1.6088], ['19990601',1.6088], ['19990602',1.6023], ['19990603',1.5951], ['19990604',1.5951], ['19990607',1.5951], ['19990608',1.5814], ['19990609',1.5814], ['19990610',1.5814], ['19990611',1.5814], ['19990614',1.6088], ['19990615',1.5879], ['19990616',1.5879], ['19990617',1.5814], ['19990618',1.5879], ['19990621',1.6441], ['19990622',1.5533], ['19990623',1.5533], ['19990624',1.5533], ['19990625',1.5533], ['19990628',1.5252], ['19990629',1.5180], ['19990630',1.5043], ['19990701',1.5043], ['19990702',1.5107], ['19990705',1.4898], ['19990706',1.4408], ['19990707',1.3918], ['19990708',1.3918], ['19990709',1.4199], ['19990712',1.4063], ['19990713',1.3918], ['19990714',1.4344], ['19990715',1.3854], ['19990716',1.3572], ['19990719',1.3572], ['19990720',1.3436], ['19990721',1.3364], ['19990722',1.3436], ['19990723',1.3291], ['19990726',1.3155], ['19990727',1.3291], ['19990728',1.3436], ['19990729',1.3436], ['19990730',1.3436], ['19990802',1.3572], ['19990803',1.3500], ['19990804',1.3436], ['19990805',1.3219], ['19990806',1.3291], ['19990810',1.3291], ['19990811',1.3291], ['19990812',1.3291], ['19990813',1.3010], ['19990816',1.3219], ['19990817',1.3155], ['19990818',1.3155], ['19990819',1.3155], ['19990820',1.3291], ['19990823',1.3709], ['19990824',1.3364], ['19990825',1.3364], ['19990826',1.3291], ['19990827',1.3291], ['19990830',1.3436], ['19990831',1.3155], ['19990901',1.3155], ['19990902',1.3291], ['19990903',1.3155], ['19990906',1.3155], ['19990907',1.3082], ['19990908',1.3082], ['19990909',1.3010], ['19990910',1.3010], ['19990913',1.3010], ['19990914',1.3010], ['19990915',1.3010], ['19990916',1.3010], ['19990917',1.3291], ['19990920',1.3219], ['19990921',1.3082], ['19990922',1.3219], ['19990923',1.3291], ['19990924',1.3082], ['19990927',1.2946], ['19990928',1.2873], ['19990929',1.2729], ['19990930',1.2592], ['19991001',1.2664], ['19991004',1.2664], ['19991005',1.2664], ['19991006',1.2664], ['19991007',1.2664], ['19991008',1.2664], ['19991011',1.2946], ['19991012',1.2946], ['19991013',1.2946], ['19991014',1.2946], ['19991015',1.2729], ['19991018',1.2383], ['19991019',1.2455], ['19991020',1.2592], ['19991021',1.2946], ['19991022',1.2946], ['19991025',1.2873], ['19991026',1.2801], ['19991027',1.2873], ['19991028',1.2873], ['19991029',1.2946], ['19991101',1.2946], ['19991102',1.2946], ['19991103',1.3155], ['19991104',1.3291], ['19991105',1.3291], ['19991109',1.3291], ['19991110',1.3436], ['19991111',1.3436], ['19991112',1.3436], ['19991115',1.3436], ['19991116',1.3572], ['19991117',1.3572], ['19991118',1.3645], ['19991119',1.3645], ['19991122',1.3645], ['19991123',1.3572], ['19991124',1.3645], ['19991125',1.3645], ['19991126',1.3645], ['19991129',1.3645], ['19991130',1.3500], ['19991201',1.3500], ['19991202',1.3291], ['19991203',1.3291], ['19991206',1.3436], ['19991207',1.3436], ['19991208',1.3500], ['19991209',1.3500], ['19991210',1.3572], ['19991213',1.3572], ['19991214',1.3572], ['19991215',1.3500], ['19991216',1.3364], ['19991217',1.3500], ['19991220',1.3436], ['19991221',1.3436], ['19991222',1.3500], ['19991223',1.3436], ['19991224',1.3155], ['19991227',1.3500], ['19991228',1.3572], ['19991229',1.3291], ['19991230',1.3500], ['20000103',1.3572], ['20000104',1.3155], ['20000105',1.3155], ['20000106',1.3291], ['20000107',1.3155], ['20000110',1.3155], ['20000111',1.3155], ['20000112',1.3010], ['20000113',1.3010], ['20000114',1.3010], ['20000117',1.3082], ['20000118',1.3082], ['20000119',1.3082], ['20000120',1.3082], ['20000121',1.2946], ['20000124',1.2729], ['20000125',1.2664], ['20000126',1.2455], ['20000127',1.2520], ['20000128',1.2592], ['20000131',1.2592], ['20000201',1.2592], ['20000202',1.2592], ['20000203',1.2592], ['20000204',1.2383], ['20000208',1.2383], ['20000209',1.2311], ['20000210',1.2311], ['20000211',1.2102], ['20000214',1.1965], ['20000215',1.1965], ['20000216',1.2102], ['20000217',1.2174], ['20000218',1.2174], ['20000221',1.2174], ['20000222',1.2174], ['20000223',1.2174], ['20000224',1.2174], ['20000225',1.2174], ['20000228',1.1893], ['20000229',1.1756], ['20000301',1.1821], ['20000302',1.1821], ['20000303',1.1821], ['20000306',1.1821], ['20000307',1.1194], ['20000308',1.1194], ['20000309',1.1122], ['20000310',1.1057], ['20000313',1.1057], ['20000314',1.1194], ['20000315',1.1194], ['20000317',1.1194], ['20000320',1.0913], ['20000321',1.0985], ['20000322',1.1057], ['20000323',1.1057], ['20000324',1.1330], ['20000327',1.1330], ['20000328',1.1330], ['20000329',1.1330], ['20000330',1.1330], ['20000331',1.1330], ['20000403',1.1194], ['20000404',1.1194], ['20000405',1.1194], ['20000406',1.1194], ['20000407',1.1194], ['20000410',1.1194], ['20000411',1.1122], ['20000412',1.1194], ['20000413',1.1266], ['20000414',1.1266], ['20000417',1.0840], ['20000418',1.0840], ['20000419',1.0840], ['20000420',1.0840], ['20000424',1.0840], ['20000425',1.0840], ['20000426',1.0913], ['20000427',1.1122], ['20000428',1.1122], ['20000502',1.1122], ['20000503',1.1194], ['20000504',1.1194], ['20000505',1.1194], ['20000508',1.1194], ['20000509',1.1194], ['20000510',1.1122], ['20000511',1.1057], ['20000512',1.1057], ['20000515',1.1057], ['20000516',1.1057], ['20000517',1.0985], ['20000519',1.0985], ['20000522',1.0985], ['20000523',1.0567], ['20000524',1.0567], ['20000525',1.0422], ['20000526',1.0350], ['20000529',1.0350], ['20000530',1.0213], ['20000531',1.0213], ['20000601',1.0077], ['20000602',1.0213], ['20000605',1.0213], ['20000606',1.0350], ['20000607',1.0350], ['20000608',1.0422], ['20000609',0.9651], ['20000612',0.9651], ['20000613',0.9651], ['20000614',0.9587], ['20000615',0.9651], ['20000616',0.9723], ['20000619',0.9651], ['20000620',0.9796], ['20000621',0.9796], ['20000622',0.9796], ['20000623',0.9868], ['20000626',1.0077], ['20000627',1.0077], ['20000628',1.0422], ['20000629',1.0495], ['20000630',1.0495], ['20000703',1.0631], ['20000704',1.0840], ['20000705',1.0840], ['20000706',1.0704], ['20000707',1.0704], ['20000710',1.0704], ['20000711',1.0495], ['20000712',1.0567], ['20000713',1.0567], ['20000714',1.0567], ['20000717',1.0567], ['20000718',1.0567], ['20000719',1.0422], ['20000720',1.0422], ['20000721',1.0567], ['20000724',1.0495], ['20000725',1.0495], ['20000726',1.0495], ['20000727',1.0422], ['20000728',1.0350], ['20000731',1.0567], ['20000801',1.0495], ['20000802',1.0840], ['20000803',1.0840], ['20000804',1.0840], ['20000807',1.0776], ['20000808',1.0776], ['20000810',1.0776], ['20000811',1.0913], ['20000814',1.0840], ['20000815',1.0840], ['20000816',1.1057], ['20000817',1.1057], ['20000818',1.0776], ['20000821',1.1057], ['20000822',1.1194], ['20000823',1.1194], ['20000824',1.1194], ['20000825',1.1194], ['20000828',1.1194], ['20000829',1.1194], ['20000830',1.1194], ['20000831',1.1194], ['20000901',1.1194], ['20000904',1.1194], ['20000905',1.1194], ['20000906',1.1194], ['20000907',1.1266], ['20000908',1.1266], ['20000911',1.1266], ['20000912',1.1403], ['20000913',1.1403], ['20000914',1.1403], ['20000915',1.1403], ['20000918',1.1266], ['20000919',1.1266], ['20000920',1.1266], ['20000921',1.1330], ['20000922',1.1330], ['20000925',1.1330], ['20000926',1.1330], ['20000927',1.1330], ['20000928',1.1330], ['20000929',1.1266], ['20001002',1.1194], ['20001003',1.1194], ['20001004',1.1194], ['20001005',1.1194], ['20001006',1.1194], ['20001009',1.1194], ['20001010',1.0913], ['20001011',1.0985], ['20001012',1.0985], ['20001013',1.0985], ['20001016',1.0985], ['20001017',1.0985], ['20001018',1.0985], ['20001019',1.0985], ['20001020',1.0985], ['20001023',1.0985], ['20001024',1.0985], ['20001025',1.0985], ['20001027',1.0985], ['20001030',1.0985], ['20001031',1.1057], ['20001101',1.1057], ['20001102',1.1057], ['20001103',1.1057], ['20001106',1.1057], ['20001107',1.1057], ['20001108',1.1057], ['20001109',1.1057], ['20001110',1.1057], ['20001113',1.1057], ['20001114',1.1057], ['20001115',1.1057], ['20001116',1.1057], ['20001117',1.1057], ['20001120',1.0704], ['20001121',1.0704], ['20001122',1.0704], ['20001123',1.1057], ['20001124',1.1057], ['20001127',1.1057], ['20001128',1.1057], ['20001129',1.1057], ['20001130',1.1057], ['20001201',1.1057], ['20001204',1.1057], ['20001205',1.1057], ['20001206',1.1057], ['20001207',1.1057], ['20001208',1.0631], ['20001211',1.0704], ['20001212',1.0840], ['20001213',1.0840], ['20001214',1.0840], ['20001215',1.0840], ['20001218',1.0840], ['20001219',1.0840], ['20001220',1.0840], ['20001221',1.0495], ['20001222',1.0495], ['20001226',1.0495], ['20001228',1.0495], ['20001229',1.0840], ['20010102',1.0840], ['20010103',1.0840], ['20010104',1.0840], ['20010105',1.0840], ['20010108',1.0840], ['20010109',1.0840], ['20010110',1.0840], ['20010111',1.0840], ['20010112',1.0840], ['20010115',1.0840], ['20010116',1.0840], ['20010117',1.0840], ['20010118',1.0631], ['20010119',1.0631], ['20010122',1.0631], ['20010123',1.0631], ['20010126',1.0631], ['20010129',1.0631], ['20010130',1.0631], ['20010131',1.0631], ['20010201',1.0631], ['20010202',1.0631], ['20010205',1.0631], ['20010206',1.0631], ['20010207',1.0631], ['20010208',1.0631], ['20010209',1.0631], ['20010212',1.0631], ['20010213',1.0631], ['20010214',1.0631], ['20010215',1.0495], ['20010216',1.0495], ['20010219',1.0495], ['20010220',1.0495], ['20010221',1.0495], ['20010222',1.0495], ['20010223',1.0495], ['20010226',1.0495], ['20010227',1.0495], ['20010228',1.0495], ['20010301',1.0495], ['20010302',1.0495], ['20010305',1.0495], ['20010307',1.0495], ['20010308',1.0495], ['20010309',1.0495], ['20010312',1.0495], ['20010313',1.0495], ['20010314',1.0495], ['20010315',1.0495], ['20010316',1.0495], ['20010319',1.0350], ['20010320',1.0350], ['20010321',1.0350], ['20010322',1.0350], ['20010323',1.0350], ['20010326',1.0350], ['20010327',1.0213], ['20010328',1.0213], ['20010329',1.0213], ['20010330',1.0213], ['20010402',0.9796], ['20010403',0.9723], ['20010404',0.7907], ['20010405',0.8952], ['20010406',0.8888], ['20010409',0.8815], ['20010410',0.8253], ['20010411',0.8397], ['20010412',0.8325], ['20010416',0.8325], ['20010417',0.8397], ['20010418',0.8325], ['20010419',0.8325], ['20010420',0.8325], ['20010423',0.8397], ['20010424',0.8397], ['20010425',0.8397], ['20010426',0.8462], ['20010427',0.8606], ['20010430',0.8679], ['20010502',0.8534], ['20010503',0.8534], ['20010504',0.8534], ['20010508',0.8534], ['20010509',0.8534], ['20010510',0.8534], ['20010511',0.7907], ['20010514',0.7835], ['20010515',0.7554], ['20010516',0.7626], ['20010517',0.7626], ['20010518',0.7554], ['20010521',0.7489], ['20010522',0.7417], ['20010523',0.7208], ['20010524',0.7136], ['20010525',0.7136], ['20010528',0.7136], ['20010529',0.7136], ['20010530',0.7136], ['20010531',0.7136], ['20010601',0.7136], ['20010604',0.7136], ['20010605',0.7208], ['20010606',0.7136], ['20010607',0.7063], ['20010608',0.7136], ['20010611',0.7136], ['20010612',0.7136], ['20010613',0.7136], ['20010614',0.7063], ['20010615',0.7208], ['20010618',0.6999], ['20010619',0.7272], ['20010620',0.7208], ['20010621',0.7208], ['20010622',0.7136], ['20010625',0.7208], ['20010626',0.7272], ['20010627',0.7272], ['20010628',0.7272], ['20010629',0.7136], ['20010702',0.7136], ['20010703',0.7136], ['20010704',0.7063], ['20010705',0.7063], ['20010706',0.7208], ['20010709',0.6999], ['20010710',0.6999], ['20010711',0.6999], ['20010712',0.7136], ['20010713',0.7136], ['20010716',0.7136], ['20010717',0.7136], ['20010718',0.6999], ['20010719',0.6999], ['20010720',0.6927], ['20010723',0.7272], ['20010724',0.7272], ['20010725',0.7272], ['20010726',0.7272], ['20010727',0.7272], ['20010730',0.7272], ['20010731',0.7272], ['20010801',0.7272], ['20010802',0.7272], ['20010803',0.7272], ['20010806',0.7272], ['20010807',0.7272], ['20010808',0.7272], ['20010810',0.7272], ['20010813',0.7272], ['20010814',0.7272], ['20010815',0.7272], ['20010816',0.7208], ['20010817',0.7208], ['20010820',0.7208], ['20010821',0.7208], ['20010822',0.7063], ['20010823',0.7063], ['20010824',0.7063], ['20010827',0.7063], ['20010828',0.7063], ['20010829',0.7063], ['20010830',0.7063], ['20010831',0.7063], ['20010903',0.6927], ['20010904',0.6927], ['20010905',0.6927], ['20010906',0.7063], ['20010907',0.7208], ['20010910',0.7208], ['20010911',0.7208], ['20010912',0.7208], ['20010913',0.7208], ['20010914',0.7208], ['20010917',0.7208], ['20010918',0.7208], ['20010919',0.6646], ['20010920',0.6927], ['20010921',0.6927], ['20010924',0.6927], ['20010925',0.6927], ['20010926',0.6927], ['20010927',0.6718], ['20010928',0.6646], ['20011001',0.6646], ['20011002',0.6573], ['20011003',0.6155], ['20011004',0.5874], ['20011005',0.6083], ['20011008',0.5946], ['20011009',0.5786], ['20011010',0.6228], ['20011011',0.6228], ['20011012',0.6228], ['20011015',0.6228], ['20011016',0.6228], ['20011017',0.6429], ['20011018',0.6228], ['20011019',0.6147], ['20011022',0.6348], ['20011023',0.6348], ['20011024',0.6308], ['20011025',0.6308], ['20011026',0.6308], ['20011029',0.6308], ['20011030',0.6308], ['20011031',0.6348], ['20011101',0.6348], ['20011102',0.6348], ['20011105',0.6348], ['20011106',0.6348], ['20011107',0.6268], ['20011108',0.6268], ['20011109',0.6308], ['20011112',0.6308], ['20011113',0.6308], ['20011115',0.6308], ['20011116',0.6348], ['20011119',0.6348], ['20011120',0.6348], ['20011121',0.6107], ['20011122',0.6107], ['20011123',0.6388], ['20011126',0.6308], ['20011127',0.6308], ['20011128',0.6268], ['20011129',0.6268], ['20011130',0.6268], ['20011203',0.6268], ['20011204',0.6228], ['20011205',0.6228], ['20011206',0.6228], ['20011207',0.6188], ['20011210',0.6188], ['20011211',0.6268], ['20011212',0.6268], ['20011213',0.6228], ['20011214',0.6268], ['20011218',0.6268], ['20011219',0.6228], ['20011220',0.6228], ['20011221',0.6228], ['20011224',0.6228], ['20011226',0.6228], ['20011227',0.6228], ['20011228',0.6107], ['20011231',0.6107], ['20020102',0.6147], ['20020103',0.6147], ['20020104',0.6308], ['20020107',0.6348], ['20020108',0.6429], ['20020109',0.6429], ['20020110',0.6429], ['20020111',0.6429], ['20020114',0.6509], ['20020115',0.6509], ['20020116',0.6509], ['20020117',0.6469], ['20020118',0.6469], ['20020121',0.6429], ['20020122',0.6549], ['20020123',0.6509], ['20020124',0.6509], ['20020125',0.6670], ['20020128',0.6830], ['20020129',0.6750], ['20020130',0.6750], ['20020131',0.6750], ['20020201',0.6750], ['20020204',0.6670], ['20020205',0.6710], ['20020206',0.6710], ['20020207',0.6710], ['20020208',0.6710], ['20020211',0.6710], ['20020214',0.6951], ['20020215',0.6911], ['20020218',0.6951], ['20020219',0.6951], ['20020220',0.6951], ['20020221',0.6951], ['20020222',0.6951], ['20020225',0.6951], ['20020226',0.6951], ['20020227',0.6951], ['20020228',0.6991], ['20020301',0.6991], ['20020304',0.6991], ['20020305',0.6911], ['20020306',0.6911], ['20020307',0.6911], ['20020308',0.6911], ['20020311',0.6911], ['20020312',0.6911], ['20020313',0.6911], ['20020314',0.6911], ['20020315',0.6670], ['20020318',0.6750], ['20020319',0.6750], ['20020320',0.6750], ['20020321',0.6750], ['20020322',0.6750], ['20020325',0.6750], ['20020326',0.6750], ['20020327',0.6750], ['20020328',0.6830], ['20020401',0.6830], ['20020402',0.6710], ['20020403',0.6750], ['20020404',0.6710], ['20020405',0.6670], ['20020408',0.6630], ['20020409',0.6630], ['20020410',0.6630], ['20020411',0.6589], ['20020412',0.6589], ['20020415',0.6589], ['20020416',0.6589], ['20020417',0.6589], ['20020418',0.6589], ['20020419',0.6589], ['20020422',0.6589], ['20020423',0.6589], ['20020424',0.6589], ['20020425',0.6589], ['20020426',0.6589], ['20020429',0.6549], ['20020430',0.6549], ['20020502',0.6429], ['20020503',0.6429], ['20020506',0.6549], ['20020507',0.6549], ['20020508',0.6549], ['20020509',0.6549], ['20020510',0.6549], ['20020513',0.6509], ['20020514',0.6509], ['20020515',0.6509], ['20020516',0.6509], ['20020517',0.6509], ['20020520',0.6509], ['20020521',0.6509], ['20020522',0.6509], ['20020523',0.6509], ['20020524',0.6509], ['20020528',0.6509], ['20020529',0.6509], ['20020530',0.6429], ['20020531',0.6469], ['20020603',0.6469], ['20020604',0.6469], ['20020605',0.6469], ['20020606',0.6549], ['20020607',0.6549], ['20020610',0.6549], ['20020611',0.6549], ['20020612',0.6549], ['20020613',0.6549], ['20020614',0.6549], ['20020617',0.6549], ['20020618',0.6549], ['20020619',0.6348], ['20020620',0.6348], ['20020621',0.6348], ['20020624',0.6348], ['20020625',0.6348], ['20020626',0.6348], ['20020627',0.6549], ['20020628',0.6549], ['20020701',0.6549], ['20020702',0.6549], ['20020703',0.6549], ['20020704',0.6348], ['20020705',0.6348], ['20020708',0.6348], ['20020709',0.6348], ['20020710',0.6348], ['20020711',0.6429], ['20020712',0.6429], ['20020715',0.6429], ['20020716',0.6429], ['20020717',0.6429], ['20020718',0.6429], ['20020719',0.6348], ['20020722',0.6348], ['20020723',0.6348], ['20020724',0.6348], ['20020725',0.6348], ['20020726',0.6348], ['20020729',0.6348], ['20020730',0.6429], ['20020731',0.6429], ['20020801',0.6429], ['20020802',0.6308], ['20020805',0.6308], ['20020806',0.6308], ['20020807',0.6308], ['20020808',0.6308], ['20020812',0.6308], ['20020813',0.6308], ['20020814',0.6308], ['20020815',0.6308], ['20020816',0.6308], ['20020819',0.7232], ['20020820',0.7232], ['20020821',0.7232], ['20020822',0.7232], ['20020823',0.7232], ['20020826',0.7232], ['20020827',0.7232], ['20020828',0.7232], ['20020829',0.7232], ['20020830',0.7232], ['20020902',0.7232], ['20020903',0.7232], ['20020904',0.7232], ['20020905',0.7232], ['20020906',0.7232], ['20020909',0.7232], ['20020910',0.7232], ['20020911',0.7232], ['20020912',0.7232], ['20020913',0.7232], ['20020916',0.7232], ['20020917',0.7232], ['20020918',0.7232], ['20020919',0.7232], ['20020920',0.7232], ['20020923',0.7232], ['20020924',0.7232], ['20020925',0.7232], ['20020926',0.7232], ['20020927',0.7232], ['20020930',0.7232], ['20021001',0.7232], ['20021002',0.7232], ['20021003',0.7232], ['20021004',0.7232], ['20021007',0.7232], ['20021008',0.7232], ['20021009',0.7232], ['20021010',0.7232], ['20021011',0.7232], ['20021014',0.7232], ['20021015',0.7232], ['20021016',0.7232], ['20021017',0.7232], ['20021018',0.7232], ['20021021',0.7232], ['20021022',0.7232], ['20021023',0.7232], ['20021024',0.7232], ['20021025',0.7232], ['20021028',0.7152], ['20021029',0.7152], ['20021030',0.6830], ['20021031',0.6830], ['20021101',0.6830], ['20021105',0.6830], ['20021106',0.6830], ['20021107',0.6830], ['20021108',0.6750], ['20021111',0.6750], ['20021112',0.6750], ['20021113',0.6750], ['20021114',0.6750], ['20021115',0.6750], ['20021118',0.6750], ['20021119',0.6750], ['20021120',0.6750], ['20021121',0.6750], ['20021122',0.6830], ['20021125',0.6830], ['20021126',0.6830], ['20021127',0.6830], ['20021128',0.6830], ['20021129',0.6830], ['20021202',0.6830], ['20021203',0.6830], ['20021204',0.6830], ['20021205',0.6830], ['20021209',0.6830], ['20021210',0.6830], ['20021211',0.6830], ['20021212',0.6830], ['20021213',0.6830], ['20021216',0.6830], ['20021217',0.6830], ['20021218',0.6830], ['20021219',0.6830], ['20021220',0.6830], ['20021223',0.6830], ['20021224',0.6830], ['20021226',0.6830], ['20021227',0.6589], ['20021230',0.6589], ['20021231',0.6589], ['20030102',0.6589], ['20030103',0.6589], ['20030106',0.6589], ['20030107',0.6589], ['20030108',0.6589], ['20030109',0.6589], ['20030110',0.6589], ['20030113',0.6589], ['20030114',0.6589], ['20030115',0.6589], ['20030116',0.6429], ['20030117',0.6188], ['20030120',0.6188], ['20030121',0.6188], ['20030122',0.6188], ['20030123',0.6188], ['20030124',0.6188], ['20030127',0.6188], ['20030128',0.6188], ['20030129',0.6188], ['20030130',0.6188], ['20030131',0.6188], ['20030204',0.6188], ['20030205',0.6188], ['20030206',0.6188], ['20030207',0.5946], ['20030210',0.5946], ['20030211',0.5946], ['20030213',0.5946], ['20030214',0.5946], ['20030217',0.5946], ['20030218',0.5946], ['20030219',0.5946], ['20030220',0.6027], ['20030221',0.6027], ['20030224',0.6027], ['20030225',0.6027], ['20030226',0.6027], ['20030227',0.6027], ['20030228',0.6027], ['20030303',0.6027], ['20030304',0.6027], ['20030305',0.6027], ['20030306',0.6027], ['20030307',0.6027], ['20030310',0.6027], ['20030311',0.6027], ['20030312',0.6027], ['20030313',0.6027], ['20030314',0.6027], ['20030317',0.6027], ['20030318',0.6027], ['20030319',0.6027], ['20030320',0.6027], ['20030321',0.6027], ['20030324',0.6027], ['20030325',0.6027], ['20030326',0.6027], ['20030327',0.6027], ['20030328',0.5866], ['20030331',0.5866], ['20030401',0.5866], ['20030402',0.5866], ['20030403',0.5866], ['20030404',0.5866], ['20030407',0.5866], ['20030408',0.5866], ['20030409',0.5866], ['20030410',0.5866], ['20030411',0.5866], ['20030414',0.5786], ['20030415',0.5545], ['20030416',0.5545], ['20030417',0.5545], ['20030421',0.5545], ['20030422',0.5545], ['20030423',0.5545], ['20030424',0.5545], ['20030425',0.5545], ['20030428',0.5545], ['20030429',0.5585], ['20030430',0.5625], ['20030502',0.5625], ['20030505',0.5625], ['20030506',0.5625], ['20030507',0.5665], ['20030508',0.5665], ['20030509',0.5705], ['20030512',0.5705], ['20030513',0.5746], ['20030514',0.5746], ['20030516',0.6027], ['20030519',0.5826], ['20030520',0.5866], ['20030521',0.5866], ['20030522',0.5987], ['20030523',0.6027], ['20030526',0.6670], ['20030527',0.7232], ['20030528',0.7232], ['20030529',0.7232], ['20030530',0.7232], ['20030602',0.6830], ['20030603',0.6830], ['20030604',0.6830], ['20030605',0.7071], ['20030606',0.7071], ['20030609',0.7232], ['20030610',0.7473], ['20030611',0.8036], ['20030612',0.8679], ['20030613',0.8920], ['20030616',0.8920], ['20030617',0.9080], ['20030618',0.8920], ['20030619',0.8920], ['20030620',0.8920], ['20030623',0.8839], ['20030624',0.8518], ['20030625',0.8759], ['20030626',0.8277], ['20030627',0.8357], ['20030630',0.8518], ['20030701',0.8036], ['20030702',0.8036], ['20030703',0.8036], ['20030704',0.8036], ['20030707',0.8277], ['20030708',0.8277], ['20030709',0.8518], ['20030710',0.8277], ['20030711',0.8518], ['20030714',0.8759], ['20030715',0.8438], ['20030716',0.8438], ['20030717',0.8357], ['20030718',0.8277], ['20030721',0.8438], ['20030722',0.8438], ['20030723',0.8438], ['20030724',0.8277], ['20030725',0.8277], ['20030728',0.8518], ['20030729',0.8438], ['20030730',0.8438], ['20030731',0.8518], ['20030801',0.8438], ['20030804',0.8438], ['20030805',0.8438], ['20030806',0.8277], ['20030807',0.8277], ['20030808',0.8357], ['20030811',0.8438], ['20030812',0.8357], ['20030813',0.8357], ['20030814',0.8518], ['20030815',0.8518], ['20030818',0.8438], ['20030819',0.8438], ['20030820',0.8598], ['20030821',0.8598], ['20030822',0.8598], ['20030825',0.8438], ['20030826',0.8438], ['20030827',0.8438], ['20030828',0.8438], ['20030829',0.8438], ['20030901',0.8438], ['20030902',0.8438], ['20030903',0.8438], ['20030904',0.8438], ['20030905',0.8438], ['20030908',0.8679], ['20030909',0.8679], ['20030910',0.8518], ['20030911',0.8518], ['20030912',0.8518], ['20030915',0.8518], ['20030916',0.8518], ['20030917',0.8438], ['20030918',0.8438], ['20030919',0.8438], ['20030922',0.8438], ['20030923',0.8277], ['20030924',0.8518], ['20030925',0.8357], ['20030926',0.8438], ['20030929',0.8438], ['20030930',0.8438], ['20031001',0.8357], ['20031002',0.8438], ['20031003',0.8839], ['20031006',0.8839], ['20031007',0.8839], ['20031008',0.8839], ['20031009',0.8598], ['20031010',0.8598], ['20031013',0.8518], ['20031014',0.9402], ['20031016',0.9080], ['20031017',0.9080], ['20031020',0.9241], ['20031021',0.9241], ['20031022',0.9161], ['20031023',0.9000], ['20031027',0.8518], ['20031028',0.8196], ['20031029',0.8598], ['20031030',0.8277], ['20031031',0.8196], ['20031103',0.8277], ['20031104',0.8277], ['20031105',0.8357], ['20031106',0.8518], ['20031107',0.8277], ['20031110',0.8277], ['20031111',0.8196], ['20031112',0.8277], ['20031113',0.8277], ['20031114',0.8196], ['20031117',0.8196], ['20031118',0.8196], ['20031119',0.8196], ['20031120',0.8036], ['20031121',0.8036], ['20031124',0.8036], ['20031126',0.8036], ['20031127',0.8036], ['20031128',0.8438], ['20031201',0.8920], ['20031202',0.9000], ['20031203',0.9080], ['20031204',0.9080], ['20031205',0.9080], ['20031208',0.9080], ['20031209',0.9080], ['20031210',0.9080], ['20031211',0.9080], ['20031212',0.9080], ['20031215',0.9080], ['20031216',0.8839], ['20031217',0.8036], ['20031218',0.8518], ['20031219',0.8357], ['20031222',0.8357], ['20031223',0.8357], ['20031224',0.8357], ['20031226',0.8357], ['20031229',0.8357], ['20031230',0.8357], ['20031231',0.8357], ['20040102',0.8357], ['20040105',0.8357], ['20040106',0.8759], ['20040107',0.8679], ['20040108',0.8679], ['20040109',0.8679], ['20040112',0.8679], ['20040113',0.8679], ['20040114',0.8679], ['20040115',0.8679], ['20040116',0.8679], ['20040119',0.8759], ['20040120',0.8759], ['20040121',0.8759], ['20040126',0.8759], ['20040127',0.8759], ['20040128',0.8518], ['20040129',0.8518], ['20040130',0.8518], ['20040203',0.8357], ['20040204',0.8357], ['20040205',0.8357], ['20040206',0.8438], ['20040209',0.8438], ['20040210',0.8438], ['20040211',0.8518], ['20040212',0.8518], ['20040213',0.8518], ['20040216',0.8518], ['20040217',0.8518], ['20040218',0.8679], ['20040219',0.8518], ['20040220',0.8438], ['20040223',0.8598], ['20040224',0.8759], ['20040225',0.8598], ['20040226',0.8598], ['20040227',0.8759], ['20040301',0.8598], ['20040302',0.8598], ['20040303',0.8598], ['20040304',0.8598], ['20040305',0.8598], ['20040308',0.8598], ['20040309',0.8518], ['20040310',0.8518], ['20040311',0.8518], ['20040312',0.8518], ['20040315',0.8839], ['20040316',0.8839], ['20040317',0.8839], ['20040318',0.8438], ['20040319',0.8438], ['20040322',0.8438], ['20040323',0.8438], ['20040324',0.8438], ['20040325',0.8438], ['20040326',0.8438], ['20040329',0.8438], ['20040330',0.8438], ['20040331',0.8438], ['20040401',0.8438], ['20040402',0.8438], ['20040405',0.8438], ['20040406',0.8438], ['20040407',0.8357], ['20040408',0.8357], ['20040412',0.8357], ['20040413',0.8116], ['20040414',0.8196], ['20040415',0.8196], ['20040416',0.8196], ['20040419',0.8196], ['20040420',0.8196], ['20040421',0.7955], ['20040422',0.7955], ['20040423',0.7875], ['20040426',0.8116], ['20040427',0.8116], ['20040428',0.8116], ['20040429',0.8116], ['20040430',0.8116], ['20040503',0.8116], ['20040504',0.8116], ['20040505',0.8116], ['20040506',0.8116], ['20040507',0.8116], ['20040510',0.8116], ['20040511',0.8116], ['20040512',0.8116], ['20040513',0.8116], ['20040514',0.8116], ['20040517',0.8116], ['20040518',0.8116], ['20040519',0.8036], ['20040520',0.8036], ['20040521',0.8036], ['20040524',0.8036], ['20040525',0.8036], ['20040526',0.8036], ['20040527',0.8036], ['20040528',0.7634], ['20040531',0.7875], ['20040601',0.6911], ['20040603',0.6750], ['20040604',0.6750], ['20040607',0.6750], ['20040608',0.6750], ['20040609',0.6750], ['20040610',0.6589], ['20040611',0.6670], ['20040614',0.6670], ['20040615',0.6589], ['20040616',0.6509], ['20040617',0.6589], ['20040618',0.6509], ['20040621',0.6509], ['20040622',0.6509], ['20040623',0.6509], ['20040624',0.6509], ['20040625',0.6509], ['20040628',0.6509], ['20040629',0.6509], ['20040630',0.6429], ['20040701',0.6429], ['20040702',0.6429], ['20040705',0.6188], ['20040706',0.6188], ['20040707',0.6268], ['20040708',0.6268], ['20040709',0.6268], ['20040712',0.6509], ['20040713',0.6509], ['20040714',0.6429], ['20040715',0.6188], ['20040716',0.6188], ['20040719',0.6027], ['20040720',0.6027], ['20040721',0.6027], ['20040722',0.6027], ['20040723',0.6027], ['20040726',0.6027], ['20040727',0.6027], ['20040728',0.6027], ['20040729',0.6027], ['20040730',0.5866], ['20040802',0.5866], ['20040803',0.5866], ['20040804',0.5866], ['20040805',0.5866], ['20040806',0.5866], ['20040810',0.5866], ['20040811',0.5866], ['20040812',0.5866], ['20040813',0.5866], ['20040816',0.5866], ['20040817',0.5866], ['20040818',0.5866], ['20040819',0.5866], ['20040820',0.5866], ['20040823',0.5866], ['20040824',0.6027], ['20040825',0.6027], ['20040826',0.6027], ['20040827',0.6027], ['20040830',0.6027], ['20040831',0.6027], ['20040901',0.5786], ['20040902',0.5786], ['20040903',0.5786], ['20040906',0.5786], ['20040907',0.5786], ['20040908',0.5786], ['20040909',0.5786], ['20040910',0.5786], ['20040913',0.5786], ['20040914',0.5786], ['20040915',0.5625], ['20040916',0.5625], ['20040917',0.5705], ['20040920',0.5625], ['20040921',0.5625], ['20040922',0.5625], ['20040923',0.5625], ['20040924',0.5625], ['20040927',0.5625], ['20040928',0.5625], ['20040929',0.5625], ['20040930',0.5625], ['20041001',0.5625], ['20041004',0.5625], ['20041005',0.5625], ['20041006',0.5625], ['20041007',0.5625], ['20041008',0.5625], ['20041011',0.5464], ['20041012',0.5304], ['20041013',0.5304], ['20041014',0.5786], ['20041015',0.5786], ['20041018',0.5786], ['20041019',0.5786], ['20041020',0.5786], ['20041021',0.5786], ['20041022',0.5786], ['20041025',0.5786], ['20041026',0.5063], ['20041027',0.5625], ['20041028',0.5625], ['20041029',0.5384], ['20041101',0.5384], ['20041102',0.5384], ['20041103',0.5384], ['20041104',0.5384], ['20041105',0.5384], ['20041108',0.5384], ['20041109',0.5384], ['20041110',0.5384], ['20041112',0.5304], ['20041116',0.5304], ['20041117',0.5304], ['20041118',0.5304], ['20041119',0.5063], ['20041122',0.5063], ['20041123',0.5063], ['20041124',0.5063], ['20041125',0.5063], ['20041126',0.5063], ['20041129',0.5063], ['20041130',0.4902], ['20041201',0.5063], ['20041202',0.5063], ['20041203',0.5063], ['20041206',0.4862], ['20041207',0.4862], ['20041208',0.4982], ['20041209',0.4902], ['20041210',0.4902], ['20041213',0.4902], ['20041214',0.4902], ['20041215',0.4902], ['20041216',0.4902], ['20041217',0.4902], ['20041220',0.4902], ['20041221',0.4902], ['20041222',0.4902], ['20041223',0.4902], ['20041224',0.4902], ['20041227',0.4902], ['20041228',0.5063], ['20041229',0.5063], ['20041230',0.4982], ['20041231',0.4982], ['20050103',0.4982], ['20050104',0.4982], ['20050105',0.4902], ['20050106',0.4902], ['20050107',0.4902], ['20050110',0.4902], ['20050111',0.4902], ['20050112',0.4902], ['20050113',0.4821], ['20050114',0.4741], ['20050117',0.4741], ['20050118',0.4741], ['20050119',0.4902], ['20050120',0.4902], ['20050124',0.4741], ['20050125',0.4741], ['20050126',0.4741], ['20050127',0.4741], ['20050128',0.4741], ['20050131',0.4821], ['20050201',0.4821], ['20050202',0.4821], ['20050203',0.4821], ['20050204',0.4821], ['20050207',0.4821], ['20050208',0.4821], ['20050211',0.4821], ['20050214',0.4821], ['20050215',0.4942], ['20050216',0.4942], ['20050217',0.5063], ['20050218',0.5063], ['20050221',0.5063], ['20050222',0.5063], ['20050223',0.5063], ['20050224',0.5063], ['20050225',0.5063], ['20050228',0.5063], ['20050301',0.5063], ['20050302',0.5063], ['20050303',0.5063], ['20050304',0.5063], ['20050307',0.5063], ['20050308',0.4982], ['20050309',0.4821], ['20050310',0.5063], ['20050311',0.5063], ['20050314',0.5063], ['20050315',0.5063], ['20050316',0.5063], ['20050317',0.5063], ['20050318',0.5063], ['20050321',0.5063], ['20050322',0.5063], ['20050323',0.5063], ['20050324',0.5063], ['20050328',0.5063], ['20050329',0.4902], ['20050330',0.4902], ['20050331',0.4902], ['20050401',0.4902], ['20050404',0.4902], ['20050405',0.4902], ['20050406',0.5063], ['20050407',0.5143], ['20050408',0.5143], ['20050411',0.4902], ['20050412',0.4902], ['20050413',0.4902], ['20050414',0.4862], ['20050415',0.4862], ['20050418',0.5022], ['20050419',0.5063], ['20050420',0.4902], ['20050421',0.4902], ['20050422',0.4902], ['20050425',0.4902], ['20050426',0.4902], ['20050427',0.4902], ['20050428',0.4661], ['20050429',0.4821], ['20050503',0.4821], ['20050504',0.4821], ['20050505',0.4821], ['20050506',0.4741], ['20050509',0.4741], ['20050510',0.4741], ['20050511',0.4741], ['20050512',0.4661], ['20050513',0.4661], ['20050516',0.4661], ['20050517',0.4420], ['20050518',0.4500], ['20050519',0.4500], ['20050520',0.4500], ['20050524',0.4500], ['20050525',0.4500], ['20050526',0.4500], ['20050527',0.4500], ['20050530',0.4821], ['20050531',0.4821], ['20050601',0.4821], ['20050602',0.4821], ['20050603',0.4821], ['20050606',0.4741], ['20050607',0.4580], ['20050608',0.4580], ['20050609',0.4580], ['20050610',0.4580], ['20050613',0.4701], ['20050614',0.4701], ['20050615',0.4821], ['20050616',0.4821], ['20050617',0.4821], ['20050620',0.4821], ['20050621',0.4741], ['20050622',0.4500], ['20050623',0.4259], ['20050624',0.4299], ['20050627',0.4299], ['20050628',0.4379], ['20050629',0.4379], ['20050630',0.4379], ['20050701',0.4339], ['20050704',0.4339], ['20050705',0.4339], ['20050706',0.4339], ['20050707',0.4339], ['20050708',0.4500], ['20050711',0.4500], ['20050712',0.4500], ['20050713',0.4339], ['20050714',0.4420], ['20050715',0.4500], ['20050718',0.4500], ['20050719',0.4299], ['20050720',0.4540], ['20050721',0.4540], ['20050722',0.4540], ['20050725',0.4540], ['20050726',0.4339], ['20050727',0.4339], ['20050728',0.4339], ['20050729',0.4339], ['20050801',0.4339], ['20050802',0.4339], ['20050803',0.4339], ['20050804',0.4339], ['20050805',0.4339], ['20050808',0.4339], ['20050810',0.4339], ['20050811',0.4179], ['20050812',0.4219], ['20050815',0.4219], ['20050816',0.4219], ['20050817',0.4058], ['20050818',0.4058], ['20050819',0.4058], ['20050822',0.4058], ['20050823',0.4058], ['20050824',0.4058], ['20050825',0.4058], ['20050826',0.4098], ['20050829',0.4098], ['20050830',0.4138], ['20050831',0.4138], ['20050901',0.4138], ['20050902',0.4138], ['20050905',0.4138], ['20050906',0.4138], ['20050907',0.4018], ['20050908',0.4018], ['20050909',0.4018], ['20050912',0.4018], ['20050913',0.4018], ['20050914',0.4018], ['20050915',0.4018], ['20050916',0.4018], ['20050919',0.4018], ['20050920',0.4018], ['20050921',0.4018], ['20050922',0.4018], ['20050923',0.4018], ['20050926',0.4018], ['20050927',0.4018], ['20050928',0.4018], ['20050929',0.4018], ['20050930',0.4018], ['20051003',0.4018], ['20051004',0.4580], ['20051005',0.4661], ['20051006',0.4661], ['20051007',0.4661], ['20051010',0.4661], ['20051011',0.4661], ['20051012',0.4661], ['20051013',0.4661], ['20051014',0.4661], ['20051017',0.4420], ['20051018',0.4420], ['20051019',0.4420], ['20051020',0.4420], ['20051021',0.4500], ['20051024',0.4500], ['20051025',0.4500], ['20051026',0.4500], ['20051027',0.4741], ['20051028',0.5223], ['20051031',0.5223], ['20051102',0.5223], ['20051104',0.5223], ['20051107',0.5464], ['20051108',0.5304], ['20051109',0.5464], ['20051110',0.5625], ['20051111',0.5625], ['20051114',0.5625], ['20051115',0.5384], ['20051116',0.5384], ['20051117',0.5384], ['20051118',0.5384], ['20051121',0.5384], ['20051122',0.5424], ['20051123',0.5424], ['20051124',0.5424], ['20051125',0.5424], ['20051128',0.5424], ['20051129',0.5545], ['20051130',0.5625], ['20051201',0.5625], ['20051202',0.5625], ['20051205',0.5625], ['20051206',0.5625], ['20051207',0.5625], ['20051208',0.5625], ['20051209',0.5625], ['20051212',0.5384], ['20051213',0.5384], ['20051214',0.5384], ['20051215',0.5384], ['20051216',0.5384], ['20051219',0.5384], ['20051220',0.5625], ['20051221',0.5625], ['20051222',0.5625], ['20051223',0.5625], ['20051227',0.5625], ['20051228',0.5625], ['20051229',0.5625], ['20051230',0.5625], ['20060103',0.5625], ['20060104',0.5625], ['20060105',0.5625], ['20060106',0.5625], ['20060109',0.5625], ['20060111',0.5625], ['20060112',0.5223], ['20060113',0.5304], ['20060116',0.5304], ['20060117',0.5304], ['20060118',0.5304], ['20060119',0.5304], ['20060120',0.5304], ['20060123',0.5304], ['20060124',0.5545], ['20060125',0.5545], ['20060126',0.5545], ['20060127',0.5545], ['20060201',0.5545], ['20060202',0.5545], ['20060203',0.5545], ['20060206',0.5545], ['20060207',0.5545], ['20060208',0.5545], ['20060209',0.5545], ['20060210',0.5545], ['20060213',0.5625], ['20060214',0.5625], ['20060215',0.5625], ['20060216',0.5625], ['20060217',0.5625], ['20060220',0.5625], ['20060221',0.5625], ['20060222',0.5625], ['20060223',0.5625], ['20060224',0.5625], ['20060227',0.5625], ['20060228',0.5625], ['20060301',0.5625], ['20060302',0.5625], ['20060303',0.5625], ['20060306',0.5625], ['20060307',0.5625], ['20060308',0.5625], ['20060309',0.5625], ['20060310',0.5625], ['20060313',0.5625], ['20060314',0.5625], ['20060315',0.5625], ['20060316',0.5625], ['20060317',0.5625], ['20060320',0.5625], ['20060321',0.5625], ['20060322',0.5625], ['20060323',0.5625], ['20060324',0.5625], ['20060327',0.5625], ['20060328',0.5625], ['20060329',0.5384], ['20060330',0.5304], ['20060331',0.5304], ['20060403',0.5304], ['20060404',0.5304], ['20060405',0.5304], ['20060406',0.5304], ['20060407',0.5304], ['20060410',0.5304], ['20060411',0.5304], ['20060412',0.5304], ['20060413',0.5304], ['20060417',0.5304], ['20060418',0.5304], ['20060419',0.5304], ['20060420',0.5304], ['20060421',0.5304], ['20060424',0.5304], ['20060425',0.5304], ['20060426',0.5304], ['20060427',0.5304], ['20060428',0.5304], ['20060502',0.5304], ['20060503',0.5304], ['20060504',0.5304], ['20060505',0.5304], ['20060508',0.5304], ['20060509',0.5063], ['20060510',0.5103], ['20060511',0.5103], ['20060515',0.5103], ['20060516',0.5103], ['20060517',0.5103], ['20060518',0.4902], ['20060519',0.4982], ['20060522',0.4741], ['20060523',0.4821], ['20060524',0.4821], ['20060525',0.4821], ['20060526',0.4821], ['20060529',0.4821], ['20060530',0.4821], ['20060531',0.4821], ['20060601',0.4982], ['20060602',0.4982], ['20060605',0.4942], ['20060606',0.4902], ['20060607',0.4982], ['20060608',0.4982], ['20060609',0.5143], ['20060612',0.5143], ['20060613',0.5143], ['20060614',0.5143], ['20060615',0.5143], ['20060616',0.5143], ['20060619',0.5143], ['20060620',0.5143], ['20060621',0.5143], ['20060622',0.5143], ['20060623',0.5143], ['20060626',0.5143], ['20060627',0.5143], ['20060628',0.5143], ['20060629',0.5143], ['20060630',0.5143], ['20060703',0.5063], ['20060704',0.5063], ['20060705',0.5063], ['20060706',0.4982], ['20060707',0.4982], ['20060710',0.4862], ['20060711',0.4942], ['20060712',0.4942], ['20060713',0.4942], ['20060714',0.4902], ['20060717',0.5143], ['20060718',0.5143], ['20060719',0.5143], ['20060720',0.4902], ['20060721',0.4902], ['20060724',0.4741], ['20060725',0.4741], ['20060726',0.4982], ['20060727',0.4982], ['20060728',0.4982], ['20060731',0.4982], ['20060801',0.4982], ['20060802',0.4982], ['20060803',0.4982], ['20060804',0.4982], ['20060807',0.4982], ['20060808',0.4982], ['20060810',0.4982], ['20060811',0.4982], ['20060814',0.4982], ['20060815',0.4982], ['20060816',0.4982], ['20060817',0.4982], ['20060818',0.4982], ['20060821',0.4982], ['20060822',0.4821], ['20060823',0.4661], ['20060824',0.4661], ['20060825',0.4661], ['20060828',0.4661], ['20060829',0.4661], ['20060830',0.4661], ['20060831',0.4661], ['20060901',0.4661], ['20060904',0.4661], ['20060905',0.4661], ['20060906',0.4661], ['20060907',0.4661], ['20060908',0.4661], ['20060911',0.4661], ['20060912',0.4661], ['20060913',0.4661], ['20060914',0.4661], ['20060915',0.4821], ['20060918',0.4821], ['20060919',0.4821], ['20060920',0.4821], ['20060921',0.4982], ['20060922',0.4982], ['20060925',0.4661], ['20060926',0.4661], ['20060927',0.4661], ['20060928',0.4661], ['20060929',0.4580], ['20061002',0.4580], ['20061003',0.4580], ['20061004',0.4701], ['20061005',0.4821], ['20061006',0.4982], ['20061009',0.4982], ['20061010',0.4982], ['20061011',0.4982], ['20061012',0.4982], ['20061013',0.4982], ['20061016',0.4982], ['20061017',0.4982], ['20061018',0.4982], ['20061019',0.4982], ['20061020',0.4982], ['20061023',0.4982], ['20061025',0.4741], ['20061026',0.5143], ['20061027',0.4821], ['20061030',0.4821], ['20061031',0.4821], ['20061101',0.4821], ['20061102',0.5063], ['20061103',0.4982], ['20061106',0.4982], ['20061107',0.4982], ['20061108',0.4982], ['20061109',0.5143], ['20061110',0.5384], ['20061113',0.5143], ['20061114',0.5143], ['20061115',0.5223], ['20061116',0.5223], ['20061117',0.5223], ['20061120',0.5143], ['20061121',0.5143], ['20061122',0.5143], ['20061123',0.5143], ['20061124',0.5143], ['20061127',0.5063], ['20061128',0.5063], ['20061129',0.5063], ['20061130',0.5063], ['20061201',0.5143], ['20061204',0.5143], ['20061205',0.5143], ['20061206',0.5143], ['20061207',0.5143], ['20061208',0.4982], ['20061211',0.4982], ['20061212',0.4982], ['20061213',0.4982], ['20061214',0.5143], ['20061215',0.5143], ['20061218',0.5143], ['20061219',0.5143], ['20061220',0.4982], ['20061221',0.4982], ['20061222',0.4982], ['20061226',0.4902], ['20061227',0.4902], ['20061228',0.4902], ['20061229',0.4902], ['20070103',0.4902], ['20070104',0.4902], ['20070105',0.4902], ['20070108',0.4902], ['20070109',0.5384], ['20070110',0.5384], ['20070111',0.5223], ['20070112',0.5223], ['20070115',0.5304], ['20070116',0.5786], ['20070117',0.6027], ['20070118',0.5786], ['20070119',0.5625], ['20070122',0.5625], ['20070123',0.6027], ['20070124',0.6027], ['20070125',0.6107], ['20070126',0.6107], ['20070129',0.6107], ['20070130',0.5866], ['20070131',0.5866], ['20070201',0.5866], ['20070202',0.5866], ['20070205',0.5866], ['20070206',0.5866], ['20070207',0.5866], ['20070208',0.5866], ['20070209',0.5906], ['20070212',0.5665], ['20070213',0.5665], ['20070214',0.5625], ['20070215',0.5625], ['20070216',0.5625], ['20070221',0.5625], ['20070222',0.5786], ['20070223',0.5786], ['20070226',0.5786], ['20070227',0.5786], ['20070228',0.5545], ['20070301',0.5545], ['20070302',0.5545], ['20070305',0.5545], ['20070306',0.5545], ['20070307',0.6268], ['20070308',0.6268], ['20070309',0.6268], ['20070312',0.6268], ['20070313',0.6268], ['20070314',0.6268], ['20070315',0.6268], ['20070316',0.6509], ['20070319',0.6509], ['20070320',0.6509], ['20070321',0.6107], ['20070322',0.5866], ['20070323',0.5826], ['20070326',0.5826], ['20070327',0.5786], ['20070328',0.5786], ['20070329',0.5786], ['20070330',0.5705], ['20070402',0.5705], ['20070403',0.5705], ['20070404',0.5705], ['20070405',0.5946], ['20070409',0.5946], ['20070410',0.5946], ['20070411',0.5786], ['20070412',0.5786], ['20070413',0.5705], ['20070416',0.5866], ['20070417',0.5866], ['20070418',0.5866], ['20070419',0.5866], ['20070420',0.5866], ['20070423',0.5866], ['20070424',0.5746], ['20070425',0.5746], ['20070426',0.5746], ['20070427',0.5746], ['20070430',0.5746], ['20070502',0.5746], ['20070503',0.5746], ['20070504',0.5545], ['20070507',0.5545], ['20070508',0.5545], ['20070509',0.5625], ['20070510',0.5625], ['20070511',0.5625], ['20070514',0.5625], ['20070515',0.5906], ['20070516',0.6027], ['20070517',0.7031], ['20070518',0.7393], ['20070521',0.7554], ['20070522',0.7554], ['20070523',0.7554], ['20070524',0.7433], ['20070525',0.7393], ['20070528',0.7393], ['20070529',0.7393], ['20070530',0.7232], ['20070601',0.7232], ['20070604',0.7393], ['20070605',0.7513], ['20070606',0.7875], ['20070607',0.7714], ['20070608',0.7875], ['20070611',0.7835], ['20070612',0.7875], ['20070613',0.7875], ['20070614',0.7875], ['20070615',0.8196], ['20070618',0.8598], ['20070619',0.9161], ['20070620',1.0125], ['20070621',1.0768], ['20070622',1.0929], ['20070625',1.0929], ['20070626',1.0607], ['20070627',1.0447], ['20070628',1.0607], ['20070629',1.0607], ['20070702',1.0688], ['20070703',1.0768], ['20070704',1.0768], ['20070705',1.0607], ['20070706',1.0447], ['20070709',1.0768], ['20070710',1.0848], ['20070711',1.0607], ['20070712',1.0607], ['20070713',1.0607], ['20070716',1.0045], ['20070717',0.9723], ['20070718',0.8839], ['20070719',0.8839], ['20070720',0.9482], ['20070723',0.9402], ['20070724',0.9643], ['20070725',0.9563], ['20070726',0.9563], ['20070727',0.9563], ['20070730',0.9563], ['20070731',0.9563], ['20070801',0.9563], ['20070802',0.8839], ['20070803',0.8839], ['20070806',0.8438], ['20070807',0.8438], ['20070808',0.8116], ['20070810',0.8116], ['20070813',0.8036], ['20070814',0.8036], ['20070815',0.8036], ['20070816',0.7473], ['20070817',0.6991], ['20070820',0.6991], ['20070821',0.7232], ['20070822',0.7232], ['20070823',0.7232], ['20070824',0.7232], ['20070827',0.7232], ['20070828',0.7473], ['20070829',0.7634], ['20070830',0.7634], ['20070831',0.7875], ['20070903',0.7875], ['20070904',0.7634], ['20070905',0.7634], ['20070906',0.8196], ['20070907',0.8196], ['20070910',0.8196], ['20070911',0.8036], ['20070912',0.8518], ['20070913',0.8679], ['20070914',0.8679], ['20070917',0.8679], ['20070918',0.8679], ['20070919',0.8679], ['20070920',0.8679], ['20070921',0.8438], ['20070924',0.8196], ['20070925',0.8196], ['20070926',0.8196], ['20070927',0.8277], ['20070928',0.8357], ['20071001',0.8357], ['20071002',0.8357], ['20071003',0.8357], ['20071004',0.8277], ['20071005',0.8438], ['20071008',0.8438], ['20071009',0.8438], ['20071010',0.8438], ['20071011',0.8357], ['20071012',0.8357], ['20071015',0.8357], ['20071016',0.8518], ['20071017',0.8518], ['20071018',0.8357], ['20071019',0.8277], ['20071022',0.8277], ['20071023',0.8277], ['20071024',0.8357], ['20071025',0.8277], ['20071026',0.8277], ['20071029',0.8277], ['20071030',0.8357], ['20071031',0.8357], ['20071101',0.8277], ['20071102',0.8277], ['20071105',0.8277], ['20071106',0.8277], ['20071107',0.8277], ['20071109',0.8277], ['20071112',0.8196], ['20071113',0.8196], ['20071114',0.8196], ['20071115',0.8116], ['20071116',0.8116], ['20071119',0.8438], ['20071120',0.8438], ['20071121',0.8438], ['20071122',0.8438], ['20071123',0.8438], ['20071126',0.8438], ['20071127',0.8438], ['20071128',0.8438], ['20071129',0.8438], ['20071130',0.8438], ['20071203',0.8438], ['20071204',0.8438], ['20071205',0.8438], ['20071206',0.8438], ['20071207',0.7996], ['20071210',0.7996], ['20071211',0.7996], ['20071212',0.7996], ['20071213',0.7996], ['20071214',0.7996], ['20071217',0.7996], ['20071218',0.7996], ['20071219',0.7996], ['20071221',0.7996], ['20071224',0.7996], ['20071226',0.7996], ['20071227',0.7714], ['20071228',0.7714], ['20071231',0.7714], ['20080102',0.7634], ['20080103',0.7634], ['20080104',0.8036], ['20080107',0.7634], ['20080108',0.7634], ['20080109',0.7634], ['20080110',0.7634], ['20080111',0.7634], ['20080114',0.7634], ['20080115',0.7232], ['20080116',0.7232], ['20080117',0.7232], ['20080118',0.7232], ['20080121',0.7232], ['20080122',0.7232], ['20080123',0.7232], ['20080124',0.7232], ['20080125',0.7232], ['20080128',0.7232], ['20080129',0.7232], ['20080130',0.7232], ['20080131',0.7232], ['20080201',0.7232], ['20080204',0.7313], ['20080205',0.7112], ['20080206',0.7112], ['20080211',0.7112], ['20080212',0.7112], ['20080213',0.7112], ['20080214',0.7112], ['20080215',0.7112], ['20080218',0.7112], ['20080219',0.7112], ['20080220',0.7112], ['20080221',0.7112], ['20080222',0.7112], ['20080225',0.7112], ['20080226',0.7112], ['20080227',0.7112], ['20080228',0.7353], ['20080229',0.7393], ['20080303',0.7393], ['20080304',0.7393], ['20080305',0.7393], ['20080306',0.7393], ['20080307',0.7393], ['20080310',0.6991], ['20080311',0.6991], ['20080312',0.6991], ['20080313',0.6991], ['20080314',0.6991], ['20080317',0.6991], ['20080318',0.6991], ['20080319',0.7393], ['20080320',0.7393], ['20080324',0.7393], ['20080325',0.7071], ['20080326',0.6670], ['20080327',0.6670], ['20080328',0.6670], ['20080331',0.6670], ['20080401',0.6670], ['20080402',0.6670], ['20080403',0.7071], ['20080404',0.7071], ['20080407',0.7071], ['20080408',0.7071], ['20080409',0.6911], ['20080410',0.6911], ['20080411',0.6911], ['20080414',0.6911], ['20080415',0.6911], ['20080416',0.6911], ['20080417',0.6911], ['20080418',0.6830], ['20080421',0.6750], ['20080422',0.6750], ['20080423',0.6750], ['20080424',0.6750], ['20080425',0.6951], ['20080428',0.6951], ['20080429',0.6951], ['20080430',0.6951], ['20080502',0.6951], ['20080505',0.6951], ['20080506',0.6951], ['20080507',0.7232], ['20080508',0.7232], ['20080509',0.7071], ['20080512',0.7071], ['20080513',0.7071], ['20080514',0.7071], ['20080515',0.6750], ['20080516',0.6750], ['20080520',0.6750], ['20080521',0.6750], ['20080522',0.6589], ['20080523',0.6589], ['20080526',0.6589], ['20080527',0.6589], ['20080528',0.6589], ['20080529',0.6589], ['20080530',0.6589], ['20080602',0.6589], ['20080603',0.6589], ['20080604',0.6589], ['20080605',0.6589], ['20080606',0.6589], ['20080609',0.6589], ['20080610',0.6670], ['20080611',0.6670], ['20080612',0.6670], ['20080613',0.6670], ['20080616',0.6670], ['20080617',0.6670], ['20080618',0.6670], ['20080619',0.6670], ['20080620',0.6670], ['20080623',0.6670], ['20080624',0.6670], ['20080625',0.6670], ['20080626',0.6670], ['20080627',0.6670], ['20080630',0.6670], ['20080701',0.6670], ['20080702',0.6670], ['20080703',0.6670], ['20080704',0.6670], ['20080707',0.6670], ['20080708',0.6670], ['20080709',0.6670], ['20080710',0.6670], ['20080711',0.6670], ['20080714',0.6268], ['20080715',0.6268], ['20080716',0.6268], ['20080717',0.6268], ['20080718',0.6268], ['20080721',0.6268], ['20080722',0.6268], ['20080723',0.6268], ['20080724',0.6268], ['20080725',0.6268], ['20080728',0.6268], ['20080729',0.6268], ['20080730',0.6268], ['20080731',0.6268], ['20080801',0.6268], ['20080804',0.5866], ['20080805',0.5866], ['20080806',0.5866], ['20080807',0.5866], ['20080808',0.5866], ['20080811',0.5866], ['20080812',0.5464], ['20080813',0.5464], ['20080814',0.5464], ['20080815',0.5464], ['20080818',0.5464], ['20080819',0.5464], ['20080820',0.5464], ['20080821',0.5464], ['20080822',0.5464], ['20080825',0.5464], ['20080826',0.5464], ['20080827',0.5464], ['20080828',0.5464], ['20080829',0.5464], ['20080901',0.5464], ['20080902',0.5464], ['20080903',0.5464], ['20080904',0.5464], ['20080905',0.5464], ['20080908',0.5464], ['20080909',0.5464], ['20080910',0.5464], ['20080911',0.5464], ['20080912',0.5464], ['20080915',0.5464], ['20080916',0.5464], ['20080917',0.5464], ['20080918',0.5464], ['20080919',0.5464], ['20080922',0.5464], ['20080923',0.5464], ['20080924',0.5464], ['20080925',0.5464], ['20080926',0.5464], ['20080929',0.5464], ['20080930',0.5464], ['20081002',0.5464], ['20081003',0.5464], ['20081006',0.5464], ['20081007',0.5464], ['20081008',0.5464], ['20081009',0.5464], ['20081010',0.5464], ['20081013',0.5464], ['20081014',0.5464], ['20081015',0.5464], ['20081016',0.5464], ['20081017',0.5464], ['20081020',0.5464], ['20081021',0.5464], ['20081022',0.5464], ['20081023',0.5464], ['20081024',0.5464], ['20081028',0.5464], ['20081029',0.5464], ['20081030',0.5464], ['20081031',0.5464], ['20081103',0.5464], ['20081104',0.5464], ['20081105',0.5464], ['20081106',0.5464], ['20081107',0.5464], ['20081110',0.5464], ['20081111',0.5464], ['20081112',0.5464], ['20081113',0.5464], ['20081114',0.5464], ['20081117',0.5464], ['20081118',0.5464], ['20081119',0.5464], ['20081120',0.5464], ['20081121',0.5464], ['20081124',0.5464], ['20081125',0.5464], ['20081126',0.5464], ['20081127',0.5464], ['20081128',0.5464], ['20081201',0.5464], ['20081202',0.5464], ['20081203',0.5464], ['20081204',0.5464], ['20081205',0.5464], ['20081209',0.5464], ['20081210',0.5464], ['20081211',0.5464], ['20081212',0.4018], ['20081215',0.3536], ['20081216',0.3536], ['20081217',0.3536], ['20081218',0.3536], ['20081219',0.3536], ['20081222',0.3536], ['20081223',0.3536], ['20081224',0.3536], ['20081226',0.3536], ['20081229',0.3536], ['20081230',0.3536], ['20081231',0.3536], ['20090102',0.3536], ['20090105',0.3536], ['20090106',0.3536], ['20090107',0.3536], ['20090108',0.3536], ['20090109',0.3536], ['20090112',0.3536], ['20090113',0.3536], ['20090114',0.3536], ['20090115',0.3536], ['20090116',0.3536], ['20090119',0.3536], ['20090120',0.3536], ['20090121',0.3536], ['20090122',0.3536], ['20090123',0.3536], ['20090128',0.3536], ['20090129',0.3536], ['20090130',0.3375], ['20090202',0.3375], ['20090203',0.3375], ['20090204',0.2973], ['20090205',0.2973], ['20090206',0.2973], ['20090209',0.2973], ['20090210',0.2973], ['20090211',0.3616], ['20090212',0.3616], ['20090213',0.3616], ['20090216',0.3616], ['20090217',0.3616], ['20090218',0.3616], ['20090219',0.3616], ['20090220',0.3616], ['20090223',0.3616], ['20090224',0.3616], ['20090225',0.3616], ['20090226',0.3616], ['20090227',0.3616], ['20090302',0.3616], ['20090303',0.3616], ['20090304',0.3616], ['20090305',0.3616], ['20090306',0.3616], ['20090309',0.3616], ['20090310',0.3616], ['20090311',0.3616], ['20090312',0.3214], ['20090313',0.3214], ['20090316',0.3214], ['20090317',0.3214], ['20090318',0.3214], ['20090319',0.3214], ['20090320',0.3214], ['20090323',0.3214], ['20090324',0.3214], ['20090325',0.3214], ['20090326',0.3214], ['20090327',0.3214], ['20090330',0.3214], ['20090331',0.3214], ['20090401',0.3214], ['20090402',0.2813], ['20090403',0.2813], ['20090406',0.2813], ['20090407',0.2813], ['20090408',0.2893], ['20090409',0.2893], ['20090413',0.2893], ['20090414',0.2893], ['20090415',0.2893], ['20090416',0.2893], ['20090417',0.3455], ['20090420',0.3455], ['20090421',0.3455], ['20090422',0.3455], ['20090423',0.3455], ['20090424',0.3455], ['20090427',0.3455], ['20090428',0.3455], ['20090429',0.3455], ['20090430',0.3455], ['20090504',0.3455], ['20090505',0.3455], ['20090506',0.3455], ['20090507',0.3536], ['20090508',0.3737], ['20090511',0.3616], ['20090512',0.3536], ['20090513',0.3656], ['20090514',0.3656], ['20090515',0.3576], ['20090518',0.3576], ['20090519',0.3455], ['20090520',0.3455], ['20090521',0.3455], ['20090522',0.3455], ['20090525',0.3455], ['20090526',0.3214], ['20090527',0.3455], ['20090528',0.3455], ['20090529',0.3455], ['20090601',0.3616], ['20090602',0.3696], ['20090603',0.3696], ['20090604',0.3696], ['20090605',0.3536], ['20090608',0.3576], ['20090609',0.3576], ['20090610',0.3777], ['20090611',0.3696], ['20090612',0.3696], ['20090615',0.3696], ['20090616',0.3696], ['20090617',0.3375], ['20090618',0.3375], ['20090619',0.3375], ['20090622',0.3375], ['20090623',0.3375], ['20090624',0.3375], ['20090625',0.3375], ['20090626',0.3295], ['20090629',0.3295], ['20090630',0.3295], ['20090701',0.3295], ['20090702',0.3295], ['20090703',0.3295], ['20090706',0.3295], ['20090707',0.3295], ['20090708',0.3295], ['20090709',0.3295], ['20090710',0.3295], ['20090713',0.3295], ['20090714',0.3295], ['20090715',0.3295], ['20090716',0.3295], ['20090717',0.3295], ['20090720',0.3295], ['20090721',0.3295], ['20090722',0.3295], ['20090723',0.3295], ['20090724',0.3455], ['20090727',0.3455], ['20090728',0.3455], ['20090729',0.3696], ['20090730',0.3696], ['20090731',0.3696], ['20090803',0.3696], ['20090804',0.3777], ['20090805',0.3777], ['20090806',0.3777], ['20090807',0.3777], ['20090811',0.3777], ['20090812',0.3696], ['20090813',0.3696], ['20090814',0.3737], ['20090817',0.3777], ['20090818',0.3777], ['20090819',0.3777], ['20090820',0.3616], ['20090821',0.3737], ['20090824',0.3737], ['20090825',0.3737], ['20090826',0.3737], ['20090827',0.3737], ['20090828',0.3656], ['20090831',0.3616], ['20090901',0.3616], ['20090902',0.3616], ['20090903',0.3857], ['20090904',0.3857], ['20090907',0.3857], ['20090908',0.3696], ['20090909',0.3696], ['20090910',0.3656], ['20090911',0.3656], ['20090914',0.3656], ['20090915',0.3656], ['20090916',0.3656], ['20090917',0.3938], ['20090918',0.3938], ['20090922',0.3938], ['20090923',0.3938], ['20090924',0.3938], ['20090925',0.3938], ['20090928',0.3938], ['20090929',0.3938], ['20090930',0.3938], ['20091001',0.3938], ['20091002',0.3938], ['20091005',0.3938], ['20091006',0.3938], ['20091007',0.3938], ['20091008',0.3938], ['20091009',0.3938], ['20091012',0.3536], ['20091013',0.3536], ['20091014',0.3536], ['20091015',0.3536], ['20091016',0.3616], ['20091019',0.3616], ['20091020',0.3616], ['20091021',0.3616], ['20091022',0.3777], ['20091023',0.3938], ['20091026',0.3938], ['20091027',0.3938], ['20091028',0.3938], ['20091029',0.3938], ['20091030',0.3938], ['20091102',0.3938], ['20091103',0.3938], ['20091104',0.3938], ['20091105',0.3938], ['20091106',0.3938], ['20091109',0.3938], ['20091110',0.3938], ['20091111',0.3857], ['20091112',0.3857], ['20091113',0.3616], ['20091116',0.3777], ['20091117',0.3696], ['20091118',0.3696], ['20091119',0.3696], ['20091120',0.3696], ['20091123',0.3696], ['20091124',0.3696], ['20091125',0.3696], ['20091126',0.3777], ['20091130',0.3777], ['20091201',0.3777], ['20091202',0.3777], ['20091203',0.3777], ['20091204',0.3777], ['20091207',0.3696], ['20091208',0.3696], ['20091209',0.3696], ['20091210',0.3696], ['20091211',0.3696], ['20091214',0.3696], ['20091215',0.3696], ['20091216',0.3696], ['20091217',0.3696], ['20091218',0.3777], ['20091221',0.3777], ['20091222',0.3777], ['20091223',0.3656], ['20091224',0.3857], ['20091228',0.3857], ['20091229',0.3938], ['20091230',0.3938], ['20091231',0.3938], ['20100104',0.3938], ['20100105',0.3938], ['20100106',0.3938], ['20100107',0.4018], ['20100108',0.4018], ['20100111',0.4098], ['20100112',0.4098], ['20100113',0.4098], ['20100114',0.4098], ['20100115',0.4098], ['20100118',0.4098], ['20100119',0.4098], ['20100120',0.4098], ['20100121',0.4098], ['20100122',0.4098], ['20100125',0.4098], ['20100126',0.4098], ['20100127',0.4098], ['20100128',0.4018], ['20100129',0.4018], ['20100201',0.4018], ['20100202',0.4018], ['20100203',0.4018], ['20100204',0.4018], ['20100205',0.4018], ['20100208',0.3897], ['20100209',0.3817], ['20100210',0.3817], ['20100211',0.3817], ['20100212',0.3817], ['20100217',0.3817], ['20100218',0.3817], ['20100219',0.3696], ['20100222',0.3696], ['20100223',0.3696], ['20100224',0.3696], ['20100225',0.3696], ['20100226',0.3696], ['20100301',0.3616], ['20100302',0.3616], ['20100303',0.3616], ['20100304',0.3616], ['20100305',0.3616], ['20100308',0.3616], ['20100309',0.3616], ['20100310',0.3616], ['20100311',0.3616], ['20100312',0.3616], ['20100315',0.3616], ['20100316',0.3616], ['20100317',0.3616], ['20100318',0.3938], ['20100319',0.3938], ['20100322',0.3938], ['20100323',0.3938], ['20100324',0.3938], ['20100325',0.3938], ['20100326',0.3938], ['20100329',0.3938], ['20100330',0.3938], ['20100331',0.3938], ['20100401',0.3938], ['20100405',0.3696], ['20100406',0.3696], ['20100407',0.3696], ['20100408',0.3696], ['20100409',0.4098], ['20100412',0.4098], ['20100413',0.4098], ['20100414',0.4098], ['20100415',0.4179], ['20100416',0.4179], ['20100419',0.4179], ['20100420',0.4179], ['20100421',0.3777], ['20100422',0.3777], ['20100423',0.3857], ['20100426',0.4042], ['20100427',0.4018], ['20100428',0.4018], ['20100429',0.4018], ['20100430',0.4018], ['20100503',0.4018], ['20100504',0.4018], ['20100505',0.4018], ['20100506',0.4018], ['20100507',0.4018], ['20100510',0.4018], ['20100511',0.4018], ['20100512',0.4018], ['20100513',0.4339], ['20100514',0.4339], ['20100517',0.4339], ['20100518',0.4339], ['20100519',0.3938], ['20100520',0.4259], ['20100521',0.4259], ['20100524',0.4259], ['20100525',0.4259], ['20100526',0.4259], ['20100527',0.4259], ['20100531',0.4259], ['20100601',0.4259], ['20100602',0.4259], ['20100603',0.4179], ['20100604',0.4420], ['20100607',0.4420], ['20100608',0.4420], ['20100609',0.4420], ['20100610',0.4420], ['20100611',0.4259], ['20100614',0.4259], ['20100615',0.4259], ['20100616',0.4259], ['20100617',0.4259], ['20100618',0.4259], ['20100621',0.4259], ['20100622',0.4259], ['20100623',0.4259], ['20100624',0.4259], ['20100625',0.4259], ['20100628',0.4259], ['20100629',0.4259], ['20100630',0.4259], ['20100701',0.4259], ['20100702',0.4259], ['20100705',0.4259], ['20100706',0.4259], ['20100707',0.4259], ['20100708',0.4259], ['20100709',0.4259], ['20100712',0.3857], ['20100713',0.3496], ['20100714',0.3496], ['20100715',0.3496], ['20100716',0.3496], ['20100719',0.3295], ['20100720',0.3295], ['20100721',0.3295], ['20100722',0.3295], ['20100723',0.3295], ['20100726',0.2893], ['20100727',0.3616], ['20100728',0.4098], ['20100729',0.4098], ['20100730',0.4098], ['20100802',0.4098], ['20100803',0.4098], ['20100804',0.4098], ['20100805',0.4098], ['20100806',0.4098], ['20100810',0.4098], ['20100811',0.4098], ['20100812',0.4098], ['20100813',0.4098], ['20100816',0.3817], ['20100817',0.3817], ['20100818',0.3817], ['20100819',0.3817], ['20100820',0.3817], ['20100823',0.3817], ['20100824',0.3817], ['20100825',0.3616], ['20100826',0.3616], ['20100827',0.3616], ['20100830',0.3616], ['20100831',0.3616], ['20100901',0.3616], ['20100902',0.3616], ['20100903',0.3616], ['20100906',0.3616], ['20100907',0.3616], ['20100908',0.3616], ['20100909',0.3616], ['20100913',0.3616], ['20100914',0.3737], ['20100915',0.3737], ['20100916',0.3737], ['20100917',0.3696], ['20100920',0.3696], ['20100921',0.3696], ['20100922',0.3696], ['20100923',0.3696], ['20100924',0.3696], ['20100927',0.3696], ['20100928',0.3696], ['20100929',0.3696], ['20100930',0.3696], ['20101001',0.3696], ['20101004',0.3696], ['20101005',0.4018], ['20101006',0.4018], ['20101007',0.4018], ['20101008',0.3857], ['20101011',0.3737], ['20101012',0.3737], ['20101013',0.3737], ['20101014',0.3737], ['20101015',0.3737], ['20101018',0.3737], ['20101019',0.3737], ['20101020',0.3857], ['20101021',0.3857], ['20101022',0.3857], ['20101025',0.3857], ['20101026',0.3857], ['20101027',0.3857], ['20101028',0.3857], ['20101029',0.3857], ['20101101',0.3857], ['20101102',0.3616], ['20101103',0.3616], ['20101104',0.3616], ['20101108',0.3616], ['20101109',0.3616], ['20101110',0.3616], ['20101111',0.3616], ['20101112',0.3616], ['20101115',0.3616], ['20101116',0.3857], ['20101118',0.3857], ['20101119',0.3857], ['20101122',0.3536], ['20101123',0.3777], ['20101124',0.3777], ['20101125',0.3777], ['20101126',0.3777], ['20101129',0.3777], ['20101130',0.3777], ['20101201',0.3777], ['20101202',0.3777], ['20101203',0.3777], ['20101206',0.3777], ['20101207',0.3721], ['20101208',0.3737], ['20101209',0.3737], ['20101210',0.3737], ['20101213',0.3737], ['20101214',0.3737], ['20101215',0.3737], ['20101216',0.3737], ['20101217',0.3737], ['20101220',0.3737], ['20101221',0.3737], ['20101222',0.3737], ['20101223',0.3696], ['20101224',0.3696], ['20101227',0.3696], ['20101228',0.3696], ['20101229',0.3696], ['20101230',0.3455], ['20101231',0.3455], ['20110103',0.3496], ['20110104',0.3496], ['20110105',0.3496], ['20110106',0.3496], ['20110107',0.3496], ['20110110',0.3496], ['20110111',0.3616], ['20110112',0.3696], ['20110113',0.3696], ['20110114',0.3696], ['20110117',0.3696], ['20110118',0.3536], ['20110119',0.3536], ['20110120',0.3536], ['20110121',0.3455], ['20110124',0.3455], ['20110125',0.3455], ['20110126',0.3455], ['20110127',0.3455], ['20110128',0.3455], ['20110131',0.3616], ['20110201',0.3616], ['20110202',0.3616], ['20110207',0.3616], ['20110208',0.3496], ['20110209',0.3496], ['20110210',0.3496], ['20110211',0.3496], ['20110214',0.3496], ['20110215',0.3536], ['20110216',0.3536], ['20110217',0.3536], ['20110218',0.3536], ['20110221',0.3455], ['20110222',0.3455], ['20110223',0.3455], ['20110224',0.3455], ['20110225',0.3455], ['20110228',0.3455], ['20110301',0.3455], ['20110302',0.3295], ['20110303',0.3295], ['20110304',0.3295], ['20110307',0.3295], ['20110308',0.3295], ['20110309',0.3295], ['20110310',0.3295], ['20110311',0.3295], ['20110314',0.3295], ['20110315',0.3375], ['20110316',0.3375], ['20110317',0.3375], ['20110318',0.3375], ['20110321',0.3375], ['20110322',0.3375], ['20110323',0.3375], ['20110324',0.3375], ['20110325',0.3375], ['20110328',0.3375], ['20110329',0.3375], ['20110330',0.3616], ['20110331',0.3616], ['20110401',0.3616], ['20110404',0.3375], ['20110405',0.3375], ['20110406',0.3375], ['20110407',0.3335], ['20110408',0.3616], ['20110411',0.3616], ['20110412',0.3616], ['20110413',0.3616], ['20110414',0.3616], ['20110415',0.3616], ['20110418',0.3455], ['20110419',0.3616], ['20110420',0.3656], ['20110421',0.3656], ['20110425',0.3656], ['20110426',0.3656], ['20110427',0.3496], ['20110428',0.3496], ['20110429',0.3496], ['20110503',0.3536], ['20110504',0.3536], ['20110505',0.3536], ['20110506',0.3536], ['20110509',0.3536], ['20110510',0.3536], ['20110511',0.3536], ['20110512',0.3536], ['20110513',0.3536], ['20110516',0.3576], ['20110518',0.3576], ['20110519',0.3857], ['20110520',0.3696], ['20110523',0.3696], ['20110524',0.3696], ['20110525',0.3696], ['20110526',0.3696], ['20110527',0.3616], ['20110530',0.3696], ['20110531',0.3777], ['20110601',0.3616], ['20110602',0.3777], ['20110603',0.3777], ['20110606',0.3817], ['20110607',0.3817], ['20110608',0.3817], ['20110609',0.3817], ['20110610',0.3857], ['20110613',0.3857], ['20110614',0.3777], ['20110615',0.3777], ['20110616',0.3777], ['20110617',0.3857], ['20110620',0.3817], ['20110621',0.3857], ['20110622',0.3857], ['20110623',0.3777], ['20110624',0.3777], ['20110627',0.3696], ['20110628',0.3696], ['20110629',0.3696], ['20110630',0.3737], ['20110701',0.3737], ['20110704',0.3737], ['20110705',0.3737], ['20110706',0.3536], ['20110707',0.3536], ['20110708',0.3536], ['20110711',0.3536], ['20110712',0.3536], ['20110713',0.3536], ['20110714',0.3536], ['20110715',0.3536], ['20110718',0.3536], ['20110719',0.3536], ['20110720',0.3536], ['20110721',0.3536], ['20110722',0.3536], ['20110725',0.3536], ['20110726',0.3536], ['20110727',0.3496], ['20110728',0.3496], ['20110729',0.3496], ['20110801',0.3496], ['20110802',0.3496], ['20110803',0.3496], ['20110804',0.3496], ['20110805',0.3536], ['20110808',0.3536], ['20110810',0.3536], ['20110811',0.3536], ['20110812',0.3455], ['20110815',0.3455], ['20110816',0.3455], ['20110817',0.3455], ['20110818',0.3455], ['20110819',0.3094], ['20110822',0.3134], ['20110823',0.3134], ['20110824',0.3134], ['20110825',0.3134], ['20110826',0.3134], ['20110829',0.3134], ['20110831',0.3134], ['20110901',0.3134], ['20110902',0.3134], ['20110905',0.3134], ['20110906',0.3134], ['20110907',0.3134], ['20110908',0.3295], ['20110909',0.3295], ['20110912',0.3295], ['20110913',0.3295], ['20110914',0.3295], ['20110915',0.3295], ['20110916',0.3295], ['20110919',0.3295], ['20110920',0.3295], ['20110921',0.3295], ['20110922',0.3295], ['20110923',0.3054], ['20110926',0.3054], ['20110927',0.3054], ['20110928',0.3054], ['20110929',0.3054], ['20110930',0.3054], ['20111003',0.3054], ['20111004',0.3054], ['20111005',0.3054], ['20111006',0.2933], ['20111007',0.2933], ['20111010',0.2933], ['20111011',0.2933], ['20111012',0.2933], ['20111013',0.2933], ['20111014',0.2933], ['20111017',0.2933], ['20111018',0.2933], ['20111019',0.2933], ['20111020',0.2933], ['20111021',0.2933], ['20111024',0.2933], ['20111025',0.2933], ['20111027',0.2933], ['20111028',0.2933], ['20111031',0.3295], ['20111101',0.3295], ['20111102',0.3295], ['20111103',0.3295], ['20111104',0.3295], ['20111108',0.3295], ['20111109',0.3295], ['20111110',0.2933], ['20111111',0.2933], ['20111114',0.2933], ['20111115',0.2933], ['20111116',0.2933], ['20111117',0.2933], ['20111118',0.2933], ['20111121',0.2933], ['20111122',0.2933], ['20111123',0.2933], ['20111124',0.2933], ['20111125',0.2933], ['20111128',0.2973], ['20111129',0.2973], ['20111130',0.2973], ['20111201',0.2973], ['20111202',0.2973], ['20111205',0.2973], ['20111206',0.2973], ['20111207',0.2973], ['20111208',0.2973], ['20111209',0.2973], ['20111212',0.2973], ['20111213',0.2973], ['20111214',0.2973], ['20111215',0.2973], ['20111216',0.2973], ['20111219',0.2973], ['20111220',0.2973], ['20111221',0.2973], ['20111222',0.2973], ['20111223',0.2973], ['20111227',0.2973], ['20111228',0.2973], ['20111229',0.2772], ['20111230',0.2772], ['20120103',0.2772], ['20120104',0.2772], ['20120105',0.2772], ['20120106',0.2772], ['20120109',0.2772], ['20120110',0.2772], ['20120111',0.2772], ['20120112',0.2772], ['20120113',0.2772], ['20120116',0.2772], ['20120117',0.2772], ['20120118',0.2772], ['20120119',0.2772], ['20120120',0.2772], ['20120125',0.3214], ['20120126',0.3214], ['20120127',0.3214], ['20120130',0.2732], ['20120131',0.2732], ['20120201',0.2732], ['20120202',0.2732], ['20120203',0.2732], ['20120206',0.3054], ['20120207',0.3054], ['20120208',0.3054], ['20120209',0.3054], ['20120210',0.3054], ['20120213',0.3054], ['20120214',0.3054], ['20120215',0.3054], ['20120216',0.3054], ['20120217',0.3054], ['20120220',0.3054], ['20120221',0.2973], ['20120222',0.2973], ['20120223',0.2973], ['20120224',0.2893], ['20120227',0.2893], ['20120228',0.2692], ['20120229',0.3335], ['20120301',0.3335], ['20120302',0.3415], ['20120305',0.3415], ['20120306',0.3415], ['20120307',0.3415], ['20120308',0.3295], ['20120309',0.3295], ['20120312',0.3295], ['20120313',0.3455], ['20120314',0.3616], ['20120315',0.3656], ['20120316',0.3656], ['20120319',0.3656], ['20120320',0.3656], ['20120321',0.3696], ['20120322',0.3696], ['20120323',0.3857], ['20120326',0.3696], ['20120327',0.3616], ['20120328',0.3696], ['20120329',0.3696], ['20120330',0.3616], ['20120402',0.3375], ['20120403',0.3375], ['20120404',0.3375], ['20120405',0.3375], ['20120409',0.3375], ['20120410',0.3375], ['20120411',0.3375], ['20120412',0.3375], ['20120413',0.3375], ['20120416',0.3375], ['20120417',0.3375], ['20120418',0.3375], ['20120419',0.3375], ['20120420',0.3375], ['20120423',0.3375], ['20120424',0.3375], ['20120425',0.3375], ['20120426',0.3375], ['20120427',0.3054], ['20120430',0.3054], ['20120502',0.3054], ['20120503',0.3616], ['20120504',0.3616], ['20120507',0.3616], ['20120508',0.3616], ['20120509',0.3616], ['20120510',0.3616], ['20120511',0.3616], ['20120514',0.3616], ['20120515',0.3616], ['20120516',0.3616], ['20120517',0.3616], ['20120518',0.3616], ['20120521',0.3616], ['20120522',0.3616], ['20120523',0.3616], ['20120524',0.3616], ['20120525',0.3214], ['20120528',0.3214], ['20120529',0.3214], ['20120530',0.3214], ['20120531',0.3214], ['20120601',0.3214], ['20120604',0.3616], ['20120605',0.3616], ['20120606',0.3616], ['20120607',0.3536], ['20120608',0.3536], ['20120611',0.3536], ['20120612',0.3536], ['20120613',0.3375], ['20120614',0.3375], ['20120615',0.3375], ['20120618',0.3375], ['20120619',0.3375], ['20120620',0.3375], ['20120621',0.3375], ['20120622',0.3375], ['20120625',0.3375], ['20120626',0.3375], ['20120627',0.3375], ['20120628',0.3375], ['20120629',0.3375], ['20120702',0.3375], ['20120703',0.3375], ['20120704',0.3375], ['20120705',0.3375], ['20120706',0.3375], ['20120709',0.3375], ['20120710',0.3375], ['20120711',0.3375], ['20120712',0.3375], ['20120713',0.3375], ['20120716',0.3375], ['20120717',0.3375], ['20120718',0.3375], ['20120719',0.3375], ['20120720',0.2933], ['20120723',0.2933], ['20120724',0.2933], ['20120725',0.2933], ['20120726',0.3054], ['20120727',0.2933], ['20120730',0.2933], ['20120731',0.2933], ['20120801',0.2933], ['20120802',0.2933], ['20120803',0.2933], ['20120806',0.2933], ['20120807',0.2933], ['20120808',0.2933], ['20120810',0.2933], ['20120813',0.2933], ['20120814',0.2933], ['20120815',0.2933], ['20120816',0.2933], ['20120817',0.2973], ['20120821',0.2973], ['20120822',0.2973], ['20120823',0.2973], ['20120824',0.2973], ['20120827',0.2973], ['20120828',0.2973], ['20120829',0.2933], ['20120830',0.2933], ['20120831',0.2933], ['20120903',0.3134], ['20120904',0.3134], ['20120905',0.3134], ['20120906',0.3134], ['20120907',0.3134], ['20120910',0.2893], ['20120911',0.2893], ['20120912',0.2893], ['20120913',0.2893], ['20120914',0.2893], ['20120917',0.2893], ['20120918',0.2893], ['20120919',0.2893], ['20120920',0.3616], ['20120921',0.3616], ['20120924',0.3174], ['20120925',0.3375], ['20120926',0.3375], ['20120927',0.3375], ['20120928',0.3375], ['20121001',0.3375], ['20121002',0.3375], ['20121003',0.3375], ['20121004',0.3375], ['20121005',0.3375], ['20121008',0.3375], ['20121009',0.3375], ['20121010',0.3375], ['20121011',0.3375], ['20121012',0.3375], ['20121015',0.3857], ['20121016',0.4179], ['20121017',0.4018], ['20121018',0.4018], ['20121019',0.3536], ['20121022',0.3536], ['20121023',0.3536], ['20121024',0.3536], ['20121025',0.3536], ['20121029',0.3536], ['20121030',0.3536], ['20121031',0.3536], ['20121101',0.3536], ['20121102',0.3536], ['20121105',0.3536], ['20121106',0.3536], ['20121107',0.4018], ['20121108',0.4018], ['20121109',0.4018], ['20121112',0.4018], ['20121114',0.4018], ['20121115',0.4018], ['20121116',0.4018], ['20121119',0.4018], ['20121120',0.4018], ['20121121',0.4018], ['20121122',0.4018], ['20121123',0.4018], ['20121126',0.4018], ['20121127',0.4018], ['20121128',0.4018], ['20121129',0.4018], ['20121130',0.4018], ['20121203',0.4018], ['20121204',0.4018], ['20121205',0.4018], ['20121206',0.4018], ['20121207',0.4018], ['20121210',0.4299], ['20121211',0.4299], ['20121212',0.4781], ['20121213',0.4781], ['20121214',0.4781], ['20121217',0.4781], ['20121218',0.4259], ['20121219',0.4219], ['20121220',0.4179], ['20121221',0.3938], ['20121224',0.3938], ['20121226',0.4179], ['20121227',0.4179], ['20121228',0.4179], ['20121231',0.4098], ['20130102',0.4219], ['20130103',0.4339], ['20130104',0.4259], ['20130107',0.4420], ['20130108',0.4460], ['20130109',0.4580], ['20130110',0.4580], ['20130111',0.4580], ['20130114',0.4580], ['20130115',0.4580], ['20130116',0.4580], ['20130117',0.4580], ['20130118',0.4179], ['20130121',0.4179], ['20130122',0.3857], ['20130123',0.3696], ['20130124',0.4259], ['20130125',0.3817], ['20130128',0.3897], ['20130129',0.3777], ['20130130',0.3777], ['20130131',0.3777], ['20130201',0.3777], ['20130204',0.3777], ['20130205',0.3777], ['20130206',0.3777], ['20130207',0.3777], ['20130208',0.3777], ['20130213',0.3777], ['20130214',0.3616], ['20130215',0.3616], ['20130218',0.3616], ['20130219',0.3616], ['20130220',0.3616], ['20130221',0.3616], ['20130222',0.3616], ['20130225',0.3616], ['20130226',0.4379], ['20130227',0.4379], ['20130228',0.3817], ['20130301',0.3817], ['20130304',0.3817], ['20130305',0.3817], ['20130306',0.3817], ['20130307',0.3817], ['20130308',0.3696], ['20130311',0.3696], ['20130312',0.3696], ['20130313',0.3696], ['20130314',0.3696], ['20130315',0.3696], ['20130318',0.3656], ['20130319',0.3656], ['20130320',0.3656], ['20130321',0.3656], ['20130322',0.3656], ['20130325',0.3656], ['20130326',0.3656], ['20130327',0.3656], ['20130328',0.3656], ['20130401',0.3656], ['20130402',0.3696], ['20130403',0.3696], ['20130404',0.3696], ['20130405',0.3616], ['20130408',0.3616], ['20130409',0.3616], ['20130410',0.3616], ['20130411',0.3455], ['20130412',0.3295], ['20130415',0.3295], ['20130416',0.3295], ['20130417',0.3134], ['20130418',0.3375], ['20130419',0.3496], ['20130422',0.3496], ['20130423',0.3214], ['20130424',0.3295], ['20130425',0.3295], ['20130426',0.3295], ['20130429',0.3295], ['20130430',0.3295], ['20130502',0.3335], ['20130503',0.3335], ['20130506',0.3335], ['20130507',0.3335], ['20130508',0.3335], ['20130509',0.3616], ['20130510',0.3616], ['20130513',0.3375], ['20130514',0.3415], ['20130515',0.3496], ['20130516',0.3496], ['20130517',0.3536], ['20130520',0.3536], ['20130521',0.3536], ['20130522',0.3536], ['20130523',0.3536], ['20130527',0.3536], ['20130528',0.3536], ['20130529',0.3536], ['20130530',0.3536], ['20130531',0.3375], ['20130603',0.3375], ['20130604',0.3375], ['20130605',0.3375], ['20130606',0.3375], ['20130607',0.3375], ['20130610',0.3375], ['20130611',0.3375], ['20130612',0.3375], ['20130613',0.3375], ['20130614',0.3375], ['20130617',0.3375], ['20130618',0.3375], ['20130619',0.3375], ['20130620',0.3375], ['20130621',0.3375], ['20130624',0.3536], ['20130625',0.3536], ['20130626',0.3536], ['20130627',0.3536], ['20130628',0.3536], ['20130701',0.3536], ['20130702',0.3214], ['20130703',0.3214], ['20130704',0.3214], ['20130705',0.3214], ['20130708',0.3214], ['20130709',0.3214], ['20130710',0.3214], ['20130711',0.3214], ['20130712',0.3214], ['20130715',0.3214], ['20130716',0.3214], ['20130717',0.3214], ['20130718',0.3214], ['20130719',0.3214], ['20130722',0.3214], ['20130723',0.2732], ['20130724',0.2732], ['20130725',0.2732], ['20130726',0.2732], ['20130729',0.3214], ['20130730',0.3455], ['20130731',0.3455], ['20130801',0.3455], ['20130802',0.3455], ['20130805',0.3455], ['20130806',0.3455], ['20130807',0.3174], ['20130812',0.3174], ['20130813',0.3174], ['20130814',0.3174], ['20130815',0.3375], ['20130816',0.3214], ['20130819',0.3214], ['20130820',0.3214], ['20130821',0.3214], ['20130822',0.3214], ['20130823',0.3214], ['20130826',0.3214], ['20130827',0.3214], ['20130828',0.3214], ['20130829',0.3214], ['20130830',0.3134], ['20130902',0.3134], ['20130903',0.3134], ['20130904',0.3134], ['20130905',0.3134], ['20130906',0.3134], ['20130909',0.3134], ['20130910',0.3134], ['20130911',0.3134], ['20130912',0.3134], ['20130913',0.3134], ['20130916',0.3134], ['20130917',0.3134], ['20130918',0.3254], ['20130919',0.3254], ['20130920',0.3254], ['20130923',0.3295], ['20130924',0.3295], ['20130925',0.3295], ['20130926',0.3295], ['20130927',0.3295], ['20130930',0.3295], ['20131001',0.3295], ['20131002',0.3295], ['20131003',0.3295], ['20131004',0.3295], ['20131007',0.3214], ['20131008',0.3214], ['20131009',0.3214], ['20131010',0.3214], ['20131011',0.3214], ['20131014',0.3214], ['20131016',0.3214], ['20131017',0.3214], ['20131018',0.3214], ['20131021',0.3214], ['20131022',0.3214], ['20131023',0.3214], ['20131024',0.3214], ['20131025',0.3214], ['20131028',0.3214], ['20131029',0.3214], ['20131030',0.3214], ['20131031',0.3214], ['20131101',0.3214], ['20131104',0.3214], ['20131105',0.3214], ['20131106',0.3214], ['20131107',0.3214], ['20131108',0.3214], ['20131111',0.3214], ['20131112',0.3214], ['20131113',0.3214], ['20131114',0.3214], ['20131115',0.3214], ['20131118',0.3214], ['20131119',0.3214], ['20131120',0.3375], ['20131121',0.3375], ['20131122',0.3375], ['20131125',0.3375], ['20131126',0.3375], ['20131127',0.3455], ['20131128',0.3455], ['20131129',0.3455], ['20131202',0.3455], ['20131203',0.3455], ['20131204',0.3455], ['20131205',0.3455], ['20131206',0.3455], ['20131209',0.3455], ['20131210',0.3455], ['20131211',0.3455], ['20131212',0.3496], ['20131213',0.3496], ['20131216',0.3496], ['20131217',0.3496], ['20131218',0.3496], ['20131219',0.3616], ['20131220',0.3616], ['20131223',0.3616], ['20131224',0.3616], ['20131226',0.3616], ['20131227',0.3616], ['20131230',0.3616], ['20131231',0.3616], ['20140102',0.3616], ['20140103',0.3616], ['20140106',0.3455], ['20140107',0.3375], ['20140108',0.3295], ['20140109',0.3295], ['20140110',0.3455], ['20140113',0.3375], ['20140114',0.3375], ['20140115',0.3375], ['20140116',0.3375], ['20140117',0.3375], ['20140120',0.3375], ['20140121',0.3375], ['20140122',0.3375], ['20140123',0.3455], ['20140124',0.3455], ['20140127',0.3455], ['20140128',0.3455], ['20140129',0.3455], ['20140130',0.3214], ['20140203',0.3214], ['20140204',0.3214], ['20140205',0.3214], ['20140206',0.3214], ['20140207',0.3214], ['20140210',0.3254], ['20140211',0.3254], ['20140212',0.3254], ['20140213',0.3616], ['20140214',0.3616], ['20140217',0.3616], ['20140218',0.3616], ['20140219',0.3616], ['20140220',0.3616], ['20140221',0.3616], ['20140224',0.3616], ['20140225',0.3616], ['20140226',0.3616], ['20140227',0.3616], ['20140228',0.3616], ['20140303',0.3616], ['20140304',0.3616], ['20140305',0.3616], ['20140306',0.3616], ['20140307',0.3536], ['20140310',0.3536], ['20140311',0.3536], ['20140312',0.3455], ['20140313',0.3455], ['20140314',0.3455], ['20140317',0.3455], ['20140318',0.3455], ['20140319',0.3455], ['20140320',0.3455], ['20140321',0.3455], ['20140324',0.3455], ['20140325',0.3455], ['20140326',0.3455], ['20140327',0.3455], ['20140328',0.3455], ['20140331',0.3455], ['20140401',0.3455], ['20140402',0.3455], ['20140403',0.3616], ['20140404',0.3616], ['20140407',0.3616], ['20140408',0.3616], ['20140409',0.3455], ['20140410',0.3455], ['20140411',0.3455], ['20140414',0.3455], ['20140415',0.3455], ['20140416',0.3455], ['20140417',0.3496], ['20140421',0.3496], ['20140422',0.3496], ['20140423',0.3496], ['20140424',0.3496], ['20140425',0.3496], ['20140428',0.3496], ['20140429',0.3496], ['20140430',0.3496], ['20140502',0.3496], ['20140505',0.3455], ['20140506',0.3455], ['20140507',0.3455], ['20140508',0.3455], ['20140509',0.3455], ['20140512',0.3455], ['20140514',0.3616], ['20140515',0.3616], ['20140516',0.4018], ['20140519',0.4219], ['20140520',0.4179], ['20140521',0.4862], ['20140522',0.4862], ['20140523',0.4098], ['20140526',0.4179], ['20140527',0.4098], ['20140528',0.4179], ['20140529',0.4339], ['20140530',0.4379], ['20140602',0.4259], ['20140603',0.4339], ['20140604',0.4339], ['20140605',0.4379], ['20140606',0.4379], ['20140609',0.4299], ['20140610',0.4339], ['20140611',0.4339], ['20140612',0.4259], ['20140613',0.4259], ['20140616',0.4420], ['20140617',0.4259], ['20140618',0.4339], ['20140619',0.4299], ['20140620',0.4299], ['20140623',0.4460], ['20140624',0.4339], ['20140625',0.4299], ['20140626',0.4299], ['20140627',0.4299], ['20140630',0.4299], ['20140701',0.4420], ['20140702',0.4339], ['20140703',0.4339], ['20140704',0.4379], ['20140707',0.4339], ['20140708',0.4460], ['20140709',0.4460], ['20140710',0.4339], ['20140711',0.4299], ['20140714',0.4299], ['20140715',0.4299], ['20140716',0.4299], ['20140717',0.4259], ['20140718',0.4179], ['20140721',0.4259], ['20140722',0.4339], ['20140723',0.4379], ['20140724',0.4379], ['20140725',0.4379], ['20140729',0.4379], ['20140730',0.4339], ['20140731',0.4339], ['20140801',0.4339], ['20140804',0.4379], ['20140805',0.4379], ['20140806',0.4379], ['20140807',0.4379], ['20140808',0.4379], ['20140811',0.4219], ['20140812',0.4219], ['20140813',0.4219], ['20140814',0.4219], ['20140815',0.4138], ['20140818',0.4138], ['20140819',0.4138], ['20140820',0.4179], ['20140821',0.4138], ['20140822',0.4138], ['20140825',0.4138], ['20140826',0.4179], ['20140827',0.4219], ['20140828',0.4219], ['20140829',0.4219], ['20140901',0.4219], ['20140902',0.4219], ['20140903',0.4219], ['20140904',0.4219], ['20140905',0.4299], ['20140908',0.4299], ['20140909',0.4299], ['20140910',0.4299], ['20140911',0.4299], ['20140912',0.4299], ['20140915',0.4299], ['20140916',0.4138], ['20140917',0.4138], ['20140918',0.4138], ['20140919',0.4138], ['20140922',0.4138], ['20140923',0.4138], ['20140924',0.4138], ['20140925',0.4138], ['20140926',0.4138], ['20140929',0.4138], ['20140930',0.4138], ['20141001',0.4138], ['20141002',0.4058], ['20141003',0.4058], ['20141007',0.4058], ['20141008',0.4138], ['20141009',0.4138], ['20141010',0.4138], ['20141013',0.4138], ['20141014',0.4018], ['20141015',0.4018], ['20141016',0.4018], ['20141017',0.4018], ['20141020',0.4018], ['20141021',0.4018], ['20141023',0.4018], ['20141024',0.4018], ['20141027',0.4018], ['20141028',0.4018], ['20141029',0.4018], ['20141030',0.4018], ['20141031',0.4018], ['20141103',0.4018], ['20141104',0.4018], ['20141105',0.4018], ['20141106',0.4018], ['20141107',0.4179], ['20141110',0.4179], ['20141111',0.4179], ['20141112',0.3777], ['20141113',0.3777], ['20141114',0.3777], ['20141117',0.3696], ['20141118',0.3696], ['20141119',0.3696], ['20141120',0.3696], ['20141121',0.3696], ['20141124',0.3696], ['20141125',0.3696], ['20141126',0.3696], ['20141127',0.3696], ['20141128',0.3696], ['20141201',0.3696], ['20141202',0.3696], ['20141203',0.3696], ['20141204',0.3696], ['20141205',0.3696], ['20141208',0.3696], ['20141209',0.3696], ['20141210',0.3696], ['20141211',0.3696], ['20141212',0.3696], ['20141215',0.3696], ['20141216',0.3696], ['20141217',0.3656], ['20141218',0.3415], ['20141219',0.3415], ['20141222',0.3696], ['20141223',0.3696], ['20141224',0.3696], ['20141226',0.3696], ['20141229',0.3696], ['20141230',0.3696], ['20141231',0.3656], ['20150102',0.3616], ['20150105',0.3616], ['20150106',0.3616], ['20150107',0.3696], ['20150108',0.3696], ['20150109',0.3696], ['20150112',0.3696], ['20150113',0.3696], ['20150114',0.3696], ['20150115',0.3696], ['20150116',0.3696], ['20150119',0.3696], ['20150120',0.3696], ['20150121',0.3696], ['20150122',0.3696], ['20150123',0.3696], ['20150126',0.3737], ['20150127',0.3737], ['20150128',0.3777], ['20150129',0.3857], ['20150130',0.3857], ['20150202',0.3857], ['20150203',0.3857], ['20150204',0.3857], ['20150205',0.3857], ['20150206',0.3777], ['20150209',0.3777], ['20150210',0.3777], ['20150211',0.3777], ['20150212',0.3777], ['20150213',0.3777], ['20150216',0.3777], ['20150217',0.3777], ['20150218',0.3777], ['20150223',0.3777], ['20150224',0.3938], ['20150225',0.4179], ['20150226',0.4179], ['20150227',0.4179], ['20150302',0.4179], ['20150303',0.4179], ['20150304',0.4179], ['20150305',0.4018], ['20150306',0.4018], ['20150309',0.4018], ['20150310',0.4018], ['20150311',0.4018], ['20150312',0.4018], ['20150313',0.4018], ['20150316',0.3857], ['20150317',0.3857], ['20150318',0.3938], ['20150319',0.3938], ['20150320',0.3938], ['20150323',0.3938], ['20150324',0.3938], ['20150325',0.3978], ['20150326',0.3978], ['20150327',0.3978], ['20150330',0.3777], ['20150331',0.3777], ['20150401',0.3777], ['20150402',0.3777], ['20150406',0.3777], ['20150407',0.3777], ['20150408',0.4018], ['20150409',0.4058], ['20150410',0.4058], ['20150413',0.4058], ['20150414',0.4058], ['20150415',0.4058], ['20150416',0.4058], ['20150417',0.4058], ['20150420',0.4058], ['20150421',0.4058], ['20150422',0.4058], ['20150423',0.4018], ['20150424',0.4018], ['20150427',0.4018], ['20150428',0.4018], ['20150429',0.4018], ['20150430',0.4018], ['20150504',0.4018], ['20150505',0.4018], ['20150506',0.4018], ['20150507',0.3978], ['20150508',0.4018], ['20150511',0.4018], ['20150512',0.4018], ['20150513',0.4018], ['20150514',0.4018], ['20150515',0.4018], ['20150518',0.4018], ['20150519',0.3938], ['20150520',0.4179], ['20150521',0.4018], ['20150522',0.4018], ['20150525',0.4058], ['20150526',0.4058], ['20150527',0.4058], ['20150528',0.4058], ['20150529',0.4259], ['20150602',0.4018], ['20150603',0.4018], ['20150604',0.4098], ['20150605',0.4098], ['20150608',0.4098], ['20150609',0.4098], ['20150610',0.4098], ['20150611',0.4098], ['20150612',0.4098], ['20150615',0.4098], ['20150616',0.4259], ['20150617',0.4259], ['20150618',0.4259], ['20150619',0.4259], ['20150622',0.4259], ['20150623',0.4259], ['20150624',0.4259], ['20150625',0.4219], ['20150626',0.4138], ['20150629',0.4460], ['20150630',0.4621], ['20150701',0.4661], ['20150702',0.4540], ['20150703',0.4500], ['20150706',0.4500], ['20150707',0.4379], ['20150708',0.4339], ['20150709',0.4339], ['20150710',0.4339], ['20150713',0.4339], ['20150714',0.4339], ['20150715',0.4339], ['20150716',0.4339], ['20150720',0.4339], ['20150721',0.4339], ['20150722',0.4339], ['20150723',0.4339], ['20150724',0.4259], ['20150727',0.4259], ['20150728',0.4179], ['20150729',0.4179], ['20150730',0.4179], ['20150731',0.4179], ['20150803',0.4179], ['20150804',0.4259], ['20150805',0.4259], ['20150806',0.4259], ['20150811',0.4259], ['20150812',0.3938], ['20150813',0.4058], ['20150814',0.4058], ['20150817',0.4058], ['20150818',0.3857], ['20150819',0.3857], ['20150820',0.3857], ['20150821',0.3696], ['20150824',0.3295], ['20150825',0.3295], ['20150826',0.3295], ['20150827',0.3295], ['20150828',0.3616], ['20150831',0.3616], ['20150901',0.3616], ['20150902',0.3616], ['20150903',0.3576], ['20150904',0.3576], ['20150907',0.3576], ['20150908',0.3536], ['20150909',0.3536], ['20150910',0.3536], ['20150914',0.3656], ['20150915',0.3616], ['20150916',0.3616], ['20150917',0.3616], ['20150918',0.3616], ['20150921',0.3616], ['20150922',0.3616], ['20150923',0.3576], ['20150925',0.3616], ['20150928',0.3616], ['20150929',0.3616], ['20150930',0.3616], ['20151001',0.3616], ['20151002',0.3616], ['20151005',0.3616], ['20151006',0.3696], ['20151007',0.3696], ['20151008',0.3696], ['20151009',0.3696], ['20151012',0.3857], ['20151013',0.3857], ['20151014',0.3857], ['20151015',0.3857], ['20151016',0.3857], ['20151019',0.3857], ['20151020',0.3857], ['20151021',0.3857], ['20151022',0.3857], ['20151023',0.3857], ['20151026',0.3857], ['20151027',0.3857], ['20151028',0.3616], ['20151029',0.3616], ['20151030',0.3616], ['20151102',0.3616], ['20151103',0.4299], ['20151104',0.4661], ['20151105',0.4420], ['20151106',0.4500], ['20151109',0.4500], ['20151111',0.4621], ['20151112',0.4500], ['20151113',0.4500], ['20151116',0.4540], ['20151117',0.4540], ['20151118',0.4500], ['20151119',0.4580], ['20151120',0.4580], ['20151123',0.4580], ['20151124',0.4420], ['20151125',0.4420], ['20151126',0.4420], ['20151127',0.4259], ['20151130',0.4259], ['20151201',0.4580], ['20151202',0.4580], ['20151203',0.4580], ['20151204',0.4420], ['20151207',0.4098], ['20151208',0.4098], ['20151209',0.4500], ['20151210',0.4500], ['20151211',0.4500], ['20151214',0.4500], ['20151215',0.4500], ['20151216',0.4420], ['20151217',0.4339], ['20151218',0.4339], ['20151221',0.4339], ['20151222',0.4339], ['20151223',0.4299], ['20151224',0.4299], ['20151228',0.4299], ['20151229',0.4299], ['20151230',0.4299], ['20151231',0.4299], ['20160104',0.4339], ['20160105',0.4420], ['20160106',0.4420], ['20160107',0.4339], ['20160108',0.4339], ['20160111',0.4339], ['20160112',0.4339], ['20160113',0.4379], ['20160114',0.4379], ['20160115',0.4379], ['20160118',0.4379], ['20160119',0.4379], ['20160120',0.4379], ['20160121',0.4379], ['20160122',0.4379], ['20160125',0.4259], ['20160126',0.4219], ['20160127',0.4219], ['20160128',0.4420], ['20160129',0.4420], ['20160201',0.4420], ['20160202',0.4420], ['20160203',0.4420], ['20160204',0.4420], ['20160205',0.4379], ['20160210',0.4379], ['20160211',0.4379], ['20160212',0.4179], ['20160215',0.4179], ['20160216',0.4179], ['20160217',0.4179], ['20160218',0.4219], ['20160219',0.4379], ['20160222',0.4379], ['20160223',0.4379], ['20160224',0.4339], ['20160225',0.4339], ['20160226',0.4339], ['20160229',0.4339], ['20160301',0.4339], ['20160302',0.4379], ['20160303',0.4379], ['20160304',0.4420], ['20160307',0.4420], ['20160308',0.4379], ['20160309',0.4379], ['20160310',0.4379], ['20160311',0.4379], ['20160314',0.4339], ['20160315',0.4339], ['20160316',0.4339], ['20160317',0.4339], ['20160318',0.4339], ['20160321',0.4379], ['20160322',0.4339], ['20160323',0.4339], ['20160324',0.4339], ['20160328',0.4339], ['20160329',0.4259], ['20160330',0.4259], ['20160331',0.4339], ['20160401',0.4500], ['20160404',0.4339], ['20160405',0.4339], ['20160406',0.4339], ['20160407',0.4339], ['20160408',0.4339], ['20160411',0.4339], ['20160412',0.4339], ['20160413',0.4339], ['20160414',0.4339], ['20160415',0.4339], ['20160418',0.4299], ['20160419',0.4420], ['20160420',0.4420], ['20160421',0.4420], ['20160422',0.4420], ['20160425',0.4420], ['20160426',0.4379], ['20160427',0.4500], ['20160428',0.4500], ['20160429',0.4379], ['20160503',0.4500], ['20160504',0.4500], ['20160505',0.4500], ['20160506',0.4420], ['20160509',0.4339], ['20160510',0.4339], ['20160511',0.4339], ['20160512',0.4339], ['20160513',0.4339], ['20160516',0.4339], ['20160517',0.4339], ['20160518',0.4420], ['20160519',0.5103], ['20160520',0.5464], ['20160523',0.5223], ['20160524',0.5384], ['20160525',0.5384], ['20160526',0.5344], ['20160527',0.5344], ['20160530',0.5464], ['20160531',0.5424], ['20160601',0.5384], ['20160602',0.5505], ['20160603',0.5424], ['20160606',0.5384], ['20160607',0.5384], ['20160608',0.5464], ['20160609',0.5505], ['20160610',0.5464], ['20160613',0.5464], ['20160614',0.5464], ['20160615',0.5705], ['20160616',0.5746], ['20160617',0.6027], ['20160620',0.6107], ['20160621',0.6107], ['20160622',0.6107], ['20160623',0.6147], ['20160624',0.5987], ['20160627',0.5946], ['20160628',0.5946], ['20160629',0.5946], ['20160630',0.6107], ['20160701',0.6469], ['20160704',0.6630], ['20160705',0.6073], ['20160707',0.6245], ['20160708',0.6116], ['20160711',0.6073], ['20160712',0.6073], ['20160713',0.5988], ['20160714',0.6031], ['20160715',0.5988], ['20160718',0.5860], ['20160719',0.5646], ['20160720',0.5603], ['20160721',0.5603], ['20160722',0.5603], ['20160725',0.5475], ['20160726',0.5475], ['20160727',0.5475], ['20160728',0.5646], ['20160729',0.5817], ['20160801',0.5817], ['20160802',0.5603], ['20160803',0.5603], ['20160804',0.5603], ['20160805',0.5860], ['20160808',0.5860], ['20160810',0.5860], ['20160811',0.5860], ['20160812',0.5988], ['20160815',0.5817], ['20160816',0.5817], ['20160817',0.5817], ['20160818',0.5817], ['20160819',0.5945], ['20160822',0.5774], ['20160823',0.5774], ['20160824',0.5774], ['20160825',0.5945], ['20160826',0.5945], ['20160829',0.5860], ['20160830',0.5860], ['20160831',0.5860], ['20160901',0.5860], ['20160902',0.5860], ['20160905',0.6031], ['20160906',0.6031], ['20160907',0.6031], ['20160908',0.6031], ['20160909',0.6031], ['20160913',0.5988], ['20160914',0.5902], ['20160915',0.5902], ['20160916',0.5902], ['20160919',0.5902], ['20160920',0.5902], ['20160921',0.5902], ['20160922',0.5902], ['20160923',0.5902], ['20160926',0.5988], ['20160927',0.5988], ['20160928',0.5988], ['20160929',0.5988], ['20160930',0.6073], ['20161003',0.6073], ['20161004',0.6073], ['20161005',0.6073], ['20161006',0.6073], ['20161007',0.6073], ['20161010',0.6073], ['20161011',0.5988], ['20161012',0.5988], ['20161013',0.6159], ['20161014',0.5988], ['20161017',0.6159], ['20161018',0.6159], ['20161019',0.6245], ['20161020',0.6245], ['20161021',0.6031], ['20161024',0.6031], ['20161025',0.6073], ['20161026',0.6031], ['20161027',0.6159], ['20161028',0.6159], ['20161031',0.6159], ['20161101',0.6159], ['20161102',0.6159], ['20161103',0.6972], ['20161104',0.7057], ['20161107',0.7100], ['20161108',0.7250], ['20161109',0.7300], ['20161110',0.7100], ['20161111',0.7200], ['20161114',0.7200], ['20161115',0.7200], ['20161116',0.7200], ['20161117',0.7100], ['20161118',0.7100], ['20161121',0.7250], ['20161122',0.7200], ['20161123',0.7250], ['20161124',0.7200], ['20161125',0.6900], ['20161128',0.6900], ['20161129',0.6900], ['20161130',0.6900], ['20161201',0.6900], ['20161202',0.7000], ['20161205',0.7000], ['20161206',0.7000], ['20161207',0.7000], ['20161208',0.7050], ['20161209',0.7050], ['20161212',0.7050], ['20161213',0.7000], ['20161214',0.7000], ['20161215',0.7000], ['20161216',0.7000], ['20161219',0.7200], ['20161220',0.7350], ['20161221',0.7000], ['20161222',0.7000], ['20161223',0.7000], ['20161227',0.7000], ['20161228',0.7000], ['20161229',0.7100], ['20161230',0.7100], ['20170103',0.7150], ['20170104',0.7150], ['20170105',0.7250], ['20170106',0.7100], ['20170109',0.7100], ['20170110',0.7100], ['20170111',0.7000], ['20170112',0.7150], ['20170113',0.7200], ['20170116',0.7350], ['20170117',0.7350], ['20170118',0.7200], ['20170119',0.7200], ['20170120',0.7200], ['20170123',0.7200], ['20170124',0.7050], ['20170125',0.7050], ['20170126',0.7400], ['20170127',0.7300], ['20170131',0.7300], ['20170201',0.7150], ['20170202',0.7150], ['20170203',0.7150], ['20170206',0.7150], ['20170207',0.7150], ['20170208',0.7100], ['20170209',0.7100], ['20170210',0.7100], ['20170213',0.7100], ['20170214',0.7250], ['20170215',0.7250], ['20170216',0.7350], ['20170217',0.7150], ['20170220',0.7150], ['20170221',0.7150], ['20170222',0.7200], ['20170223',0.7200], ['20170224',0.7200], ['20170227',0.7200], ['20170228',0.7300], ['20170301',0.7500], ['20170302',0.8000], ['20170303',0.7900], ['20170306',0.7900], ['20170307',0.7900], ['20170308',0.7900], ['20170309',0.7900], ['20170310',0.7900], ['20170313',0.7900], ['20170314',0.7550], ['20170315',0.7550], ['20170316',0.7900], ['20170317',0.7900], ['20170320',0.7750], ['20170321',0.7750], ['20170322',0.7750], ['20170323',0.7700], ['20170324',0.7750], ['20170327',0.7900], ['20170328',0.7900], ['20170329',0.7800], ['20170330',0.7800], ['20170331',0.7850], ['20170403',0.7850], ['20170404',0.8050], ['20170405',0.7850], ['20170406',0.8300], ['20170407',0.8400], ['20170410',0.8400], ['20170411',0.8400], ['20170412',0.8400], ['20170413',0.8400], ['20170417',0.8200], ['20170418',0.8300], ['20170419',0.8300], ['20170420',0.8300], ['20170421',0.8300], ['20170424',0.8300], ['20170425',0.8300], ['20170426',0.8300], ['20170427',0.8450], ['20170428',0.8200], ['20170502',0.8200], ['20170503',0.8200], ['20170504',0.8200], ['20170505',0.8250], ['20170508',0.8300], ['20170509',0.8350], ['20170511',0.8450], ['20170512',0.8450], ['20170515',0.8450], ['20170516',0.8500], ['20170517',0.8500], ['20170518',0.8800], ['20170519',0.8600], ['20170522',0.8600], ['20170523',0.8100], ['20170524',0.8100], ['20170525',0.8200], ['20170526',0.8200], ['20170529',0.8200], ['20170530',0.8300], ['20170531',0.8250], ['20170601',0.8250], ['20170602',0.8250], ['20170605',0.8200], ['20170606',0.8200], ['20170607',0.8500], ['20170608',0.8500], ['20170609',0.8500], ['20170612',0.8550], ['20170613',0.8550], ['20170614',0.8900], ['20170615',0.9000], ['20170616',0.9000], ['20170619',0.9050], ['20170620',0.9000], ['20170621',0.8900], ['20170622',0.8900], ['20170623',0.8900], ['20170627',0.9000], ['20170628',0.8900], ['20170629',0.8800], ['20170630',0.8800], ['20170703',0.9000], ['20170704',0.9000], ['20170705',0.9150], ['20170706',0.8700], ['20170707',0.8550], ['20170710',0.8450], ['20170711',0.8550], ['20170712',0.8600], ['20170713',0.8700], ['20170714',0.8750], ['20170717',0.9000], ['20170718',0.9300], ['20170719',0.9450], ['20170720',0.9450], ['20170721',0.9450], ['20170724',0.9450], ['20170725',0.9450], ['20170726',0.9200], ['20170727',0.9300], ['20170728',0.9100], ['20170731',0.9100], ['20170801',0.9100], ['20170802',0.9100], ['20170803',0.9100], ['20170804',0.9500], ['20170807',0.9400], ['20170808',0.9150], ['20170810',0.9150], ['20170811',0.9150], ['20170814',0.9150], ['20170815',0.9000], ['20170816',0.9050], ['20170817',0.9000], ['20170818',0.9000], ['20170821',0.9150], ['20170822',0.9500], ['20170823',0.9500], ['20170824',0.9500], ['20170825',0.9500], ['20170828',0.9500], ['20170829',0.9500], ['20170830',0.9000], ['20170831',0.9200], ['20170904',0.9100], ['20170905',0.9100], ['20170906',0.9100], ['20170907',0.9200], ['20170908',0.9050], ['20170911',0.9100], ['20170912',0.9100], ['20170913',0.9100], ['20170914',0.9200], ['20170915',0.9200], ['20170918',0.9100], ['20170919',0.9150], ['20170920',0.9150], ['20170921',0.9150], ['20170922',0.9150], ['20170925',0.9150], ['20170926',0.9150], ['20170927',0.9050], ['20170928',0.9200], ['20170929',0.9200], ['20171002',0.9100], ['20171003',0.9100], ['20171004',0.9150], ['20171005',0.9500], ['20171006',0.9200], ['20171009',0.9200], ['20171010',0.9200], ['20171011',0.9200], ['20171012',0.9200], ['20171013',0.9150], ['20171016',0.9150], ['20171017',0.9150], ['20171019',0.9150], ['20171020',0.9200], ['20171023',0.9200], ['20171024',0.9250], ['20171025',0.9150], ['20171026',0.9150], ['20171027',0.9150], ['20171030',0.9400], ['20171031',0.9100], ['20171101',0.9450], ['20171102',0.9450], ['20171103',0.8600], ['20171106',0.8600], ['20171107',0.8600], ['20171108',0.8550], ['20171109',0.9000], ['20171110',0.8400], ['20171113',0.8400], ['20171114',0.8350], ['20171115',0.8100], ['20171116',0.8100], ['20171117',0.8050], ['20171120',0.8200], ['20171121',0.8100], ['20171122',0.8050], ['20171123',0.8100], ['20171124',0.8100], ['20171127',0.8200], ['20171128',0.8200], ['20171129',0.8200], ['20171130',0.8050], ['20171201',0.8050], ['20171204',0.8050], ['20171205',0.8050], ['20171206',0.8050], ['20171207',0.8050], ['20171208',0.8050], ['20171211',0.8050], ['20171212',0.8050], ['20171213',0.8050], ['20171214',0.8000], ['20171215',0.8000], ['20171218',0.8000], ['20171219',0.8100], ['20171220',0.8000], ['20171221',0.7950], ['20171222',0.8000], ['20171226',0.8000], ['20171227',0.8000], ['20171228',0.8000], ['20171229',0.8000], ['20180102',0.8100], ['20180103',0.8000], ['20180104',0.8000], ['20180105',0.8000], ['20180108',0.8000], ['20180109',0.7950], ['20180110',0.7900], ['20180111',0.7700], ['20180112',0.7750], ['20180115',0.7700], ['20180116',0.7700], ['20180117',0.7700], ['20180118',0.7700], ['20180119',0.8000], ['20180122',0.8000], ['20180123',0.8000], ['20180124',0.8000], ['20180125',0.8000], ['20180126',0.8000], ['20180129',0.8000], ['20180130',0.7800], ['20180131',0.7800], ['20180201',0.7750], ['20180202',0.7750], ['20180205',0.7850], ['20180206',0.7800], ['20180207',0.7700], ['20180208',0.7800], ['20180209',0.7800], ['20180212',0.7800], ['20180213',0.7800], ['20180214',0.7800], ['20180215',0.7800], ['20180219',0.7700], ['20180220',0.7700], ['20180221',0.7800], ['20180222',0.7600], ['20180223',0.7650], ['20180226',0.8000], ['20180227',0.7800], ['20180228',0.7800], ['20180301',0.7800], ['20180302',0.7800], ['20180305',0.7800], ['20180306',0.7800], ['20180307',0.7700], ['20180308',0.7700], ['20180309',0.7650], ['20180312',0.7650], ['20180313',0.7550], ['20180314',0.7550], ['20180315',0.7500], ['20180316',0.7500], ['20180319',0.7500], ['20180320',0.7600], ['20180321',0.7700], ['20180322',0.7700], ['20180323',0.7600], ['20180326',0.7400], ['20180327',0.7500], ['20180328',0.7400], ['20180329',0.7400], ['20180402',0.7400], ['20180403',0.7400], ['20180404',0.7250], ['20180405',0.7500], ['20180406',0.7600], ['20180409',0.7600], ['20180410',0.7600], ['20180411',0.7600], ['20180412',0.7600], ['20180413',0.7700], ['20180416',0.7700], ['20180417',0.7700], ['20180418',0.8000], ['20180419',0.7750], ['20180420',0.7750], ['20180423',0.7750], ['20180424',0.7750], ['20180425',0.7700], ['20180426',0.7700], ['20180427',0.7700], ['20180430',0.7700], ['20180502',0.7700], ['20180503',0.7700], ['20180504',0.7700], ['20180507',0.7700], ['20180508',0.7700], ['20180509',0.7600], ['20180510',0.7700], ['20180511',0.7700], ['20180514',0.7650], ['20180515',0.7650], ['20180516',0.7650], ['20180517',0.7650], ['20180518',0.7550], ['20180521',0.7600], ['20180522',0.7700], ['20180523',0.7600], ['20180524',0.7700], ['20180525',0.7700], ['20180528',0.8000], ['20180530',0.7700], ['20180531',0.7700], ['20180601',0.7900], ['20180604',0.7700], ['20180605',0.7700], ['20180606',0.7700], ['20180607',0.7700], ['20180608',0.7700], ['20180611',0.7700], ['20180612',0.7750], ['20180613',0.7750], ['20180614',0.7800], ['20180618',0.7800], ['20180619',0.7800], ['20180620',0.7800], ['20180621',0.7800], ['20180622',0.7600], ['20180625',0.7650], ['20180626',0.7800], ['20180627',0.7700], ['20180628',0.7750], ['20180629',0.7750], ['20180702',0.7750], ['20180703',0.7750], ['20180704',0.7700], ['20180705',0.7700], ['20180706',0.7700], ['20180709',0.7700], ['20180710',0.7600], ['20180711',0.7600], ['20180712',0.7600], ['20180713',0.7600], ['20180716',0.7600], ['20180717',0.7600], ['20180718',0.7600], ['20180719',0.7600], ['20180720',0.7650], ['20180723',0.8000], ['20180724',0.7900], ['20180725',0.7750], ['20180726',0.7750], ['20180727',0.7750], ['20180730',0.7750], ['20180731',0.7750], ['20180801',0.7750], ['20180802',0.7750], ['20180803',0.7750], ['20180806',0.7750], ['20180807',0.7750], ['20180808',0.7750], ['20180810',0.7750], ['20180813',0.7700], ['20180814',0.7700], ['20180815',0.7800], ['20180816',0.7800], ['20180817',0.7800], ['20180820',0.7800], ['20180821',0.7800], ['20180823',0.7500], ['20180824',0.7600], ['20180827',0.7600], ['20180828',0.7600], ['20180829',0.7600], ['20180830',0.7600], ['20180831',0.7600], ['20180903',0.7600], ['20180904',0.7200], ['20180905',0.7400], ['20180906',0.7400], ['20180907',0.7400], ['20180910',0.7400], ['20180911',0.7400], ['20180912',0.7400], ['20180913',0.7400], ['20180914',0.7400], ['20180917',0.7400], ['20180918',0.7400], ['20180919',0.7400], ['20180920',0.7400], ['20180921',0.7400], ['20180924',0.7400], ['20180925',0.7400], ['20180926',0.7400], ['20180927',0.7450], ['20180928',0.7450], ['20181001',0.7650], ['20181002',0.7650], ['20181003',0.7650], ['20181004',0.7700], ['20181005',0.7700], ['20181008',0.7700], ['20181009',0.7700], ['20181010',0.7500], ['20181011',0.7500], ['20181012',0.7400], ['20181015',0.7400], ['20181016',0.7400], ['20181017',0.7400], ['20181018',0.7400], ['20181019',0.7400], ['20181022',0.7400], ['20181023',0.7400], ['20181024',0.7400], ['20181025',0.7400], ['20181026',0.7400], ['20181029',0.7400], ['20181030',0.7100], ['20181031',0.7400], ['20181101',0.7400], ['20181102',0.7400], ['20181105',0.7400], ['20181107',0.7400], ['20181108',0.7300], ['20181109',0.7300], ['20181112',0.7300], ['20181113',0.7300], ['20181114',0.7300], ['20181115',0.7300], ['20181116',0.7300], ['20181119',0.7300], ['20181120',0.7300], ['20181121',0.7600], ['20181122',0.7500], ['20181123',0.7500], ['20181126',0.7500], ['20181127',0.7500], ['20181128',0.7400], ['20181129',0.7400], ['20181130',0.7400], ['20181203',0.7400], ['20181204',0.7400], ['20181205',0.6650], ['20181206',0.7400], ['20181207',0.7400], ['20181210',0.7400], ['20181211',0.7400], ['20181212',0.7400], ['20181213',0.7400], ['20181214',0.7400], ['20181217',0.7400], ['20181218',0.7300], ['20181219',0.7300], ['20181220',0.7300], ['20181221',0.7200], ['20181224',0.7300], ['20181226',0.7100], ['20181227',0.7100], ['20181228',0.7100], ['20181231',0.7250], ['20190102',0.7250], ['20190103',0.7250], ['20190104',0.7250], ['20190107',0.7150], ['20190108',0.7200], ['20190109',0.7250], ['20190110',0.7250], ['20190111',0.7250], ['20190114',0.7250], ['20190115',0.7250], ['20190116',0.7600], ['20190117',0.7600], ['20190118',0.7600], ['20190121',0.7600], ['20190122',0.7600], ['20190123',0.7600], ['20190124',0.7600], ['20190125',0.7600], ['20190128',0.7600], ['20190129',0.7600], ['20190130',0.7600], ['20190131',0.7600], ['20190201',0.7600], ['20190204',0.7600], ['20190207',0.7300], ['20190208',0.7300], ['20190211',0.7500], ['20190212',0.7500], ['20190213',0.7500], ['20190214',0.7500], ['20190215',0.7500], ['20190218',0.7400], ['20190219',0.7200], ['20190220',0.7200], ['20190221',0.7200], ['20190222',0.7200], ['20190225',0.7300], ['20190226',0.7300], ['20190227',0.7300], ['20190228',0.7300], ['20190301',0.7300], ['20190304',0.7300], ['20190305',0.7200], ['20190306',0.7200], ['20190307',0.7400], ['20190308',0.7400], ['20190311',0.7400], ['20190312',0.7300], ['20190313',0.7300], ['20190314',0.7300], ['20190315',0.7300], ['20190318',0.6800], ['20190319',0.7200], ['20190320',0.7400], ['20190321',0.7550], ['20190322',0.7500], ['20190325',0.7300], ['20190326',0.7300], ['20190327',0.7300], ['20190328',0.7300], ['20190329',0.7300], ['20190401',0.7400], ['20190402',0.7400], ['20190403',0.7400], ['20190404',0.7400], ['20190405',0.7400], ['20190408',0.7900], ['20190409',0.7300], ['20190410',0.7300], ['20190411',0.7600], ['20190412',0.7600], ['20190415',0.7600], ['20190416',0.7600], ['20190417',0.7600], ['20190418',0.7600], ['20190422',0.7600], ['20190423',0.7600], ['20190424',0.7600], ['20190425',0.7600], ['20190426',0.7700], ['20190429',0.7700], ['20190430',0.7700], ['20190502',0.7700], ['20190503',0.7700], ['20190506',0.7700], ['20190507',0.7700], ['20190508',0.7000], ['20190509',0.7100], ['20190510',0.7100], ['20190513',0.7100], ['20190514',0.7150], ['20190515',0.7050], ['20190516',0.7050], ['20190517',0.7050], ['20190521',0.7050], ['20190522',0.7000], ['20190523',0.7050], ['20190524',0.7050], ['20190527',0.7050], ['20190528',0.6900], ['20190529',0.7300], ['20190530',0.7000], ['20190531',0.7100], ['20190603',0.7100], ['20190604',0.7100], ['20190606',0.7100], ['20190607',0.7100], ['20190610',0.7100], ['20190611',0.7100], ['20190612',0.7000], ['20190613',0.7350], ['20190614',0.7350], ['20190617',0.7150], ['20190618',0.7250], ['20190619',0.7150], ['20190620',0.7150], ['20190621',0.7150], ['20190624',0.7150], ['20190625',0.7150], ['20190626',0.7150], ['20190627',0.7150], ['20190628',0.7250], ['20190701',0.7250], ['20190702',0.7150], ['20190703',0.7150], ['20190704',0.7150], ['20190705',0.7050], ['20190708',0.7300], ['20190709',0.7500], ['20190710',0.7000], ['20190711',0.7000], ['20190712',0.7000], ['20190715',0.7000], ['20190716',0.7000], ['20190717',0.7000], ['20190718',0.7000], ['20190719',0.7000], ['20190722',0.7000], ['20190723',0.7050], ['20190724',0.7200], ['20190725',0.7200], ['20190726',0.7200], ['20190729',0.7000], ['20190730',0.7200], ['20190731',0.7200], ['20190801',0.7200], ['20190802',0.7500], ['20190805',0.7000], ['20190806',0.7200], ['20190807',0.7200], ['20190808',0.7200], ['20190813',0.6900], ['20190814',0.6900], ['20190815',0.6900], ['20190816',0.6900], ['20190819',0.7000], ['20190820',0.6900], ['20190821',0.7200], ['20190822',0.7200], ['20190823',0.7200], ['20190826',0.7100], ['20190827',0.7100], ['20190828',0.7100], ['20190829',0.6950], ['20190830',0.6950], ['20190902',0.6950], ['20190903',0.7000], ['20190904',0.7300], ['20190905',0.7100], ['20190906',0.7100], ['20190909',0.7000], ['20190910',0.7000], ['20190911',0.7000], ['20190912',0.7000], ['20190913',0.7000], ['20190916',0.7000], ['20190917',0.7200], ['20190918',0.7200], ['20190919',0.7200], ['20190920',0.7200], ['20190923',0.7200], ['20190924',0.7200], ['20190925',0.7200], ['20190926',0.7200], ['20190927',0.7100], ['20190930',0.7100], ['20191001',0.7100], ['20191002',0.7100], ['20191003',0.7100], ['20191004',0.7100], ['20191007',0.7100], ['20191008',0.7100], ['20191009',0.7100], ['20191010',0.7100], ['20191011',0.7100], ['20191014',0.7100], ['20191015',0.7100], ['20191016',0.7100], ['20191017',0.7100], ['20191018',0.7050], ['20191021',0.7050], ['20191022',0.7050], ['20191023',0.7000], ['20191024',0.7000], ['20191025',0.7000], ['20191029',0.7000], ['20191030',0.7300], ['20191031',0.7200], ['20191101',0.7200], ['20191104',0.7150], ['20191105',0.7200], ['20191106',0.7200], ['20191107',0.7200], ['20191108',0.7200], ['20191111',0.7200], ['20191112',0.7200], ['20191113',0.7200], ['20191114',0.7350], ['20191115',0.7200], ['20191118',0.7500], ['20191119',0.7400], ['20191120',0.7400], ['20191121',0.7400], ['20191122',0.7400], ['20191125',0.7400], ['20191126',0.7250], ['20191127',0.7400], ['20191128',0.7400], ['20191129',0.7200], ['20191202',0.7250], ['20191203',0.7200], ['20191204',0.7200], ['20191205',0.7200], ['20191206',0.7200], ['20191209',0.7200], ['20191210',0.7200], ['20191211',0.7200], ['20191212',0.7200], ['20191213',0.7200], ['20191216',0.7200], ['20191217',0.7200], ['20191218',0.7200], ['20191219',0.7200], ['20191220',0.7200], ['20191223',0.7200], ['20191224',0.7200], ['20191226',0.7200], ['20191227',0.7200], ['20191230',0.7400], ['20191231',0.7400], ['20200102',0.7500], ['20200103',0.7200], ['20200106',0.7200], ['20200107',0.7200], ['20200108',0.7300], ['20200109',0.7200], ['20200110',0.7250], ['20200113',0.7250], ['20200114',0.7250], ['20200115',0.7250], ['20200116',0.7250], ['20200117',0.7250], ['20200120',0.7250], ['20200121',0.7250], ['20200122',0.7250], ['20200123',0.7250], ['20200124',0.7250], ['20200128',0.7250], ['20200129',0.7250], ['20200130',0.7200], ['20200131',0.7200], ['20200203',0.7200], ['20200204',0.7200], ['20200205',0.7200], ['20200206',0.7200], ['20200207',0.7200], ['20200210',0.7200], ['20200211',0.7200], ['20200212',0.7200], ['20200213',0.7200], ['20200214',0.7200], ['20200217',0.7100], ['20200218',0.7100], ['20200219',0.7100], ['20200220',0.7100], ['20200221',0.7100], ['20200224',0.7100], ['20200225',0.7100], ['20200226',0.7100], ['20200227',0.7100], ['20200228',0.7100], ['20200302',0.7100], ['20200303',0.7100], ['20200304',0.7100], ['20200305',0.7100], ['20200306',0.7000], ['20200309',0.6900], ['20200310',0.6700], ['20200311',0.6750], ['20200312',0.6400], ['20200313',0.6400], ['20200316',0.6400], ['20200317',0.6400], ['20200318',0.6400], ['20200319',0.6400], ['20200320',0.6400], ['20200323',0.6400], ['20200324',0.6400], ['20200325',0.6400], ['20200326',0.6400], ['20200327',0.6400], ['20200330',0.6350], ['20200331',0.6450], ['20200401',0.6450], ['20200402',0.6450], ['20200403',0.6450], ['20200406',0.6450], ['20200407',0.6450], ['20200408',0.6450], ['20200409',0.6350], ['20200413',0.6350], ['20200414',0.6400], ['20200415',0.6400], ['20200416',0.6400], ['20200417',0.6400], ['20200420',0.6500], ['20200421',0.6250], ['20200422',0.6250], ['20200423',0.6250], ['20200424',0.6250], ['20200427',0.6250], ['20200428',0.6300], ['20200429',0.6300], ['20200430',0.6300], ['20200504',0.6300], ['20200505',0.5350], ['20200506',0.6300], ['20200508',0.6300], ['20200511',0.6300], ['20200512',0.6300], ['20200513',0.6300], ['20200514',0.6300], ['20200515',0.6300], ['20200518',0.6300], ['20200519',0.6300], ['20200520',0.6300], ['20200521',0.6300], ['20200522',0.6300], ['20200526',0.6300], ['20200527',0.6350], ['20200528',0.6350], ['20200529',0.6050], ['20200601',0.6000], ['20200602',0.6000], ['20200603',0.6000], ['20200604',0.6000], ['20200605',0.6200], ['20200608',0.6000], ['20200609',0.6000], ['20200610',0.6000], ['20200611',0.6000], ['20200612',0.6000], ['20200615',0.6000], ['20200616',0.6000], ['20200617',0.6000], ['20200618',0.6000], ['20200619',0.6500], ['20200622',0.6200], ['20200623',0.6200], ['20200624',0.6200], ['20200625',0.6200], ['20200626',0.6200], ['20200629',0.6200], ['20200630',0.6200], ['20200701',0.6200], ['20200702',0.6200], ['20200703',0.6300], ['20200706',0.6300], ['20200707',0.6350], ['20200708',0.6350], ['20200709',0.6350], ['20200713',0.6300], ['20200714',0.6300], ['20200715',0.6300], ['20200716',0.6300], ['20200717',0.6300], ['20200720',0.6200], ['20200721',0.6100], ['20200722',0.6100], ['20200723',0.6100], ['20200724',0.6100], ['20200727',0.6100], ['20200728',0.6100], ['20200729',0.6100], ['20200730',0.6050], ['20200803',0.6050], ['20200804',0.5900], ['20200805',0.6150], ['20200806',0.6150], ['20200807',0.6150], ['20200811',0.6150], ['20200812',0.6150], ['20200813',0.6150], ['20200814',0.6450], ['20200817',0.6450], ['20200818',0.6450], ['20200819',0.6350], ['20200820',0.6400], ['20200821',0.6400], ['20200824',0.6400], ['20200825',0.6200], ['20200826',0.6200], ['20200827',0.6200], ['20200828',0.6200], ['20200831',0.6200], ['20200901',0.6200], ['20200902',0.6200], ['20200903',0.6350], ['20200904',0.6350], ['20200907',0.6350], ['20200908',0.6350], ['20200909',0.6350], ['20200910',0.6200], ['20200911',0.6200], ['20200914',0.6200], ['20200915',0.6200], ['20200916',0.6200], ['20200917',0.6200], ['20200918',0.6200], ['20200921',0.6200], ['20200922',0.6200], ['20200923',0.6200], ['20200924',0.6200], ['20200925',0.6200], ['20200928',0.6200], ['20200929',0.6200], ['20200930',0.6200], ['20201001',0.6200], ['20201002',0.6200], ['20201005',0.6200], ['20201006',0.6200], ['20201007',0.6200], ['20201008',0.6200], ['20201009',0.6250], ['20201012',0.6300], ['20201013',0.6300], ['20201014',0.6200], ['20201015',0.6200], ['20201016',0.6200], ['20201019',0.6200], ['20201020',0.6200], ['20201021',0.6200], ['20201022',0.6300], ['20201023',0.6300], ['20201026',0.6300], ['20201027',0.6300], ['20201028',0.6300], ['20201029',0.6300], ['20201030',0.6300], ['20201102',0.6300], ['20201103',0.6500], ['20201104',0.6500], ['20201105',0.6500], ['20201106',0.6500], ['20201109',0.6500], ['20201110',0.6700], ['20201111',0.6700], ['20201112',0.6700], ['20201113',0.6700], ['20201116',0.6700], ['20201117',0.6700], ['20201118',0.6700], ['20201119',0.6700], ['20201120',0.6700], ['20201123',0.6700], ['20201124',0.6700], ['20201125',0.6200], ['20201126',0.6200], ['20201127',0.6200], ['20201130',0.6200]]; var source='shareinvestor.com';
cbracis/ForagingModel
src/ForagingModel/core/ForagingModelException.java
package ForagingModel.core; /** * An unexpected exception in ForagingModel. * */ public class ForagingModelException extends RuntimeException { private static final long serialVersionUID = 229219356133024301L; public ForagingModelException() { super(prefix()); } public ForagingModelException( String message ) { super( prefix() + message ); } public ForagingModelException( String message, Exception nestedException ) { super( prefix() + message, nestedException); } private static String prefix() { // information to reproduce simulation if there are exceptions return "S" + ModelEnvironment.getSimulationIndex() + " R" + Parameters.get().getRandomSeed() + ":"; } }
weisk/ppl.nn
src/ppl/nn/engines/x86/impls/include/ppl/kernel/x86/fp32/slice.h
#ifndef __ST_PPL_KERNEL_X86_FP32_SLICE_H_ #define __ST_PPL_KERNEL_X86_FP32_SLICE_H_ #include "ppl/kernel/x86/common/general_include.h" namespace ppl { namespace kernel { namespace x86 { ppl::common::RetCode slice_ndarray_fp32( const ppl::nn::TensorShape *src_shape, const ppl::nn::TensorShape *dst_shape, const float *src, const int64_t *starts, const int64_t *steps, const int64_t *axes, const int64_t axes_num, float *dst); }}}; // namespace ppl::kernel::x86 #endif
austundag/recruitment-registry
test/reset-token.integration.js
/* global describe,before,after,it */ 'use strict'; process.env.NODE_ENV = 'test'; process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; const chai = require('chai'); const SharedIntegration = require('./util/shared-integration'); const RRSuperTest = require('./util/rr-super-test'); const Generator = require('./util/generator'); const History = require('./util/history'); const SMTPServer = require('./util/smtp-server'); const config = require('../config'); const expect = chai.expect; describe('reset-token integration', function resetTokenIntegration() { const generator = new Generator(); const rrSuperTest = new RRSuperTest(); const shared = new SharedIntegration(rrSuperTest, generator); const userExample = generator.newUser(); const surveyExample = generator.newSurvey(); const hxUser = new History(); const server = new SMTPServer(); before(shared.setUpFn()); it('start smtp server', function startSmtpServer() { server.listen(9001); }); it('login as super user', shared.loginFn(config.superUser)); it('create profile survey', shared.createSurveyProfileFn(surveyExample)); it('logout as super user', shared.logoutFn()); let survey; it('get profile survey', function getProfileSurvey() { return rrSuperTest.get('/profile-survey', false, 200) .then((res) => { survey = res.body.survey; }); }); let answers; it('fill user profile and submit', function registerUser() { answers = generator.answerQuestions(survey.questions); const user = userExample; return rrSuperTest.post('/profiles', { user, answers }, 201) .then((res) => { hxUser.push(user, { id: res.body.id }); }); }); it('verify user can login', shared.loginIndexFn(hxUser, 0)); let token = null; it('error: no smtp settings is specified', function noSmtp() { const email = userExample.email; return rrSuperTest.post('/reset-tokens', { email }, 400) .then(res => shared.verifyErrorMessage(res, 'smtpNotSpecified')); }); it('login as super', shared.loginFn(config.superUser)); const smtpSpec = { protocol: 'smtp', username: '<EMAIL>', password: 'pw', host: 'localhost', from: '<EMAIL>', otherOptions: { port: 9001, }, }; it('setup server specifications', function setupSmtp() { return rrSuperTest.post('/smtp/reset-password', smtpSpec, 204); }); it('logout as super', shared.logoutFn()); it('error: no email subject/content is specified', function noEmailContent() { const email = userExample.email; return rrSuperTest.post('/reset-tokens', { email }, 400) .then(res => shared.verifyErrorMessage(res, 'smtpTextNotSpecified')); }); it('login as super', shared.loginFn(config.superUser)); const actualLink = '${link}'; // eslint-disable-line no-template-curly-in-string const smtpText = { subject: 'Registry Admin', content: `Click on this: ${actualLink}`, }; it('setup server specifications', function setupSmtp2() { return rrSuperTest.patch('/smtp/reset-password/text/en', smtpText, 204); }); it('logout as super', shared.logoutFn()); it('error: generate reset tokens', function resetTokens() { const email = userExample.email; return rrSuperTest.post('/reset-tokens', { email }, 500); }); it('login as super', shared.loginFn(config.superUser)); it('setup server specifications', function setupSmtp3() { smtpSpec.from = '<EMAIL>'; return rrSuperTest.post('/smtp/reset-password', smtpSpec, 204); }); it('logout as super', shared.logoutFn()); it('generate reset tokens', function resetToken2() { const email = userExample.email; return rrSuperTest.post('/reset-tokens', { email }, 204); }); it('verify user can not login', shared.badLoginFn(userExample)); it('checked received email and recover token', function checkEmail() { const receivedEmail = server.receivedEmail; expect(receivedEmail.auth.username).to.equal(smtpSpec.username); expect(receivedEmail.auth.password).to.equal(smtpSpec.password); expect(receivedEmail.from).to.equal(smtpSpec.from); expect(receivedEmail.to).to.equal(userExample.email); const lines = receivedEmail.content.split('\r\n'); let subjectFound = false; lines.forEach((line, index) => { if (line.startsWith('Subject: ')) { const subject = line.split('Subject: ')[1]; expect(subject).to.equal(smtpText.subject); subjectFound = true; } if (line.startsWith('Click on this:')) { const linkPieces = line.split('/'); token = linkPieces[linkPieces.length - 1]; if (token.charAt(token.length - 1) === '=') { token = token.slice(0, token.length - 1) + lines[index + 1]; } } }); expect(subjectFound).to.equal(true); expect(token).to.not.equal(null); }); it('reset password', function resetPassword() { const password = '<PASSWORD>'; return rrSuperTest.post('/users/password', { token, password }, 204); }); it('verify user can not login with old password', shared.badLoginFn(userExample)); it('update client password', function updatePassword() { hxUser.client(0).password = '<PASSWORD>'; }); it('verify user can login', shared.loginIndexFn(hxUser, 0)); after((done) => { server.close(done); }); });
gadzhimari/dialog-web-components
src/components/ActivityProfile/ActivityGroupProfile.js
/* * Copyright 2018 dialog LLC <<EMAIL>> * @flow */ import type { Group, Peer } from '@dlghq/dialog-types'; import React, { PureComponent, type Node } from 'react'; import { Text } from '@dlghq/react-l10n'; import classNames from 'classnames'; import Avatar from '../Avatar/Avatar'; import Markdown from '../Markdown/Markdown'; import PeerInfoTitle from '../PeerInfoTitle/PeerInfoTitle'; import styles from './ActivityProfile.css'; export type Props = { className?: string, info: Group, children: Node, onAvatarClick?: () => mixed, onCreatorClick: (peer: Peer) => mixed }; class ActivityGroupProfile extends PureComponent<Props> { handleGoToCreator = () => { const creator = this.getCreator(); if (creator) { this.props.onCreatorClick(creator.peerInfo.peer); } }; getCreator = () => { const { info: { members, adminId } } = this.props; return members.find((member) => { return member.peerInfo.peer.id === adminId; }); }; renderAvatar() { const { info: { name, bigAvatar, placeholder } } = this.props; return ( <Avatar className={styles.avatar} size={140} title={name} image={bigAvatar} placeholder={placeholder} onClick={bigAvatar ? this.props.onAvatarClick : undefined} /> ); } renderTitle() { const { info: { name, shortname } } = this.props; return ( <PeerInfoTitle title={name} userName={shortname} titleClassName={styles.name} userNameClassName={styles.nick} emojiSize={24} /> ); } renderCreator() { const { info: { type } } = this.props; if (type !== 'group') { return null; } const creator = this.getCreator(); if (!creator) { return null; } return ( <div className={styles.creator}> <Text id="ActivityProfile.created_by" /> {'\u00A0'} <PeerInfoTitle title={creator.peerInfo.title} onTitleClick={this.handleGoToCreator} emojiSize={18} /> </div> ); } renderAbout() { const { info: { about } } = this.props; if (!about) { return null; } return ( <div className={styles.wrapper}> <Text className={styles.title} tagName="div" id="ActivityProfile.about" /> <Markdown text={about} className={styles.about} emojiSize={18} /> </div> ); } renderChildren() { const { children } = this.props; if (!children) { return null; } return ( <div className={styles.actions}> {children} </div> ); } render() { const className = classNames(styles.container, this.props.className); return ( <div className={className}> <div className={styles.header}> {this.renderAvatar()} {this.renderTitle()} {this.renderCreator()} {this.renderChildren()} </div> {this.renderAbout()} </div> ); } } export default ActivityGroupProfile;
import-repo/wine
dlls/d3d10/utils.c
/* * Copyright 2008-2009 <NAME> for CodeWeavers * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * */ #include "config.h" #include "wine/port.h" #include "d3d10_private.h" WINE_DEFAULT_DEBUG_CHANNEL(d3d10); #define WINE_D3D10_TO_STR(x) case x: return #x const char *debug_d3d10_driver_type(D3D10_DRIVER_TYPE driver_type) { switch(driver_type) { WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_HARDWARE); WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_REFERENCE); WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_NULL); WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_SOFTWARE); default: FIXME("Unrecognized D3D10_DRIVER_TYPE %#x\n", driver_type); return "unrecognized"; } } const char *debug_d3d10_shader_variable_class(D3D10_SHADER_VARIABLE_CLASS c) { switch (c) { WINE_D3D10_TO_STR(D3D10_SVC_SCALAR); WINE_D3D10_TO_STR(D3D10_SVC_VECTOR); WINE_D3D10_TO_STR(D3D10_SVC_MATRIX_ROWS); WINE_D3D10_TO_STR(D3D10_SVC_MATRIX_COLUMNS); WINE_D3D10_TO_STR(D3D10_SVC_OBJECT); WINE_D3D10_TO_STR(D3D10_SVC_STRUCT); default: FIXME("Unrecognized D3D10_SHADER_VARIABLE_CLASS %#x.\n", c); return "unrecognized"; } } const char *debug_d3d10_shader_variable_type(D3D10_SHADER_VARIABLE_TYPE t) { switch (t) { WINE_D3D10_TO_STR(D3D10_SVT_VOID); WINE_D3D10_TO_STR(D3D10_SVT_BOOL); WINE_D3D10_TO_STR(D3D10_SVT_INT); WINE_D3D10_TO_STR(D3D10_SVT_FLOAT); WINE_D3D10_TO_STR(D3D10_SVT_STRING); WINE_D3D10_TO_STR(D3D10_SVT_TEXTURE); WINE_D3D10_TO_STR(D3D10_SVT_TEXTURE1D); WINE_D3D10_TO_STR(D3D10_SVT_TEXTURE2D); WINE_D3D10_TO_STR(D3D10_SVT_TEXTURE3D); WINE_D3D10_TO_STR(D3D10_SVT_TEXTURECUBE); WINE_D3D10_TO_STR(D3D10_SVT_SAMPLER); WINE_D3D10_TO_STR(D3D10_SVT_PIXELSHADER); WINE_D3D10_TO_STR(D3D10_SVT_VERTEXSHADER); WINE_D3D10_TO_STR(D3D10_SVT_UINT); WINE_D3D10_TO_STR(D3D10_SVT_UINT8); WINE_D3D10_TO_STR(D3D10_SVT_GEOMETRYSHADER); WINE_D3D10_TO_STR(D3D10_SVT_RASTERIZER); WINE_D3D10_TO_STR(D3D10_SVT_DEPTHSTENCIL); WINE_D3D10_TO_STR(D3D10_SVT_BLEND); WINE_D3D10_TO_STR(D3D10_SVT_BUFFER); WINE_D3D10_TO_STR(D3D10_SVT_CBUFFER); WINE_D3D10_TO_STR(D3D10_SVT_TBUFFER); WINE_D3D10_TO_STR(D3D10_SVT_TEXTURE1DARRAY); WINE_D3D10_TO_STR(D3D10_SVT_TEXTURE2DARRAY); WINE_D3D10_TO_STR(D3D10_SVT_RENDERTARGETVIEW); WINE_D3D10_TO_STR(D3D10_SVT_DEPTHSTENCILVIEW); WINE_D3D10_TO_STR(D3D10_SVT_TEXTURE2DMS); WINE_D3D10_TO_STR(D3D10_SVT_TEXTURE2DMSARRAY); WINE_D3D10_TO_STR(D3D10_SVT_TEXTURECUBEARRAY); default: FIXME("Unrecognized D3D10_SHADER_VARIABLE_TYPE %#x.\n", t); return "unrecognized"; } } const char *debug_d3d10_device_state_types(D3D10_DEVICE_STATE_TYPES t) { switch (t) { WINE_D3D10_TO_STR(D3D10_DST_SO_BUFFERS); WINE_D3D10_TO_STR(D3D10_DST_OM_RENDER_TARGETS); WINE_D3D10_TO_STR(D3D10_DST_DEPTH_STENCIL_STATE); WINE_D3D10_TO_STR(D3D10_DST_BLEND_STATE); WINE_D3D10_TO_STR(D3D10_DST_VS); WINE_D3D10_TO_STR(D3D10_DST_VS_SAMPLERS); WINE_D3D10_TO_STR(D3D10_DST_VS_SHADER_RESOURCES); WINE_D3D10_TO_STR(D3D10_DST_VS_CONSTANT_BUFFERS); WINE_D3D10_TO_STR(D3D10_DST_GS); WINE_D3D10_TO_STR(D3D10_DST_GS_SAMPLERS); WINE_D3D10_TO_STR(D3D10_DST_GS_SHADER_RESOURCES); WINE_D3D10_TO_STR(D3D10_DST_GS_CONSTANT_BUFFERS); WINE_D3D10_TO_STR(D3D10_DST_PS); WINE_D3D10_TO_STR(D3D10_DST_PS_SAMPLERS); WINE_D3D10_TO_STR(D3D10_DST_PS_SHADER_RESOURCES); WINE_D3D10_TO_STR(D3D10_DST_PS_CONSTANT_BUFFERS); WINE_D3D10_TO_STR(D3D10_DST_IA_VERTEX_BUFFERS); WINE_D3D10_TO_STR(D3D10_DST_IA_INDEX_BUFFER); WINE_D3D10_TO_STR(D3D10_DST_IA_INPUT_LAYOUT); WINE_D3D10_TO_STR(D3D10_DST_IA_PRIMITIVE_TOPOLOGY); WINE_D3D10_TO_STR(D3D10_DST_RS_VIEWPORTS); WINE_D3D10_TO_STR(D3D10_DST_RS_SCISSOR_RECTS); WINE_D3D10_TO_STR(D3D10_DST_RS_RASTERIZER_STATE); WINE_D3D10_TO_STR(D3D10_DST_PREDICATION); default: FIXME("Unrecognized D3D10_DEVICE_STATE_TYPES %#x.\n", t); return "unrecognized"; } } #undef WINE_D3D10_TO_STR void *d3d10_rb_alloc(size_t size) { return HeapAlloc(GetProcessHeap(), 0, size); } void *d3d10_rb_realloc(void *ptr, size_t size) { return HeapReAlloc(GetProcessHeap(), 0, ptr, size); } void d3d10_rb_free(void *ptr) { HeapFree(GetProcessHeap(), 0, ptr); } void skip_dword_unknown(const char *location, const char **ptr, unsigned int count) { unsigned int i; DWORD d; FIXME("Skipping %u unknown DWORDs (%s):\n", count, location); for (i = 0; i < count; ++i) { read_dword(ptr, &d); FIXME("\t0x%08x\n", d); } } void write_dword_unknown(char **ptr, DWORD d) { FIXME("Writing unknown DWORD 0x%08x\n", d); write_dword(ptr, d); } HRESULT parse_dxbc(const char *data, SIZE_T data_size, HRESULT (*chunk_handler)(const char *data, DWORD data_size, DWORD tag, void *ctx), void *ctx) { const char *ptr = data; HRESULT hr = S_OK; DWORD chunk_count; DWORD total_size; unsigned int i; DWORD tag; if (!data) { WARN("No data supplied.\n"); return E_FAIL; } read_dword(&ptr, &tag); TRACE("tag: %s.\n", debugstr_an((const char *)&tag, 4)); if (tag != TAG_DXBC) { WARN("Wrong tag.\n"); return E_FAIL; } /* checksum? */ skip_dword_unknown("DXBC header", &ptr, 4); skip_dword_unknown("DXBC header", &ptr, 1); read_dword(&ptr, &total_size); TRACE("total size: %#x\n", total_size); if (data_size != total_size) { WARN("Wrong size supplied.\n"); return E_FAIL; } read_dword(&ptr, &chunk_count); TRACE("chunk count: %#x\n", chunk_count); for (i = 0; i < chunk_count; ++i) { DWORD chunk_tag, chunk_size; const char *chunk_ptr; DWORD chunk_offset; read_dword(&ptr, &chunk_offset); TRACE("chunk %u at offset %#x\n", i, chunk_offset); chunk_ptr = data + chunk_offset; read_dword(&chunk_ptr, &chunk_tag); read_dword(&chunk_ptr, &chunk_size); hr = chunk_handler(chunk_ptr, chunk_size, chunk_tag, ctx); if (FAILED(hr)) break; } return hr; }
Sogrey/electron_video_src
src/menu/context_menu/event.js
const electron = require('electron'); const app = electron.app; const remote = electron.remote; const BrowserWindow = remote.BrowserWindow; const Menu = remote.Menu; const MenuItem = remote.MenuItem; const dialog = remote.dialog; function onload() { const menu = new Menu(); var icon = ''; if(process.platform == 'win32') { icon = '../../../images/folder.ico'; } else { icon = '../../../images/open.png'; } const win = remote.getCurrentWindow(); var menuItemOpen = new MenuItem({label:'打开',icon:icon,click:()=>{ var paths = dialog.showOpenDialog({properties:['openFile']}); if(paths != undefined) { win.setTitle(paths[0]); } }}); var menuItemSave = new MenuItem({label:'保存',click:saveClick}); var menuItemFile = new MenuItem({label:'文件',submenu:[menuItemOpen,menuItemSave]}); var menuItemInsertImage = new MenuItem({label:'插入图像'}); var menuItemRemoveImage = new MenuItem({label:'删除图像'}); menu.append(menuItemFile); menu.append(menuItemInsertImage); menu.append(menuItemRemoveImage); panel.addEventListener('contextmenu',function(event) { event.preventDefault(); x = event.x; y = event.y; menu.popup({x:x,y:y}); return false; }) } function saveClick() { var win = new BrowserWindow({width:300,height:200}); win.loadURL('https://geekori.com'); }
Rune-Status/astraeus-server-v2
src/main/java/io/astraeus/game/event/impl/DoorEvent.java
package io.astraeus.game.event.impl; import io.astraeus.game.event.Event; import io.astraeus.game.world.entity.object.GameObject; public final class DoorEvent implements Event { private GameObject door; public DoorEvent(GameObject door) { this.door = door; } public GameObject getDoor() { return door; } }
gatewayorg/blue-dashboard
backend/pkg/auth.bak/interface.go
<reponame>gatewayorg/blue-dashboard package auth_bak import "context" type author interface { Authenticate(ctx context.Context, username, passwd string) (ID uint64, err error) }
nishantcodewexy/NFT
src/pages/Query/Tokenreportdetailview.js
<reponame>nishantcodewexy/NFT import React, { useState, useEffect } from "react"; import { makeStyles } from "@material-ui/core/styles"; import GridItem from "components/Grid/GridItem.js"; import GridContainer from "components/Grid/GridContainer.js"; import CustomInput from "components/CustomInput/CustomInput.js"; import Button from "components/CustomButtons/Button.js"; import Card from "components/Card/Card.js"; import CardHeader from "components/Card/CardHeader.js"; import CardBody from "components/Card/CardBody.js"; import CardFooter from "components/Card/CardFooter.js"; import { useHistory, useParams } from "react-router-dom"; import { useDispatch } from "react-redux"; import { toast } from "react-toastify"; import ReactHtmlParser from "react-html-parser"; import { gettokenreportsingledetails, getuserdet } from "../../actions/users"; import config from "../../lib/config"; const Smartcontract = config.Smartcontract; const OwnerAddr = config.OwnerAddr; const styles = { cardCategoryWhite: { color: "rgba(255,255,255,.62)", margin: "0", fontSize: "14px", marginTop: "0", marginBottom: "0" }, cardTitleWhite: { color: "#FFFFFF", marginTop: "0px", minHeight: "auto", fontWeight: "300", fontFamily: "'Roboto', 'Helvetica', 'Arial', sans-serif", marginBottom: "3px", textDecoration: "none" } }; const useStyles = makeStyles(styles); // toaster config toast.configure(); let toasterOption = { position: "top-right", autoClose: 2000, hideProgressBar: false, closeOnClick: true, pauseOnHover: true, draggable: true, progress: undefined }; const initialFormValue = {}; export default function EditCategory() { const classes = useStyles(); const history = useHistory(); const dispatch = useDispatch(); const [userdet, setUser] = useState(); const [formValue, setFormValue] = useState(initialFormValue); const [validateError, setValidateError] = useState({}); const [accounts, setaccount] = React.useState(0); const [tokenbalance, setTokenbalance] = React.useState(0); const [bnbbalance, setBNBbalance] = React.useState(0); const [categoryurl, setImage] = React.useState(""); const [index, setindex] = React.useState(-1); const [categoryname, setCategoryname] = useState(""); const [catdata, setcatdata] = useState(""); const [list, setlist] = useState([]); const [selectedOption, setselectedOption] = useState(null); const { Id, reportid } = useParams(); const [userdetail, setuserdetail] = React.useState(""); useEffect(() => { getdetails(); }, []); async function getdetails() { var input = { id: Id }; var data = await gettokenreportsingledetails(input); console.log(data, "=============================getgetget"); setlist(data.result.data); if ( data && data.result && data.result.data && data.result.data.report && data.result.data.report.length > 0 ) { var indee = data.result.data.report.findIndex( (ele) => ele._id == reportid ); console.log(indee, "===============index"); setindex(indee); } getuserdetail(data.result.data.report[indee].address); } async function getuserdetail(address) { var data = { address: address }; var rest = await getuserdet(data); console.log(rest); setuserdetail(rest.result.data); } function editR(id) { if (id != "") { window.location = "//replymail/" + id; } } const back = async () => { window.location.href = "//tokenreport"; }; return ( <div> <div className="page_header"> <button className="btn btn-success mr-3" onClick={() => back()}> Back </button> </div> <GridContainer> <GridItem xs={12} sm={12} md={12}> <Card> <form className={classes.form}> <CardHeader color="primary"> <h4 className={classes.cardTitleWhite}>View Token</h4> </CardHeader> <CardBody> <GridContainer> <GridItem xs={12} sm={12} md={4}> <CustomInput labelText="Address" id="address" value={ list && list.report && list.report.length > 0 && index != -1 && list.report[index].address ? list.report[index].address : "" } formControlProps={{ fullWidth: true }} inputProps={{ disabled: true }} /> </GridItem> <GridItem xs={12} sm={12} md={4}> <CustomInput labelText="Email" id="email" value={ userdetail && userdetail.email ? userdetail.email : "" } formControlProps={{ fullWidth: true }} inputProps={{ disabled: true }} /> </GridItem> <GridItem xs={12} sm={12} md={4}> <CustomInput labelText="Report On" id="report" value={list && list.tokenOwner ? list.tokenOwner : ""} formControlProps={{ fullWidth: true }} inputProps={{ disabled: true }} /> </GridItem> <GridItem xs={12} sm={12} md={12}> <CustomInput labelText="Report" id="report" value={ list && list.report && list.report.length > 0 && index != -1 && list.report[index].message ? ReactHtmlParser(list.report[index].message) : "" } formControlProps={{ fullWidth: true }} inputProps={{ disabled: true }} /> </GridItem> </GridContainer> </CardBody> {userdetail && userdetail.email && userdetail.email != "" && userdetail.email != null && userdetail.email != undefined && ( <CardFooter> <Button color="primary" onClick={() => editR( list && list.report && list.report.length > 0 && index != -1 && list.report[index].mail ? list.report[index].mail : "" ) } type="button" > Reply </Button> </CardFooter> )} </form> </Card> </GridItem> </GridContainer> </div> ); }
UnicorNora/FTBLaunch
src/main/java/net/ftb/tracking/google/JGoogleAnalyticsTracker.java
/** * Copyright (c) 2010 <NAME>, <NAME> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /** * Created at Jul 20, 2010, 4:04:22 AM */ package net.ftb.tracking.google; import net.ftb.log.Logger; import java.net.HttpURLConnection; import java.net.InetSocketAddress; import java.net.Proxy; import java.net.Proxy.Type; import java.net.SocketAddress; import java.net.URL; import java.util.LinkedList; import java.util.Scanner; import java.util.regex.MatchResult; /** * Common tracking calls are implemented as methods, but if you want to control * what data to send, then use {@link #makeCustomRequest(AnalyticsRequestData)}. * If you are making custom calls, the only requirements are: * <ul> * <li>If you are tracking an event, * {@link AnalyticsRequestData#setEventCategory(String)} and * {@link AnalyticsRequestData#setEventAction(String)} must both be populated.</li> * <li>If you are not tracking an event, * {@link AnalyticsRequestData#setPageURL(String)} must be populated</li> * </ul> * See the <a href=http://code.google.com/intl/en-US/apis/analytics/docs/tracking/gaTrackingTroubleshooting.html#gifParameters> * Google Troubleshooting Guide</a> for more info on the tracking parameters (although it doesn't seem to be fully updated). * <p> * The tracker can operate in three modes: * <ul> * <li>synchronous mode: The HTTP request is sent to GA immediately, before the track * method returns. * This may slow your application down if GA doesn't respond fast. * <li>multi-thread mode: Each track method call creates a new short-lived thread that sends * the HTTP request to GA in the background and terminates. * <li>single-thread mode (the default): The track method stores the request in a FIFO and returns * immediately. A single long-lived background thread consumes the FIFO content and sends the HTTP * requests to GA. * </ul> * </p> * <p> * To halt the background thread safely, use the call {@link #stopBackgroundThread(long)}, where the parameter is the * timeout to wait for any remaining queued tracking calls to be made. Keep in mind that if new tracking requests are made * after the thread is stopped, they will just be stored in the queue, and will not be sent to GA until the thread is started again with * {@link #startBackgroundThread()} (This is assuming you are in single-threaded mode to begin with). * </p> * @author <NAME>, <NAME> */ public class JGoogleAnalyticsTracker { public static enum DispatchMode { /** * Each tracking call will wait until the http request * completes before returning */ SYNCHRONOUS, /** * Each tracking call spawns a new thread to make the http request */ MULTI_THREAD, /** * Each tracking request is added to a queue, and a single dispatch thread makes the requests. */ SINGLE_THREAD } private static final ThreadGroup asyncThreadGroup = new ThreadGroup("Async Google Analytics Threads"); private static long asyncThreadsRunning = 0; private static Proxy proxy = Proxy.NO_PROXY; private static LinkedList<String> fifo = new LinkedList<String>(); private static Thread backgroundThread = null; // the thread used in 'queued' mode. private static boolean backgroundThreadMayRun = false; static { asyncThreadGroup.setMaxPriority(Thread.MIN_PRIORITY); asyncThreadGroup.setDaemon(true); } public static enum GoogleAnalyticsVersion { V_4_7_2 } private GoogleAnalyticsVersion gaVersion; private AnalyticsConfigData configData; private GoogleAnalytics builder; private DispatchMode mode; private boolean enabled; public JGoogleAnalyticsTracker (AnalyticsConfigData argConfigData, GoogleAnalyticsVersion argVersion) { this(argConfigData, argVersion, DispatchMode.SINGLE_THREAD); } public JGoogleAnalyticsTracker (AnalyticsConfigData argConfigData, GoogleAnalyticsVersion argVersion, DispatchMode argMode) { gaVersion = argVersion; configData = argConfigData; createBuilder(); enabled = true; setDispatchMode(argMode); } /** * Sets the dispatch mode * @see DispatchMode * @param argMode the mode to to put the tracker in. If this is null, the tracker * defaults to {@link DispatchMode#SINGLE_THREAD} */ public void setDispatchMode (DispatchMode argMode) { if (argMode == null) { argMode = DispatchMode.SINGLE_THREAD; } if (argMode == DispatchMode.SINGLE_THREAD) { startBackgroundThread(); } mode = argMode; } /** * Gets the current dispatch mode. Default is {@link DispatchMode#SINGLE_THREAD}. * @see DispatchMode * @return */ public DispatchMode getDispatchMode () { return mode; } /** * Convenience method to check if the tracker is in synchronous mode. * @return */ public boolean isSynchronous () { return mode == DispatchMode.SYNCHRONOUS; } /** * Convenience method to check if the tracker is in single-thread mode * @return */ public boolean isSingleThreaded () { return mode == DispatchMode.SINGLE_THREAD; } /** * Convenience method to check if the tracker is in multi-thread mode * @return */ public boolean isMultiThreaded () { return mode == DispatchMode.MULTI_THREAD; } /** * Resets the session cookie. */ public void resetSession () { builder.resetSession(); } /** * Sets if the api dispatches tracking requests. * * @param argEnabled */ public void setEnabled (boolean argEnabled) { enabled = argEnabled; } /** * If the api is dispatching tracking requests (default of true). * * @return */ public boolean isEnabled () { return enabled; } /** * Define the proxy to use for all GA tracking requests. * <p> * Call this static method early (before creating any tracking requests). * * @param argProxy The proxy to use */ public static void setProxy (Proxy argProxy) { proxy = (argProxy != null) ? argProxy : Proxy.NO_PROXY; } /** * Define the proxy to use for all GA tracking requests. * <p> * Call this static method early (before creating any tracking requests). * * @param proxyAddr "addr:port" of the proxy to use; may also be given as URL ("http://addr:port/"). */ public static void setProxy (String proxyAddr) { if (proxyAddr != null) { Scanner s = new Scanner(proxyAddr); // Split into "proxyAddr:proxyPort". proxyAddr = null; int proxyPort = 8080; try { s.findInLine("(http://|)([^:/]+)(:|)([0-9]*)(/|)"); MatchResult m = s.match(); if (m.groupCount() >= 2) { proxyAddr = m.group(2); } if ((m.groupCount() >= 4) && (!m.group(4).isEmpty())) { proxyPort = Integer.parseInt(m.group(4)); } } finally { s.close(); } if (proxyAddr != null) { SocketAddress sa = new InetSocketAddress(proxyAddr, proxyPort); setProxy(new Proxy(Type.HTTP, sa)); } } } /** * Wait for background tasks to complete. * <p> * This works in queued and asynchronous mode. * * @param timeoutMillis The maximum number of milliseconds to wait. */ public static void completeBackgroundTasks (long timeoutMillis) { boolean fifoEmpty; boolean asyncThreadsCompleted; long absTimeout = System.currentTimeMillis() + timeoutMillis; while (System.currentTimeMillis() < absTimeout) { synchronized (fifo) { fifoEmpty = (fifo.size() == 0); } synchronized (JGoogleAnalyticsTracker.class) { asyncThreadsCompleted = (asyncThreadsRunning == 0); } if (fifoEmpty && asyncThreadsCompleted) { break; } try { Thread.sleep(100); } catch (InterruptedException e) { break; } } } /** * Tracks a page view. * * @param argPageURL * required, Google won't track without it. Ex: * <code>"org/me/javaclass.java"</code>, or anything you want as * the page url. * @param argPageTitle * content title * @param argHostName * the host name for the url */ public void trackPageView (String argPageURL, String argPageTitle, String argHostName) { trackPageViewFromReferrer(argPageURL, argPageTitle, argHostName, "http://www.dmurph.com", "/"); } /** * Tracks a page view. * * @param argPageURL * required, Google won't track without it. Ex: * <code>"org/me/javaclass.java"</code>, or anything you want as * the page url. * @param argPageTitle * content title * @param argHostName * the host name for the url * @param argReferrerSite * site of the referrer. ex, www.dmurph.com * @param argReferrerPage * page of the referrer. ex, /mypage.php */ public void trackPageViewFromReferrer (String argPageURL, String argPageTitle, String argHostName, String argReferrerSite, String argReferrerPage) { if (argPageURL == null) { throw new IllegalArgumentException("Page URL cannot be null, Google will not track the data."); } AnalyticsRequestData data = new AnalyticsRequestData(); data.setHostName(argHostName); data.setPageTitle(argPageTitle); data.setPageURL(argPageURL); data.setReferrer(argReferrerSite, argReferrerPage); makeCustomRequest(data); } /** * Tracks a page view. * * @param argPageURL * required, Google won't track without it. Ex: * <code>"org/me/javaclass.java"</code>, or anything you want as * the page url. * @param argPageTitle * content title * @param argHostName * the host name for the url * @param argSearchSource * source of the search engine. ex: google * @param argSearchKeywords * the keywords of the search. ex: java google analytics tracking * utility */ public void trackPageViewFromSearch (String argPageURL, String argPageTitle, String argHostName, String argSearchSource, String argSearchKeywords) { if (argPageURL == null) { throw new IllegalArgumentException("Page URL cannot be null, Google will not track the data."); } AnalyticsRequestData data = new AnalyticsRequestData(); data.setHostName(argHostName); data.setPageTitle(argPageTitle); data.setPageURL(argPageURL); data.setSearchReferrer(argSearchSource, argSearchKeywords); makeCustomRequest(data); } /** * Tracks an event. To provide more info about the page, use * {@link #makeCustomRequest(AnalyticsRequestData)}. * * @param argCategory * @param argAction */ public void trackEvent (String argCategory, String argAction) { trackEvent(argCategory, argAction, null, null); } /** * Tracks an event. To provide more info about the page, use * {@link #makeCustomRequest(AnalyticsRequestData)}. * * @param argCategory * @param argAction * @param argLabel */ public void trackEvent (String argCategory, String argAction, String argLabel) { trackEvent(argCategory, argAction, argLabel, null); } /** * Tracks an event. To provide more info about the page, use * {@link #makeCustomRequest(AnalyticsRequestData)}. * * @param argCategory * required * @param argAction * required * @param argLabel * optional * @param argValue * optional */ public void trackEvent (String argCategory, String argAction, String argLabel, Integer argValue) { AnalyticsRequestData data = new AnalyticsRequestData(); data.setEventCategory(argCategory); data.setEventAction(argAction); data.setEventLabel(argLabel); data.setEventValue(argValue); makeCustomRequest(data); } /** * Makes a custom tracking request based from the given data. * * @param argData * @throws NullPointerException * if argData is null or if the URL builder is null */ public synchronized void makeCustomRequest (AnalyticsRequestData argData) { if (!enabled) { Logger.logInfo("Ignoring tracking request, enabled is false"); return; } if (argData == null) { throw new NullPointerException("Data cannot be null"); } if (builder == null) { throw new NullPointerException("Class was not initialized"); } final String url = builder.buildURL(argData); switch (mode) { case MULTI_THREAD: Thread t = new Thread(asyncThreadGroup, "AnalyticsThread-" + asyncThreadGroup.activeCount()) { @Override public void run () { synchronized (JGoogleAnalyticsTracker.class) { asyncThreadsRunning++; } try { dispatchRequest(url); } finally { synchronized (JGoogleAnalyticsTracker.class) { asyncThreadsRunning--; } } } }; t.setDaemon(true); t.start(); break; case SYNCHRONOUS: dispatchRequest(url); break; default: // in case it's null, we default to the single-thread synchronized (fifo) { fifo.addLast(url); fifo.notify(); } if (!backgroundThreadMayRun) { Logger.logError("A tracker request has been added to the queue but the background thread isn't running." + url); } break; } } private static void dispatchRequest (String argURL) { try { URL url = new URL(argURL); HttpURLConnection connection = (HttpURLConnection) url.openConnection(proxy); connection.setRequestProperty("Cache-Control", "no-transform"); connection.setRequestMethod("GET"); connection.setInstanceFollowRedirects(true); connection.connect(); int responseCode = connection.getResponseCode(); if (responseCode != HttpURLConnection.HTTP_OK) { Logger.logError("JGoogleAnalyticsTracker: Error requesting url '{}', received response code {}" + argURL + responseCode); } // else { // Logger.logInfo("JGoogleAnalyticsTracker: Tracking success"); // } } catch (Exception e) { Logger.logDebug("Error making tracking request", e); } } private void createBuilder () { switch (gaVersion) { case V_4_7_2: builder = new GoogleAnalytics(configData); break; default: builder = new GoogleAnalytics(configData); break; } } /** * If the background thread for 'queued' mode is not running, start it now. */ private synchronized static void startBackgroundThread () { if (backgroundThread == null) { backgroundThreadMayRun = true; backgroundThread = new Thread(asyncThreadGroup, "AnalyticsBackgroundThread") { @Override public void run () { Logger.logInfo("AnalyticsBackgroundThread started"); while (backgroundThreadMayRun) { try { String url = null; synchronized (fifo) { if (fifo.isEmpty()) { fifo.wait(); } if (!fifo.isEmpty()) { // Get a reference to the oldest element in the FIFO, but leave it in the FIFO until it is processed. url = fifo.getFirst(); } } if (url != null) { try { dispatchRequest(url); } finally { // Now that we have completed the HTTP request to GA, remove the element from the FIFO. synchronized (fifo) { fifo.removeFirst(); } } } } catch (Exception e) { Logger.logError("Got exception from dispatch thread", e); } } } }; backgroundThread.setDaemon(true); backgroundThread.start(); } } /** * Stop the long-lived background thread. * <p> * This method is needed for debugging purposes only. Calling it in an application is not really * required: The background thread will terminate automatically when the application exits. * * @param timeoutMillis If nonzero, wait for thread completion before returning. */ public static void stopBackgroundThread (long timeoutMillis) { backgroundThreadMayRun = false; synchronized (fifo) { fifo.notify(); } if ((backgroundThread != null) && (timeoutMillis > 0)) { try { backgroundThread.join(timeoutMillis); } catch (InterruptedException e) { } backgroundThread = null; } } }
jmhooper/C2
spec/features/ncr/work_orders/edit_spec.rb
<gh_stars>0 feature "Editing NCR work order" do scenario "current user is not the requester, approver, or observer" do work_order = create(:ncr_work_order) stranger = create(:user, client_slug: "ncr") login_as(stranger) visit "/ncr/work_orders/#{work_order.id}/edit" expect(current_path).to eq("/ncr/work_orders/new") expect(page).to have_content(I18n.t("errors.policies.ncr.work_order.can_edit")) end end
masud-technope/STRICT-QR-Module
src/strict/ca/usask/cs/srlab/strict/test/WekaModelPredictionMakerTest.java
package strict.ca.usask.cs.srlab.strict.test; import org.junit.Test; import strict.ca.usask.cs.srlab.strict.config.StaticData; import strict.weka.model.PredictionCleaner; import strict.weka.model.WekaModelPredictionMaker; public class WekaModelPredictionMakerTest { @Test public void testWekaModelPredictionMaker() { String repoName = "tomcat70"; String arffFile = StaticData.HOME_DIR + "/Proposed-STRICT/Query-Difficulty-Model/qdiff-model-dec23-8pm/" + repoName + ".arff"; String predictionFile = StaticData.HOME_DIR + "/Proposed-STRICT/Query-Difficulty-Model/predictions-apr17-4pm/" + repoName + ".txt"; WekaModelPredictionMaker maker = new WekaModelPredictionMaker(repoName, arffFile); maker.setPredictionFile(predictionFile); String algoKey = "ST"; String prediction = maker.determineBestClassifications(100, algoKey); prediction = new PredictionCleaner().cleanPredictions(prediction); maker.saveEvaluations(prediction); System.out.println(prediction); } }
hiddout/hiddout-core
devScript/dbClean.js
<gh_stars>1-10 db.dropUser("hiddout", {w: "majority", wtimeout: 5000}) db.posts.drop() db.boards.drop() db.users.drop() db.comments.drop() db.subscriptions.drop() db.reactions.drop() db = db.getSiblingDB('adminList'); db.founders.drop()
domapic/domapic-base
test/unit/lib/bases/Server.specs.js
/* const Promise = require('bluebird') const test = require('narval') const mocks = require('../../mocks') const Server = require('../../../../lib/bases/Server') test.describe('Bases -> Server', () => { let server let stubCore test.beforeEach(() => { stubCore = new mocks.core.Stub() server = new Server(stubCore) }) test.describe('start', () => { test.it('should return a Promise', (done) => { let response = server.start() .then(() => { test.expect(response).to.be.an.instanceof(Promise) done() }) }) test.it('should get config from core', (done) => { server.start() .then(() => { test.expect(stubCore.config.get).to.have.been.called() done() }) }) test.it('should trace the config with debug level', (done) => { server.start() .then(() => { test.expect(stubCore.tracer.debug).to.have.been.calledWith(mocks.config.getResult) done() }) }) }) }) */
CHYGO1985/forum_demo
forum_demo_proj/src/main/java/com/jingjie/forum_demo/event/EventType.java
package com.jingjie.forum_demo.event; import com.alibaba.fastjson.parser.deserializer.AbstractDateDeserializer; /** * * The enumtype for events. * * @author jingjiejiang * @history * 1. Created on Jan 31, 2018 * */ public enum EventType { LIkE(0), COMMENT(1), LOGIN(2), MAIL(3), FOLLOW(4), UNFOLLOW(5), ADD_QUESTION(6); private int value; EventType (int value) { this.value = value; } public int getValue() { return value; } }
rserban/chrono
src/projects/geomechanics/test_GEO_filters.cpp
<reponame>rserban/chrono<filename>src/projects/geomechanics/test_GEO_filters.cpp #include <cmath> #include <fstream> #include <iostream> #include <string> #include "chrono/utils/ChFilters.h" using std::cout; using std::endl; int main(int argc, char* argv[]) { if (argc < 3) { cout << "Usage: " << argv[0] << " filename nlines" << endl; return 1; } std::string in_filename(argv[1]); int nlines = std::stoi(argv[2]); std::ifstream ifs(in_filename); std::string out_filename("filtered_data.txt"); std::ofstream ofs(out_filename); double dt = 1e-4; chrono::utils::ChButterworth_Lowpass lowpass1(1, dt, 1.0); chrono::utils::ChButterworth_Lowpass lowpass5(1, dt, 5.0); chrono::utils::ChButterworth_Lowpass lowpass10(1, dt, 10.0); double time, data; for (auto i = 0; i < nlines; i++) { ifs >> time >> data; double f1 = lowpass1.Filter(data); double f5 = lowpass5.Filter(data); double f10 = lowpass10.Filter(data); ofs << time << " " << data << " " << f1 << " " << f5 << " " << f10 << endl; } ifs.close(); ofs.close(); return 0; }
Alejandro-Fuste/JAVA_chat_and_dashboard_app
src/main/java/com/investing_app/controllers/PitchController.java
package com.investing_app.controllers; import com.google.gson.Gson; import com.investing_app.entities.Offer; import com.investing_app.entities.Pitch; import com.investing_app.service.PitchService; import java.util.HashMap; import java.util.List; import io.javalin.http.Handler; public class PitchController { PitchService pitchService; public PitchController(PitchService pitchService) { this.pitchService = pitchService; } public Handler createPitch = ctx -> { Gson gson = new Gson(); Pitch pitch = gson.fromJson(ctx.body(), Pitch.class); try { Pitch newPitch = this.pitchService.createPitchService(pitch); String newPitchJson = gson.toJson(newPitch); ctx.result(newPitchJson); ctx.status(201); } catch (Exception e) { HashMap<String, String> message = new HashMap<>(); message.put("errorMessage", e.getMessage()); ctx.result(gson.toJson(message)); ctx.status(400); } }; public Handler viewPitches = ctx -> { List<Pitch> pitches = this.pitchService.viewPitchesService(); Gson gson = new Gson(); String pitchesJSONs = gson.toJson(pitches); ctx.result(pitchesJSONs); ctx.status(200); }; public Handler makeOffer = ctx -> { Gson gson = new Gson(); Offer offerMade = gson.fromJson(ctx.body(), Offer.class); try { boolean offer = this.pitchService.makeOfferService(offerMade.getPitchId(), offerMade.getAmount(), offerMade.getPercentage()); ctx.result(String.valueOf(offer)); ctx.status(200); } catch (Exception e) { ctx.result(e.getMessage()); ctx.status(400); } }; public Handler acceptOffer = ctx -> { int pitchId = Integer.parseInt(ctx.pathParam("pitchId")); boolean offerAccepted = this.pitchService.acceptOfferService(pitchId); ctx.result(String.valueOf(offerAccepted)); ctx.status(200); }; }
schinmayee/nimbus
applications/physbam/physbam-lib/Public_Library/PhysBAM_Rendering/PhysBAM_Ray_Tracing/Rendering_Lights/RENDERING_SPOTLIGHT.h
<gh_stars>10-100 //##################################################################### // Copyright 2004-2007, <NAME>, <NAME>. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //##################################################################### #ifndef __RENDERING_SPOTLIGHT__ #define __RENDERING_SPOTLIGHT__ #include <PhysBAM_Tools/Matrices/MATRIX_3X3.h> #include <PhysBAM_Rendering/PhysBAM_Ray_Tracing/Rendering/RENDER_WORLD.h> #include <PhysBAM_Rendering/PhysBAM_Ray_Tracing/Rendering_Lights/RENDERING_LIGHT.h> #include <cstdio> namespace PhysBAM{ template<class T> class RENDERING_SPOTLIGHT:public RENDERING_LIGHT<T> { public: using RENDERING_LIGHT<T>::world;using RENDERING_LIGHT<T>::position;using RENDERING_LIGHT<T>::color;using RENDERING_LIGHT<T>::brightness;using RENDERING_LIGHT<T>::global_photon_random; using RENDERING_LIGHT<T>::caustic_photon_random;using RENDERING_LIGHT<T>::volume_photon_random;using RENDERING_LIGHT<T>::sample_points_random; using RENDERING_LIGHT<T>::supports_global_photon_mapping;using RENDERING_LIGHT<T>::supports_caustic_photon_mapping;using RENDERING_LIGHT<T>::supports_volume_photon_mapping; T cone_angle,penumbra_angle; T cos_cone_angle,cos_penumbra_angle; T power_to_intensity; VECTOR<T,3> spot_direction; MATRIX<T,3> local_vector_to_world_vector; RENDERING_SPOTLIGHT(const VECTOR<T,3>& position_input,const VECTOR<T,3>& color_input,const T brightness_input,const VECTOR<T,3>& direction_input,const T cone_angle_input, const T penumbra_angle_input,RENDER_WORLD<T>& world_input,const bool supports_global_photons,const bool supports_caustic_photons,const bool supports_volume_photons, const bool photon_source_only) :RENDERING_LIGHT<T>(position_input,color_input,brightness_input,world_input,supports_global_photons,supports_caustic_photons,supports_volume_photons,photon_source_only), cone_angle(cone_angle_input),penumbra_angle(penumbra_angle_input),spot_direction(direction_input) { spot_direction.Normalize(); cos_cone_angle=cos(cone_angle);cos_penumbra_angle=cos(penumbra_angle_input); power_to_intensity=T(1)/(2*T(pi)*(1-T(.5)*(cos_cone_angle+cos_penumbra_angle))); // the inverse of the solid angle covered by a cone halfway between penumbra begin and full width // setup matrix to transform the canonical hemisphere directions (probably should change this to a quaternion) VECTOR<T,3> temporary_vector=spot_direction.Orthogonal_Vector(); VECTOR<T,3> u=VECTOR<T,3>::Cross_Product(temporary_vector,spot_direction);u.Normalize(); VECTOR<T,3> v=VECTOR<T,3>::Cross_Product(spot_direction,u); local_vector_to_world_vector=MATRIX<T,3>(u,v,spot_direction); } void Sample_Points(const VECTOR<T,3>& surface_position,const VECTOR<T,3>& surface_normal,ARRAY<RAY<VECTOR<T,3> > >& sample_array) const PHYSBAM_OVERRIDE {sample_array.Resize(1);sample_array(1)=RAY<VECTOR<T,3> >(SEGMENT_3D<T>(surface_position,position));} T Spotlight_Falloff(const VECTOR<T,3>& direction) const {T cos_theta=VECTOR<T,3>::Dot_Product(direction,spot_direction); if(cos_theta<cos_cone_angle)return 0; else if(cos_theta>cos_penumbra_angle)return 1; else {T alpha=(cos_theta-cos_cone_angle)/(cos_penumbra_angle-cos_cone_angle);return alpha*alpha*alpha*alpha;}} VECTOR<T,3> Emitted_Light(const RENDERING_RAY<T>& ray) const PHYSBAM_OVERRIDE {return brightness*color*power_to_intensity*Spotlight_Falloff(-ray.ray.direction)/sqr(ray.ray.t_max);} int Emit_Photons(RENDERING_RAY<T>& parent_ray,PHOTON_MAP<T>& photon_map,const typename PHOTON_MAP<T>::PHOTON_MAP_TYPE type) const PHYSBAM_OVERRIDE {int photons_emitted=0; while(photon_map.Light_Emission_Quota_Remains()){ printf("photons_emitted %d\n",photons_emitted); printf("photons_stored %d\n",photon_map.photons_stored); RANDOM_NUMBERS<T>* random=0; if(type==PHOTON_MAP<T>::GLOBAL_PHOTON_MAP) random=&global_photon_random; else if(type==PHOTON_MAP<T>::CAUSTIC_PHOTON_MAP) random=&caustic_photon_random; else if(type==PHOTON_MAP<T>::VOLUME_PHOTON_MAP) random=&volume_photon_random; world.random.Set_Seed((int)abs(random->Get_Uniform_Number((T)0,(T)1000000))); photons_emitted++; // Sample spotlight cone uniformly (i.e. theta=arccos(1-xi_1+xi_1*cos_cone_angle), phi=2*pi*xi_2) T xi_1=world.random.Get_Uniform_Number((T)0,(T)1),xi_2=world.random.Get_Uniform_Number((T)0,(T)1); T phi=2*T(pi)*xi_2,theta=acos(1-xi_1+xi_1*cos_cone_angle); VECTOR<T,3> local_coordinate_direction(cos(phi)*sin(theta),sin(phi)*sin(theta),cos(theta)); VECTOR<T,3> direction=local_vector_to_world_vector*local_coordinate_direction; // shoot RENDERING_RAY<T> photon_ray(RAY<VECTOR<T,3> >(position,direction),1,parent_ray.current_object); world.Cast_Photon(photon_ray,parent_ray,color*brightness,type,0,0); } return photons_emitted;} //##################################################################### }; } #endif
BFreitas16/Mequie_Chat
server/src/mequie/app/facade/exceptions/MequieException.java
package mequie.app.facade.exceptions; /** * * @author 51021 <NAME>,51110 <NAME>,51468 <NAME> * * This class represents an exception that is thrown when something fails */ @SuppressWarnings("serial") public class MequieException extends Exception{ public MequieException(String message){ super(message); } }
TeamSPoon/CYC_JRTL_with_CommonLisp_OLD
merging/main/opencyc-server-jsrc-in-progress/com/cyc/cycjava/cycl/module0185.java
package com.cyc.cycjava.cycl; import com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObjectFactory; import static com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObjectFactory.*; import com.cyc.tool.subl.util.SubLFiles; import com.cyc.tool.subl.jrtl.nativeCode.subLisp.SubLThread; import com.cyc.tool.subl.jrtl.nativeCode.subLisp.ConsesLow; import com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLProcess; import com.cyc.tool.subl.jrtl.nativeCode.subLisp.Locks; import com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObject; import com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLString; import com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLList; import com.cyc.tool.subl.jrtl.nativeCode.type.symbol.SubLSymbol; import com.cyc.tool.subl.util.SubLFile; import com.cyc.tool.subl.util.SubLTranslatedFile; public final class module0185 extends SubLTranslatedFile { public static final SubLFile me; public static final String myName = "com.cyc.cycjava.cycl.module0185"; public static final String myFingerPrint = "fb73797e8eeac65ec7b0f3425d6011bdbf50e864e03175f1c525df38245c3484"; private static final SubLSymbol $ic0$; private static final SubLSymbol $ic1$; private static final SubLSymbol $ic2$; private static final SubLSymbol $ic3$; private static final SubLSymbol $ic4$; private static final SubLSymbol $ic5$; private static final SubLList $ic6$; private static final SubLString $ic7$; private static final SubLList $ic8$; private static final SubLList $ic9$; private static final SubLSymbol $ic10$; private static final SubLSymbol $ic11$; private static final SubLSymbol $ic12$; private static final SubLSymbol $ic13$; private static final SubLList $ic14$; private static final SubLString $ic15$; private static final SubLList $ic16$; private static final SubLList $ic17$; private static final SubLSymbol $ic18$; private static final SubLList $ic19$; private static final SubLString $ic20$; private static final SubLList $ic21$; private static final SubLList $ic22$; private static final SubLSymbol $ic23$; private static final SubLString $ic24$; private static final SubLList $ic25$; private static final SubLSymbol $ic26$; private static final SubLString $ic27$; private static final SubLList $ic28$; private static final SubLSymbol $ic29$; private static final SubLString $ic30$; private static final SubLList $ic31$; private static final SubLSymbol $ic32$; private static final SubLString $ic33$; private static final SubLList $ic34$; private static final SubLSymbol $ic35$; private static final SubLList $ic36$; private static final SubLString $ic37$; private static final SubLList $ic38$; public static SubLObject f11679(final SubLObject var1, final SubLObject var2, final SubLObject var3, final SubLObject var4) { assert NIL != module0191.f11950(var1) : var1; assert NIL != module0191.f11993(var2) : var2; assert NIL != module0130.f8511(var3) : var3; assert NIL != module0130.f8507(var4) : var4; hl_interface_infrastructure_oc.f8308(); hl_interface_infrastructure_oc.f8341((SubLObject)$ic4$, var1, var2, var3, var4, (SubLObject)UNPROVIDED, (SubLObject)UNPROVIDED, (SubLObject)UNPROVIDED); if (NIL != hl_interface_infrastructure_oc.f8289()) { final SubLObject var5 = module0018.$g573$.getGlobalValue(); SubLObject var6 = (SubLObject)NIL; try { var6 = Locks.seize_lock(var5); final SubLObject var7 = (NIL != hl_interface_infrastructure_oc.f8288()) ? f11680(var1, var2, var3, var4) : f11681(var1, var2, var3, var4); module0197.f12312(var1, var2, var3, var4); hl_interface_infrastructure_oc.f8309(); return var7; } finally { if (NIL != var6) { Locks.release_lock(var5); } } } return (SubLObject)NIL; } public static SubLObject f11680(final SubLObject var1, final SubLObject var2, final SubLObject var3, final SubLObject var4) { final SubLThread var5 = SubLProcess.currentSubLThread(); final SubLObject var6 = hl_interface_infrastructure_oc.f8304((SubLObject)ConsesLow.list((SubLObject)$ic10$, module0035.f2241(var1), module0035.f2241(var2), module0035.f2241(var3), module0035.f2241(var4))); SubLObject var7 = (SubLObject)NIL; final SubLObject var8 = hl_interface_infrastructure_oc.$g1483$.currentBinding(var5); try { hl_interface_infrastructure_oc.$g1483$.bind((SubLObject)T, var5); var7 = module0187.f11751(var6); if (NIL != hl_interface_infrastructure_oc.f8287()) { module0187.f11748(var7, var6, var1, var2, var3, var4); } } finally { hl_interface_infrastructure_oc.$g1483$.rebind(var8, var5); } return var7; } public static SubLObject f11681(final SubLObject var1, final SubLObject var2, final SubLObject var3, final SubLObject var4) { final SubLObject var5 = module0187.f11747(var1, var2, var3, var4); return deduction_handles_oc.f11675(var5); } public static SubLObject f11682(final SubLObject var7) { final SubLThread var8 = SubLProcess.currentSubLThread(); assert NIL != deduction_handles_oc.f11659(var7) : var7; SubLObject var9 = (SubLObject)NIL; hl_interface_infrastructure_oc.f8308(); hl_interface_infrastructure_oc.f8341((SubLObject)$ic12$, var7, (SubLObject)UNPROVIDED, (SubLObject)UNPROVIDED, (SubLObject)UNPROVIDED, (SubLObject)UNPROVIDED, (SubLObject)UNPROVIDED, (SubLObject)UNPROVIDED); if (NIL != hl_interface_infrastructure_oc.f8288()) { var9 = hl_interface_infrastructure_oc.f8304((SubLObject)ConsesLow.list((SubLObject)$ic12$, (SubLObject)ConsesLow.list((SubLObject)$ic13$, var7))); } if (NIL != hl_interface_infrastructure_oc.f8287()) { final SubLObject var10 = hl_interface_infrastructure_oc.$g1483$.currentBinding(var8); try { hl_interface_infrastructure_oc.$g1483$.bind((SubLObject)T, var8); final SubLObject var11 = module0018.$g573$.getGlobalValue(); SubLObject var12 = (SubLObject)NIL; try { var12 = Locks.seize_lock(var11); module0197.f12316(var7); module0187.f11755(var7); final SubLObject var13 = module0188.f11781(var7); if (NIL != assertion_handles_oc.f11035(var13)) { if (NIL != assertion_handles_oc.f11041(var13, (SubLObject)UNPROVIDED)) { assertions_low_oc.f11268(var13, var7); } } else if (NIL != module0191.f11952(var13)) { final SubLObject var14 = module0183.f11552(var13); if (NIL != var14) { module0182.f11520(var14); } } return module0187.f11754(var7); } finally { if (NIL != var12) { Locks.release_lock(var11); } } } finally { hl_interface_infrastructure_oc.$g1483$.rebind(var10, var8); } } return var9; } public static SubLObject f11683(final SubLObject var1, final SubLObject var2, final SubLObject var3) { assert NIL != module0191.f11950(var1) : var1; assert NIL != module0191.f11993(var2) : var2; assert NIL != module0130.f8511(var3) : var3; if (NIL != hl_interface_infrastructure_oc.f8291()) { return hl_interface_infrastructure_oc.f8304((SubLObject)ConsesLow.list((SubLObject)$ic18$, (SubLObject)ConsesLow.list((SubLObject)$ic13$, var1), (SubLObject)ConsesLow.list((SubLObject)$ic13$, var2), (SubLObject)ConsesLow.list((SubLObject)$ic13$, var3))); } return module0187.f11758(var1, var2, var3); } public static SubLObject f11684(final SubLObject var7) { assert NIL != deduction_handles_oc.f11659(var7) : var7; if (NIL != hl_interface_infrastructure_oc.f8291()) { return hl_interface_infrastructure_oc.f8304((SubLObject)ConsesLow.list((SubLObject)$ic23$, (SubLObject)ConsesLow.list((SubLObject)$ic13$, var7))); } return module0187.f11760(var7); } public static SubLObject f11685(final SubLObject var7) { assert NIL != deduction_handles_oc.f11659(var7) : var7; if (NIL != hl_interface_infrastructure_oc.f8291()) { return hl_interface_infrastructure_oc.f8304((SubLObject)ConsesLow.list((SubLObject)$ic26$, (SubLObject)ConsesLow.list((SubLObject)$ic13$, var7))); } return module0187.f11753(var7); } public static SubLObject f11686(final SubLObject var7) { assert NIL != deduction_handles_oc.f11659(var7) : var7; if (NIL != hl_interface_infrastructure_oc.f8291()) { return hl_interface_infrastructure_oc.f8304((SubLObject)ConsesLow.list((SubLObject)$ic29$, (SubLObject)ConsesLow.list((SubLObject)$ic13$, var7))); } return module0187.f11761(var7); } public static SubLObject f11687(final SubLObject var7) { assert NIL != deduction_handles_oc.f11659(var7) : var7; if (NIL != hl_interface_infrastructure_oc.f8291()) { return hl_interface_infrastructure_oc.f8304((SubLObject)ConsesLow.list((SubLObject)$ic32$, (SubLObject)ConsesLow.list((SubLObject)$ic13$, var7))); } return module0187.f11762(var7); } public static SubLObject f11688(final SubLObject var7, final SubLObject var16) { final SubLThread var17 = SubLProcess.currentSubLThread(); assert NIL != deduction_handles_oc.f11659(var7) : var7; assert NIL != module0130.f8507(var16) : var16; SubLObject var18 = (SubLObject)NIL; hl_interface_infrastructure_oc.f8308(); hl_interface_infrastructure_oc.f8341((SubLObject)$ic35$, var7, var16, (SubLObject)UNPROVIDED, (SubLObject)UNPROVIDED, (SubLObject)UNPROVIDED, (SubLObject)UNPROVIDED, (SubLObject)UNPROVIDED); if (NIL != hl_interface_infrastructure_oc.f8288()) { var18 = hl_interface_infrastructure_oc.f8304((SubLObject)ConsesLow.list((SubLObject)$ic35$, (SubLObject)ConsesLow.list((SubLObject)$ic13$, var7), (SubLObject)ConsesLow.list((SubLObject)$ic13$, var16))); } if (NIL != hl_interface_infrastructure_oc.f8287()) { final SubLObject var19 = hl_interface_infrastructure_oc.$g1483$.currentBinding(var17); try { hl_interface_infrastructure_oc.$g1483$.bind((SubLObject)T, var17); final SubLObject var20 = module0018.$g573$.getGlobalValue(); SubLObject var21 = (SubLObject)NIL; try { var21 = Locks.seize_lock(var20); final SubLObject var22 = module0191.f11928(var7); final SubLObject var20_21 = module0187.f11756(var7, var16); module0197.f12318(var7, var22, var16); return var20_21; } finally { if (NIL != var21) { Locks.release_lock(var20); } } } finally { hl_interface_infrastructure_oc.$g1483$.rebind(var19, var17); } } return var18; } public static SubLObject f11689() { SubLFiles.declareFunction("com.cyc.cycjava.cycl.module0185", "f11679", "KB-CREATE-DEDUCTION", 4, 0, false); SubLFiles.declareFunction("com.cyc.cycjava.cycl.module0185", "f11680", "S#14508", 4, 0, false); SubLFiles.declareFunction("com.cyc.cycjava.cycl.module0185", "f11681", "S#14509", 4, 0, false); SubLFiles.declareFunction("com.cyc.cycjava.cycl.module0185", "f11682", "KB-REMOVE-DEDUCTION", 1, 0, false); SubLFiles.declareFunction("com.cyc.cycjava.cycl.module0185", "f11683", "KB-LOOKUP-DEDUCTION", 3, 0, false); SubLFiles.declareFunction("com.cyc.cycjava.cycl.module0185", "f11684", "KB-DEDUCTION-SUPPORTED-OBJECT", 1, 0, false); SubLFiles.declareFunction("com.cyc.cycjava.cycl.module0185", "f11685", "KB-DEDUCTION-SUPPORTS", 1, 0, false); SubLFiles.declareFunction("com.cyc.cycjava.cycl.module0185", "f11686", "KB-DEDUCTION-TRUTH", 1, 0, false); SubLFiles.declareFunction("com.cyc.cycjava.cycl.module0185", "f11687", "KB-DEDUCTION-STRENGTH", 1, 0, false); SubLFiles.declareFunction("com.cyc.cycjava.cycl.module0185", "f11688", "KB-SET-DEDUCTION-STRENGTH", 2, 0, false); return (SubLObject)NIL; } public static SubLObject f11690() { return (SubLObject)NIL; } public static SubLObject f11691() { module0012.f368((SubLObject)$ic4$, (SubLObject)$ic6$, (SubLObject)$ic7$, (SubLObject)$ic8$, (SubLObject)$ic9$); module0012.f368((SubLObject)$ic12$, (SubLObject)$ic14$, (SubLObject)$ic15$, (SubLObject)$ic16$, (SubLObject)$ic17$); module0012.f368((SubLObject)$ic18$, (SubLObject)$ic19$, (SubLObject)$ic20$, (SubLObject)$ic21$, (SubLObject)$ic22$); module0012.f368((SubLObject)$ic23$, (SubLObject)$ic14$, (SubLObject)$ic24$, (SubLObject)$ic16$, (SubLObject)$ic25$); module0012.f368((SubLObject)$ic26$, (SubLObject)$ic14$, (SubLObject)$ic27$, (SubLObject)$ic16$, (SubLObject)$ic28$); module0012.f368((SubLObject)$ic29$, (SubLObject)$ic14$, (SubLObject)$ic30$, (SubLObject)$ic16$, (SubLObject)$ic31$); module0012.f368((SubLObject)$ic32$, (SubLObject)$ic14$, (SubLObject)$ic33$, (SubLObject)$ic16$, (SubLObject)$ic34$); module0012.f368((SubLObject)$ic35$, (SubLObject)$ic36$, (SubLObject)$ic37$, (SubLObject)$ic38$, (SubLObject)$ic9$); return (SubLObject)NIL; } public void declareFunctions() { f11689(); } public void initializeVariables() { f11690(); } public void runTopLevelForms() { f11691(); } static { me = (SubLFile)new module0185(); $ic0$ = makeSymbol("SUPPORT-P"); $ic1$ = makeSymbol("S#14254", "CYC"); $ic2$ = makeSymbol("TRUTH-P"); $ic3$ = makeSymbol("EL-STRENGTH-P"); $ic4$ = makeSymbol("KB-CREATE-DEDUCTION"); $ic5$ = makeSymbol("S#5859", "CYC"); $ic6$ = ConsesLow.list((SubLObject)makeSymbol("ASSERTION", "CYC"), (SubLObject)makeSymbol("S#14510", "CYC"), (SubLObject)makeSymbol("S#12576", "CYC"), (SubLObject)makeSymbol("S#13918", "CYC")); $ic7$ = makeString("Create a new deduction consisting of SUPPORTS for ASSERTION.\n TRUTH is the truth value of the deduction.\n Hook up the indexing for the new deduction."); $ic8$ = ConsesLow.list((SubLObject)ConsesLow.list((SubLObject)makeSymbol("ASSERTION", "CYC"), (SubLObject)makeSymbol("SUPPORT-P")), (SubLObject)ConsesLow.list((SubLObject)makeSymbol("S#14510", "CYC"), (SubLObject)makeSymbol("S#14254", "CYC")), (SubLObject)ConsesLow.list((SubLObject)makeSymbol("S#12576", "CYC"), (SubLObject)makeSymbol("TRUTH-P")), (SubLObject)ConsesLow.list((SubLObject)makeSymbol("S#13918", "CYC"), (SubLObject)makeSymbol("EL-STRENGTH-P"))); $ic9$ = ConsesLow.list((SubLObject)makeSymbol("DEDUCTION-P")); $ic10$ = makeSymbol("S#14497", "CYC"); $ic11$ = makeSymbol("DEDUCTION-P"); $ic12$ = makeSymbol("KB-REMOVE-DEDUCTION"); $ic13$ = makeSymbol("QUOTE"); $ic14$ = ConsesLow.list((SubLObject)makeSymbol("DEDUCTION", "CYC")); $ic15$ = makeString("Remove DEDUCTION from the KB, and unhook its indexing."); $ic16$ = ConsesLow.list((SubLObject)ConsesLow.list((SubLObject)makeSymbol("DEDUCTION", "CYC"), (SubLObject)makeSymbol("DEDUCTION-P"))); $ic17$ = ConsesLow.list((SubLObject)makeSymbol("NULL")); $ic18$ = makeSymbol("KB-LOOKUP-DEDUCTION"); $ic19$ = ConsesLow.list((SubLObject)makeSymbol("ASSERTION", "CYC"), (SubLObject)makeSymbol("S#14510", "CYC"), (SubLObject)makeSymbol("S#12576", "CYC")); $ic20$ = makeString("Return the deduction with ASSERTION, SUPPORTS, and TRUTH, if it exists.\n Return NIL otherwise."); $ic21$ = ConsesLow.list((SubLObject)ConsesLow.list((SubLObject)makeSymbol("ASSERTION", "CYC"), (SubLObject)makeSymbol("SUPPORT-P")), (SubLObject)ConsesLow.list((SubLObject)makeSymbol("S#14510", "CYC"), (SubLObject)makeSymbol("S#14254", "CYC")), (SubLObject)ConsesLow.list((SubLObject)makeSymbol("S#12576", "CYC"), (SubLObject)makeSymbol("TRUTH-P"))); $ic22$ = ConsesLow.list((SubLObject)ConsesLow.list((SubLObject)makeSymbol("S#664", "CYC"), (SubLObject)makeSymbol("DEDUCTION-P"))); $ic23$ = makeSymbol("KB-DEDUCTION-SUPPORTED-OBJECT"); $ic24$ = makeString("Return the assertion for DEDUCTION."); $ic25$ = ConsesLow.list((SubLObject)makeSymbol("SUPPORT-P")); $ic26$ = makeSymbol("KB-DEDUCTION-SUPPORTS"); $ic27$ = makeString("Return the supports for DEDUCTION."); $ic28$ = ConsesLow.list((SubLObject)makeSymbol("S#14254", "CYC")); $ic29$ = makeSymbol("KB-DEDUCTION-TRUTH"); $ic30$ = makeString("Return the truth for DEDUCTION."); $ic31$ = ConsesLow.list((SubLObject)makeSymbol("TRUTH-P")); $ic32$ = makeSymbol("KB-DEDUCTION-STRENGTH"); $ic33$ = makeString("Return the strength for DEDUCTION."); $ic34$ = ConsesLow.list((SubLObject)makeSymbol("EL-STRENGTH-P")); $ic35$ = makeSymbol("KB-SET-DEDUCTION-STRENGTH"); $ic36$ = ConsesLow.list((SubLObject)makeSymbol("DEDUCTION", "CYC"), (SubLObject)makeSymbol("S#13923", "CYC")); $ic37$ = makeString("Change the strength of DEDUCTION to NEW-STRENGTH."); $ic38$ = ConsesLow.list((SubLObject)ConsesLow.list((SubLObject)makeSymbol("DEDUCTION", "CYC"), (SubLObject)makeSymbol("DEDUCTION-P")), (SubLObject)ConsesLow.list((SubLObject)makeSymbol("S#13923", "CYC"), (SubLObject)makeSymbol("EL-STRENGTH-P"))); } } /* DECOMPILATION REPORT Decompiled from: G:\opt\CYC_JRTL_with_CommonLisp\platform\lib\cyc-oc4.0-unzipped/com/cyc/cycjava/cycl/class Total time: 120 ms Decompiled with Procyon 0.5.32. */
google-ar/chromium
ui/gfx/codec/skia_image_encoder_adapter.h
<reponame>google-ar/chromium // Copyright (c) 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_GFX_CODEC_SKIA_IMAGE_ENCODER_ADAPTER_H #define UI_GFX_CODEC_SKIA_IMAGE_ENCODER_ADAPTER_H #include "third_party/skia/include/core/SkEncodedImageFormat.h" #include "ui/gfx/gfx_export.h" class SkWStream; class SkPixmap; namespace gfx { // Matches signature of Skia's SkEncodeImage, but makes use of Chromium's // encoders. GFX_EXPORT bool EncodeSkiaImage(SkWStream* dst, const SkPixmap& pixmap, SkEncodedImageFormat format, int quality); } // namespace gfx #endif // UI_GFX_CODEC_SKIA_IMAGE_ENCODER_ADAPTER_H
bvn13/skin-composer
core/src/com/ray3k/skincomposer/dialog/scenecomposer/undoables/ContainerBackgroundUndoable.java
package com.ray3k.skincomposer.dialog.scenecomposer.undoables; import com.ray3k.skincomposer.data.DrawableData; import com.ray3k.skincomposer.dialog.scenecomposer.DialogSceneComposer; import com.ray3k.skincomposer.dialog.scenecomposer.DialogSceneComposerModel; public class ContainerBackgroundUndoable implements SceneComposerUndoable { private DialogSceneComposerModel.SimContainer container; private DrawableData background; private DrawableData previousBackground; private DialogSceneComposer dialog; public ContainerBackgroundUndoable(DrawableData background) { dialog = DialogSceneComposer.dialog; container = (DialogSceneComposerModel.SimContainer) dialog.simActor; this.background = background; previousBackground = container.background; } @Override public void undo() { container.background = previousBackground; if (dialog.simActor != container) { dialog.simActor = container; dialog.populatePath(); } dialog.populateProperties(); dialog.model.updatePreview(); } @Override public void redo() { container.background = background; if (dialog.simActor != container) { dialog.simActor = container; dialog.populatePath(); } dialog.populateProperties(); dialog.model.updatePreview(); } @Override public String getRedoString() { return "Redo \"Container Background: " + (background == null ? "null" : background.name) + "\""; } @Override public String getUndoString() { return "Undo \"Container Background: " + (background == null ? "null" : background.name) + "\""; } }
akhilreddyjirra/egeria
open-metadata-implementation/access-services/data-platform/data-platform-server/src/main/java/org/odpi/openmetadata/accessservices/dataplatform/server/DataPlatformInstanceHandler.java
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.accessservices.dataplatform.server; import org.odpi.openmetadata.accessservices.dataplatform.handlers.RegistrationHandler; import org.odpi.openmetadata.adminservices.configuration.registration.AccessServiceDescription; import org.odpi.openmetadata.commonservices.multitenant.OCFOMASServiceInstanceHandler; import org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException; import org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException; import org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException; public class DataPlatformInstanceHandler extends OCFOMASServiceInstanceHandler { /** * Default constructor registers the access service */ public DataPlatformInstanceHandler() { super(AccessServiceDescription.DATA_PLATFORM_OMAS.getAccessServiceName() + " OMAS"); DataPlatformOMASRegistration.registerAccessService(); } /** * Retrieve the registration handler for the access service * * @param userId calling user * @param serverName name of the server tied to the request * @return handler for use by the requested instance * @throws InvalidParameterException no available instance for the requested server * @throws UserNotAuthorizedException user does not have access to the requested server * @throws PropertyServerException the service name is not known - indicating a logic error */ public RegistrationHandler getRegistrationHandler(String userId, String serverName, String serviceOperationName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException { DataPlatformServicesInstance instance = (DataPlatformServicesInstance) super.getServerServiceInstance(userId, serverName, serviceOperationName); if (instance != null) { return instance.getRegistrationHandler(); } return null; } }
bdezonia/zorbage
src/main/java/example/TensorAlgorithms.java
/* * Zorbage: an algebraic data hierarchy for use in numeric processing. * * Copyright (c) 2016-2021 <NAME> 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 <copyright holder> nor the names of its contributors may * be used to endorse or promote products derived from this software without specific * prior written permission. * * 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 <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE. */ package example; import nom.bdezonia.zorbage.algebra.G; import nom.bdezonia.zorbage.algorithm.Round; import nom.bdezonia.zorbage.algorithm.TensorCommaDerivative; import nom.bdezonia.zorbage.algorithm.TensorNorm; import nom.bdezonia.zorbage.algorithm.TensorOuterProduct; import nom.bdezonia.zorbage.algorithm.TensorPower; import nom.bdezonia.zorbage.algorithm.TensorRound; import nom.bdezonia.zorbage.algorithm.TensorSemicolonDerivative; import nom.bdezonia.zorbage.algorithm.TensorShape; import nom.bdezonia.zorbage.algorithm.TensorUnity; import nom.bdezonia.zorbage.type.complex.float64.ComplexFloat64CartesianTensorProductMember; import nom.bdezonia.zorbage.type.real.float64.Float64CartesianTensorProductMember; import nom.bdezonia.zorbage.type.real.float64.Float64Member; /** * @author <NAME> */ class TensorAlgorithms { // Zorbage has a number of basic tensor algorithms. The examples below are mostly using // doubles but note that any precision of reals, complexes, quaternions, and octonions // can be substituted instead as needed. void example1() { Float64CartesianTensorProductMember a = new Float64CartesianTensorProductMember(3, 4); Float64CartesianTensorProductMember b = G.DBL_TEN.construct(); TensorCommaDerivative.compute(G.DBL_TEN, G.DBL, 1, a, b); // b contains the comma derivative of a } void example2() { ComplexFloat64CartesianTensorProductMember a = new ComplexFloat64CartesianTensorProductMember(3, 4); Float64Member b = G.DBL.construct(); TensorNorm.compute(G.CDBL, G.DBL, a.rawData(), b); // b contains the norm of a } void example3() { ComplexFloat64CartesianTensorProductMember a = new ComplexFloat64CartesianTensorProductMember(3, 4); ComplexFloat64CartesianTensorProductMember b = new ComplexFloat64CartesianTensorProductMember(3, 4); ComplexFloat64CartesianTensorProductMember c = G.CDBL_TEN.construct(); TensorOuterProduct.compute(G.CDBL_TEN, G.CDBL, a, b, c); // c contains the outer prodcut of a and b } void example4() { Float64CartesianTensorProductMember a = new Float64CartesianTensorProductMember(3, 4); Float64CartesianTensorProductMember b = G.DBL_TEN.construct(); TensorPower.compute(G.DBL_TEN, 4, a, b); // b = a ^ 4 } void example5() { Float64CartesianTensorProductMember a = new Float64CartesianTensorProductMember(3, 4); Float64CartesianTensorProductMember b = G.DBL_TEN.construct(); Float64Member delta = new Float64Member(1); TensorRound.compute(G.DBL_TEN, G.DBL, Round.Mode.AWAY_FROM_ORIGIN, delta, a, b); // b contains the rounded version of a } void example6() { Float64CartesianTensorProductMember a = new Float64CartesianTensorProductMember(3, 4); Float64CartesianTensorProductMember b = G.DBL_TEN.construct(); TensorSemicolonDerivative.compute(G.DBL_TEN, G.DBL, 2, a, b); // b contains the semicolon derivative of a } void example7() { ComplexFloat64CartesianTensorProductMember a = new ComplexFloat64CartesianTensorProductMember(3, 4); ComplexFloat64CartesianTensorProductMember b = G.CDBL_TEN.construct(); TensorShape.compute(a, b); // b now has rank of 3 and dimCount of 4 } void example8() { ComplexFloat64CartesianTensorProductMember a = new ComplexFloat64CartesianTensorProductMember(3, 4); TensorUnity.compute(G.CDBL_TEN, G.CDBL, a); // a contains a tensor that is zero most places but is one on the super diagonal } }
ljz663/tencentcloud-sdk-java
src/main/java/com/tencentcloudapi/ie/v20200304/models/TextMarkInfoItem.java
/* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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. */ package com.tencentcloudapi.ie.v20200304.models; import com.tencentcloudapi.common.AbstractModel; import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.Expose; import java.util.HashMap; public class TextMarkInfoItem extends AbstractModel{ /** * 文字内容。 */ @SerializedName("Text") @Expose private String Text; /** * 文字水印X坐标。 */ @SerializedName("PosX") @Expose private Long PosX; /** * 文字水印Y坐标。 */ @SerializedName("PosY") @Expose private Long PosY; /** * 文字大小 */ @SerializedName("FontSize") @Expose private Long FontSize; /** * 字体,可选项:hei,song,simkai,arial;默认hei(黑体)。 */ @SerializedName("FontFile") @Expose private String FontFile; /** * 字体颜色,颜色见附录,不填默认black。 */ @SerializedName("FontColor") @Expose private String FontColor; /** * 文字透明度,可选值0-1。0:不透明,1:全透明。默认为0 */ @SerializedName("FontAlpha") @Expose private Float FontAlpha; /** * Get 文字内容。 * @return Text 文字内容。 */ public String getText() { return this.Text; } /** * Set 文字内容。 * @param Text 文字内容。 */ public void setText(String Text) { this.Text = Text; } /** * Get 文字水印X坐标。 * @return PosX 文字水印X坐标。 */ public Long getPosX() { return this.PosX; } /** * Set 文字水印X坐标。 * @param PosX 文字水印X坐标。 */ public void setPosX(Long PosX) { this.PosX = PosX; } /** * Get 文字水印Y坐标。 * @return PosY 文字水印Y坐标。 */ public Long getPosY() { return this.PosY; } /** * Set 文字水印Y坐标。 * @param PosY 文字水印Y坐标。 */ public void setPosY(Long PosY) { this.PosY = PosY; } /** * Get 文字大小 * @return FontSize 文字大小 */ public Long getFontSize() { return this.FontSize; } /** * Set 文字大小 * @param FontSize 文字大小 */ public void setFontSize(Long FontSize) { this.FontSize = FontSize; } /** * Get 字体,可选项:hei,song,simkai,arial;默认hei(黑体)。 * @return FontFile 字体,可选项:hei,song,simkai,arial;默认hei(黑体)。 */ public String getFontFile() { return this.FontFile; } /** * Set 字体,可选项:hei,song,simkai,arial;默认hei(黑体)。 * @param FontFile 字体,可选项:hei,song,simkai,arial;默认hei(黑体)。 */ public void setFontFile(String FontFile) { this.FontFile = FontFile; } /** * Get 字体颜色,颜色见附录,不填默认black。 * @return FontColor 字体颜色,颜色见附录,不填默认black。 */ public String getFontColor() { return this.FontColor; } /** * Set 字体颜色,颜色见附录,不填默认black。 * @param FontColor 字体颜色,颜色见附录,不填默认black。 */ public void setFontColor(String FontColor) { this.FontColor = FontColor; } /** * Get 文字透明度,可选值0-1。0:不透明,1:全透明。默认为0 * @return FontAlpha 文字透明度,可选值0-1。0:不透明,1:全透明。默认为0 */ public Float getFontAlpha() { return this.FontAlpha; } /** * Set 文字透明度,可选值0-1。0:不透明,1:全透明。默认为0 * @param FontAlpha 文字透明度,可选值0-1。0:不透明,1:全透明。默认为0 */ public void setFontAlpha(Float FontAlpha) { this.FontAlpha = FontAlpha; } public TextMarkInfoItem() { } /** * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, * and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. */ public TextMarkInfoItem(TextMarkInfoItem source) { if (source.Text != null) { this.Text = new String(source.Text); } if (source.PosX != null) { this.PosX = new Long(source.PosX); } if (source.PosY != null) { this.PosY = new Long(source.PosY); } if (source.FontSize != null) { this.FontSize = new Long(source.FontSize); } if (source.FontFile != null) { this.FontFile = new String(source.FontFile); } if (source.FontColor != null) { this.FontColor = new String(source.FontColor); } if (source.FontAlpha != null) { this.FontAlpha = new Float(source.FontAlpha); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap<String, String> map, String prefix) { this.setParamSimple(map, prefix + "Text", this.Text); this.setParamSimple(map, prefix + "PosX", this.PosX); this.setParamSimple(map, prefix + "PosY", this.PosY); this.setParamSimple(map, prefix + "FontSize", this.FontSize); this.setParamSimple(map, prefix + "FontFile", this.FontFile); this.setParamSimple(map, prefix + "FontColor", this.FontColor); this.setParamSimple(map, prefix + "FontAlpha", this.FontAlpha); } }
TampereTC/tre-smartcity-keystone
keystone/auth/plugins/mapped.py
# 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. import functools from oslo.serialization import jsonutils from pycadf import cadftaxonomy as taxonomy from six.moves.urllib import parse from keystone import auth from keystone.common import dependency from keystone.contrib import federation from keystone.contrib.federation import utils from keystone.models import token_model from keystone import notifications @dependency.requires('federation_api', 'identity_api', 'token_provider_api') class Mapped(auth.AuthMethodHandler): def authenticate(self, context, auth_payload, auth_context): """Authenticate mapped user and return an authentication context. :param context: keystone's request context :param auth_payload: the content of the authentication for a given method :param auth_context: user authentication context, a dictionary shared by all plugins. In addition to ``user_id`` in ``auth_context``, this plugin sets ``group_ids``, ``OS-FEDERATION:identity_provider`` and ``OS-FEDERATION:protocol`` """ if 'id' in auth_payload: fields = self._handle_scoped_token(context, auth_payload) else: fields = self._handle_unscoped_token(context, auth_payload) auth_context.update(fields) def _handle_scoped_token(self, context, auth_payload): token_id = auth_payload['id'] token_ref = token_model.KeystoneToken( token_id=token_id, token_data=self.token_provider_api.validate_token( token_id)) utils.validate_expiration(token_ref) token_audit_id = token_ref.audit_id identity_provider = token_ref.federation_idp_id protocol = token_ref.federation_protocol_id user_id = token_ref.user_id group_ids = token_ref.federation_group_ids send_notification = functools.partial( notifications.send_saml_audit_notification, 'authenticate', context, user_id, group_ids, identity_provider, protocol, token_audit_id) try: mapping = self.federation_api.get_mapping_from_idp_and_protocol( identity_provider, protocol) utils.validate_groups(group_ids, mapping['id'], self.identity_api) except Exception: # NOTE(topol): Diaper defense to catch any exception, so we can # send off failed authentication notification, raise the exception # after sending the notification send_notification(taxonomy.OUTCOME_FAILURE) raise else: send_notification(taxonomy.OUTCOME_SUCCESS) return { 'user_id': user_id, 'group_ids': group_ids, federation.IDENTITY_PROVIDER: identity_provider, federation.PROTOCOL: protocol } def _handle_unscoped_token(self, context, auth_payload): user_id, assertion = self._extract_assertion_data(context) if user_id: assertion['user_id'] = user_id identity_provider = auth_payload['identity_provider'] protocol = auth_payload['protocol'] group_ids = None # NOTE(topol): The user is coming in from an IdP with a SAML assertion # instead of from a token, so we set token_id to None token_id = None try: mapped_properties = self._apply_mapping_filter(identity_provider, protocol, assertion) group_ids = mapped_properties['group_ids'] if not user_id: user_id = parse.quote(mapped_properties['name']) except Exception: # NOTE(topol): Diaper defense to catch any exception, so we can # send off failed authentication notification, raise the exception # after sending the notification outcome = taxonomy.OUTCOME_FAILURE notifications.send_saml_audit_notification('authenticate', context, user_id, group_ids, identity_provider, protocol, token_id, outcome) raise else: outcome = taxonomy.OUTCOME_SUCCESS notifications.send_saml_audit_notification('authenticate', context, user_id, group_ids, identity_provider, protocol, token_id, outcome) return { 'user_id': user_id, 'group_ids': group_ids, federation.IDENTITY_PROVIDER: identity_provider, federation.PROTOCOL: protocol } def _extract_assertion_data(self, context): assertion = dict(utils.get_assertion_params_from_env(context)) user_id = context['environment'].get('REMOTE_USER') return user_id, assertion def _apply_mapping_filter(self, identity_provider, protocol, assertion): mapping = self.federation_api.get_mapping_from_idp_and_protocol( identity_provider, protocol) rules = jsonutils.loads(mapping['rules']) rule_processor = utils.RuleProcessor(rules) mapped_properties = rule_processor.process(assertion) utils.validate_groups(mapped_properties['group_ids'], mapping['id'], self.identity_api) return mapped_properties
juusokor/osmcha-django
osmchadjango/changeset/admin.py
from django.contrib.gis import admin from .models import Changeset, SuspicionReasons, Tag class ChangesetAdmin(admin.OSMGeoAdmin): search_fields = ['id'] list_display = ['id', 'user', 'create', 'modify', 'delete', 'checked', 'date', 'check_user'] list_filter = ['checked', 'is_suspect', 'reasons'] date_hierarchy = 'date' class ReasonsAdmin(admin.ModelAdmin): search_fields = ['name'] list_display = ['name', 'is_visible', 'for_changeset', 'for_feature'] list_filter = ['is_visible', 'for_changeset', 'for_feature'] admin.site.register(Changeset, ChangesetAdmin) admin.site.register(SuspicionReasons, ReasonsAdmin) admin.site.register(Tag, ReasonsAdmin)
GregDevProjects/carbon-header-fix
node_modules/@carbon/icons-react/es/letter--Ss/20.js
<gh_stars>1-10 import { LetterSs20 } from '..'; export default LetterSs20;
gtalis/openscreen
cast/standalone_receiver/sdl_player_base.h
<reponame>gtalis/openscreen<filename>cast/standalone_receiver/sdl_player_base.h // Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CAST_STANDALONE_RECEIVER_SDL_PLAYER_BASE_H_ #define CAST_STANDALONE_RECEIVER_SDL_PLAYER_BASE_H_ #include <stdint.h> #include <functional> #include <map> #include <string> #include "cast/standalone_receiver/decoder.h" #include "cast/standalone_receiver/sdl_glue.h" #include "cast/streaming/receiver.h" #include "platform/api/task_runner.h" #include "platform/api/time.h" #include "platform/base/error.h" namespace openscreen { namespace cast { // Common base class that consumes frames from a Receiver, decodes them, and // plays them out via the appropriate SDL subsystem. Subclasses implement the // specifics, based on the type of media (audio or video). class SDLPlayerBase : public Receiver::Consumer, public Decoder::Client { public: ~SDLPlayerBase() override; // Returns OK unless a fatal error has occurred. const Error& error_status() const { return error_status_; } protected: // Current player state, which is used to determine what to render/present, // and how frequently. enum PlayerState { kWaitingForFirstFrame, // Render silent "blue splash" screen at idle FPS. kScheduledToPresent, // Present new content at an exact time point. kPresented, // Continue presenting same content at idle FPS. kError, // Render silent "red splash" screen at idle FPS. }; // A decoded frame and its target presentation time. struct PresentableFrame { Clock::time_point presentation_time; AVFrameUniquePtr decoded_frame; PresentableFrame(); ~PresentableFrame(); PresentableFrame(PresentableFrame&& other) noexcept; PresentableFrame& operator=(PresentableFrame&& other) noexcept; }; // |error_callback| is run only if a fatal error occurs, at which point the // player has halted and set |error_status()|. |media_type| should be "audio" // or "video" (only used when logging). SDLPlayerBase(ClockNowFunctionPtr now_function, TaskRunner* task_runner, Receiver* receiver, const std::string& codec_name, std::function<void()> error_callback, const char* media_type); PlayerState state() const { return state_; } // Called back from either |decoder_| or a player subclass to handle a fatal // error event. void OnFatalError(std::string message) final; // Renders the |frame| and returns its [possibly adjusted] presentation time. virtual ErrorOr<Clock::time_point> RenderNextFrame( const PresentableFrame& frame) = 0; // Called to render when the player has no new content, and returns true if a // Present() is necessary. |frame| may be null, if it is not available. This // method can be called before the first frame, after any frame, or after a // fatal error has occurred. virtual bool RenderWhileIdle(const PresentableFrame* frame) = 0; // Presents the rendering from the last call to RenderNextFrame() or // RenderWhileIdle(). virtual void Present() = 0; private: struct PendingFrame : public PresentableFrame { Clock::time_point start_time; PendingFrame(); ~PendingFrame(); PendingFrame(PendingFrame&& other) noexcept; PendingFrame& operator=(PendingFrame&& other) noexcept; }; // Receiver::Consumer implementation. void OnFramesReady(int next_frame_buffer_size) final; // Determine the presentation time of the frame. Ideally, this will occur // based on the time progression of the media, given by the RTP timestamps. // However, if this falls too far out-of-sync with the system reference clock, // re-synchronize, possibly causing user-visible "jank." Clock::time_point ResyncAndDeterminePresentationTime( const EncodedFrame& frame); // AVCodecDecoder::Client implementation. These are called-back from // |decoder_| to provide results. void OnFrameDecoded(FrameId frame_id, const AVFrame& frame) final; void OnDecodeError(FrameId frame_id, std::string message) final; // Calls RenderNextFrame() on the next available decoded frame, and schedules // its presentation. If no decoded frame is available, RenderWhileIdle() is // called instead. void RenderAndSchedulePresentation(); // Schedules an explicit check to see if more frames are ready for // consumption. Normally, the Receiver will notify this Consumer when more // frames are ready. However, there are cases where prior notifications were // ignored because there were too many frames in the player's pipeline. Thus, // whenever frames are removed from the pipeline, this method should be // called. void ResumeDecoding(); // Called whenever a frame has been decoded, presentation of a prior frame has // completed, and/or the player has encountered a state change that might // require rendering/presenting a different output. void ResumeRendering(); const ClockNowFunctionPtr now_; Receiver* const receiver_; std::function<void()> error_callback_; // Run once by OnFatalError(). const char* const media_type_; // For logging only. // Set to the error code that placed the player in a fatal error state. Error error_status_; // Current player state, which is used to determine what to render/present, // and how frequently. PlayerState state_ = kWaitingForFirstFrame; // Queue of frames currently being decoded and decoded frames awaiting // rendering. std::map<FrameId, PendingFrame> frames_to_render_; // Buffer for holding EncodedFrame::data. Decoder::Buffer buffer_; // Associates a RTP timestamp with a local clock time point. This is updated // whenever the media (RTP) timestamps drift too much away from the rate at // which the local clock ticks. This is important for A/V synchronization. RtpTimeTicks last_sync_rtp_timestamp_{}; Clock::time_point last_sync_reference_time_{}; Decoder decoder_; // The decoded frame to be rendered/presented. PendingFrame current_frame_; // A cumulative moving average of recent single-frame processing times // (consume + decode + render). This is passed to the Cast Receiver so that it // can determine when to drop late frames. Clock::duration recent_processing_time_{}; // Alarms that execute the various stages of the player pipeline at certain // times. Alarm decode_alarm_; Alarm render_alarm_; Alarm presentation_alarm_; // Maximum number of frames in the decode/render pipeline. This limit is about // making sure the player uses resources efficiently: It is better for frames // to remain in the Receiver's queue until this player is ready to process // them. static constexpr int kMaxFramesInPipeline = 8; }; } // namespace cast } // namespace openscreen #endif // CAST_STANDALONE_RECEIVER_SDL_PLAYER_BASE_H_
bourbest/numnum
server/api/schema/account-schema.js
<reponame>bourbest/numnum import {string, required, Schema } from '../../../src/sapin' const baseAccountSchema = { id: string, username: string(required), password: string(required) } export const accountSchema = new Schema(baseAccountSchema) export const newAccountSchema = new Schema({ ...baseAccountSchema, password: string(required), confirm: string([required]) })
s1hit/urushi
lib/js/extend.js
<reponame>s1hit/urushi<gh_stars>10-100 // Production steps of ECMA-262, Edition 5, 192.168.3.11 // Reference: http://es5.github.com/#x15.4.4.18 if (!Array.prototype.forEach) { Array.prototype.forEach = function(callback, thisArg) { var T, k; if (this == null) { throw new TypeError(" this is null or not defined"); } // 1. Let O be the result of calling ToObject passing the |this| value as the argument. var O = Object(this); // 2. Let lenValue be the result of calling the Get internal method of O with the argument "length". // 3. Let len be ToUint32(lenValue). var len = O.length >>> 0; // Hack to convert O.length to a UInt32 // 4. If IsCallable(callback) is false, throw a TypeError exception. // See: http://es5.github.com/#x9.11 if ({}.toString.call(callback) != "[object Function]") { throw new TypeError(callback + " is not a function"); } // 5. If thisArg was supplied, let T be thisArg; else let T be undefined. if (thisArg) { T = thisArg; } // 6. Let k be 0 k = 0; // 7. Repeat, while k < len while(k < len) { var kValue; // a. Let Pk be ToString(k). // This is implicit for LHS operands of the in operator // b. Let kPresent be the result of calling the HasProperty internal method of O with argument Pk. // This step can be combined with c // c. If kPresent is true, then if (k in O) { // i. Let kValue be the result of calling the Get internal method of O with argument Pk. kValue = O[k]; // ii. Call the Call internal method of callback with T as the this value and // argument list containing kValue, k, and O. callback.call(T, kValue, k, O); } // d. Increase k by 1. k++; } // 8. return undefined }; } (function (win, doc, exports, undefined) { 'use strict'; var fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/; function Class() { /* noop. */ } Class.extend = function (props) { var SuperClass = this; function Class() { if (typeof this.init === 'function') { this.init.apply(this, arguments); } } Class.prototype = Object.create(SuperClass.prototype, { constructor : { value : Class, writable : true, configurable : true } }); Object.keys(props).forEach(function (key) { var prop = props[key], _super = SuperClass.prototype[key], isMethodOverride = (typeof prop === 'function' && typeof _super === 'function' && fnTest.test(prop)); if (isMethodOverride) { Class.prototype[key] = function () { var ret, tmp = this._super; Object.defineProperty(this, '_super', { value : _super, configurable : true }); ret = prop.apply(this, arguments); Object.defineProperty(this, '_super', { value : tmp, configurable : true }); return ret; }; } else { Class.prototype[key] = prop; } }); Class.extend = SuperClass.extend; return Class; }; exports.Class = Class; })(window, window.document, window);
jongio/azure-sdk-for-java
sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/SearchResourceEncryptionKey.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** * A customer-managed encryption key in Azure Key Vault. Keys that you create * and manage can be used to encrypt or decrypt data-at-rest in Azure Cognitive * Search, such as indexes and synonym maps. */ @Fluent public final class SearchResourceEncryptionKey { /* * The name of your Azure Key Vault key to be used to encrypt your data at * rest. */ @JsonProperty(value = "keyVaultKeyName", required = true) private String keyName; /* * The version of your Azure Key Vault key to be used to encrypt your data * at rest. */ @JsonProperty(value = "keyVaultKeyVersion", required = true) private String keyVersion; /* * The URI of your Azure Key Vault, also referred to as DNS name, that * contains the key to be used to encrypt your data at rest. An example URI * might be https://my-keyvault-name.vault.azure.net. */ @JsonProperty(value = "keyVaultUri", required = true) private String vaultUri; /* * Optional Azure Active Directory credentials used for accessing your * Azure Key Vault. Not required if using managed identity instead. */ @JsonProperty(value = "accessCredentials") private AzureActiveDirectoryApplicationCredentials accessCredentials; /** * Get the keyName property: The name of your Azure Key Vault key to be * used to encrypt your data at rest. * * @return the keyName value. */ public String getKeyName() { return this.keyName; } /** * Set the keyName property: The name of your Azure Key Vault key to be * used to encrypt your data at rest. * * @param keyName the keyName value to set. * @return the SearchResourceEncryptionKey object itself. */ public SearchResourceEncryptionKey setKeyName(String keyName) { this.keyName = keyName; return this; } /** * Get the keyVersion property: The version of your Azure Key Vault key to * be used to encrypt your data at rest. * * @return the keyVersion value. */ public String getKeyVersion() { return this.keyVersion; } /** * Set the keyVersion property: The version of your Azure Key Vault key to * be used to encrypt your data at rest. * * @param keyVersion the keyVersion value to set. * @return the SearchResourceEncryptionKey object itself. */ public SearchResourceEncryptionKey setKeyVersion(String keyVersion) { this.keyVersion = keyVersion; return this; } /** * Get the vaultUri property: The URI of your Azure Key Vault, also * referred to as DNS name, that contains the key to be used to encrypt * your data at rest. An example URI might be * https://my-keyvault-name.vault.azure.net. * * @return the vaultUri value. */ public String getVaultUri() { return this.vaultUri; } /** * Set the vaultUri property: The URI of your Azure Key Vault, also * referred to as DNS name, that contains the key to be used to encrypt * your data at rest. An example URI might be * https://my-keyvault-name.vault.azure.net. * * @param vaultUri the vaultUri value to set. * @return the SearchResourceEncryptionKey object itself. */ public SearchResourceEncryptionKey setVaultUri(String vaultUri) { this.vaultUri = vaultUri; return this; } /** * Get the accessCredentials property: Optional Azure Active Directory * credentials used for accessing your Azure Key Vault. Not required if * using managed identity instead. * * @return the accessCredentials value. */ public AzureActiveDirectoryApplicationCredentials getAccessCredentials() { return this.accessCredentials; } /** * Set the accessCredentials property: Optional Azure Active Directory * credentials used for accessing your Azure Key Vault. Not required if * using managed identity instead. * * @param accessCredentials the accessCredentials value to set. * @return the SearchResourceEncryptionKey object itself. */ public SearchResourceEncryptionKey setAccessCredentials(AzureActiveDirectoryApplicationCredentials accessCredentials) { this.accessCredentials = accessCredentials; return this; } }
zoho/zohocrm-python-sdk-2.1
samples/tags/tag.py
<gh_stars>0 from zcrmsdk.src.com.zoho.crm.api.tags import * from zcrmsdk.src.com.zoho.crm.api.tags import Tag as ZCRMTag from zcrmsdk.src.com.zoho.crm.api import ParameterMap class Tag(object): @staticmethod def get_tags(module_api_name): """ This method is used to get all the tags in a module :param module_api_name: The API Name of the module to get tags. """ """ example module_api_name = "Leads" """ # Get instance of TagsOperations Class tags_operations = TagsOperations() # Get instance of ParameterMap Class param_instance = ParameterMap() # Possible parameters of Get Tags operation param_instance.add(GetTagsParam.module, module_api_name) # param_instance.add(GetTagsParam.my_tags, 'true') # Call get_tags method that takes ParameterMap instance as parameter response = tags_operations.get_tags(param_instance) if response is not None: # Get the status code from response print('Status Code: ' + str(response.get_status_code())) if response.get_status_code() in [204, 304]: print('No Content' if response.get_status_code() == 204 else 'Not Modified') return # Get object from response response_object = response.get_object() if response_object is not None: # Check if expected ResponseWrapper instance is received. if isinstance(response_object, ResponseWrapper): # Get the list of obtained Tag instances tags_list = response_object.get_tags() for tag in tags_list: # Get the CreatedTime of each Tag print("Tag CreatedTime: " + str(tag.get_created_time())) if tag.get_modified_time() is not None: # Get the ModifiedTime of each Tag print("Tag ModifiedTime: " + str(tag.get_modified_time())) # Get the ColorCode of each Tag print("Tag ColorCode: " + str(tag.get_color_code())) # Get the Name of each Tag print("Tag Name: " + tag.get_name()) # Get the modifiedBy User instance of each Tag modified_by = tag.get_modified_by() # Check if modifiedBy is not None if modified_by is not None: # Get the Name of the modifiedBy User print("Tag Modified By - Name: " + modified_by.get_name()) # Get the ID of the modifiedBy User print("Tag Modified By - ID: " + str(modified_by.get_id())) # Get the ID of each Tag print("Tag ID: " + str(tag.get_id())) # Get the createdBy User instance of each Tag created_by = tag.get_created_by() # Check if createdBy is not None if created_by is not None: # Get the Name of the createdBy User print("Tag Created By - Name: " + created_by.get_name()) # Get the ID of the createdBy User print("Tag Created By - ID: " + str(created_by.get_id())) # Get the obtained Info object info = response_object.get_info() # Check if info is not None if info is not None: if info.get_count() is not None: # Get the Count of the Info print("Tag Info Count: " + str(info.get_count())) if info.get_allowed_count() is not None: # Get the AllowedCount of the Info print("Tag Info AllowedCount: " + str(info.get_allowed_count())) # Check if the request returned an exception elif isinstance(response_object, APIException): # Get the Status print("Status: " + response_object.get_status().get_value()) # Get the Code print("Code: " + response_object.get_code().get_value()) print("Details") # Get the details dict details = response_object.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + response_object.get_message().get_value()) @staticmethod def create_tags(module_api_name): """ This method is used to create new tags and print the response. :param module_api_name: The API Name of the module to create tags. """ """ example module_api_name = "Leads" """ # Get instance of TagsOperations Class tags_operations = TagsOperations() # Get instance of ParameterMap Class param_instance = ParameterMap() # Possible parameters of Create Tags operation param_instance.add(CreateTagsParam.module, module_api_name) # Get instance of BodyWrapper Class that will contain the request body request = BodyWrapper() # List to hold Tag instances tags_list = [] for i in range(1,3): # Get instance of Tag Class tag = ZCRMTag() # Set Name to tag tag.set_name("python-tags" + str(i)) # Add the Tag instance to list tags_list.append(tag) # Set the list to tags in BodyWrapper instance request.set_tags(tags_list) # Call create_tags method that takes BodyWrapper instance and ParameterMap instance as parameter response = tags_operations.create_tags(request, param_instance) if response is not None: # Get the status code from response print('Status Code: ' + str(response.get_status_code())) # Get object from response response_object = response.get_object() if response_object is not None: # Check if expected ActionWrapper instance is received. if isinstance(response_object, ActionWrapper): # Get the list of obtained ActionResponse instances action_response_list = response_object.get_tags() for action_response in action_response_list: # Check if the request is successful if isinstance(action_response, SuccessResponse): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(action_response, APIException): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(response_object, APIException): # Get the Status print("Status: " + response_object.get_status().get_value()) # Get the Code print("Code: " + response_object.get_code().get_value()) print("Details") # Get the details dict details = response_object.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + response_object.get_message().get_value()) @staticmethod def update_tags(module_api_name): """ This method is used to update multiple tags simultaneously and print the response. :param module_api_name: The API Name of the module to update tags """ """ example module_api_name = "Leads" """ # Get instance of TagsOperations Class tags_operations = TagsOperations() # Get instance of ParameterMap Class param_instance = ParameterMap() # Possible parameters of Update Tags operation param_instance.add(UpdateTagsParam.module, module_api_name) # Get instance of BodyWrapper Class that will contain the request body request = BodyWrapper() # List to hold Tag instances tags_list = [] # Get instance of Tag Class tag_1 = ZCRMTag() # Set ID tag_1.set_id(347706112712002) # Set name tag_1.set_name("edited-tagname") # Add the instance to list tags_list.append(tag_1) # Get instance of Tag Class tag_2 = ZCRMTag() # Set ID tag_2.set_id(347706112712001) # Set name tag_2.set_name("edited-tagname") # Add the instance to list tags_list.append(tag_2) # Set the list to tags in BodyWrapper instance request.set_tags(tags_list) # Call update_tags method that takes BodyWrapper instance and ParameterMap instance as parameter response = tags_operations.update_tags(request, param_instance) if response is not None: # Get the status code from response print('Status Code: ' + str(response.get_status_code())) # Get object from response response_object = response.get_object() if response_object is not None: # Check if expected ActionWrapper instance is received. if isinstance(response_object, ActionWrapper): # Get the list of obtained ActionResponse instances action_response_list = response_object.get_tags() for action_response in action_response_list: # Check if the request is successful if isinstance(action_response, SuccessResponse): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(action_response, APIException): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(response_object, APIException): # Get the Status print("Status: " + response_object.get_status().get_value()) # Get the Code print("Code: " + response_object.get_code().get_value()) print("Details") # Get the details dict details = response_object.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + response_object.get_message().get_value()) @staticmethod def update_tag(module_api_name, tag_id): """ This method is used to update single tag and print the response. :param module_api_name: The API Name of the module to update tag. :param tag_id: The ID of the tag to be updated """ """ example module_api_name = "Leads" tag_id = 34096430661047 """ # Get instance of TagsOperations Class tags_operations = TagsOperations() # Get instance of ParameterMap Class param_instance = ParameterMap() # Possible parameters of Update Tag operation param_instance.add(UpdateTagParam.module, module_api_name) # Get instance of BodyWrapper Class that will contain the request body request = BodyWrapper() # List to hold Tag instances tags_list = [] # Get instance of Tag Class tag_1 = ZCRMTag() # Set name tag_1.set_name("py- tagname") # Add the instance to list tags_list.append(tag_1) # Set the list to tags in BodyWrapper instance request.set_tags(tags_list) # Call update_tag method that takes BodyWrapper instance, ParameterMap instance and tag_id as parameter response = tags_operations.update_tag(tag_id, request, param_instance) if response is not None: # Get the status code from response print('Status Code: ' + str(response.get_status_code())) # Get object from response response_object = response.get_object() if response_object is not None: # Check if expected ActionWrapper instance is received. if isinstance(response_object, ActionWrapper): # Get the list of obtained ActionResponse instances action_response_list = response_object.get_tags() for action_response in action_response_list: # Check if the request is successful if isinstance(action_response, SuccessResponse): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(action_response, APIException): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(response_object, APIException): # Get the Status print("Status: " + response_object.get_status().get_value()) # Get the Code print("Code: " + response_object.get_code().get_value()) print("Details") # Get the details dict details = response_object.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + response_object.get_message().get_value()) @staticmethod def delete_tag(tag_id): """ This method is used to delete a tag from the module and print the response. :param tag_id: The ID of the tag to be deleted """ """ example tag_id = 34096430661047 """ # Get instance of TagsOperations Class tags_operations = TagsOperations() # Call delete_tag method that takes tag_id as parameter response = tags_operations.delete_tag(tag_id) if response is not None: # Get the status code from response print('Status Code: ' + str(response.get_status_code())) # Get object from response response_object = response.get_object() if response_object is not None: # Check if expected ActionWrapper instance is received. if isinstance(response_object, ActionWrapper): # Get the list of obtained ActionResponse instances action_response_list = response_object.get_tags() for action_response in action_response_list: # Check if the request is successful if isinstance(action_response, SuccessResponse): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(action_response, APIException): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(response_object, APIException): # Get the Status print("Status: " + response_object.get_status().get_value()) # Get the Code print("Code: " + response_object.get_code().get_value()) print("Details") # Get the details dict details = response_object.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + response_object.get_message().get_value()) @staticmethod def merge_tags(tag_id, conflict_id): """ This method is used to merge tags and put all the records under the two tags into a single tag and print the response. :param tag_id: The ID of the tag :param conflict_id: The ID of the conflict tag. """ """ example tag_id = 34096430661047 conflict_id = '34096430661026' """ # Get instance of TagsOperations Class tags_operations = TagsOperations() # Get instance of MergeWrapper Class that will contain the request body request = MergeWrapper() # List to hold ConflictWrapper instances tag_list = [] # Get instance of ConflictWrapper Class conflict_wrapper = ConflictWrapper() # Set the conflict ID conflict_wrapper.set_conflict_id(conflict_id) # Add the instance to list tag_list.append(conflict_wrapper) # Set the list to tags in BodyWrapper instance request.set_tags(tag_list) # Call merge_tags method that takes MergeWrapper instance and tag_id as parameter response = tags_operations.merge_tags(tag_id, request) if response is not None: # Get the status code from response print('Status Code: ' + str(response.get_status_code())) # Get object from response response_object = response.get_object() if response_object is not None: # Check if expected ActionWrapper instance is received. if isinstance(response_object, ActionWrapper): # Get the list of obtained ActionResponse instances action_response_list = response_object.get_tags() for action_response in action_response_list: # Check if the request is successful if isinstance(action_response, SuccessResponse): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(action_response, APIException): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(response_object, APIException): # Get the Status print("Status: " + response_object.get_status().get_value()) # Get the Code print("Code: " + response_object.get_code().get_value()) print("Details") # Get the details dict details = response_object.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + response_object.get_message().get_value()) @staticmethod def add_tags_to_record(module_api_name, record_id, tag_names): """ This method is used to add tags to a specific record and print the response. :param module_api_name: The API Name of the module to add tag. :param record_id: The ID of the record to add tag :param tag_names: The list of tag names """ """ example module_api_name = "Leads" record_id = 34096432157023 tag_names = ["addtag1,addtag12"] """ # Get instance of TagsOperations Class tags_operations = TagsOperations() # Get instance of ParameterMap Class param_instance = ParameterMap() # Possible parameters for Add Tags to Record operation for tag_name in tag_names: param_instance.add(AddTagsToRecordParam.tag_names, tag_name) param_instance.add(AddTagsToRecordParam.over_write, 'false') # Call add_tags_to_record method that takes ParameterMap instance, module_api_name and record_id as parameter response = tags_operations.add_tags_to_record(record_id, module_api_name, param_instance) if response is not None: # Get the status code from response print('Status Code: ' + str(response.get_status_code())) # Get object from response response_object = response.get_object() if response_object is not None: # Check if expected RecordActionWrapper instance is received. if isinstance(response_object, RecordActionWrapper): # Get the list of obtained ActionResponse instances action_response_list = response_object.get_data() for action_response in action_response_list: # Check if the request is successful if isinstance(action_response, SuccessResponse): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(action_response, APIException): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(response_object, APIException): # Get the Status print("Status: " + response_object.get_status().get_value()) # Get the Code print("Code: " + response_object.get_code().get_value()) print("Details") # Get the details dict details = response_object.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + response_object.get_message().get_value()) @staticmethod def add_tags_to_multiple_records(module_api_name, record_ids, tag_names): """ This method is used to add tags to multiple records simultaneously and print the response. :param module_api_name: The API Name of the module to add tags. :param record_ids: The list of the record IDs to add tags :param tag_names: The list of tag names to be added """ """ example module_api_name = "Leads" record_ids = [34096432157023n, 34096432157045n] tag_names = ["addtag1,addtag12"] """ # Get instance of TagsOperations Class tags_operations = TagsOperations() # Get instance of ParameterMap Class param_instance = ParameterMap() # Possible parameters for Add Tags To Multiple Records operation for record_id in record_ids: param_instance.add(AddTagsToMultipleRecordsParam.ids, record_id) for tag_name in tag_names: param_instance.add(AddTagsToMultipleRecordsParam.tag_names, tag_name) param_instance.add(AddTagsToMultipleRecordsParam.over_write, 'false') # Call add_tags_to_multiple_records method that takes ParameterMap instance and module_api_name as parameter response = tags_operations.add_tags_to_multiple_records(module_api_name, param_instance) if response is not None: # Get the status code from response print('Status Code: ' + str(response.get_status_code())) # Get object from response response_object = response.get_object() if response_object is not None: # Check if expected RecordActionWrapper instance is received. if isinstance(response_object, RecordActionWrapper): # Get the list of obtained ActionResponse instances action_response_list = response_object.get_data() for action_response in action_response_list: # Check if the request is successful if isinstance(action_response, SuccessResponse): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(action_response, APIException): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(response_object, APIException): # Get the Status print("Status: " + response_object.get_status().get_value()) # Get the Code print("Code: " + response_object.get_code().get_value()) print("Details") # Get the details dict details = response_object.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + response_object.get_message().get_value()) @staticmethod def remove_tags_from_record(module_api_name, record_id, tag_names): """ This method is used to delete the tags associated with a specific record and print the response. :param module_api_name: The API Name of the module to remove tags :param record_id: The ID of the record to delete tags :param tag_names: The list of the tag names to be removed. :return: """ """ example module_api_name = "Leads" record_id = 34096432157023 tag_names = ["addtag1,addtag12"] """ # Get instance of TagsOperations Class tags_operations = TagsOperations() # Get instance of ParameterMap Class param_instance = ParameterMap() # Possible parameters for Remove Tags from Record operation for tag_name in tag_names: param_instance.add(RemoveTagsFromRecordParam.tag_names, tag_name) # Call remove_tags_from_record method that takes ParameterMap instance, module_api_name and record_id as parameter response = tags_operations.remove_tags_from_record(record_id, module_api_name, param_instance) if response is not None: # Get the status code from response print('Status Code: ' + str(response.get_status_code())) # Get object from response response_object = response.get_object() if response_object is not None: # Check if expected RecordActionWrapper instance is received. if isinstance(response_object, RecordActionWrapper): # Get the list of obtained ActionResponse instances action_response_list = response_object.get_data() for action_response in action_response_list: # Check if the request is successful if isinstance(action_response, SuccessResponse): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(action_response, APIException): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(response_object, APIException): # Get the Status print("Status: " + response_object.get_status().get_value()) # Get the Code print("Code: " + response_object.get_code().get_value()) print("Details") # Get the details dict details = response_object.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + response_object.get_message().get_value()) @staticmethod def remove_tags_from_multiple_records(module_api_name, record_ids, tag_names): """ This method is used to delete the tags associated with multiple records and print the response. :param module_api_name: The API Name of the module to remove tags. :param record_ids: The list of record IDs to remove tags. :param tag_names: The list of tag names to be removed """ """ example module_api_name = "Leads" record_ids = [34096432157023, 34096432157025, 34096432157020] tag_names = ["addtag1,addtag12"] """ # Get instance of TagsOperations Class tags_operations = TagsOperations() # Get instance of ParameterMap Class param_instance = ParameterMap() # Possible parameters for Remove Tags from Multiple Records operation for record_id in record_ids: param_instance.add(RemoveTagsFromMultipleRecordsParam.ids, record_id) for tag_name in tag_names: param_instance.add(RemoveTagsFromMultipleRecordsParam.tag_names, tag_name) # Call remove_tags_from_multiple_records method that takes ParameterMap instance, module_api_name as parameters response = tags_operations.remove_tags_from_multiple_records(module_api_name, param_instance) if response is not None: # Get the status code from response print('Status Code: ' + str(response.get_status_code())) # Get object from response response_object = response.get_object() if response_object is not None: # Check if expected RecordActionWrapper instance is received. if isinstance(response_object, RecordActionWrapper): # Get the list of obtained ActionResponse instances action_response_list = response_object.get_data() for action_response in action_response_list: # Check if the request is successful if isinstance(action_response, SuccessResponse): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(action_response, APIException): # Get the Status print("Status: " + action_response.get_status().get_value()) # Get the Code print("Code: " + action_response.get_code().get_value()) print("Details") # Get the details dict details = action_response.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + action_response.get_message().get_value()) # Check if the request returned an exception elif isinstance(response_object, APIException): # Get the Status print("Status: " + response_object.get_status().get_value()) # Get the Code print("Code: " + response_object.get_code().get_value()) print("Details") # Get the details dict details = response_object.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + response_object.get_message().get_value()) @staticmethod def get_record_count_for_tag(module_api_name, tag_id): """ This method is used to get the total number of records under a tag and print the response. :param module_api_name: The API Name of the module. :param tag_id: The ID of the tag to get the count """ """ example module_api_name = "Leads" tag_id = 34096430661047 """ # Get instance of TagsOperations Class tags_operations = TagsOperations() # Get instance of ParameterMap Class param_instance = ParameterMap() # Possible parameters for Get Record Count operation param_instance.add(GetRecordCountForTagParam.module, module_api_name) # Call get_record_count_for_tag method that takes param_instance and tag_id as parameter response = tags_operations.get_record_count_for_tag(tag_id, param_instance) if response is not None: # Get the status code from response print('Status Code: ' + str(response.get_status_code())) if response.get_status_code() in [204, 304]: print('No Content' if response.get_status_code() == 204 else 'Not Modified') return # Get object from response response_object = response.get_object() if response_object is not None: # Check if expected CountWrapper instance is received. if isinstance(response_object, CountWrapper): # Get the obtained tag count print("Tag Count: " + response_object.get_count()) # Check if the request returned an exception elif isinstance(response_object, APIException): # Get the Status print("Status: " + response_object.get_status().get_value()) # Get the Code print("Code: " + response_object.get_code().get_value()) print("Details") # Get the details dict details = response_object.get_details() for key, value in details.items(): print(key + ' : ' + str(value)) # Get the Message print("Message: " + response_object.get_message().get_value())
ryankwondev/problem_solving
creative_algorithm_for_ps-advanced/p208-f**king_tofu.cpp
<reponame>ryankwondev/problem_solving<filename>creative_algorithm_for_ps-advanced/p208-f**king_tofu.cpp #include <bits/stdc++.h> #define cu (1<<n) #define rt (1<<(n-1)) #define dn (1) #define M (1<<(n+1)) int p[4][4] = {{100, 70, 40, 0}, {70, 50, 30, 0}, {40, 30, 20, 0}, {0, 0, 0, 0}}; int n, tb[12][12], m[12][12][1 << 13]; int max(int a, int b) { return a > b ? a : b; } int func(int x, int y, int stat) { printf("$ %d %d %d\n", x, y, stat); if (x == n) return 0; if (y == n) return func(x + 1, 0, stat); if (!m[x][y][stat]) { if (!(stat & cu)) { if (y + 1 < n && !(stat & rt)) m[x][y][stat] = max(m[x][y][stat], func(x, y + 2, (stat << 2) % M) + p[tb[x][y]][tb[x][y + 1]]); if (x + 1 < n && !(stat & dn)) m[x][y][stat] = max(m[x][y][stat], func(x, y + 1, ((stat | dn) << 1) % M) + p[tb[x][y]][tb[x + 1][y]]); m[x][y][stat] = max(m[x][y][stat], func(x, y + 1, (stat << 1) % M)); } else m[x][y][stat] = max(m[x][y][stat], func(x, y + 1, (stat << 1) % M)); } return m[x][y][stat]; } int main() { char t; scanf("%d", &n); for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { scanf(" %1c", &t); tb[i][j] = {t == 'F' ? 3 : t - 'A'}; } } printf("%d\n", func(0, 0, 0)); return 0; }
LiBromine/yesterday-headline
app/src/main/java/com/java/libingrui/NewsList.java
package com.java.libingrui; import androidx.annotation.NonNull; import androidx.room.Entity; import androidx.room.PrimaryKey; import androidx.room.TypeConverter; import androidx.room.TypeConverters; import com.google.gson.Gson; import java.util.ArrayList; import java.util.Collections; import java.util.List; import android.util.Log; @Entity @TypeConverters(ListOfNewsConverter.class) public class NewsList { @NonNull @PrimaryKey public String type; public List<News> list; NewsList(@NonNull String type){ this.type = type; list = new ArrayList<News>(); } public void append(List<News> news) { list.addAll(news); } public void insert(News news) { list.add(news); } public void clear() { list.clear(); } } class ListOfNewsConverter { @TypeConverter public String ObjectToString(List<News> list) { Gson gson = new Gson(); return gson.toJson(list); } @TypeConverter public List<News> StringToObject(String json) { Gson gson = new Gson(); List<News> result; News[] tmp = gson.fromJson(json, News[].class); result = new ArrayList<News>(); Collections.addAll(result, tmp); return result; } }
cjhuitt/flogpp
lib/cleaners/if_cleaner.rb
# Removes if or else if constructs from the code base class IfCleaner def self.Clean code code.gsub(IF_OR_ELSE_IF_CONSTRUCT, "") end private IF_OR_ELSE_IF_CONSTRUCT = /\b (else[[:space:]]+)? #optional else prior to if if\b [[:space:]]* /x end
mlutken/playground
common/nestle/cesl/cesl_strings/playground/log_format_playground.c
<filename>common/nestle/cesl/cesl_strings/playground/log_format_playground.c #include <cesl_strings/cesl_format.h> /** @file Example showing how to extend the format system * with custom logging capabilities. * * * */ // ------------------------------------ // HEADER: types (cesl_log_format.h ) --- // ------------------------------------ struct cesl_log_format_t { struct cesl_format_t base; // "Derive" from cesl_format_t struct cesl_log_format_t* (*log)(struct cesl_log_format_t* self); }; typedef struct cesl_log_format_t cesl_log_format_t; // ---------------------------------------- // HEADER: functions (cesl_log_format.h ) --- // ---------------------------------------- extern_C cesl_log_format_t* cesl_log_format_create(cesl_log_format_t* self, size_t buf_max_size, char* format_buffer); extern_C cesl_log_format_t* cesl_log_format_log (cesl_log_format_t* self, uint32_t log_level); // ------------------------------------------------ // IMPLEMENTATION: functions (cesl_log_format.c ) --- // ------------------------------------------------ cesl_log_format_t* cesl_log_format_create(cesl_log_format_t* self, size_t buf_max_size, char* format_buffer) { cesl_format_create((cesl_format_t*)self, buf_max_size, format_buffer); // Assign derived "member" functions self->log = cesl_log_format_log; return self; } cesl_log_format_t* cesl_log_format_log (cesl_log_format_t* self) { cesl_dprintf(self->buf); return self; }
chinajeffery/MPC-BE--1.2.3
include/realmedia/rmacore.h
/**************************************************************************** * * $Id: rmacore.h 737 2012-07-24 20:56:53Z alexins $ * * Copyright (C) 1995-1999 RealNetworks, Inc. All rights reserved. * * http://www.real.com/devzone * * This program contains proprietary * information of Progressive Networks, Inc, and is licensed * subject to restrictions on use and distribution. * * * Client Core interfaces * */ #ifndef _RMACORE_H_ #define _RMACORE_H_ /* * Forward declarations of some interfaces defined or used here-in. */ typedef _INTERFACE IUnknown IUnknown; typedef _INTERFACE IRMAStream IRMAStream; typedef _INTERFACE IRMAStreamSource IRMAStreamSource; typedef _INTERFACE IRMAPlayer IRMAPlayer; typedef _INTERFACE IRMAClientEngine IRMAClientEngine; typedef _INTERFACE IRMAScheduler IRMAScheduler; typedef _INTERFACE IRMAClientAdviseSink IRMAClientAdviseSink; typedef _INTERFACE IRMAValues IRMAValues; typedef _INTERFACE IRMABuffer IRMABuffer; typedef _INTERFACE IRMAPacket IRMAPacket; typedef _INTERFACE IRMARenderer IRMARenderer; typedef _INTERFACE IRMAPlayer2 IRMAPlayer2; typedef _INTERFACE IRMARequest IRMArequest; typedef struct _PNxEvent PNxEvent; #ifdef _MACINTOSH #pragma export on #endif #if defined _UNIX && !(defined _VXWORKS) /* Includes needed for select() stuff */ #include <sys/time.h> #include <sys/types.h> #include <unistd.h> #endif #ifdef _BEOS // fd_set stuff #include <net/socket.h> #endif /* Used in renderer and advise sink interface */ enum BUFFERING_REASON { BUFFERING_START_UP = 0, BUFFERING_SEEK, BUFFERING_CONGESTION, BUFFERING_LIVE_PAUSE }; /**************************************************************************** * * Function: * * CreateEngine() * * Purpose: * * Function implemented by the RMA core to return a pointer to the * client engine. This function would be run by top level clients. */ STDAPI CreateEngine ( IRMAClientEngine** /*OUT*/ ppEngine ); /**************************************************************************** * * Function: * * CloseEngine() * * Purpose: * * Function implemented by the RMA core to close the engine which * was returned in CreateEngine(). */ STDAPI CloseEngine ( IRMAClientEngine* /*IN*/ pEngine ); #ifdef _MACINTOSH #pragma export off #endif /* * Definitions of Function Pointers to CreateEngine() and Close Engine(). * These types are provided as a convenince to authors of top level clients. */ typedef PN_RESULT (PNEXPORT_PTR FPRMCREATEENGINE)(IRMAClientEngine** ppEngine); typedef PN_RESULT (PNEXPORT_PTR FPRMCLOSEENGINE) (IRMAClientEngine* pEngine); typedef PN_RESULT (PNEXPORT_PTR FPRMSETDLLACCESSPATH) (const char*); /**************************************************************************** * * Interface: * * IRMAStream * * Purpose: * * Interface provided by the client engine to the renderers. This * interface allows access to stream related information and properties. * * IID_IRMAStream: * * {00000400-0901-11d1-8B06-00A024406D59} * */ DEFINE_GUID(IID_IRMAStream, 0x00000400, 0x901, 0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59); #undef INTERFACE #define INTERFACE IRMAStream DECLARE_INTERFACE_(IRMAStream, IUnknown) { /* * IUnknown methods */ STDMETHOD(QueryInterface) (THIS_ REFIID riid, void** ppvObj) PURE; STDMETHOD_(ULONG,AddRef) (THIS) PURE; STDMETHOD_(ULONG,Release) (THIS) PURE; /* * IRMAStream methods */ /************************************************************************ * Method: * IRMAStream::GetSource * Purpose: * Get the interface to the source object of which the stream is * a part of. * */ STDMETHOD(GetSource) (THIS_ REF(IRMAStreamSource*) pSource) PURE; /************************************************************************ * Method: * IRMAStream::GetStreamNumber * Purpose: * Get the stream number for this stream relative to the source * object of which the stream is a part of. * */ STDMETHOD_(UINT16,GetStreamNumber) (THIS) PURE; /************************************************************************ * Method: * IRMAStream::GetStreamType * Purpose: * Get the MIME type for this stream. NOTE: The returned string is * assumed to be valid for the life of the IRMAStream from which it * was returned. * */ STDMETHOD_(const char*,GetStreamType) (THIS) PURE; /************************************************************************ * Method: * IRMAStream::GetHeader * Purpose: * Get the header for this stream. * */ STDMETHOD_(IRMAValues*,GetHeader) (THIS) PURE; /************************************************************************ * Method: * IRMAStream::ReportQualityOfService * Purpose: * Call this method to report to the playback context that the * quality of service for this stream has changed. The unQuality * should be on a scale of 0 to 100, where 100 is the best possible * quality for this stream. Although the transport engine can * determine lost packets and report these through the user * interface, only the renderer of this stream can determine the * "real" perceived damage associated with this loss. * * NOTE: The playback context may use this value to indicate loss * in quality to the user interface. When the effects of a lost * packet are eliminated the renderer should call this method with * a unQuality of 100. * */ STDMETHOD(ReportQualityOfService) (THIS_ UINT8 unQuality) PURE; /************************************************************************ * Method: * IRMAStream::ReportRebufferStatus * Purpose: * Call this method to report to the playback context that the * available data has dropped to a critically low level, and that * rebuffering should occur. The renderer should call back into this * interface as it receives additional data packets to indicate the * status of its rebuffering effort. * * NOTE: The values of unNeeded and unAvailable are used to indicate * the general status of the rebuffering effort. For example, if a * renderer has "run dry" and needs 5 data packets to play smoothly * again, it should call ReportRebufferStatus() with 5,0 then as * packet arrive it should call again with 5,1; 5,2... and eventually * 5,5. * */ STDMETHOD(ReportRebufferStatus) (THIS_ UINT8 unNeeded, UINT8 unAvailable) PURE; /************************************************************************ * Method: * IRMAStream::SetGranularity * Purpose: * Sets the desired Granularity for this stream. The actual * granularity will be the lowest granularity of all streams. * Valid to call before stream actually begins. Best to call during * IRMARenderer::OnHeader(). */ STDMETHOD(SetGranularity) (THIS_ ULONG32 ulGranularity) PURE; /************************************************************************ * Method: * IRMAStream::GetRendererCount * Purpose: * Returns the current number of renderer instances supported by * this stream instance. */ STDMETHOD_(UINT16, GetRendererCount)(THIS) PURE; /************************************************************************ * Method: * IRMAStream::GetRenderer * Purpose: * Returns the Nth renderer instance supported by this stream. */ STDMETHOD(GetRenderer) (THIS_ UINT16 nIndex, REF(IUnknown*) pUnknown) PURE; }; /**************************************************************************** * * Interface: * * IRMAStreamSource * * Purpose: * * Interface provided by the client engine to the renderers. This * interface allows access to source related information and properties. * * IID_IRMAStreamSource: * * {00000401-0901-11d1-8B06-00A024406D59} * */ DEFINE_GUID(IID_IRMAStreamSource, 0x00000401, 0x901, 0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59); #undef INTERFACE #define INTERFACE IRMAStreamSource DECLARE_INTERFACE_(IRMAStreamSource, IUnknown) { /* * IUnknown methods */ STDMETHOD(QueryInterface) (THIS_ REFIID riid, void** ppvObj) PURE; STDMETHOD_(ULONG,AddRef) (THIS) PURE; STDMETHOD_(ULONG,Release) (THIS) PURE; /* * IRMAStreamSource methods */ /************************************************************************ * Method: * IRMAStreamSource::IsLive * Purpose: * Ask the source whether it is live * */ STDMETHOD_ (BOOL,IsLive) (THIS) PURE; /************************************************************************ * Method: * IRMAStreamSource::GetPlayer * Purpose: * Get the interface to the player object of which the source is * a part of. * */ STDMETHOD(GetPlayer) (THIS_ REF(IRMAPlayer*) pPlayer) PURE; /************************************************************************ * Method: * IRMAStreamSource::GetURL * Purpose: * Get the URL for this source. NOTE: The returned string is * assumed to be valid for the life of the IRMAStreamSource from which * it was returned. * */ STDMETHOD_(const char*,GetURL) (THIS) PURE; /************************************************************************ * Method: * IRMAStreamSource::GetStreamCount * Purpose: * Returns the current number of stream instances supported by * this source instance. */ STDMETHOD_(UINT16, GetStreamCount)(THIS) PURE; /************************************************************************ * Method: * IRMAStreamSource::GetStream * Purpose: * Returns the Nth stream instance supported by this source. */ STDMETHOD(GetStream) (THIS_ UINT16 nIndex, REF(IUnknown*) pUnknown) PURE; }; /**************************************************************************** * * Interface: * * IRMAPlayer * * Purpose: * * Interface provided by the client engine to the renderers. This * interface allows access to player related information, properties, * and operations. * * IID_IRMAPlayer: * * {00000402-0901-11d1-8B06-00A024406D59} * */ DEFINE_GUID(IID_IRMAPlayer, 0x00000402, 0x901, 0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59); #undef INTERFACE #define INTERFACE IRMAPlayer DECLARE_INTERFACE_(IRMAPlayer, IUnknown) { /* * IUnknown methods */ STDMETHOD(QueryInterface) (THIS_ REFIID riid, void** ppvObj) PURE; STDMETHOD_(ULONG,AddRef) (THIS) PURE; STDMETHOD_(ULONG,Release) (THIS) PURE; /* * IRMAPlayer methods */ /************************************************************************ * Method: * IRMAPlayer::GetClientEngine * Purpose: * Get the interface to the client engine object of which the * player is a part of. * */ STDMETHOD(GetClientEngine) (THIS_ REF(IRMAClientEngine*) pEngine) PURE; /************************************************************************ * Method: * IRMAPlayer::IsDone * Purpose: * Ask the player if it is done with the current presentation * */ STDMETHOD_(BOOL,IsDone) (THIS) PURE; /************************************************************************ * Method: * IRMAPlayer::IsLive * Purpose: * Ask the player whether it contains the live source * */ STDMETHOD_(BOOL,IsLive) (THIS) PURE; /************************************************************************ * Method: * IRMAPlayer::GetCurrentPlayTime * Purpose: * Get the current time on the Player timeline * */ STDMETHOD_(ULONG32,GetCurrentPlayTime) (THIS) PURE; /************************************************************************ * Method: * IRMAPlayer::OpenURL * Purpose: * Tell the player to begin playback of all its sources. * */ STDMETHOD(OpenURL) (THIS_ const char* pURL) PURE; /************************************************************************ * Method: * IRMAPlayer::Begin * Purpose: * Tell the player to begin playback of all its sources. * */ STDMETHOD(Begin) (THIS) PURE; /************************************************************************ * Method: * IRMAPlayer::Stop * Purpose: * Tell the player to stop playback of all its sources. * */ STDMETHOD(Stop) (THIS) PURE; /************************************************************************ * Method: * IRMAPlayer::Pause * Purpose: * Tell the player to pause playback of all its sources. * */ STDMETHOD(Pause) (THIS) PURE; /************************************************************************ * Method: * IRMAPlayer::Seek * Purpose: * Tell the player to seek in the playback timeline of all its * sources. * */ STDMETHOD(Seek) (THIS_ ULONG32 ulTime) PURE; /************************************************************************ * Method: * IRMAPlayer::GetSourceCount * Purpose: * Returns the current number of source instances supported by * this player instance. */ STDMETHOD_(UINT16, GetSourceCount)(THIS) PURE; /************************************************************************ * Method: * IRMAPlayer::GetSource * Purpose: * Returns the Nth source instance supported by this player. */ STDMETHOD(GetSource) (THIS_ UINT16 nIndex, REF(IUnknown*) pUnknown) PURE; /************************************************************************ * Method: * IRMAPlayer::SetClientContext * Purpose: * Called by the client to install itself as the provider of client * services to the core. This is traditionally called by the top * level client application. */ STDMETHOD(SetClientContext) (THIS_ IUnknown* pUnknown) PURE; /************************************************************************ * Method: * IRMAPlayer::GetClientContext * Purpose: * Called to get the client context for this player. This is * set by the top level client application. */ STDMETHOD(GetClientContext) (THIS_ REF(IUnknown*) pUnknown) PURE; /************************************************************************ * Method: * IRMAPlayer::AddAdviseSink * Purpose: * Call this method to add a client advise sink. * */ STDMETHOD(AddAdviseSink) (THIS_ IRMAClientAdviseSink* pAdviseSink) PURE; /************************************************************************ * Method: * IRMAPlayer::RemoveAdviseSink * Purpose: * Call this method to remove a client advise sink. */ STDMETHOD(RemoveAdviseSink) (THIS_ IRMAClientAdviseSink* pAdviseSink) PURE; }; /**************************************************************************** * * Interface: * * IRMAClientEngine * * Purpose: * * Interface to the basic client engine. Provided to the renderers and * other client side components. * * IID_IRMAClientEngine: * * {00000403-0901-11d1-8B06-00A024406D59} */ DEFINE_GUID(IID_IRMAClientEngine, 0x00000403, 0x901, 0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59); #undef INTERFACE #define INTERFACE IRMAClientEngine DECLARE_INTERFACE_(IRMAClientEngine, IUnknown) { /* * IUnknown methods */ STDMETHOD(QueryInterface) (THIS_ REFIID riid, void** ppvObj) PURE; STDMETHOD_(ULONG,AddRef) (THIS) PURE; STDMETHOD_(ULONG,Release) (THIS) PURE; /* * IRMAClientEngine methods */ /************************************************************************ * Method: * IRMAClientEngine::CreatePlayer * Purpose: * Creates a new IRMAPlayer instance. * */ STDMETHOD(CreatePlayer) (THIS_ REF(IRMAPlayer*) pPlayer) PURE; /************************************************************************ * Method: * IRMAClientEngine::ClosePlayer * Purpose: * Called by the client when it is done using the player... * */ STDMETHOD(ClosePlayer) (THIS_ IRMAPlayer* pPlayer) PURE; /************************************************************************ * Method: * IRMAClientEngine::GetPlayerCount * Purpose: * Returns the current number of IRMAPlayer instances supported by * this client engine instance. */ STDMETHOD_(UINT16, GetPlayerCount)(THIS) PURE; /************************************************************************ * Method: * IRMAClientEngine::GetPlayer * Purpose: * Returns the Nth IRMAPlayer instances supported by this client * engine instance. */ STDMETHOD(GetPlayer) (THIS_ UINT16 nPlayerNumber, REF(IUnknown*) pUnknown) PURE; /************************************************************************ * Method: * IRMAClientEngine::EventOccurred * Purpose: * Clients call this to pass OS events to all players. PNxEvent * defines a cross-platform event. */ STDMETHOD(EventOccurred) (THIS_ PNxEvent* /*IN*/ pEvent) PURE; }; #if defined _UNIX && !defined (_VXWORKS) DEFINE_GUID(IID_IRMAClientEngineSelector, 0x00000404, 0x901, 0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59); #undef INTERFACE #define INTERFACE IRMAClientEngineSelector DECLARE_INTERFACE_(IRMAClientEngineSelector, IUnknown) { /* * IUnknown methods */ STDMETHOD(QueryInterface) (THIS_ REFIID riid, void** ppvObj) PURE; STDMETHOD_(ULONG,AddRef) (THIS) PURE; STDMETHOD_(ULONG,Release) (THIS) PURE; /************************************************************************ * Method: * IRMAClientEngine::Select * Purpose: * Top level clients under Unix should use this instead of * select() to select for events. */ STDMETHOD_(INT32, Select) (THIS_ INT32 n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval* timeout) PURE; }; #endif /* _UNIX */ /**************************************************************************** * * Interface: * * IRMAClientEngineSetup * * Purpose: * * Interface to the basic client engine. Provided to the renderers and * other client side components. * * IID_IRMAClientEngineSetup: * * {00000405-0901-11d1-8B06-00A024406D59} */ DEFINE_GUID(IID_IRMAClientEngineSetup, 0x00000405, 0x901, 0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59); #undef INTERFACE #define INTERFACE IRMAClientEngineSetup DECLARE_INTERFACE_(IRMAClientEngineSetup, IUnknown) { /* * IUnknown methods */ STDMETHOD(QueryInterface) (THIS_ REFIID riid, void** ppvObj) PURE; STDMETHOD_(ULONG,AddRef) (THIS) PURE; STDMETHOD_(ULONG,Release) (THIS) PURE; /* * IRMAClientEngineSetup methods */ /************************************************************************ * Method: * IRMAClientEngineSetup::Setup * Purpose: * Top level clients use this interface to over-ride certain basic * interfaces implemented by the core. Current over-ridable * interfaces are: IRMAPreferences, IRMAHyperNavigate */ STDMETHOD(Setup) (THIS_ IUnknown* pContext) PURE; }; /**************************************************************************** * * Interface: * * IRMAInfoLogger * * Purpose: * * Interface to send any logging information back to the server. * This information will appear in the server's access log. * * IID_IRMAInfoLogger: * * {00000409-0901-11d1-8B06-00A024406D59} */ DEFINE_GUID(IID_IRMAInfoLogger, 0x00000409, 0x901, 0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59); #undef INTERFACE #define INTERFACE IRMAInfoLogger DECLARE_INTERFACE_(IRMAInfoLogger, IUnknown) { /* * IUnknown methods */ STDMETHOD(QueryInterface) (THIS_ REFIID riid, void** ppvObj) PURE; STDMETHOD_(ULONG,AddRef) (THIS) PURE; STDMETHOD_(ULONG,Release) (THIS) PURE; /* * IRMAInfoLogger methods */ /************************************************************************ * Method: * IRMAInfoLogger::LogInformation * Purpose: * Logs any user defined information in form of action and * associated data. */ STDMETHOD(LogInformation) (THIS_ const char* /*IN*/ pAction, const char* /*IN*/ pData) PURE; }; /**************************************************************************** * * Interface: * * IRMAPlayer2 * * Purpose: * * Extra methods in addition to IRMAPlayer * * IID_IRMAPlayer2: * * {00000411-0901-11d1-8B06-00A024406D59} * */ DEFINE_GUID(IID_IRMAPlayer2, 0x00000411, 0x901, 0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59); #undef INTERFACE #define INTERFACE IRMAPlayer2 DECLARE_INTERFACE_(IRMAPlayer2, IUnknown) { /* * IUnknown methods */ STDMETHOD(QueryInterface) (THIS_ REFIID riid, void** ppvObj) PURE; STDMETHOD_(ULONG,AddRef) (THIS) PURE; STDMETHOD_(ULONG,Release) (THIS) PURE; /************************************************************************ * Method: * IID_IRMAPlayer2::SetMinimumPreroll * Purpose: * Call this method to set the minimum preroll of this clip */ STDMETHOD(SetMinimumPreroll) (THIS_ UINT32 ulMinPreroll) PURE; /************************************************************************ * Method: * IID_IRMAPlayer2::GetMinimumPreroll * Purpose: * Call this method to get the minimum preroll of this clip */ STDMETHOD(GetMinimumPreroll) (THIS_ REF(UINT32) ulMinPreroll) PURE; /************************************************************************ * Method: * IID_IRMAPlayer2::OpenRequest * Purpose: * Call this method to open the IRMARequest */ STDMETHOD(OpenRequest) (THIS_ IRMARequest* pRequest) PURE; /************************************************************************ * Method: * IID_IRMAPlayer2::GetRequest * Purpose: * Call this method to get the IRMARequest */ STDMETHOD(GetRequest) (THIS_ REF(IRMARequest*) pRequest) PURE; }; #endif /* _RMACORE_H_ */
moqimoqidea/scala-demo
src/main/scala/com/moqi/scala/ch22/A01TheListClassInPrinciple.scala
<reponame>moqimoqidea/scala-demo<filename>src/main/scala/com/moqi/scala/ch22/A01TheListClassInPrinciple.scala<gh_stars>1-10 package com.moqi.scala.ch22 /** * List 类的原理 * Nil 继承自 List[Nothing],所以 Nil 跟 List 类型的每个实例都兼容 * :: 和 ::: 类都是向右绑定的 * * @author moqi On 11/20/20 14:38 */ object A01TheListClassInPrinciple { def main(args: Array[String]): Unit = { // List 是协变的 val xs = List(1, 2, 3) val ys: List[Any] = xs println(s"ys = ${ys}") } }
viewserver/viewserver
viewserver-messages/viewserver-messages-protobuf/src/main/java/io/viewserver/messages/protobuf/AuthenticateCommand.java
<filename>viewserver-messages/viewserver-messages-protobuf/src/main/java/io/viewserver/messages/protobuf/AuthenticateCommand.java<gh_stars>0 /* * Copyright 2016 Claymore Minds Limited and Niche Solutions (UK) Limited * * 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 io.viewserver.messages.protobuf; import io.viewserver.messages.PoolableMessage; import io.viewserver.messages.command.IAuthenticateCommand; import io.viewserver.messages.protobuf.dto.AuthenticateCommandMessage; import io.viewserver.messages.protobuf.dto.CommandMessage; import java.util.List; /** * Created by nick on 02/12/15. */ public class AuthenticateCommand extends PoolableMessage<AuthenticateCommand> implements IAuthenticateCommand<AuthenticateCommand>, ICommandExtension<AuthenticateCommand> { private AuthenticateCommandMessage.AuthenticateCommandDtoOrBuilder authenticateCommandDto; private ListWrapper<String> tokensList; AuthenticateCommand() { super(IAuthenticateCommand.class); } @Override public void setDto(Object dto) { this.authenticateCommandDto = (AuthenticateCommandMessage.AuthenticateCommandDto) dto; } @Override public void build(CommandMessage.CommandDto.Builder commandDtoBuilder) { commandDtoBuilder.setExtension(AuthenticateCommandMessage.authenticateCommand, getAuthenticateCommandDtoBuilder().buildPartial()); } @Override public String getType() { return authenticateCommandDto.getType(); } @Override public IAuthenticateCommand setType(String type) { getAuthenticateCommandDtoBuilder().setType(type); return this; } @Override public List<String> getTokens() { if (tokensList == null) { tokensList = new ListWrapper<>(x -> { final AuthenticateCommandMessage.AuthenticateCommandDto.Builder builder = getAuthenticateCommandDtoBuilder(); tokensList.setInnerList(builder.getTokenList()); builder.addToken(x); }); } tokensList.setInnerList(authenticateCommandDto != null ? authenticateCommandDto.getTokenList() : null); return tokensList; } @Override protected void doRelease() { if (tokensList != null) { tokensList.setInnerList(null); } authenticateCommandDto = null; } private AuthenticateCommandMessage.AuthenticateCommandDto.Builder getAuthenticateCommandDtoBuilder() { if (authenticateCommandDto == null) { authenticateCommandDto = AuthenticateCommandMessage.AuthenticateCommandDto.newBuilder(); } else if (authenticateCommandDto instanceof AuthenticateCommandMessage.AuthenticateCommandDto) { authenticateCommandDto = ((AuthenticateCommandMessage.AuthenticateCommandDto) authenticateCommandDto).toBuilder(); } return (AuthenticateCommandMessage.AuthenticateCommandDto.Builder) authenticateCommandDto; } }
microsofia/microsofia-framework
distributed-object/src/main/java/microsofia/framework/distributed/master/impl/JobQueue.java
<filename>distributed-object/src/main/java/microsofia/framework/distributed/master/impl/JobQueue.java package microsofia.framework.distributed.master.impl; import java.util.Hashtable; import java.util.List; import java.util.Map; import java.util.TreeSet; import javax.inject.Inject; import javax.persistence.EntityManager; import com.google.inject.Singleton; import microsofia.container.module.endpoint.Export; import microsofia.container.module.endpoint.Server; import microsofia.framework.distributed.master.IJobQueue; import microsofia.framework.distributed.master.Job; import microsofia.framework.distributed.master.JobItem; import microsofia.framework.distributed.master.JobResult; import microsofia.framework.distributed.master.VirtualObjectInfo; import microsofia.framework.distributed.master.SlaveInfo; import microsofia.framework.distributed.master.dao.DataAccess; @Singleton @Server("fwk") @Export public class JobQueue implements IJobQueue{ @Inject protected JobComparator jobComparator; @Inject protected DataAccess dataAccess; private Map<Long,Job> jobs; public JobQueue(){ jobs=new Hashtable<>(); } //TODO:later if slave didnt call takeJob since x time, then init virtualobjects, so that other slaves take them @Override public JobItem takeJob(long slaveId) throws Exception { final JobItem jobItem; synchronized(this){ jobComparator.setTime(); TreeSet<Job> treeSet=new TreeSet<>(jobComparator); jobs.values().forEach(it->{ if (it.getVirtualObjectInfo().getSlaveInfo()==null || it.getVirtualObjectInfo().getSlaveInfo().getId()==slaveId){ treeSet.add(it); } }); if (treeSet.size()>0){ Job job=treeSet.first(); jobs.remove(job.getId()); jobItem=new JobItem(); jobItem.setJob(job); }else{ jobItem=null; } } if (jobItem!=null){ Job job=dataAccess.write(em->{ Job tmpJob=em.find(Job.class, new Long(jobItem.getJob().getId())); VirtualObjectInfo virtualObjectInfo=tmpJob.getVirtualObjectInfo(); if (virtualObjectInfo.isTypeStateFull() && virtualObjectInfo.getSlaveInfo()==null){ jobItem.setSetup(virtualObjectInfo); } virtualObjectInfo.setSlaveInfo(em.find(SlaveInfo.class, new Long(slaveId))); tmpJob.setStatusRunning(); JobResult jobResult=new JobResult(tmpJob); tmpJob.setJobResult(jobResult); em.persist(tmpJob); return tmpJob; }); jobItem.setJob(job); } return jobItem; } private Job jobFinished(EntityManager em, Long jobId){ Job job=em.find(Job.class, new Long(jobId)); job.setStatusFinished(); JobResult jobResult=job.getJobResult(); jobResult.setEndTime(); jobResult.setStatusFinished(); if (job.getVirtualObjectInfo().isTypeStateLess()){ job.getVirtualObjectInfo().setEndTime(); job.getVirtualObjectInfo().setStatusFinished(); } return job; } @Override public void jobFailed(long jobId,byte[] error) throws Exception{ dataAccess.write(em->{ Job job=jobFinished(em, jobId); job.getJobResult().setError(error); em.merge(job); return null; }); } @Override public void jobSucceeded(long jobId,byte[] result) throws Exception{ dataAccess.write(em->{ Job job=jobFinished(em, jobId); job.getJobResult().setResult(result); em.merge(job); return null; }); } public synchronized void jobAdded(Job job) { jobs.put(job.getId(),job); } public synchronized void jobStopped(long id){ jobs.remove(id); } public synchronized void jobStopped(List<Long> ids){ ids.forEach(jobs::remove); } }
HeRaNO/OI-ICPC-Codes
Codeforces/Gym101350D.cpp
<reponame>HeRaNO/OI-ICPC-Codes<gh_stars>10-100 #include <bits/stdc++.h> #define MAXN 100010 using namespace std; int T,n,a[MAXN]; int main() { scanf("%d",&T); while (T--) { scanf("%d",&n);bool f=true; for (int i=1;i<=n;i++) scanf("%d",&a[i]); sort(a+1,a+n+1); for (int i=2;i<=n&&f;i++) if ((a[i]-a[i-1])&1) f=false; puts(f?"yes":"no"); } return 0; }
atul-vyshnav/2021_IBM_Code_Challenge_StockIT
src/StockIT-v2-release_source_from_JADX/sources/com/google/android/gms/internal/ads/zzcbl.java
package com.google.android.gms.internal.ads; import android.content.Context; /* compiled from: com.google.android.gms:play-services-ads@@19.4.0 */ public final class zzcbl implements zzeoy<zzcab<zzbvs>> { private final zzeph<Context> zzesu; private final zzeph<zzbbx> zzfmh; private final zzeph<zzdnv> zzfou; private final zzeph<zzdok> zzfqr; private final zzcbf zzfwx; private zzcbl(zzcbf zzcbf, zzeph<Context> zzeph, zzeph<zzbbx> zzeph2, zzeph<zzdnv> zzeph3, zzeph<zzdok> zzeph4) { this.zzfwx = zzcbf; this.zzesu = zzeph; this.zzfmh = zzeph2; this.zzfou = zzeph3; this.zzfqr = zzeph4; } public static zzcbl zza(zzcbf zzcbf, zzeph<Context> zzeph, zzeph<zzbbx> zzeph2, zzeph<zzdnv> zzeph3, zzeph<zzdok> zzeph4) { return new zzcbl(zzcbf, zzeph, zzeph2, zzeph3, zzeph4); } public final /* synthetic */ Object get() { return (zzcab) zzepe.zza(new zzcab(new zzcbi(this.zzesu.get(), this.zzfmh.get(), this.zzfou.get(), this.zzfqr.get()), zzbbz.zzeeu), "Cannot return null from a non-@Nullable @Provides method"); } }
AnyBody-Research-Group/AnyPyTools
setup.py
# -*- coding: utf-8 -*- """ Created on Sat Sep 24 12:29:53 2011. @author: melund """ import os import io import re import sys from setuptools import setup, find_packages long_description = ( "AnyPyTools is a toolkit for working with the AnyBody Modeling System " "from Python. Its main purpose is to launch AnyBody simulations and collect " "results. It has a scheduler to launch multiple instances of AMS utilising " "computers with multiple cores. AnyPyTools makes it possible to run parameter " "and Monte Carlo studies more efficiently than from within the AnyBody Modeling " "System.\n\n" "Please visit https://anybody-research-group.github.io/anypytools-docs for more information." ) def read(*names, **kwargs): """Read content of file.""" with io.open( os.path.join(os.path.dirname(__file__), *names), encoding=kwargs.get("encoding", "utf8"), ) as fp: return fp.read() def find_version(*file_paths): """Parse the __version__ string from a file.""" version_file = read(*file_paths) version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M) if version_match: return version_match.group(1) raise RuntimeError("Unable to find version string.") require_list = ["numpy", "scipy", "tqdm"] setup( name="AnyPyTools", version=find_version("anypytools", "__init__.py"), install_requires=require_list, python_requires=">=3.8", packages=find_packages(exclude=["docs", "tests*"]), package_data={"anypytools": ["test_models/Demo.Arm2D.any"]}, # the following makes a plugin available to pytest entry_points={"pytest11": ["anypytools = anypytools.pytest_plugin"]}, author="<NAME>", author_email="<EMAIL>", description="Python tools and utilities for working with the AnyBody Modeling System", long_description=long_description, license="MIT", keywords=("AnyBody Modeling System", "AnyScript"), url="https://github.com/AnyBody-Research-Group/AnyPyTools", classifiers=[ "Development Status :: 5 - Production/Stable", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Framework :: Pytest", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Scientific/Engineering", ], )
Rgcsh/distributed_redis_server
app/__init__.py
<reponame>Rgcsh/distributed_redis_server # -*- coding: utf-8 -*- """ All rights reserved create time '2019/9/16 10:21' Module usage: """ import importlib import os from flask import Flask from flask_cors import CORS import app.core as core from app import controllers from app.middleware import MIDDLEWARE from app.middleware.base import BaseMiddleWare from app.utils import json_fail, JsonEncoder from config import Config def configure_blueprints(flask_app): """ Register BluePrints for flask :param flask_app: Flask的实例 :return: """ controller_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'controllers') for module_name in controllers.__all__: module_path = os.path.join(controller_dir, module_name) assert os.path.isdir(module_path) and not module_name.startswith('__'), \ f'{module_name} 不是有效的文件夹, 无法导入模块' # 预导入所有接口文件 for file_name in os.listdir(module_path): if file_name.endswith('.py') and not file_name.startswith('__'): module = importlib.import_module( f'app.controllers.{module_name}.{file_name[:-3]}') # 导入模块并注册蓝图 module = importlib.import_module(f'app.controllers.{module_name}.base') flask_app.register_blueprint( getattr(module, module_name), url_prefix=('/' + module_name)) def configure_middleware(flask_app): """ Register middleware for flask :param flask_app: flask app """ for middle in MIDDLEWARE: flask_app.before_request(middle.before_request) flask_app.after_request(middle.after_request) def _config_app(app): """ 将配置文件读取Flask对象 """ conf = Config(app) app.config.from_object(conf) conf.init_extensions(app) def create_app(): """ Create an app with config file :return: Flask App """ # init a flask app app = Flask(__name__) # 从yaml文件中加载配置,此加载方式有效加载 # 初始化APP _config_app(app) # 允许跨域请求 if app.config.get('CORS_ENABLE'): CORS(app) # 配置蓝图 configure_blueprints(app) # 配置中间件 configure_middleware(app) return app
mrptk/InventoryApp
app/src/main/java/pl/app/projektio/assets/InventoryList.java
package pl.app.projektio.assets; import java.util.ArrayList; public class InventoryList { public ArrayList<Inventory> allInventories; public ArrayList<Inventory> openInventories; public ArrayList<Inventory> finishedInventories; public Inventory activeInventory; public InventoryList(ArrayList<Inventory> allInventories) { this.allInventories = allInventories; openInventories = new ArrayList<>(); finishedInventories = new ArrayList<>(); for (Inventory i: this.allInventories) { if (i.getStatus() == 0) openInventories.add(i); else finishedInventories.add(i); } } public int getNextId(){ int nextId = 0; for (Inventory i : allInventories) { if (i.getId() > nextId) nextId = i.getId(); } return nextId + 1; } }
wsaada19/CommunityQuests
src/main/java/me/wonka01/ServerQuests/events/questevents/ProjectileKillEvent.java
<filename>src/main/java/me/wonka01/ServerQuests/events/questevents/ProjectileKillEvent.java package me.wonka01.ServerQuests.events.questevents; import me.wonka01.ServerQuests.enums.ObjectiveType; import me.wonka01.ServerQuests.questcomponents.ActiveQuests; import me.wonka01.ServerQuests.questcomponents.QuestController; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import org.bukkit.entity.Projectile; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.entity.EntityDamageByEntityEvent; import org.bukkit.event.entity.EntityDeathEvent; import java.util.List; public class ProjectileKillEvent extends QuestListener implements Listener { private final ObjectiveType TYPE = ObjectiveType.PROJ_KILL; public ProjectileKillEvent(ActiveQuests activeQuests) { super(activeQuests); } @EventHandler public void onProjectileKill(EntityDeathEvent event) { if (!(event.getEntity().getLastDamageCause() instanceof EntityDamageByEntityEvent)) { return; } EntityDamageByEntityEvent damageEvent = (EntityDamageByEntityEvent) event.getEntity().getLastDamageCause(); Entity damager = damageEvent.getDamager(); if (damager instanceof Projectile) { Projectile projectile = (Projectile) damager; if (projectile.getShooter() != null && projectile.getShooter() instanceof Player) { Player player = (Player) projectile.getShooter(); List<QuestController> controllers = tryGetControllersOfEventType(TYPE); for (QuestController controller : controllers) { updateQuest(controller, player, 1); } } } } }
ntoussaint/CTK
Libs/Visualization/VTK/Widgets/ctkVTKAbstractMatrixWidget_p.h
/*========================================================================= Library: CTK Copyright (c) Kitware Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.txt 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 __ctkVTKAbstractMatrixWidget_p_h #define __ctkVTKAbstractMatrixWidget_p_h // Qt includes #include <QObject> // CTK includes #include <ctkPimpl.h> #include "ctkVTKAbstractMatrixWidget.h" // VTK includes #include <vtkSmartPointer.h> class vtkMatrix4x4; /// \ingroup Visualization_VTK_Widgets class ctkVTKAbstractMatrixWidgetPrivate: public QObject { Q_OBJECT QVTK_OBJECT Q_DECLARE_PUBLIC(ctkVTKAbstractMatrixWidget); protected: ctkVTKAbstractMatrixWidget* const q_ptr; public: ctkVTKAbstractMatrixWidgetPrivate(ctkVTKAbstractMatrixWidget& object); void init(); void setMatrix(vtkMatrix4x4* matrix); vtkMatrix4x4* matrix()const; public Q_SLOTS: /// /// Triggered upon VTK transform modified event void updateMatrix(); void updateVTKMatrix(); protected: vtkSmartPointer<vtkMatrix4x4> Matrix; }; #endif
vinders/pandora_toolbox
thread/include/thread/ordered_lock.h
/******************************************************************************* MIT License Copyright (c) 2021 <NAME> 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 SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO 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. *******************************************************************************/ #pragma once #include <mutex> #include <deque> #include <condition_variable> namespace pandora { namespace thread { /// @class OrderedLock /// @brief Synchronization primitive to protect data from being simultaneously accessed, with guaranteed FIFO order. /// @description Synchronization primitive to protect data from being simultaneously accessed by multiple threads. /// Acts like a standard mutex, except that the order of lock is guaranteed (FIFO). class OrderedLock final { using InternalTicket = std::condition_variable*; public: /// @brief Create an new unlocked instance OrderedLock() = default; OrderedLock(const OrderedLock&) = delete; OrderedLock(OrderedLock&&) = delete; OrderedLock& operator=(const OrderedLock&) = delete; OrderedLock& operator=(OrderedLock&&) = delete; // -- lock management -- /// @brief Wait until object unlocked, then lock it inline void lock() noexcept { std::unique_lock<std::mutex> lock(this->_lock); if (!this->_isLocked) { this->_isLocked = true; } else { std::condition_variable condition; this->_orderedTickets.emplace_back(&condition); while (this->_notifiedTicket != &condition) // if awaken by other system signal, ignore it condition.wait(lock); this->_notifiedTicket = InternalTicket{ nullptr }; } } /// @brief Only lock the object if there's no need to wait (already unlocked) /// @returns True on lock success, false if already locked by another owner inline bool tryLock() noexcept { std::lock_guard<std::mutex> lock(this->_lock); if (!this->_isLocked) { this->_isLocked = true; return true; } return false; } inline bool try_lock() noexcept { return tryLock(); } // STL-compliant version /// @brief Unlock the object /// @warning Should only be called after having called lock() (by the thread that currently owns the object). inline void unlock() noexcept { std::lock_guard<std::mutex> lock(this->_lock); if (this->_orderedTickets.empty()) { this->_isLocked = false; } else { this->_notifiedTicket = this->_orderedTickets.front(); this->_orderedTickets.pop_front(); this->_notifiedTicket->notify_one(); } } // -- lock with timeout -- /// @brief Only wait for a specific period for the object to be unlocked. /// @returns True on lock success, false if timeout template <typename _RepetitionType, typename _PeriodType> inline bool tryLock(const std::chrono::duration<_RepetitionType, _PeriodType>& retryDuration) noexcept { return tryLockUntil(std::chrono::time_point<std::chrono::steady_clock>(std::chrono::steady_clock::now() + retryDuration)); } template <typename _RepetitionType, typename _PeriodType> inline bool try_lock_for(const std::chrono::duration<_RepetitionType, _PeriodType>& retryDuration) noexcept { return tryLock(retryDuration); } // STL-compliant version /// @brief Only wait until a specific time-point for the object to be unlocked. /// @returns True on lock success, false if timeout template <typename _ClockType, typename _DurationType> bool tryLockUntil(const std::chrono::time_point<_ClockType, _DurationType>& timeoutTimePoint) noexcept { std::unique_lock<std::mutex> lock(this->_lock); if (!this->_isLocked) { this->_isLocked = true; } else { std::condition_variable condition; this->_orderedTickets.emplace_back(&condition); while (this->_notifiedTicket != &condition) { // if awaken by other system signal, ignore it if (condition.wait_until(lock, timeoutTimePoint) == std::cv_status::timeout && this->_notifiedTicket != &condition) { _cancelPendingTicket(&condition); return false; } } this->_notifiedTicket = InternalTicket{ nullptr }; } return true; } template <typename _ClockType, typename _DurationType> inline bool try_lock_until(const std::chrono::time_point<_ClockType, _DurationType>& timeoutTimePoint) noexcept { return tryLockUntil(timeoutTimePoint); } // STL-compliant version // -- lock status -- /// @brief Check whether the OrderedLock is locked or not inline bool isLocked() const noexcept { std::unique_lock<std::mutex> lock(this->_lock); return this->_isLocked; } /// @brief Get number of threads currently waiting for the lock inline size_t queueSize() const noexcept { std::unique_lock<std::mutex> lock(this->_lock); return this->_orderedTickets.size(); } private: // -- pending ticket management -- void _cancelPendingTicket(InternalTicket ticket) noexcept { for (auto it = this->_orderedTickets.begin(); it != this->_orderedTickets.end(); ++it) { if (*it == ticket) { this->_orderedTickets.erase(it); break; } } } private: mutable std::mutex _lock; std::deque<InternalTicket> _orderedTickets; InternalTicket _notifiedTicket{ nullptr }; bool _isLocked = false; }; } }
SCSZCC/PythonWithHardware
CyberPi/Python with CyberPi 097(童芯派 psutil 电脑性能数据可视化监控外屏 ).py
<gh_stars>1-10 """" 名称:097 童芯派 pustil 电脑性能数据可视化监控外屏 硬件: 童芯派 功能介绍: 利用Pustil模块获取电脑的内存和CPU使用状态,并通过童芯派的图表功能进行实时呈现。 成为电脑性能监控扩展屏幕。当超过 使用到的API及功能解读: 1.ram = psutil.virtual_memory() 获取电脑内存数据 2.rampercent = ram.percent 获取电脑内存使用率 3.psutil.cpu_percent() 获取电脑CPU使用率 4.cyberpi.barchart.add(rampercent) 绘制柱状图(注意:不同数据的需要通过设置画刷颜色的方式进行区隔 ) 难度:⭐⭐⭐⭐ 支持的模式:在线模式 无 """ # ---------程序分割线----------------程序分割线----------------程序分割线---------- import psutil import time import cyberpi cyberpi.chart.clear() while True: ram = psutil.virtual_memory() rampercent = ram.percent cpu = psutil.cpu_percent() cyberpi.chart.set_name('RAM'+str(rampercent)+'% CPU'+str(cpu)+'%') cyberpi.display.set_brush(0, 0, 255) cyberpi.barchart.add(rampercent) cyberpi.display.set_brush(255, 0, 0) cyberpi.barchart.add(cpu) if cpu >= 80 or rampercent >= 95: cyberpi.led.on(255,0,0) cyberpi.audio.play('prompt-tone') else: cyberpi.led.on(0,0,255) time.sleep(0.2)
razvanfulea/ubb.dp.1819
src/main/java/ro/ubb/dp1819/fulea/razvan/lab2/proxy/ProxyMain.java
package ro.ubb.dp1819.fulea.razvan.lab2.proxy; import java.util.ArrayList; import java.util.List; public class ProxyMain { public static void run() { ICarService service = new CarServiceProxy(); List<Car> cars = new ArrayList<>(); cars.add(service.buildCar("Audi", "E-Tron")); cars.add(service.buildCar("Mercedes", "E150")); cars.add(service.buildCar("BMW", "730")); cars.add(service.buildCar("Dacia", "1310")); for (Car car: cars){ System.out.print(car + " "); } System.out.println(); } }
izumin5210/clig
pkg/clib/path_test.go
<reponame>izumin5210/clig package clib_test import ( "testing" "github.com/izumin5210/clig/pkg/clib" ) func TestPath_String(t *testing.T) { pathStr := "/go/src/awesomeapp" path := clib.Path(pathStr) if got, want := path.String(), pathStr; got != want { t.Errorf("String() returned %q, want %q", got, want) } } func TestPath_Join(t *testing.T) { path := clib.Path("/go/src/awesomeapp") if got, want := path.Join("cmd", "server"), clib.Path("/go/src/awesomeapp/cmd/server"); got != want { t.Errorf("Join() returned %q, want %q", got, want) } }
martmists-gh/BDSP
include/il2cpp/DG/Tweening/Core/Easing/Bounce.h
<reponame>martmists-gh/BDSP<filename>include/il2cpp/DG/Tweening/Core/Easing/Bounce.h #pragma once #include "il2cpp.h" float DG_Tweening_Core_Easing_Bounce__EaseIn (float time, float duration, float unusedOvershootOrAmplitude, float unusedPeriod, const MethodInfo* method_info); float DG_Tweening_Core_Easing_Bounce__EaseOut (float time, float duration, float unusedOvershootOrAmplitude, float unusedPeriod, const MethodInfo* method_info); float DG_Tweening_Core_Easing_Bounce__EaseInOut (float time, float duration, float unusedOvershootOrAmplitude, float unusedPeriod, const MethodInfo* method_info);
aji3/xlbean
src/test/java/org/xlbean/excel/XlSheetTest.java
<filename>src/test/java/org/xlbean/excel/XlSheetTest.java package org.xlbean.excel; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import java.io.InputStream; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.WorkbookFactory; import org.junit.Test; import org.xlbean.reader.XlBeanReaderTest; import org.xlbean.util.FileUtil; public class XlSheetTest { @Test public void parseDateTimeValue() { XlSheet sheet = new XlSheet(null); double actual = sheet.parseDateTimeValue("2017-03-18T00:00:00.000"); assertThat(actual, is(42812d)); } @Test public void getCellValue() throws Exception { InputStream in = XlBeanReaderTest.class.getResourceAsStream("TestBook_presidents.xlsx"); try (Workbook wb = WorkbookFactory.create(FileUtil.copyToInputStream(in))) { XlWorkbook book = XlWorkbook.wrap(wb); XlSheet sheet = book.getSheet("presidents"); XlCellAddress address = new XlCellAddress.Builder().row(2).column(3).build(); assertThat(sheet.getCellValue(address), is("United States of America")); } } }
JPasogias/Valencia_UPV
app/bll/team-requests.js
<filename>app/bll/team-requests.js 'use strict'; const validator = require('validator'); const errorHelper = require('../../helpers/error'); const datapool = require('../datapool'); const i18next = require('i18next'); const co = require('co'); const teamsRepository = datapool.getRepository('teams'); const activitiesBll = require('./activities'); exports.create = function* teamsCreate(team, user) { team.creationDate = new Date(); team.members = []; team.members[0] = { idUser: user._id, joinDate: new Date(), isAdmin: true, }; var teamDb = yield teamsRepository.create(team); var groupInfo = { idGroup: teamDb._id, groupName: teamDb.name, }; var activity = { idUser: user._id, time: new Date(), type: 'GROUP', description: 'GROUP_CREATED', typeGroup: groupInfo, }; yield activitiesBll.create(activity); return teamDb; }; exports.getAll = function* teamsGet(user) { return yield teamsRepository.get(user); }; exports.getByUser = function* teamsGetByUser(user) { return yield teamsRepository.getByUser(user._id); }; exports.getById = function* teamsGetById(teamId, user) { return yield teamsRepository.getById(teamId, user._id); };
kolesnikov-bn/django-memrise-scraper
memrise/core/modules/factories/base.py
from abc import ABC, abstractmethod from typing import List, TypeVar from memrise.core.modules.factories.entity_makers import DomainEntityT ItemT = TypeVar("ItemT") class Factory(ABC): """ Класс, который умеет узнавать, может ли он смаппить определённый EntityMaker в нужный формат и умеет создавать нужный maker с параметрами """ @abstractmethod def matches(self, item: ItemT) -> bool: """Механизм соответствия входящих параметров с конкретным maker""" @abstractmethod def make_product(self, item: ItemT) -> List[DomainEntityT]: """Создание конкретного продукта"""
alissonkbprado/orange-talents-07-template-casa-do-codigo
src/main/java/br/com/zupacademy/alissonprado/casadocodigo/model/Livro.java
package br.com.zupacademy.alissonprado.casadocodigo.model; import org.hibernate.validator.constraints.ISBN; import org.springframework.format.annotation.DateTimeFormat; import javax.persistence.*; import javax.validation.constraints.*; import java.math.BigDecimal; import java.time.LocalDate; @Entity public class Livro { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @NotBlank @Column(unique = true, nullable = false) private String titulo; @NotBlank @Size(max = 500) @Column(columnDefinition = "TEXT", length = 500, nullable = false) private String resumo; @Lob @Basic(fetch = FetchType.LAZY) @Column(columnDefinition = "TEXT") private String sumario; @NotNull @DecimalMin(value = "20") @Column(nullable = false) private BigDecimal preco; @NotNull @DecimalMin(value = "100") @Column(nullable = false) private Short paginas; @NotBlank @ISBN @Column(unique = true, nullable = false) private String isbn; @Future @DateTimeFormat private LocalDate publicacao; @NotNull @ManyToOne private Categoria categoria; @NotNull @ManyToOne private Autor autor; /** * Não utilizar. * Criado por exigencia da JPA */ @Deprecated public Livro() { } /** * * @param titulo NotNull, Unique * @param resumo NotNull, Max 500 * @param preco NotNull, Min 20 * @param paginas NotNull, Min 100 * @param isbn NotNull, Unique * @param categoria NotNull * @param autor NotNull */ public Livro(String titulo, String resumo, BigDecimal preco, Short paginas, String isbn, Categoria categoria, Autor autor) { if(titulo.isBlank() || resumo.isBlank() || preco == null || paginas == null || isbn.isBlank() || categoria == null || autor == null) throw new IllegalArgumentException("Todos os dados de Livro devem ser preenchidos."); this.titulo = titulo; this.resumo = resumo; this.preco = preco; this.paginas = paginas; this.isbn = isbn; this.categoria = categoria; this.autor = autor; } /** * * @param titulo NotNull, Unique * @param resumo NotNull, Max 500 * @param sumario * @param preco NotNull, Min 20 * @param paginas NotNull, Min 100 * @param isbn NotNull, Unique * @param publicacao @Future * @param categoria NotNull * @param autor NotNull */ public Livro(String titulo, String resumo, String sumario, BigDecimal preco, Short paginas, String isbn, LocalDate publicacao, Categoria categoria, Autor autor) { if(titulo.isBlank() || resumo.isBlank() || preco == null || paginas == null || isbn.isBlank() || categoria == null || autor == null) throw new IllegalArgumentException("Os atributos (titulo, resumo, preco, paginas, isbn, categoria, autor) são obrigatórios."); this.titulo = titulo; this.resumo = resumo; this.sumario = sumario; this.preco = preco; this.paginas = paginas; this.isbn = isbn; this.publicacao = publicacao; this.categoria = categoria; this.autor = autor; } public Long getId() { return id; } public String getTitulo() { return titulo; } public String getResumo() { return resumo; } public String getSumario() { return sumario; } public BigDecimal getPreco() { return preco; } public Short getPaginas() { return paginas; } public String getIsbn() { return isbn; } public LocalDate getPublicacao() { return publicacao; } public Autor getAutor() { return autor; } }
WoodoLee/TorchCraft
3rdparty/pytorch/torch/csrc/jit/script/parser.cpp
#include <c10/util/Optional.h> #include <torch/csrc/jit/script/lexer.h> #include <torch/csrc/jit/script/parse_string_literal.h> #include <torch/csrc/jit/script/parser.h> #include <torch/csrc/jit/script/tree.h> #include <torch/csrc/jit/script/tree_views.h> namespace torch { namespace jit { namespace script { Decl mergeTypesFromTypeComment( const Decl& decl, const Decl& type_annotation_decl, bool is_method) { auto expected_num_annotations = decl.params().size(); if (is_method) { // `self` argument expected_num_annotations -= 1; } if (expected_num_annotations != type_annotation_decl.params().size()) { throw ErrorReport(type_annotation_decl.range()) << "Number of type annotations (" << type_annotation_decl.params().size() << ") did not match the number of " << "function parameters (" << expected_num_annotations << ")"; } auto old = decl.params(); auto _new = type_annotation_decl.params(); // Merge signature idents and ranges with annotation types std::vector<Param> new_params; size_t i = is_method ? 1 : 0; size_t j = 0; if (is_method) { new_params.push_back(old[0]); } for (; i < decl.params().size(); ++i, ++j) { new_params.emplace_back(old[i].withType(_new[j].type())); } return Decl::create( decl.range(), List<Param>::create(decl.range(), new_params), type_annotation_decl.return_type()); } struct ParserImpl { explicit ParserImpl(const std::string& str) : L(str), shared(sharedParserData()) {} Ident parseIdent() { auto t = L.expect(TK_IDENT); // whenever we parse something that has a TreeView type we always // use its create method so that the accessors and the constructor // of the Compound tree are in the same place. return Ident::create(t.range, t.text()); } TreeRef createApply(const Expr& expr) { TreeList attributes; auto range = L.cur().range; TreeList inputs; parseOperatorArguments(inputs, attributes); return Apply::create( range, expr, List<Expr>(makeList(range, std::move(inputs))), List<Attribute>(makeList(range, std::move(attributes)))); } static bool followsTuple(int kind) { switch (kind) { case TK_PLUS_EQ: case TK_MINUS_EQ: case TK_TIMES_EQ: case TK_DIV_EQ: case TK_NEWLINE: case '=': case ')': return true; default: return false; } } // exp | expr, | expr, expr, ... Expr parseExpOrExpTuple() { auto prefix = parseExp(); if (L.cur().kind == ',') { std::vector<Expr> exprs = {prefix}; while (L.nextIf(',')) { if (followsTuple(L.cur().kind)) break; exprs.push_back(parseExp()); } auto list = List<Expr>::create(prefix.range(), exprs); prefix = TupleLiteral::create(list.range(), list); } return prefix; } // things like a 1.0 or a(4) that are not unary/binary expressions // and have higher precedence than all of them TreeRef parseBaseExp() { TreeRef prefix; switch (L.cur().kind) { case TK_NUMBER: { prefix = parseConst(); } break; case TK_TRUE: case TK_FALSE: case TK_NONE: { auto k = L.cur().kind; auto r = L.cur().range; prefix = c(k, r, {}); L.next(); } break; case '(': { L.next(); if (L.nextIf(')')) { /// here we have the empty tuple case std::vector<Expr> vecExpr; List<Expr> listExpr = List<Expr>::create(L.cur().range, vecExpr); prefix = TupleLiteral::create(L.cur().range, listExpr); break; } prefix = parseExpOrExpTuple(); L.expect(')'); } break; case '[': { auto list = parseList('[', ',', ']', &ParserImpl::parseExp); prefix = ListLiteral::create(list.range(), List<Expr>(list)); } break; case TK_STRINGLITERAL: { prefix = parseConcatenatedStringLiterals(); } break; default: { Ident name = parseIdent(); prefix = Var::create(name.range(), name); } break; } while (true) { if (L.nextIf('.')) { const auto name = parseIdent(); prefix = Select::create(name.range(), Expr(prefix), Ident(name)); } else if (L.cur().kind == '(') { prefix = createApply(Expr(prefix)); } else if (L.cur().kind == '[') { prefix = parseSubscript(prefix); } else { break; } } return prefix; } TreeRef parseAssignmentOp() { auto r = L.cur().range; switch (L.cur().kind) { case TK_PLUS_EQ: case TK_MINUS_EQ: case TK_TIMES_EQ: case TK_DIV_EQ: { int modifier = L.next().text()[0]; return c(modifier, r, {}); } break; default: { L.expect('='); return c('=', r, {}); // no reduction } break; } } TreeRef parseTrinary( TreeRef true_branch, const SourceRange& range, int binary_prec) { auto cond = parseExp(); L.expect(TK_ELSE); auto false_branch = parseExp(binary_prec); return c(TK_IF_EXPR, range, {cond, std::move(true_branch), false_branch}); } // parse the longest expression whose binary operators have // precedence strictly greater than 'precedence' // precedence == 0 will parse _all_ expressions // this is the core loop of 'top-down precedence parsing' Expr parseExp() { return parseExp(0); } Expr parseExp(int precedence) { TreeRef prefix = nullptr; int unary_prec; if (shared.isUnary(L.cur().kind, &unary_prec)) { auto kind = L.cur().kind; auto pos = L.cur().range; L.next(); auto unary_kind = kind == '*' ? TK_STARRED : kind == '-' ? TK_UNARY_MINUS : kind; auto subexp = parseExp(unary_prec); // fold '-' into constant numbers, so that attributes can accept // things like -1 if (unary_kind == TK_UNARY_MINUS && subexp.kind() == TK_CONST) { prefix = Const::create(subexp.range(), "-" + Const(subexp).text()); } else { prefix = c(unary_kind, pos, {subexp}); } } else { prefix = parseBaseExp(); } int binary_prec; while (shared.isBinary(L.cur().kind, &binary_prec)) { if (binary_prec <= precedence) // not allowed to parse something which is // not greater than 'precedence' break; int kind = L.cur().kind; auto pos = L.cur().range; L.next(); if (shared.isRightAssociative(kind)) binary_prec--; // special case for trinary operator if (kind == TK_IF) { prefix = parseTrinary(prefix, pos, binary_prec); continue; } prefix = c(kind, pos, {prefix, parseExp(binary_prec)}); } return Expr(prefix); } template <typename T> List<T> parseList(int begin, int sep, int end, T (ParserImpl::*parse)()) { auto r = L.cur().range; if (begin != TK_NOTHING) L.expect(begin); std::vector<T> elements; if (L.cur().kind != end) { do { elements.push_back((this->*parse)()); } while (L.nextIf(sep)); } if (end != TK_NOTHING) L.expect(end); return List<T>::create(r, elements); } Const parseConst() { auto range = L.cur().range; auto t = L.expect(TK_NUMBER); return Const::create(t.range, t.text()); } StringLiteral parseConcatenatedStringLiterals() { auto range = L.cur().range; std::stringstream ss; while (L.cur().kind == TK_STRINGLITERAL) { auto literal_range = L.cur().range; ss << parseStringLiteral(literal_range, L.next().text()); } return StringLiteral::create(range, ss.str()); } Expr parseAttributeValue() { return parseExp(); } void parseOperatorArguments(TreeList& inputs, TreeList& attributes) { L.expect('('); if (L.cur().kind != ')') { do { if (L.cur().kind == TK_IDENT && L.lookahead().kind == '=') { auto ident = parseIdent(); L.expect('='); auto v = parseAttributeValue(); attributes.push_back( Attribute::create(ident.range(), Ident(ident), v)); } else { inputs.push_back(parseExp()); } } while (L.nextIf(',')); } L.expect(')'); } // Parse expr's of the form [a:], [:b], [a:b], [:] Expr parseSubscriptExp() { TreeRef first, second; auto range = L.cur().range; if (L.cur().kind != ':') { first = parseExp(); } if (L.nextIf(':')) { if (L.cur().kind != ',' && L.cur().kind != ']') { second = parseExp(); } auto maybe_first = first ? Maybe<Expr>::create(range, Expr(first)) : Maybe<Expr>::create(range); auto maybe_second = second ? Maybe<Expr>::create(range, Expr(second)) : Maybe<Expr>::create(range); return SliceExpr::create(range, maybe_first, maybe_second); } else { return Expr(first); } } TreeRef parseSubscript(const TreeRef& value) { const auto range = L.cur().range; auto subscript_exprs = parseList('[', ',', ']', &ParserImpl::parseSubscriptExp); return Subscript::create(range, Expr(value), subscript_exprs); } TreeRef parseParam() { auto ident = parseIdent(); TreeRef type; if (L.nextIf(':')) { type = parseExp(); } else { type = Var::create(L.cur().range, Ident::create(L.cur().range, "Tensor")); } TreeRef def; if (L.nextIf('=')) { def = Maybe<Expr>::create(L.cur().range, parseExp()); } else { def = Maybe<Expr>::create(L.cur().range); } return Param::create( type->range(), Ident(ident), Expr(type), Maybe<Expr>(def)); } Param parseBareTypeAnnotation() { auto type = parseExp(); return Param::create( type.range(), Ident::create(type.range(), ""), type, Maybe<Expr>::create(type.range())); } Decl parseTypeComment() { auto range = L.cur().range; L.expect(TK_TYPE_COMMENT); auto param_types = parseList('(', ',', ')', &ParserImpl::parseBareTypeAnnotation); TreeRef return_type; if (L.nextIf(TK_ARROW)) { auto return_type_range = L.cur().range; return_type = Maybe<Expr>::create(return_type_range, parseExp()); } else { return_type = Maybe<Expr>::create(L.cur().range); } return Decl::create(range, param_types, Maybe<Expr>(return_type)); } // 'first' has already been parsed since expressions can exist // alone on a line: // first[,other,lhs] = rhs TreeRef parseAssign(const Expr& lhs) { auto op = parseAssignmentOp(); auto rhs = parseExpOrExpTuple(); L.expect(TK_NEWLINE); if (op->kind() == '=') { return Assign::create(lhs.range(), lhs, Expr(rhs)); } else { // this is an augmented assignment if (lhs.kind() == TK_TUPLE_LITERAL) { throw ErrorReport(lhs.range()) << " augmented assignment can only have one LHS expression"; } return AugAssign::create(lhs.range(), lhs, AugAssignKind(op), Expr(rhs)); } } TreeRef parseStmt() { switch (L.cur().kind) { case TK_IF: return parseIf(); case TK_WHILE: return parseWhile(); case TK_FOR: return parseFor(); case TK_GLOBAL: { auto range = L.next().range; auto idents = parseList(TK_NOTHING, ',', TK_NOTHING, &ParserImpl::parseIdent); L.expect(TK_NEWLINE); return Global::create(range, idents); } case TK_RETURN: { auto range = L.next().range; Expr value = L.cur().kind != TK_NEWLINE ? parseExpOrExpTuple() : Expr(c(TK_NONE, range, {})); L.expect(TK_NEWLINE); return Return::create(range, value); } case TK_RAISE: { auto range = L.next().range; auto expr = parseExp(); L.expect(TK_NEWLINE); return Raise::create(range, expr); } case TK_ASSERT: { auto range = L.next().range; auto cond = parseExp(); Maybe<Expr> maybe_first = Maybe<Expr>::create(range); if (L.nextIf(',')) { auto msg = parseExp(); maybe_first = Maybe<Expr>::create(range, Expr(msg)); } L.expect(TK_NEWLINE); return Assert::create(range, cond, maybe_first); } case TK_PASS: { auto range = L.next().range; L.expect(TK_NEWLINE); return Pass::create(range); } case TK_DEF: { return parseFunction(/*is_method=*/false); } default: { auto lhs = parseExpOrExpTuple(); if (L.cur().kind != TK_NEWLINE) { return parseAssign(lhs); } else { L.expect(TK_NEWLINE); return ExprStmt::create(lhs.range(), lhs); } } } } TreeRef parseOptionalIdentList() { TreeRef list = nullptr; if (L.cur().kind == '(') { list = parseList('(', ',', ')', &ParserImpl::parseIdent); } else { list = c(TK_LIST, L.cur().range, {}); } return list; } TreeRef parseIf(bool expect_if = true) { auto r = L.cur().range; if (expect_if) L.expect(TK_IF); auto cond = parseExp(); L.expect(':'); auto true_branch = parseStatements(); auto false_branch = makeList(L.cur().range, {}); if (L.nextIf(TK_ELSE)) { L.expect(':'); false_branch = parseStatements(); } else if (L.nextIf(TK_ELIF)) { // NB: this needs to be a separate statement, since the call to parseIf // mutates the lexer state, and thus causes a heap-use-after-free in // compilers which evaluate argument expressions LTR auto range = L.cur().range; false_branch = makeList(range, {parseIf(false)}); } return If::create( r, Expr(cond), List<Stmt>(true_branch), List<Stmt>(false_branch)); } TreeRef parseWhile() { auto r = L.cur().range; L.expect(TK_WHILE); auto cond = parseExp(); L.expect(':'); auto body = parseStatements(); return While::create(r, Expr(cond), List<Stmt>(body)); } TreeRef parseFor() { auto r = L.cur().range; L.expect(TK_FOR); auto targets = parseList(TK_NOTHING, ',', TK_NOTHING, &ParserImpl::parseExp); L.expect(TK_IN); auto itrs = parseList(TK_NOTHING, ',', TK_NOTHING, &ParserImpl::parseExp); L.expect(':'); auto body = parseStatements(); return For::create(r, targets, itrs, body); } TreeRef parseStatements(bool expect_indent = true) { auto r = L.cur().range; if (expect_indent) { L.expect(TK_INDENT); } TreeList stmts; do { stmts.push_back(parseStmt()); } while (!L.nextIf(TK_DEDENT)); return c(TK_LIST, r, std::move(stmts)); } Maybe<Expr> parseReturnAnnotation() { if (L.nextIf(TK_ARROW)) { // Exactly one expression for return type annotation auto return_type_range = L.cur().range; return Maybe<Expr>::create(return_type_range, parseExp()); } else { return Maybe<Expr>::create(L.cur().range); } } Decl parseDecl() { auto paramlist = parseList('(', ',', ')', &ParserImpl::parseParam); // Parse return type annotation TreeRef return_type; Maybe<Expr> return_annotation = parseReturnAnnotation(); L.expect(':'); return Decl::create( paramlist.range(), List<Param>(paramlist), return_annotation); } TreeRef parseFunction(bool is_method) { L.expect(TK_DEF); auto name = parseIdent(); auto decl = parseDecl(); // Handle type annotations specified in a type comment as the first line of // the function. L.expect(TK_INDENT); if (L.cur().kind == TK_TYPE_COMMENT) { auto type_annotation_decl = Decl(parseTypeComment()); L.expect(TK_NEWLINE); decl = mergeTypesFromTypeComment(decl, type_annotation_decl, is_method); } auto stmts_list = parseStatements(false); return Def::create( name.range(), Ident(name), Decl(decl), List<Stmt>(stmts_list)); } Lexer& lexer() { return L; } private: // short helpers to create nodes TreeRef c(int kind, const SourceRange& range, TreeList&& trees) { return Compound::create(kind, range, std::move(trees)); } TreeRef makeList(const SourceRange& range, TreeList&& trees) { return c(TK_LIST, range, std::move(trees)); } Lexer L; SharedParserData& shared; }; Parser::Parser(const std::string& src) : pImpl(new ParserImpl(src)) {} Parser::~Parser() = default; TreeRef Parser::parseFunction(bool is_method) { return pImpl->parseFunction(is_method); } Lexer& Parser::lexer() { return pImpl->lexer(); } Decl Parser::parseTypeComment() { return pImpl->parseTypeComment(); } } // namespace script } // namespace jit } // namespace torch
1300928718/gwtent-reflection
src/main/java/com/gwtent/reflection/client/impl/AbstractMethodImpl.java
<reponame>1300928718/gwtent-reflection /******************************************************************************* * Copyright 2001, 2007 JamesLuo(<EMAIL>) * * 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. * * Contributors: *******************************************************************************/ package com.gwtent.reflection.client.impl; import java.lang.annotation.Annotation; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import com.gwtent.reflection.client.AbstractMethod; import com.gwtent.reflection.client.ArrayType; import com.gwtent.reflection.client.ClassType; import com.gwtent.reflection.client.Constructor; import com.gwtent.reflection.client.HasAnnotations; import com.gwtent.reflection.client.Method; import com.gwtent.reflection.client.Parameter; import com.gwtent.reflection.client.Type; public abstract class AbstractMethodImpl implements HasAnnotations, AbstractMethod { private boolean isVarArgs = false; private final Annotations annotations = new Annotations(); private int modifierBits; private final String name; private final List params = new ArrayList(); private final List thrownTypes = new ArrayList(); private final List typeParams = new ArrayList(); // Only the builder can construct AbstractMethodImpl(String name) { this.name = name; } public void addModifierBits(int bits) { modifierBits |= bits; } public void addThrows(Type type) { thrownTypes.add(type); } /* (non-Javadoc) * @see com.gwtent.client.reflection.AbstractMethod#findParameter(java.lang.String) */ public Parameter findParameter(String name) { Iterator iterator = params.iterator(); Parameter param = null; while (iterator.hasNext()) { param = (Parameter) iterator.next(); if (param.getName().equals(name)) { return param; } } return null; } /* (non-Javadoc) * @see com.gwtent.client.reflection.AbstractMethod#getEnclosingType() */ public abstract ClassType getEnclosingType(); /* (non-Javadoc) * @see com.gwtent.client.reflection.AbstractMethod#getName() */ public String getName() { return name; } /* (non-Javadoc) * @see com.gwtent.client.reflection.AbstractMethod#getParameters() */ public Parameter[] getParameters() { return (Parameter[]) params.toArray(TypeOracleImpl.NO_JPARAMS); } /* (non-Javadoc) * @see com.gwtent.client.reflection.AbstractMethod#getReadableDeclaration() */ public abstract String getReadableDeclaration(); /* (non-Javadoc) * @see com.gwtent.client.reflection.AbstractMethod#getThrows() */ public Type[] getThrows() { return (Type[]) thrownTypes.toArray(TypeOracleImpl.NO_JTYPES); } // public TypeParameter[] getTypeParameters() { // return typeParams.toArray(new TypeParameter[typeParams.size()]); // } /* (non-Javadoc) * @see com.gwtent.client.reflection.AbstractMethod#isConstructor() */ public abstract Constructor<?> isConstructor(); public boolean isDefaultAccess() { return 0 == (modifierBits & (TypeOracleImpl.MOD_PUBLIC | TypeOracleImpl.MOD_PRIVATE | TypeOracleImpl.MOD_PROTECTED)); } public abstract Method isMethod(); public boolean isPrivate() { return 0 != (modifierBits & TypeOracleImpl.MOD_PRIVATE); } public boolean isProtected() { return 0 != (modifierBits & TypeOracleImpl.MOD_PROTECTED); } public boolean isPublic() { return 0 != (modifierBits & TypeOracleImpl.MOD_PUBLIC); } /* (non-Javadoc) * @see com.gwtent.client.reflection.AbstractMethod#isVarArgs() */ public boolean isVarArgs() { return isVarArgs; } /* (non-Javadoc) * @see com.gwtent.client.reflection.AbstractMethod#setVarArgs() */ public void setVarArgs() { isVarArgs = true; } protected int getModifierBits() { return modifierBits; } protected void toStringParamsAndThrows(StringBuffer sb) { sb.append("("); boolean needComma = false; for (int i = 0, c = params.size(); i < c; ++i) { Parameter param = (Parameter) params.get(i); if (needComma) { sb.append(", "); } else { needComma = true; } if ((isVarArgs() && i == c - 1) && (param.getType() != null)) { ArrayType arrayType = param.getType().isArray(); assert (arrayType != null); sb.append(arrayType.getComponentType().getParameterizedQualifiedSourceName()); sb.append("..."); } else { sb.append(param.getTypeName()); } sb.append(" "); sb.append(param.getName()); } sb.append(")"); if (!thrownTypes.isEmpty()) { sb.append(" throws "); needComma = false; Iterator iterator = thrownTypes.iterator(); while (iterator.hasNext()) { TypeImpl thrownType = (TypeImpl) iterator.next(); if (needComma) { sb.append(", "); } else { needComma = true; } sb.append(thrownType.getParameterizedQualifiedSourceName()); } } } // protected void toStringTypeParams(StringBuilder sb) { // sb.append("<"); // boolean needComma = false; // for (TypeParameter typeParam : typeParams) { // if (needComma) { // sb.append(", "); // } else { // needComma = true; // } // sb.append(typeParam.getName()); // sb.append(typeParam.getBounds().toString()); // } // sb.append(">"); // } void addParameter(Parameter param) { params.add(param); } // void addTypeParameter(TypeParameter typeParameter) { // typeParams.add(typeParameter); // } boolean hasParamTypes(Type[] paramTypes) { if (params.size() != paramTypes.length) { return false; } for (int i = 0; i < paramTypes.length; i++) { Parameter candidate = (Parameter) params.get(i); // Identity tests are ok since identity is durable within an oracle. // if (candidate.getType() != paramTypes[i]) { return false; } } return true; } boolean hasParamTypesByTypeName(String[] paramTypes) { if (params.size() != paramTypes.length) { return false; } for (int i = 0; i < paramTypes.length; i++) { Parameter candidate = (Parameter) params.get(i); // Identity tests are ok since identity is durable within an oracle. // if (!candidate.getTypeName().equals(paramTypes[i])) { return false; } } return true; } public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { return annotations.getAnnotation(annotationClass); } public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { return annotations.isAnnotationPresent(annotationClass); } /** * NOTE: This method is for testing purposes only. */ public Annotation[] getAnnotations() { return annotations.getAnnotations(); } /** * NOTE: This method is for testing purposes only. */ public Annotation[] getDeclaredAnnotations() { return annotations.getDeclaredAnnotations(); } public void addAnnotation(Annotation ann) { annotations.addAnnotation(ann); } public String toString(){ return getReadableDeclaration(); } }
devongovett/parcel
packages/core/integration-tests/test/integration/transpilation-invalid/index.js
<filename>packages/core/integration-tests/test/integration/transpilation-invalid/index.js const Boom = () => { const littleBoom = ['hello', 'world'] return <div>{...littleBoom.map(el => el)}</div> } class X { #x(){} #x(){} } console.log(Boom, X);
wqythu13/Test
src/org/sosy_lab/cpachecker/core/algorithm/CustomInstructionRequirementsExtractingAlgorithm.java
/* * CPAchecker is a tool for configurable software verification. * This file is part of CPAchecker. * * Copyright (C) 2007-2014 <NAME> * 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. * * * CPAchecker web page: * http://cpachecker.sosy-lab.org */ package org.sosy_lab.cpachecker.core.algorithm; import java.io.FileNotFoundException; import java.io.IOException; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; import java.util.Queue; import java.util.Set; import java.util.logging.Level; import org.sosy_lab.common.ShutdownNotifier; import org.sosy_lab.common.configuration.Configuration; import org.sosy_lab.common.configuration.FileOption; import org.sosy_lab.common.configuration.InvalidConfigurationException; import org.sosy_lab.common.configuration.Option; import org.sosy_lab.common.configuration.Options; import org.sosy_lab.common.io.Path; import org.sosy_lab.common.log.LogManager; import org.sosy_lab.cpachecker.cfa.CFA; import org.sosy_lab.cpachecker.core.interfaces.AbstractState; import org.sosy_lab.cpachecker.core.interfaces.ConfigurableProgramAnalysis; import org.sosy_lab.cpachecker.core.interfaces.StateSpacePartition; import org.sosy_lab.cpachecker.core.reachedset.ReachedSet; import org.sosy_lab.cpachecker.cpa.arg.ARGCPA; import org.sosy_lab.cpachecker.cpa.arg.ARGState; import org.sosy_lab.cpachecker.exceptions.CPAEnabledAnalysisPropertyViolationException; import org.sosy_lab.cpachecker.exceptions.CPAException; import org.sosy_lab.cpachecker.util.AbstractStates; import org.sosy_lab.cpachecker.util.ci.AppliedCustomInstructionParser; import org.sosy_lab.cpachecker.util.ci.CustomInstructionApplications; import org.sosy_lab.cpachecker.util.ci.CustomInstructionRequirementsWriter; import com.google.common.collect.ImmutableSet; import com.google.common.collect.ImmutableSet.Builder; @Options(prefix="custominstructions") public class CustomInstructionRequirementsExtractingAlgorithm implements Algorithm { private final Algorithm analysis; private final LogManager logger; private final ShutdownNotifier shutdownNotifier; @Option(secure=true, name="definitionFile", description = "File to be parsed") @FileOption(FileOption.Type.REQUIRED_INPUT_FILE) private Path appliedCustomInstructionsDefinition; @Option(secure=true, description="Prefix for files containing the custom instruction requirements.") private String ciFilePrefix = "ci"; @Option(secure=true, description="Qualified name of class for abstract state which provides custom instruction requirements.") private String requirementsStateClassName; private Class<? extends AbstractState> requirementsStateClass; private CFA cfa; private final Configuration config; /** * Constructor of CustomInstructionRequirementsExtractingAlgorithm * @param analysisAlgorithm Algorithm * @param cpa ConfigurableProgramAnalysis * @param config Configuration * @param logger LogManager * @param sdNotifier ShutdownNotifier * @throws InvalidConfigurationException if the given Path not exists */ @SuppressWarnings("unchecked") public CustomInstructionRequirementsExtractingAlgorithm(final Algorithm analysisAlgorithm, final ConfigurableProgramAnalysis cpa, final Configuration config, final LogManager logger, final ShutdownNotifier sdNotifier, final CFA cfa) throws InvalidConfigurationException { config.inject(this); analysis = analysisAlgorithm; this.logger = logger; this.shutdownNotifier = sdNotifier; this.config = config; if (!(cpa instanceof ARGCPA)) { throw new InvalidConfigurationException("The given cpa " + cpa + "is not an instance of ARGCPA"); } if (!appliedCustomInstructionsDefinition.toFile().exists()) { throw new InvalidConfigurationException("The given path '" + appliedCustomInstructionsDefinition + "' is not a valid path to a file."); } try { requirementsStateClass = (Class<? extends AbstractState>) Class.forName(requirementsStateClassName); } catch (ClassNotFoundException e) { throw new InvalidConfigurationException("The abstract state " + requirementsStateClassName + " is unknown."); } catch (ClassCastException ex) { throw new InvalidConfigurationException(requirementsStateClassName + "is not an abstract state."); } if (AbstractStates.extractStateByType(cpa.getInitialState(cfa.getMainFunction(), StateSpacePartition.getDefaultPartition()), requirementsStateClass) == null) { throw new InvalidConfigurationException(requirementsStateClass + "is not an abstract state."); } // TODO to be continued: CFA integration this.cfa = cfa; } @Override public AlgorithmStatus run(ReachedSet pReachedSet) throws CPAException, InterruptedException, CPAEnabledAnalysisPropertyViolationException { logger.log(Level.INFO, " Start analysing to compute requirements."); AlgorithmStatus status = analysis.run(pReachedSet); // analysis was unsound if (!status.isSound()) { logger.log(Level.SEVERE, "Do not extract requirements since analysis failed."); return status; } shutdownNotifier.shutdownIfNecessary(); logger.log(Level.INFO, "Get custom instruction applications in program."); CustomInstructionApplications cia = null; try { cia = new AppliedCustomInstructionParser(shutdownNotifier, cfa).parse(appliedCustomInstructionsDefinition); } catch (FileNotFoundException ex) { logger.log(Level.SEVERE, "The file '" + appliedCustomInstructionsDefinition + "' was not found", ex); return status.withSound(false); } catch (IOException e) { logger.log(Level.SEVERE, "Parsing the file '" + appliedCustomInstructionsDefinition + "' failed.", e); return status.withSound(false); } shutdownNotifier.shutdownIfNecessary(); logger.log(Level.INFO, "Start extracting requirements for applied custom instructions"); extractRequirements((ARGState)pReachedSet.getFirstState(), cia); return status; } /** * Extracts all start and end nodes of the ARGState root and writes them via * CustomInstrucionRequirementsWriter. * @param root ARGState * @param cia CustomInstructionApplications * @throws InterruptedException if a shutdown was requested */ private void extractRequirements(final ARGState root, final CustomInstructionApplications cia) throws InterruptedException, CPAException { CustomInstructionRequirementsWriter writer = new CustomInstructionRequirementsWriter(ciFilePrefix, requirementsStateClass, config, shutdownNotifier, logger); Collection<ARGState> ciStartNodes = getCustomInstructionStartNodes(root, cia); for (ARGState node : ciStartNodes) { shutdownNotifier.shutdownIfNecessary(); try { writer.writeCIRequirement(node, findEndStatesFor(node, cia), cia.getAppliedCustomInstructionFor(node)); } catch (IOException e) { logger.log(Level.SEVERE, "Writing the CIRequirement failed at node " + node + ".", e); } } } /** * Returns a Set of ARGState with all states of the root-tree which are startStates * of the given CustomInstructionApplications * @param root ARGState * @param pCustomIA CustomInstructionApplication * @return ImmutableSet of ARGState * @throws InterruptedException * @throws CPAException */ private Collection<ARGState> getCustomInstructionStartNodes(final ARGState root, final CustomInstructionApplications pCustomIA) throws InterruptedException, CPAException{ Builder<ARGState> set = new ImmutableSet.Builder<>(); Set<ARGState> visitedNodes = new HashSet<>(); Queue<ARGState> queue = new ArrayDeque<>(); queue.add(root); visitedNodes.add(root); ARGState tmp; while (!queue.isEmpty()) { shutdownNotifier.shutdownIfNecessary(); tmp = queue.poll(); visitedNodes.add(tmp); if (pCustomIA.isStartState(tmp)) { set.add(tmp); } // breadth-first-search for (ARGState child : tmp.getChildren()) { if (!visitedNodes.contains(child)) { queue.add(child); visitedNodes.add(child); } } } return set.build(); } /** * Returns a Collection of ARGState of all EndStates which are in the tree of ciStart * @param ciStart ARGState * @return Collection of ARGState * @throws InterruptedException if a shutdown was requested * @throws CPAException */ private Collection<ARGState> findEndStatesFor(final ARGState ciStart, final CustomInstructionApplications pCustomIA) throws InterruptedException, CPAException { ArrayList<ARGState> list = new ArrayList<>(); Queue<ARGState> queue = new ArrayDeque<>(); Set<ARGState> visitedNodes = new HashSet<>(); queue.add(ciStart); visitedNodes.add(ciStart); while (!queue.isEmpty()) { shutdownNotifier.shutdownIfNecessary(); ARGState tmp = queue.poll(); if (pCustomIA.isEndState(tmp, ciStart)) { list.add(tmp); continue; } // breadth-first-search for (ARGState child : tmp.getChildren()) { if (!visitedNodes.contains(child)) { queue.add(child); visitedNodes.add(child); } } } return list; } }
Aakash1312/appleseed
src/appleseed.studio/utility/miscellaneous.h
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 <NAME>, Jupiter Jazz Limited // Copyright (c) 2014-2017 <NAME>, The appleseedhq Organization // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // #ifndef APPLESEED_STUDIO_UTILITY_MISCELLANEOUS_H #define APPLESEED_STUDIO_UTILITY_MISCELLANEOUS_H // Qt headers. #include <QFileDialog> #include <QList> // Forward declarations. namespace renderer { class ParamArray; } class QIcon; class QLayout; class QMessageBox; class QShortcut; class QString; class QStringList; class QWidget; namespace appleseed { namespace studio { // File dialog filter string for bitmap files supported by appleseed's own image subsystem. extern const QString g_appleseed_image_files_filter; // Return the file dialog filter string for image file formats supported by OpenImageIO. QString get_oiio_image_files_filter(); // Combine two filesystem paths and convert the result to native separators. QString combine_paths(const QString& lhs, const QString& rhs); // Combine the application's base path and a given relative path. QString make_app_path(const QString& path); // Combine the action tooltip's name and shortcut. QString combine_name_and_shortcut(const QString& name, const QKeySequence& shortcut); // Check whether a file exists. bool file_exists(const QString& path); // Load an icon and its variants (hover, disabled...) from the application's icons directory. QIcon load_icons(const QString& base_name); QString get_extension(renderer::ParamArray& settings, const QString& target_dialog); QString get_open_filename( QWidget* parent, const QString& caption, const QString& filter, renderer::ParamArray& settings, const QString& settings_key, QFileDialog::Options options = 0); QStringList get_open_filenames( QWidget* parent, const QString& caption, const QString& filter, renderer::ParamArray& settings, const QString& settings_key, QFileDialog::Options options = 0); QString get_save_filename( QWidget* parent, const QString& caption, const QString& filter, renderer::ParamArray& settings, const QString& settings_key, QFileDialog::Options options = 0); // Disable the blue focus rectangle of certain widgets. macOS only. void disable_osx_focus_rect(QWidget* widget); // Set the minimum width of a QMessageBox. void set_minimum_width(QMessageBox& msgbox, const int minimum_width); // Create a keyboard shortcut that is active for a given window and its // child widgets, but not for its top-level children like subwindows. QShortcut* create_window_local_shortcut(QWidget* parent, const int key); // Remove all widgets and sub-layouts from a layout. void clear_layout(QLayout* layout); // Create a QList from a single item (workaround for pre-C++11 compilers). template <typename T> QList<T> make_qlist(const T& item); // Convert a QList<FromType> to a QList<ToType> by static_cast<>'ing items to type ToType. template <typename ToType, typename FromType> QList<ToType> qlist_static_cast(const QList<FromType>& list); // // Implementation. // template <typename T> QList<T> make_qlist(const T& item) { QList<T> result; result.append(item); return result; } template <typename ToType, typename FromType> QList<ToType> qlist_static_cast(const QList<FromType>& list) { QList<ToType> result; result.reserve(list.size()); for (int i = 0, e = list.size(); i < e; ++i) result.append(static_cast<ToType>(list[i])); return result; } } // namespace studio } // namespace appleseed #endif // !APPLESEED_STUDIO_UTILITY_MISCELLANEOUS_H
AAU-Racing/distributed_car
bootloader/main.c
<filename>bootloader/main.c #include <stdint.h> #include <stdbool.h> #include <board_driver/uart.h> #include <board_driver/flash.h> #include <board_driver/init.h> int main(void) { uart_init(MAIN_DEBUG_UART); while (1) { uint8_t c = uart_read_byte(MAIN_DEBUG_UART); if (c == 'k') { uart_send_buf(MAIN_DEBUG_UART, (uint8_t[]){'y'}, 1); break; } } uint32_t start_address = 0x08010000; size_t len = 8132; uint8_t data[len]; for (size_t i = 0; i < len; i++) { uint8_t c = uart_read_byte(MAIN_DEBUG_UART); data[i] = c; uart_send_buf(MAIN_DEBUG_UART, (uint8_t[]){c}, 1); } if (write_flash(start_address, data, len)) { uart_send_buf(MAIN_DEBUG_UART, (uint8_t[]){"Error\n"}, 6); while(1); } else { uart_send_buf(MAIN_DEBUG_UART, (uint8_t[]){"flash done\n"}, 11); } uart_send_buf(MAIN_DEBUG_UART, (uint8_t[]){"Booting application...\n\n"}, 24); boot(start_address); }
billwert/azure-sdk-for-java
sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/fluent/models/MicrosoftGraphSharingDetail.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.authorization.fluent.models; import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; /** sharingDetail. */ @Fluent public final class MicrosoftGraphSharingDetail { /* * insightIdentity */ @JsonProperty(value = "sharedBy") private MicrosoftGraphInsightIdentity sharedBy; /* * The date and time the file was last shared. The timestamp represents * date and time information using ISO 8601 format and is always in UTC * time. For example, midnight UTC on Jan 1, 2014 would look like this: * 2014-01-01T00:00:00Z. Read-only. */ @JsonProperty(value = "sharedDateTime") private OffsetDateTime sharedDateTime; /* * resourceReference */ @JsonProperty(value = "sharingReference") private MicrosoftGraphResourceReference sharingReference; /* * The subject with which the document was shared. */ @JsonProperty(value = "sharingSubject") private String sharingSubject; /* * Determines the way the document was shared, can be by a 'Link', * 'Attachment', 'Group', 'Site'. */ @JsonProperty(value = "sharingType") private String sharingType; /* * sharingDetail */ @JsonIgnore private Map<String, Object> additionalProperties; /** * Get the sharedBy property: insightIdentity. * * @return the sharedBy value. */ public MicrosoftGraphInsightIdentity sharedBy() { return this.sharedBy; } /** * Set the sharedBy property: insightIdentity. * * @param sharedBy the sharedBy value to set. * @return the MicrosoftGraphSharingDetail object itself. */ public MicrosoftGraphSharingDetail withSharedBy(MicrosoftGraphInsightIdentity sharedBy) { this.sharedBy = sharedBy; return this; } /** * Get the sharedDateTime property: The date and time the file was last shared. The timestamp represents date and * time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would * look like this: 2014-01-01T00:00:00Z. Read-only. * * @return the sharedDateTime value. */ public OffsetDateTime sharedDateTime() { return this.sharedDateTime; } /** * Set the sharedDateTime property: The date and time the file was last shared. The timestamp represents date and * time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would * look like this: 2014-01-01T00:00:00Z. Read-only. * * @param sharedDateTime the sharedDateTime value to set. * @return the MicrosoftGraphSharingDetail object itself. */ public MicrosoftGraphSharingDetail withSharedDateTime(OffsetDateTime sharedDateTime) { this.sharedDateTime = sharedDateTime; return this; } /** * Get the sharingReference property: resourceReference. * * @return the sharingReference value. */ public MicrosoftGraphResourceReference sharingReference() { return this.sharingReference; } /** * Set the sharingReference property: resourceReference. * * @param sharingReference the sharingReference value to set. * @return the MicrosoftGraphSharingDetail object itself. */ public MicrosoftGraphSharingDetail withSharingReference(MicrosoftGraphResourceReference sharingReference) { this.sharingReference = sharingReference; return this; } /** * Get the sharingSubject property: The subject with which the document was shared. * * @return the sharingSubject value. */ public String sharingSubject() { return this.sharingSubject; } /** * Set the sharingSubject property: The subject with which the document was shared. * * @param sharingSubject the sharingSubject value to set. * @return the MicrosoftGraphSharingDetail object itself. */ public MicrosoftGraphSharingDetail withSharingSubject(String sharingSubject) { this.sharingSubject = sharingSubject; return this; } /** * Get the sharingType property: Determines the way the document was shared, can be by a 'Link', 'Attachment', * 'Group', 'Site'. * * @return the sharingType value. */ public String sharingType() { return this.sharingType; } /** * Set the sharingType property: Determines the way the document was shared, can be by a 'Link', 'Attachment', * 'Group', 'Site'. * * @param sharingType the sharingType value to set. * @return the MicrosoftGraphSharingDetail object itself. */ public MicrosoftGraphSharingDetail withSharingType(String sharingType) { this.sharingType = sharingType; return this; } /** * Get the additionalProperties property: sharingDetail. * * @return the additionalProperties value. */ @JsonAnyGetter public Map<String, Object> additionalProperties() { return this.additionalProperties; } /** * Set the additionalProperties property: sharingDetail. * * @param additionalProperties the additionalProperties value to set. * @return the MicrosoftGraphSharingDetail object itself. */ public MicrosoftGraphSharingDetail withAdditionalProperties(Map<String, Object> additionalProperties) { this.additionalProperties = additionalProperties; return this; } @JsonAnySetter void withAdditionalProperties(String key, Object value) { if (additionalProperties == null) { additionalProperties = new HashMap<>(); } additionalProperties.put(key, value); } /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (sharedBy() != null) { sharedBy().validate(); } if (sharingReference() != null) { sharingReference().validate(); } } }
MrDelik/core
tests/components/renault/__init__.py
<reponame>MrDelik/core<gh_stars>1000+ """Tests for the Renault integration.""" from __future__ import annotations from types import MappingProxyType from homeassistant.const import ( ATTR_ENTITY_ID, ATTR_ICON, ATTR_IDENTIFIERS, ATTR_MANUFACTURER, ATTR_MODEL, ATTR_NAME, ATTR_STATE, ATTR_SW_VERSION, STATE_UNAVAILABLE, ) from homeassistant.core import HomeAssistant from homeassistant.helpers.device_registry import DeviceRegistry from homeassistant.helpers.entity_registry import EntityRegistry from .const import ( ATTR_UNIQUE_ID, DYNAMIC_ATTRIBUTES, FIXED_ATTRIBUTES, ICON_FOR_EMPTY_VALUES, ) def get_no_data_icon(expected_entity: MappingProxyType): """Check icon attribute for inactive sensors.""" entity_id = expected_entity[ATTR_ENTITY_ID] return ICON_FOR_EMPTY_VALUES.get(entity_id, expected_entity.get(ATTR_ICON)) def check_device_registry( device_registry: DeviceRegistry, expected_device: MappingProxyType ) -> None: """Ensure that the expected_device is correctly registered.""" assert len(device_registry.devices) == 1 registry_entry = device_registry.async_get_device(expected_device[ATTR_IDENTIFIERS]) assert registry_entry is not None assert registry_entry.identifiers == expected_device[ATTR_IDENTIFIERS] assert registry_entry.manufacturer == expected_device[ATTR_MANUFACTURER] assert registry_entry.name == expected_device[ATTR_NAME] assert registry_entry.model == expected_device[ATTR_MODEL] assert registry_entry.sw_version == expected_device[ATTR_SW_VERSION] def check_entities( hass: HomeAssistant, entity_registry: EntityRegistry, expected_entities: MappingProxyType, ) -> None: """Ensure that the expected_entities are correct.""" for expected_entity in expected_entities: entity_id = expected_entity[ATTR_ENTITY_ID] registry_entry = entity_registry.entities.get(entity_id) assert registry_entry is not None assert registry_entry.unique_id == expected_entity[ATTR_UNIQUE_ID] state = hass.states.get(entity_id) assert state.state == expected_entity[ATTR_STATE] for attr in FIXED_ATTRIBUTES + DYNAMIC_ATTRIBUTES: assert state.attributes.get(attr) == expected_entity.get(attr) def check_entities_no_data( hass: HomeAssistant, entity_registry: EntityRegistry, expected_entities: MappingProxyType, expected_state: str, ) -> None: """Ensure that the expected_entities are correct.""" for expected_entity in expected_entities: entity_id = expected_entity[ATTR_ENTITY_ID] registry_entry = entity_registry.entities.get(entity_id) assert registry_entry is not None assert registry_entry.unique_id == expected_entity[ATTR_UNIQUE_ID] state = hass.states.get(entity_id) assert state.state == expected_state for attr in FIXED_ATTRIBUTES: assert state.attributes.get(attr) == expected_entity.get(attr) # Check dynamic attributes: assert state.attributes.get(ATTR_ICON) == get_no_data_icon(expected_entity) def check_entities_unavailable( hass: HomeAssistant, entity_registry: EntityRegistry, expected_entities: MappingProxyType, ) -> None: """Ensure that the expected_entities are correct.""" for expected_entity in expected_entities: entity_id = expected_entity[ATTR_ENTITY_ID] registry_entry = entity_registry.entities.get(entity_id) assert registry_entry is not None assert registry_entry.unique_id == expected_entity[ATTR_UNIQUE_ID] state = hass.states.get(entity_id) assert state.state == STATE_UNAVAILABLE for attr in FIXED_ATTRIBUTES: assert state.attributes.get(attr) == expected_entity.get(attr) # Check dynamic attributes: assert state.attributes.get(ATTR_ICON) == get_no_data_icon(expected_entity)
lechium/iPhoneOS_12.1.1_Headers
System/Library/PrivateFrameworks/NewsCore.framework/FCCKContentBatchedFetchRecordsOperation.h
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:47:46 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/NewsCore.framework/NewsCore * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>. */ #import <NewsCore/FCOperation.h> @class FCCKContentDatabase, NSArray, NSMutableArray, NSMutableDictionary, NSError; @interface FCCKContentBatchedFetchRecordsOperation : FCOperation { FCCKContentDatabase* _database; NSArray* _recordIDs; NSArray* _desiredKeys; /*^block*/id _fetchRecordsCompletionBlock; NSMutableArray* _remainingRecordIDBatches; NSMutableDictionary* _recordsByRecordID; NSMutableDictionary* _errorsByRecordID; NSError* _operationError; } @property (nonatomic,retain) NSMutableArray * remainingRecordIDBatches; //@synthesize remainingRecordIDBatches=_remainingRecordIDBatches - In the implementation block @property (nonatomic,retain) NSMutableDictionary * recordsByRecordID; //@synthesize recordsByRecordID=_recordsByRecordID - In the implementation block @property (nonatomic,retain) NSMutableDictionary * errorsByRecordID; //@synthesize errorsByRecordID=_errorsByRecordID - In the implementation block @property (nonatomic,retain) NSError * operationError; //@synthesize operationError=_operationError - In the implementation block @property (nonatomic,retain) FCCKContentDatabase * database; //@synthesize database=_database - In the implementation block @property (nonatomic,copy) NSArray * recordIDs; //@synthesize recordIDs=_recordIDs - In the implementation block @property (nonatomic,copy) NSArray * desiredKeys; //@synthesize desiredKeys=_desiredKeys - In the implementation block @property (nonatomic,copy) id fetchRecordsCompletionBlock; //@synthesize fetchRecordsCompletionBlock=_fetchRecordsCompletionBlock - In the implementation block -(NSArray *)desiredKeys; -(BOOL)validateOperation; -(void)performOperation; -(void)operationWillFinishWithError:(id)arg1 ; -(void)resetForRetry; -(id)fetchRecordsCompletionBlock; -(NSArray *)recordIDs; -(NSMutableArray *)remainingRecordIDBatches; -(void)_continueRefreshing; -(NSError *)operationError; -(void)setOperationError:(NSError *)arg1 ; -(NSMutableDictionary *)errorsByRecordID; -(void)setRemainingRecordIDBatches:(NSMutableArray *)arg1 ; -(void)setErrorsByRecordID:(NSMutableDictionary *)arg1 ; -(NSMutableDictionary *)recordsByRecordID; -(void)setRecordsByRecordID:(NSMutableDictionary *)arg1 ; -(FCCKContentDatabase *)database; -(void)setDatabase:(FCCKContentDatabase *)arg1 ; -(void)setDesiredKeys:(NSArray *)arg1 ; -(void)setFetchRecordsCompletionBlock:(id)arg1 ; -(void)setRecordIDs:(NSArray *)arg1 ; -(id)init; @end
Xtuden-com/language
language/capwap/utils/io_utils.py
<gh_stars>1000+ # coding=utf-8 # Copyright 2018 The Google AI Language Team 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. """IO utilities.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import copy import functools import json import math import multiprocessing import string import h5py from language.capwap.utils import image_utils import numpy as np import tensorflow.compat.v1 as tf MAX_THREADS = 64 # ------------------------------------------------------------------------------ # # TF Example helpers. # # ------------------------------------------------------------------------------ def int64_feature(value): return tf.train.Feature(int64_list=tf.train.Int64List(value=[value])) def float_feature(value): return tf.train.Feature(float_list=tf.train.FloatList(value=[value])) def bytes_feature(value): return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value])) def string_feature(value): return bytes_feature(value.encode("utf8")) def int64_feature_list(values): return tf.train.Feature(int64_list=tf.train.Int64List(value=values)) def float_feature_list(values): return tf.train.Feature(float_list=tf.train.FloatList(value=values)) def bytes_feature_list(values): return tf.train.Feature(bytes_list=tf.train.BytesList(value=values)) def string_feature_list(values): return bytes_feature([v.encode("utf8") for v in values]) def caption_example(image): """Convert image caption data into an Example proto. Args: image: A ImageMetadata instance. Returns: example: An Example proto with serialized tensor data. """ # Collect image object information from metadata. image_features, positions = read_object(image.objects, image.image_id) # Serialize multi-dimensional tensor data. captions_proto = tf.make_tensor_proto(np.array(image.captions)) features_proto = tf.make_tensor_proto(image_features) positions_proto = tf.make_tensor_proto(positions) # Create final features dict. features = dict( image_id=int64_feature(image.image_id), captions=bytes_feature(captions_proto.SerializeToString()), object_features=bytes_feature(features_proto.SerializeToString()), object_positions=bytes_feature(positions_proto.SerializeToString())) return tf.train.Example(features=tf.train.Features(feature=features)) def vqa_example(image): """Convert visual qa data into an Example proto. Args: image: An ImageMetadata instance. Returns: example: An Example proto with serialized tensor data. """ # Collect image object information from metadata. image_features, positions = read_object(image.objects, image.image_id) # Serialize multi-dimensional tensor data. captions_proto = tf.make_tensor_proto(np.array(image.captions)) question_ids_proto = tf.make_tensor_proto(np.array(image.question_ids)) questions_proto = tf.make_tensor_proto(np.array(image.questions)) features_proto = tf.make_tensor_proto(image_features) positions_proto = tf.make_tensor_proto(positions) # Take the first answer always for simplicity. # This is only used for training and unofficial eval. answers = copy.deepcopy(image.answers) for i, answer in enumerate(answers): answers[i] = answer[0] answers_proto = tf.make_tensor_proto(np.array(answers)) # Create final features dict. features = dict( image_id=int64_feature(image.image_id), question_ids=bytes_feature(question_ids_proto.SerializeToString()), questions=bytes_feature(questions_proto.SerializeToString()), answers=bytes_feature(answers_proto.SerializeToString()), captions=bytes_feature(captions_proto.SerializeToString()), object_features=bytes_feature(features_proto.SerializeToString()), object_positions=bytes_feature(positions_proto.SerializeToString())) return tf.train.Example(features=tf.train.Features(feature=features)) # ------------------------------------------------------------------------------ # # Data loading helpers. # # ------------------------------------------------------------------------------ def load_karpathy_splits(filename): """Load Karpathy COCO ids for train, val, and test.""" splits = {"train": set(), "val": set(), "test": set()} with tf.io.gfile.GFile(filename, "r") as f: for image in json.load(f)["images"]: split = image["split"] if image["split"] != "restval" else "train" splits[split].add(image["cocoid"]) return splits def filter_question(question, answer): """Apply filtering rules to QA pair.""" question = question.strip(string.punctuation + " ") answer = answer.strip(string.punctuation + " ") if not question: return True if not answer: return True if answer.lower() in ["yes", "no", "none", "unanswerable", "unsuitable"]: return True if any([c.isnumeric() for c in answer]): return True return False def read_object(objects, image_id): """Read R-CNN object data from HDF5 file.""" # Super slow but oh well. should_close = False if isinstance(objects, str): should_close = True objects = h5py.File(objects, "r") image_id = str(image_id) image_features = objects["features-" + image_id][:] image_bboxes = objects["bboxes-" + image_id] image_dims = objects["dims-" + image_id] positions = image_utils.quantize_bbox( bboxes=image_bboxes, height=image_dims[0], width=image_dims[1]) if should_close: objects.close() return image_features, positions # ------------------------------------------------------------------------------ # # Data writing helpers. # # ------------------------------------------------------------------------------ def convert_shard(shard, shard_name_fn, example_fn): """Multithreading helper to serialize an individual shard to disk. Args: shard: Tuple of shard id (int) and examples (ImageMetadata list). shard_name_fn: Maps shard id to file name. example_fn: Maps ImageMetadata to Example proto. """ shard_id, examples = shard # The example might have an "objects" attribute, which in this case, points # to the filename of a HDF5 file that should be opened. Many examples share # the same objects HDF5 file for storing their object data, so we keep the # file handle open until we hit an example that points to a different file. maybe_open_file = hasattr(examples[0], "objects") if maybe_open_file: current_file = examples[0].objects current_file_handle = h5py.File(current_file, "r") output_file = shard_name_fn(shard_id) tf.logging.info("Writing shard %s" % output_file) with tf.io.TFRecordWriter(output_file) as writer: for example in examples: # Check if the HDF5 file should be updated. if maybe_open_file: if example.objects != current_file: current_file_handle.close() current_file = example.objects current_file_handle = h5py.File(current_file, "r") example.objects = current_file_handle example_proto = example_fn(example) writer.write(example_proto.SerializeToString()) if maybe_open_file: current_file_handle.close() def convert_to_tfrecords(dataset, num_shards, basename, example_fn): """Convert a dataset to sharded TFRecords. Args: dataset: List of ImageMetadata. num_shards: Number of randomized shards to write dataset to. basename: Base name to write shards to (/path/name-xxxxx-of-yyyyy). example_fn: Returns Example proto given example metadata. """ # Shuffle the ordering of images. np.random.seed(12345) np.random.shuffle(dataset) # Break dataset into num_shards. size = int(math.ceil(len(dataset) / num_shards)) shards = [dataset[i:i + size] for i in range(0, len(dataset), size)] # Map with multithreading. tf.logging.info("Processing %d shards", num_shards) num_threads = min([num_shards, MAX_THREADS]) workers = multiprocessing.pool.ThreadPool(num_threads) shard_name = basename + "-%.5d-of-" + "%.5d" % num_shards map_fn = functools.partial( convert_shard, shard_name_fn=lambda i: shard_name % i, example_fn=example_fn) workers.map(map_fn, enumerate(shards)) tf.logging.info("Finished %d shards.", num_shards) def convert_to_rc(dataset, filename): """Convert dataset of ImageMetadata items to RC-formatted JSON file. Args: dataset: List of ImageMetadata. filename: Path to write to. """ rc_data = collections.defaultdict(dict) for example in dataset: image_id = example.image_id for i, qid in enumerate(example.question_ids): question = example.questions[i] answers = example.answers[i] rc_data[image_id][qid] = dict(question=question, answers=answers) with tf.io.gfile.GFile(filename, "w") as f: json.dump(rc_data, f) class NumpyEncoder(json.JSONEncoder): """Helper to encode things with Numpy objects.""" def default(self, obj): if isinstance(obj, np.ndarray): return obj.tolist() if np.issubdtype(obj, np.integer): return int(obj) if np.issubdtype(obj, np.float): return float(obj) if np.issubdtype(obj, np.bool): return bool(obj) return json.JSONEncoder.default(self, obj)
mistydemeo/rack
provider/aws/lambda/formation/handler/aws.go
<filename>provider/aws/lambda/formation/handler/aws.go package handler import ( "os" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" "github.com/aws/aws-sdk-go/service/ecr" "github.com/aws/aws-sdk-go/service/ecs" "github.com/aws/aws-sdk-go/service/kms" "github.com/aws/aws-sdk-go/service/s3" "github.com/aws/aws-sdk-go/service/sns" "github.com/aws/aws-sdk-go/service/sqs" ) func Credentials(req *Request) *credentials.Credentials { if req != nil { if access, ok := req.ResourceProperties["AccessId"].(string); ok && access != "" { if secret, ok := req.ResourceProperties["SecretAccessKey"].(string); ok && secret != "" { return credentials.NewStaticCredentials(access, secret, "") } } } if os.Getenv("AWS_ACCESS") != "" { return credentials.NewStaticCredentials(os.Getenv("AWS_ACCESS"), os.Getenv("AWS_SECRET"), "") } // return credentials.NewCredentials(&credentials.EC2RoleProvider{}) return credentials.NewEnvCredentials() } func Region(req *Request) *string { if req != nil { if region, ok := req.ResourceProperties["Region"].(string); ok && region != "" { return aws.String(region) } } return aws.String(os.Getenv("AWS_REGION")) } func EC2(req Request) *ec2.EC2 { return ec2.New(session.New(), &aws.Config{ Credentials: Credentials(&req), Region: Region(&req), }) } func ECR(req Request) *ecr.ECR { return ecr.New(session.New(), &aws.Config{ Credentials: Credentials(&req), Region: Region(&req), }) } func ECS(req Request) *ecs.ECS { return ecs.New(session.New(), &aws.Config{ Credentials: Credentials(&req), Region: Region(&req), }) } func KMS(req Request) *kms.KMS { return kms.New(session.New(), &aws.Config{ Credentials: Credentials(&req), Region: Region(&req), }) } func S3(req Request) *s3.S3 { return s3.New(session.New(), &aws.Config{ Credentials: Credentials(&req), Region: Region(&req), }) } func SNS(req Request) *sns.SNS { return sns.New(session.New(), &aws.Config{ Credentials: Credentials(&req), Region: Region(&req), }) } func SQS() *sqs.SQS { return sqs.New(session.New(), &aws.Config{ Credentials: Credentials(nil), Region: Region(nil), }) }
Jabawack/chromium-efl
impl/renderer/print_web_view_helper_efl.h
<reponame>Jabawack/chromium-efl<gh_stars>0 // Copyright 2014 Samsung Electronics. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef PRINT_WEB_VIEW_HELPER_H_ #define PRINT_WEB_VIEW_HELPER_H_ #include "base/files/file_path.h" #include "base/memory/scoped_ptr.h" #include "renderer/print_pages_params.h" #include "third_party/WebKit/public/platform/WebCanvas.h" namespace content { class RenderView; } namespace blink { class WebFrame; } namespace printing { class Metafile; } struct PrintPagesParams; class PrintWebViewHelperEfl { public: PrintWebViewHelperEfl(content::RenderView* view, const base::FilePath& filename); virtual ~PrintWebViewHelperEfl(); void PrintToPdf(int width, int height); void InitPrintSettings(int width, int height, bool fit_to_paper_size); private: bool PrintPagesToPdf(blink::WebFrame* frame, int page_count, const gfx::Size& canvas_size); bool PrintPageInternal(const PrintPageParams& params, const gfx::Size& canvas_size, blink::WebFrame* frame, printing::Metafile* metafile); bool RenderPagesForPrint(blink::WebFrame* frame); scoped_ptr<PrintPagesParams> print_pages_params_; content::RenderView* view_; base::FilePath filename_; }; #endif // PRINT_WEB_VIEW_HELPER_H_
yechaoa/wanandroid_java
app/src/main/java/com/yechaoa/wanandroidclient/module/tree/ITreeView.java
<reponame>yechaoa/wanandroid_java package com.yechaoa.wanandroidclient.module.tree; import com.yechaoa.wanandroidclient.base.BaseBean; import com.yechaoa.wanandroidclient.base.BaseView; import com.yechaoa.wanandroidclient.bean.Tree; import java.util.List; /** * GitHub : https://github.com/yechaoa * CSDN : http://blog.csdn.net/yechaoa * <p> * Created by yechao on 2018/4/25. * Describe : */ public interface ITreeView extends BaseView { void setTreeData(BaseBean<List<Tree>> list); void showTreeError(String errorMessage); }
sambains/IGDB
app/src/main/java/g33k/limited/igdb/core/base/BaseApplication.java
<gh_stars>1-10 package g33k.limited.igdb.core.base; import android.app.Application; import com.facebook.stetho.Stetho; import g33k.limited.igdb.BuildConfig; import g33k.limited.igdb.core.dependencies.AppComponent; import g33k.limited.igdb.core.dependencies.AppModule; import g33k.limited.igdb.core.dependencies.DaggerAppComponent; import timber.log.Timber; /** * Created by sambains on 19/12/2016. */ public class BaseApplication extends Application { private static AppComponent appComponent; @Override public void onCreate() { super.onCreate(); initApplication(); appComponent = createAppComponent(); } protected void initApplication() { if (BuildConfig.DEBUG) { Timber.plant(new Timber.DebugTree()); Stetho.initialize(Stetho.newInitializerBuilder(this) .enableDumpapp(Stetho.defaultDumperPluginsProvider(this)) .enableWebKitInspector(Stetho.defaultInspectorModulesProvider(this)) .build()); } } public AppComponent createAppComponent() { return DaggerAppComponent.builder() .appModule(new AppModule()) .build(); } public static AppComponent getAppComponent() { return appComponent; } }
AnewbieXZB/GeiSHIHui
app/src/main/java/com/example/s/why_no/adapter/MessageRecordListAdapter.java
package com.example.s.why_no.adapter; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.example.s.why_no.R; import com.example.s.why_no.bean.MessageRecord; import java.util.List; /** * Created by S on 2016/10/20. */ public class MessageRecordListAdapter extends RecyclerView.Adapter<MessageRecordListAdapter.MyViewHolder> { private Context context; private List<MessageRecord.Information> allList; private LayoutInflater mInflater; public MessageRecordListAdapter(List<MessageRecord.Information> allList, Context context) { this.allList = allList; this.context = context; mInflater = LayoutInflater.from(context); } public interface OnItemClickLitener { void onItemClick(View view, int position); void onItemLongClick(View view, int position); } private OnItemClickLitener mOnItemClickLitener; public void setOnItemClickLitener(OnItemClickLitener mOnItemClickLitener) { this.mOnItemClickLitener = mOnItemClickLitener; } @Override public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { MyViewHolder holder = new MyViewHolder(mInflater.inflate( R.layout.item_message, parent, false)); return holder; } @Override public void onBindViewHolder(final MyViewHolder holder, int position) { holder.tv_item_message_titile.setText(allList.get(position).name); holder.tv_item_message_details.setText(allList.get(position).text); holder.tv_item_message_time.setText(allList.get(position).time); // // 如果设置了回调,则设置点击事件 if (mOnItemClickLitener != null) { holder.itemView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { int pos = holder.getLayoutPosition(); mOnItemClickLitener.onItemClick(holder.itemView, pos); } }); holder.itemView.setOnLongClickListener(new View.OnLongClickListener() { @Override public boolean onLongClick(View v) { int pos = holder.getLayoutPosition(); mOnItemClickLitener.onItemLongClick(holder.itemView, pos); return false; } }); } } @Override public int getItemCount() { return allList.size(); } class MyViewHolder extends RecyclerView.ViewHolder { TextView tv_item_message_titile; TextView tv_item_message_details; TextView tv_item_message_time; public MyViewHolder(View view) { super(view); tv_item_message_titile = (TextView) view.findViewById(R.id.tv_item_message_titile); tv_item_message_details = (TextView) view.findViewById(R.id.tv_item_message_details); tv_item_message_time = (TextView) view.findViewById(R.id.tv_item_message_time); } } }
torsten-schenk/gla
src/regex.c
#include <stdio.h> #include <pcre.h> #include "common.h" #include "regex.h" #define LOCALS_GROUPS(REGEX, NGROUP) \ const struct regex *regex = REGEXES + REGEX; \ int vec[NGROUP * 3 + 3]; \ int matches; #define EXEC_GROUPS \ do { \ if(len < 0) \ len = strlen(string); \ \ matches = pcre_exec(regex->compiled, regex->extra, string, len, 0, PCRE_ANCHORED, vec, sizeof(vec) / sizeof(*vec)); \ if(matches == PCRE_ERROR_NOMATCH) \ return 0; \ else if(matches <= 0) \ return GLA_INTERNAL; \ } while(0) #define EXEC_GROUPS_NOCHECK \ do { \ if(len < 0) \ len = strlen(string); \ \ matches = pcre_exec(regex->compiled, regex->extra, string, len, 0, PCRE_ANCHORED, vec, sizeof(vec) / sizeof(*vec)); \ } while(0) #define COPY_GROUP(GROUP, TARGET) \ do { \ if(TARGET != NULL) { \ TARGET[TARGET ## _max - 1] = 0; \ if(vec[GROUP * 2 + 1] - vec[GROUP * 2] > TARGET ## _max) \ return GLA_OVERFLOW; \ else if(vec[GROUP * 2 + 1] - vec[GROUP * 2] < TARGET ## _max) \ TARGET[vec[GROUP * 2 + 1] - vec[GROUP * 2]] = 0; \ strncpy(TARGET, string + vec[GROUP * 2], vec[GROUP * 2 + 1] - vec[GROUP * 2]); \ } \ } while(0) #define CLONE_GROUP(GROUP, TARGET) \ do { \ if(TARGET != NULL) { \ char *out = apr_palloc(pool, vec[GROUP * 2 + 1] - vec[GROUP * 2] + 1); \ if(out == NULL) \ return GLA_ALLOC; \ strncpy(out, string + vec[GROUP * 2], vec[GROUP * 2 + 1] - vec[GROUP * 2]); \ out[vec[GROUP * 2 + 1] - vec[GROUP * 2]] = 0; \ *TARGET = out; \ } \ } while(0) struct regex { const char *pattern; pcre *compiled; pcre_extra *extra; }; static struct regex REGEXES[] = { { "^([a-zA-Z0-9_-]+)(?:\\.([a-zA-Z0-9_-]+))?$" }, /* filename to entity */ { "^([a-zA-Z0-9_-]+)$" }, /* dirname to entity */ { "^([a-zA-Z0-9_-]+)\\." }, /* path fragment string */ { "^([a-zA-Z0-9_-]+)" }, /* final path fragment string */ { "^\\<([a-zA-Z0-9_-]*)\\>" }, /* extension string */ { "^([a-zA-Z0-9_]+)$" } /* storage: valid table name */ }; enum { FILENAME_TO_ENTITY, DIRNAME_TO_ENTITY, PATH_FRAGMENT, PATH_FINAL_FRAGMENT, PATH_EXTENSION, STORAGE_TABLE_NAME }; apr_status_t cleanup( void *data) { int i; for(i = 0; i < sizeof(REGEXES) / sizeof(*REGEXES); i++) { if(REGEXES[i].extra != NULL) pcre_free(REGEXES[i].extra); pcre_free(REGEXES[i].compiled); REGEXES[i].compiled = NULL; REGEXES[i].extra = NULL; } return APR_SUCCESS; } int gla_regex_init( apr_pool_t *pool) { int i; int error_offset; const char *error_string; apr_pool_cleanup_register(pool, NULL, cleanup, apr_pool_cleanup_null); for(i = 0; i < sizeof(REGEXES) / sizeof(*REGEXES); i++) { REGEXES[i].compiled = pcre_compile(REGEXES[i].pattern, 0, &error_string, &error_offset, NULL); if(REGEXES[i].compiled == NULL) { printf("Error in regular expression /%s/, offset %d: %s\n", REGEXES[i].pattern, error_offset, error_string); return GLA_INTERNAL; } REGEXES[i].extra = pcre_study(REGEXES[i].compiled, 0, &error_string); if(REGEXES[i].extra != NULL && error_string != NULL) { printf("Error studying regular expression /%s/: %s\n", REGEXES[i].pattern, error_string); return GLA_INTERNAL; } } return 0; } int gla_regex_filename_to_entity( const char *string, int len, char *name, int name_max, char *extension, int extension_max) { LOCALS_GROUPS(FILENAME_TO_ENTITY, 2) EXEC_GROUPS; COPY_GROUP(1, name); COPY_GROUP(2, extension); return vec[1] + vec[0]; } int gla_regex_dirname_to_entity( const char *string, int len, char *name, int name_max) { LOCALS_GROUPS(DIRNAME_TO_ENTITY, 1) EXEC_GROUPS; COPY_GROUP(1, name); return vec[1] + vec[0]; } int gla_regex_path_fragment( const char *string, int len, const char **fragment, bool *isfinal, apr_pool_t *pool) { { /* check fragment match */ LOCALS_GROUPS(PATH_FRAGMENT, 1) EXEC_GROUPS_NOCHECK; if(matches <= 0 && matches != PCRE_ERROR_NOMATCH) return GLA_INTERNAL; else if(matches != PCRE_ERROR_NOMATCH) { CLONE_GROUP(1, fragment); if(isfinal != NULL) *isfinal = false; return vec[1] + vec[0]; } } { /* check final fragment match */ LOCALS_GROUPS(PATH_FINAL_FRAGMENT, 1) EXEC_GROUPS; CLONE_GROUP(1, fragment); if(isfinal != NULL) *isfinal = true; return vec[1] + vec[0]; } } int gla_regex_path_extension( const char *string, int len, const char **extension, apr_pool_t *pool) { LOCALS_GROUPS(PATH_EXTENSION, 1) EXEC_GROUPS; CLONE_GROUP(1, extension); return vec[1] + vec[0]; } int gla_regex_storage_table_name( const char *string, int len) { LOCALS_GROUPS(STORAGE_TABLE_NAME, 1); EXEC_GROUPS; return vec[1] + vec[0]; }
cpswarm/modelio-cpswarm-modeler
src/main/java/org/modelio/module/cpswarm/type/Abstraction/Response.java
<reponame>cpswarm/modelio-cpswarm-modeler<filename>src/main/java/org/modelio/module/cpswarm/type/Abstraction/Response.java package org.modelio.module.cpswarm.type.Abstraction; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.modeliosoft.modelio.javadesigner.annotations.objid; @objid ("9b7a03bf-eb7c-449c-86ac-b70d704d533c") @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "constants", "fields" }) public class Response { @objid ("e54b7393-d36b-4132-a206-033bde2f0604") @JsonProperty("constants") private List<Constant> constants = null; /** * * (Required) */ @objid ("54b33f44-b547-42ff-bc9b-782b172dcfbb") @JsonProperty("fields") private List<Field> fields = null; @objid ("44ea8bc4-88ff-48e5-985e-f456156998cc") @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>(); @objid ("13081236-a066-4cb0-9587-72b9e521a39c") @JsonProperty("constants") public List<Constant> getConstants() { return constants; } @objid ("af617149-6a6e-4b9f-9e4b-2a25d0350602") @JsonProperty("constants") public void setConstants(List<Constant> constants) { this.constants = constants; } /** * (Required) */ @objid ("94baa39e-ab31-4105-9da7-8eb576ad146a") @JsonProperty("fields") public List<Field> getFields() { return fields; } /** * (Required) */ @objid ("b324ca0e-c235-4050-9dbb-9a34efb3d817") @JsonProperty("fields") public void setFields(List<Field> fields) { this.fields = fields; } @objid ("2e7c4932-0ecb-49ae-a62b-345902dfd20c") @JsonAnyGetter public Map<String, Object> getAdditionalProperties() { return this.additionalProperties; } @objid ("1520d484-d0db-4376-a9d9-67358733be8b") @JsonAnySetter public void setAdditionalProperty(String name, Object value) { this.additionalProperties.put(name, value); } }
cbodley/nexus
src/settings.cc
<filename>src/settings.cc #include <nexus/quic/settings.hpp> #include <lsquic.h> namespace nexus::quic { namespace detail { void read_settings(settings& out, const lsquic_engine_settings& in) { const auto us = std::chrono::microseconds(in.es_handshake_to); out.handshake_timeout = std::chrono::duration_cast<std::chrono::seconds>(us); out.idle_timeout = std::chrono::seconds(in.es_idle_timeout); out.max_streams_per_connection = in.es_init_max_streams_bidi; out.connection_flow_control_window = in.es_init_max_data; out.incoming_stream_flow_control_window = in.es_init_max_stream_data_bidi_remote; out.outgoing_stream_flow_control_window = in.es_init_max_stream_data_bidi_local; } void write_settings(const settings& in, lsquic_engine_settings& out) { out.es_handshake_to = std::chrono::duration_cast<std::chrono::microseconds>( in.handshake_timeout).count(); out.es_idle_timeout = in.idle_timeout.count(); out.es_init_max_streams_bidi = in.max_streams_per_connection; out.es_init_max_data = in.connection_flow_control_window; out.es_init_max_stream_data_bidi_remote = in.incoming_stream_flow_control_window; out.es_init_max_stream_data_bidi_local = in.outgoing_stream_flow_control_window; } bool check_settings(const lsquic_engine_settings& es, int flags, std::string* message) { char errbuf[256]; int r = ::lsquic_engine_check_settings(&es, flags, errbuf, sizeof(errbuf)); if (r == 0) { return true; } if (message) { message->assign(errbuf); } return false; } } // namespace detail settings default_client_settings() { lsquic_engine_settings es; ::lsquic_engine_init_settings(&es, 0); settings s; detail::read_settings(s, es); return s; } settings default_server_settings() { lsquic_engine_settings es; ::lsquic_engine_init_settings(&es, LSENG_SERVER); settings s; detail::read_settings(s, es); return s; } bool check_client_settings(const settings& s, std::string* message) { constexpr int flags = 0; lsquic_engine_settings es; ::lsquic_engine_init_settings(&es, flags); detail::write_settings(s, es); return detail::check_settings(es, flags, message); } bool check_server_settings(const settings& s, std::string* message) { constexpr int flags = LSENG_SERVER; lsquic_engine_settings es; ::lsquic_engine_init_settings(&es, flags); detail::write_settings(s, es); return detail::check_settings(es, flags, message); } } // namespace nexus::quic