text
stringlengths
2
1.04M
meta
dict
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:layout_margin="15dp" android:background="#8000"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="15dp" android:layout_marginTop="15dp" android:text="生活建议" android:textColor="#fff" android:textSize="20sp"/> <TextView android:id="@+id/comfort_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="15dp" android:textColor="#fff"/> <TextView android:id="@+id/car_wash_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="15dp" android:textColor="#fff"/> <TextView android:id="@+id/sport_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="15dp" android:textColor="#fff"/> </LinearLayout>
{ "content_hash": "423f51de5eb684438249dc7bdd1774ec", "timestamp": "", "source": "github", "line_count": 39, "max_line_length": 72, "avg_line_length": 31.615384615384617, "alnum_prop": 0.6382806163828062, "repo_name": "fubcdev/coolweather", "id": "e875cebab1ce2c7ef15b51fcb4032de88a7345e1", "size": "1241", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "app/src/main/res/layout/suggestion.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "27936" } ], "symlink_target": "" }
namespace nx { struct callback_access { template <typename Tag, typename Class, typename... Args> static void call(Class& c, Args&&... args) { c(Tag(), std::forward<Args>(args)...); } template <typename Class, typename... Args> static void call(Class& c, Args&&... args) { c(std::forward<Args>(args)...); } private: callback_access(); }; } // namespace nx #endif // __NX_CALLBACK_ACCESS_H__
{ "content_hash": "a5f35bb62406b2ffcec110042787aaa8", "timestamp": "", "source": "github", "line_count": 23, "max_line_length": 61, "avg_line_length": 19.130434782608695, "alnum_prop": 0.5886363636363636, "repo_name": "ExpandiumSAS/nx", "id": "1328b186918aceb947068086f379c7d464ead255", "size": "527", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "sources/include/nx/nx/callback_access.hpp", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "20274" }, { "name": "C++", "bytes": "205004" } ], "symlink_target": "" }
package org.amc.game.chessserver.messaging; import static org.amc.game.chess.ChessBoard.Coordinate.B; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*; import static org.junit.Assert.*; import org.amc.User; import org.amc.dao.DAOInterface; import org.amc.game.chess.ChessBoard; import org.amc.game.chess.ChessBoardFactoryImpl; import org.amc.game.chess.ChessGame; import org.amc.game.chess.ChessGamePlayer; import org.amc.game.chess.Colour; import org.amc.game.chess.Location; import org.amc.game.chess.Move; import org.amc.game.chess.Player; import org.amc.game.chess.RealChessGamePlayer; import org.amc.game.chess.SimpleChessBoardSetupNotation; import org.amc.game.chessserver.DatabaseFixture; import org.amc.game.chessserver.AbstractServerChessGame; import org.amc.game.chessserver.ServerChessGameFactory.GameType; import org.amc.game.chessserver.AbstractServerChessGame.ServerGameStatus; import org.amc.game.chessserver.ServerConstants; import org.amc.game.chessserver.messaging.EmailMessageService.SendMessage; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.web.WebAppConfiguration; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.MvcResult; import org.springframework.test.web.servlet.setup.MockMvcBuilders; import org.springframework.web.context.WebApplicationContext; import java.util.concurrent.Future; import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print; /** * Tests Email integration with Google's gmail service * @author Adrian Mclaughlin * */ @Ignore @RunWith(SpringJUnit4ClassRunner.class) @WebAppConfiguration @ContextConfiguration(locations = { "/EntityManagerFactory.groovy", "/SpringTestConfig.xml" ,"/GameServerWebSockets.xml", "/EmailServiceContext.xml", "/GameServerSecurity.xml" }) public class GmailEmailMessagingIT { private static final String GAME_TYPE = "gameType"; private static final String CHESSBOARD_CONFIG = "Ka6:kc6:qb1"; private static final String USER_FULLNAME = "Adrian McLaughlin"; private static final String USER_USERNAME = "adrian"; private static final String USER_EMAIL_ADDR = "[email protected]"; private static final String MESSAGE_SERVICE = "messageService"; private static final String GAME_UUID = "gameUUID"; private static final String JOIN_GAME = "/joinGame"; private static final String USER_NAME = "userName"; private static final String NOBBY = "nobby"; private static final String STEPHEN = "stephen"; private static final String MY_PLAYER_DAO = "myPlayerDAO"; private static final String EMAIL_TEMPLATE_FACTORY = "emailTemplateFactory"; private static final String CREATE_GAME = "/createGame/"; private static final String SESSION_ATTRIBUTE = "PLAYER"; private DatabaseFixture signUpfixture = new DatabaseFixture(); private ChessGamePlayer whitePlayer; private ChessGamePlayer blackPlayer; @Autowired private WebApplicationContext wac; private MockMvc mockMvc; private DAOInterface<Player> playerDAO; private EmailTemplateFactory factory; @Before public void setUp() throws Exception { this.signUpfixture.setUp(); this.mockMvc = MockMvcBuilders.webAppContextSetup(wac).build(); setUpPlayers(); factory = (EmailTemplateFactory)wac.getBean(EMAIL_TEMPLATE_FACTORY); } @SuppressWarnings("unchecked") private void setUpPlayers() throws Exception { playerDAO = (DAOInterface<Player>)wac.getBean(MY_PLAYER_DAO); Player stephen = getPlayerFromDatabase(STEPHEN); Player nobby = getPlayerFromDatabase(NOBBY); whitePlayer = new RealChessGamePlayer(stephen, Colour.WHITE); blackPlayer = new RealChessGamePlayer(nobby, Colour.BLACK); } private Player getPlayerFromDatabase(String name) throws Exception { Player player = playerDAO.findEntities(USER_NAME, name).get(0); playerDAO.getEntityManager().detach(player); return player; } @After public void tearDown() { this.signUpfixture.tearDown(); } @Test public void testMove() throws Exception { MvcResult result = createAndJoinChessGame(); AbstractServerChessGame serverChessGame = doMove(result); send(serverChessGame); } private MvcResult createAndJoinChessGame() throws Exception { MvcResult result = this.mockMvc .perform(post(CREATE_GAME).sessionAttr(SESSION_ATTRIBUTE, whitePlayer) .param(GAME_TYPE, GameType.NETWORK_GAME.name())) .andDo(print()) .andExpect(status().isOk()) .andExpect(model() .attributeExists(ServerConstants.GAME_UUID)) .andReturn(); long gameUUID = (long) result.getModelAndView().getModelMap() .get(ServerConstants.GAME_UUID); result = this.mockMvc.perform( post(JOIN_GAME).param(GAME_UUID, String.valueOf(gameUUID)) .sessionAttr(ServerConstants.PLAYER, blackPlayer)) .andExpect(status() .isOk()) .andDo(print()).andReturn(); return result; } private AbstractServerChessGame doMove(MvcResult result) throws Exception { ChessBoard board = new ChessBoardFactoryImpl(new SimpleChessBoardSetupNotation()).getChessBoard(CHESSBOARD_CONFIG); Move queenMove = new Move(new Location(B, 1), new Location(B, 6)); AbstractServerChessGame scg = (AbstractServerChessGame)result.getModelAndView().getModel().get("GAME"); scg.getChessGame().setChessBoard(board); scg.move(whitePlayer, queenMove); return scg; } private void send(AbstractServerChessGame serverChessGame) throws Exception { EmailMessageService service = (EmailMessageService)wac.getBean(MESSAGE_SERVICE); User user = getUser(); Future<String> mailresult = service.send(user, getEmailTemplate(serverChessGame)); Future<String> mailresult2 = service.send(user, getPlayerJoinedGameEmailTemplate(serverChessGame)); Future<String> mailresult3 = service.send(user, getPlayerQuitGameEmailTemplate(serverChessGame)); assertEquals(SendMessage.SENT_SUCCESS, mailresult.get()); assertEquals(SendMessage.SENT_SUCCESS, mailresult2.get()); assertEquals(SendMessage.SENT_SUCCESS, mailresult3.get()); } private User getUser() { User user = new User(); user.setEmailAddress(USER_EMAIL_ADDR); user.setUserName(USER_USERNAME); user.setName(USER_FULLNAME); return user; } private EmailTemplate getEmailTemplate(AbstractServerChessGame serverChessGame) throws Exception { EmailTemplate template = factory.getEmailTemplate(ChessGame.class); template.setPlayer(whitePlayer); template.setServerChessGame(serverChessGame); return template; } private EmailTemplate getPlayerQuitGameEmailTemplate(AbstractServerChessGame serverChessGame) { EmailTemplate playerQuitGameEmail = factory.getEmailTemplate(Player.class, ServerGameStatus.FINISHED); playerQuitGameEmail.setPlayer(blackPlayer); playerQuitGameEmail.setServerChessGame(serverChessGame); return playerQuitGameEmail; } private EmailTemplate getPlayerJoinedGameEmailTemplate(AbstractServerChessGame serverChessGame) { EmailTemplate playerJoinedGameEmail = factory.getEmailTemplate(Player.class); playerJoinedGameEmail.setPlayer(blackPlayer); playerJoinedGameEmail.setServerChessGame(serverChessGame); return playerJoinedGameEmail; } }
{ "content_hash": "187d23ee2779f2d0dd690cbf24459ee6", "timestamp": "", "source": "github", "line_count": 217, "max_line_length": 178, "avg_line_length": 38.672811059907836, "alnum_prop": 0.7122259294566253, "repo_name": "subwoofer359/AMCChessGame", "id": "5979f4b95f8f8e7a4962a2ff2d9dfcfd3b74abdd", "size": "8392", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/test/java/org/amc/game/chessserver/messaging/GmailEmailMessagingIT.java", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "12706" }, { "name": "Groovy", "bytes": "143100" }, { "name": "HTML", "bytes": "29454" }, { "name": "Java", "bytes": "768645" }, { "name": "JavaScript", "bytes": "740653" }, { "name": "TypeScript", "bytes": "75088" } ], "symlink_target": "" }
namespace TeleimotBg.Api.Models { using System; using System.ComponentModel.DataAnnotations; // Models used as parameters to AccountController actions. public class AddExternalLoginBindingModel { [Required] [Display(Name = "External access token")] public string ExternalAccessToken { get; set; } } public class ChangePasswordBindingModel { [Required] [DataType(DataType.Password)] [Display(Name = "Current password")] public string OldPassword { get; set; } [Required] [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)] [DataType(DataType.Password)] [Display(Name = "New password")] public string NewPassword { get; set; } [DataType(DataType.Password)] [Display(Name = "Confirm new password")] [Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")] public string ConfirmPassword { get; set; } } public class RegisterBindingModel { [Required] [Display(Name = "Username")] public string Username { get; set; } [Required] [Display(Name = "Email")] public string Email { get; set; } [Required] [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)] [DataType(DataType.Password)] [Display(Name = "Password")] public string Password { get; set; } [DataType(DataType.Password)] [Display(Name = "Confirm password")] [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")] public string ConfirmPassword { get; set; } } public class RegisterExternalBindingModel { [Required] [Display(Name = "Email")] public string Email { get; set; } } public class RemoveLoginBindingModel { [Required] [Display(Name = "Login provider")] public string LoginProvider { get; set; } [Required] [Display(Name = "Provider key")] public string ProviderKey { get; set; } } public class SetPasswordBindingModel { [Required] [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)] [DataType(DataType.Password)] [Display(Name = "New password")] public string NewPassword { get; set; } [DataType(DataType.Password)] [Display(Name = "Confirm new password")] [Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")] public string ConfirmPassword { get; set; } } }
{ "content_hash": "b15cd824da933f3bbb98438a478c2786", "timestamp": "", "source": "github", "line_count": 86, "max_line_length": 110, "avg_line_length": 32.41860465116279, "alnum_prop": 0.6147776183644189, "repo_name": "Malkovski/Telerik", "id": "3d854f92955da20829a15fa744bc6cf017b3e387", "size": "2790", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "WebServicesAndCloud/WebApiExam2015/WebApiExam2015/TeleimotBg/Server/TeleimotBg.Api/Models/Accounts/AccountBindingModels.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP", "bytes": "317387" }, { "name": "Batchfile", "bytes": "74" }, { "name": "C#", "bytes": "2923148" }, { "name": "CSS", "bytes": "447114" }, { "name": "CoffeeScript", "bytes": "51" }, { "name": "HTML", "bytes": "679192" }, { "name": "JavaScript", "bytes": "6457999" }, { "name": "Pascal", "bytes": "803213" }, { "name": "PowerShell", "bytes": "1544022" }, { "name": "Puppet", "bytes": "19212" }, { "name": "SQLPL", "bytes": "623" }, { "name": "Shell", "bytes": "74" }, { "name": "XSLT", "bytes": "4159" } ], "symlink_target": "" }
import angr import heapq import struct import claripy from . import rop_utils from . import common from .errors import RopException from .rop_chain import RopChain from .rop_gadget import RopGadget import types import logging from collections import defaultdict l = logging.getLogger("angrop.chain_builder") class ChainBuilder(object): """ This class provides functions to generate common ropchains based on existing gadgets. """ def __init__(self, project, gadgets, duplicates, reg_list, base_pointer, badbytes, roparg_filler): """ Initializes the chain builder. :param project: Angr project :param gadgets: a list of RopGadget gadgets :param duplicates: :param reg_list: A list of multipurpose registers :param base_pointer: The name ("offset") for base pointer register :param badbytes: A list with badbytes, which we should avaoid :param roparg_filler: An integer used when popping superfluous registers """ self.project = project self._gadgets = gadgets # TODO get duplicates differently? self._duplicates = duplicates self._reg_list = reg_list self._base_pointer = base_pointer self.badbytes = badbytes self._roparg_filler = roparg_filler self._syscall_instruction = None if self.project.arch.linux_name == "x86_64": self._syscall_instructions = {b"\x0f\x05"} elif self.project.arch.linux_name == "i386": self._syscall_instructions = {b"\xcd\x80"} self._execve_syscall = None if "unix" in self.project.loader.main_object.os.lower(): if self.project.arch.bits == 64: self._execve_syscall = 59 elif self.project.arch.bits == 32: self._execve_syscall = 11 else: raise RopException("unknown unix platform") # test state self._test_symbolic_state = rop_utils.make_symbolic_state(self.project, self._reg_list) # filtered gadget cache self._filtered_reg_gadgets = None def set_regs(self, modifiable_memory_range=None, use_partial_controllers=False, rebase_regs=None, **registers): """ :param registers: dict of registers to values :return: a chain which will set the registers to the requested values example: chain = rop.set_regs(rax=0x1234, rcx=0x41414141) """ if len(registers) == 0: return RopChain(self.project, self) if rebase_regs is None: rebase_regs = set() gadgets, best_stack_change, _ = self._find_reg_setting_gadgets(modifiable_memory_range, use_partial_controllers, **registers) if gadgets is None: raise RopException("Couldn't set registers :(") return self._build_reg_setting_chain(gadgets, modifiable_memory_range, registers, best_stack_change, rebase_regs) # TODO handle mess ups by _find_reg_setting_gadgets and see if we can set a register in a syscall preamble # or if a register value is explicitly set to just the right value def do_syscall(self, syscall_num, arguments, ignore_registers=None, modifiable_memory_range=None, use_partial_controllers=False, rebase_regs=None, needs_return=True): """ build a rop chain which performs the requested system call with the arguments set to 'registers' before the call is made :param syscall_num: the syscall number to execute :param arguments: the register values to have set at system call time :param ignore_registers: list of registers which shouldn't be set :return: a RopChain which makes the system with the requested register contents """ registers = {} if ignore_registers is None: ignore_registers = [] # set the system call number registers[self.project.arch.register_names[self.project.arch.syscall_num_offset]] = syscall_num cc = angr.SYSCALL_CC[self.project.arch.name]["default"](self.project.arch) # distinguish register arguments from stack arguments register_arguments = arguments stack_arguments = [] if len(arguments) > len(cc.ARG_REGS): register_arguments = arguments[:len(cc.ARG_REGS)] stack_arguments = arguments[len(cc.ARG_REGS):] for arg, reg in zip(register_arguments, cc.ARG_REGS): registers[reg] = arg # remove any registers which have been asked to be ignored for reg in ignore_registers: if reg in registers: del registers[reg] # first find gadgets to the set the registers chain = self.set_regs(modifiable_memory_range, use_partial_controllers, rebase_regs, **registers) # find small stack change syscall gadget that also fits the stack arguments we want smallest = None for gadget in filter(lambda g: g.starts_with_syscall, self._gadgets): # adjust stack change for ret stack_change = gadget.stack_change - self.project.arch.bytes required_space = len(stack_arguments) * self.project.arch.bytes if stack_change >= required_space: if smallest is None or gadget.stack_change < smallest.stack_change: smallest = gadget if smallest is None and not needs_return: syscall_locs = self._get_syscall_locations() if len(syscall_locs) > 0: smallest = RopGadget(syscall_locs[0]) smallest.block_length = self.project.factory.block(syscall_locs[0]).size smallest.stack_change = self.project.arch.bits if smallest is None: raise RopException("No suitable syscall gadgets found") chosen_gadget = smallest # add the gadget to the chain chain.add_gadget(chosen_gadget) # now we'll just pad it out with zeroes, in the future we'll probably want a way to be smart about # the next gadget in the chain # add the syscall gadget's address chain.add_value(chosen_gadget.addr, needs_rebase=True) # remove one word to account for the ret padding_bytes = chosen_gadget.stack_change - self.project.arch.bytes bytes_per_pop = self.project.arch.bytes # reverse stack_arguments list to make pushing them onto the stack easy stack_arguments = stack_arguments[::-1] for _ in range(max(padding_bytes // bytes_per_pop, len(stack_arguments))): try: val = stack_arguments.pop() except IndexError: val = self._get_fill_val() chain.add_value(val, needs_rebase=False) return chain def write_to_mem(self, addr, string_data, fill_byte=b"\xff"): """ :param addr: address to store the string :param string_data: string to store :param fill_byte: a byte to use to fill up the string if necessary :return: a rop chain """ if not (isinstance(fill_byte, bytes) and len(fill_byte) == 1): print("fill_byte is not a one byte string, aborting") return # create a dict of bytes per write to gadgets # assume we need intersection of addr_dependencies and data_dependencies to be 0 # TODO could allow mem_reads as long as we control the address? possible_gadgets = set() for g in self._gadgets: if len(g.mem_reads) + len(g.mem_changes) > 0 or len(g.mem_writes) != 1: continue if g.bp_moves_to_sp: continue if g.stack_change <= 0: continue if self._containsbadbytes(g): continue for m_access in g.mem_writes: if len(m_access.addr_controllers) > 0 and len(m_access.data_controllers) > 0 and \ len(set(m_access.addr_controllers) & set(m_access.data_controllers)) == 0: possible_gadgets.add(g) # get the data from trying to set all the registers registers = dict((reg, 0x41) for reg in self._reg_list) l.debug("getting reg data for mem writes") _, _, reg_data = self._find_reg_setting_gadgets(max_stack_change=0x50, **registers) l.debug("trying mem_write gadgets") # limit the maximum size of the chain best_stack_change = 0x400 best_gadget = None for t, vals in reg_data.items(): if vals[1] >= best_stack_change: continue for g in possible_gadgets: mem_write = g.mem_writes[0] if (set(mem_write.addr_dependencies) | set(mem_write.data_dependencies)).issubset(set(t)): stack_change = g.stack_change + vals[1] bytes_per_write = mem_write.data_size // 8 num_writes = (len(string_data) + bytes_per_write - 1)//bytes_per_write stack_change *= num_writes if stack_change < best_stack_change: best_gadget = g best_stack_change = stack_change # try again using partial_controllers use_partial_controllers = False best_stack_change = 0x400 if best_gadget is None: use_partial_controllers = True l.warning("Trying to use partial controllers for memory write") l.debug("getting reg data for mem writes") _, _, reg_data = self._find_reg_setting_gadgets(max_stack_change=0x50, use_partial_controllers=True, **registers) l.debug("trying mem_write gadgets") for t, vals in reg_data.items(): if vals[1] >= best_stack_change: continue for g in possible_gadgets: mem_write = g.mem_writes[0] # we need the addr to not be partially controlled if (set(mem_write.addr_dependencies) | set(mem_write.data_dependencies)).issubset(set(t)) and \ len(set(mem_write.addr_dependencies) & vals[3]) == 0: stack_change = g.stack_change + vals[1] # only one byte at a time bytes_per_write = 1 num_writes = (len(string_data) + bytes_per_write - 1)//bytes_per_write stack_change *= num_writes if stack_change < best_stack_change: best_gadget = g best_stack_change = stack_change if best_gadget is None: raise RopException("Couldnt set registers for any memory write gadget") mem_write = best_gadget.mem_writes[0] bytes_per_write = mem_write.data_size//8 if not use_partial_controllers else 1 l.debug("Now building the mem write chain") # build the chain chain = RopChain(self.project, self) for i in range(0, len(string_data), bytes_per_write): to_write = string_data[i: i+bytes_per_write] # pad if needed if len(to_write) < bytes_per_write: to_write += fill_byte * (bytes_per_write-len(to_write)) chain = chain + self._write_to_mem_with_gadget(best_gadget, addr + i, to_write, use_partial_controllers) return chain def add_to_mem(self, addr, value, data_size=None): """ :param addr: the address to add to :param value: the value to add :param data_size: the size of the data for the add (defaults to project.arch.bits) :return: A chain which will do [addr] += value Example: chain = rop.add_to_mem(0x8048f124, 0x41414141) """ # assume we need intersection of addr_dependencies and data_dependencies to be 0 # TODO could allow mem_reads as long as we control the address? if data_size is None: data_size = self.project.arch.bits possible_gadgets = set() for g in self._gadgets: if len(g.mem_reads) + len(g.mem_writes) > 0 or len(g.mem_changes) != 1: continue if g.bp_moves_to_sp: continue if g.stack_change <= 0: continue if self._containsbadbytes(g): continue for m_access in g.mem_changes: if len(m_access.addr_controllers) > 0 and len(m_access.data_controllers) > 0 and \ len(set(m_access.addr_controllers) & set(m_access.data_controllers)) == 0 and \ (m_access.op == "__add__" or m_access.op == "__sub__") and m_access.data_size == data_size: possible_gadgets.add(g) # get the data from trying to set all the registers registers = dict((reg, 0x41) for reg in self._reg_list) l.debug("getting reg data for mem adds") _, _, reg_data = self._find_reg_setting_gadgets(max_stack_change=0x50, **registers) l.debug("trying mem_add gadgets") best_stack_change = 0xffffffff best_gadget = None for t, vals in reg_data.items(): if vals[1] >= best_stack_change: continue for g in possible_gadgets: mem_change = g.mem_changes[0] if (set(mem_change.addr_dependencies) | set(mem_change.data_dependencies)).issubset(set(t)): stack_change = g.stack_change + vals[1] if stack_change < best_stack_change: best_gadget = g best_stack_change = stack_change if best_gadget is None: raise RopException("Couldnt set registers for any memory add gadget") l.debug("Now building the mem add chain") # build the chain chain = self._change_mem_with_gadget(best_gadget, addr, data_size, difference=value) return chain def write_to_mem_v2(self, addr, data): """ :param addr: address to store the string :param data: string to store :return: a rop chain """ # assume we need intersection of addr_dependencies and data_dependencies to be 0 # TODO could allow mem_reads as long as we control the address? # TODO implement better, allow adding a single byte repeatedly possible_gadgets = set() for g in self._gadgets: if len(g.mem_reads) + len(g.mem_writes) > 0 or len(g.mem_changes) != 1: continue if g.bp_moves_to_sp: continue if g.stack_change <= 0: continue if self._containsbadbytes(g): continue for m_access in g.mem_changes: if len(m_access.addr_controllers) > 0 and len(m_access.data_controllers) > 0 and \ len(set(m_access.addr_controllers) & set(m_access.data_controllers)) == 0 and \ (m_access.op == "__or__" or m_access.op == "__and__"): possible_gadgets.add(g) # get the data from trying to set all the registers registers = dict((reg, 0x41) for reg in self._reg_list) l.debug("getting reg data for mem adds") _, _, reg_data = self._find_reg_setting_gadgets(max_stack_change=0x50, **registers) l.debug("trying mem_add gadgets") best_stack_change = 0xffffffff best_gadget = None for t, vals in reg_data.items(): if vals[1] >= best_stack_change: continue for g in possible_gadgets: mem_change = g.mem_changes[0] if (set(mem_change.addr_dependencies) | set(mem_change.data_dependencies)).issubset(set(t)): stack_change = g.stack_change + vals[1] bytes_per_write = mem_change.data_size//8 stack_change *= bytes_per_write if stack_change < best_stack_change: best_gadget = g best_stack_change = stack_change if best_gadget is None: raise RopException("Couldnt set registers for any memory add gadget") l.debug("Now building the mem const chain") mem_change = best_gadget.mem_changes[0] bytes_per_write = mem_change.data_size//8 # build the chain if mem_change.op == "__or__": final_value = -1 elif mem_change.op == "__and__": final_value = 0 else: raise Exception("This shouldn't happen") chain = RopChain(self.project, self) for i in range(0, len(data), bytes_per_write): chain = chain + self._change_mem_with_gadget(best_gadget, addr + i, mem_change.data_size, final_val=final_value) # FIXME for other adds for i in range(0, len(data), 4): to_write = data[i: i+4] # pad if needed if len(to_write) < 4: to_write += b"\xff" * (4-len(to_write)) to_add = struct.unpack("<I", to_write)[0] - final_value chain += self.add_to_mem(addr+i, to_add, 32) return chain def execve(self, target=None, addr_for_str=None): syscall_locs = self._get_syscall_locations() if len(syscall_locs) == 0: l.warning("No syscall instruction available, but I'll still try to make the rest of the payload for fun") if target is None: target = b"/bin/sh\x00" if target[-1] != 0: target += b"\x00" if addr_for_str is None: # get the max writable addr max_write_addr = max(s.max_addr for s in self.project.loader.main_object.segments if s.is_writable) # page align up max_write_addr = (max_write_addr + 0x1000 - 1) // 0x1000 * 0x1000 addr_for_str = max_write_addr - 0x40 l.warning("writing to %#x", addr_for_str) chain = self.write_to_mem(addr_for_str, target) use_partial_controllers = False try: chain2 = self.do_syscall(self._execve_syscall, [addr_for_str, 0, 0], use_partial_controllers=use_partial_controllers, needs_return=False) except RopException: # Try to use partial controllers use_partial_controllers = True l.warning("Trying to use partial controllers for syscall") chain2 = self.do_syscall(self._execve_syscall, [addr_for_str, 0, 0], use_partial_controllers=use_partial_controllers, needs_return=False) result = chain + chain2 return result def func_call(self, address, args, use_partial_controllers=False): """ :param address: address or name of function to call :param args: a list/tuple of arguments to the function :return: a rop chain """ # is it a symbol? if isinstance(address, str): symbol = address symobj = self.project.loader.main_object.get_symbol(symbol) if hasattr(self.project.loader.main_object, 'plt') and address in self.project.loader.main_object.plt: address = self.project.loader.main_object.plt[symbol] elif symobj is not None: address = symobj.rebased_addr else: raise RopException("Symbol passed to func_call does not exist in the binary") cc = angr.DEFAULT_CC[self.project.arch.name](self.project.arch) # register arguments registers = {} register_arguments = args stack_arguments = [] if len(args) > len(cc.ARG_REGS): register_arguments = args[:len(cc.ARG_REGS)] stack_arguments = args[len(cc.ARG_REGS):] for reg, arg in zip(cc.ARG_REGS, register_arguments): registers[reg] = arg if len(registers) > 0: chain = self.set_regs(use_partial_controllers=use_partial_controllers, **registers) else: chain = RopChain(self.project, self) # stack arguments bytes_per_arg = self.project.arch.bytes # find the smallest stack change stack_cleaner = None if len(stack_arguments) > 0: for g in self._gadgets: if self._containsbadbytes(g): continue if len(g.mem_reads) > 0 or len(g.mem_writes) > 0 or len(g.mem_changes) > 0: continue if g.stack_change >= bytes_per_arg * (len(stack_arguments) + 1): if stack_cleaner is None or g.stack_change < stack_cleaner.stack_change: stack_cleaner = g chain.add_value(address, needs_rebase=True) if stack_cleaner is not None: chain.add_value(stack_cleaner.addr, needs_rebase=True) chain.add_gadget(stack_cleaner) for arg in stack_arguments: chain.add_value(arg, needs_rebase=False) if stack_cleaner is not None: for _ in range(stack_cleaner.stack_change // bytes_per_arg - len(stack_arguments) - 1): chain.add_value(self._get_fill_val(), needs_rebase=False) return chain @staticmethod def _has_same_effects(g, g2): for attr in g.__dict__: # don't check property, or methods if hasattr(g.__class__, attr) and isinstance(getattr(g.__class__, attr), property): continue if isinstance(getattr(g, attr), types.MethodType): continue if attr == "addr": continue if attr == "stack_change": continue if getattr(g, attr) != getattr(g2, attr): return False return True @staticmethod def _filter_duplicates_helper(gadgets): gadgets_copy = list() for g in gadgets: good = True for g2 in gadgets: if g.stack_change > g2.stack_change and ChainBuilder._has_same_effects(g, g2): good = False break elif g.stack_change == g2.stack_change and g.addr > g2.addr and ChainBuilder._has_same_effects(g, g2): good = False break if good: gadgets_copy.append(g) return gadgets_copy @staticmethod def _filter_duplicates(gadgets): gadget_dict = defaultdict(set) for g in gadgets: t = (tuple(sorted(g.popped_regs)), tuple(sorted(g.changed_regs))) gadget_dict[t].add(g) gadgets = set() for v in gadget_dict.values(): gadgets.update(ChainBuilder._filter_duplicates_helper(v)) gadgets = ChainBuilder._filter_duplicates_helper(gadgets) return gadgets def _check_if_sufficient_partial_control(self, gadget, reg, value): # doesnt change it if reg not in gadget.changed_regs: return False # does syscall if gadget.makes_syscall: return False # can be controlled completely, not a partial control if reg in gadget.reg_controllers or reg in gadget.popped_regs: return False # make sure the register doesnt depend on itself if reg in gadget.reg_dependencies and reg in gadget.reg_dependencies[reg]: return False # make sure the gadget doesnt pop bp if gadget.bp_moves_to_sp: return False # set the register state = self._test_symbolic_state.copy() state.registers.store(reg, 0) state.regs.ip = gadget.addr # store A's past the end of the stack state.memory.store(state.regs.sp + gadget.stack_change, state.solver.BVV(b"A"*0x100)) succ = rop_utils.step_to_unconstrained_successor(project=self.project, state=state) # successor if succ.ip is succ.registers.load(reg): return False if succ.solver.solution(succ.registers.load(reg), value): # make sure wasnt a symbolic read for var in succ.registers.load(reg).variables: if "symbolic_read" in var: return False return True return False def _get_sufficient_partial_controllers(self, registers): sufficient_partial_controllers = defaultdict(set) for g in self._gadgets: if self._containsbadbytes(g): continue for reg in g.changed_regs: if reg in registers: if self._check_if_sufficient_partial_control(g, reg, registers[reg]): sufficient_partial_controllers[reg].add(g) return sufficient_partial_controllers @staticmethod def _get_updated_controlled_regs(gadget, regs, data_tuple, partial_controllers, modifiable_memory_range=None): g = gadget start_regs = set(regs) partial_regs = data_tuple[3] usable_regs = start_regs - partial_regs end_regs = set(start_regs) # skip ones that change memory if no modifiable_memory_addr if modifiable_memory_range is None and \ (len(g.mem_reads) > 0 or len(g.mem_writes) > 0 or len(g.mem_changes) > 0): return set(), set() elif modifiable_memory_range is not None: # check if we control all the memory reads/writes/changes all_mem_accesses = g.mem_changes + g.mem_reads + g.mem_writes mem_accesses_controlled = True for m_access in all_mem_accesses: for reg in m_access.addr_dependencies: if reg not in usable_regs: mem_accesses_controlled = False usable_regs -= m_access.addr_dependencies if not mem_accesses_controlled: return set(), set() # analyze all registers that we control for reg in g.changed_regs: end_regs.discard(reg) partial_regs.discard(reg) # for any reg that can be fully controlled check if we control its dependencies for reg in g.reg_controllers.keys(): has_deps = True for dep in g.reg_dependencies[reg]: if dep not in usable_regs: has_deps = False if has_deps: for dep in g.reg_dependencies[reg]: end_regs.discard(dep) usable_regs.discard(dep) end_regs.add(reg) else: end_regs.discard(reg) # for all the changed regs that we dont fully control, we see if the partial control is good enough for reg in set(g.changed_regs) - set(g.reg_controllers.keys()): if reg in partial_controllers and g in partial_controllers[reg]: # partial control is good enough so now check if we control all the dependencies if reg not in g.reg_dependencies or set(g.reg_dependencies[reg]).issubset(usable_regs): # we control all the dependencies add it and remove them from the usable regs partial_regs.add(reg) end_regs.add(reg) if reg in g.reg_dependencies: usable_regs -= set(g.reg_dependencies[reg]) end_regs -= set(g.reg_dependencies[reg]) for reg in g.popped_regs: end_regs.add(reg) return end_regs, partial_regs def _get_single_ret(self): # start with a ret instruction ret_addr = None for g in self._gadgets: if self._containsbadbytes(g): continue if len(g.changed_regs) == 0 and len(g.mem_writes) == 0 and \ len(g.mem_reads) == 0 and len(g.mem_changes) == 0 and \ g.stack_change == self.project.arch.bytes: ret_addr = g.addr break return ret_addr @staticmethod def _filter_reg_setting_gadgets_helper(gadgets): good_gadgets = [] for g in gadgets: is_good = True num_mem_changes = len(g.mem_writes) + len(g.mem_reads) + len(g.mem_changes) # make sure there are no strictly better gadgets for g2 in gadgets: num_mem_changes2 = len(g2.mem_writes) + len(g2.mem_reads) + len(g2.mem_changes) if len(g.reg_controllers) == 0 and len(g2.reg_controllers) == 0 and g.popped_regs == g2.popped_regs \ and g.reg_controllers == g2.reg_controllers and g.reg_dependencies == g2.reg_dependencies \ and g.changed_regs == g2.changed_regs and g.bp_moves_to_sp == g2.bp_moves_to_sp: if num_mem_changes == 0 and num_mem_changes2 == 0: if g.stack_change > g2.stack_change: is_good = False if g.stack_change == g2.stack_change and g.block_length > g2.block_length: is_good = False if num_mem_changes2 == 0 and num_mem_changes > 0 and g.stack_change >= g2.stack_change: is_good = False if not is_good: continue # make sure we don't already have one that is as good for g2 in good_gadgets: num_mem_changes2 = len(g2.mem_writes) + len(g2.mem_reads) + len(g2.mem_changes) if g2.stack_change <= g.stack_change and g.reg_controllers == g2.reg_controllers \ and g.reg_dependencies == g2.reg_dependencies and g2.changed_regs.issubset(g.changed_regs) \ and g.popped_regs.issubset(g2.changed_regs) and num_mem_changes == 0 and num_mem_changes2 == 0 \ and g.bp_moves_to_sp == g2.bp_moves_to_sp: is_good = False if is_good: good_gadgets.append(g) return good_gadgets def _filter_reg_setting_gadgets(self, gadgets): to_remove = set() for dups in self._duplicates: for i, addr in enumerate(dups): if i != 0: to_remove.add(addr) gadgets = [g for g in gadgets if g.addr not in to_remove and not self._containsbadbytes(g)] gadgets = [g for g in gadgets if len(g.popped_regs) != 0 or len(g.reg_controllers) != 0] gadget_dict = defaultdict(set) for g in gadgets: t = (tuple(sorted(g.popped_regs)), tuple(sorted(g.changed_regs))) gadget_dict[t].add(g) gadgets = set() for v in gadget_dict.values(): gadgets.update(self._filter_reg_setting_gadgets_helper(v)) gadgets = self._filter_reg_setting_gadgets_helper(gadgets) return gadgets def _get_syscall_locations(self): """ :return: all the locations in the binary with a syscall instruction """ addrs = [] for segment in self.project.loader.main_object.segments: if segment.is_executable: num_bytes = segment.max_addr + 1 - segment.min_addr read_bytes = self.project.loader.memory.load(segment.min_addr, num_bytes) for syscall_instruction in self._syscall_instructions: for loc in common.str_find_all(read_bytes, syscall_instruction): addrs.append(loc + segment.min_addr) return sorted(addrs) def _build_reg_setting_chain(self, gadgets, modifiable_memory_range, register_dict, stack_change, rebase_regs): """ This function figures out the actual values needed in the chain for a particular set of gadgets and register values This is done by stepping a symbolic state through each gadget then constraining the final registers to the values that were requested """ # create a symbolic state test_symbolic_state = rop_utils.make_symbolic_state(self.project, self._reg_list) addrs = [g.addr for g in gadgets] addrs.append(test_symbolic_state.solver.BVS("next_addr", self.project.arch.bits)) arch_bytes = self.project.arch.bytes arch_endness = self.project.arch.memory_endness # emulate a 'pop pc' of the first gadget state = test_symbolic_state state.regs.ip = addrs[0] # the stack pointer must begin pointing to our first gadget state.add_constraints(state.memory.load(state.regs.sp, arch_bytes, endness=arch_endness) == addrs[0]) # push the stack pointer down, like a pop would do state.regs.sp += arch_bytes state.solver._solver.timeout = 5000 # step through each gadget # for each gadget, constrain memory addresses and add constraints for the successor for addr in addrs[1:]: succ = rop_utils.step_to_unconstrained_successor(self.project, state) state.add_constraints(succ.regs.ip == addr) # constrain reads/writes for a in succ.log.actions: if a.type == "mem" and a.addr.ast.symbolic: if modifiable_memory_range is None: raise RopException("Symbolic memory address when there shouldnt have been") test_symbolic_state.add_constraints(a.addr.ast >= modifiable_memory_range[0]) test_symbolic_state.add_constraints(a.addr.ast < modifiable_memory_range[1]) test_symbolic_state.add_constraints(succ.regs.ip == addr) # get to the unconstrained successor state = rop_utils.step_to_unconstrained_successor(self.project, state) # re-adjuest the stack pointer sp = test_symbolic_state.regs.sp sp -= arch_bytes bytes_per_pop = arch_bytes # constrain the final registers rebase_state = test_symbolic_state.copy() for r, v in register_dict.items(): test_symbolic_state.add_constraints(state.registers.load(r) == v) # to handle register values that should depend on the binary base address if len(rebase_regs) > 0: for r, v in register_dict.items(): if r in rebase_regs: rebase_state.add_constraints(state.registers.load(r) == (v + 0x41414141)) else: rebase_state.add_constraints(state.registers.load(r) == v) # constrain the "filler" values if self._roparg_filler is not None: for i in range(stack_change // bytes_per_pop): sym_word = test_symbolic_state.memory.load(sp + bytes_per_pop*i, bytes_per_pop, endness=self.project.arch.memory_endness) # check if we can constrain val to be the roparg_filler if test_symbolic_state.solver.satisfiable((sym_word == self._roparg_filler,)) and \ rebase_state.solver.satisfiable((sym_word == self._roparg_filler,)): # constrain the val to be the roparg_filler test_symbolic_state.add_constraints(sym_word == self._roparg_filler) rebase_state.add_constraints(sym_word == self._roparg_filler) # create the ropchain res = RopChain(self.project, self, state=test_symbolic_state.copy()) for g in gadgets: res.add_gadget(g) # iterate through the stack values that need to be in the chain gadget_addrs = [g.addr for g in gadgets] for i in range(stack_change // bytes_per_pop): sym_word = test_symbolic_state.memory.load(sp + bytes_per_pop*i, bytes_per_pop, endness=self.project.arch.memory_endness) val = test_symbolic_state.solver.eval(sym_word) if len(rebase_regs) > 0: val2 = rebase_state.solver.eval(rebase_state.memory.load(sp + bytes_per_pop*i, bytes_per_pop, endness=self.project.arch.memory_endness)) if (val2 - val) & (2**self.project.arch.bits - 1) == 0x41414141: res.add_value(val, needs_rebase=True) elif val == val2 and len(gadget_addrs) > 0 and val == gadget_addrs[0]: res.add_value(val, needs_rebase=True) gadget_addrs = gadget_addrs[1:] elif val == val2: res.add_value(sym_word, needs_rebase=False) else: raise RopException("Rebase Failed") else: if len(gadget_addrs) > 0 and val == gadget_addrs[0]: res.add_value(val, needs_rebase=True) gadget_addrs = gadget_addrs[1:] else: res.add_value(sym_word, needs_rebase=False) if len(gadget_addrs) > 0: raise RopException("Didnt find all gadget addresses, something must've broke") return res # todo allow user to specify rop chain location so that we can use read_mem gadgets to load values # todo allow specify initial regs or dont clobber regs # todo memcopy(from_addr, to_addr, len) # todo handle "leave" then try to do a mem write on chess from codegate-finals def _find_reg_setting_gadgets(self, modifiable_memory_range=None, use_partial_controllers=False, max_stack_change=None, **registers): """ Finds a list of gadgets which set the desired registers This method currently only handles simple cases and will be improved later :param registers: :return: """ if modifiable_memory_range is not None and len(modifiable_memory_range) != 2: raise Exception("modifiable_memory_range should be a tuple (low, high)") # check keys search_regs = set() for reg in registers.keys(): search_regs.add(reg) if reg not in self._reg_list: raise RopException("Register %s not in reg list" % reg) # lets try doing a graph search to set registers, something like dijkstra's for minimum length # find gadgets with sufficient partial control partial_controllers = dict() for r in registers.keys(): partial_controllers[r] = set() if use_partial_controllers: partial_controllers = self._get_sufficient_partial_controllers(registers) # filter reg setting gadgets if self._filtered_reg_gadgets is None or len(self._filtered_reg_gadgets) == 0: l.debug("filtering") self._filtered_reg_gadgets = self._filter_reg_setting_gadgets(set(self._gadgets)) gadgets = set(self._filtered_reg_gadgets) for s in partial_controllers.values(): gadgets.update(s) gadgets = list(gadgets) if modifiable_memory_range is None: gadgets = [g for g in gadgets if len(g.mem_changes) == 0 and len(g.mem_writes) == 0 and len(g.mem_reads) == 0] l.debug("finding best gadgets") # each key is tuple of sorted registers # use tuple (prev, total_stack_change, gadget, partial_controls) data = dict() to_process = list() to_process.append((0, ())) visited = set() data[()] = (None, 0, None, set()) best_stack_change = 0xffffffff best_reg_tuple = None while to_process: regs = heapq.heappop(to_process)[1] if regs in visited: continue visited.add(regs) if data[regs][1] >= best_stack_change: continue if max_stack_change is not None and data[regs][1] > max_stack_change: continue for g in gadgets: # ignore gadgets which make a syscall when setting regs if g.makes_syscall: continue # ignore gadgets which don't have a positive stack change if g.stack_change <= 0: continue if self._containsbadbytes(g): continue stack_change = data[regs][1] new_stack_change = stack_change + g.stack_change # if its longer than the best ignore if new_stack_change >= best_stack_change: continue # ignore base pointer moves for now if g.bp_moves_to_sp: continue # ignore if we only change controlled regs start_regs = set(regs) if g.changed_regs.issubset(start_regs - data[regs][3]): continue end_regs, partial_regs = self._get_updated_controlled_regs(g, regs, data[regs], partial_controllers, modifiable_memory_range) # if we control any new registers try adding it end_reg_tuple = tuple(sorted(end_regs)) npartial = len(partial_regs) if len(end_regs - start_regs) > 0: # if we havent seen that tuple before, or payload is shorter or less partially controlled regs. end_data = data.get(end_reg_tuple, None) if end_reg_tuple not in data or \ (new_stack_change < end_data[1] and npartial <= len(end_data[3])) or \ (npartial < len(end_data[3])): # it improves the graph so add it data[end_reg_tuple] = (regs, new_stack_change, g, partial_regs) heapq.heappush(to_process, (new_stack_change, end_reg_tuple)) if search_regs.issubset(end_regs): if new_stack_change < best_stack_change: best_stack_change = new_stack_change best_reg_tuple = end_reg_tuple # if the best_reg_tuple is None then we failed to set the desired registers :( if best_reg_tuple is None: return None, None, data # get the actual addresses gadgets_reverse = [] curr_tuple = best_reg_tuple while curr_tuple != (): gadgets_reverse.append(data[curr_tuple][2]) curr_tuple = data[curr_tuple][0] gadgets = gadgets_reverse[::-1] return gadgets, best_stack_change, data def _write_to_mem_with_gadget(self, gadget, addr, data, use_partial_controllers=False): # sanity check for simple gadget if len(gadget.mem_writes) != 1 or len(gadget.mem_reads) + len(gadget.mem_changes) > 0: raise RopException("too many memory accesses for my lazy implementation") if use_partial_controllers and len(data) < self.project.arch.bytes: data = data.ljust(self.project.arch.bytes, b"\x00") arch_bytes = self.project.arch.bytes arch_endness = self.project.arch.memory_endness # constrain the successor to be at the gadget # emulate 'pop pc' test_state = self._test_symbolic_state.copy() rop_utils.make_reg_symbolic(test_state, self._base_pointer) test_state.regs.ip = gadget.addr test_state.add_constraints( test_state.memory.load(test_state.regs.sp, arch_bytes, endness=arch_endness) == gadget.addr) test_state.regs.sp += arch_bytes # step the gadget pre_gadget_state = test_state state = rop_utils.step_to_unconstrained_successor(self.project, pre_gadget_state) # constrain the write mem_write = gadget.mem_writes[0] the_action = None for a in state.history.actions.hardcopy: if a.type != "mem" or a.action != "write": continue if set(rop_utils.get_ast_dependency(a.addr.ast)) == set(mem_write.addr_dependencies) or \ set(rop_utils.get_ast_dependency(a.data.ast)) == set(mem_write.data_dependencies): the_action = a break if the_action is None: raise RopException("Couldn't find the matching action") # constrain the addr test_state.add_constraints(the_action.addr.ast == addr) pre_gadget_state.add_constraints(the_action.addr.ast == addr) pre_gadget_state.options.discard(angr.options.AVOID_MULTIVALUED_WRITES) state = rop_utils.step_to_unconstrained_successor(self.project, pre_gadget_state) # constrain the data test_state.add_constraints(state.memory.load(addr, len(data)) == test_state.solver.BVV(data)) # get the actual register values all_deps = list(mem_write.addr_dependencies) + list(mem_write.data_dependencies) reg_vals = dict() for reg in set(all_deps): reg_vals[reg] = test_state.solver.eval(test_state.registers.load(reg)) chain = self.set_regs(use_partial_controllers=use_partial_controllers, **reg_vals) chain.add_gadget(gadget) bytes_per_pop = self.project.arch.bytes chain.add_value(gadget.addr, needs_rebase=True) for _ in range(gadget.stack_change // bytes_per_pop - 1): chain.add_value(self._get_fill_val(), needs_rebase=False) return chain def _change_mem_with_gadget(self, gadget, addr, data_size, final_val=None, difference=None): # sanity check for simple gadget if len(gadget.mem_writes) + len(gadget.mem_changes) != 1 or len(gadget.mem_reads) != 0: raise RopException("too many memory accesses for my lazy implementation") if (final_val is not None and difference is not None) or (final_val is None and difference is None): raise RopException("must specify difference or final value and not both") arch_bytes = self.project.arch.bytes arch_endness = self.project.arch.memory_endness # constrain the successor to be at the gadget # emulate 'pop pc' test_state = self._test_symbolic_state.copy() rop_utils.make_reg_symbolic(test_state, self._base_pointer) if difference is not None: test_state.memory.store(addr, test_state.solver.BVV(~difference, data_size)) if final_val is not None: test_state.memory.store(addr, test_state.solver.BVV(~final_val, data_size)) test_state.regs.ip = gadget.addr test_state.add_constraints( test_state.memory.load(test_state.regs.sp, arch_bytes, endness=arch_endness) == gadget.addr) test_state.regs.sp += arch_bytes # step the gadget pre_gadget_state = test_state state = rop_utils.step_to_unconstrained_successor(self.project, pre_gadget_state) # constrain the change mem_change = gadget.mem_changes[0] the_action = None for a in state.history.actions.hardcopy: if a.type != "mem" or a.action != "write": continue if set(rop_utils.get_ast_dependency(a.addr.ast)) == set(mem_change.addr_dependencies): the_action = a break if the_action is None: raise RopException("Couldn't find the matching action") # constrain the addr test_state.add_constraints(the_action.addr.ast == addr) pre_gadget_state.add_constraints(the_action.addr.ast == addr) pre_gadget_state.options.discard(angr.options.AVOID_MULTIVALUED_WRITES) pre_gadget_state.options.discard(angr.options.AVOID_MULTIVALUED_READS) state = rop_utils.step_to_unconstrained_successor(self.project, pre_gadget_state) # constrain the data if final_val is not None: test_state.add_constraints(state.memory.load(addr, data_size//8, endness=arch_endness) == test_state.solver.BVV(final_val, data_size)) if difference is not None: test_state.add_constraints(state.memory.load(addr, data_size//8, endness=arch_endness) - test_state.memory.load(addr, data_size//8, endness=arch_endness) == test_state.solver.BVV(difference, data_size)) # get the actual register values all_deps = list(mem_change.addr_dependencies) + list(mem_change.data_dependencies) reg_vals = dict() for reg in set(all_deps): reg_vals[reg] = test_state.solver.eval(test_state.registers.load(reg)) chain = self.set_regs(**reg_vals) chain.add_gadget(gadget) bytes_per_pop = self.project.arch.bytes chain.add_value(gadget.addr, needs_rebase=True) for _ in range(gadget.stack_change // bytes_per_pop - 1): chain.add_value(self._get_fill_val(), needs_rebase=False) return chain def _get_fill_val(self): if self._roparg_filler is not None: return self._roparg_filler else: return claripy.BVS("filler", self.project.arch.bits) def _set_badbytes(self, badbytes): self.badbytes = badbytes def _set_roparg_filler(self, roparg_filler): self._roparg_filler = roparg_filler # inspired by ropper def _containsbadbytes(self, gadget): n_bytes = self.project.arch.bytes addr = gadget.addr for b in self.badbytes: address = addr if type(b) == str: b = ord(b) for _ in range(n_bytes): if (address & 0xff) == b: return True address >>= 8 # should also be able to do execve by providing writable memory # todo pivot stack # todo pass values to setregs as symbolic variables # todo progress bar still sucky
{ "content_hash": "67d0dadf4e3ce3220cd738f3f74706b1", "timestamp": "", "source": "github", "line_count": 1133, "max_line_length": 120, "avg_line_length": 44.49514563106796, "alnum_prop": 0.5756253347350881, "repo_name": "salls/angrop", "id": "bc9d4cd7d551048bb380aa1399384057e0c3a012", "size": "50413", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "angrop/chain_builder.py", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "Python", "bytes": "128435" } ], "symlink_target": "" }
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.fonsleenaars</groupId> <artifactId>Dota2Sprites</artifactId> <version>1.0</version> <packaging>jar</packaging> <dependencies> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.7.2</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.7.2</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.3.6</version> <type>jar</type> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.4</version> </dependency> </dependencies> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> </properties> </project>
{ "content_hash": "d262f04e90898984cf0456c42037964d", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 204, "avg_line_length": 40.611111111111114, "alnum_prop": 0.6176470588235294, "repo_name": "fonsleenaars/dota2-sprites-java", "id": "7205d5ad65a6f5f078db1d44a5030d0f3ed33f60", "size": "1462", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "pom.xml", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "10296" } ], "symlink_target": "" }
from openerp import models, fields, api class Wizard(models.TransientModel): _name = 'openacademy.wizard' def _default_session(self): return self.env['openacademy.session'].browse(self._context.get('active_id')) session_wiz_id = fields.Many2one('openacademy.session', string="Session", required=True, default=_default_session) attendee_wiz_ids = fields.Many2many('res.partner', string="Attendees") @api.multi def subscribe(self): self.session_wiz_id.attendee_ids |= self.attendee_wiz_ids return {}
{ "content_hash": "55cdaab4938eb90f252cc1709065e521", "timestamp": "", "source": "github", "line_count": 16, "max_line_length": 85, "avg_line_length": 34.875, "alnum_prop": 0.6863799283154122, "repo_name": "Frankdesantiago/openacademy-proyect", "id": "21acaabc14c93ebdfaeb273b8c585760cbfb7351", "size": "583", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "openacademy/wizard/openacademy_wizard.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Python", "bytes": "7577" } ], "symlink_target": "" }
FeaturePromoSpecification::AcceleratorInfo::AcceleratorInfo() = default; FeaturePromoSpecification::AcceleratorInfo::AcceleratorInfo( const AcceleratorInfo& other) = default; FeaturePromoSpecification::AcceleratorInfo::~AcceleratorInfo() = default; FeaturePromoSpecification::AcceleratorInfo::AcceleratorInfo(ValueType value) : value_(value) {} FeaturePromoSpecification::AcceleratorInfo& FeaturePromoSpecification::AcceleratorInfo::operator=( const AcceleratorInfo& other) = default; FeaturePromoSpecification::AcceleratorInfo& FeaturePromoSpecification::AcceleratorInfo::operator=(ValueType value) { value_ = value; return *this; } FeaturePromoSpecification::AcceleratorInfo::operator bool() const { return absl::holds_alternative<ui::Accelerator>(value_) || absl::get<int>(value_); } ui::Accelerator FeaturePromoSpecification::AcceleratorInfo::GetAccelerator( const ui::AcceleratorProvider* provider) const { if (absl::holds_alternative<ui::Accelerator>(value_)) return absl::get<ui::Accelerator>(value_); const int command_id = absl::get<int>(value_); DCHECK_GT(command_id, 0); ui::Accelerator result; DCHECK(provider->GetAcceleratorForCommandId(command_id, &result)); return result; } // static constexpr FeaturePromoSpecification::BubbleArrow FeaturePromoSpecification::kDefaultBubbleArrow; FeaturePromoSpecification::FeaturePromoSpecification() = default; FeaturePromoSpecification::FeaturePromoSpecification( FeaturePromoSpecification&& other) : feature_(std::exchange(other.feature_, nullptr)), promo_type_(std::exchange(other.promo_type_, PromoType::kUnspecifiied)), anchor_element_id_( std::exchange(other.anchor_element_id_, ui::ElementIdentifier())), anchor_element_filter_(std::move(other.anchor_element_filter_)), bubble_body_string_id_(std::exchange(other.bubble_body_string_id_, 0)), bubble_title_text_(std::move(other.bubble_title_text_)), bubble_icon_(std::exchange(other.bubble_icon_, nullptr)), bubble_arrow_(std::exchange(other.bubble_arrow_, kDefaultBubbleArrow)), screen_reader_string_id_( std::exchange(other.screen_reader_string_id_, 0)), screen_reader_accelerator_( std::exchange(other.screen_reader_accelerator_, AcceleratorInfo())) {} FeaturePromoSpecification::~FeaturePromoSpecification() = default; FeaturePromoSpecification& FeaturePromoSpecification::operator=( FeaturePromoSpecification&& other) { if (this != &other) { feature_ = std::exchange(other.feature_, nullptr); promo_type_ = std::exchange(other.promo_type_, PromoType::kUnspecifiied); anchor_element_id_ = std::exchange(other.anchor_element_id_, ui::ElementIdentifier()); anchor_element_filter_ = std::move(other.anchor_element_filter_); bubble_body_string_id_ = std::exchange(other.bubble_body_string_id_, 0); bubble_title_text_ = std::move(other.bubble_title_text_); bubble_icon_ = std::exchange(other.bubble_icon_, nullptr); bubble_arrow_ = std::exchange(other.bubble_arrow_, kDefaultBubbleArrow); screen_reader_string_id_ = std::exchange(other.screen_reader_string_id_, 0); screen_reader_accelerator_ = std::exchange(other.screen_reader_accelerator_, AcceleratorInfo()); } return *this; } // static FeaturePromoSpecification FeaturePromoSpecification::CreateForToastPromo( const base::Feature& feature, ui::ElementIdentifier anchor_element_id, int body_text_string_id, int accessible_text_string_id, AcceleratorInfo accessible_accelerator) { FeaturePromoSpecification spec(&feature, PromoType::kToast, anchor_element_id, body_text_string_id); spec.screen_reader_string_id_ = accessible_text_string_id; spec.screen_reader_accelerator_ = std::move(accessible_accelerator); return spec; } // static FeaturePromoSpecification FeaturePromoSpecification::CreateForSnoozePromo( const base::Feature& feature, ui::ElementIdentifier anchor_element_id, int body_text_string_id) { return FeaturePromoSpecification(&feature, PromoType::kSnooze, anchor_element_id, body_text_string_id); } // static FeaturePromoSpecification FeaturePromoSpecification::CreateForLegacyPromo( const base::Feature* feature, ui::ElementIdentifier anchor_element_id, int body_text_string_id) { return FeaturePromoSpecification(feature, PromoType::kLegacy, anchor_element_id, body_text_string_id); } FeaturePromoSpecification& FeaturePromoSpecification::SetBubbleTitleText( int title_text_string_id) { DCHECK_NE(promo_type_, PromoType::kUnspecifiied); bubble_title_text_ = l10n_util::GetStringUTF16(title_text_string_id); return *this; } FeaturePromoSpecification& FeaturePromoSpecification::SetBubbleIcon( const gfx::VectorIcon* bubble_icon) { DCHECK_NE(promo_type_, PromoType::kUnspecifiied); bubble_icon_ = bubble_icon; return *this; } FeaturePromoSpecification& FeaturePromoSpecification::SetBubbleArrow( BubbleArrow bubble_arrow) { bubble_arrow_ = bubble_arrow; return *this; } FeaturePromoSpecification& FeaturePromoSpecification::SetAnchorElementFilter( AnchorElementFilter anchor_element_filter) { anchor_element_filter_ = std::move(anchor_element_filter); return *this; } ui::TrackedElement* FeaturePromoSpecification::GetAnchorElement( ui::ElementContext context) const { auto* const element_tracker = ui::ElementTracker::GetElementTracker(); return anchor_element_filter_ ? anchor_element_filter_.Run( element_tracker->GetAllMatchingElements( anchor_element_id_, context)) : element_tracker->GetFirstMatchingElement( anchor_element_id_, context); } FeaturePromoSpecification::FeaturePromoSpecification( const base::Feature* feature, PromoType promo_type, ui::ElementIdentifier anchor_element_id, int bubble_body_string_id) : feature_(feature), promo_type_(promo_type), anchor_element_id_(anchor_element_id), bubble_body_string_id_(bubble_body_string_id) { DCHECK_NE(promo_type, PromoType::kUnspecifiied); DCHECK(bubble_body_string_id_); }
{ "content_hash": "b40c1abd6471cb416ed3378fce14bb25", "timestamp": "", "source": "github", "line_count": 157, "max_line_length": 80, "avg_line_length": 40.35031847133758, "alnum_prop": 0.7194948697711129, "repo_name": "ric2b/Vivaldi-browser", "id": "f458db3d4617242ed6336501ebf791dd768d9ec3", "size": "6779", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "chromium/chrome/browser/ui/user_education/feature_promo_specification.cc", "mode": "33188", "license": "bsd-3-clause", "language": [], "symlink_target": "" }
using System; namespace Jasper.Pulsar { public class InvalidPulsarUriException : Exception { public InvalidPulsarUriException(Uri actualUri) : base($"Invalid Jasper Pulsar Uri '{actualUri}'. Should be of form 'pulsar://persistent/non-persistent/tenant/namespace/topic'") { } } }
{ "content_hash": "ed6450c64b915ea687b1bdf6266c4e81", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 185, "avg_line_length": 28.727272727272727, "alnum_prop": 0.689873417721519, "repo_name": "JasperFx/jasper", "id": "c136c2bc97b42ad3c19a0aa25061b8adb9cb648f", "size": "316", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/Jasper.Pulsar/InvalidPulsarUriException.cs", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "357" }, { "name": "C#", "bytes": "2043884" }, { "name": "PowerShell", "bytes": "297" }, { "name": "Ruby", "bytes": "7354" }, { "name": "Shell", "bytes": "98" } ], "symlink_target": "" }
<!DOCTYPE html><html lang="en"><head><title>test/merge</title></head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"><meta name="groc-relative-root" content="../"><meta name="groc-document-path" content="test/merge"><meta name="groc-project-path" content="test/merge.js"><link rel="stylesheet" type="text/css" media="all" href="../assets/style.css"><script type="text/javascript" src="../assets/behavior.js"></script><body><div id="meta"><div class="file-path">test/merge.js</div></div><div id="document"><div class="segment"><div class="code"><div class="wrapper"><span class="hljs-keyword">import</span> test <span class="hljs-keyword">from</span> <span class="hljs-string">"tape"</span>; <span class="hljs-keyword">import</span> merge <span class="hljs-keyword">from</span> <span class="hljs-string">"../src/merge"</span>; test(<span class="hljs-string">"merge"</span>, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">t</span>) </span>{ t.plan(<span class="hljs-number">2</span>); t.deepEqual(merge([{ name: <span class="hljs-string">"Jesus"</span> }], [{ age: <span class="hljs-number">30</span> }]), [ { name: <span class="hljs-string">"Jesus"</span>, age: <span class="hljs-number">30</span> } ]); t.deepEqual( merge([{ name: <span class="hljs-string">"Jesus"</span> }, { name: <span class="hljs-string">"John"</span> }], [{ age: <span class="hljs-number">30</span> }, { age: <span class="hljs-number">29</span> }]), [ { name: <span class="hljs-string">"Jesus"</span>, age: <span class="hljs-number">30</span> }, { name: <span class="hljs-string">"John"</span>, age: <span class="hljs-number">29</span> } ] ); });</div></div></div></div></body></html>
{ "content_hash": "3fc02098f5737277350cb9d5490e5a9d", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 817, "avg_line_length": 74.34615384615384, "alnum_prop": 0.6352819451629591, "repo_name": "FunctionFoundry/functionfoundry", "id": "66cd1c0c72fe0013e9973b23a485d68656691167", "size": "1933", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "docs/test/test/merge.html", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "181208" } ], "symlink_target": "" }
using namespace ci; using namespace ci::app; using namespace std; struct LightApp : public AppBasic, StateMachine<LightApp> { LightApp(); void prepareSettings(Settings *settings); void setup(); void shutdown(); void setupOsc(); void keyUp(KeyEvent event); void update(); void draw(); }; // extern int mElapsedLoopCount; extern float mLastFramesec; extern float mElapsedFramesec; extern float mRandomColorIndex; extern int mHour; extern int mCurrentHour; extern Anim<float> mGlobalAlpha; // for fade-in / fade-out extern float mLastKinectMsgSeconds; struct AnimSquence { vector<Channel> seqs[2]; }; enum { kIdleAnimCount = 10, kKinectAnimCount = 3, kTotalAnimCount = kIdleAnimCount + kKinectAnimCount + 1 }; extern AnimSquence mAnims[kTotalAnimCount]; struct KinectBullet { KinectBullet(float wavingSpeed); void update(); void get(Channel* globe, Channel* wall); bool isFinished() const; float length; bool mIsFinished; AnimSquence* kinectSeq; float index; }; extern list<KinectBullet> mKinectBullets; extern Channel mFinalChannels[2]; extern bool mIsInteractive; extern int mCurrentAnim; extern int ANIMATION; extern int mCurrentFrame; extern int mProbeConfig; extern struct Config* mCurrentConfig;
{ "content_hash": "4ed284a0d00bd187b860864cb44707c8", "timestamp": "", "source": "github", "line_count": 72, "max_line_length": 62, "avg_line_length": 20.13888888888889, "alnum_prop": 0.6551724137931034, "repo_name": "jing-interactive/Cinder-portfolio", "id": "6076d836dfe94cde4d57938c4ad6656fa2ee6c0a", "size": "1645", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "HugeSpaceLight-Shanghai-G9/src/LightApp.h", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "1506" }, { "name": "C", "bytes": "466592" }, { "name": "C++", "bytes": "1900983" }, { "name": "Cuda", "bytes": "112150" }, { "name": "GLSL", "bytes": "48532" }, { "name": "JavaScript", "bytes": "16386" }, { "name": "Objective-C", "bytes": "106163" }, { "name": "Processing", "bytes": "1689" } ], "symlink_target": "" }
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ro_RO" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About THcoin</source> <translation>Despre THcoin</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;THcoin&lt;/b&gt; version</source> <translation>Versiune &lt;b&gt;THcoin&lt;/b&gt;</translation> </message> <message> <location line="+41"/> <source>Copyright © 2009-2014 The Bitcoin developers Copyright © 2012-2014 The NovaCoin developers Copyright © 2014 The THcoin developers</source> <translation>Copyright © 2009-2014 The Bitcoin developers Copyright © 2012-2014 The NovaCoin developers Copyright © 2014 The THcoin developers</translation> </message> <message> <location line="+15"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source> <translation> Acesta este un software experimental. Distribuit sub licența MIT/X11, vezi fișierul însoțitor COPYING sau http://www.opensource.org/licenses/mit-license.php. Acest produs include programe dezvoltate de către OpenSSL Project pentru a fi folosite în OpenSSL Toolkit (http://www.openssl.org/) și programe criptografice scrise de către Eric Young ([email protected]) și programe UPnP scrise de către Thomas Bernard.</translation> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>Agendă</translation> </message> <message> <location line="+22"/> <source>Double-click to edit address or label</source> <translation>Dublu-click pentru a edita adresa sau eticheta</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Creează o adresă nouă</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Copiază adresa selectată în clipboard</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation>Adresă nouă</translation> </message> <message> <location line="-46"/> <source>These are your THcoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation>Acestea sunt adresele THcoin pentru a primi plăți. Poate doriți sa dați o adresa noua fiecarui expeditor pentru a putea ține evidența la cine efectuează plăti.</translation> </message> <message> <location line="+60"/> <source>&amp;Copy Address</source> <translation>&amp;Copiază adresa</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation>Arată cod &amp;QR</translation> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a THcoin address</source> <translation>Semnează un mesaj pentru a dovedi că dețineti o adresă THcoin</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>Semnează &amp;Mesajul</translation> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation>Sterge adresele curent selectate din lista</translation> </message> <message> <location line="-14"/> <source>Verify a message to ensure it was signed with a specified THcoin address</source> <translation>Verifică un mesaj pentru a vă asigura că a fost semnat cu o anumită adresă THcoin</translation> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation>&amp;Verifică mesajul</translation> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>Ște&amp;rge</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+65"/> <source>Copy &amp;Label</source> <translation>Copiază &amp;eticheta</translation> </message> <message> <location line="+2"/> <source>&amp;Edit</source> <translation>&amp;Editează</translation> </message> <message> <location line="+250"/> <source>Export Address Book Data</source> <translation>Exportă datele din Agendă</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Valori separate prin virgulă (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>Eroare la exportare</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Nu s-a putut scrie în fișier %1.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>Etichetă</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Adresă</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(fără etichetă)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation>Dialogul pentru fraza de acces</translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Introdu fraza de acces</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Frază de acces nouă</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Repetă noua frază de acces</translation> </message> <message> <location line="+33"/> <source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source> <translation>Servește pentru a dezactiva sendmoneyl atunci când sistemul de operare este compromis. Nu oferă nicio garanție reală.</translation> </message> <message> <location line="+3"/> <source>For staking only</source> <translation>Doar pentru staking</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+35"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Introdu noua parolă a portofelului electronic.&lt;br/&gt;Te rog folosește &lt;b&gt;minim 10 caractere aleatoare&lt;/b&gt;, sau &lt;b&gt;minim 8 cuvinte&lt;/b&gt;.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Criptează portofelul</translation> </message> <message> <location line="+7"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Această acțiune necesită fraza ta de acces pentru deblocarea portofelului.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Deblochează portofelul</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Această acțiune necesită fraza ta de acces pentru decriptarea portofelului.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Decriptează portofelul.</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Schimbă fraza de acces</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Introdu vechea și noua parolă pentru portofel.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Confirmă criptarea portofelului</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR COINS&lt;/b&gt;!</source> <translation>Atentie: Daca encriptezi portofelul si iti uiti parola, &lt;b&gt;VEI PIERDE TOATA MONEDELE&lt;/b&gt;!</translation> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>Sunteţi sigur că doriţi să criptaţi portofelul electronic?</translation> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation>IMPORTANT: Orice copie de siguranta facuta in prealabil portofelului dumneavoastra ar trebui inlocuita cu cea generata cel mai recent fisier criptat al portofelului. Pentru siguranta, copiile de siguranta vechi ale portofelului ne-criptat vor deveni inutile de indata ce veti incepe folosirea noului fisier criptat al portofelului.</translation> </message> <message> <location line="+103"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation>Atentie! Caps Lock este pornit</translation> </message> <message> <location line="-133"/> <location line="+60"/> <source>Wallet encrypted</source> <translation>Portofel criptat</translation> </message> <message> <location line="-58"/> <source>THcoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source> <translation>THcoin se va inchide pentru a termina procesul de encriptie. Amintiți-vă, criptarea portofelul dumneavoastră nu poate proteja pe deplin monedele dvs. de a fi furate de infectarea cu malware a computerului.</translation> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+44"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>Criptarea portofelului a eșuat</translation> </message> <message> <location line="-56"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Criptarea portofelului a eșuat din cauza unei erori interne. Portofelul tău nu a fost criptat.</translation> </message> <message> <location line="+7"/> <location line="+50"/> <source>The supplied passphrases do not match.</source> <translation>Frazele de acces introduse nu se potrivesc.</translation> </message> <message> <location line="-38"/> <source>Wallet unlock failed</source> <translation>Deblocarea portofelului a eșuat</translation> </message> <message> <location line="+1"/> <location line="+12"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Fraza de acces introdusă pentru decriptarea portofelului a fost incorectă.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Decriptarea portofelului a eșuat</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>Parola portofelului electronic a fost schimbată.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+282"/> <source>Sign &amp;message...</source> <translation>Semnează &amp;mesaj...</translation> </message> <message> <location line="+251"/> <source>Synchronizing with network...</source> <translation>Se sincronizează cu rețeaua...</translation> </message> <message> <location line="-319"/> <source>&amp;Overview</source> <translation>&amp;Imagine de ansamblu</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>Arată o stare generală de ansamblu a portofelului</translation> </message> <message> <location line="+17"/> <source>&amp;Transactions</source> <translation>&amp;Tranzacții</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>Răsfoiește istoricul tranzacțiilor</translation> </message> <message> <location line="+5"/> <source>&amp;Address Book</source> <translation>Agendă</translation> </message> <message> <location line="+1"/> <source>Edit the list of stored addresses and labels</source> <translation>Editează lista de adrese si etichete stocate</translation> </message> <message> <location line="-13"/> <source>&amp;Receive coins</source> <translation>Primește monede</translation> </message> <message> <location line="+1"/> <source>Show the list of addresses for receiving payments</source> <translation>Arată lista de adrese pentru primire plăți</translation> </message> <message> <location line="-7"/> <source>&amp;Send coins</source> <translation>&amp;Trimite monede</translation> </message> <message> <location line="+35"/> <source>E&amp;xit</source> <translation>&amp;Ieșire</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Închide aplicația</translation> </message> <message> <location line="+6"/> <source>Show information about THcoin</source> <translation>Arată informații despre THcoin</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>Despre &amp;Qt</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Arată informații despre Qt</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;Setări...</translation> </message> <message> <location line="+4"/> <source>&amp;Encrypt Wallet...</source> <translation>Criptează portofelul electronic...</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>&amp;Fă o copie de siguranță a portofelului...</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>S&amp;chimbă parola...</translation> </message> <message numerus="yes"> <location line="+259"/> <source>~%n block(s) remaining</source> <translation><numerusform>~%n bloc rămas</numerusform><numerusform>~%n blocuri rămase</numerusform><numerusform>~%n blocuri rămase</numerusform></translation> </message> <message> <location line="+6"/> <source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source> <translation>Descărcat %1 din %2 blocuri din istoricul tranzacțiilor(%3% terminat).</translation> </message> <message> <location line="-256"/> <source>&amp;Export...</source> <translation>&amp;Exportă</translation> </message> <message> <location line="-64"/> <source>Send coins to a THcoin address</source> <translation>Trimite monede către o adresă THcoin</translation> </message> <message> <location line="+47"/> <source>Modify configuration options for THcoin</source> <translation>Modifică opțiuni de configurare pentru THcoin</translation> </message> <message> <location line="+18"/> <source>Export the data in the current tab to a file</source> <translation>Exportă datele din tab-ul curent într-un fișier</translation> </message> <message> <location line="-14"/> <source>Encrypt or decrypt wallet</source> <translation>Criptează sau decriptează portofelul</translation> </message> <message> <location line="+3"/> <source>Backup wallet to another location</source> <translation>Creează o copie de rezervă a portofelului într-o locație diferită</translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>Schimbă fraza de acces folosită pentru criptarea portofelului</translation> </message> <message> <location line="+10"/> <source>&amp;Debug window</source> <translation>Fereastră &amp;debug</translation> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation>Deschide consola de debug și diagnosticare</translation> </message> <message> <location line="-5"/> <source>&amp;Verify message...</source> <translation>&amp;Verifică mesajul...</translation> </message> <message> <location line="-202"/> <source>THcoin</source> <translation>THcoin</translation> </message> <message> <location line="+0"/> <source>Wallet</source> <translation>Portofelul</translation> </message> <message> <location line="+180"/> <source>&amp;About THcoin</source> <translation>Despre THcoin</translation> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation>Arata/Ascunde</translation> </message> <message> <location line="+9"/> <source>Unlock wallet</source> <translation>Deblochează portofelul</translation> </message> <message> <location line="+1"/> <source>&amp;Lock Wallet</source> <translation>Blochează portofelul</translation> </message> <message> <location line="+1"/> <source>Lock wallet</source> <translation>Blochează portofelul</translation> </message> <message> <location line="+35"/> <source>&amp;File</source> <translation>&amp;Fișier</translation> </message> <message> <location line="+8"/> <source>&amp;Settings</source> <translation>&amp;Setări</translation> </message> <message> <location line="+8"/> <source>&amp;Help</source> <translation>A&amp;jutor</translation> </message> <message> <location line="+12"/> <source>Tabs toolbar</source> <translation>Bara de file</translation> </message> <message> <location line="+8"/> <source>Actions toolbar</source> <translation>Bara de instrumente Actiuni</translation> </message> <message> <location line="+13"/> <location line="+9"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> <message> <location line="+0"/> <location line="+60"/> <source>THcoin client</source> <translation>Clientul THcoin</translation> </message> <message numerus="yes"> <location line="+75"/> <source>%n active connection(s) to THcoin network</source> <translation><numerusform>%n conexiune activă la reteaua THcoin</numerusform><numerusform>%n conexiuni active la reteaua THcoin</numerusform><numerusform>%n conexiuni active la reteaua THcoin</numerusform></translation> </message> <message> <location line="+40"/> <source>Downloaded %1 blocks of transaction history.</source> <translation>Descărcat %1 blocuri din istoricul tranzacțiilor.</translation> </message> <message> <location line="+413"/> <source>Staking.&lt;br&gt;Your weight is %1&lt;br&gt;Network weight is %2&lt;br&gt;Expected time to earn reward is %3</source> <translation>Staking. &lt;br&gt;Greutatea este %1&lt;br&gt;Greutatea retelei este %2&lt;br&gt;Timp estimat pentru a castiga recompensa este %3</translation> </message> <message> <location line="+6"/> <source>Not staking because wallet is locked</source> <translation>Nu este in modul stake deoarece portofelul este blocat</translation> </message> <message> <location line="+2"/> <source>Not staking because wallet is offline</source> <translation>Nu este in modul stake deoarece portofelul este offline</translation> </message> <message> <location line="+2"/> <source>Not staking because wallet is syncing</source> <translation>Nu este in modul stake deoarece portofelul se sincronizeaza</translation> </message> <message> <location line="+2"/> <source>Not staking because you don&apos;t have mature coins</source> <translation>Nu este in modul stake deoarece nu sunt destule monede maturate</translation> </message> <message numerus="yes"> <location line="-403"/> <source>%n second(s) ago</source> <translation><numerusform>%n secundă în urmă</numerusform><numerusform>%n secunde în urmă</numerusform><numerusform>%n secunde în urmă</numerusform></translation> </message> <message> <location line="-312"/> <source>About THcoin card</source> <translation>Despre cardul THcoin</translation> </message> <message> <location line="+1"/> <source>Show information about THcoin card</source> <translation>Arată informații despre card THcoin</translation> </message> <message> <location line="+18"/> <source>&amp;Unlock Wallet...</source> <translation>&amp;Deblochează portofelul</translation> </message> <message numerus="yes"> <location line="+297"/> <source>%n minute(s) ago</source> <translation><numerusform>%n minut în urmă</numerusform><numerusform>%n minute în urmă</numerusform><numerusform>%n minute în urmă</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n hour(s) ago</source> <translation><numerusform>%n oră în urmă</numerusform><numerusform>%n ore în urmă</numerusform><numerusform>%n ore în urmă</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s) ago</source> <translation><numerusform>%n zi în urmă</numerusform><numerusform>%n zile în urmă</numerusform><numerusform>%n zile în urmă</numerusform></translation> </message> <message> <location line="+6"/> <source>Up to date</source> <translation>Actualizat</translation> </message> <message> <location line="+7"/> <source>Catching up...</source> <translation>Se actualizează...</translation> </message> <message> <location line="+10"/> <source>Last received block was generated %1.</source> <translation>Ultimul bloc primit a fost generat %1.</translation> </message> <message> <location line="+59"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation>Această tranzactie este peste limita admisa. Puteți sa trimiteți pentru o taxa de 1%, care este pentru nodurile care proceseaza tranzactia si ajuta la sprijinirea retelei. Vrei să plătești taxa?</translation> </message> <message> <location line="+5"/> <source>Confirm transaction fee</source> <translation>Confirmă comisinoul tranzacției</translation> </message> <message> <location line="+27"/> <source>Sent transaction</source> <translation>Tranzacție expediată</translation> </message> <message> <location line="+1"/> <source>Incoming transaction</source> <translation>Tranzacție recepționată</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Data: %1 Suma: %2 Tipul: %3 Adresa: %4 </translation> </message> <message> <location line="+100"/> <location line="+15"/> <source>URI handling</source> <translation>Manipulare URI</translation> </message> <message> <location line="-15"/> <location line="+15"/> <source>URI can not be parsed! This can be caused by an invalid THcoin address or malformed URI parameters.</source> <translation>URI nu poate fi parsatt! Cauza poate fi o adresa THcoin invalidă sau parametrii URI malformați.</translation> </message> <message> <location line="+18"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Portofelul este &lt;b&gt;criptat&lt;/b&gt; iar în momentul de față este &lt;b&gt;deblocat&lt;/b&gt;</translation> </message> <message> <location line="+10"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>Portofelul este &lt;b&gt;criptat&lt;/b&gt; iar în momentul de față este &lt;b&gt;blocat&lt;/b&gt;</translation> </message> <message> <location line="+25"/> <source>Backup Wallet</source> <translation>Fă o copie de siguranță a portofelului</translation> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation>Date portofel(*.dat)</translation> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation>Copia de rezerva a esuat</translation> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation>Eroare la încercarea de a salva datele portofelului în noua locaţie.</translation> </message> <message numerus="yes"> <location line="+76"/> <source>%n second(s)</source> <translation><numerusform>%n secundă</numerusform><numerusform>%n secunde</numerusform><numerusform>%n secunde</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n minute(s)</source> <translation><numerusform>%n minut</numerusform><numerusform>%n minute</numerusform><numerusform>%n minute</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n hour(s)</source> <translation><numerusform>%n oră</numerusform><numerusform>%n ore</numerusform><numerusform>%n ore</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation><numerusform>%n zi</numerusform><numerusform>%n zile</numerusform><numerusform>%n zile</numerusform></translation> </message> <message> <location line="+18"/> <source>Not staking</source> <translation>Not staking</translation> </message> <message> <location filename="../bitcoin.cpp" line="+109"/> <source>A fatal error occurred. THcoin can no longer continue safely and will quit.</source> <translation>A apărut o eroare fatală. THcoin nu mai poate continua în condiții de siguranță și va iesi.</translation> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+90"/> <source>Network Alert</source> <translation>Alertă rețea</translation> </message> </context> <context> <name>CoinControlDialog</name> <message> <location filename="../forms/coincontroldialog.ui" line="+14"/> <source>Coin Control</source> <translation>Controlează moneda</translation> </message> <message> <location line="+31"/> <source>Quantity:</source> <translation>Cantitate:</translation> </message> <message> <location line="+32"/> <source>Bytes:</source> <translation>Octeţi:</translation> </message> <message> <location line="+48"/> <source>Amount:</source> <translation>Sumă:</translation> </message> <message> <location line="+32"/> <source>Priority:</source> <translation>Prioritate:</translation> </message> <message> <location line="+48"/> <source>Fee:</source> <translation>Taxa:</translation> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation>Ieşire minimă: </translation> </message> <message> <location filename="../coincontroldialog.cpp" line="+551"/> <source>no</source> <translation>nu</translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="+51"/> <source>After Fee:</source> <translation>După taxe:</translation> </message> <message> <location line="+35"/> <source>Change:</source> <translation>Schimb:</translation> </message> <message> <location line="+69"/> <source>(un)select all</source> <translation>(de)selectaţi tot</translation> </message> <message> <location line="+13"/> <source>Tree mode</source> <translation>Modul arborescent</translation> </message> <message> <location line="+16"/> <source>List mode</source> <translation>Modul lista</translation> </message> <message> <location line="+45"/> <source>Amount</source> <translation>Sumă</translation> </message> <message> <location line="+5"/> <source>Label</source> <translation>Etichetă</translation> </message> <message> <location line="+5"/> <source>Address</source> <translation>Adresă</translation> </message> <message> <location line="+5"/> <source>Date</source> <translation>Data</translation> </message> <message> <location line="+5"/> <source>Confirmations</source> <translation>Confirmări</translation> </message> <message> <location line="+3"/> <source>Confirmed</source> <translation>Confirmat</translation> </message> <message> <location line="+5"/> <source>Priority</source> <translation>Prioritate</translation> </message> <message> <location filename="../coincontroldialog.cpp" line="-515"/> <source>Copy address</source> <translation>Copiază adresa</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Copiază eticheta</translation> </message> <message> <location line="+1"/> <location line="+26"/> <source>Copy amount</source> <translation>Copiază suma</translation> </message> <message> <location line="-25"/> <source>Copy transaction ID</source> <translation>Copiază ID tranzacție</translation> </message> <message> <location line="+24"/> <source>Copy quantity</source> <translation>Copiaţi quantitea</translation> </message> <message> <location line="+2"/> <source>Copy fee</source> <translation>Copiaţi taxele</translation> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation>Copiaţi după taxe</translation> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation>Copiaţi octeţi</translation> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation>Copiaţi prioritatea</translation> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation>Copiaţi ieşire minimă:</translation> </message> <message> <location line="+1"/> <source>Copy change</source> <translation>Copiaţi schimb</translation> </message> <message> <location line="+317"/> <source>highest</source> <translation>cel mai mare</translation> </message> <message> <location line="+1"/> <source>high</source> <translation>mare</translation> </message> <message> <location line="+1"/> <source>medium-high</source> <translation>marime medie</translation> </message> <message> <location line="+1"/> <source>medium</source> <translation>mediu</translation> </message> <message> <location line="+4"/> <source>low-medium</source> <translation>mediu-scazut</translation> </message> <message> <location line="+1"/> <source>low</source> <translation>scazut</translation> </message> <message> <location line="+1"/> <source>lowest</source> <translation>cel mai scazut</translation> </message> <message> <location line="+155"/> <source>DUST</source> <translation>DUST</translation> </message> <message> <location line="+0"/> <source>yes</source> <translation>da</translation> </message> <message> <location line="+10"/> <source>This label turns red, if the transaction size is bigger than 10000 bytes. This means a fee of at least %1 per kb is required. Can vary +/- 1 Byte per input.</source> <translation>Aceasta eticheta se inroseste daca marimea tranzactiei este mai mare de 10000 bytes. Acest lucru inseamna ca este nevoie de o taxa de cel putin %1 pe kb Poate varia +/- 1 Byte pe imput.</translation> </message> <message> <location line="+1"/> <source>Transactions with higher priority get more likely into a block. This label turns red, if the priority is smaller than &quot;medium&quot;. This means a fee of at least %1 per kb is required.</source> <translation>Tranzacțiile cu prioritate mai mare ajunge mult mai probabil într-un bloc Aceasta eticheta se inroseste daca prioritatea este mai mica decat &quot;medium&quot; Acest lucru inseamna ca este necesar un comision cel putin de %1 pe kB</translation> </message> <message> <location line="+1"/> <source>This label turns red, if any recipient receives an amount smaller than %1. This means a fee of at least %2 is required. Amounts below 0.546 times the minimum relay fee are shown as DUST.</source> <translation>Aceasta eticheta se inroseste daca oricare din contacte primeste o suma mai mica decat %1. Acest lucru inseamna ca un comision de cel putin %2 este necesar. Sume mai mici decat 0.546 ori minimul comisionului de relay sunt afisate ca DUST</translation> </message> <message> <location line="+1"/> <source>This label turns red, if the change is smaller than %1. This means a fee of at least %2 is required.</source> <translation>Această eticheta se înroseste dacă schimbul este mai mic de %1. Acest lucru înseamnă că o taxă de cel puțin %2 este necesară</translation> </message> <message> <location line="+37"/> <location line="+66"/> <source>(no label)</source> <translation>(fără etichetă)</translation> </message> <message> <location line="-9"/> <source>change from %1 (%2)</source> <translation>schimbă la %1(%2)</translation> </message> <message> <location line="+1"/> <source>(change)</source> <translation>(schimb)</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>Editează adresa</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Etichetă</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation>Eticheta asociată cu această intrare în agendă</translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>&amp;Adresă</translation> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation>Adresa asociată cu această intrare în agendă. Acest lucru poate fi modificat numai pentru adresele de trimitere.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+20"/> <source>New receiving address</source> <translation>Noua adresă de primire</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>Noua adresă de trimitere</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>Editează adresa de primire</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>Editează adresa de trimitere</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>Adresa introdusă &quot;%1&quot; se află deja în lista de adrese.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid THcoin address.</source> <translation>Adresa introdusă &quot;%1&quot; nu este o adresă THcoin validă</translation> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Portofelul nu a putut fi deblocat.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>Generarea noii chei a eșuat.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+420"/> <location line="+12"/> <source>THcoin-Qt</source> <translation>THcoin-Qt</translation> </message> <message> <location line="-12"/> <source>version</source> <translation>versiune</translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation>Utilizare:</translation> </message> <message> <location line="+1"/> <source>command-line options</source> <translation>Optiuni linie de comanda</translation> </message> <message> <location line="+4"/> <source>UI options</source> <translation>Setări UI</translation> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation>Setează limba, de exemplu: &quot;de_DE&quot; (inițial: setare locală)</translation> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation>Pornește miniaturizat</translation> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation>Afișează ecran splash la pornire (implicit: 1)</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>Setări</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>&amp;Principal</translation> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source> <translation>Comision de tranzacție opțional pe kB, care vă ajută ca tranzacțiile sa fie procesate rapid. Majoritatea tranzactiilor sunt de 1 kB. Comision de 0.01 recomandat</translation> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation>Plăteşte comision pentru tranzacţie &amp;f</translation> </message> <message> <location line="+31"/> <source>Reserved amount does not participate in staking and is therefore spendable at any time.</source> <translation>Suma rezervată nu participă la maturare și, prin urmare, se poate cheltui în orice moment.</translation> </message> <message> <location line="+15"/> <source>Reserve</source> <translation>Rezervă</translation> </message> <message> <location line="+31"/> <source>Automatically start THcoin after logging in to the system.</source> <translation>Pornește THcoin imdiat după logarea în sistem</translation> </message> <message> <location line="+3"/> <source>&amp;Start THcoin on system login</source> <translation>$Pornește THcoin la logarea în sistem</translation> </message> <message> <location line="+7"/> <source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source> <translation>Detașați bloc și baze de date de adrese la închidere. Acest lucru înseamnă că pot fi mutate într-u alt director de date, dar incetineste închiderea. Portofelul este întotdeauna detașat.</translation> </message> <message> <location line="+3"/> <source>&amp;Detach databases at shutdown</source> <translation>&amp;Detasaza baza de date la inchidere</translation> </message> <message> <location line="+21"/> <source>&amp;Network</source> <translation>&amp;Retea</translation> </message> <message> <location line="+6"/> <source>Automatically open the THcoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>Deschide automat portul pentru cientul THcoin pe router. Aces lucru este posibil doara daca routerul suporta UPnP si este activat</translation> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation>Mapeaza portul folosind &amp;UPnP</translation> </message> <message> <location line="+7"/> <source>Connect to the THcoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation>Conecteaza la reteaua THcoin prinr-un proxy SOCKS(ex. cand te conectezi prin Tor)</translation> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation>Conectează-te printr-un proxy socks</translation> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation>Proxy &amp;IP:</translation> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>Adresa IP a proxy-ului(ex. 127.0.0.1)</translation> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation>&amp;Port:</translation> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>Portul pe care se concetează proxy serverul (de exemplu: 9050)</translation> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation>SOCKS &amp;Versiune:</translation> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation>Versiunea SOCKS a proxiului (ex. 5)</translation> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation>&amp;Fereastra</translation> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation>Afişează doar un icon in tray la ascunderea ferestrei</translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;M Ascunde în tray în loc de taskbar</translation> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation>Ascunde fereastra în locul părăsirii programului în momentul închiderii ferestrei. Când acestă opţiune e activă, aplicaţia se va opri doar în momentul selectării comenzii Quit din menu.</translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation>&amp;i Ascunde fereastra în locul închiderii programului</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>&amp;Afişare</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation>Interfata &amp; limba userului</translation> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting THcoin.</source> <translation>Limba interfeței utilizator poate fi setat aici. Această setare va avea efect după repornirea THcoin.</translation> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>&amp;Unitatea de măsură pentru afişarea sumelor:</translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>Alege subdiviziunea folosită la afişarea interfeţei şi la trimiterea de bitcoin.</translation> </message> <message> <location line="+9"/> <source>Whether to show THcoin addresses in the transaction list or not.</source> <translation>Dacă să arate adrese THcoin din lista de tranzacție sau nu.</translation> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>&amp;Afişează adresele în lista de tranzacţii</translation> </message> <message> <location line="+7"/> <source>Whether to show coin control features or not.</source> <translation>Dacă să se afişeze controlul caracteristicilor monedei sau nu.</translation> </message> <message> <location line="+3"/> <source>Display coin &amp;control features (experts only!)</source> <translation>Afiseaza &amp;caracteristiclei de control ale monedei(numai experti!)</translation> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation>&amp; OK</translation> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>&amp; Renunta</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation>&amp;Aplica</translation> </message> <message> <location filename="../optionsdialog.cpp" line="+55"/> <source>default</source> <translation>Initial</translation> </message> <message> <location line="+149"/> <location line="+9"/> <source>Warning</source> <translation>Avertizare</translation> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting THcoin.</source> <translation>Aceasta setare va avea efect dupa repornirea THcoin.</translation> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation>Adresa bitcoin pe care a-ti specificat-o este invalida</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>Form</translation> </message> <message> <location line="+33"/> <location line="+231"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the THcoin network after a connection is established, but this process has not completed yet.</source> <translation>Informatia afisata poate fi depasita. Portofel se sincronizează automat cu rețeaua THcoin după ce se stabilește o conexiune, dar acest proces nu s-a finalizat încă.</translation> </message> <message> <location line="-160"/> <source>Stake:</source> <translation>Stake:</translation> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation>Neconfirmat:</translation> </message> <message> <location line="-107"/> <source>Wallet</source> <translation>Portofel</translation> </message> <message> <location line="+49"/> <source>Spendable:</source> <translation>Cheltuibil:</translation> </message> <message> <location line="+16"/> <source>Your current spendable balance</source> <translation>Balanța ta curentă de cheltuieli</translation> </message> <message> <location line="+71"/> <source>Immature:</source> <translation>Nematurizat:</translation> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation>Balanta minata care nu s-a maturizat inca</translation> </message> <message> <location line="+20"/> <source>Total:</source> <translation>Total:</translation> </message> <message> <location line="+16"/> <source>Your current total balance</source> <translation>Balanța totală curentă</translation> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Tranzacții recente&lt;/b&gt;</translation> </message> <message> <location line="-108"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation>Total al tranzacțiilor care nu au fost confirmate încă și nu contează față de balanța curentă</translation> </message> <message> <location line="-29"/> <source>Total of coins that was staked, and do not yet count toward the current balance</source> <translation>Totalul de monede care au fost in stake si nu sunt numarate in balanta curenta</translation> </message> <message> <location filename="../overviewpage.cpp" line="+113"/> <location line="+1"/> <source>out of sync</source> <translation>Nu este sincronizat</translation> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation>Dialog cod QR</translation> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation>Cerere de plată</translation> </message> <message> <location line="+56"/> <source>Amount:</source> <translation>Cantitate:</translation> </message> <message> <location line="-44"/> <source>Label:</source> <translation>Etichetă</translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation>Mesaj:</translation> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation>&amp;Salvează ca...</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation>Eroare la codarea URl-ului în cod QR.</translation> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation>Suma introdusă nu este validă, vă rugăm să verificați.</translation> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation>URI rezultat este prea lung, încearcă să reduci textul pentru etichetă / mesaj.</translation> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation>Salvează codul QR</translation> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation>Imagini PNG(*png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation>Nume client</translation> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+348"/> <source>N/A</source> <translation>N/A</translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation>Versiune client</translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>&amp;Informație</translation> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation>Foloseste versiunea OpenSSL</translation> </message> <message> <location line="+49"/> <source>Startup time</source> <translation>Durata pornirii</translation> </message> <message> <location line="+29"/> <source>Network</source> <translation>Rețea</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation>Numărul de conexiuni</translation> </message> <message> <location line="+23"/> <source>On testnet</source> <translation>Pe testnet</translation> </message> <message> <location line="+23"/> <source>Block chain</source> <translation>Lanț de blocuri</translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>Numărul curent de blocuri</translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation>Blocurile totale estimate</translation> </message> <message> <location line="+23"/> <source>Last block time</source> <translation>Data ultimului bloc</translation> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>&amp;Deschide</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation>Optiuni linii de comandă</translation> </message> <message> <location line="+7"/> <source>Show the THcoin-Qt help message to get a list with possible THcoin command-line options.</source> <translation>Afișa mesajul de ajutor THcoin-Qt pentru a obține o listă cu posibile opțiuni de linie de comandă THcoin.</translation> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation>&amp;Arată</translation> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>&amp;Consolă</translation> </message> <message> <location line="-260"/> <source>Build date</source> <translation>Construit la data</translation> </message> <message> <location line="-104"/> <source>THcoin - Debug window</source> <translation>THcoin - fereastră depanare</translation> </message> <message> <location line="+25"/> <source>THcoin Core</source> <translation>THcoin Core</translation> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation>Loguri debug</translation> </message> <message> <location line="+7"/> <source>Open the THcoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation>Deschideti fisierul de depanare THcoin din folderul curent. Acest lucru poate dura cateva secunde pentru fisiere de log mari.</translation> </message> <message> <location line="+102"/> <source>Clear console</source> <translation>Curăță consola</translation> </message> <message> <location filename="../rpcconsole.cpp" line="-33"/> <source>Welcome to the THcoin RPC console.</source> <translation>Bine ati venit la consola THcoin RPC.</translation> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>Foloseste sagetile sus si jos pentru a naviga in istoric si &lt;b&gt;Ctrl-L&lt;/b&gt; pentru a curata.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>Scrie &lt;b&gt;help&lt;/b&gt; pentru a vedea comenzile disponibile</translation> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+182"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>Trimite monede</translation> </message> <message> <location line="+76"/> <source>Coin Control Features</source> <translation>Caracteristici control ale monedei</translation> </message> <message> <location line="+20"/> <source>Inputs...</source> <translation>Intrări</translation> </message> <message> <location line="+7"/> <source>automatically selected</source> <translation>Selectie automatică</translation> </message> <message> <location line="+19"/> <source>Insufficient funds!</source> <translation>Fonduri insuficiente!</translation> </message> <message> <location line="+77"/> <source>Quantity:</source> <translation>Cantitate:</translation> </message> <message> <location line="+22"/> <location line="+35"/> <source>0</source> <translation>0</translation> </message> <message> <location line="-19"/> <source>Bytes:</source> <translation>Octeţi:</translation> </message> <message> <location line="+51"/> <source>Amount:</source> <translation>Sumă:</translation> </message> <message> <location line="+22"/> <location line="+86"/> <location line="+86"/> <location line="+32"/> <source>0.00 BTC</source> <translation>123.456 BTC {0.00 ?}</translation> </message> <message> <location line="-191"/> <source>Priority:</source> <translation>Prioritate:</translation> </message> <message> <location line="+19"/> <source>medium</source> <translation>mediu</translation> </message> <message> <location line="+32"/> <source>Fee:</source> <translation>Taxa:</translation> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation>Ieşire minimă: </translation> </message> <message> <location line="+19"/> <source>no</source> <translation>nu</translation> </message> <message> <location line="+32"/> <source>After Fee:</source> <translation>După taxe:</translation> </message> <message> <location line="+35"/> <source>Change</source> <translation>Schimbă:</translation> </message> <message> <location line="+50"/> <source>custom change address</source> <translation>personalizează schimbarea adresei</translation> </message> <message> <location line="+106"/> <source>Send to multiple recipients at once</source> <translation>Trimite simultan către mai mulți destinatari</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation>&amp;Adaugă destinatar</translation> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation>Scoateți toate câmpuirile de tranzacții</translation> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>Șterge &amp;tot</translation> </message> <message> <location line="+28"/> <source>Balance:</source> <translation>Balanță:</translation> </message> <message> <location line="+16"/> <source>123.456 BTC</source> <translation>123.456 BTC</translation> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>Confirmă operațiunea de trimitere</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>&amp;S Trimite</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-173"/> <source>Enter a THcoin address (e.g. THcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Introduceți o adresă THcoin(ex:THcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> <message> <location line="+15"/> <source>Copy quantity</source> <translation>Copiaţi quantitea</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Copiază suma</translation> </message> <message> <location line="+1"/> <source>Copy fee</source> <translation>Copiaţi taxele</translation> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation>Copiaţi după taxe</translation> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation>Copiaţi octeţi</translation> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation>Copiaţi prioritatea</translation> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation>Copiaţi ieşire minimă:</translation> </message> <message> <location line="+1"/> <source>Copy change</source> <translation>Copiaţi schimb</translation> </message> <message> <location line="+86"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</translation> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>Confirmă trimiterea de monede</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation>Sunteți sigur că doriți să trimiteți %1?</translation> </message> <message> <location line="+0"/> <source> and </source> <translation>și</translation> </message> <message> <location line="+29"/> <source>The recipient address is not valid, please recheck.</source> <translation>Adresa destinatarului nu este validă, vă rugăm să o verificaţi.</translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>Suma de plată trebuie să fie mai mare decât 0.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation>Suma depășește soldul contului.</translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>Totalul depășește soldul contului dacă se include și plata comisionului de %1.</translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>S-a descoperit o adresă care figurează de două ori. Expedierea se poate realiza către fiecare adresă doar o singură dată pe operațiune.</translation> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed.</source> <translation>Eroare: crearea tranzacției a eșuat.</translation> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>Eroare: tranzacția a fost respinsă. Acest lucru s-ar putea întâmpla în cazul în care unele dintre monedele din portofel au fost deja cheltuite, cum si cum ați utilizat o copie a wallet.dat și monedele au fost cheltuite în copie dar nu au fost marcate ca și cheltuite aici.</translation> </message> <message> <location line="+251"/> <source>WARNING: Invalid THcoin address</source> <translation>Atenție: Adresă THcoin invalidă</translation> </message> <message> <location line="+13"/> <source>(no label)</source> <translation>(fără etichetă)</translation> </message> <message> <location line="+4"/> <source>WARNING: unknown change address</source> <translation>ATENTIE: adresa schimb necunoscuta</translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation>Formular</translation> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>Su&amp;mă:</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>Plătește că&amp;tre:</translation> </message> <message> <location line="+24"/> <location filename="../sendcoinsentry.cpp" line="+25"/> <source>Enter a label for this address to add it to your address book</source> <translation>Introdu o etichetă pentru această adresă pentru a fi adăugată în lista ta de adrese</translation> </message> <message> <location line="+9"/> <source>&amp;Label:</source> <translation>&amp;Etichetă:</translation> </message> <message> <location line="+18"/> <source>The address to send the payment to (e.g. THcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Adresa catre care trimiteti plata(ex. THcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> <message> <location line="+10"/> <source>Choose address from address book</source> <translation>Alegeti adresa din agenda</translation> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation>Lipește adresa din clipboard</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation>Scoateti acest destinatar</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a THcoin address (e.g. THcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Introduceți o adresă THcoin(ex:THcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation>Semnatura- Semneaza/verifica un mesaj</translation> </message> <message> <location line="+13"/> <location line="+124"/> <source>&amp;Sign Message</source> <translation>Semneaza Mesajul</translation> </message> <message> <location line="-118"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation>Puteti semna mesaje cu adresa dumneavoastra pentru a demostra ca sunteti proprietarul lor. Aveti grija sa nu semnati nimic vag, deoarece atacurile de tip phishing va pot pacali sa le transferati identitatea. Semnati numai declaratiile detaliate cu care sunteti deacord.</translation> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. THcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Adresa cu care semnati mesajul(ex. THcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> <message> <location line="+10"/> <location line="+203"/> <source>Choose an address from the address book</source> <translation>Alegeti o adresa din agenda</translation> </message> <message> <location line="-193"/> <location line="+203"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="-193"/> <source>Paste address from clipboard</source> <translation>Lipiţi adresa copiată in clipboard.</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation>Introduce mesajul pe care vrei sa il semnezi, aici.</translation> </message> <message> <location line="+24"/> <source>Copy the current signature to the system clipboard</source> <translation>Copiaza semnatura curenta in clipboard-ul sistemului</translation> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this THcoin address</source> <translation>Semnează un mesaj pentru a dovedi că dețineti o adresă THcoin</translation> </message> <message> <location line="+17"/> <source>Reset all sign message fields</source> <translation>Reseteaza toate spatiile mesajelor semnate.</translation> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>Şterge &amp;tot</translation> </message> <message> <location line="-87"/> <location line="+70"/> <source>&amp;Verify Message</source> <translation>Verifica mesajul</translation> </message> <message> <location line="-64"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation>Introduceti adresa de semnatura, mesajul (asigurati-va ca ati copiat spatiile, taburile etc. exact) si semnatura dedesubt pentru a verifica mesajul. Aveti grija sa nu cititi mai mult in semnatura decat mesajul in sine, pentru a evita sa fiti pacaliti de un atac de tip man-in-the-middle.</translation> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. THcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Adresa cu care a fost semnat mesajul(ex. THcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified THcoin address</source> <translation>Verifică un mesaj pentru a vă asigura că a fost semnat cu o anumită adresă THcoin</translation> </message> <message> <location line="+17"/> <source>Reset all verify message fields</source> <translation>Reseteaza toate spatiile mesajelor semnate.</translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a THcoin address (e.g. THcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Introduceți o adresă THcoin(ex:THcoinfwYhBmGXcFP2Po1NpRUEiK8km2)</translation> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation>Click &quot;Semneaza msajul&quot; pentru a genera semnatura</translation> </message> <message> <location line="+3"/> <source>Enter THcoin signature</source> <translation>Introduceti semnatura THcoin</translation> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation>Adresa introdusa nu este valida</translation> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation>Te rugam verifica adresa si introduce-o din nou</translation> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation>Adresa introdusa nu se refera la o cheie.</translation> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation>Blocarea portofelului a fost intrerupta</translation> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation>Cheia privata pentru adresa introdusa nu este valida.</translation> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation>Semnarea mesajului a esuat</translation> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation>Mesaj Semnat!</translation> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation>Aceasta semnatura nu a putut fi decodata</translation> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation>Verifica semnatura si incearca din nou</translation> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation>Semnatura nu seamana!</translation> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation>Verificarea mesajului a esuat</translation> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation>Mesaj verificat</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+19"/> <source>Open until %1</source> <translation>Deschis până la %1</translation> </message> <message numerus="yes"> <location line="-2"/> <source>Open for %n block(s)</source> <translation><numerusform>Deschde pentru încă %1 bloc</numerusform><numerusform>Deschde pentru încă %1 blocuri</numerusform><numerusform>Deschde pentru încă %1 blocuri</numerusform></translation> </message> <message> <location line="+8"/> <source>conflicted</source> <translation>conflictual</translation> </message> <message> <location line="+2"/> <source>%1/offline</source> <translation>%1/deconectat</translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/neconfirmat</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 confirmări</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation>Stare</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation><numerusform>, distribuit prin %n nod</numerusform><numerusform>, distribuit prin %n noduri</numerusform><numerusform>, distribuit prin %n de noduri</numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Data</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation>Sursa</translation> </message> <message> <location line="+0"/> <source>Generated</source> <translation>Generat</translation> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation>De la</translation> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation>Către</translation> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation>Adresa posedata</translation> </message> <message> <location line="-2"/> <source>label</source> <translation>etichetă</translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation>Credit</translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation><numerusform>se maturizează în încă %n bloc</numerusform><numerusform>se maturizează în încă %n blocuri</numerusform><numerusform>se maturizează în încă %n de blocuri</numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation>nu este acceptat</translation> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation>Debit</translation> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation>Comisionul tranzacţiei</translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation>Suma netă</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>Mesaj</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>Comentarii</translation> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation>ID-ul tranzactiei</translation> </message> <message> <location line="+3"/> <source>Generated coins must mature 510 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation>Monedele generate trebuie să se maturizeze 510 blocuri înainte de a fi cheltuite. Când ați generat acest bloc, a fost trimis la rețea pentru a fi adăugat la lanțul de blocuri. În cazul în care nu reușește să intre în lanț, starea sa se ​​va schimba in &quot;nu a fost acceptat&quot;, și nu va putea fi cheltuit. Acest lucru se poate întâmpla din când în când, dacă un alt nod generează un bloc cu câteva secunde inaintea blocului tau.</translation> </message> <message> <location line="+7"/> <source>Debug information</source> <translation>Informatii pentru debug</translation> </message> <message> <location line="+8"/> <source>Transaction</source> <translation>Tranzacţie</translation> </message> <message> <location line="+5"/> <source>Inputs</source> <translation>Intrari</translation> </message> <message> <location line="+23"/> <source>Amount</source> <translation>Sumă</translation> </message> <message> <location line="+1"/> <source>true</source> <translation>Adevarat!</translation> </message> <message> <location line="+0"/> <source>false</source> <translation>Fals!</translation> </message> <message> <location line="-211"/> <source>, has not been successfully broadcast yet</source> <translation>, nu s-a propagat încă</translation> </message> <message> <location line="+35"/> <source>unknown</source> <translation>necunoscut</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>Detaliile tranzacției</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>Acest panou afișează o descriere detaliată a tranzacției</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+226"/> <source>Date</source> <translation>Data</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Tipul</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Adresa</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>Cantitate</translation> </message> <message> <location line="+60"/> <source>Open until %1</source> <translation>Deschis până la %1</translation> </message> <message> <location line="+12"/> <source>Confirmed (%1 confirmations)</source> <translation>Confirmat (%1 confirmări)</translation> </message> <message numerus="yes"> <location line="-15"/> <source>Open for %n more block(s)</source> <translation><numerusform>Deschis pentru încă %1 bloc</numerusform><numerusform>Deschis pentru încă %1 blocuri</numerusform><numerusform>Deschis pentru încă %1 de blocuri</numerusform></translation> </message> <message> <location line="+6"/> <source>Offline</source> <translation>Deconectat</translation> </message> <message> <location line="+3"/> <source>Unconfirmed</source> <translation>Neconfirmat</translation> </message> <message> <location line="+3"/> <source>Confirming (%1 of %2 recommended confirmations)</source> <translation>Confirmare (%1 dintre %2 confirmări recomandate)</translation> </message> <message> <location line="+6"/> <source>Conflicted</source> <translation>Conflictual</translation> </message> <message> <location line="+3"/> <source>Immature (%1 confirmations, will be available after %2)</source> <translation>Nematurate(%1 confirmari, vor fi valabile dupa %2)</translation> </message> <message> <location line="+3"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Acest bloc nu a fost recepționat de niciun alt nod și probabil nu va fi acceptat!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>Generat dar neacceptat</translation> </message> <message> <location line="+42"/> <source>Received with</source> <translation>Recepționat cu</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>Primit de la</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>Trimis către</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>Plată către tine</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>Produs</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(n/a)</translation> </message> <message> <location line="+190"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Starea tranzacției. Treci cu mausul peste acest câmp pentru afișarea numărului de confirmări.</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>Data și ora la care a fost recepționată tranzacția.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Tipul tranzacției.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>Adresa de destinație a tranzacției.</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>Suma extrasă sau adăugată la sold.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+55"/> <location line="+16"/> <source>All</source> <translation>Toate</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>Astăzi</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>Săptămâna aceasta</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>Luna aceasta</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>Luna trecută</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>Anul acesta</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>Între...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>Recepționat cu</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>Trimis către</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>Către tine</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>Produs</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>Altele</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>Introdu adresa sau eticheta pentru căutare</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>Cantitatea minimă</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>Copiază adresa</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Copiază eticheta</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Copiază suma</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation>Copiază ID tranzacție</translation> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>Editează eticheta</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation>Arată detaliile tranzacției</translation> </message> <message> <location line="+144"/> <source>Export Transaction Data</source> <translation>Exporta datele trazactiei</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Fișier text cu valori separate prin virgulă (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>Confirmat</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>Data</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Tipul</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Etichetă</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Adresă</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>Sumă</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>ID</translation> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation>Eroare la exportare</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Nu s-a putut scrie în fișier %1.</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation>Interval:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>către</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+206"/> <source>Sending...</source> <translation>Se trimite...</translation> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+33"/> <source>THcoin version</source> <translation>Versiune THcoin</translation> </message> <message> <location line="+1"/> <source>Usage:</source> <translation>Uz:</translation> </message> <message> <location line="+1"/> <source>Send command to -server or THcoind</source> <translation>Trimite comanda catre server sau THcoind</translation> </message> <message> <location line="+1"/> <source>List commands</source> <translation>Listă de comenzi</translation> </message> <message> <location line="+1"/> <source>Get help for a command</source> <translation>Ajutor pentru o comandă</translation> </message> <message> <location line="+2"/> <source>Options:</source> <translation>Setări:</translation> </message> <message> <location line="+2"/> <source>Specify configuration file (default: THcoin.conf)</source> <translation>Specifica fisier de configurare(implicit: THcoin.conf)</translation> </message> <message> <location line="+1"/> <source>Specify pid file (default: THcoind.pid)</source> <translation>Speficica fisier pid(implicit: THcoin.pid)</translation> </message> <message> <location line="+2"/> <source>Specify wallet file (within data directory)</source> <translation>Specifică fișierul wallet (în dosarul de date)</translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>Specifică dosarul de date</translation> </message> <message> <location line="+2"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>Setează mărimea cache a bazei de date în megabiți (implicit: 25)</translation> </message> <message> <location line="+1"/> <source>Set database disk log size in megabytes (default: 100)</source> <translation>Setează mărimea cache a bazei de date în megabiți (implicit: 100)</translation> </message> <message> <location line="+6"/> <source>Listen for connections on &lt;port&gt; (default: 15714 or testnet: 25714)</source> <translation>Ascultă pentru conectări pe &lt;port&gt; (implicit: 15714 sau testnet: 25714) </translation> </message> <message> <location line="+1"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>Menține cel mult &lt;n&gt; conexiuni cu partenerii (implicit: 125)</translation> </message> <message> <location line="+3"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>Conectează-te la nod pentru a obține adresele partenerilor, și apoi deconectează-te</translation> </message> <message> <location line="+1"/> <source>Specify your own public address</source> <translation>Specifică adresa ta publică</translation> </message> <message> <location line="+5"/> <source>Bind to given address. Use [host]:port notation for IPv6</source> <translation>Leaga la o adresa data. Utilizeaza notatie [host]:port pt IPv6</translation> </message> <message> <location line="+2"/> <source>Stake your coins to support network and gain reward (default: 1)</source> <translation>Pune monedele in modul stake pentru a ajuta reteaua si a castiva bonusuri(implicit: 1)</translation> </message> <message> <location line="+5"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>Prag pentru deconectarea partenerilor care nu funcționează corect (implicit: 100)</translation> </message> <message> <location line="+1"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Numărul de secunde pentru a preveni reconectarea partenerilor care nu funcționează corect (implicit: 86400)</translation> </message> <message> <location line="-44"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation>A intervenit o eroare in timp ce se seta portul RPC %u pentru ascultare pe IPv4: %s</translation> </message> <message> <location line="+51"/> <source>Detach block and address databases. Increases shutdown time (default: 0)</source> <translation>Detaseaza bloc si baza de date de adrese. Creste timpul de inchidere(implicit:0)</translation> </message> <message> <location line="+109"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>Eroare: tranzacția a fost respinsă. Acest lucru s-ar putea întâmpla în cazul în care unele dintre monedele din portofel au fost deja cheltuite, cum si cum ați utilizat o copie a wallet.dat și monedele au fost cheltuite în copie dar nu au fost marcate ca și cheltuite aici.</translation> </message> <message> <location line="-5"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source> <translation>Eroare: Această tranzacție necesită un comision de tranzacție de cel puțin %s din cauza valorii sale, complexitate, sau utilizarea de fonduri recent primite</translation> </message> <message> <location line="-87"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 15715 or testnet: 25715)</source> <translation>Ascultă pentru conexiuni JSON-RPC pe &lt;port&gt; (implicit:15715 sau testnet: 25715)</translation> </message> <message> <location line="-11"/> <source>Accept command line and JSON-RPC commands</source> <translation>Se acceptă comenzi din linia de comandă și comenzi JSON-RPC</translation> </message> <message> <location line="+101"/> <source>Error: Transaction creation failed </source> <translation>Eroare: crearea tranzacției a eșuat.</translation> </message> <message> <location line="-5"/> <source>Error: Wallet locked, unable to create transaction </source> <translation>Eroare: portofel blocat, tranzactia nu s-a creat</translation> </message> <message> <location line="-8"/> <source>Importing blockchain data file.</source> <translation>Se importa fisierul blockchain</translation> </message> <message> <location line="+1"/> <source>Importing bootstrap blockchain data file.</source> <translation>Se importa fisierul bootstrap blockchain</translation> </message> <message> <location line="-88"/> <source>Run in the background as a daemon and accept commands</source> <translation>Rulează în fundal ca un demon și acceptă comenzi</translation> </message> <message> <location line="+1"/> <source>Use the test network</source> <translation>Utilizează rețeaua de test</translation> </message> <message> <location line="-24"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation>Acceptă conexiuni din afară (implicit: 1 dacă nu se folosește -proxy sau -connect)</translation> </message> <message> <location line="-38"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation>A intervenit o eroare in timp ce se seta portul RPC %u pentru ascultare pe IPv6, reintoarcere la IPv4: %s</translation> </message> <message> <location line="+117"/> <source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source> <translation>Eroare la inițializarea mediu de baze de date %s! Pentru a recupera, SALVATI ACEL DIRECTORr, apoi scoateți totul din el, cu excepția wallet.dat.</translation> </message> <message> <location line="-20"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation>Setati valoarea maxima a prioritate mare/taxa scazuta in bytes(implicit: 27000)</translation> </message> <message> <location line="+11"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation>Atentie: setarea -paytxfee este foarte ridicata! Aceasta este taxa tranzactiei pe care o vei plati daca trimiti o tranzactie.</translation> </message> <message> <location line="+61"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong THcoin will not work properly.</source> <translation>Atentie: Va rugam verificati ca timpul si data calculatorului sunt corete. Daca timpul este gresit THcoin nu va functiona corect.</translation> </message> <message> <location line="-31"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation>Atentie: eroare la citirea fisierului wallet.dat! Toate cheile sunt citite corect, dar datele tranzactiei sau anumite intrari din agenda sunt incorecte sau lipsesc.</translation> </message> <message> <location line="-18"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation>Atentie: fisierul wallet.dat este corupt, date salvate! Fisierul original wallet.dat a fost salvat ca wallet.{timestamp}.bak in %s; daca balansul sau tranzactiile sunt incorecte ar trebui sa restaurati dintr-o copie de siguranta. </translation> </message> <message> <location line="-30"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation>Încearcă recuperarea cheilor private dintr-un wallet.dat corupt</translation> </message> <message> <location line="+4"/> <source>Block creation options:</source> <translation>Optiuni creare block</translation> </message> <message> <location line="-62"/> <source>Connect only to the specified node(s)</source> <translation>Conecteaza-te doar la nod(urile) specifice</translation> </message> <message> <location line="+4"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>Descopera propria ta adresa IP (intial: 1)</translation> </message> <message> <location line="+94"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation>Am esuat ascultarea pe orice port. Folositi -listen=0 daca vreti asta.</translation> </message> <message> <location line="-90"/> <source>Find peers using DNS lookup (default: 1)</source> <translation>Gaseste peers folosind cautare DNS(implicit: 1)</translation> </message> <message> <location line="+5"/> <source>Sync checkpoints policy (default: strict)</source> <translation>Sincronizeaza politica checkpoint(implicit: strict)</translation> </message> <message> <location line="+83"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation>Adresa -tor invalida: &apos;%s&apos;</translation> </message> <message> <location line="+4"/> <source>Invalid amount for -reservebalance=&lt;amount&gt;</source> <translation>Suma invalida pentru -reservebalance=&lt;amount&gt;</translation> </message> <message> <location line="-82"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation>Tampon maxim pentru recepție per conexiune, &lt;n&gt;*1000 baiți (implicit: 5000)</translation> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation>Tampon maxim pentru transmitere per conexiune, &lt;n&gt;*1000 baiți (implicit: 1000)</translation> </message> <message> <location line="-16"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation>Efectuează conexiuni doar către nodurile din rețeaua &lt;net&gt; (IPv4, IPv6 sau Tor)</translation> </message> <message> <location line="+28"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation>Extra informatii despre depanare. Implica toate optiunile -debug*</translation> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation>Extra informatii despre depanare retea.</translation> </message> <message> <location line="+1"/> <source>Prepend debug output with timestamp</source> <translation>Ataseaza output depanare cu log de timp</translation> </message> <message> <location line="+35"/> <source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source> <translation>Optiuni SSl (vezi Bitcoin wiki pentru intructiunile de instalare)</translation> </message> <message> <location line="-74"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation>Selectati versiunea de proxy socks(4-5, implicit: 5)</translation> </message> <message> <location line="+41"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>Trimite informațiile trace/debug la consolă în locul fișierului debug.log</translation> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation>Trimite informațiile trace/debug la consolă</translation> </message> <message> <location line="+28"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation>Setează mărimea maxima a blocului în bytes (implicit: 250000)</translation> </message> <message> <location line="-1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation>Setează mărimea minimă a blocului în baiți (implicit: 0)</translation> </message> <message> <location line="-29"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>Micsorati fisierul debug.log la inceperea clientului (implicit: 1 cand nu -debug)</translation> </message> <message> <location line="-42"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation>Specifică intervalul maxim de conectare în milisecunde (implicit: 5000)</translation> </message> <message> <location line="+109"/> <source>Unable to sign checkpoint, wrong checkpointkey? </source> <translation>În imposibilitatea de a semna checkpoint-ul, checkpointkey greșit? </translation> </message> <message> <location line="-80"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation>Foloseste UPnP pentru a vedea porturile (initial: 0)</translation> </message> <message> <location line="-1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>Foloseste UPnP pentru a vedea porturile (initial: 1 cand listezi)</translation> </message> <message> <location line="-25"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation>Utilizati proxy pentru a ajunge la serviciile tor (implicit: la fel ca proxy)</translation> </message> <message> <location line="+42"/> <source>Username for JSON-RPC connections</source> <translation>Utilizator pentru conexiunile JSON-RPC</translation> </message> <message> <location line="+47"/> <source>Verifying database integrity...</source> <translation>Se verifica integritatea bazei de date...</translation> </message> <message> <location line="+57"/> <source>WARNING: syncronized checkpoint violation detected, but skipped!</source> <translation>ATENTIONARE: s-a detectat o violare a checkpoint-ului sincronizat, dar s-a ignorat!</translation> </message> <message> <location line="+1"/> <source>Warning: Disk space is low!</source> <translation>Avertisment: spațiul pe disc este scăzut!</translation> </message> <message> <location line="-2"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation>Atenție: această versiune este depășită, este necesară actualizarea!</translation> </message> <message> <location line="-48"/> <source>wallet.dat corrupt, salvage failed</source> <translation>wallet.dat corupt, recuperare eșuată</translation> </message> <message> <location line="-54"/> <source>Password for JSON-RPC connections</source> <translation>Parola pentru conexiunile JSON-RPC</translation> </message> <message> <location line="-84"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=THcoinrpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;THcoin Alert&quot; [email protected] </source> <translation>%s, trebuie să configurați o parolă rpc în fișierul de configurare: %s Este recomandat să folosiți următoarea parolă generată aleator: rpcuser=THcoinrpc rpcpassword=%s (nu trebuie să țineți minte această parolă) Username-ul și parola NU TREBUIE să fie aceleași. Dacă fișierul nu există, creați-l cu drepturi de citire doar de către deținător. Este deasemenea recomandat să setați alertnotify pentru a fi notificat de probleme; de exemplu: alertnotify=echo %%s | mail -s &quot;THcoin Alert&quot; [email protected] </translation> </message> <message> <location line="+51"/> <source>Find peers using internet relay chat (default: 0)</source> <translation>Gaseste noduri fosoling irc (implicit: 1) {0)?}</translation> </message> <message> <location line="+5"/> <source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source> <translation>Sincronizează timp cu alte noduri. Dezactivează daca timpul de pe sistemul dumneavoastră este precis ex: sincronizare cu NTP (implicit: 1)</translation> </message> <message> <location line="+15"/> <source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source> <translation>Când creați tranzacții, ignorați intrări cu valori mai mici decât aceasta (implicit: 0,01)</translation> </message> <message> <location line="+16"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>Permite conexiuni JSON-RPC de la adresa IP specificată</translation> </message> <message> <location line="+1"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Trimite comenzi la nodul care rulează la &lt;ip&gt; (implicit: 127.0.0.1)</translation> </message> <message> <location line="+1"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation>Execută comanda când cel mai bun bloc se modifică (%s în cmd este înlocuit cu hash-ul blocului)</translation> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation>Executati comanda cand o tranzactie a portofelului se schimba (%s in cmd este inlocuit de TxID)</translation> </message> <message> <location line="+3"/> <source>Require a confirmations for change (default: 0)</source> <translation>Necesita confirmari pentru schimbare (implicit: 0)</translation> </message> <message> <location line="+1"/> <source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source> <translation>Enforseaza tranzactiile script sa foloseasca operatori canonici PUSH(implicit: 1)</translation> </message> <message> <location line="+2"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation>Execută o comandă când o alerta relevantâ este primitâ(%s in cmd este înlocuit de mesaj)</translation> </message> <message> <location line="+3"/> <source>Upgrade wallet to latest format</source> <translation>Actualizează portofelul la ultimul format</translation> </message> <message> <location line="+1"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Setează mărimea bazinului de chei la &lt;n&gt; (implicit: 100)</translation> </message> <message> <location line="+1"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Rescanează lanțul de bloc pentru tranzacțiile portofel lipsă</translation> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 2500, 0 = all)</source> <translation>Câte block-uri se verifică la initializare (implicit: 2500, 0 = toate)</translation> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-6, default: 1)</source> <translation>Cat de temeinica sa fie verificarea blocurilor( 0-6, implicit: 1)</translation> </message> <message> <location line="+1"/> <source>Imports blocks from external blk000?.dat file</source> <translation>Importă blocuri dintr-un fișier extern blk000?.dat</translation> </message> <message> <location line="+8"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>Folosește OpenSSL (https) pentru conexiunile JSON-RPC</translation> </message> <message> <location line="+1"/> <source>Server certificate file (default: server.cert)</source> <translation>Certificatul serverului (implicit: server.cert)</translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>Cheia privată a serverului (implicit: server.pem)</translation> </message> <message> <location line="+1"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation>Cifruri acceptabile (implicit: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation> </message> <message> <location line="+53"/> <source>Error: Wallet unlocked for staking only, unable to create transaction.</source> <translation>Eroare: portofel blocat doar pentru staking, tranzactia nu s-a creat.</translation> </message> <message> <location line="+18"/> <source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source> <translation>ATENTIONARE: checkpoint invalid! Trazatiile afisate pot fi incorecte! Posibil să aveți nevoie să faceți upgrade, sau să notificati dezvoltatorii.</translation> </message> <message> <location line="-158"/> <source>This help message</source> <translation>Acest mesaj de ajutor</translation> </message> <message> <location line="+95"/> <source>Wallet %s resides outside data directory %s.</source> <translation>Portofelul %s este in afara directorului %s</translation> </message> <message> <location line="+1"/> <source>Cannot obtain a lock on data directory %s. THcoin is probably already running.</source> <translation>Nu se poate obtine un lock pe directorul de date &amp;s. Blackoin probabil ruleaza deja.</translation> </message> <message> <location line="-98"/> <source>THcoin</source> <translation>THcoin</translation> </message> <message> <location line="+140"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation>Nu se poate folosi %s pe acest calculator (eroarea returnată este %d, %s)</translation> </message> <message> <location line="-130"/> <source>Connect through socks proxy</source> <translation>Conectează-te printr-un proxy socks</translation> </message> <message> <location line="+3"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>Permite căutări DNS pentru -addnode, -seednode și -connect</translation> </message> <message> <location line="+122"/> <source>Loading addresses...</source> <translation>Încarc adrese...</translation> </message> <message> <location line="-15"/> <source>Error loading blkindex.dat</source> <translation>Eroare la încărcarea blkindex.dat</translation> </message> <message> <location line="+2"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Eroare la încărcarea wallet.dat: Portofel corupt</translation> </message> <message> <location line="+4"/> <source>Error loading wallet.dat: Wallet requires newer version of THcoin</source> <translation>Eroare la încărcarea wallet.dat: Portofelul necesita o versiune mai noua de THcoin</translation> </message> <message> <location line="+1"/> <source>Wallet needed to be rewritten: restart THcoin to complete</source> <translation>A fost nevoie de rescrierea portofelului: restartați THcoin pentru a finaliza</translation> </message> <message> <location line="+1"/> <source>Error loading wallet.dat</source> <translation>Eroare la încărcarea wallet.dat</translation> </message> <message> <location line="-16"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>Adresa -proxy nevalidă: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation>Rețeaua specificată în -onlynet este necunoscută: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation>S-a cerut o versiune necunoscută de proxy -socks: %i</translation> </message> <message> <location line="+4"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation>Nu se poate rezolva adresa -bind: &apos;%s&apos;</translation> </message> <message> <location line="+2"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation>Nu se poate rezolva adresa -externalip: &apos;%s&apos;</translation> </message> <message> <location line="-24"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Suma nevalidă pentru -paytxfee=&lt;amount&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+44"/> <source>Error: could not start node</source> <translation>Eroare: nodul nu a putut fi pornit</translation> </message> <message> <location line="+11"/> <source>Sending...</source> <translation>Se trimite...</translation> </message> <message> <location line="+5"/> <source>Invalid amount</source> <translation>Sumă nevalidă</translation> </message> <message> <location line="+1"/> <source>Insufficient funds</source> <translation>Fonduri insuficiente</translation> </message> <message> <location line="-34"/> <source>Loading block index...</source> <translation>Încarc indice bloc...</translation> </message> <message> <location line="-103"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Adaugă un nod la care te poți conecta pentru a menține conexiunea deschisă</translation> </message> <message> <location line="+122"/> <source>Unable to bind to %s on this computer. THcoin is probably already running.</source> <translation>Imposibil de conectat %s pe acest computer. Cel mai probabil THcoin ruleaza</translation> </message> <message> <location line="-97"/> <source>Fee per KB to add to transactions you send</source> <translation>Comision pe kB de adaugat la tranzactiile pe care le trimiti</translation> </message> <message> <location line="+55"/> <source>Invalid amount for -mininput=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Suma invalida pentru -mininput=&lt;amount&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+25"/> <source>Loading wallet...</source> <translation>Încarc portofel...</translation> </message> <message> <location line="+8"/> <source>Cannot downgrade wallet</source> <translation>Nu se poate retrograda portofelul</translation> </message> <message> <location line="+1"/> <source>Cannot initialize keypool</source> <translation>Nu se poate initializa keypool</translation> </message> <message> <location line="+1"/> <source>Cannot write default address</source> <translation>Nu se poate scrie adresa implicită</translation> </message> <message> <location line="+1"/> <source>Rescanning...</source> <translation>Rescanez...</translation> </message> <message> <location line="+5"/> <source>Done loading</source> <translation>Încărcare terminată</translation> </message> <message> <location line="-167"/> <source>To use the %s option</source> <translation>Pentru a folosi opțiunea %s</translation> </message> <message> <location line="+14"/> <source>Error</source> <translation>Eroare</translation> </message> <message> <location line="+6"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation>Trebuie sa setezi rpcpassword=&lt;password&gt; în fișierul de configurare:⏎ %s⏎ Dacă fișierul nu există, creează-l cu permisiuni de citire doar de către proprietar.</translation> </message> </context> </TS>
{ "content_hash": "a3ead77b65a3d6e1ee811a859b77e072", "timestamp": "", "source": "github", "line_count": 3321, "max_line_length": 470, "avg_line_length": 39.385426076482986, "alnum_prop": 0.632176086973142, "repo_name": "TH-dev/THcoin", "id": "f494e01801e31cc54a8259fa36884407b1b2d3b6", "size": "131664", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/qt/locale/bitcoin_ro_RO.ts", "mode": "33188", "license": "mit", "language": [ { "name": "Assembly", "bytes": "51312" }, { "name": "C", "bytes": "777764" }, { "name": "C++", "bytes": "2444304" }, { "name": "CSS", "bytes": "1127" }, { "name": "IDL", "bytes": "14793" }, { "name": "Objective-C++", "bytes": "3537" }, { "name": "Python", "bytes": "11646" }, { "name": "Shell", "bytes": "1026" }, { "name": "TypeScript", "bytes": "7742054" } ], "symlink_target": "" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>coqprime: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.8.2 / coqprime - 1.0.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> coqprime <small> 1.0.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-03-27 03:48:43 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-27 03:48:43 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base camlp5 7.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.8.2 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.05.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.05.0 Official 4.05.0 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; homepage: &quot;https://github.com/thery/coqprime&quot; bug-reports: &quot;https://github.com/thery/coqprime/issues&quot; dev-repo: &quot;git+https://github.com/thery/coqprime.git&quot; license: &quot;MIT&quot; authors: [&quot;Laurent Théry&quot;] build: [ [&quot;./configure.sh&quot;] [make &quot;-j%{jobs}%&quot;] ] install: [make &quot;install&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.5~&quot; &amp; &lt; &quot;8.6~&quot;} ] tags: [ &quot;logpath:Coqprime&quot; ] synopsis: &quot;Certifying prime numbers in Coq&quot; url { src: &quot;https://github.com/thery/coqprime/releases/download/oldversions/coqprime_8.5b.zip&quot; checksum: &quot;md5=fea727b4ca765c1408d92baa0c98ce22&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-coqprime.1.0.0 coq.8.8.2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.8.2). The following dependencies couldn&#39;t be met: - coq-coqprime -&gt; coq &lt; 8.6~ -&gt; ocaml &lt; 4.03.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-coqprime.1.0.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
{ "content_hash": "839eeff5713f7e3b54daca1038f0e4c5", "timestamp": "", "source": "github", "line_count": 168, "max_line_length": 159, "avg_line_length": 39.49404761904762, "alnum_prop": 0.5288620949510173, "repo_name": "coq-bench/coq-bench.github.io", "id": "efb98978b41ce2d6a65e4c0dca5bb2a258499b30", "size": "6661", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "clean/Linux-x86_64-4.05.0-2.0.1/released/8.8.2/coqprime/1.0.0.html", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
<template name="home"> <div class="home-page logged-in animated fadeInUpBig"> <div class="banner"> <h1 class="kern more">Writ</h1> <p>A Markdown app for mere mortals.</p> <div class="image-wrapper"> {{#if currentUser}} <div class="settings actions-btn"> <a class=post-note href="{{pathFor 'writedown'}}"><i class="fa fa-file-o"></i>New Note</a> <a class=list-note href="{{pathFor 'notes'}}"><i class="fa fa-list"></i>View Notes</a> </div> <img class="loggedIn-image" src="/writ.png" alt="Writ"> {{else}} <img class="loggedOut-image" src="/writ.png" alt="Writ"> {{/if}} </div> </div> <div class="site-info"> <div class="author"> <h2>Author</h2> <!-- <div class="author-image"> --> <!-- <img src="/bassam.jpg" alt=""> --> <!-- </div> --> <div class="author-bio"> <a href="http://bassam.co">Bassam</a> is a 22 year old Frontend Developer from Srinagar, Kashmir working at Axelerant. He spends most of the time working on medium to large scale websites built on top of Drupal. Passionate about client-side technologies and tooling. Lives by the Unix philosphy. </div> </div> <div class="colophon"> <h2>Colophon</h2> <div class="colophon-bio"> Writ is built on top of <a href="http://meteor.com">Meteor.js</a>, which provided live binding and rendering of Markdown text. Sass is used for styling, data is being stored in MongoDb and authentication is done using Twitter OAuth. </div> </div> </div> </div> </template>
{ "content_hash": "8ffd45ef3bcf77937b100260047b7008", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 319, "avg_line_length": 55.888888888888886, "alnum_prop": 0.4826043737574553, "repo_name": "skippednote/writ", "id": "1ef898ebb0af5adef5f44b55f64237e342557ac5", "size": "2012", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "client/views/home/home.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "90467" }, { "name": "JavaScript", "bytes": "7763" } ], "symlink_target": "" }
{% load humanize %} {% load i18n %} <html> <head> <title>{% trans 'Property Alerts' %}</title> </head> <body> <h1>{% trans 'Latest Properties' %}</h1> {% for property in properties %} <div> <h2>{{property.title}}</h2> <h3>{{property.display_address}}</h3> <h4>{{property.get_qualifier_display}} £{{property.price|floatformat|intcomma}}</h4> <p>{{property.summary}}</p> <a href="{{ property.get_full_absolute_url }}">{% trans 'More Details' %}</a> </div> {% endfor %} </body> </html>
{ "content_hash": "3eea7841b24cad2fe3f3474c40d4f033", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 100, "avg_line_length": 33.36842105263158, "alnum_prop": 0.4794952681388013, "repo_name": "signalfire/django-property", "id": "25c12c921481445fdb8f8a63fceb19487b7a3f19", "size": "635", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "homes_theme_default/templates/emails/alerts.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "10580" }, { "name": "HTML", "bytes": "65468" }, { "name": "JavaScript", "bytes": "43866" }, { "name": "Python", "bytes": "177600" } ], "symlink_target": "" }
from zope.interface import Interface from twisted.trial import unittest from twisted.python import components from axiom import store from imaginary import iimaginary, eimaginary, objects, events from imaginary.test import commandutils class PointsTestCase(unittest.TestCase): def setUp(self): self.store = store.Store() def testInitialiation(self): p = objects.Points(store=self.store, max=100) self.assertEquals(p.current, p.max) self.assertEquals(p.max, 100) def testMutation(self): p = objects.Points(store=self.store, max=100) p.increase(10) self.assertEquals(p.current, 100) p.decrease(10) self.assertEquals(p.current, 90) p.increase(20) self.assertEquals(p.current, 100) p.decrease(110) self.assertEquals(p.current, 0) p.decrease(10) self.assertEquals(p.current, 0) p.modify(10) self.assertEquals(p.current, 10) p.modify(-10) self.assertEquals(p.current, 0) def testRepresentation(self): p = objects.Points(store=self.store, max=100) self.assertEquals(str(p), '100/100') self.assertEquals(repr(p), 'imaginary.objects.Points(100, 100)') p.decrease(10) self.assertEquals(str(p), '90/100') self.assertEquals(repr(p), 'imaginary.objects.Points(100, 90)') p.decrease(90) self.assertEquals(str(p), '0/100') self.assertEquals(repr(p), 'imaginary.objects.Points(100, 0)') class ObjectTestCase(unittest.TestCase): def setUp(self): self.store = store.Store() def testCreation(self): obj = objects.Thing(store=self.store, name=u"test object", description=u"lame description") self.assertEquals(obj.name, u"test object") self.assertEquals(obj.description, u"lame description") def testDestroy(self): obj = objects.Thing(store=self.store, name=u"x") obj.destroy() room = objects.Thing(store=self.store, name=u"test location") locContainer = objects.Container.createFor(room, capacity=1000) obj = objects.Thing(store=self.store, name=u"y") obj.moveTo(room) obj.destroy() self.assertIdentical(obj.location, None) self.assertEquals(list(locContainer.getContents()), []) def testMoving(self): obj = objects.Thing(store=self.store, name=u"DOG") room = objects.Thing(store=self.store, name=u"HOUSE") objects.Container.createFor(room, capacity=1000) obj.moveTo(room) self.assertIdentical(obj.location, room) obj.moveTo(room) self.assertIdentical(obj.location, room) def testNonPortable(self): """ Test that the C{portable} flag is respected and prevents movement between locations. """ obj = objects.Thing(store=self.store, name=u"mountain") obj.portable = False room = objects.Thing(store=self.store, name=u"place") objects.Container.createFor(room, capacity=1000) obj.moveTo(room) elsewhere = objects.Thing(store=self.store, name=u"different place") container = objects.Container.createFor(elsewhere, capacity=1000) self.assertRaises(eimaginary.CannotMove, obj.moveTo, elsewhere) self.assertIdentical(obj.location, room) self.assertEquals(list(iimaginary.IContainer(room).getContents()), [obj]) self.assertEquals(list(container.getContents()), []) class MovementTestCase(unittest.TestCase): def setUp(self): self.store = store.Store() obj = objects.Thing(store=self.store, name=u"DOG") room = objects.Thing(store=self.store, name=u"HOUSE") objects.Container.createFor(room, capacity=1000) obj.moveTo(room) observer = objects.Thing(store=self.store, name=u"OBSERVER") actor = objects.Actor.createFor(observer) intelligence = commandutils.MockEphemeralIntelligence() actor.setEphemeralIntelligence(intelligence) self.obj = obj self.room = room self.observer = observer self.intelligence = intelligence self.actor = actor def testMovementDepartureEvent(self): """ Test that when a Thing is moved out of a location, a departure event is broadcast to that location. """ self.observer.moveTo(self.room) self.intelligence.events[:] = [] self.obj.moveTo(None) evts = self.intelligence.events self.assertEquals(len(evts), 1) self.failUnless( isinstance(evts[0], events.DepartureEvent)) self.assertIdentical(evts[0].location, self.room) self.assertIdentical(evts[0].actor, self.obj) def testMovementArrivalEvent(self): """ Test that when a Thing is moved to a location, an arrival event is broadcast to that location. """ destination = objects.Thing(store=self.store, name=u'ELSEWHERE') objects.Container.createFor(destination, capacity=1000) self.observer.moveTo(destination, arrivalEventFactory=events.MovementArrivalEvent) evts = self.intelligence.events self.assertEquals(len(evts), 1) self.failUnless(isinstance(evts[0], events.MovementArrivalEvent)) self.assertIdentical(evts[0].thing, self.observer) self.assertIdentical(evts[0].location, destination) evts[:] = [] self.obj.moveTo(destination, arrivalEventFactory=events.MovementArrivalEvent) evts = self.intelligence.events self.assertEquals(len(evts), 1) self.failUnless( isinstance(evts[0], events.ArrivalEvent)) self.assertIdentical(evts[0].location, destination) self.assertIdentical(evts[0].thing, self.obj) # TODO - Test that a guy moving around sees first his own departure event # and then his arrival event. def test_parameterizedArrivalEvent(self): """ moveTo should take a parameter which allows customization of the arrival event that it emits. """ destination = objects.Thing(store=self.store, name=u'ELSEWHERE') objects.Container.createFor(destination, capacity=1000) class DroppedEvent(events.MovementArrivalEvent): def conceptFor(self, observer): return "you rock." self.observer.moveTo(destination, arrivalEventFactory=DroppedEvent) evts = self.intelligence.events self.assertEquals(len(evts), 1) self.failUnless(isinstance(evts[0], DroppedEvent)) self.assertIdentical(evts[0].thing, self.observer) self.assertIdentical(evts[0].location, destination) def test_parameterizedArrivalAsNone(self): """ If the parameter for customizing the arrival event is None, no arrival event should be broadcast. """ destination = objects.Thing(store=self.store, name=u'ELSEWHERE') objects.Container.createFor(destination, capacity=1000) self.observer.moveTo(destination, arrivalEventFactory=None) self.assertEquals(self.intelligence.events, []) def test_parameterizedArrivalDefaultsNone(self): """ The default should be for moveTo not to broadcast an event. """ destination = objects.Thing(store=self.store, name=u'ELSEWHERE') objects.Container.createFor(destination, capacity=1000) self.observer.moveTo(destination) self.assertEquals(self.intelligence.events, []) unexpected = object() class IFoo(Interface): """ Stupid thing to help tests out. """ components.registerAdapter(lambda o: (unexpected, o), objects.Thing, IFoo) class FindProvidersTestCase(unittest.TestCase): def setUp(self): self.store = store.Store() self.retained = [] obj = objects.Thing(store=self.store, name=u"generic object") room = objects.Thing(store=self.store, name=u"room") objects.Container.createFor(room, capacity=1000) obj.moveTo(room) self.obj = obj self.room = room def tearDown(self): """ Allow the items retained with L{FindProvidersTestCase.retain} to be garbage collected. """ del self.retained def retain(self, o): """ Keep the given object in memory until the end of the test, so that its 'inmemory' attributes won't be garbage collected. """ self.retained.append(o) def testFindObjects(self): """ Assert that searching for the most basic object interface, L{IObject}, returns the only two objects available in our test object graph: both the location upon which the search was issued and the object which it contains. """ self.assertEquals( list(self.room.findProviders(iimaginary.IThing, 1)), [self.room, self.obj]) def testFindContainers(self): """ Very much like testFindObjects, but searching for L{IContainer}, which only the location provides, and so only the location should be returned. """ self.assertEquals( list(self.room.findProviders(iimaginary.IContainer, 1)), [iimaginary.IContainer(self.room)]) def testFindNothing(self): """ Again, similar to testFindObjects, but search for an interface that nothing provides, and assert that nothing is found. """ class IUnprovidable(Interface): """ Test-only interface that nothing provides. """ self.assertEquals( list(self.room.findProviders(IUnprovidable, 1)), []) def testFindOutward(self): """ Conduct a search for all objects on our test graph, but start the search on the contained object rather than the container and assert that the same results come back, though in a different order: the searched upon Thing always comes first. """ self.assertEquals( list(self.obj.findProviders(iimaginary.IThing, 1)), [self.obj, self.room]) def testFindContainersOutward(self): """ Combination of testFindOutward and testFindContainers. """ self.assertEquals( list(self.obj.findProviders(iimaginary.IContainer, 1)), [iimaginary.IContainer(self.room)]) def testFindingArbitraryInterface(self): """ Demonstration of the Thing -> IFoo adapter registered earlier in this module. If this test fails then some other tests are probably buggy too, even if they pass. Thing must be adaptable to IFoo or the tests which assert that certain Things are B{not} present in result sets may incorrectly pass. """ self.assertEquals( list(self.obj.findProviders(IFoo, 1)), [(unexpected, self.obj), (unexpected, self.room)]) def test_exactlyKnownAs(self): """ L{Thing.knownTo} returns C{True} when called with exactly the things own name. """ self.assertTrue(self.obj.knownTo(self.obj, self.obj.name)) def test_caseInsensitivelyKnownAs(self): """ L{Thing.knownTo} returns C{True} when called with a string which differs from its name only in case. """ self.assertTrue(self.obj.knownTo(self.obj, self.obj.name.upper())) self.assertTrue(self.obj.knownTo(self.obj, self.obj.name.title())) def test_wholeWordSubstringKnownAs(self): """ L{Thing.knownTo} returns C{True} when called with a string which appears in the thing's name delimited by spaces. """ self.obj.name = u"one two three" self.assertTrue(self.obj.knownTo(self.obj, u"one")) self.assertTrue(self.obj.knownTo(self.obj, u"two")) self.assertTrue(self.obj.knownTo(self.obj, u"three")) def test_notKnownAs(self): """ L{Thing.knownTo} returns C{False} when called with a string which doesn't satisfy one of the above positive cases. """ self.assertFalse(self.obj.knownTo(self.obj, u"gunk" + self.obj.name)) self.obj.name = u"one two three" self.assertFalse(self.obj.knownTo(self.obj, u"ne tw")) # XXX Test being able to find "me", "here", "self", exits (by direction # name?)
{ "content_hash": "ab2eba459e6a5082eed51fbe3e1e7e63", "timestamp": "", "source": "github", "line_count": 378, "max_line_length": 99, "avg_line_length": 33.13756613756614, "alnum_prop": 0.6409867475650647, "repo_name": "glyph/imaginary", "id": "0b0373be878d3f19e63eb7311b4053d8e5f78d65", "size": "12527", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "imaginary/test/test_objects.py", "mode": "33188", "license": "mit", "language": [ { "name": "Python", "bytes": "615840" } ], "symlink_target": "" }
<?xml version='1.0' encoding='utf-8'?><!-- ============================================================================================ House of Commons - Canada - - - - - - - - - - - - - - - - - - - - - - - - - The data contained in this document is provided in a standard XML format. Once imported into a spreadsheet or database tool of your choice, the data can be filtered and sorted to create customized reports. Please refer to the instructions within the tool of your choice to find out how to import external data. For information about the disclaimer of liability: http://www2.parl.gc.ca/HouseChamberBusiness/ChamberDisclaimer.aspx?Language=E ============================================================================================ --> <Vote schemaVersion="1.0"> <Context> <Para> <AmendmentText> <Para>“Opérations de recherche, notamment par forage, de production, de rationalisation de l'exploitation, de transformation et de transport de ressources minérales, de pétrole ou de gaz, réalisées dans le territoire d'un”</Para> </AmendmentText> </Para> </Context> <Sponsor>Mr. McKay (Scarborough—Guildwood)</Sponsor> <Decision>Negatived</Decision> <RelatedBill number="C-300"> <Title>An Act respecting Corporate Accountability for the Activities of Mining, Oil or Gas in Developing Countries</Title> </RelatedBill> <Participant> <Name>Mr. Jim Abbott</Name> <FirstName>Jim</FirstName> <LastName>Abbott</LastName> <Constituency>Kootenay—Columbia</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Diane Ablonczy</Name> <FirstName>Diane</FirstName> <LastName>Ablonczy</LastName> <Constituency>Calgary—Nose Hill</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Leona Aglukkaq</Name> <FirstName>Leona</FirstName> <LastName>Aglukkaq</LastName> <Constituency>Nunavut</Constituency> <Province code="NU">Nunavut</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Harold Albrecht</Name> <FirstName>Harold</FirstName> <LastName>Albrecht</LastName> <Constituency>Kitchener—Conestoga</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Malcolm Allen</Name> <FirstName>Malcolm</FirstName> <LastName>Allen</LastName> <Constituency>Welland</Constituency> <Province code="ON">Ontario</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Mike Allen</Name> <FirstName>Mike</FirstName> <LastName>Allen</LastName> <Constituency>Tobique—Mactaquac</Constituency> <Province code="NB">New Brunswick</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Dean Allison</Name> <FirstName>Dean</FirstName> <LastName>Allison</LastName> <Constituency>Niagara West—Glanbrook</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Rona Ambrose</Name> <FirstName>Rona</FirstName> <LastName>Ambrose</LastName> <Constituency>Edmonton—Spruce Grove</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Rob Anders</Name> <FirstName>Rob</FirstName> <LastName>Anders</LastName> <Constituency>Calgary West</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. David Anderson</Name> <FirstName>David</FirstName> <LastName>Anderson</LastName> <Constituency>Cypress Hills—Grasslands</Constituency> <Province code="SK">Saskatchewan</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Guy André</Name> <FirstName>Guy</FirstName> <LastName>André</LastName> <Constituency>Berthier—Maskinongé</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Scott Armstrong</Name> <FirstName>Scott</FirstName> <LastName>Armstrong</LastName> <Constituency>Cumberland—Colchester—Musquodoboit Valley</Constituency> <Province code="NS">Nova Scotia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Keith Ashfield</Name> <FirstName>Keith</FirstName> <LastName>Ashfield</LastName> <Constituency>Fredericton</Constituency> <Province code="NB">New Brunswick</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Niki Ashton</Name> <FirstName>Niki</FirstName> <LastName>Ashton</LastName> <Constituency>Churchill</Constituency> <Province code="MB">Manitoba</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Gérard Asselin</Name> <FirstName>Gérard</FirstName> <LastName>Asselin</LastName> <Constituency>Manicouagan</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Alex Atamanenko</Name> <FirstName>Alex</FirstName> <LastName>Atamanenko</LastName> <Constituency>British Columbia Southern Interior</Constituency> <Province code="BC">British Columbia</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Claude Bachand</Name> <FirstName>Claude</FirstName> <LastName>Bachand</LastName> <Constituency>Saint-Jean</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Larry Bagnell</Name> <FirstName>Larry</FirstName> <LastName>Bagnell</LastName> <Constituency>Yukon</Constituency> <Province code="YT">Yukon</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Navdeep Bains</Name> <FirstName>Navdeep</FirstName> <LastName>Bains</LastName> <Constituency>Mississauga—Brampton South</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. John Baird</Name> <FirstName>John</FirstName> <LastName>Baird</LastName> <Constituency>Ottawa West—Nepean</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Josée Beaudin</Name> <FirstName>Josée</FirstName> <LastName>Beaudin</LastName> <Constituency>Saint-Lambert</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Mauril Bélanger</Name> <FirstName>Mauril</FirstName> <LastName>Bélanger</LastName> <Constituency>Ottawa—Vanier</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. André Bellavance</Name> <FirstName>André</FirstName> <LastName>Bellavance</LastName> <Constituency>Richmond—Arthabaska</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Carolyn Bennett</Name> <FirstName>Carolyn</FirstName> <LastName>Bennett</LastName> <Constituency>St. Paul's</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Leon Benoit</Name> <FirstName>Leon</FirstName> <LastName>Benoit</LastName> <Constituency>Vegreville—Wainwright</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Maxime Bernier</Name> <FirstName>Maxime</FirstName> <LastName>Bernier</LastName> <Constituency>Beauce</Constituency> <Province code="QC">Québec</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Dennis Bevington</Name> <FirstName>Dennis</FirstName> <LastName>Bevington</LastName> <Constituency>Western Arctic</Constituency> <Province code="NT">Northwest Territories</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. James Bezan</Name> <FirstName>James</FirstName> <LastName>Bezan</LastName> <Constituency>Selkirk—Interlake</Constituency> <Province code="MB">Manitoba</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Bernard Bigras</Name> <FirstName>Bernard</FirstName> <LastName>Bigras</LastName> <Constituency>Rosemont—La Petite-Patrie</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Jean-Pierre Blackburn</Name> <FirstName>Jean-Pierre</FirstName> <LastName>Blackburn</LastName> <Constituency>Jonquière—Alma</Constituency> <Province code="QC">Québec</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Raynald Blais</Name> <FirstName>Raynald</FirstName> <LastName>Blais</LastName> <Constituency>Gaspésie—Îles-de-la-Madeleine</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Steven Blaney</Name> <FirstName>Steven</FirstName> <LastName>Blaney</LastName> <Constituency>Lévis—Bellechasse</Constituency> <Province code="QC">Québec</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Kelly Block</Name> <FirstName>Kelly</FirstName> <LastName>Block</LastName> <Constituency>Saskatoon—Rosetown—Biggar</Constituency> <Province code="SK">Saskatchewan</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. France Bonsant</Name> <FirstName>France</FirstName> <LastName>Bonsant</LastName> <Constituency>Compton—Stanstead</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Sylvie Boucher</Name> <FirstName>Sylvie</FirstName> <LastName>Boucher</LastName> <Constituency>Beauport—Limoilou</Constituency> <Province code="QC">Québec</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Ray Boughen</Name> <FirstName>Ray</FirstName> <LastName>Boughen</LastName> <Constituency>Palliser</Constituency> <Province code="SK">Saskatchewan</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Diane Bourgeois</Name> <FirstName>Diane</FirstName> <LastName>Bourgeois</LastName> <Constituency>Terrebonne—Blainville</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Peter Braid</Name> <FirstName>Peter</FirstName> <LastName>Braid</LastName> <Constituency>Kitchener—Waterloo</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Garry Breitkreuz</Name> <FirstName>Garry</FirstName> <LastName>Breitkreuz</LastName> <Constituency>Yorkton—Melville</Constituency> <Province code="SK">Saskatchewan</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Gordon Brown</Name> <FirstName>Gordon</FirstName> <LastName>Brown</LastName> <Constituency>Leeds—Grenville</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Lois Brown</Name> <FirstName>Lois</FirstName> <LastName>Brown</LastName> <Constituency>Newmarket—Aurora</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Patrick Brown</Name> <FirstName>Patrick</FirstName> <LastName>Brown</LastName> <Constituency>Barrie</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Rod Bruinooge</Name> <FirstName>Rod</FirstName> <LastName>Bruinooge</LastName> <Constituency>Winnipeg South</Constituency> <Province code="MB">Manitoba</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Paule Brunelle</Name> <FirstName>Paule</FirstName> <LastName>Brunelle</LastName> <Constituency>Trois-Rivières</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Gerry Byrne</Name> <FirstName>Gerry</FirstName> <LastName>Byrne</LastName> <Constituency>Humber—St. Barbe—Baie Verte</Constituency> <Province code="NL">Newfoundland and Labrador</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Dona Cadman</Name> <FirstName>Dona</FirstName> <LastName>Cadman</LastName> <Constituency>Surrey North</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Paul Calandra</Name> <FirstName>Paul </FirstName> <LastName>Calandra</LastName> <Constituency>Oak Ridges—Markham</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Blaine Calkins</Name> <FirstName>Blaine</FirstName> <LastName>Calkins</LastName> <Constituency>Wetaskiwin</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Ron Cannan</Name> <FirstName>Ron</FirstName> <LastName>Cannan</LastName> <Constituency>Kelowna—Lake Country</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. John Cannis</Name> <FirstName>John</FirstName> <LastName>Cannis</LastName> <Constituency>Scarborough Centre</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Lawrence Cannon</Name> <FirstName>Lawrence</FirstName> <LastName>Cannon</LastName> <Constituency>Pontiac</Constituency> <Province code="QC">Québec</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Serge Cardin</Name> <FirstName>Serge</FirstName> <LastName>Cardin</LastName> <Constituency>Sherbrooke</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Colin Carrie</Name> <FirstName>Colin</FirstName> <LastName>Carrie</LastName> <Constituency>Oshawa</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Robert Carrier</Name> <FirstName>Robert</FirstName> <LastName>Carrier</LastName> <Constituency>Alfred-Pellan</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Rick Casson</Name> <FirstName>Rick</FirstName> <LastName>Casson</LastName> <Constituency>Lethbridge</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Chris Charlton</Name> <FirstName>Chris</FirstName> <LastName>Charlton</LastName> <Constituency>Hamilton Mountain</Constituency> <Province code="ON">Ontario</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Michael Chong</Name> <FirstName>Michael</FirstName> <LastName>Chong</LastName> <Constituency>Wellington—Halton Hills</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Olivia Chow</Name> <FirstName>Olivia</FirstName> <LastName>Chow</LastName> <Constituency>Trinity—Spadina</Constituency> <Province code="ON">Ontario</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. David Christopherson</Name> <FirstName>David</FirstName> <LastName>Christopherson</LastName> <Constituency>Hamilton Centre</Constituency> <Province code="ON">Ontario</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Rob Clarke</Name> <FirstName>Rob</FirstName> <LastName>Clarke</LastName> <Constituency>Desnethé—Missinippi—Churchill River</Constituency> <Province code="SK">Saskatchewan</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Tony Clement</Name> <FirstName>Tony</FirstName> <LastName>Clement</LastName> <Constituency>Parry Sound—Muskoka</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Siobhan Coady</Name> <FirstName>Siobhan</FirstName> <LastName>Coady</LastName> <Constituency>St. John's South—Mount Pearl</Constituency> <Province code="NL">Newfoundland and Labrador</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Denis Coderre</Name> <FirstName>Denis</FirstName> <LastName>Coderre</LastName> <Constituency>Bourassa</Constituency> <Province code="QC">Québec</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Joe Comartin</Name> <FirstName>Joe</FirstName> <LastName>Comartin</LastName> <Constituency>Windsor—Tecumseh</Constituency> <Province code="ON">Ontario</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Irwin Cotler</Name> <FirstName>Irwin</FirstName> <LastName>Cotler</LastName> <Constituency>Mount Royal</Constituency> <Province code="QC">Québec</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Bonnie Crombie</Name> <FirstName>Bonnie</FirstName> <LastName>Crombie</LastName> <Constituency>Mississauga—Streetsville</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Jean Crowder</Name> <FirstName>Jean</FirstName> <LastName>Crowder</LastName> <Constituency>Nanaimo—Cowichan</Constituency> <Province code="BC">British Columbia</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Nathan Cullen</Name> <FirstName>Nathan</FirstName> <LastName>Cullen</LastName> <Constituency>Skeena—Bulkley Valley</Constituency> <Province code="BC">British Columbia</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. John Cummins</Name> <FirstName>John</FirstName> <LastName>Cummins</LastName> <Constituency>Delta—Richmond East</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Rodger Cuzner</Name> <FirstName>Rodger</FirstName> <LastName>Cuzner</LastName> <Constituency>Cape Breton—Canso</Constituency> <Province code="NS">Nova Scotia</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Jean-Claude D'Amours</Name> <FirstName>Jean-Claude</FirstName> <LastName>D'Amours</LastName> <Constituency>Madawaska—Restigouche</Constituency> <Province code="NB">New Brunswick</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Patricia Davidson</Name> <FirstName>Patricia</FirstName> <LastName>Davidson</LastName> <Constituency>Sarnia—Lambton</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Don Davies</Name> <FirstName>Don</FirstName> <LastName>Davies</LastName> <Constituency>Vancouver Kingsway</Constituency> <Province code="BC">British Columbia</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Libby Davies</Name> <FirstName>Libby</FirstName> <LastName>Davies</LastName> <Constituency>Vancouver East</Constituency> <Province code="BC">British Columbia</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Stockwell Day</Name> <FirstName>Stockwell</FirstName> <LastName>Day</LastName> <Constituency>Okanagan—Coquihalla</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Claude DeBellefeuille</Name> <FirstName>Claude</FirstName> <LastName>DeBellefeuille</LastName> <Constituency>Beauharnois—Salaberry</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Bob Dechert</Name> <FirstName>Bob</FirstName> <LastName>Dechert</LastName> <Constituency>Mississauga—Erindale</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Dean Del Mastro</Name> <FirstName>Dean</FirstName> <LastName>Del Mastro</LastName> <Constituency>Peterborough</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Nicole Demers</Name> <FirstName>Nicole</FirstName> <LastName>Demers</LastName> <Constituency>Laval</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Johanne Deschamps</Name> <FirstName>Johanne</FirstName> <LastName>Deschamps</LastName> <Constituency>Laurentides—Labelle</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Luc Desnoyers</Name> <FirstName>Luc</FirstName> <LastName>Desnoyers</LastName> <Constituency>Rivière-des-Mille-Îles</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Barry Devolin</Name> <FirstName>Barry</FirstName> <LastName>Devolin</LastName> <Constituency>Haliburton—Kawartha Lakes—Brock</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Paul Dewar</Name> <FirstName>Paul</FirstName> <LastName>Dewar</LastName> <Constituency>Ottawa Centre</Constituency> <Province code="ON">Ontario</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Stéphane Dion</Name> <FirstName>Stéphane</FirstName> <LastName>Dion</LastName> <Constituency>Saint-Laurent—Cartierville</Constituency> <Province code="QC">Québec</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Fin Donnelly</Name> <FirstName>Fin</FirstName> <LastName>Donnelly</LastName> <Constituency>New Westminster—Coquitlam</Constituency> <Province code="BC">British Columbia</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Jean Dorion</Name> <FirstName>Jean</FirstName> <LastName>Dorion</LastName> <Constituency>Longueuil—Pierre-Boucher</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Earl Dreeshen</Name> <FirstName>Earl</FirstName> <LastName>Dreeshen</LastName> <Constituency>Red Deer</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Ken Dryden</Name> <FirstName>Ken</FirstName> <LastName>Dryden</LastName> <Constituency>York Centre</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Gilles Duceppe</Name> <FirstName>Gilles</FirstName> <LastName>Duceppe</LastName> <Constituency>Laurier—Sainte-Marie</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Nicolas Dufour</Name> <FirstName>Nicolas</FirstName> <LastName>Dufour</LastName> <Constituency>Repentigny</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. John Duncan</Name> <FirstName>John</FirstName> <LastName>Duncan</LastName> <Constituency>Vancouver Island North</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Kirsty Duncan</Name> <FirstName>Kirsty</FirstName> <LastName>Duncan</LastName> <Constituency>Etobicoke North</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Linda Duncan</Name> <FirstName>Linda</FirstName> <LastName>Duncan</LastName> <Constituency>Edmonton—Strathcona</Constituency> <Province code="AB">Alberta</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Rick Dykstra</Name> <FirstName>Rick</FirstName> <LastName>Dykstra</LastName> <Constituency>St. Catharines</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Wayne Easter</Name> <FirstName>Wayne</FirstName> <LastName>Easter</LastName> <Constituency>Malpeque</Constituency> <Province code="PE">Prince Edward Island</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Mark Eyking</Name> <FirstName>Mark</FirstName> <LastName>Eyking</LastName> <Constituency>Sydney—Victoria</Constituency> <Province code="NS">Nova Scotia</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Meili Faille</Name> <FirstName>Meili</FirstName> <LastName>Faille</LastName> <Constituency>Vaudreuil-Soulanges</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Ed Fast</Name> <FirstName>Ed</FirstName> <LastName>Fast</LastName> <Constituency>Abbotsford</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Diane Finley</Name> <FirstName>Diane</FirstName> <LastName>Finley</LastName> <Constituency>Haldimand—Norfolk</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Jim Flaherty</Name> <FirstName>Jim</FirstName> <LastName>Flaherty</LastName> <Constituency>Whitby—Oshawa</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Steven Fletcher</Name> <FirstName>Steven</FirstName> <LastName>Fletcher</LastName> <Constituency>Charleswood—St. James—Assiniboia</Constituency> <Province code="MB">Manitoba</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Raymonde Folco</Name> <FirstName>Raymonde</FirstName> <LastName>Folco</LastName> <Constituency>Laval—Les Îles</Constituency> <Province code="QC">Québec</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Judy Foote</Name> <FirstName>Judy</FirstName> <LastName>Foote</LastName> <Constituency>Random—Burin—St. George's</Constituency> <Province code="NL">Newfoundland and Labrador</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Carole Freeman</Name> <FirstName>Carole</FirstName> <LastName>Freeman</LastName> <Constituency>Châteauguay—Saint-Constant</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Hedy Fry</Name> <FirstName>Hedy</FirstName> <LastName>Fry</LastName> <Constituency>Vancouver Centre</Constituency> <Province code="BC">British Columbia</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Christiane Gagnon</Name> <FirstName>Christiane</FirstName> <LastName>Gagnon</LastName> <Constituency>Québec</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Royal Galipeau</Name> <FirstName>Royal</FirstName> <LastName>Galipeau</LastName> <Constituency>Ottawa—Orléans</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Cheryl Gallant</Name> <FirstName>Cheryl</FirstName> <LastName>Gallant</LastName> <Constituency>Renfrew—Nipissing—Pembroke</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Marc Garneau</Name> <FirstName>Marc</FirstName> <LastName>Garneau</LastName> <Constituency>Westmount—Ville-Marie</Constituency> <Province code="QC">Québec</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Roger Gaudet</Name> <FirstName>Roger</FirstName> <LastName>Gaudet</LastName> <Constituency>Montcalm</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Bernard Généreux</Name> <FirstName>Bernard</FirstName> <LastName>Généreux</LastName> <Constituency>Montmagny—L'Islet—Kamouraska—Rivière-du-Loup</Constituency> <Province code="QC">Québec</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Shelly Glover</Name> <FirstName>Shelly</FirstName> <LastName>Glover</LastName> <Constituency>Saint Boniface</Constituency> <Province code="MB">Manitoba</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Yvon Godin</Name> <FirstName>Yvon</FirstName> <LastName>Godin</LastName> <Constituency>Acadie—Bathurst</Constituency> <Province code="NB">New Brunswick</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Peter Goldring</Name> <FirstName>Peter</FirstName> <LastName>Goldring</LastName> <Constituency>Edmonton East</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>0</Nay> <Paired>1</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Ralph Goodale</Name> <FirstName>Ralph</FirstName> <LastName>Goodale</LastName> <Constituency>Wascana</Constituency> <Province code="SK">Saskatchewan</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Gary Goodyear</Name> <FirstName>Gary</FirstName> <LastName>Goodyear</LastName> <Constituency>Cambridge</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Jacques Gourde</Name> <FirstName>Jacques</FirstName> <LastName>Gourde</LastName> <Constituency>Lotbinière—Chutes-de-la-Chaudière</Constituency> <Province code="QC">Québec</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Claude Gravelle</Name> <FirstName>Claude</FirstName> <LastName>Gravelle</LastName> <Constituency>Nickel Belt</Constituency> <Province code="ON">Ontario</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Nina Grewal</Name> <FirstName>Nina</FirstName> <LastName>Grewal</LastName> <Constituency>Fleetwood—Port Kells</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Albina Guarnieri</Name> <FirstName>Albina</FirstName> <LastName>Guarnieri</LastName> <Constituency>Mississauga East—Cooksville</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Helena Guergis</Name> <FirstName>Helena</FirstName> <LastName>Guergis</LastName> <Constituency>Simcoe—Grey</Constituency> <Province code="ON">Ontario</Province> <Party>Independent Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Claude Guimond</Name> <FirstName>Claude</FirstName> <LastName>Guimond</LastName> <Constituency>Rimouski-Neigette—Témiscouata—Les Basques</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Michel Guimond</Name> <FirstName>Michel</FirstName> <LastName>Guimond</LastName> <Constituency>Montmorency—Charlevoix—Haute-Côte-Nord</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Stephen Harper</Name> <FirstName>Stephen</FirstName> <LastName>Harper</LastName> <Constituency>Calgary Southwest</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Jack Harris</Name> <FirstName>Jack</FirstName> <LastName>Harris</LastName> <Constituency>St. John's East</Constituency> <Province code="NL">Newfoundland and Labrador</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Richard Harris</Name> <FirstName>Richard</FirstName> <LastName>Harris</LastName> <Constituency>Cariboo—Prince George</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Laurie Hawn</Name> <FirstName>Laurie</FirstName> <LastName>Hawn</LastName> <Constituency>Edmonton Centre</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Russ Hiebert</Name> <FirstName>Russ</FirstName> <LastName>Hiebert</LastName> <Constituency>South Surrey—White Rock—Cloverdale</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Randy Hoback</Name> <FirstName>Randy</FirstName> <LastName>Hoback</LastName> <Constituency>Prince Albert</Constituency> <Province code="SK">Saskatchewan</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Candice Hoeppner</Name> <FirstName>Candice</FirstName> <LastName>Hoeppner</LastName> <Constituency>Portage—Lisgar</Constituency> <Province code="MB">Manitoba</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Ed Holder</Name> <FirstName>Ed</FirstName> <LastName>Holder</LastName> <Constituency>London West</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Mark Holland</Name> <FirstName>Mark</FirstName> <LastName>Holland</LastName> <Constituency>Ajax—Pickering</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Carol Hughes</Name> <FirstName>Carol</FirstName> <LastName>Hughes</LastName> <Constituency>Algoma—Manitoulin—Kapuskasing</Constituency> <Province code="ON">Ontario</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Bruce Hyer</Name> <FirstName>Bruce</FirstName> <LastName>Hyer</LastName> <Constituency>Thunder Bay—Superior North</Constituency> <Province code="ON">Ontario</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Brian Jean</Name> <FirstName>Brian</FirstName> <LastName>Jean</LastName> <Constituency>Fort McMurray—Athabasca</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Marlene Jennings</Name> <FirstName>Marlene</FirstName> <LastName>Jennings</LastName> <Constituency>Notre-Dame-de-Grâce—Lachine</Constituency> <Province code="QC">Québec</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Peter Julian</Name> <FirstName>Peter</FirstName> <LastName>Julian</LastName> <Constituency>Burnaby—New Westminster</Constituency> <Province code="BC">British Columbia</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Randy Kamp</Name> <FirstName>Randy</FirstName> <LastName>Kamp</LastName> <Constituency>Pitt Meadows—Maple Ridge—Mission</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Andrew Kania</Name> <FirstName>Andrew</FirstName> <LastName>Kania</LastName> <Constituency>Brampton West</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Gerald Keddy</Name> <FirstName>Gerald</FirstName> <LastName>Keddy</LastName> <Constituency>South Shore—St. Margaret's</Constituency> <Province code="NS">Nova Scotia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Jason Kenney</Name> <FirstName>Jason</FirstName> <LastName>Kenney</LastName> <Constituency>Calgary Southeast</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Peter Kent</Name> <FirstName>Peter</FirstName> <LastName>Kent</LastName> <Constituency>Thornhill</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Greg Kerr</Name> <FirstName>Greg</FirstName> <LastName>Kerr</LastName> <Constituency>West Nova</Constituency> <Province code="NS">Nova Scotia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Ed Komarnicki</Name> <FirstName>Ed</FirstName> <LastName>Komarnicki</LastName> <Constituency>Souris—Moose Mountain</Constituency> <Province code="SK">Saskatchewan</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Daryl Kramp</Name> <FirstName>Daryl</FirstName> <LastName>Kramp</LastName> <Constituency>Prince Edward—Hastings</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Jean-Yves Laforest</Name> <FirstName>Jean-Yves</FirstName> <LastName>Laforest</LastName> <Constituency>Saint-Maurice—Champlain</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Mario Laframboise</Name> <FirstName>Mario</FirstName> <LastName>Laframboise</LastName> <Constituency>Argenteuil—Papineau—Mirabel</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Mike Lake</Name> <FirstName>Mike</FirstName> <LastName>Lake</LastName> <Constituency>Edmonton—Mill Woods—Beaumont</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Guy Lauzon</Name> <FirstName>Guy</FirstName> <LastName>Lauzon</LastName> <Constituency>Stormont—Dundas—South Glengarry</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Jack Layton</Name> <FirstName>Jack</FirstName> <LastName>Layton</LastName> <Constituency>Toronto—Danforth</Constituency> <Province code="ON">Ontario</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Denis Lebel</Name> <FirstName>Denis</FirstName> <LastName>Lebel</LastName> <Constituency>Roberval—Lac-Saint-Jean</Constituency> <Province code="QC">Québec</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Dominic LeBlanc</Name> <FirstName>Dominic</FirstName> <LastName>LeBlanc</LastName> <Constituency>Beauséjour</Constituency> <Province code="NB">New Brunswick</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Derek Lee</Name> <FirstName>Derek</FirstName> <LastName>Lee</LastName> <Constituency>Scarborough—Rouge River</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Marc Lemay</Name> <FirstName>Marc</FirstName> <LastName>Lemay</LastName> <Constituency>Abitibi—Témiscamingue</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Pierre Lemieux</Name> <FirstName>Pierre</FirstName> <LastName>Lemieux</LastName> <Constituency>Glengarry—Prescott—Russell</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Megan Leslie</Name> <FirstName>Megan</FirstName> <LastName>Leslie</LastName> <Constituency>Halifax</Constituency> <Province code="NS">Nova Scotia</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Yvon Lévesque</Name> <FirstName>Yvon</FirstName> <LastName>Lévesque</LastName> <Constituency>Abitibi—Baie-James—Nunavik—Eeyou</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Ben Lobb</Name> <FirstName>Ben</FirstName> <LastName>Lobb</LastName> <Constituency>Huron—Bruce</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Tom Lukiwski</Name> <FirstName>Tom</FirstName> <LastName>Lukiwski</LastName> <Constituency>Regina—Lumsden—Lake Centre</Constituency> <Province code="SK">Saskatchewan</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Gary Lunn</Name> <FirstName>Gary</FirstName> <LastName>Lunn</LastName> <Constituency>Saanich—Gulf Islands</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. James Lunney</Name> <FirstName>James</FirstName> <LastName>Lunney</LastName> <Constituency>Nanaimo—Alberni</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Lawrence MacAulay</Name> <FirstName>Lawrence</FirstName> <LastName>MacAulay</LastName> <Constituency>Cardigan</Constituency> <Province code="PE">Prince Edward Island</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Peter MacKay</Name> <FirstName>Peter</FirstName> <LastName>MacKay</LastName> <Constituency>Central Nova</Constituency> <Province code="NS">Nova Scotia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Dave MacKenzie</Name> <FirstName>Dave</FirstName> <LastName>MacKenzie</LastName> <Constituency>Oxford</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Gurbax Malhi</Name> <FirstName>Gurbax</FirstName> <LastName>Malhi</LastName> <Constituency>Bramalea—Gore—Malton</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Luc Malo</Name> <FirstName>Luc</FirstName> <LastName>Malo</LastName> <Constituency>Verchères—Les Patriotes</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Jim Maloway</Name> <FirstName>Jim</FirstName> <LastName>Maloway</LastName> <Constituency>Elmwood—Transcona</Constituency> <Province code="MB">Manitoba</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Wayne Marston</Name> <FirstName>Wayne</FirstName> <LastName>Marston</LastName> <Constituency>Hamilton East—Stoney Creek</Constituency> <Province code="ON">Ontario</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Tony Martin</Name> <FirstName>Tony</FirstName> <LastName>Martin</LastName> <Constituency>Sault Ste. Marie</Constituency> <Province code="ON">Ontario</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Brian Masse</Name> <FirstName>Brian</FirstName> <LastName>Masse</LastName> <Constituency>Windsor West</Constituency> <Province code="ON">Ontario</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Irene Mathyssen</Name> <FirstName>Irene</FirstName> <LastName>Mathyssen</LastName> <Constituency>London—Fanshawe</Constituency> <Province code="ON">Ontario</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Colin Mayes</Name> <FirstName>Colin</FirstName> <LastName>Mayes</LastName> <Constituency>Okanagan—Shuswap</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Phil McColeman</Name> <FirstName>Phil</FirstName> <LastName>McColeman</LastName> <Constituency>Brant</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. David McGuinty</Name> <FirstName>David</FirstName> <LastName>McGuinty</LastName> <Constituency>Ottawa South</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. John McKay</Name> <FirstName>John</FirstName> <LastName>McKay</LastName> <Constituency>Scarborough—Guildwood</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Cathy McLeod</Name> <FirstName>Cathy</FirstName> <LastName>McLeod</LastName> <Constituency>Kamloops—Thompson—Cariboo</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Dan McTeague</Name> <FirstName>Dan</FirstName> <LastName>McTeague</LastName> <Constituency>Pickering—Scarborough East</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Serge Ménard</Name> <FirstName>Serge</FirstName> <LastName>Ménard</LastName> <Constituency>Marc-Aurèle-Fortin</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Alexandra Mendes</Name> <FirstName>Alexandra</FirstName> <LastName>Mendes</LastName> <Constituency>Brossard—La Prairie</Constituency> <Province code="QC">Québec</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Ted Menzies</Name> <FirstName>Ted</FirstName> <LastName>Menzies</LastName> <Constituency>Macleod</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Rob Merrifield</Name> <FirstName>Rob</FirstName> <LastName>Merrifield</LastName> <Constituency>Yellowhead</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Larry Miller</Name> <FirstName>Larry</FirstName> <LastName>Miller</LastName> <Constituency>Bruce—Grey—Owen Sound</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Maria Minna</Name> <FirstName>Maria</FirstName> <LastName>Minna</LastName> <Constituency>Beaches—East York</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. James Moore</Name> <FirstName>James</FirstName> <LastName>Moore</LastName> <Constituency>Port Moody—Westwood—Port Coquitlam</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Rob Moore</Name> <FirstName>Rob</FirstName> <LastName>Moore</LastName> <Constituency>Fundy Royal</Constituency> <Province code="NB">New Brunswick</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Maria Mourani</Name> <FirstName>Maria</FirstName> <LastName>Mourani</LastName> <Constituency>Ahuntsic</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Thomas Mulcair</Name> <FirstName>Thomas</FirstName> <LastName>Mulcair</LastName> <Constituency>Outremont</Constituency> <Province code="QC">Québec</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Brian Murphy</Name> <FirstName>Brian</FirstName> <LastName>Murphy</LastName> <Constituency>Moncton—Riverview—Dieppe</Constituency> <Province code="NB">New Brunswick</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Shawn Murphy</Name> <FirstName>Shawn</FirstName> <LastName>Murphy</LastName> <Constituency>Charlottetown</Constituency> <Province code="PE">Prince Edward Island</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Joyce Murray</Name> <FirstName>Joyce</FirstName> <LastName>Murray</LastName> <Constituency>Vancouver Quadra</Constituency> <Province code="BC">British Columbia</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Richard Nadeau</Name> <FirstName>Richard</FirstName> <LastName>Nadeau</LastName> <Constituency>Gatineau</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Anita Neville</Name> <FirstName>Anita</FirstName> <LastName>Neville</LastName> <Constituency>Winnipeg South Centre</Constituency> <Province code="MB">Manitoba</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Rob Nicholson</Name> <FirstName>Rob</FirstName> <LastName>Nicholson</LastName> <Constituency>Niagara Falls</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Rick Norlock</Name> <FirstName>Rick</FirstName> <LastName>Norlock</LastName> <Constituency>Northumberland—Quinte West</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Gordon O'Connor</Name> <FirstName>Gordon</FirstName> <LastName>O'Connor</LastName> <Constituency>Carleton—Mississippi Mills</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Tilly O'Neill Gordon</Name> <FirstName>Tilly</FirstName> <LastName>O'Neill Gordon</LastName> <Constituency>Miramichi</Constituency> <Province code="NB">New Brunswick</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Deepak Obhrai</Name> <FirstName>Deepak</FirstName> <LastName>Obhrai</LastName> <Constituency>Calgary East</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Bev Oda</Name> <FirstName>Bev</FirstName> <LastName>Oda</LastName> <Constituency>Durham</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Robert Oliphant</Name> <FirstName>Robert</FirstName> <LastName>Oliphant</LastName> <Constituency>Don Valley West</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Christian Ouellet</Name> <FirstName>Christian</FirstName> <LastName>Ouellet</LastName> <Constituency>Brome—Missisquoi</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>0</Yea> <Nay>0</Nay> <Paired>1</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Massimo Pacetti</Name> <FirstName>Massimo</FirstName> <LastName>Pacetti</LastName> <Constituency>Saint-Léonard—Saint-Michel</Constituency> <Province code="QC">Québec</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Daniel Paillé</Name> <FirstName>Daniel</FirstName> <LastName>Paillé</LastName> <Constituency>Hochelaga</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Pascal-Pierre Paillé</Name> <FirstName>Pascal-Pierre</FirstName> <LastName>Paillé</LastName> <Constituency>Louis-Hébert</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>0</Yea> <Nay>0</Nay> <Paired>1</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Pierre Paquette</Name> <FirstName>Pierre</FirstName> <LastName>Paquette</LastName> <Constituency>Joliette</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Christian Paradis</Name> <FirstName>Christian</FirstName> <LastName>Paradis</LastName> <Constituency>Mégantic—L'Érable</Constituency> <Province code="QC">Québec</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Bernard Patry</Name> <FirstName>Bernard</FirstName> <LastName>Patry</LastName> <Constituency>Pierrefonds—Dollard</Constituency> <Province code="QC">Québec</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. LaVar Payne</Name> <FirstName>LaVar</FirstName> <LastName>Payne</LastName> <Constituency>Medicine Hat</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Glen Pearson</Name> <FirstName>Glen</FirstName> <LastName>Pearson</LastName> <Constituency>London North Centre</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Daniel Petit</Name> <FirstName>Daniel</FirstName> <LastName>Petit</LastName> <Constituency>Charlesbourg—Haute-Saint-Charles</Constituency> <Province code="QC">Québec</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Louis Plamondon</Name> <FirstName>Louis</FirstName> <LastName>Plamondon</LastName> <Constituency>Bas-Richelieu—Nicolet—Bécancour</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Pierre Poilievre</Name> <FirstName>Pierre</FirstName> <LastName>Poilievre</LastName> <Constituency>Nepean—Carleton</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Roger Pomerleau</Name> <FirstName>Roger</FirstName> <LastName>Pomerleau</LastName> <Constituency>Drummond</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Joe Preston</Name> <FirstName>Joe</FirstName> <LastName>Preston</LastName> <Constituency>Elgin—Middlesex—London</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Marcel Proulx</Name> <FirstName>Marcel</FirstName> <LastName>Proulx</LastName> <Constituency>Hull—Aylmer</Constituency> <Province code="QC">Québec</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Bob Rae</Name> <FirstName>Bob</FirstName> <LastName>Rae</LastName> <Constituency>Toronto Centre</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. John Rafferty</Name> <FirstName>John</FirstName> <LastName>Rafferty</LastName> <Constituency>Thunder Bay—Rainy River</Constituency> <Province code="ON">Ontario</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Lisa Raitt</Name> <FirstName>Lisa</FirstName> <LastName>Raitt</LastName> <Constituency>Halton</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. James Rajotte</Name> <FirstName>James</FirstName> <LastName>Rajotte</LastName> <Constituency>Edmonton—Leduc</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Yasmin Ratansi</Name> <FirstName>Yasmin</FirstName> <LastName>Ratansi</LastName> <Constituency>Don Valley East</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Brent Rathgeber</Name> <FirstName>Brent</FirstName> <LastName>Rathgeber</LastName> <Constituency>Edmonton—St. Albert</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Scott Reid</Name> <FirstName>Scott</FirstName> <LastName>Reid</LastName> <Constituency>Lanark—Frontenac—Lennox and Addington</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Blake Richards</Name> <FirstName>Blake</FirstName> <LastName>Richards</LastName> <Constituency>Wild Rose</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Lee Richardson</Name> <FirstName>Lee</FirstName> <LastName>Richardson</LastName> <Constituency>Calgary Centre</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Greg Rickford</Name> <FirstName>Greg</FirstName> <LastName>Rickford</LastName> <Constituency>Kenora</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Gerry Ritz</Name> <FirstName>Gerry</FirstName> <LastName>Ritz</LastName> <Constituency>Battlefords—Lloydminster</Constituency> <Province code="SK">Saskatchewan</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Pablo Rodriguez</Name> <FirstName>Pablo</FirstName> <LastName>Rodriguez</LastName> <Constituency>Honoré-Mercier</Constituency> <Province code="QC">Québec</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Todd Russell</Name> <FirstName>Todd</FirstName> <LastName>Russell</LastName> <Constituency>Labrador</Constituency> <Province code="NL">Newfoundland and Labrador</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Michael Savage</Name> <FirstName>Michael</FirstName> <LastName>Savage</LastName> <Constituency>Dartmouth—Cole Harbour</Constituency> <Province code="NS">Nova Scotia</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Denise Savoie</Name> <FirstName>Denise</FirstName> <LastName>Savoie</LastName> <Constituency>Victoria</Constituency> <Province code="BC">British Columbia</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Andrew Saxton</Name> <FirstName>Andrew</FirstName> <LastName>Saxton</LastName> <Constituency>North Vancouver</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Francis Scarpaleggia</Name> <FirstName>Francis</FirstName> <LastName>Scarpaleggia</LastName> <Constituency>Lac-Saint-Louis</Constituency> <Province code="QC">Québec</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Andrew Scheer</Name> <FirstName>Andrew</FirstName> <LastName>Scheer</LastName> <Constituency>Regina—Qu'Appelle</Constituency> <Province code="SK">Saskatchewan</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Gary Schellenberger</Name> <FirstName>Gary</FirstName> <LastName>Schellenberger</LastName> <Constituency>Perth—Wellington</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Ms. Judy Sgro</Name> <FirstName>Judy</FirstName> <LastName>Sgro</LastName> <Constituency>York West</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Gail Shea</Name> <FirstName>Gail</FirstName> <LastName>Shea</LastName> <Constituency>Egmont</Constituency> <Province code="PE">Prince Edward Island</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Bev Shipley</Name> <FirstName>Bev</FirstName> <LastName>Shipley</LastName> <Constituency>Lambton—Kent—Middlesex</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Devinder Shory</Name> <FirstName>Devinder</FirstName> <LastName>Shory</LastName> <Constituency>Calgary Northeast</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Bill Siksay</Name> <FirstName>Bill</FirstName> <LastName>Siksay</LastName> <Constituency>Burnaby—Douglas</Constituency> <Province code="BC">British Columbia</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Mario Silva</Name> <FirstName>Mario</FirstName> <LastName>Silva</LastName> <Constituency>Davenport</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Scott Simms</Name> <FirstName>Scott</FirstName> <LastName>Simms</LastName> <Constituency>Bonavista—Gander—Grand Falls—Windsor</Constituency> <Province code="NL">Newfoundland and Labrador</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Michelle Simson</Name> <FirstName>Michelle</FirstName> <LastName>Simson</LastName> <Constituency>Scarborough Southwest</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Joy Smith</Name> <FirstName>Joy</FirstName> <LastName>Smith</LastName> <Constituency>Kildonan—St. Paul</Constituency> <Province code="MB">Manitoba</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Kevin Sorenson</Name> <FirstName>Kevin</FirstName> <LastName>Sorenson</LastName> <Constituency>Crowfoot</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Thierry St-Cyr</Name> <FirstName>Thierry</FirstName> <LastName>St-Cyr</LastName> <Constituency>Jeanne-Le Ber</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Bruce Stanton</Name> <FirstName>Bruce</FirstName> <LastName>Stanton</LastName> <Constituency>Simcoe North</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Peter Stoffer</Name> <FirstName>Peter</FirstName> <LastName>Stoffer</LastName> <Constituency>Sackville—Eastern Shore</Constituency> <Province code="NS">Nova Scotia</Province> <Party>NDP</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Brian Storseth</Name> <FirstName>Brian</FirstName> <LastName>Storseth</LastName> <Constituency>Westlock—St. Paul</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Chuck Strahl</Name> <FirstName>Chuck</FirstName> <LastName>Strahl</LastName> <Constituency>Chilliwack—Fraser Canyon</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. David Sweet</Name> <FirstName>David</FirstName> <LastName>Sweet</LastName> <Constituency>Ancaster—Dundas—Flamborough—Westdale</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Paul Szabo</Name> <FirstName>Paul</FirstName> <LastName>Szabo</LastName> <Constituency>Mississauga South</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Ève-Mary Thaï Thi Lac</Name> <FirstName>Ève-Mary Thaï</FirstName> <LastName>Thi Lac</LastName> <Constituency>Saint-Hyacinthe—Bagot</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Greg Thompson</Name> <FirstName>Greg</FirstName> <LastName>Thompson</LastName> <Constituency>New Brunswick Southwest</Constituency> <Province code="NB">New Brunswick</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>0</Nay> <Paired>1</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. David Tilson</Name> <FirstName>David</FirstName> <LastName>Tilson</LastName> <Constituency>Dufferin—Caledon</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Vic Toews</Name> <FirstName>Vic</FirstName> <LastName>Toews</LastName> <Constituency>Provencher</Constituency> <Province code="MB">Manitoba</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Alan Tonks</Name> <FirstName>Alan</FirstName> <LastName>Tonks</LastName> <Constituency>York South—Weston</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Brad Trost</Name> <FirstName>Brad</FirstName> <LastName>Trost</LastName> <Constituency>Saskatoon—Humboldt</Constituency> <Province code="SK">Saskatchewan</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Justin Trudeau</Name> <FirstName>Justin</FirstName> <LastName>Trudeau</LastName> <Constituency>Papineau</Constituency> <Province code="QC">Québec</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Merv Tweed</Name> <FirstName>Merv</FirstName> <LastName>Tweed</LastName> <Constituency>Brandon—Souris</Constituency> <Province code="MB">Manitoba</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Tim Uppal</Name> <FirstName>Tim</FirstName> <LastName>Uppal</LastName> <Constituency>Edmonton—Sherwood Park</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Frank Valeriote</Name> <FirstName>Frank</FirstName> <LastName>Valeriote</LastName> <Constituency>Guelph</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Dave Van Kesteren</Name> <FirstName>Dave</FirstName> <LastName>Van Kesteren</LastName> <Constituency>Chatham-Kent—Essex</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Peter Van Loan</Name> <FirstName>Peter</FirstName> <LastName>Van Loan</LastName> <Constituency>York—Simcoe</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Maurice Vellacott</Name> <FirstName>Maurice</FirstName> <LastName>Vellacott</LastName> <Constituency>Saskatoon—Wanuskewin</Constituency> <Province code="SK">Saskatchewan</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Senator Josée Verner</Name> <FirstName>Josée</FirstName> <LastName>Verner</LastName> <Constituency>Louis-Saint-Laurent</Constituency> <Province code="QC">Québec</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Robert Vincent</Name> <FirstName>Robert</FirstName> <LastName>Vincent</LastName> <Constituency>Shefford</Constituency> <Province code="QC">Québec</Province> <Party>Bloc Québécois</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Joseph Volpe</Name> <FirstName>Joseph</FirstName> <LastName>Volpe</LastName> <Constituency>Eglinton—Lawrence</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Mike Wallace</Name> <FirstName>Mike</FirstName> <LastName>Wallace</LastName> <Constituency>Burlington</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Mark Warawa</Name> <FirstName>Mark</FirstName> <LastName>Warawa</LastName> <Constituency>Langley</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Chris Warkentin</Name> <FirstName>Chris</FirstName> <LastName>Warkentin</LastName> <Constituency>Peace River</Constituency> <Province code="AB">Alberta</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Jeff Watson</Name> <FirstName>Jeff</FirstName> <LastName>Watson</LastName> <Constituency>Essex</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. John Weston</Name> <FirstName>John</FirstName> <LastName>Weston</LastName> <Constituency>West Vancouver—Sunshine Coast—Sea to Sky Country</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Rodney Weston</Name> <FirstName>Rodney</FirstName> <LastName>Weston</LastName> <Constituency>Saint John</Constituency> <Province code="NB">New Brunswick</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Bryon Wilfert</Name> <FirstName>Bryon</FirstName> <LastName>Wilfert</LastName> <Constituency>Richmond Hill</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Alice Wong</Name> <FirstName>Alice</FirstName> <LastName>Wong</LastName> <Constituency>Richmond</Constituency> <Province code="BC">British Columbia</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Stephen Woodworth</Name> <FirstName>Stephen</FirstName> <LastName>Woodworth</LastName> <Constituency>Kitchener Centre</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Borys Wrzesnewskyj</Name> <FirstName>Borys</FirstName> <LastName>Wrzesnewskyj</LastName> <Constituency>Etobicoke Centre</Constituency> <Province code="ON">Ontario</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Lynne Yelich</Name> <FirstName>Lynne</FirstName> <LastName>Yelich</LastName> <Constituency>Blackstrap</Constituency> <Province code="SK">Saskatchewan</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mr. Terence Young</Name> <FirstName>Terence</FirstName> <LastName>Young</LastName> <Constituency>Oakville</Constituency> <Province code="ON">Ontario</Province> <Party>Conservative</Party> <RecordedVote> <Yea>0</Yea> <Nay>1</Nay> <Paired>0</Paired> </RecordedVote> </Participant> <Participant> <Name>Mrs. Lise Zarac</Name> <FirstName>Lise</FirstName> <LastName>Zarac</LastName> <Constituency>LaSalle—Émard</Constituency> <Province code="QC">Québec</Province> <Party>Liberal</Party> <RecordedVote> <Yea>1</Yea> <Nay>0</Nay> <Paired>0</Paired> </RecordedVote> </Participant> </Vote>
{ "content_hash": "24f46ec2833603839182ba1a6d3bcead", "timestamp": "", "source": "github", "line_count": 3657, "max_line_length": 237, "avg_line_length": 29.02597757724911, "alnum_prop": 0.6156404265742171, "repo_name": "tomclegg/whovoted", "id": "25b7501a380de6e1ff624c9435df5a6670c67ede", "size": "106745", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "data-import/data/vote-40-3-112.xml", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "1576" }, { "name": "HTML", "bytes": "629" }, { "name": "JavaScript", "bytes": "18948" }, { "name": "Ruby", "bytes": "3433" } ], "symlink_target": "" }
namespace Power { using System; public class Startup { public static void Main(string[] args) { Console.Write("n = "); var n = int.Parse(Console.ReadLine()); Console.Write("m = "); var m = int.Parse(Console.ReadLine()); decimal result = 1; for (var i = 0; i < m; i++) { result *= n; } Console.WriteLine($"power(n, m) = {result}"); } } }
{ "content_hash": "363e61189e8f0c83dc1eb22f9ad442c3", "timestamp": "", "source": "github", "line_count": 25, "max_line_length": 57, "avg_line_length": 20.28, "alnum_prop": 0.42209072978303747, "repo_name": "stoyanov7/TelerikAcademy", "id": "53449c65c79488bb134ca98cc0013ae09a347f8f", "size": "509", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "ProgrammingWithC#/01.C#FundamentalsI/06.Loops/Demos/07.Power/Power/Startup.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP", "bytes": "106" }, { "name": "C#", "bytes": "1882051" }, { "name": "CSS", "bytes": "513" }, { "name": "HTML", "bytes": "5636" }, { "name": "JavaScript", "bytes": "13878" }, { "name": "XSLT", "bytes": "781" } ], "symlink_target": "" }
foreach(varname INPUT_DEF_FILE OUTPUT_DEF_FILE) if(NOT DEFINED ${varname}) message(FATAL_ERROR "Variable '${varname}' is not defined.") endif() endforeach() file(STRINGS ${INPUT_DEF_FILE} def_lines REGEX "^ (.+)=.+$") set(stub_def_lines "EXPORTS") foreach(line IN LISTS def_lines) string(REGEX REPLACE "^ (.+)=.+$" "${CMAKE_MATCH_1}" updated_line ${line}) set(stub_def_lines "${stub_def_lines}${updated_line}\n") endforeach() file(WRITE ${OUTPUT_DEF_FILE} "${stub_def_lines}")
{ "content_hash": "15a3b3a79ef2da2e95b69dc18f06d2bd", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 77, "avg_line_length": 37.84615384615385, "alnum_prop": 0.6666666666666666, "repo_name": "jcfr/python-cmake-buildsystem", "id": "f309eab52ab6f9aa68c08315a155b756ec7575b6", "size": "508", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "cmake/libpython/generate_libpythonstub_def.cmake", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "16270" }, { "name": "CMake", "bytes": "209154" } ], "symlink_target": "" }
package org.awardis.pride.dao; import org.springframework.transaction.annotation.Transactional; public interface CommonDao<T> { @Transactional T save(T object); }
{ "content_hash": "2a33f09fd58f17636b8496c0848a1c22", "timestamp": "", "source": "github", "line_count": 8, "max_line_length": 64, "avg_line_length": 21.625, "alnum_prop": 0.7687861271676301, "repo_name": "award-is/pride", "id": "197b65e35541616bb85f43682693d59dcb5046b3", "size": "173", "binary": false, "copies": "1", "ref": "refs/heads/develop", "path": "src/main/java/org/awardis/pride/dao/CommonDao.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "18820" } ], "symlink_target": "" }
package org.springframework.security.test.web.servlet.showcase.login; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.security.core.userdetails.User; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.provisioning.InMemoryUserDetailsManager; import org.springframework.security.web.context.HttpSessionSecurityContextRepository; import org.springframework.security.web.context.SecurityContextRepository; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.web.WebAppConfiguration; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.setup.MockMvcBuilders; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.servlet.config.annotation.EnableWebMvc; import static org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestBuilders.formLogin; import static org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.user; import static org.springframework.security.test.web.servlet.response.SecurityMockMvcResultMatchers.authenticated; import static org.springframework.security.test.web.servlet.response.SecurityMockMvcResultMatchers.unauthenticated; import static org.springframework.security.test.web.servlet.setup.SecurityMockMvcConfigurers.springSecurity; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.redirectedUrl; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = CustomConfigAuthenticationTests.Config.class) @WebAppConfiguration public class CustomConfigAuthenticationTests { @Autowired private WebApplicationContext context; @Autowired private SecurityContextRepository securityContextRepository; private MockMvc mvc; @Before public void setup() { this.mvc = MockMvcBuilders.webAppContextSetup(this.context).apply(springSecurity()).build(); } @Test public void authenticationSuccess() throws Exception { this.mvc.perform(formLogin("/authenticate").user("user", "user").password("pass", "password")) .andExpect(status().isFound()).andExpect(redirectedUrl("/")) .andExpect(authenticated().withUsername("user")); } @Test public void withUserSuccess() throws Exception { this.mvc.perform(get("/").with(user("user"))).andExpect(status().isNotFound()) .andExpect(authenticated().withUsername("user")); } @Test public void authenticationFailed() throws Exception { this.mvc.perform(formLogin("/authenticate").user("user", "notfound").password("pass", "invalid")) .andExpect(status().isFound()).andExpect(redirectedUrl("/authenticate?error")) .andExpect(unauthenticated()); } @EnableWebSecurity @EnableWebMvc static class Config extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { // @formatter:off http .authorizeRequests() .anyRequest().authenticated() .and() .securityContext() .securityContextRepository(securityContextRepository()) .and() .formLogin() .usernameParameter("user") .passwordParameter("pass") .loginPage("/authenticate"); // @formatter:on } // @formatter:off @Override @Bean public UserDetailsService userDetailsService() { UserDetails user = User.withDefaultPasswordEncoder().username("user").password("password").roles("USER").build(); return new InMemoryUserDetailsManager(user); } // @formatter:on @Bean SecurityContextRepository securityContextRepository() { HttpSessionSecurityContextRepository repo = new HttpSessionSecurityContextRepository(); repo.setSpringSecurityContextKey("CUSTOM"); return repo; } } }
{ "content_hash": "27a455ced0892364009f9caa68bf2a54", "timestamp": "", "source": "github", "line_count": 113, "max_line_length": 116, "avg_line_length": 39.9646017699115, "alnum_prop": 0.8089016829052259, "repo_name": "fhanik/spring-security", "id": "d58e8326733c55204b20bda75ef81f34dc659411", "size": "5137", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "test/src/test/java/org/springframework/security/test/web/servlet/showcase/login/CustomConfigAuthenticationTests.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "AspectJ", "bytes": "3335" }, { "name": "HTML", "bytes": "115" }, { "name": "Java", "bytes": "12074662" }, { "name": "JavaScript", "bytes": "10" }, { "name": "Kotlin", "bytes": "357974" }, { "name": "PLSQL", "bytes": "3180" }, { "name": "Python", "bytes": "129" }, { "name": "Shell", "bytes": "811" }, { "name": "XSLT", "bytes": "2344" } ], "symlink_target": "" }
<ion-view view-title="{{museo.nombre}}"> <ion-nav-buttons side="right"> <button class="button icon ion-navicon" ng-click="vm.popover.show($event)"></button> </ion-nav-buttons> <ion-content fab-scroll-container> <ion-refresher pulling-text="Desliza para actualizar..." on-refresh="actualizarComentarios()"> </ion-refresher> <div class="card" ng-show="comentarios.length<=0"> <div class="item item-text-wrap" style="color: #B2B2B2;">Puedes recargar la página o agregar un comentario nuevo!</div> </div> <div class="card" ng-show="mostrarNuevoComentario"> <div class="item item-text-wrap" style="color: #B2B2B2;"> <ionic-ratings ratingsobj='rangeMuseo'></ionic-ratings> <label class="item item-input"> <textarea placeholder="Agrega tu comentario..." ng-model="textoComentario.texto" rows="5" style="color: #111;"></textarea> </label> <button class="button button-balanced button-center" ng-click="agregarComentario()"> Enviar </button> </div> </div> <ion-list> <ion-item ng-repeat="comentario in comentarios" style="padding: 0px;"> <div class="list card" style="margin-bottom: 10px;"> <div class="item item-avatar"> <img src="img/avatar.png"> <p>{{comentario.fecha | date:"dd/MM/yyyy '-' h:mma"}}</p> <p> <span class="icon ion-ios-star" ng-show="comentario.calificacion>=1" style="color: #ff9914;"></span> <span class="icon ion-ios-star" ng-show="comentario.calificacion>=2" style="color: #ff9914;"></span> <span class="icon ion-ios-star" ng-show="comentario.calificacion>=3" style="color: #ff9914;"></span> <span class="icon ion-ios-star" ng-show="comentario.calificacion>=4" style="color: #ff9914;"></span> <span class="icon ion-ios-star" ng-show="comentario.calificacion>=5" style="color: #ff9914;"></span> <span class="icon ion-ios-star-outline" ng-show="comentario.calificacion<1" style="color: #ff9914;"></span> <span class="icon ion-ios-star-outline" ng-show="comentario.calificacion<2" style="color: #ff9914;"></span> <span class="icon ion-ios-star-outline" ng-show="comentario.calificacion<3" style="color: #ff9914;"></span> <span class="icon ion-ios-star-outline" ng-show="comentario.calificacion<4" style="color: #ff9914;"></span> <span class="icon ion-ios-star-outline" ng-show="comentario.calificacion<5" style="color: #ff9914;"></span> </p> </div> <div class="item item-body"> <p> {{comentario.comentario}} </p> </div> </div> </ion-item> </ion-list> </ion-content> <fab ng-click="nuevoComentario()"> <i class="icon ion ion-android-add"></i> </fab> </ion-view>
{ "content_hash": "e16dee9a842ebd8b421ad4f4765ebdda", "timestamp": "", "source": "github", "line_count": 57, "max_line_length": 132, "avg_line_length": 50.45614035087719, "alnum_prop": 0.6112656467315716, "repo_name": "tikochato/MusaGT", "id": "3ec62e3d5b919b020ad5aa602406a1bb292933d3", "size": "2877", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "www/templates/museos/museo-comentarios.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "18981" }, { "name": "HTML", "bytes": "18774" }, { "name": "JavaScript", "bytes": "80679" } ], "symlink_target": "" }
import React, { Component } from 'react'; export default class Footer extends Component { render() { const { collapsed, config } = this.props; const { contactInfo } = config; return ( <footer className={collapsed ? 'collapsed' : null} data-component="Page_Footer" role="contentinfo"> <a href="/">{contactInfo.credits}</a> </footer> ); } }
{ "content_hash": "c415fba023009697b6effe1abcd719b4", "timestamp": "", "source": "github", "line_count": 14, "max_line_length": 111, "avg_line_length": 30.071428571428573, "alnum_prop": 0.5629453681710214, "repo_name": "honzachalupa/portfolio2017", "id": "bb074f9d65781fe19170d207951cd77fef175357", "size": "421", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/app/components/Footer.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "23576" }, { "name": "JavaScript", "bytes": "73321" } ], "symlink_target": "" }
<?php namespace shortcutmediaro\web; use yii\web\AssetBundle; /** * Configuration for `backend` client script files * @since 4.0 */ class AdminLteAsset extends AssetBundle { public $sourcePath = '@bower/'; public $css = ['admin-lte/css/AdminLTE.css', 'font-awesome/css/font-awesome.min.css']; public $js = ['admin-lte/js/AdminLTE/app.js']; public $depends = [ 'yii\web\YiiAsset', 'yii\bootstrap\BootstrapAsset', 'yii\bootstrap\BootstrapPluginAsset', ]; }
{ "content_hash": "06a98a99833be84586ea5736bdca51de", "timestamp": "", "source": "github", "line_count": 22, "max_line_length": 90, "avg_line_length": 23, "alnum_prop": 0.6561264822134387, "repo_name": "shortcutmediaro/yii2-adminlte", "id": "7a09a1f1a1472951f97586e7ca3547ac38d57a64", "size": "650", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "web/AdminLteAsset.php", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "PHP", "bytes": "14423" } ], "symlink_target": "" }
<?php # # $Id: password-reset-via-token.php,v 1.1 2010-09-17 14:44:55 dan Exp $ # # Copyright (c) 1998-2003 DVL Software Limited # GLOBAL $numberofdays; GLOBAL $page_size; ?> <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="POST" NAME=f> <TABLE width="*" class="borderless"> <TR> <TD VALIGN="top"> <INPUT TYPE="hidden" NAME="token" VALUE="<?php echo $token ?>"> Password:<br> <INPUT TYPE="PASSWORD" NAME="Password1" VALUE="<?php if (IsSet($Password1)) echo htmlentities($Password1) ?>" size="20"><br><br> Confirm Password:<br> <INPUT TYPE="PASSWORD" NAME="Password2" VALUE="<?php if (IsSet($Password2)) echo htmlentities($Password2) ?>" size="20"> <br><br> <INPUT TYPE="submit" VALUE="Set password" NAME="submit"> </TD> </TR> </TABLE> </FORM>
{ "content_hash": "577a5be445ecaeb875a48431b79ec7e0", "timestamp": "", "source": "github", "line_count": 27, "max_line_length": 143, "avg_line_length": 33.592592592592595, "alnum_prop": 0.5545755237045203, "repo_name": "FreshPorts/freshports", "id": "9a81cd30db3be56209ee1514acd5fd8a0bc3f0cc", "size": "907", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "include/password-reset-via-token.php", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "CSS", "bytes": "22793" }, { "name": "HTML", "bytes": "175693" }, { "name": "Hack", "bytes": "33259" }, { "name": "JavaScript", "bytes": "6736" }, { "name": "Makefile", "bytes": "3096" }, { "name": "PHP", "bytes": "1077092" }, { "name": "Shell", "bytes": "541" }, { "name": "Standard ML", "bytes": "488" } ], "symlink_target": "" }
class StoreException(Exception): pass
{ "content_hash": "95aead13f0948ed930dd790510c4ab94", "timestamp": "", "source": "github", "line_count": 2, "max_line_length": 32, "avg_line_length": 21, "alnum_prop": 0.7619047619047619, "repo_name": "Zephyrrus/ubb", "id": "5c902b901ba67f9ea7f9eb203c48dcb8e6e58ada", "size": "42", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "YEAR 1/SEM1/FP/LAB/L7 - Partial/exceptions.py", "mode": "33188", "license": "mit", "language": [ { "name": "ASP", "bytes": "96" }, { "name": "Assembly", "bytes": "24190" }, { "name": "Batchfile", "bytes": "80" }, { "name": "C", "bytes": "504974" }, { "name": "C#", "bytes": "116117" }, { "name": "C++", "bytes": "406145" }, { "name": "CMake", "bytes": "116836" }, { "name": "CSS", "bytes": "507511" }, { "name": "Common Lisp", "bytes": "4926" }, { "name": "Dockerfile", "bytes": "601" }, { "name": "HTML", "bytes": "774629" }, { "name": "Hack", "bytes": "1348" }, { "name": "Java", "bytes": "225193" }, { "name": "JavaScript", "bytes": "1323357" }, { "name": "Kotlin", "bytes": "80576" }, { "name": "M", "bytes": "812" }, { "name": "MATLAB", "bytes": "14300" }, { "name": "Makefile", "bytes": "62922" }, { "name": "PHP", "bytes": "26576" }, { "name": "PLSQL", "bytes": "3270" }, { "name": "PLpgSQL", "bytes": "73862" }, { "name": "Perl 6", "bytes": "324" }, { "name": "Prolog", "bytes": "5214" }, { "name": "Python", "bytes": "315759" }, { "name": "QMake", "bytes": "5282" }, { "name": "Shell", "bytes": "4089" }, { "name": "TSQL", "bytes": "79222" }, { "name": "XSLT", "bytes": "1953" }, { "name": "Yacc", "bytes": "1718" } ], "symlink_target": "" }
package com.github.scribejava.apis; import com.github.scribejava.core.builder.api.DefaultApi10a; import com.github.scribejava.core.model.OAuth1RequestToken; public class XingApi extends DefaultApi10a { private static final String AUTHORIZE_URL = "https://api.xing.com/v1/authorize?oauth_token=%s"; protected XingApi() { } private static class InstanceHolder { private static final XingApi INSTANCE = new XingApi(); } public static XingApi instance() { return InstanceHolder.INSTANCE; } @Override public String getAccessTokenEndpoint() { return "https://api.xing.com/v1/access_token"; } @Override public String getRequestTokenEndpoint() { return "https://api.xing.com/v1/request_token"; } @Override public String getAuthorizationUrl(OAuth1RequestToken requestToken) { return String.format(AUTHORIZE_URL, requestToken.getToken()); } }
{ "content_hash": "ceb31c15726baec055aa4751fc237d35", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 99, "avg_line_length": 26.305555555555557, "alnum_prop": 0.7011615628299894, "repo_name": "chooco13/scribejava", "id": "5bef0670b128662b92beeec78d715f26eabdb734", "size": "947", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "scribejava-apis/src/main/java/com/github/scribejava/apis/XingApi.java", "mode": "33261", "license": "mit", "language": [ { "name": "Java", "bytes": "402236" } ], "symlink_target": "" }
<!doctype html> <!-- @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt --> <html lang=""> <head> <meta charset="utf-8"> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="generator" content="Polymer Starter Kit" /> <title>Polymer Todo</title> <!-- Place favicon.ico in the `app/` directory --> <!-- Chrome for Android theme color --> <meta name="theme-color" content="#D32F2F"> <!-- Web Application Manifest --> <link rel="manifest" href="manifest.json"> <!-- Tile color for Win8 --> <meta name="msapplication-TileColor" content="#D32F2F"> <!-- Add to homescreen for Chrome on Android --> <meta name="mobile-web-app-capable" content="yes"> <meta name="application-name" content="PSK"> <link rel="icon" sizes="192x192" href="images/touch/chrome-touch-icon-192x192.png"> <!-- Add to homescreen for Safari on iOS --> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-title" content="Polymer Starter Kit"> <link rel="apple-touch-icon" href="images/touch/apple-touch-icon.png"> <!-- Tile icon for Win8 (144x144) --> <meta name="msapplication-TileImage" content="images/touch/ms-touch-icon-144x144-precomposed.png"> <!-- build:css styles/main.css --> <link rel="stylesheet" href="styles/main.css"> <!-- endbuild--> <!-- build:js bower_components/webcomponentsjs/webcomponents-lite.min.js --> <script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script> <!-- endbuild --> <!-- will be replaced with elements/elements.vulcanized.html --> <link rel="import" href="elements/elements.html"> <!-- endreplace--> <!-- For shared styles, shared-styles.html import in elements.html --> <style is="custom-style" include="shared-styles"></style> </head> <body unresolved class="fullbleed layout vertical"> <span id="browser-sync-binding"></span> <template is="dom-bind" id="app"> <todo-app></todo-app> <!-- Uncomment next block to enable Service Worker support (1/2) --> <paper-toast id="caching-complete" duration="6000" text="Caching complete! This app will work offline."> </paper-toast> <platinum-sw-register auto-register clients-claim skip-waiting on-service-worker-installed="displayInstalledToast"> <platinum-sw-cache default-cache-strategy="fastest" cache-config-file="cache-config.json"> </platinum-sw-cache> </platinum-sw-register> </template> <!-- build:js scripts/app.js --> <script src="scripts/app.js"></script> <!-- endbuild--> </body> </html>
{ "content_hash": "0c389aa247b4d3e52d7ce1a3d2b828db", "timestamp": "", "source": "github", "line_count": 90, "max_line_length": 100, "avg_line_length": 36.22222222222222, "alnum_prop": 0.6696319018404908, "repo_name": "anuragsoni/polymer-todo", "id": "cf54028bc710e399d963ba74e0b41cdcd48e912a", "size": "3260", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/index.html", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "CSS", "bytes": "720" }, { "name": "HTML", "bytes": "56236" }, { "name": "JavaScript", "bytes": "28092" }, { "name": "Shell", "bytes": "147" } ], "symlink_target": "" }
#include <os/thread.h> #include <os/lib/ktable.h> //#include <os/error.h> #include <os/debug.h> #include <os/sched.h> #include <os/platform/irq.h> #include <os/platform/armv7m.h> //#include <os/fpage_impl.h> #include <os/init_hook.h> /** * @file thread.c * @brief Main thread dispatcher * * Each thread has its own Thread Control Block (struct tcb_t) and * addressed by its global id. However, globalid are very wasteful - * we reserve 3 global ids for in-kernel purposes (IDLE, KERNEL and * ROOT), 240 for NVIC's interrupt thread and 256 for user threads, * which gives at least 4 * 512 = 2 KB * * On the other hand, we don't need so much threads, so we use * thread_map - array of pointers to tcb_t sorted by global id and * ktable of tcb_t. For each search operation we use binary search. * * Also dispatcher is responsible for switching contexts (but not * scheduling) * * Reference: A Physically addressed L4 Kernel, Abi Nourai, University of * NSW, Sydney (2005) */ DECLARE_KTABLE(tcb_t, thread_table, CONFIG_MAX_THREADS); /* Always sorted, so we can use binary search on it */ tcb_t *thread_map[CONFIG_MAX_THREADS]; int thread_count; /** * current are always points to TCB which was on processor before we had fallen * into interrupt handler. irq_save saves sp and r4-r11 (other are saved * automatically on stack). When handler finishes, it calls thread_ctx_switch, * which chooses next executable thread and returns its context * * irq_return recover's thread's context * * See also platform/irq.h */ volatile tcb_t *current; /* Currently on CPU */ void *current_utcb; // __USER_DATA; /* KIP declarations */ //static fpage_t *kip_fpage, *kip_extra_fpage; //extern kip_t kip; //extern char *kip_extra; static tcb_t *thread_sched(sched_slot_t *); void PendSV_Handler(void) __NAKED; void PendSV_Handler(void) { irq_enter(); schedule_in_irq(); irq_return(); } void thread_init_subsys() { //fpage_t *last = NULL; ktable_init(&thread_table); //kip.thread_info.s.system_base = THREAD_SYS; //kip.thread_info.s.user_base = THREAD_USER; /* Create KIP fpages * last is ignored, because kip fpages is aligned */ #if 0 assign_fpages_ext(-1, NULL, (memptr_t) &kip, sizeof(kip_t), &kip_fpage, &last); assign_fpages_ext(-1, NULL, (memptr_t) kip_extra, CONFIG_KIP_EXTRA_SIZE, &kip_extra_fpage, &last); #endif sched_slot_set_handler(SSI_NORMAL_THREAD, thread_sched); } INIT_HOOK(thread_init_subsys, INIT_LEVEL_KERNEL); extern tcb_t *caller; /* * Return upper_bound using binary search */ static int thread_map_search(l4_thread_t globalid, int from, int to) { int tid = GLOBALID_TO_TID(globalid); /* Upper bound if beginning of array */ if (to == from || GLOBALID_TO_TID(thread_map[from]->t_globalid) >= tid) return from; while (from <= to) { if ((to - from) <= 1) return to; int mid = from + (to - from) / 2; if (GLOBALID_TO_TID(thread_map[mid]->t_globalid) > tid) to = mid; else if (GLOBALID_TO_TID(thread_map[mid]->t_globalid) < tid) from = mid; else return mid; } /* not reached */ return -1; } /* * Insert thread into thread map */ static void thread_map_insert(l4_thread_t globalid, tcb_t *thr) { if (thread_count == 0) { thread_map[thread_count++] = thr; } else { int i = thread_map_search(globalid, 0, thread_count); int j = thread_count; /* Move forward * Don't check if count is out of range, * because we will fail on ktable_alloc */ for (; j > i; --j) thread_map[j] = thread_map[j - 1]; thread_map[i] = thr; ++thread_count; } } static void thread_map_delete(l4_thread_t globalid) { if (thread_count == 1) { thread_count = 0; } else { int i = thread_map_search(globalid, 0, thread_count); --thread_count; for (; i < thread_count; i++) thread_map[i] = thread_map[i + 1]; } } /* * Initialize thread */ tcb_t *thread_init(l4_thread_t globalid, utcb_t *utcb) { tcb_t *thr = (tcb_t *) ktable_alloc(&thread_table); if (!thr) { // set_caller_error(UE_OUT_OF_MEM); return NULL; } thread_map_insert(globalid, thr); thr->t_localid = 0x0; thr->t_child = NULL; thr->t_parent = NULL; thr->t_sibling = NULL; thr->t_globalid = globalid; if (utcb) utcb->t_globalid = globalid; // thr->as = NULL; thr->utcb = utcb; thr->state = T_INACTIVE; thr->timeout_event = 0; dbg_printf(DL_THREAD, "T: New thread: %t @[%p] \n", globalid, thr); return thr; } void thread_deinit(tcb_t *thr) { thread_map_delete(thr->t_globalid); ktable_free(&thread_table, (void *) thr); } /* Called from user thread */ tcb_t *thread_create(l4_thread_t globalid, utcb_t *utcb) { int id = GLOBALID_TO_TID(globalid); assert(caller != NULL); if (id < THREAD_SYS || globalid == L4_ANYTHREAD || globalid == L4_ANYLOCALTHREAD) { // set_caller_error(UE_TC_NOT_AVAILABLE); return NULL; } tcb_t *thr = thread_init(globalid, utcb); thr->t_parent = caller; /* Place under */ if (caller->t_child) { tcb_t *t = caller->t_child; while (t->t_sibling != 0) t = t->t_sibling; t->t_sibling = thr; thr->t_localid = t->t_localid + (1 << 6); } else { /* That is first thread in child chain */ caller->t_child = thr; thr->t_localid = (1 << 6); } return thr; } void thread_destroy(tcb_t *thr) { tcb_t *parent, *child, *prev_child; /* remove thr from its parent and its siblings */ parent = thr->t_parent; if (parent->t_child == thr) { parent->t_child = thr->t_sibling; } else { child = parent->t_child; while (child != thr) { prev_child = child; child = child->t_sibling; } prev_child->t_sibling = child->t_sibling; } /* move thr's children to caller */ child = thr->t_child; if (child) { child->t_parent = caller; while (child->t_sibling) { child = child->t_sibling; child->t_parent = caller; } /* connect thr's children to caller's children */ child->t_sibling = caller->t_child; caller->t_child = thr->t_child; } thread_deinit(thr); } void thread_space(tcb_t *thr, l4_thread_t spaceid, utcb_t *utcb) { /* If spaceid == dest than create new address space * else share address space between threads */ #ifdef CONFIG_MEMORY if (GLOBALID_TO_TID(thr->t_globalid) == GLOBALID_TO_TID(spaceid)) { thr->as = as_create(thr->t_globalid); /* Grant kip_fpage & kip_ext_fpage only to new AS */ map_fpage(NULL, thr->as, kip_fpage, GRANT); map_fpage(NULL, thr->as, kip_extra_fpage, GRANT); dbg_printf(DL_THREAD, "\tNew space: as: %p, utcb: %p \n", thr->as, utcb); } else { tcb_t *space = thread_by_globalid(spaceid); thr->as = space->as; ++(space->as->shared); } /* If no caller, than it is mapping from kernel to root thread * (some special case for root_utcb) */ if (caller) map_area(caller->as, thr->as, (memptr_t) utcb, sizeof(utcb_t), GRANT, thread_ispriviliged(caller)); else map_area(thr->as, thr->as, (memptr_t) utcb, sizeof(utcb_t), GRANT, 1); #endif } void thread_free_space(tcb_t *thr) { /* free address space */ //as_destroy(thr->as); } void thread_init_ctx(void *sp, void *pc, void *regs, tcb_t *thr) { /* Reserve 8 words for fake context */ sp -= RESERVED_STACK; thr->ctx.sp = (uint32_t) sp; /* Set EXC_RETURN and CONTROL for thread and create initial stack for it * When thread is dispatched, on first context switch */ if (GLOBALID_TO_TID(thr->t_globalid) >= THREAD_ROOT) { thr->ctx.ret = 0xFFFFFFFD; thr->ctx.ctl = 0x3; } else { thr->ctx.ret = 0xFFFFFFF9; thr->ctx.ctl = 0x0; } if (regs == NULL) { ((uint32_t *) sp)[REG_R0] = 0x0; ((uint32_t *) sp)[REG_R1] = 0x0; ((uint32_t *) sp)[REG_R2] = 0x0; ((uint32_t *) sp)[REG_R3] = 0x0; } else { ((uint32_t *) sp)[REG_R0] = ((uint32_t *) regs)[0]; ((uint32_t *) sp)[REG_R1] = ((uint32_t *) regs)[1]; ((uint32_t *) sp)[REG_R2] = ((uint32_t *) regs)[2]; ((uint32_t *) sp)[REG_R3] = ((uint32_t *) regs)[3]; } ((uint32_t *) sp)[REG_R12] = 0x0; ((uint32_t *) sp)[REG_LR] = 0xFFFFFFFF; ((uint32_t *) sp)[REG_PC] = (uint32_t) pc; ((uint32_t *) sp)[REG_xPSR] = 0x1000000; /* Thumb bit on */ } /* Kernel has no fake context, instead of that we rewind * stack and reuse it for kernel thread * * Stack will be created after first interrupt */ void thread_init_kernel_ctx(void *sp, tcb_t *thr) { sp -= RESERVED_STACK; thr->ctx.sp = (uint32_t) sp; thr->ctx.ret = 0xFFFFFFF9; thr->ctx.ctl = 0x0; } /* * Search thread by its global id */ tcb_t *thread_by_globalid(l4_thread_t globalid) { int idx = thread_map_search(globalid, 0, thread_count); if (GLOBALID_TO_TID(thread_map[idx]->t_globalid) != GLOBALID_TO_TID(globalid)) return NULL; return thread_map[idx]; } int thread_isrunnable(tcb_t *thr) { return thr->state == T_RUNNABLE; } tcb_t *thread_current() { return (tcb_t *) current; } int thread_ispriviliged(tcb_t *thread) { return GLOBALID_TO_TID(thread->t_globalid) == THREAD_ROOT; } /* Switch context */ void thread_switch(tcb_t *thr) { assert(thr != NULL); assert(thread_isrunnable(thr)); current = thr; current_utcb = thr->utcb; #if CONFIG_MPU if (current->as) as_setup_mpu(current->as, current->ctx.sp, ((uint32_t *) current->ctx.sp)[REG_PC], current->stack_base, current->stack_size); #endif } /* Select normal thread to run * * NOTE: all threads are derived from root */ static tcb_t *thread_select(tcb_t *parent) { tcb_t *thr = parent->t_child; if (thr == NULL) return NULL; while (1) { if (thread_isrunnable(thr)) return thr; if (thr->t_child != NULL) { thr = thr->t_child; continue; } if (thr->t_sibling != NULL) { thr = thr->t_sibling; continue; } do { if (thr->t_parent == parent) return NULL; thr = thr->t_parent; } while (thr->t_sibling == NULL); thr = thr->t_sibling; } } static tcb_t *thread_sched(sched_slot_t *slot) { extern tcb_t *root; return thread_select(root); } #ifdef CONFIG_KDB static char *kdb_get_thread_type(tcb_t *thr) { int id = GLOBALID_TO_TID(thr->t_globalid); if (id == THREAD_KERNEL) return "KERN"; else if (id == THREAD_ROOT) return "ROOT"; else if (id == THREAD_IDLE) return "IDLE"; else if (id >= THREAD_USER) return "[USR]"; else if (id >= THREAD_SYS) return "[SYS]"; return "???"; } void kdb_dump_threads(void) { tcb_t *thr; int idx; char *state[] = { "FREE", "RUN", "SVC", "RECV", "SEND" }; dbg_printf(DL_KDB, "%5s %8s %8s %6s %s\n", "type", "global", "local", "state", "parent"); for_each_in_ktable(thr, idx, (&thread_table)) { dbg_printf(DL_KDB, "%5s %t %t %6s %t\n", kdb_get_thread_type(thr), thr->t_globalid, thr->t_localid, state[thr->state], (thr->t_parent) ? thr->t_parent->t_globalid : 0); } } #endif /* CONFIG_KDB */
{ "content_hash": "ff51c1678e1024a783b954e889a133af", "timestamp": "", "source": "github", "line_count": 488, "max_line_length": 79, "avg_line_length": 22.21926229508197, "alnum_prop": 0.6249193027759845, "repo_name": "WarlockD/ARM-STM32F469I-Discovery-with-Sound-", "id": "37ac156332342fbbed66a8b4b381837075e26c6e", "size": "11027", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Src/unused/thread.c", "mode": "33188", "license": "mit", "language": [ { "name": "Assembly", "bytes": "26679" }, { "name": "C", "bytes": "9886001" }, { "name": "C++", "bytes": "170810" }, { "name": "CSS", "bytes": "8964" }, { "name": "HTML", "bytes": "709929" }, { "name": "Makefile", "bytes": "320" }, { "name": "Objective-C", "bytes": "12883" }, { "name": "TeX", "bytes": "1145" } ], "symlink_target": "" }
package nl.hsac.fitnesse.testrun; import org.junit.Test; import java.util.List; import static org.junit.Assert.assertEquals; public class TestResultCsvParserTest { static final int RECORD_COUNT = 167; static final String TEST_RESULTS_CSV = "src/test/resources/test-results.csv"; @Test public void canParse() { List<DurationRecord<String>> records = getDurationRecords(); // 174 lines in file // 1 header record // 2 overview pages // 4 tests with unknown times assertEquals(RECORD_COUNT, records.size()); DurationRecord<String> record = records.get(3); assertEquals("HsacAcceptanceTests.SlimTests.BrowserTest.SuiteSetUp", record.getElement()); assertEquals(67L, record.getDuration()); } static List<DurationRecord<String>> getDurationRecords() { return new TestResultCsvParser().parse(TEST_RESULTS_CSV); } }
{ "content_hash": "e6342428efbb44490133cfa1c27a1844", "timestamp": "", "source": "github", "line_count": 32, "max_line_length": 98, "avg_line_length": 28.90625, "alnum_prop": 0.6854054054054054, "repo_name": "fhoeben/hsac-fitnesse-plugin", "id": "c9a4c4e8ab53d6f38215c519b6b38e0e62aea3cd", "size": "925", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/test/java/nl/hsac/fitnesse/testrun/TestResultCsvParserTest.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "HTML", "bytes": "14819" }, { "name": "Java", "bytes": "842545" }, { "name": "Python", "bytes": "1308" } ], "symlink_target": "" }
import org.apache.commons.io.input.TailerListenerAdapter /** Handles a new line from the Tailer. * * @param damageMeter The damage meter that should process the new line and display resulting information */ class LogTailer(damageMeter: DamageMeter) extends TailerListenerAdapter { override def handle(line: String): Unit = { damageMeter.processNewLine(line) } }
{ "content_hash": "0662d875e6074f647c08f36f15beca7b", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 106, "avg_line_length": 34.27272727272727, "alnum_prop": 0.76657824933687, "repo_name": "tfellison/eq-log-parser", "id": "59ea2a1970eca0ebd3a078ade718fd4bd830319e", "size": "377", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/scala/LogTailer.scala", "mode": "33188", "license": "mit", "language": [ { "name": "Scala", "bytes": "7013" } ], "symlink_target": "" }
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('entertainment_tonight', '0003_event_upload_photo'), ] operations = [ migrations.AlterField( model_name='event', name='upload_photo', field=models.FileField(upload_to=b''), ), ]
{ "content_hash": "50637b35cb061e2cc91eb7dbeeca8f92", "timestamp": "", "source": "github", "line_count": 18, "max_line_length": 61, "avg_line_length": 22.055555555555557, "alnum_prop": 0.5994962216624685, "repo_name": "ashleyf1996/OOP_Web_Application_Assignment3", "id": "e4bbac79aa27d41b2dc3a10fc0fae244d04acea4", "size": "470", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "entertainment_tonight/migrations/0004_auto_20170410_1454.py", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "18889" }, { "name": "JavaScript", "bytes": "42" }, { "name": "Python", "bytes": "29498" } ], "symlink_target": "" }
[![Hugo](https://img.shields.io/badge/hugo-0.68.3-blue.svg)](https://gohugo.io) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) ### A blog theme for [Hugo](https://gohugo.io). ![Screenshot](https://raw.githubusercontent.com/Mogeko/mogege/master/images/Screenshot.png) **This project is based on [LeaveIt](https://raw.githubusercontent.com/liuzc/LeaveIt/)** Because the author of [LeaveIt](https://raw.githubusercontent.com/liuzc/LeaveIt/) seems to have abandoned this project, but I prefer this theme, so I simply reopened a new project. At this stage, I mainly integrate the part I modified with LeaveIt, and will add more features in the future. ## Features - Images lazy loading ([Can I use?](https://caniuse.com/#search=Lazy%20loading%20via%20attribute%20for%20images%20%26%20iframes)) - Automatically highlighting code (Support by [highlight.js](https://highlightjs.org/)) - TeX Functions (Support by [KaTeX](https://katex.org/)) - [PlantUML](https://plantuml.com/en/) (Sequence diagram, Usecase diagram, Class diagram ...) - Dark/Light Mode - Support for embedded BiliBili video - Support hidden text ... Here is a table showing the similarities and differences between [mogege](https://github.com/Mogeko/mogege) and [LeaveIt](https://github.com/liuzc/LeaveIt): | Features | mogege | LeaveIt | | --------------------------- | ------------------------------------------------------------ | ------- | | Categories | Yes | Yes | | Tags | Yes | Yes | | RSS support | Yes | Yes | | sitemap.xml | Yes | Yes | | robots.txt | Yes | Yes | | Quote | Optimization | Yes | | Images lazy loading | Optimization[*](https://caniuse.com/#search=Lazy%20loading%20via%20attribute%20for%20images%20%26%20iframes) | Yes | | Dark/Light Mode | Optimization | Yes | | Highlighting code | Optimization | Yes | | Comment area | Optimization | Yes | | TeX Functions | Yes | | | PlantUML | Yes | | | BiliBili video (shortcodes) | Yes | | | Hidden text (shortcodes) | Yes | | | Social button | Yes | Yes | | lightGallery | | Yes | ## Requirements Hugo 0.68.3 or higher **Hugo extended version**, read more [here](https://gohugo.io/news/0.48-relnotes/) ## Installation Navigate to your hugo project root and run: ```bash git submodule add https://github.com/Mogeko/mogege themes/mogege ``` Then run hugo (or set `theme: mogege` in configuration file) ```bash hugo server --minify --theme mogege ``` ## Creating site from scratch Below is example how to create new site from scratch ```bash hugo new site mydocs; cd mydocs git init git submodule add https://github.com/Mogeko/mogege themes/mogege cp -R themes/mogege/exampleSite/content . ``` ```bash hugo server --minify --theme mogege ``` ## Lazy loading If your browser is [supported](https://caniuse.com/#search=Lazy%20loading%20via%20attribute%20for%20images%20%26%20iframes), we will lazy loading `<img>` and `<iframes>` Make sure your browser version: - Chrome > 76 - Firefox > 75 ## TeX Functions **Note:** [list of TeX functions supported by KaTeX](https://katex.org/docs/supported.html) To enable KaTex globally set the parameter `math` to `true` in a project's `config.toml` To enable KaTex on a per page basis include the parameter `math: true` in content files. ### Example ```latex % Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$ % or % Block math: $$ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } $$ ``` ![KaTeX](https://raw.githubusercontent.com/Mogeko/mogege/master/images/KaTeX.png) ## PlantUML **PlantUML is supported by the [official server](http://www.plantuml.com/plantuml/uml/SyfFKj2rKt3CoKnELR1Io4ZDoSa70000)** To enable KaTex globally set the parameter `plantuml` to `true` in a project's `config.toml` To enable KaTex on a per page basis include the parameter `plantuml: true` in content files. You can insert PlantUML in the post by: <pre> &#96;&#96;&#96;plantuml PlantUML syntax &#96;&#96;&#96; </pre> For example: ```plantuml @startuml Bob -> Alice : hello create Other Alice -> Other : new create control String Alice -> String note right : You can also put notes! Alice --> Bob : ok @enduml ``` ![PlantUML](https://raw.githubusercontent.com/Mogeko/mogege/master/images/PlantUML.svg) ## Embedded BiliBili video You can embed BiliBili videos via Shortcodes, just provide the AV 号/BV 号 of the bilibili video You can also use the PV 号 to control the 分 P (default: `1`) ```txt {{< bilibili [AV号/BV号] [PV号] >}} ``` Click [here](https://mogeko.github.io/2020/079#biliplayer) for examples ## Hidden text You can use "hidden text" to hide spoiler content ```txt {{< spoiler >}} HIDDEN TEXT {{< /spoiler >}} ``` Click [here](https://mogeko.github.io/2020/080#spoiler) for examples ## utteranc comment system This blog supports the [utteranc](https://utteranc.es) comment system. It is lighter and more powerful than Gitalk. To use utteranc, you need make sure the [utterances app](https://github.com/apps/utterances) is installed on the repo, otherwise users will not be able to post comments. Then enable utteranc in config.toml ```toml [params] enableUtteranc = true ``` Then Configuration: (For more settings, please refer to [HomePage](https://utteranc.es)) ```toml [params.utteranc] # Homepage: https://utteranc.es repo = "" # The repo to store comments issueTerm = "title" # the mapping between blog posts and GitHub issues. theme = "preferred-color-scheme" # Theme crossorigin = "anonymous" # default: anonymous ``` ## Gitalk comment system This blog supports the [gitalk](https://github.com/gitalk/gitalk) comment system. To use gitalk, you need to apply for a Github Application. For details, please refer to [here](https://mogeko.me/2018/024/#%E5%88%9B%E5%BB%BA-github-application). Then enable gitalk in config.toml ```toml [params] enableGitalk = true ``` Then provide your `Client ID` and `Client Secret` from Github Application in config.toml ```toml [params.gitalk] # Github: https://github.com/gitalk/gitalk clientID = "[Client ID]" # Your client ID clientSecret = "[Client Secret]" # Your client secret repo = "" # The repo to store comments owner = "" # Your GitHub ID admin= "" # Required. Github repository owner and collaborators. (Users who having write access to this repository) id= "location.pathname" # The unique id of the page. labels= "gitalk" # Github issue labels. If you used to use Gitment, you can change it perPage= 15 # Pagination size, with maximum 100. pagerDirection= "last" # Comment sorting direction, available values are 'last' and 'first'. createIssueManually= true # If it is 'false', it is auto to make a Github issue when the administrators login. distractionFreeMode= false # Enable hot key (cmd|ctrl + enter) submit comment. ``` ## Custom CSS/JavaScript Support custom CSS or JavaScript Place your custom CSS and JavaScript files in the `/static/css` and `/static/js` directories of your blog, respectively ```txt static ├── css │ └── _custom.css └── js └── _custom.js ``` Then edit in `config.toml`: ```toml [params.custom] css = ["css/_custom.css"] js = ["js/_custom.js"] ``` > Currently only supports CSS does not support Sass ## Configuration There are few configuration options you can add to your `config.toml` file. ```toml baseURL = "" # <head> 里面的 baseurl 信息,填你的博客地址 title = "" # 浏览器的标题 languageCode = "zh-cn" # 语言 hasCJKLanguage = true # 开启可以让「字数统计」统计汉字 theme = "mogege" # 主题 paginate = 11 # 每页的文章数 enableEmoji = true # 支持 Emoji enableRobotsTXT = true # 支持 robots.txt preserveTaxonomyNames = true [blackfriday] hrefTargetBlank = true nofollowLinks = true noreferrerLinks = true [Permalinks] posts = "/:year/:filename/" [menu] [[menu.main]] name = "Blog" url = "/post/" weight = 1 [[menu.main]] name = "Categories" url = "/categories/" weight = 2 [[menu.main]] name = "Tags" url = "/tags/" weight = 3 [[menu.main]] name = "About" url = "/about/" weight = 4 [params] since = author = "" # Author's name avatar = "/images/me/avatar.jpg" # Author's avatar subtitle = "" # Subtitle home_mode = "" # post or other enableGitalk = true # gitalk 评论系统 google_verification = "" description = "" # (Meta) 描述 keywords = "" # site keywords beian = "" baiduAnalytics = "" googleAnalytics = "" # Google 统计 id license= '本文采用<a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/" target="_blank">知识共享署名-非商业性使用 4.0 国际许可协议</a>进行许可' [params.gitalk] # Github: https://github.com/gitalk/gitalk clientID = "" # Your client ID clientSecret = "" # Your client secret repo = "" # The repo to store comments owner = "" # Your GitHub ID admin= "" # Required. Github repository owner and collaborators. (Users who having write access to this repository) id= "location.pathname" # The unique id of the page. labels= "gitalk" # Github issue labels. If you used to use Gitment, you can change it perPage= 15 # Pagination size, with maximum 100. pagerDirection= "last" # Comment sorting direction, available values are 'last' and 'first'. createIssueManually= true # If it is 'false', it is auto to make a Github issue when the administrators login. distractionFreeMode= false # Enable hot key (cmd|ctrl + enter) submit comment. ``` --- > The name of this project comes from the game > [_Mogeko Castle_](https://okegom.fandom.com/wiki/Mogeko_Castle), and the > [author](https://github.com/Mogeko)'s name also comes from this game. (this is > another story)
{ "content_hash": "da3cdbb6fc54ee1170abae91b9c3e4c1", "timestamp": "", "source": "github", "line_count": 360, "max_line_length": 156, "avg_line_length": 30.4, "alnum_prop": 0.6077302631578947, "repo_name": "chasingegg/chasingegg.github.io", "id": "c270745cca49a538f5d8866321ff96545f4fbaae", "size": "11160", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "themes/mogege/README.md", "mode": "33261", "license": "mit", "language": [ { "name": "HTML", "bytes": "27841" }, { "name": "JavaScript", "bytes": "162329" }, { "name": "SCSS", "bytes": "31258" } ], "symlink_target": "" }
using AzureKeyVault.Connectivity.Contracts; using AzureKeyVault.Connectivity.KeyVaultWrapper; using AzureKeyVaultManager.UWP.ServiceAuthentication; using System; using System.IO; using System.Linq; using System.Threading.Tasks; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Media; namespace AzureKeyVaultManager.UWP.Dialogs { public sealed partial class SignVerifyDialog : ContentDialog { private IKeyVaultKey _key; private enum SignVerifyDialogMode { Sign, Verify } public SignVerifyDialog(IKeyVaultKey key) { _key = key; this.InitializeComponent(); Loaded += (sender, args) => { var allNames = Enum.GetNames(typeof(KeyVaultAlgorithm)); var allValues = allNames.Select(name => (KeyVaultAlgorithm)Enum.Parse(typeof(KeyVaultAlgorithm), name)); algorithmSelection.ItemsSource = allValues.Where(alg => alg.CanSignOrVerify()).ToList(); algorithmSelection.SelectedIndex = 0; //this.MinHeight = MainPage.MainPageInstance.ActualHeight * 0.8 - 500; //this.MinWidth = MainPage.MainPageInstance.ActualWidth * 0.8; //contentGrid.MinHeight = this.MinHeight; }; } private void ContentDialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args) { Hide(); } private async void signButton_Click(object sender, RoutedEventArgs e) { await ExecuteTransformation(SignVerifyDialogMode.Sign); } private async void verifyButton_Click(object sender, RoutedEventArgs e) { await ExecuteTransformation(SignVerifyDialogMode.Verify); } private async Task ExecuteTransformation(SignVerifyDialogMode mode) { var token = await ServiceAuthentication.Authentication.Instance.GetKeyVaultApiToken(MainPage.MainPageInstance.SelectedVault.TenantId.ToString("D")); var vaultSvc = MainPage.MainPageInstance.Factory.GetKeyVaultService(MainPage.MainPageInstance.SelectedVault, token.AsBearer()); // reset coloring plainSignatureText.Background = null; base64SignatureText.Background = null; fileSignatureText.Background = null; string result = null; switch (mode) { case SignVerifyDialogMode.Sign: byte[] digest = null; switch (((PivotItem)modePivot.SelectedItem).Name) { case nameof(modePlainString): digest = GetDigest(System.Text.Encoding.UTF8.GetBytes(plainInputText.Text)); break; case nameof(modeBase64String): digest = GetDigest(Convert.FromBase64String(base64InputText.Text)); break; case nameof(modeFile): digest = GetDigest(File.ReadAllBytes(fileInputName.Text)); break; } result = await vaultSvc.Sign(_key, (KeyVaultAlgorithm)algorithmSelection.SelectedItem, Convert.ToBase64String(digest)); switch (((PivotItem)modePivot.SelectedItem).Name) { case nameof(modePlainString): plainSignatureText.Text = result; break; case nameof(modeBase64String): base64SignatureText.Text = result; break; case nameof(modeFile): fileSignatureText.Text = result; break; } break; case SignVerifyDialogMode.Verify: byte[] verifyDigest = null; string toVerify = null; switch (((PivotItem)modePivot.SelectedItem).Name) { case nameof(modePlainString): verifyDigest = GetDigest(System.Text.Encoding.UTF8.GetBytes(plainInputText.Text)); toVerify = plainSignatureText.Text; break; case nameof(modeBase64String): verifyDigest = GetDigest(Convert.FromBase64String(plainInputText.Text)); toVerify = base64SignatureText.Text; break; case nameof(modeFile): verifyDigest = GetDigest(File.ReadAllBytes(fileInputName.Text)); toVerify = fileSignatureText.Text; break; } var boolResult = await vaultSvc.Verify(_key, (KeyVaultAlgorithm)algorithmSelection.SelectedItem, Convert.ToBase64String(verifyDigest), toVerify); switch (((PivotItem)modePivot.SelectedItem).Name) { case nameof(modePlainString): plainSignatureText.Background = boolResult ? new SolidColorBrush(Windows.UI.Colors.Green) : new SolidColorBrush(Windows.UI.Colors.Red); break; case nameof(modeBase64String): base64SignatureText.Background = boolResult ? new SolidColorBrush(Windows.UI.Colors.Green) : new SolidColorBrush(Windows.UI.Colors.Red); break; case nameof(modeFile): fileSignatureText.Background = boolResult ? new SolidColorBrush(Windows.UI.Colors.Green) : new SolidColorBrush(Windows.UI.Colors.Red); break; } break; } } private byte[] GetDigest(byte[] data) { var alg = (KeyVaultAlgorithm)algorithmSelection.SelectedItem; switch (alg) { case KeyVaultAlgorithm.RS256: return System.Security.Cryptography.SHA256.Create().ComputeHash(data); case KeyVaultAlgorithm.RS384: return System.Security.Cryptography.SHA384.Create().ComputeHash(data); case KeyVaultAlgorithm.RS512: return System.Security.Cryptography.SHA512.Create().ComputeHash(data); } return new byte[0]; } } }
{ "content_hash": "5ed211bfba9fd54df8ea0844adb7eac5", "timestamp": "", "source": "github", "line_count": 154, "max_line_length": 165, "avg_line_length": 43.74025974025974, "alnum_prop": 0.5475059382422803, "repo_name": "mzxgiant/AzureKeyVaultManager", "id": "7404023bf51e60fb77ed91e92aaf52852443a79e", "size": "6738", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "AzureKeyVaultManager.UWP/Dialogs/SignVerifyDialog.xaml.cs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C#", "bytes": "230725" } ], "symlink_target": "" }
namespace blink { class InheritedNumberChecker : public InterpolationType::ConversionChecker { public: static std::unique_ptr<InheritedNumberChecker> create(CSSPropertyID property, double number) { return WTF::wrapUnique(new InheritedNumberChecker(property, number)); } private: InheritedNumberChecker(CSSPropertyID property, double number) : m_property(property), m_number(number) {} bool isValid(const InterpolationEnvironment& environment, const InterpolationValue& underlying) const final { double parentNumber; if (!NumberPropertyFunctions::getNumber( m_property, *environment.state().parentStyle(), parentNumber)) return false; return parentNumber == m_number; } const CSSPropertyID m_property; const double m_number; }; InterpolationValue CSSNumberInterpolationType::createNumberValue( double number) const { return InterpolationValue(InterpolableNumber::create(number)); } InterpolationValue CSSNumberInterpolationType::maybeConvertNeutral( const InterpolationValue&, ConversionCheckers&) const { return createNumberValue(0); } InterpolationValue CSSNumberInterpolationType::maybeConvertInitial( const StyleResolverState&, ConversionCheckers& conversionCheckers) const { double initialNumber; if (!NumberPropertyFunctions::getInitialNumber(cssProperty(), initialNumber)) return nullptr; return createNumberValue(initialNumber); } InterpolationValue CSSNumberInterpolationType::maybeConvertInherit( const StyleResolverState& state, ConversionCheckers& conversionCheckers) const { if (!state.parentStyle()) return nullptr; double inheritedNumber; if (!NumberPropertyFunctions::getNumber(cssProperty(), *state.parentStyle(), inheritedNumber)) return nullptr; conversionCheckers.push_back( InheritedNumberChecker::create(cssProperty(), inheritedNumber)); return createNumberValue(inheritedNumber); } InterpolationValue CSSNumberInterpolationType::maybeConvertValue( const CSSValue& value, const StyleResolverState&, ConversionCheckers&) const { if (!value.isPrimitiveValue() || !toCSSPrimitiveValue(value).isNumber()) return nullptr; return createNumberValue(toCSSPrimitiveValue(value).getDoubleValue()); } InterpolationValue CSSNumberInterpolationType::maybeConvertStandardPropertyUnderlyingValue( const StyleResolverState& state) const { double underlyingNumber; if (!NumberPropertyFunctions::getNumber(cssProperty(), *state.style(), underlyingNumber)) return nullptr; return createNumberValue(underlyingNumber); } void CSSNumberInterpolationType::applyStandardPropertyValue( const InterpolableValue& interpolableValue, const NonInterpolableValue*, StyleResolverState& state) const { double clampedNumber = NumberPropertyFunctions::clampNumber( cssProperty(), toInterpolableNumber(interpolableValue).value()); if (!NumberPropertyFunctions::setNumber(cssProperty(), *state.style(), clampedNumber)) StyleBuilder::applyProperty( cssProperty(), state, *CSSPrimitiveValue::create(clampedNumber, CSSPrimitiveValue::UnitType::Number)); } } // namespace blink
{ "content_hash": "a08a6712437b6155a2d01480c68d32e2", "timestamp": "", "source": "github", "line_count": 94, "max_line_length": 79, "avg_line_length": 36.180851063829785, "alnum_prop": 0.7262569832402235, "repo_name": "google-ar/WebARonARCore", "id": "ef2dae40b623c3d1cd6d1d2388d72b0574b1b781", "size": "3813", "binary": false, "copies": "2", "ref": "refs/heads/webarcore_57.0.2987.5", "path": "third_party/WebKit/Source/core/animation/CSSNumberInterpolationType.cpp", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
package saf //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. // // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( "reflect" "github.com/aliyun/alibaba-cloud-sdk-go/sdk" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider" ) // Client is the sdk client struct, each func corresponds to an OpenAPI type Client struct { sdk.Client } // SetClientProperty Set Property by Reflect func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) { v := reflect.ValueOf(client).Elem() if v.FieldByName(propertyName).IsValid() && v.FieldByName(propertyName).CanSet() { v.FieldByName(propertyName).Set(reflect.ValueOf(propertyValue)) } } // SetEndpointDataToClient Set EndpointMap and ENdpointType func SetEndpointDataToClient(client *Client) { SetClientProperty(client, "EndpointMap", GetEndpointMap()) SetClientProperty(client, "EndpointType", GetEndpointType()) } // NewClient creates a sdk client with environment variables func NewClient() (client *Client, err error) { client = &Client{} err = client.Init() SetEndpointDataToClient(client) return } // NewClientWithProvider creates a sdk client with providers // usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error) { client = &Client{} var pc provider.Provider if len(providers) == 0 { pc = provider.DefaultChain } else { pc = provider.NewProviderChain(providers) } err = client.InitWithProviderChain(regionId, pc) SetEndpointDataToClient(client) return } // NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential // this is the common api to create a sdk client func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) { client = &Client{} err = client.InitWithOptions(regionId, config, credential) SetEndpointDataToClient(client) return } // NewClientWithAccessKey is a shortcut to create sdk client with accesskey // usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { client = &Client{} err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) SetEndpointDataToClient(client) return } // NewClientWithStsToken is a shortcut to create sdk client with sts token // usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { client = &Client{} err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) SetEndpointDataToClient(client) return } // NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn // usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { client = &Client{} err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) SetEndpointDataToClient(client) return } // NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy // usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) { client = &Client{} err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy) SetEndpointDataToClient(client) return } // NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role // usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { client = &Client{} err = client.InitWithEcsRamRole(regionId, roleName) SetEndpointDataToClient(client) return } // NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair // usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { client = &Client{} err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) SetEndpointDataToClient(client) return }
{ "content_hash": "975cd8bd4fece95ca0add763fbed4618", "timestamp": "", "source": "github", "line_count": 129, "max_line_length": 155, "avg_line_length": 41, "alnum_prop": 0.7842692380412176, "repo_name": "aliyun/alibaba-cloud-sdk-go", "id": "336d1db4f901cb1230525bbf84937dbf8915924a", "size": "5289", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "services/saf/client.go", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Go", "bytes": "734307" }, { "name": "Makefile", "bytes": "183" } ], "symlink_target": "" }
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
{ "content_hash": "19cc82a675148c96e566b7cb75d45daf", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 31, "avg_line_length": 9.692307692307692, "alnum_prop": 0.7063492063492064, "repo_name": "mdoering/backbone", "id": "ed61a32718fa13cd30db0af4ad82d314c182de5b", "size": "175", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Pteridophyta/Polypodiopsida/Polypodiales/Dryopteridaceae/Lastrea/Lastrea calcarata/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
<webscript> <shortname>Login</shortname> <description> <![CDATA[ Login and establish a ticket. <BR> Input <dl> <dt>u</dt><dd>cleartext username (must be URL encoded)</dd> <dt>pw</dt><dd>cleartext password (must be URL encoded)</dd> </dl> <BR> Returns the new authentication ticket. <BR> The username and password are provided as URL arguments which may be<br> logged by proxies or the Alfresco server. The alternative POST method<br> of login is recommended instead of GET. ]]> </description> <url>/api/login?u={username}&amp;pw={password?}</url> <format default="xml"/> <authentication>none</authentication> <transaction allow="readonly">required</transaction> <lifecycle>public_api</lifecycle> <family>Authentication</family> </webscript>
{ "content_hash": "d8c220118e5128f5914c437f5d4550c9", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 75, "avg_line_length": 30.384615384615383, "alnum_prop": 0.7037974683544304, "repo_name": "Alfresco/alfresco-ms-office-plugin", "id": "a14ee93d98fe997eeeaf6290f0e1e0fc80ee89b1", "size": "790", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "webscripts/org/alfresco/repository/login.get.desc.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C#", "bytes": "375070" }, { "name": "CSS", "bytes": "15902" }, { "name": "JavaScript", "bytes": "581855" } ], "symlink_target": "" }
namespace Idecom.Bus.Interfaces.Behaviors { using System.Collections.Generic; using Transport; public class DelayedMessageContext { readonly Queue<TransportMessage> _delayedMessages; public DelayedMessageContext() { _delayedMessages = new Queue<TransportMessage>(); } public Queue<TransportMessage> DelayedMessages { get { return _delayedMessages; } } public void Enqueue(TransportMessage transportMessage) { DelayedMessages.Enqueue(transportMessage); } } }
{ "content_hash": "bc9fcf8331c9228a5f645a715e959e2f", "timestamp": "", "source": "github", "line_count": 25, "max_line_length": 62, "avg_line_length": 23.88, "alnum_prop": 0.628140703517588, "repo_name": "evgenyk/Idecom.Bus", "id": "9652f766e03a151d540b8cb66f56f3dfdbec87cc", "size": "597", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Idecom.Bus/Interfaces/Behaviors/DelayedMessageContext.cs", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "1515" }, { "name": "C#", "bytes": "272541" } ], "symlink_target": "" }
from lib._env import * #USE_LOGFILE = True
{ "content_hash": "21d7bce0cce446bb495d011f5dc7c702", "timestamp": "", "source": "github", "line_count": 2, "max_line_length": 22, "avg_line_length": 22.5, "alnum_prop": 0.6666666666666666, "repo_name": "twinpa/virtualeco", "id": "2fa55b49429f1af53378017dc0ad9fb59b3bcd78", "size": "93", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lib/env.py", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "2620" }, { "name": "Python", "bytes": "539043" } ], "symlink_target": "" }
package com.squareup.okhttp.internal.http; import com.squareup.okhttp.HttpResponseCache; import com.squareup.okhttp.OkHttpClient; import com.squareup.okhttp.internal.RecordingAuthenticator; import com.squareup.okhttp.internal.RecordingHostnameVerifier; import com.squareup.okhttp.internal.RecordingOkAuthenticator; import com.squareup.okhttp.internal.SslContextBuilder; import com.squareup.okhttp.mockwebserver.MockResponse; import com.squareup.okhttp.mockwebserver.MockWebServer; import com.squareup.okhttp.mockwebserver.RecordedRequest; import com.squareup.okhttp.mockwebserver.SocketPolicy; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.Authenticator; import java.net.CacheRequest; import java.net.CacheResponse; import java.net.ConnectException; import java.net.HttpRetryException; import java.net.HttpURLConnection; import java.net.InetAddress; import java.net.ProtocolException; import java.net.Proxy; import java.net.ProxySelector; import java.net.ResponseCache; import java.net.SocketAddress; import java.net.SocketTimeoutException; import java.net.URI; import java.net.URL; import java.net.URLConnection; import java.net.UnknownHostException; import java.security.cert.CertificateException; import java.security.cert.X509Certificate; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Random; import java.util.Set; import java.util.UUID; import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; import javax.net.ssl.HttpsURLConnection; import javax.net.ssl.SSLContext; import javax.net.ssl.SSLException; import javax.net.ssl.SSLHandshakeException; import javax.net.ssl.SSLSocketFactory; import javax.net.ssl.TrustManager; import javax.net.ssl.X509TrustManager; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import static com.squareup.okhttp.OkAuthenticator.Credential; import static com.squareup.okhttp.internal.http.StatusLine.HTTP_TEMP_REDIRECT; import static com.squareup.okhttp.mockwebserver.SocketPolicy.DISCONNECT_AT_END; import static com.squareup.okhttp.mockwebserver.SocketPolicy.DISCONNECT_AT_START; import static com.squareup.okhttp.mockwebserver.SocketPolicy.SHUTDOWN_INPUT_AT_END; import static com.squareup.okhttp.mockwebserver.SocketPolicy.SHUTDOWN_OUTPUT_AT_END; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; /** Android's URLConnectionTest. */ public final class URLConnectionTest { private static final SSLContext sslContext = SslContextBuilder.localhost(); private MockWebServer server = new MockWebServer(); private MockWebServer server2 = new MockWebServer(); private final OkHttpClient client = new OkHttpClient(); private HttpResponseCache cache; private String hostName; @Before public void setUp() throws Exception { hostName = server.getHostName(); server.setNpnEnabled(false); } @After public void tearDown() throws Exception { Authenticator.setDefault(null); System.clearProperty("proxyHost"); System.clearProperty("proxyPort"); System.clearProperty("http.proxyHost"); System.clearProperty("http.proxyPort"); System.clearProperty("https.proxyHost"); System.clearProperty("https.proxyPort"); server.shutdown(); server2.shutdown(); if (cache != null) { cache.delete(); } } @Test public void requestHeaders() throws IOException, InterruptedException { server.enqueue(new MockResponse()); server.play(); HttpURLConnection urlConnection = client.open(server.getUrl("/")); urlConnection.addRequestProperty("D", "e"); urlConnection.addRequestProperty("D", "f"); assertEquals("f", urlConnection.getRequestProperty("D")); assertEquals("f", urlConnection.getRequestProperty("d")); Map<String, List<String>> requestHeaders = urlConnection.getRequestProperties(); assertEquals(newSet("e", "f"), new HashSet<String>(requestHeaders.get("D"))); assertEquals(newSet("e", "f"), new HashSet<String>(requestHeaders.get("d"))); try { requestHeaders.put("G", Arrays.asList("h")); fail("Modified an unmodifiable view."); } catch (UnsupportedOperationException expected) { } try { requestHeaders.get("D").add("i"); fail("Modified an unmodifiable view."); } catch (UnsupportedOperationException expected) { } try { urlConnection.setRequestProperty(null, "j"); fail(); } catch (NullPointerException expected) { } try { urlConnection.addRequestProperty(null, "k"); fail(); } catch (NullPointerException expected) { } urlConnection.setRequestProperty("NullValue", null); assertNull(urlConnection.getRequestProperty("NullValue")); urlConnection.addRequestProperty("AnotherNullValue", null); assertNull(urlConnection.getRequestProperty("AnotherNullValue")); urlConnection.getResponseCode(); RecordedRequest request = server.takeRequest(); assertContains(request.getHeaders(), "D: e"); assertContains(request.getHeaders(), "D: f"); assertContainsNoneMatching(request.getHeaders(), "NullValue.*"); assertContainsNoneMatching(request.getHeaders(), "AnotherNullValue.*"); assertContainsNoneMatching(request.getHeaders(), "G:.*"); assertContainsNoneMatching(request.getHeaders(), "null:.*"); try { urlConnection.addRequestProperty("N", "o"); fail("Set header after connect"); } catch (IllegalStateException expected) { } try { urlConnection.setRequestProperty("P", "q"); fail("Set header after connect"); } catch (IllegalStateException expected) { } try { urlConnection.getRequestProperties(); fail(); } catch (IllegalStateException expected) { } } @Test public void getRequestPropertyReturnsLastValue() throws Exception { server.play(); HttpURLConnection urlConnection = client.open(server.getUrl("/")); urlConnection.addRequestProperty("A", "value1"); urlConnection.addRequestProperty("A", "value2"); assertEquals("value2", urlConnection.getRequestProperty("A")); } @Test public void responseHeaders() throws IOException, InterruptedException { server.enqueue(new MockResponse().setStatus("HTTP/1.0 200 Fantastic") .addHeader("A: c") .addHeader("B: d") .addHeader("A: e") .setChunkedBody("ABCDE\nFGHIJ\nKLMNO\nPQR", 8)); server.play(); HttpURLConnection urlConnection = client.open(server.getUrl("/")); assertEquals(200, urlConnection.getResponseCode()); assertEquals("Fantastic", urlConnection.getResponseMessage()); assertEquals("HTTP/1.0 200 Fantastic", urlConnection.getHeaderField(null)); Map<String, List<String>> responseHeaders = urlConnection.getHeaderFields(); assertEquals(Arrays.asList("HTTP/1.0 200 Fantastic"), responseHeaders.get(null)); assertEquals(newSet("c", "e"), new HashSet<String>(responseHeaders.get("A"))); assertEquals(newSet("c", "e"), new HashSet<String>(responseHeaders.get("a"))); try { responseHeaders.put("N", Arrays.asList("o")); fail("Modified an unmodifiable view."); } catch (UnsupportedOperationException expected) { } try { responseHeaders.get("A").add("f"); fail("Modified an unmodifiable view."); } catch (UnsupportedOperationException expected) { } assertEquals("A", urlConnection.getHeaderFieldKey(0)); assertEquals("c", urlConnection.getHeaderField(0)); assertEquals("B", urlConnection.getHeaderFieldKey(1)); assertEquals("d", urlConnection.getHeaderField(1)); assertEquals("A", urlConnection.getHeaderFieldKey(2)); assertEquals("e", urlConnection.getHeaderField(2)); } @Test public void serverSendsInvalidResponseHeaders() throws Exception { server.enqueue(new MockResponse().setStatus("HTP/1.1 200 OK")); server.play(); HttpURLConnection urlConnection = client.open(server.getUrl("/")); try { urlConnection.getResponseCode(); fail(); } catch (IOException expected) { } } @Test public void serverSendsInvalidCodeTooLarge() throws Exception { server.enqueue(new MockResponse().setStatus("HTTP/1.1 2147483648 OK")); server.play(); HttpURLConnection urlConnection = client.open(server.getUrl("/")); try { urlConnection.getResponseCode(); fail(); } catch (IOException expected) { } } @Test public void serverSendsInvalidCodeNotANumber() throws Exception { server.enqueue(new MockResponse().setStatus("HTTP/1.1 00a OK")); server.play(); HttpURLConnection urlConnection = client.open(server.getUrl("/")); try { urlConnection.getResponseCode(); fail(); } catch (IOException expected) { } } @Test public void serverSendsUnnecessaryWhitespace() throws Exception { server.enqueue(new MockResponse().setStatus(" HTTP/1.1 2147483648 OK")); server.play(); HttpURLConnection urlConnection = client.open(server.getUrl("/")); try { urlConnection.getResponseCode(); fail(); } catch (IOException expected) { } } @Test public void connectRetriesUntilConnectedOrFailed() throws Exception { server.play(); URL url = server.getUrl("/foo"); server.shutdown(); HttpURLConnection connection = client.open(url); try { connection.connect(); fail(); } catch (IOException expected) { } } @Test public void requestBodySurvivesRetriesWithFixedLength() throws Exception { testRequestBodySurvivesRetries(TransferKind.FIXED_LENGTH); } @Test public void requestBodySurvivesRetriesWithChunkedStreaming() throws Exception { testRequestBodySurvivesRetries(TransferKind.CHUNKED); } @Test public void requestBodySurvivesRetriesWithBufferedBody() throws Exception { testRequestBodySurvivesRetries(TransferKind.END_OF_STREAM); } private void testRequestBodySurvivesRetries(TransferKind transferKind) throws Exception { server.enqueue(new MockResponse().setBody("abc")); server.play(); // Use a misconfigured proxy to guarantee that the request is retried. server2.play(); FakeProxySelector proxySelector = new FakeProxySelector(); proxySelector.proxies.add(server2.toProxyAddress()); client.setProxySelector(proxySelector); server2.shutdown(); HttpURLConnection connection = client.open(server.getUrl("/def")); connection.setDoOutput(true); transferKind.setForRequest(connection, 4); connection.getOutputStream().write("body".getBytes("UTF-8")); assertContent("abc", connection); assertEquals("body", server.takeRequest().getUtf8Body()); } @Test public void getErrorStreamOnSuccessfulRequest() throws Exception { server.enqueue(new MockResponse().setBody("A")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); assertNull(connection.getErrorStream()); } @Test public void getErrorStreamOnUnsuccessfulRequest() throws Exception { server.enqueue(new MockResponse().setResponseCode(404).setBody("A")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); assertEquals("A", readAscii(connection.getErrorStream(), Integer.MAX_VALUE)); } // Check that if we don't read to the end of a response, the next request on the // recycled connection doesn't get the unread tail of the first request's response. // http://code.google.com/p/android/issues/detail?id=2939 @Test public void bug2939() throws Exception { MockResponse response = new MockResponse().setChunkedBody("ABCDE\nFGHIJ\nKLMNO\nPQR", 8); server.enqueue(response); server.enqueue(response); server.play(); assertContent("ABCDE", client.open(server.getUrl("/")), 5); assertContent("ABCDE", client.open(server.getUrl("/")), 5); } // Check that we recognize a few basic mime types by extension. // http://code.google.com/p/android/issues/detail?id=10100 @Test public void bug10100() throws Exception { assertEquals("image/jpeg", URLConnection.guessContentTypeFromName("someFile.jpg")); assertEquals("application/pdf", URLConnection.guessContentTypeFromName("stuff.pdf")); } @Test public void connectionsArePooled() throws Exception { MockResponse response = new MockResponse().setBody("ABCDEFGHIJKLMNOPQR"); server.enqueue(response); server.enqueue(response); server.enqueue(response); server.play(); assertContent("ABCDEFGHIJKLMNOPQR", client.open(server.getUrl("/foo"))); assertEquals(0, server.takeRequest().getSequenceNumber()); assertContent("ABCDEFGHIJKLMNOPQR", client.open(server.getUrl("/bar?baz=quux"))); assertEquals(1, server.takeRequest().getSequenceNumber()); assertContent("ABCDEFGHIJKLMNOPQR", client.open(server.getUrl("/z"))); assertEquals(2, server.takeRequest().getSequenceNumber()); } @Test public void chunkedConnectionsArePooled() throws Exception { MockResponse response = new MockResponse().setChunkedBody("ABCDEFGHIJKLMNOPQR", 5); server.enqueue(response); server.enqueue(response); server.enqueue(response); server.play(); assertContent("ABCDEFGHIJKLMNOPQR", client.open(server.getUrl("/foo"))); assertEquals(0, server.takeRequest().getSequenceNumber()); assertContent("ABCDEFGHIJKLMNOPQR", client.open(server.getUrl("/bar?baz=quux"))); assertEquals(1, server.takeRequest().getSequenceNumber()); assertContent("ABCDEFGHIJKLMNOPQR", client.open(server.getUrl("/z"))); assertEquals(2, server.takeRequest().getSequenceNumber()); } @Test public void serverClosesSocket() throws Exception { testServerClosesOutput(DISCONNECT_AT_END); } @Test public void serverShutdownInput() throws Exception { testServerClosesOutput(SHUTDOWN_INPUT_AT_END); } @Test public void serverShutdownOutput() throws Exception { testServerClosesOutput(SHUTDOWN_OUTPUT_AT_END); } private void testServerClosesOutput(SocketPolicy socketPolicy) throws Exception { server.enqueue(new MockResponse().setBody("This connection won't pool properly") .setSocketPolicy(socketPolicy)); MockResponse responseAfter = new MockResponse().setBody("This comes after a busted connection"); server.enqueue(responseAfter); server.enqueue(responseAfter); // Enqueue 2x because the broken connection may be reused. server.play(); HttpURLConnection connection1 = client.open(server.getUrl("/a")); connection1.setReadTimeout(100); assertContent("This connection won't pool properly", connection1); assertEquals(0, server.takeRequest().getSequenceNumber()); HttpURLConnection connection2 = client.open(server.getUrl("/b")); connection2.setReadTimeout(100); assertContent("This comes after a busted connection", connection2); // Check that a fresh connection was created, either immediately or after attempting reuse. RecordedRequest requestAfter = server.takeRequest(); if (server.getRequestCount() == 3) { requestAfter = server.takeRequest(); // The failure consumed a response. } // sequence number 0 means the HTTP socket connection was not reused assertEquals(0, requestAfter.getSequenceNumber()); } enum WriteKind {BYTE_BY_BYTE, SMALL_BUFFERS, LARGE_BUFFERS} @Test public void chunkedUpload_byteByByte() throws Exception { doUpload(TransferKind.CHUNKED, WriteKind.BYTE_BY_BYTE); } @Test public void chunkedUpload_smallBuffers() throws Exception { doUpload(TransferKind.CHUNKED, WriteKind.SMALL_BUFFERS); } @Test public void chunkedUpload_largeBuffers() throws Exception { doUpload(TransferKind.CHUNKED, WriteKind.LARGE_BUFFERS); } @Test public void fixedLengthUpload_byteByByte() throws Exception { doUpload(TransferKind.FIXED_LENGTH, WriteKind.BYTE_BY_BYTE); } @Test public void fixedLengthUpload_smallBuffers() throws Exception { doUpload(TransferKind.FIXED_LENGTH, WriteKind.SMALL_BUFFERS); } @Test public void fixedLengthUpload_largeBuffers() throws Exception { doUpload(TransferKind.FIXED_LENGTH, WriteKind.LARGE_BUFFERS); } private void doUpload(TransferKind uploadKind, WriteKind writeKind) throws Exception { int n = 512 * 1024; server.setBodyLimit(0); server.enqueue(new MockResponse()); server.play(); HttpURLConnection conn = client.open(server.getUrl("/")); conn.setDoOutput(true); conn.setRequestMethod("POST"); if (uploadKind == TransferKind.CHUNKED) { conn.setChunkedStreamingMode(-1); } else { conn.setFixedLengthStreamingMode(n); } OutputStream out = conn.getOutputStream(); if (writeKind == WriteKind.BYTE_BY_BYTE) { for (int i = 0; i < n; ++i) { out.write('x'); } } else { byte[] buf = new byte[writeKind == WriteKind.SMALL_BUFFERS ? 256 : 64 * 1024]; Arrays.fill(buf, (byte) 'x'); for (int i = 0; i < n; i += buf.length) { out.write(buf, 0, Math.min(buf.length, n - i)); } } out.close(); assertEquals(200, conn.getResponseCode()); RecordedRequest request = server.takeRequest(); assertEquals(n, request.getBodySize()); if (uploadKind == TransferKind.CHUNKED) { assertTrue(request.getChunkSizes().size() > 0); } else { assertTrue(request.getChunkSizes().isEmpty()); } } @Test public void getResponseCodeNoResponseBody() throws Exception { server.enqueue(new MockResponse().addHeader("abc: def")); server.play(); URL url = server.getUrl("/"); HttpURLConnection conn = client.open(url); conn.setDoInput(false); assertEquals("def", conn.getHeaderField("abc")); assertEquals(200, conn.getResponseCode()); try { conn.getInputStream(); fail(); } catch (ProtocolException expected) { } } @Test public void connectViaHttps() throws Exception { server.useHttps(sslContext.getSocketFactory(), false); server.enqueue(new MockResponse().setBody("this response comes via HTTPS")); server.play(); client.setSslSocketFactory(sslContext.getSocketFactory()); client.setHostnameVerifier(new RecordingHostnameVerifier()); HttpURLConnection connection = client.open(server.getUrl("/foo")); assertContent("this response comes via HTTPS", connection); RecordedRequest request = server.takeRequest(); assertEquals("GET /foo HTTP/1.1", request.getRequestLine()); } @Test public void connectViaHttpsReusingConnections() throws IOException, InterruptedException { server.useHttps(sslContext.getSocketFactory(), false); server.enqueue(new MockResponse().setBody("this response comes via HTTPS")); server.enqueue(new MockResponse().setBody("another response via HTTPS")); server.play(); // The pool will only reuse sockets if the SSL socket factories are the same. SSLSocketFactory clientSocketFactory = sslContext.getSocketFactory(); RecordingHostnameVerifier hostnameVerifier = new RecordingHostnameVerifier(); client.setSslSocketFactory(clientSocketFactory); client.setHostnameVerifier(hostnameVerifier); HttpURLConnection connection = client.open(server.getUrl("/")); assertContent("this response comes via HTTPS", connection); connection = client.open(server.getUrl("/")); assertContent("another response via HTTPS", connection); assertEquals(0, server.takeRequest().getSequenceNumber()); assertEquals(1, server.takeRequest().getSequenceNumber()); } @Test public void connectViaHttpsReusingConnectionsDifferentFactories() throws IOException, InterruptedException { server.useHttps(sslContext.getSocketFactory(), false); server.enqueue(new MockResponse().setBody("this response comes via HTTPS")); server.enqueue(new MockResponse().setBody("another response via HTTPS")); server.play(); // install a custom SSL socket factory so the server can be authorized client.setSslSocketFactory(sslContext.getSocketFactory()); client.setHostnameVerifier(new RecordingHostnameVerifier()); HttpURLConnection connection1 = client.open(server.getUrl("/")); assertContent("this response comes via HTTPS", connection1); client.setSslSocketFactory(null); HttpURLConnection connection2 = client.open(server.getUrl("/")); try { readAscii(connection2.getInputStream(), Integer.MAX_VALUE); fail("without an SSL socket factory, the connection should fail"); } catch (SSLException expected) { } } @Test public void connectViaHttpsWithSSLFallback() throws IOException, InterruptedException { server.useHttps(sslContext.getSocketFactory(), false); server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE)); server.enqueue(new MockResponse().setBody("this response comes via SSL")); server.play(); client.setSslSocketFactory(sslContext.getSocketFactory()); client.setHostnameVerifier(new RecordingHostnameVerifier()); HttpURLConnection connection = client.open(server.getUrl("/foo")); assertContent("this response comes via SSL", connection); RecordedRequest request = server.takeRequest(); assertEquals("GET /foo HTTP/1.1", request.getRequestLine()); } /** * Verify that we don't retry connections on certificate verification errors. * * http://code.google.com/p/android/issues/detail?id=13178 */ @Test public void connectViaHttpsToUntrustedServer() throws IOException, InterruptedException { server.useHttps(sslContext.getSocketFactory(), false); server.enqueue(new MockResponse()); // unused server.play(); HttpURLConnection connection = client.open(server.getUrl("/foo")); try { connection.getInputStream(); fail(); } catch (SSLHandshakeException expected) { assertTrue(expected.getCause() instanceof CertificateException); } assertEquals(0, server.getRequestCount()); } @Test public void connectViaProxyUsingProxyArg() throws Exception { testConnectViaProxy(ProxyConfig.CREATE_ARG); } @Test public void connectViaProxyUsingProxySystemProperty() throws Exception { testConnectViaProxy(ProxyConfig.PROXY_SYSTEM_PROPERTY); } @Test public void connectViaProxyUsingHttpProxySystemProperty() throws Exception { testConnectViaProxy(ProxyConfig.HTTP_PROXY_SYSTEM_PROPERTY); } private void testConnectViaProxy(ProxyConfig proxyConfig) throws Exception { MockResponse mockResponse = new MockResponse().setBody("this response comes via a proxy"); server.enqueue(mockResponse); server.play(); URL url = new URL("http://android.com/foo"); HttpURLConnection connection = proxyConfig.connect(server, client, url); assertContent("this response comes via a proxy", connection); assertTrue(connection.usingProxy()); RecordedRequest request = server.takeRequest(); assertEquals("GET http://android.com/foo HTTP/1.1", request.getRequestLine()); assertContains(request.getHeaders(), "Host: android.com"); } @Test public void contentDisagreesWithContentLengthHeader() throws IOException { server.enqueue(new MockResponse().setBody("abc\r\nYOU SHOULD NOT SEE THIS") .clearHeaders() .addHeader("Content-Length: 3")); server.play(); assertContent("abc", client.open(server.getUrl("/"))); } @Test public void contentDisagreesWithChunkedHeader() throws IOException { MockResponse mockResponse = new MockResponse(); mockResponse.setChunkedBody("abc", 3); ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); bytesOut.write(mockResponse.getBody()); bytesOut.write("\r\nYOU SHOULD NOT SEE THIS".getBytes("UTF-8")); mockResponse.setBody(bytesOut.toByteArray()); mockResponse.clearHeaders(); mockResponse.addHeader("Transfer-encoding: chunked"); server.enqueue(mockResponse); server.play(); assertContent("abc", client.open(server.getUrl("/"))); } @Test public void connectViaHttpProxyToHttpsUsingProxyArgWithNoProxy() throws Exception { testConnectViaDirectProxyToHttps(ProxyConfig.NO_PROXY); } @Test public void connectViaHttpProxyToHttpsUsingHttpProxySystemProperty() throws Exception { // https should not use http proxy testConnectViaDirectProxyToHttps(ProxyConfig.HTTP_PROXY_SYSTEM_PROPERTY); } private void testConnectViaDirectProxyToHttps(ProxyConfig proxyConfig) throws Exception { server.useHttps(sslContext.getSocketFactory(), false); server.enqueue(new MockResponse().setBody("this response comes via HTTPS")); server.play(); URL url = server.getUrl("/foo"); client.setSslSocketFactory(sslContext.getSocketFactory()); client.setHostnameVerifier(new RecordingHostnameVerifier()); HttpURLConnection connection = proxyConfig.connect(server, client, url); assertContent("this response comes via HTTPS", connection); RecordedRequest request = server.takeRequest(); assertEquals("GET /foo HTTP/1.1", request.getRequestLine()); } @Test public void connectViaHttpProxyToHttpsUsingProxyArg() throws Exception { testConnectViaHttpProxyToHttps(ProxyConfig.CREATE_ARG); } /** * We weren't honoring all of the appropriate proxy system properties when * connecting via HTTPS. http://b/3097518 */ @Test public void connectViaHttpProxyToHttpsUsingProxySystemProperty() throws Exception { testConnectViaHttpProxyToHttps(ProxyConfig.PROXY_SYSTEM_PROPERTY); } @Test public void connectViaHttpProxyToHttpsUsingHttpsProxySystemProperty() throws Exception { testConnectViaHttpProxyToHttps(ProxyConfig.HTTPS_PROXY_SYSTEM_PROPERTY); } /** * We were verifying the wrong hostname when connecting to an HTTPS site * through a proxy. http://b/3097277 */ private void testConnectViaHttpProxyToHttps(ProxyConfig proxyConfig) throws Exception { RecordingHostnameVerifier hostnameVerifier = new RecordingHostnameVerifier(); server.useHttps(sslContext.getSocketFactory(), true); server.enqueue( new MockResponse().setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END).clearHeaders()); server.enqueue(new MockResponse().setBody("this response comes via a secure proxy")); server.play(); URL url = new URL("https://android.com/foo"); client.setSslSocketFactory(sslContext.getSocketFactory()); client.setHostnameVerifier(hostnameVerifier); HttpURLConnection connection = proxyConfig.connect(server, client, url); assertContent("this response comes via a secure proxy", connection); RecordedRequest connect = server.takeRequest(); assertEquals("Connect line failure on proxy", "CONNECT android.com:443 HTTP/1.1", connect.getRequestLine()); assertContains(connect.getHeaders(), "Host: android.com"); RecordedRequest get = server.takeRequest(); assertEquals("GET /foo HTTP/1.1", get.getRequestLine()); assertContains(get.getHeaders(), "Host: android.com"); assertEquals(Arrays.asList("verify android.com"), hostnameVerifier.calls); } /** Tolerate bad https proxy response when using HttpResponseCache. http://b/6754912 */ @Test public void connectViaHttpProxyToHttpsUsingBadProxyAndHttpResponseCache() throws Exception { initResponseCache(); server.useHttps(sslContext.getSocketFactory(), true); MockResponse response = new MockResponse() // Key to reproducing b/6754912 .setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END) .setBody("bogus proxy connect response content"); // Enqueue a pair of responses for every IP address held by localhost, because the // route selector will try each in sequence. // TODO: use the fake Dns implementation instead of a loop for (InetAddress inetAddress : InetAddress.getAllByName(server.getHostName())) { server.enqueue(response); // For the first TLS tolerant connection server.enqueue(response); // For the backwards-compatible SSLv3 retry } server.play(); client.setProxy(server.toProxyAddress()); URL url = new URL("https://android.com/foo"); client.setSslSocketFactory(sslContext.getSocketFactory()); HttpURLConnection connection = client.open(url); try { connection.getResponseCode(); fail(); } catch (IOException expected) { // Thrown when the connect causes SSLSocket.startHandshake() to throw // when it sees the "bogus proxy connect response content" // instead of a ServerHello handshake message. } RecordedRequest connect = server.takeRequest(); assertEquals("Connect line failure on proxy", "CONNECT android.com:443 HTTP/1.1", connect.getRequestLine()); assertContains(connect.getHeaders(), "Host: android.com"); } private void initResponseCache() throws IOException { String tmp = System.getProperty("java.io.tmpdir"); File cacheDir = new File(tmp, "HttpCache-" + UUID.randomUUID()); cache = new HttpResponseCache(cacheDir, Integer.MAX_VALUE); client.setResponseCache(cache); } /** Test which headers are sent unencrypted to the HTTP proxy. */ @Test public void proxyConnectIncludesProxyHeadersOnly() throws IOException, InterruptedException { RecordingHostnameVerifier hostnameVerifier = new RecordingHostnameVerifier(); server.useHttps(sslContext.getSocketFactory(), true); server.enqueue( new MockResponse().setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END).clearHeaders()); server.enqueue(new MockResponse().setBody("encrypted response from the origin server")); server.play(); client.setProxy(server.toProxyAddress()); URL url = new URL("https://android.com/foo"); client.setSslSocketFactory(sslContext.getSocketFactory()); client.setHostnameVerifier(hostnameVerifier); HttpURLConnection connection = client.open(url); connection.addRequestProperty("Private", "Secret"); connection.addRequestProperty("Proxy-Authorization", "bar"); connection.addRequestProperty("User-Agent", "baz"); assertContent("encrypted response from the origin server", connection); RecordedRequest connect = server.takeRequest(); assertContainsNoneMatching(connect.getHeaders(), "Private.*"); assertContains(connect.getHeaders(), "Proxy-Authorization: bar"); assertContains(connect.getHeaders(), "User-Agent: baz"); assertContains(connect.getHeaders(), "Host: android.com"); assertContains(connect.getHeaders(), "Proxy-Connection: Keep-Alive"); RecordedRequest get = server.takeRequest(); assertContains(get.getHeaders(), "Private: Secret"); assertEquals(Arrays.asList("verify android.com"), hostnameVerifier.calls); } @Test public void proxyAuthenticateOnConnect() throws Exception { Authenticator.setDefault(new RecordingAuthenticator()); server.useHttps(sslContext.getSocketFactory(), true); server.enqueue(new MockResponse().setResponseCode(407) .addHeader("Proxy-Authenticate: Basic realm=\"localhost\"")); server.enqueue( new MockResponse().setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END).clearHeaders()); server.enqueue(new MockResponse().setBody("A")); server.play(); client.setProxy(server.toProxyAddress()); URL url = new URL("https://android.com/foo"); client.setSslSocketFactory(sslContext.getSocketFactory()); client.setHostnameVerifier(new RecordingHostnameVerifier()); HttpURLConnection connection = client.open(url); assertContent("A", connection); RecordedRequest connect1 = server.takeRequest(); assertEquals("CONNECT android.com:443 HTTP/1.1", connect1.getRequestLine()); assertContainsNoneMatching(connect1.getHeaders(), "Proxy\\-Authorization.*"); RecordedRequest connect2 = server.takeRequest(); assertEquals("CONNECT android.com:443 HTTP/1.1", connect2.getRequestLine()); assertContains(connect2.getHeaders(), "Proxy-Authorization: Basic " + RecordingAuthenticator.BASE_64_CREDENTIALS); RecordedRequest get = server.takeRequest(); assertEquals("GET /foo HTTP/1.1", get.getRequestLine()); assertContainsNoneMatching(get.getHeaders(), "Proxy\\-Authorization.*"); } // Don't disconnect after building a tunnel with CONNECT // http://code.google.com/p/android/issues/detail?id=37221 @Test public void proxyWithConnectionClose() throws IOException { server.useHttps(sslContext.getSocketFactory(), true); server.enqueue( new MockResponse().setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END).clearHeaders()); server.enqueue(new MockResponse().setBody("this response comes via a proxy")); server.play(); client.setProxy(server.toProxyAddress()); URL url = new URL("https://android.com/foo"); client.setSslSocketFactory(sslContext.getSocketFactory()); client.setHostnameVerifier(new RecordingHostnameVerifier()); HttpURLConnection connection = client.open(url); connection.setRequestProperty("Connection", "close"); assertContent("this response comes via a proxy", connection); } @Test public void proxyWithConnectionReuse() throws IOException { SSLSocketFactory socketFactory = sslContext.getSocketFactory(); RecordingHostnameVerifier hostnameVerifier = new RecordingHostnameVerifier(); server.useHttps(socketFactory, true); server.enqueue( new MockResponse().setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END).clearHeaders()); server.enqueue(new MockResponse().setBody("response 1")); server.enqueue(new MockResponse().setBody("response 2")); server.play(); client.setProxy(server.toProxyAddress()); URL url = new URL("https://android.com/foo"); client.setSslSocketFactory(socketFactory); client.setHostnameVerifier(hostnameVerifier); assertContent("response 1", client.open(url)); assertContent("response 2", client.open(url)); } @Test public void disconnectedConnection() throws IOException { server.enqueue(new MockResponse().setBody("ABCDEFGHIJKLMNOPQR")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); InputStream in = connection.getInputStream(); assertEquals('A', (char) in.read()); connection.disconnect(); try { in.read(); fail("Expected a connection closed exception"); } catch (IOException expected) { } } @Test public void disconnectBeforeConnect() throws IOException { server.enqueue(new MockResponse().setBody("A")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); connection.disconnect(); assertContent("A", connection); assertEquals(200, connection.getResponseCode()); } @SuppressWarnings("deprecation") @Test public void defaultRequestProperty() throws Exception { URLConnection.setDefaultRequestProperty("X-testSetDefaultRequestProperty", "A"); assertNull(URLConnection.getDefaultRequestProperty("X-setDefaultRequestProperty")); } /** * Reads {@code count} characters from the stream. If the stream is * exhausted before {@code count} characters can be read, the remaining * characters are returned and the stream is closed. */ private String readAscii(InputStream in, int count) throws IOException { StringBuilder result = new StringBuilder(); for (int i = 0; i < count; i++) { int value = in.read(); if (value == -1) { in.close(); break; } result.append((char) value); } return result.toString(); } @Test public void markAndResetWithContentLengthHeader() throws IOException { testMarkAndReset(TransferKind.FIXED_LENGTH); } @Test public void markAndResetWithChunkedEncoding() throws IOException { testMarkAndReset(TransferKind.CHUNKED); } @Test public void markAndResetWithNoLengthHeaders() throws IOException { testMarkAndReset(TransferKind.END_OF_STREAM); } private void testMarkAndReset(TransferKind transferKind) throws IOException { MockResponse response = new MockResponse(); transferKind.setBody(response, "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 1024); server.enqueue(response); server.enqueue(response); server.play(); InputStream in = client.open(server.getUrl("/")).getInputStream(); assertFalse("This implementation claims to support mark().", in.markSupported()); in.mark(5); assertEquals("ABCDE", readAscii(in, 5)); try { in.reset(); fail(); } catch (IOException expected) { } assertEquals("FGHIJKLMNOPQRSTUVWXYZ", readAscii(in, Integer.MAX_VALUE)); assertContent("ABCDEFGHIJKLMNOPQRSTUVWXYZ", client.open(server.getUrl("/"))); } /** * We've had a bug where we forget the HTTP response when we see response * code 401. This causes a new HTTP request to be issued for every call into * the URLConnection. */ @Test public void unauthorizedResponseHandling() throws IOException { MockResponse response = new MockResponse().addHeader("WWW-Authenticate: challenge") .setResponseCode(401) // UNAUTHORIZED .setBody("Unauthorized"); server.enqueue(response); server.enqueue(response); server.enqueue(response); server.play(); URL url = server.getUrl("/"); HttpURLConnection conn = client.open(url); assertEquals(401, conn.getResponseCode()); assertEquals(401, conn.getResponseCode()); assertEquals(401, conn.getResponseCode()); assertEquals(1, server.getRequestCount()); } @Test public void nonHexChunkSize() throws IOException { server.enqueue(new MockResponse().setBody("5\r\nABCDE\r\nG\r\nFGHIJKLMNOPQRSTU\r\n0\r\n\r\n") .clearHeaders() .addHeader("Transfer-encoding: chunked")); server.play(); URLConnection connection = client.open(server.getUrl("/")); try { readAscii(connection.getInputStream(), Integer.MAX_VALUE); fail(); } catch (IOException e) { } } @Test public void missingChunkBody() throws IOException { server.enqueue(new MockResponse().setBody("5") .clearHeaders() .addHeader("Transfer-encoding: chunked") .setSocketPolicy(DISCONNECT_AT_END)); server.play(); URLConnection connection = client.open(server.getUrl("/")); try { readAscii(connection.getInputStream(), Integer.MAX_VALUE); fail(); } catch (IOException e) { } } /** * This test checks whether connections are gzipped by default. This * behavior in not required by the API, so a failure of this test does not * imply a bug in the implementation. */ @Test public void gzipEncodingEnabledByDefault() throws IOException, InterruptedException { server.enqueue(new MockResponse().setBody(gzip("ABCABCABC".getBytes("UTF-8"))) .addHeader("Content-Encoding: gzip")); server.play(); URLConnection connection = client.open(server.getUrl("/")); assertEquals("ABCABCABC", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); assertNull(connection.getContentEncoding()); assertEquals(-1, connection.getContentLength()); RecordedRequest request = server.takeRequest(); assertContains(request.getHeaders(), "Accept-Encoding: gzip"); } @Test public void clientConfiguredGzipContentEncoding() throws Exception { byte[] bodyBytes = gzip("ABCDEFGHIJKLMNOPQRSTUVWXYZ".getBytes("UTF-8")); server.enqueue(new MockResponse() .setBody(bodyBytes) .addHeader("Content-Encoding: gzip")); server.play(); URLConnection connection = client.open(server.getUrl("/")); connection.addRequestProperty("Accept-Encoding", "gzip"); InputStream gunzippedIn = new GZIPInputStream(connection.getInputStream()); assertEquals("ABCDEFGHIJKLMNOPQRSTUVWXYZ", readAscii(gunzippedIn, Integer.MAX_VALUE)); assertEquals(bodyBytes.length, connection.getContentLength()); RecordedRequest request = server.takeRequest(); assertContains(request.getHeaders(), "Accept-Encoding: gzip"); } @Test public void gzipAndConnectionReuseWithFixedLength() throws Exception { testClientConfiguredGzipContentEncodingAndConnectionReuse(TransferKind.FIXED_LENGTH, false); } @Test public void gzipAndConnectionReuseWithChunkedEncoding() throws Exception { testClientConfiguredGzipContentEncodingAndConnectionReuse(TransferKind.CHUNKED, false); } @Test public void gzipAndConnectionReuseWithFixedLengthAndTls() throws Exception { testClientConfiguredGzipContentEncodingAndConnectionReuse(TransferKind.FIXED_LENGTH, true); } @Test public void gzipAndConnectionReuseWithChunkedEncodingAndTls() throws Exception { testClientConfiguredGzipContentEncodingAndConnectionReuse(TransferKind.CHUNKED, true); } @Test public void clientConfiguredCustomContentEncoding() throws Exception { server.enqueue(new MockResponse().setBody("ABCDE").addHeader("Content-Encoding: custom")); server.play(); URLConnection connection = client.open(server.getUrl("/")); connection.addRequestProperty("Accept-Encoding", "custom"); assertEquals("ABCDE", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); RecordedRequest request = server.takeRequest(); assertContains(request.getHeaders(), "Accept-Encoding: custom"); } /** * Test a bug where gzip input streams weren't exhausting the input stream, * which corrupted the request that followed or prevented connection reuse. * http://code.google.com/p/android/issues/detail?id=7059 * http://code.google.com/p/android/issues/detail?id=38817 */ private void testClientConfiguredGzipContentEncodingAndConnectionReuse(TransferKind transferKind, boolean tls) throws Exception { if (tls) { SSLSocketFactory socketFactory = sslContext.getSocketFactory(); RecordingHostnameVerifier hostnameVerifier = new RecordingHostnameVerifier(); server.useHttps(socketFactory, false); client.setSslSocketFactory(socketFactory); client.setHostnameVerifier(hostnameVerifier); } MockResponse responseOne = new MockResponse(); responseOne.addHeader("Content-Encoding: gzip"); transferKind.setBody(responseOne, gzip("one (gzipped)".getBytes("UTF-8")), 5); server.enqueue(responseOne); MockResponse responseTwo = new MockResponse(); transferKind.setBody(responseTwo, "two (identity)", 5); server.enqueue(responseTwo); server.play(); HttpURLConnection connection1 = client.open(server.getUrl("/")); connection1.addRequestProperty("Accept-Encoding", "gzip"); InputStream gunzippedIn = new GZIPInputStream(connection1.getInputStream()); assertEquals("one (gzipped)", readAscii(gunzippedIn, Integer.MAX_VALUE)); assertEquals(0, server.takeRequest().getSequenceNumber()); HttpURLConnection connection2 = client.open(server.getUrl("/")); assertEquals("two (identity)", readAscii(connection2.getInputStream(), Integer.MAX_VALUE)); assertEquals(1, server.takeRequest().getSequenceNumber()); } @Test public void earlyDisconnectDoesntHarmPoolingWithChunkedEncoding() throws Exception { testEarlyDisconnectDoesntHarmPooling(TransferKind.CHUNKED); } @Test public void earlyDisconnectDoesntHarmPoolingWithFixedLengthEncoding() throws Exception { testEarlyDisconnectDoesntHarmPooling(TransferKind.FIXED_LENGTH); } private void testEarlyDisconnectDoesntHarmPooling(TransferKind transferKind) throws Exception { MockResponse response1 = new MockResponse(); transferKind.setBody(response1, "ABCDEFGHIJK", 1024); server.enqueue(response1); MockResponse response2 = new MockResponse(); transferKind.setBody(response2, "LMNOPQRSTUV", 1024); server.enqueue(response2); server.play(); URLConnection connection1 = client.open(server.getUrl("/")); InputStream in1 = connection1.getInputStream(); assertEquals("ABCDE", readAscii(in1, 5)); in1.close(); HttpURLConnection connection2 = client.open(server.getUrl("/")); InputStream in2 = connection2.getInputStream(); assertEquals("LMNOP", readAscii(in2, 5)); in2.close(); assertEquals(0, server.takeRequest().getSequenceNumber()); assertEquals(1, server.takeRequest().getSequenceNumber()); // Connection is pooled! } @Test public void setChunkedStreamingMode() throws IOException, InterruptedException { server.enqueue(new MockResponse()); server.play(); String body = "ABCDEFGHIJKLMNOPQ"; HttpURLConnection urlConnection = client.open(server.getUrl("/")); urlConnection.setChunkedStreamingMode(0); // OkHttp does not honor specific chunk sizes. urlConnection.setDoOutput(true); OutputStream outputStream = urlConnection.getOutputStream(); outputStream.write(body.getBytes("US-ASCII")); assertEquals(200, urlConnection.getResponseCode()); RecordedRequest request = server.takeRequest(); assertEquals(body, new String(request.getBody(), "US-ASCII")); assertEquals(Arrays.asList(body.length()), request.getChunkSizes()); } @Test public void authenticateWithFixedLengthStreaming() throws Exception { testAuthenticateWithStreamingPost(StreamingMode.FIXED_LENGTH); } @Test public void authenticateWithChunkedStreaming() throws Exception { testAuthenticateWithStreamingPost(StreamingMode.CHUNKED); } private void testAuthenticateWithStreamingPost(StreamingMode streamingMode) throws Exception { MockResponse pleaseAuthenticate = new MockResponse().setResponseCode(401) .addHeader("WWW-Authenticate: Basic realm=\"protected area\"") .setBody("Please authenticate."); server.enqueue(pleaseAuthenticate); server.play(); Authenticator.setDefault(new RecordingAuthenticator()); HttpURLConnection connection = client.open(server.getUrl("/")); connection.setDoOutput(true); byte[] requestBody = { 'A', 'B', 'C', 'D' }; if (streamingMode == StreamingMode.FIXED_LENGTH) { connection.setFixedLengthStreamingMode(requestBody.length); } else if (streamingMode == StreamingMode.CHUNKED) { connection.setChunkedStreamingMode(0); } OutputStream outputStream = connection.getOutputStream(); outputStream.write(requestBody); outputStream.close(); try { connection.getInputStream(); fail(); } catch (HttpRetryException expected) { } // no authorization header for the request... RecordedRequest request = server.takeRequest(); assertContainsNoneMatching(request.getHeaders(), "Authorization: Basic .*"); assertEquals(Arrays.toString(requestBody), Arrays.toString(request.getBody())); } @Test public void nonStandardAuthenticationScheme() throws Exception { List<String> calls = authCallsForHeader("WWW-Authenticate: Foo"); assertEquals(Collections.<String>emptyList(), calls); } @Test public void nonStandardAuthenticationSchemeWithRealm() throws Exception { List<String> calls = authCallsForHeader("WWW-Authenticate: Foo realm=\"Bar\""); assertEquals(0, calls.size()); } // Digest auth is currently unsupported. Test that digest requests should fail reasonably. // http://code.google.com/p/android/issues/detail?id=11140 @Test public void digestAuthentication() throws Exception { List<String> calls = authCallsForHeader("WWW-Authenticate: Digest " + "realm=\"[email protected]\", qop=\"auth,auth-int\", " + "nonce=\"dcd98b7102dd2f0e8b11d0f600bfb0c093\", " + "opaque=\"5ccc069c403ebaf9f0171e9517f40e41\""); assertEquals(0, calls.size()); } @Test public void allAttributesSetInServerAuthenticationCallbacks() throws Exception { List<String> calls = authCallsForHeader("WWW-Authenticate: Basic realm=\"Bar\""); assertEquals(1, calls.size()); URL url = server.getUrl("/"); String call = calls.get(0); assertTrue(call, call.contains("host=" + url.getHost())); assertTrue(call, call.contains("port=" + url.getPort())); assertTrue(call, call.contains("site=" + InetAddress.getAllByName(url.getHost())[0])); assertTrue(call, call.contains("url=" + url)); assertTrue(call, call.contains("type=" + Authenticator.RequestorType.SERVER)); assertTrue(call, call.contains("prompt=Bar")); assertTrue(call, call.contains("protocol=http")); assertTrue(call, call.toLowerCase().contains("scheme=basic")); // lowercase for the RI. } @Test public void allAttributesSetInProxyAuthenticationCallbacks() throws Exception { List<String> calls = authCallsForHeader("Proxy-Authenticate: Basic realm=\"Bar\""); assertEquals(1, calls.size()); URL url = server.getUrl("/"); String call = calls.get(0); assertTrue(call, call.contains("host=" + url.getHost())); assertTrue(call, call.contains("port=" + url.getPort())); assertTrue(call, call.contains("site=" + InetAddress.getAllByName(url.getHost())[0])); assertTrue(call, call.contains("url=http://android.com")); assertTrue(call, call.contains("type=" + Authenticator.RequestorType.PROXY)); assertTrue(call, call.contains("prompt=Bar")); assertTrue(call, call.contains("protocol=http")); assertTrue(call, call.toLowerCase().contains("scheme=basic")); // lowercase for the RI. } private List<String> authCallsForHeader(String authHeader) throws IOException { boolean proxy = authHeader.startsWith("Proxy-"); int responseCode = proxy ? 407 : 401; RecordingAuthenticator authenticator = new RecordingAuthenticator(null); Authenticator.setDefault(authenticator); MockResponse pleaseAuthenticate = new MockResponse().setResponseCode(responseCode) .addHeader(authHeader) .setBody("Please authenticate."); server.enqueue(pleaseAuthenticate); server.play(); HttpURLConnection connection; if (proxy) { client.setProxy(server.toProxyAddress()); connection = client.open(new URL("http://android.com")); } else { connection = client.open(server.getUrl("/")); } assertEquals(responseCode, connection.getResponseCode()); return authenticator.calls; } @Test public void setValidRequestMethod() throws Exception { server.play(); assertValidRequestMethod("GET"); assertValidRequestMethod("DELETE"); assertValidRequestMethod("HEAD"); assertValidRequestMethod("OPTIONS"); assertValidRequestMethod("POST"); assertValidRequestMethod("PUT"); assertValidRequestMethod("TRACE"); } private void assertValidRequestMethod(String requestMethod) throws Exception { HttpURLConnection connection = client.open(server.getUrl("/")); connection.setRequestMethod(requestMethod); assertEquals(requestMethod, connection.getRequestMethod()); } @Test public void setInvalidRequestMethodLowercase() throws Exception { server.play(); assertInvalidRequestMethod("get"); } @Test public void setInvalidRequestMethodConnect() throws Exception { server.play(); assertInvalidRequestMethod("CONNECT"); } private void assertInvalidRequestMethod(String requestMethod) throws Exception { HttpURLConnection connection = client.open(server.getUrl("/")); try { connection.setRequestMethod(requestMethod); fail(); } catch (ProtocolException expected) { } } @Test public void cannotSetNegativeFixedLengthStreamingMode() throws Exception { server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); try { connection.setFixedLengthStreamingMode(-2); fail(); } catch (IllegalArgumentException expected) { } } @Test public void canSetNegativeChunkedStreamingMode() throws Exception { server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); connection.setChunkedStreamingMode(-2); } @Test public void cannotSetFixedLengthStreamingModeAfterConnect() throws Exception { server.enqueue(new MockResponse().setBody("A")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); assertEquals("A", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); try { connection.setFixedLengthStreamingMode(1); fail(); } catch (IllegalStateException expected) { } } @Test public void cannotSetChunkedStreamingModeAfterConnect() throws Exception { server.enqueue(new MockResponse().setBody("A")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); assertEquals("A", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); try { connection.setChunkedStreamingMode(1); fail(); } catch (IllegalStateException expected) { } } @Test public void cannotSetFixedLengthStreamingModeAfterChunkedStreamingMode() throws Exception { server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); connection.setChunkedStreamingMode(1); try { connection.setFixedLengthStreamingMode(1); fail(); } catch (IllegalStateException expected) { } } @Test public void cannotSetChunkedStreamingModeAfterFixedLengthStreamingMode() throws Exception { server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); connection.setFixedLengthStreamingMode(1); try { connection.setChunkedStreamingMode(1); fail(); } catch (IllegalStateException expected) { } } @Test public void secureFixedLengthStreaming() throws Exception { testSecureStreamingPost(StreamingMode.FIXED_LENGTH); } @Test public void secureChunkedStreaming() throws Exception { testSecureStreamingPost(StreamingMode.CHUNKED); } /** * Users have reported problems using HTTPS with streaming request bodies. * http://code.google.com/p/android/issues/detail?id=12860 */ private void testSecureStreamingPost(StreamingMode streamingMode) throws Exception { server.useHttps(sslContext.getSocketFactory(), false); server.enqueue(new MockResponse().setBody("Success!")); server.play(); client.setSslSocketFactory(sslContext.getSocketFactory()); client.setHostnameVerifier(new RecordingHostnameVerifier()); HttpURLConnection connection = client.open(server.getUrl("/")); connection.setDoOutput(true); byte[] requestBody = { 'A', 'B', 'C', 'D' }; if (streamingMode == StreamingMode.FIXED_LENGTH) { connection.setFixedLengthStreamingMode(requestBody.length); } else if (streamingMode == StreamingMode.CHUNKED) { connection.setChunkedStreamingMode(0); } OutputStream outputStream = connection.getOutputStream(); outputStream.write(requestBody); outputStream.close(); assertEquals("Success!", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); RecordedRequest request = server.takeRequest(); assertEquals("POST / HTTP/1.1", request.getRequestLine()); if (streamingMode == StreamingMode.FIXED_LENGTH) { assertEquals(Collections.<Integer>emptyList(), request.getChunkSizes()); } else if (streamingMode == StreamingMode.CHUNKED) { assertEquals(Arrays.asList(4), request.getChunkSizes()); } assertEquals(Arrays.toString(requestBody), Arrays.toString(request.getBody())); } enum StreamingMode { FIXED_LENGTH, CHUNKED } @Test public void authenticateWithPost() throws Exception { MockResponse pleaseAuthenticate = new MockResponse().setResponseCode(401) .addHeader("WWW-Authenticate: Basic realm=\"protected area\"") .setBody("Please authenticate."); // fail auth three times... server.enqueue(pleaseAuthenticate); server.enqueue(pleaseAuthenticate); server.enqueue(pleaseAuthenticate); // ...then succeed the fourth time server.enqueue(new MockResponse().setBody("Successful auth!")); server.play(); Authenticator.setDefault(new RecordingAuthenticator()); HttpURLConnection connection = client.open(server.getUrl("/")); connection.setDoOutput(true); byte[] requestBody = { 'A', 'B', 'C', 'D' }; OutputStream outputStream = connection.getOutputStream(); outputStream.write(requestBody); outputStream.close(); assertEquals("Successful auth!", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); // no authorization header for the first request... RecordedRequest request = server.takeRequest(); assertContainsNoneMatching(request.getHeaders(), "Authorization: Basic .*"); // ...but the three requests that follow include an authorization header for (int i = 0; i < 3; i++) { request = server.takeRequest(); assertEquals("POST / HTTP/1.1", request.getRequestLine()); assertContains(request.getHeaders(), "Authorization: Basic " + RecordingAuthenticator.BASE_64_CREDENTIALS); assertEquals(Arrays.toString(requestBody), Arrays.toString(request.getBody())); } } @Test public void authenticateWithGet() throws Exception { MockResponse pleaseAuthenticate = new MockResponse().setResponseCode(401) .addHeader("WWW-Authenticate: Basic realm=\"protected area\"") .setBody("Please authenticate."); // fail auth three times... server.enqueue(pleaseAuthenticate); server.enqueue(pleaseAuthenticate); server.enqueue(pleaseAuthenticate); // ...then succeed the fourth time server.enqueue(new MockResponse().setBody("Successful auth!")); server.play(); Authenticator.setDefault(new RecordingAuthenticator()); HttpURLConnection connection = client.open(server.getUrl("/")); assertEquals("Successful auth!", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); // no authorization header for the first request... RecordedRequest request = server.takeRequest(); assertContainsNoneMatching(request.getHeaders(), "Authorization: Basic .*"); // ...but the three requests that follow requests include an authorization header for (int i = 0; i < 3; i++) { request = server.takeRequest(); assertEquals("GET / HTTP/1.1", request.getRequestLine()); assertContains(request.getHeaders(), "Authorization: Basic " + RecordingAuthenticator.BASE_64_CREDENTIALS); } } /** https://github.com/square/okhttp/issues/342 */ @Test public void authenticateRealmUppercase() throws Exception { server.enqueue(new MockResponse().setResponseCode(401) .addHeader("wWw-aUtHeNtIcAtE: bAsIc rEaLm=\"pRoTeCtEd aReA\"") .setBody("Please authenticate.")); server.enqueue(new MockResponse().setBody("Successful auth!")); server.play(); Authenticator.setDefault(new RecordingAuthenticator()); HttpURLConnection connection = client.open(server.getUrl("/")); assertEquals("Successful auth!", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); } @Test public void redirectedWithChunkedEncoding() throws Exception { testRedirected(TransferKind.CHUNKED, true); } @Test public void redirectedWithContentLengthHeader() throws Exception { testRedirected(TransferKind.FIXED_LENGTH, true); } @Test public void redirectedWithNoLengthHeaders() throws Exception { testRedirected(TransferKind.END_OF_STREAM, false); } private void testRedirected(TransferKind transferKind, boolean reuse) throws Exception { MockResponse response = new MockResponse().setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) .addHeader("Location: /foo"); transferKind.setBody(response, "This page has moved!", 10); server.enqueue(response); server.enqueue(new MockResponse().setBody("This is the new location!")); server.play(); URLConnection connection = client.open(server.getUrl("/")); assertEquals("This is the new location!", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); RecordedRequest first = server.takeRequest(); assertEquals("GET / HTTP/1.1", first.getRequestLine()); RecordedRequest retry = server.takeRequest(); assertEquals("GET /foo HTTP/1.1", retry.getRequestLine()); if (reuse) { assertEquals("Expected connection reuse", 1, retry.getSequenceNumber()); } } @Test public void redirectedOnHttps() throws IOException, InterruptedException { server.useHttps(sslContext.getSocketFactory(), false); server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) .addHeader("Location: /foo") .setBody("This page has moved!")); server.enqueue(new MockResponse().setBody("This is the new location!")); server.play(); client.setSslSocketFactory(sslContext.getSocketFactory()); client.setHostnameVerifier(new RecordingHostnameVerifier()); HttpURLConnection connection = client.open(server.getUrl("/")); assertEquals("This is the new location!", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); RecordedRequest first = server.takeRequest(); assertEquals("GET / HTTP/1.1", first.getRequestLine()); RecordedRequest retry = server.takeRequest(); assertEquals("GET /foo HTTP/1.1", retry.getRequestLine()); assertEquals("Expected connection reuse", 1, retry.getSequenceNumber()); } @Test public void notRedirectedFromHttpsToHttp() throws IOException, InterruptedException { server.useHttps(sslContext.getSocketFactory(), false); server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) .addHeader("Location: http://anyhost/foo") .setBody("This page has moved!")); server.play(); client.setFollowProtocolRedirects(false); client.setSslSocketFactory(sslContext.getSocketFactory()); client.setHostnameVerifier(new RecordingHostnameVerifier()); HttpURLConnection connection = client.open(server.getUrl("/")); assertEquals("This page has moved!", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); } @Test public void notRedirectedFromHttpToHttps() throws IOException, InterruptedException { server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) .addHeader("Location: https://anyhost/foo") .setBody("This page has moved!")); server.play(); client.setFollowProtocolRedirects(false); HttpURLConnection connection = client.open(server.getUrl("/")); assertEquals("This page has moved!", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); } @Test public void redirectedFromHttpsToHttpFollowingProtocolRedirects() throws Exception { server2 = new MockWebServer(); server2.enqueue(new MockResponse().setBody("This is insecure HTTP!")); server2.play(); server.useHttps(sslContext.getSocketFactory(), false); server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) .addHeader("Location: " + server2.getUrl("/")) .setBody("This page has moved!")); server.play(); client.setSslSocketFactory(sslContext.getSocketFactory()); client.setHostnameVerifier(new RecordingHostnameVerifier()); client.setFollowProtocolRedirects(true); HttpsURLConnection connection = (HttpsURLConnection) client.open(server.getUrl("/")); assertContent("This is insecure HTTP!", connection); assertNull(connection.getCipherSuite()); assertNull(connection.getLocalCertificates()); assertNull(connection.getServerCertificates()); assertNull(connection.getPeerPrincipal()); assertNull(connection.getLocalPrincipal()); } @Test public void redirectedFromHttpToHttpsFollowingProtocolRedirects() throws Exception { server2 = new MockWebServer(); server2.useHttps(sslContext.getSocketFactory(), false); server2.enqueue(new MockResponse().setBody("This is secure HTTPS!")); server2.play(); server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) .addHeader("Location: " + server2.getUrl("/")) .setBody("This page has moved!")); server.play(); client.setSslSocketFactory(sslContext.getSocketFactory()); client.setHostnameVerifier(new RecordingHostnameVerifier()); client.setFollowProtocolRedirects(true); HttpURLConnection connection = client.open(server.getUrl("/")); assertContent("This is secure HTTPS!", connection); assertFalse(connection instanceof HttpsURLConnection); } @Test public void redirectToAnotherOriginServer() throws Exception { redirectToAnotherOriginServer(false); } @Test public void redirectToAnotherOriginServerWithHttps() throws Exception { redirectToAnotherOriginServer(true); } private void redirectToAnotherOriginServer(boolean https) throws Exception { server2 = new MockWebServer(); if (https) { server.useHttps(sslContext.getSocketFactory(), false); server2.useHttps(sslContext.getSocketFactory(), false); server2.setNpnEnabled(false); client.setSslSocketFactory(sslContext.getSocketFactory()); client.setHostnameVerifier(new RecordingHostnameVerifier()); } server2.enqueue(new MockResponse().setBody("This is the 2nd server!")); server2.enqueue(new MockResponse().setBody("This is the 2nd server, again!")); server2.play(); server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) .addHeader("Location: " + server2.getUrl("/").toString()) .setBody("This page has moved!")); server.enqueue(new MockResponse().setBody("This is the first server again!")); server.play(); URLConnection connection = client.open(server.getUrl("/")); assertContent("This is the 2nd server!", connection); assertEquals(server2.getUrl("/"), connection.getURL()); // make sure the first server was careful to recycle the connection assertContent("This is the first server again!", client.open(server.getUrl("/"))); assertContent("This is the 2nd server, again!", client.open(server2.getUrl("/"))); String server1Host = hostName + ":" + server.getPort(); String server2Host = hostName + ":" + server2.getPort(); assertContains(server.takeRequest().getHeaders(), "Host: " + server1Host); assertContains(server2.takeRequest().getHeaders(), "Host: " + server2Host); assertEquals("Expected connection reuse", 1, server.takeRequest().getSequenceNumber()); assertEquals("Expected connection reuse", 1, server2.takeRequest().getSequenceNumber()); } @Test public void redirectWithProxySelector() throws Exception { final List<URI> proxySelectionRequests = new ArrayList<URI>(); client.setProxySelector(new ProxySelector() { @Override public List<Proxy> select(URI uri) { proxySelectionRequests.add(uri); MockWebServer proxyServer = (uri.getPort() == server.getPort()) ? server : server2; return Arrays.asList(proxyServer.toProxyAddress()); } @Override public void connectFailed(URI uri, SocketAddress address, IOException failure) { throw new AssertionError(); } }); server2 = new MockWebServer(); server2.enqueue(new MockResponse().setBody("This is the 2nd server!")); server2.play(); server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) .addHeader("Location: " + server2.getUrl("/b").toString()) .setBody("This page has moved!")); server.play(); assertContent("This is the 2nd server!", client.open(server.getUrl("/a"))); assertEquals(Arrays.asList(server.getUrl("/a").toURI(), server2.getUrl("/b").toURI()), proxySelectionRequests); server2.shutdown(); } @Test public void response300MultipleChoiceWithPost() throws Exception { // Chrome doesn't follow the redirect, but Firefox and the RI both do testResponseRedirectedWithPost(HttpURLConnection.HTTP_MULT_CHOICE); } @Test public void response301MovedPermanentlyWithPost() throws Exception { testResponseRedirectedWithPost(HttpURLConnection.HTTP_MOVED_PERM); } @Test public void response302MovedTemporarilyWithPost() throws Exception { testResponseRedirectedWithPost(HttpURLConnection.HTTP_MOVED_TEMP); } @Test public void response303SeeOtherWithPost() throws Exception { testResponseRedirectedWithPost(HttpURLConnection.HTTP_SEE_OTHER); } private void testResponseRedirectedWithPost(int redirectCode) throws Exception { server.enqueue(new MockResponse().setResponseCode(redirectCode) .addHeader("Location: /page2") .setBody("This page has moved!")); server.enqueue(new MockResponse().setBody("Page 2")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/page1")); connection.setDoOutput(true); byte[] requestBody = { 'A', 'B', 'C', 'D' }; OutputStream outputStream = connection.getOutputStream(); outputStream.write(requestBody); outputStream.close(); assertEquals("Page 2", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); assertTrue(connection.getDoOutput()); RecordedRequest page1 = server.takeRequest(); assertEquals("POST /page1 HTTP/1.1", page1.getRequestLine()); assertEquals(Arrays.toString(requestBody), Arrays.toString(page1.getBody())); RecordedRequest page2 = server.takeRequest(); assertEquals("GET /page2 HTTP/1.1", page2.getRequestLine()); } @Test public void redirectedPostStripsRequestBodyHeaders() throws Exception { server.enqueue(new MockResponse() .setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) .addHeader("Location: /page2")); server.enqueue(new MockResponse().setBody("Page 2")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/page1")); connection.setDoOutput(true); connection.addRequestProperty("Content-Length", "4"); connection.addRequestProperty("Content-Type", "text/plain; charset=utf-8"); connection.addRequestProperty("Transfer-Encoding", "identity"); OutputStream outputStream = connection.getOutputStream(); outputStream.write("ABCD".getBytes("UTF-8")); outputStream.close(); assertEquals("Page 2", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); assertEquals("POST /page1 HTTP/1.1", server.takeRequest().getRequestLine()); RecordedRequest page2 = server.takeRequest(); assertEquals("GET /page2 HTTP/1.1", page2.getRequestLine()); assertContainsNoneMatching(page2.getHeaders(), "Content-Length"); assertContains(page2.getHeaders(), "Content-Type: text/plain; charset=utf-8"); assertContains(page2.getHeaders(), "Transfer-Encoding: identity"); } @Test public void response305UseProxy() throws Exception { server.play(); server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_USE_PROXY) .addHeader("Location: " + server.getUrl("/")) .setBody("This page has moved!")); server.enqueue(new MockResponse().setBody("Proxy Response")); HttpURLConnection connection = client.open(server.getUrl("/foo")); // Fails on the RI, which gets "Proxy Response" assertEquals("This page has moved!", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); RecordedRequest page1 = server.takeRequest(); assertEquals("GET /foo HTTP/1.1", page1.getRequestLine()); assertEquals(1, server.getRequestCount()); } @Test public void response307WithGet() throws Exception { test307Redirect("GET"); } @Test public void response307WithHead() throws Exception { test307Redirect("HEAD"); } @Test public void response307WithOptions() throws Exception { test307Redirect("OPTIONS"); } @Test public void response307WithPost() throws Exception { test307Redirect("POST"); } private void test307Redirect(String method) throws Exception { MockResponse response1 = new MockResponse() .setResponseCode(HTTP_TEMP_REDIRECT) .addHeader("Location: /page2"); if (!method.equals("HEAD")) { response1.setBody("This page has moved!"); } server.enqueue(response1); server.enqueue(new MockResponse().setBody("Page 2")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/page1")); connection.setRequestMethod(method); byte[] requestBody = { 'A', 'B', 'C', 'D' }; if (method.equals("POST")) { connection.setDoOutput(true); OutputStream outputStream = connection.getOutputStream(); outputStream.write(requestBody); outputStream.close(); } String response = readAscii(connection.getInputStream(), Integer.MAX_VALUE); RecordedRequest page1 = server.takeRequest(); assertEquals(method + " /page1 HTTP/1.1", page1.getRequestLine()); if (method.equals("GET")) { assertEquals("Page 2", response); } else if (method.equals("HEAD")) { assertEquals("", response); } else { // Methods other than GET/HEAD shouldn't follow the redirect if (method.equals("POST")) { assertTrue(connection.getDoOutput()); assertEquals(Arrays.toString(requestBody), Arrays.toString(page1.getBody())); } assertEquals(1, server.getRequestCount()); assertEquals("This page has moved!", response); return; } // GET/HEAD requests should have followed the redirect with the same method assertFalse(connection.getDoOutput()); assertEquals(2, server.getRequestCount()); RecordedRequest page2 = server.takeRequest(); assertEquals(method + " /page2 HTTP/1.1", page2.getRequestLine()); } @Test public void follow20Redirects() throws Exception { for (int i = 0; i < 20; i++) { server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) .addHeader("Location: /" + (i + 1)) .setBody("Redirecting to /" + (i + 1))); } server.enqueue(new MockResponse().setBody("Success!")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/0")); assertContent("Success!", connection); assertEquals(server.getUrl("/20"), connection.getURL()); } @Test public void doesNotFollow21Redirects() throws Exception { for (int i = 0; i < 21; i++) { server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) .addHeader("Location: /" + (i + 1)) .setBody("Redirecting to /" + (i + 1))); } server.play(); HttpURLConnection connection = client.open(server.getUrl("/0")); try { connection.getInputStream(); fail(); } catch (ProtocolException expected) { assertEquals(HttpURLConnection.HTTP_MOVED_TEMP, connection.getResponseCode()); assertEquals("Too many redirects: 21", expected.getMessage()); assertContent("Redirecting to /21", connection); assertEquals(server.getUrl("/20"), connection.getURL()); } } @Test public void httpsWithCustomTrustManager() throws Exception { RecordingHostnameVerifier hostnameVerifier = new RecordingHostnameVerifier(); RecordingTrustManager trustManager = new RecordingTrustManager(); SSLContext sc = SSLContext.getInstance("TLS"); sc.init(null, new TrustManager[] { trustManager }, new java.security.SecureRandom()); client.setHostnameVerifier(hostnameVerifier); client.setSslSocketFactory(sc.getSocketFactory()); server.useHttps(sslContext.getSocketFactory(), false); server.enqueue(new MockResponse().setBody("ABC")); server.enqueue(new MockResponse().setBody("DEF")); server.enqueue(new MockResponse().setBody("GHI")); server.play(); URL url = server.getUrl("/"); assertContent("ABC", client.open(url)); assertContent("DEF", client.open(url)); assertContent("GHI", client.open(url)); assertEquals(Arrays.asList("verify " + hostName), hostnameVerifier.calls); assertEquals(Arrays.asList("checkServerTrusted [CN=" + hostName + " 1]"), trustManager.calls); } @Test public void readTimeouts() throws IOException { // This relies on the fact that MockWebServer doesn't close the // connection after a response has been sent. This causes the client to // try to read more bytes than are sent, which results in a timeout. MockResponse timeout = new MockResponse().setBody("ABC").clearHeaders().addHeader("Content-Length: 4"); server.enqueue(timeout); server.enqueue(new MockResponse().setBody("unused")); // to keep the server alive server.play(); URLConnection urlConnection = client.open(server.getUrl("/")); urlConnection.setReadTimeout(1000); InputStream in = urlConnection.getInputStream(); assertEquals('A', in.read()); assertEquals('B', in.read()); assertEquals('C', in.read()); try { in.read(); // if Content-Length was accurate, this would return -1 immediately fail(); } catch (SocketTimeoutException expected) { } } @Test public void setChunkedEncodingAsRequestProperty() throws IOException, InterruptedException { server.enqueue(new MockResponse()); server.play(); HttpURLConnection urlConnection = client.open(server.getUrl("/")); urlConnection.setRequestProperty("Transfer-encoding", "chunked"); urlConnection.setDoOutput(true); urlConnection.getOutputStream().write("ABC".getBytes("UTF-8")); assertEquals(200, urlConnection.getResponseCode()); RecordedRequest request = server.takeRequest(); assertEquals("ABC", new String(request.getBody(), "UTF-8")); } @Test public void connectionCloseInRequest() throws IOException, InterruptedException { server.enqueue(new MockResponse()); // server doesn't honor the connection: close header! server.enqueue(new MockResponse()); server.play(); HttpURLConnection a = client.open(server.getUrl("/")); a.setRequestProperty("Connection", "close"); assertEquals(200, a.getResponseCode()); HttpURLConnection b = client.open(server.getUrl("/")); assertEquals(200, b.getResponseCode()); assertEquals(0, server.takeRequest().getSequenceNumber()); assertEquals("When connection: close is used, each request should get its own connection", 0, server.takeRequest().getSequenceNumber()); } @Test public void connectionCloseInResponse() throws IOException, InterruptedException { server.enqueue(new MockResponse().addHeader("Connection: close")); server.enqueue(new MockResponse()); server.play(); HttpURLConnection a = client.open(server.getUrl("/")); assertEquals(200, a.getResponseCode()); HttpURLConnection b = client.open(server.getUrl("/")); assertEquals(200, b.getResponseCode()); assertEquals(0, server.takeRequest().getSequenceNumber()); assertEquals("When connection: close is used, each request should get its own connection", 0, server.takeRequest().getSequenceNumber()); } @Test public void connectionCloseWithRedirect() throws IOException, InterruptedException { MockResponse response = new MockResponse().setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) .addHeader("Location: /foo") .addHeader("Connection: close"); server.enqueue(response); server.enqueue(new MockResponse().setBody("This is the new location!")); server.play(); URLConnection connection = client.open(server.getUrl("/")); assertEquals("This is the new location!", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); assertEquals(0, server.takeRequest().getSequenceNumber()); assertEquals("When connection: close is used, each request should get its own connection", 0, server.takeRequest().getSequenceNumber()); } /** * Retry redirects if the socket is closed. * https://code.google.com/p/android/issues/detail?id=41576 */ @Test public void sameConnectionRedirectAndReuse() throws Exception { server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) .setSocketPolicy(SHUTDOWN_INPUT_AT_END) .addHeader("Location: /foo")); server.enqueue(new MockResponse().setBody("This is the new page!")); server.play(); assertContent("This is the new page!", client.open(server.getUrl("/"))); assertEquals(0, server.takeRequest().getSequenceNumber()); assertEquals(0, server.takeRequest().getSequenceNumber()); } @Test public void responseCodeDisagreesWithHeaders() throws IOException, InterruptedException { server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_NO_CONTENT) .setBody("This body is not allowed!")); server.play(); URLConnection connection = client.open(server.getUrl("/")); assertEquals("This body is not allowed!", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); } @Test public void singleByteReadIsSigned() throws IOException { server.enqueue(new MockResponse().setBody(new byte[] { -2, -1 })); server.play(); URLConnection connection = client.open(server.getUrl("/")); InputStream in = connection.getInputStream(); assertEquals(254, in.read()); assertEquals(255, in.read()); assertEquals(-1, in.read()); } @Test public void flushAfterStreamTransmittedWithChunkedEncoding() throws IOException { testFlushAfterStreamTransmitted(TransferKind.CHUNKED); } @Test public void flushAfterStreamTransmittedWithFixedLength() throws IOException { testFlushAfterStreamTransmitted(TransferKind.FIXED_LENGTH); } @Test public void flushAfterStreamTransmittedWithNoLengthHeaders() throws IOException { testFlushAfterStreamTransmitted(TransferKind.END_OF_STREAM); } /** * We explicitly permit apps to close the upload stream even after it has * been transmitted. We also permit flush so that buffered streams can * do a no-op flush when they are closed. http://b/3038470 */ private void testFlushAfterStreamTransmitted(TransferKind transferKind) throws IOException { server.enqueue(new MockResponse().setBody("abc")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); connection.setDoOutput(true); byte[] upload = "def".getBytes("UTF-8"); if (transferKind == TransferKind.CHUNKED) { connection.setChunkedStreamingMode(0); } else if (transferKind == TransferKind.FIXED_LENGTH) { connection.setFixedLengthStreamingMode(upload.length); } OutputStream out = connection.getOutputStream(); out.write(upload); assertEquals("abc", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); out.flush(); // dubious but permitted try { out.write("ghi".getBytes("UTF-8")); fail(); } catch (IOException expected) { } } @Test public void getHeadersThrows() throws IOException { // Enqueue a response for every IP address held by localhost, because the route selector // will try each in sequence. // TODO: use the fake Dns implementation instead of a loop for (InetAddress inetAddress : InetAddress.getAllByName(server.getHostName())) { server.enqueue(new MockResponse().setSocketPolicy(DISCONNECT_AT_START)); } server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); try { connection.getInputStream(); fail(); } catch (IOException expected) { } try { connection.getInputStream(); fail(); } catch (IOException expected) { } } @Test public void dnsFailureThrowsIOException() throws IOException { HttpURLConnection connection = client.open(new URL("http://host.unlikelytld")); try { connection.connect(); fail(); } catch (IOException expected) { } } @Test public void malformedUrlThrowsUnknownHostException() throws IOException { HttpURLConnection connection = client.open(new URL("http:///foo.html")); try { connection.connect(); fail(); } catch (UnknownHostException expected) { } } @Test public void getKeepAlive() throws Exception { MockWebServer server = new MockWebServer(); server.enqueue(new MockResponse().setBody("ABC")); server.play(); // The request should work once and then fail URLConnection connection1 = client.open(server.getUrl("")); connection1.setReadTimeout(100); InputStream input = connection1.getInputStream(); assertEquals("ABC", readAscii(input, Integer.MAX_VALUE)); input.close(); server.shutdown(); try { HttpURLConnection connection2 = client.open(server.getUrl("")); connection2.setReadTimeout(100); connection2.getInputStream(); fail(); } catch (ConnectException expected) { } } /** Don't explode if the cache returns a null body. http://b/3373699 */ @Test public void installDeprecatedJavaNetResponseCache() throws Exception { ResponseCache cache = new ResponseCache() { @Override public CacheResponse get(URI uri, String requestMethod, Map<String, List<String>> requestHeaders) throws IOException { return null; } @Override public CacheRequest put(URI uri, URLConnection connection) throws IOException { return null; } }; try { client.setResponseCache(cache); fail(); } catch (UnsupportedOperationException expected) { } } /** http://code.google.com/p/android/issues/detail?id=14562 */ @Test public void readAfterLastByte() throws Exception { server.enqueue(new MockResponse().setBody("ABC") .clearHeaders() .addHeader("Connection: close") .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END)); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); InputStream in = connection.getInputStream(); assertEquals("ABC", readAscii(in, 3)); assertEquals(-1, in.read()); assertEquals(-1, in.read()); // throws IOException in Gingerbread } @Test public void getContent() throws Exception { server.enqueue(new MockResponse().addHeader("Content-Type: text/plain").setBody("A")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); InputStream in = (InputStream) connection.getContent(); assertEquals("A", readAscii(in, Integer.MAX_VALUE)); } @Test public void getContentOfType() throws Exception { server.enqueue(new MockResponse().addHeader("Content-Type: text/plain").setBody("A")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); try { connection.getContent(null); fail(); } catch (NullPointerException expected) { } try { connection.getContent(new Class[] { null }); fail(); } catch (NullPointerException expected) { } assertNull(connection.getContent(new Class[] { getClass() })); connection.disconnect(); } @Test public void getOutputStreamOnGetFails() throws Exception { server.enqueue(new MockResponse()); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); try { connection.getOutputStream(); fail(); } catch (ProtocolException expected) { } } @Test public void getOutputAfterGetInputStreamFails() throws Exception { server.enqueue(new MockResponse()); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); connection.setDoOutput(true); try { connection.getInputStream(); connection.getOutputStream(); fail(); } catch (ProtocolException expected) { } } @Test public void setDoOutputOrDoInputAfterConnectFails() throws Exception { server.enqueue(new MockResponse()); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); connection.connect(); try { connection.setDoOutput(true); fail(); } catch (IllegalStateException expected) { } try { connection.setDoInput(true); fail(); } catch (IllegalStateException expected) { } connection.disconnect(); } @Test public void clientSendsContentLength() throws Exception { server.enqueue(new MockResponse().setBody("A")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); connection.setDoOutput(true); OutputStream out = connection.getOutputStream(); out.write(new byte[] { 'A', 'B', 'C' }); out.close(); assertEquals("A", readAscii(connection.getInputStream(), Integer.MAX_VALUE)); RecordedRequest request = server.takeRequest(); assertContains(request.getHeaders(), "Content-Length: 3"); } @Test public void getContentLengthConnects() throws Exception { server.enqueue(new MockResponse().setBody("ABC")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); assertEquals(3, connection.getContentLength()); connection.disconnect(); } @Test public void getContentTypeConnects() throws Exception { server.enqueue(new MockResponse().addHeader("Content-Type: text/plain").setBody("ABC")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); assertEquals("text/plain", connection.getContentType()); connection.disconnect(); } @Test public void getContentEncodingConnects() throws Exception { server.enqueue(new MockResponse().addHeader("Content-Encoding: identity").setBody("ABC")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); assertEquals("identity", connection.getContentEncoding()); connection.disconnect(); } // http://b/4361656 @Test public void urlContainsQueryButNoPath() throws Exception { server.enqueue(new MockResponse().setBody("A")); server.play(); URL url = new URL("http", server.getHostName(), server.getPort(), "?query"); assertEquals("A", readAscii(client.open(url).getInputStream(), Integer.MAX_VALUE)); RecordedRequest request = server.takeRequest(); assertEquals("GET /?query HTTP/1.1", request.getRequestLine()); } // http://code.google.com/p/android/issues/detail?id=20442 @Test public void inputStreamAvailableWithChunkedEncoding() throws Exception { testInputStreamAvailable(TransferKind.CHUNKED); } @Test public void inputStreamAvailableWithContentLengthHeader() throws Exception { testInputStreamAvailable(TransferKind.FIXED_LENGTH); } @Test public void inputStreamAvailableWithNoLengthHeaders() throws Exception { testInputStreamAvailable(TransferKind.END_OF_STREAM); } private void testInputStreamAvailable(TransferKind transferKind) throws IOException { String body = "ABCDEFGH"; MockResponse response = new MockResponse(); transferKind.setBody(response, body, 4); server.enqueue(response); server.play(); URLConnection connection = client.open(server.getUrl("/")); InputStream in = connection.getInputStream(); for (int i = 0; i < body.length(); i++) { assertTrue(in.available() >= 0); assertEquals(body.charAt(i), in.read()); } assertEquals(0, in.available()); assertEquals(-1, in.read()); } @Test public void postFailsWithBufferedRequestForSmallRequest() throws Exception { reusedConnectionFailsWithPost(TransferKind.END_OF_STREAM, 1024); } // This test is ignored because we don't (yet) reliably recover for large request bodies. @Test public void postFailsWithBufferedRequestForLargeRequest() throws Exception { reusedConnectionFailsWithPost(TransferKind.END_OF_STREAM, 16384); } @Test public void postFailsWithChunkedRequestForSmallRequest() throws Exception { reusedConnectionFailsWithPost(TransferKind.CHUNKED, 1024); } @Test public void postFailsWithChunkedRequestForLargeRequest() throws Exception { reusedConnectionFailsWithPost(TransferKind.CHUNKED, 16384); } @Test public void postFailsWithFixedLengthRequestForSmallRequest() throws Exception { reusedConnectionFailsWithPost(TransferKind.FIXED_LENGTH, 1024); } @Test public void postFailsWithFixedLengthRequestForLargeRequest() throws Exception { reusedConnectionFailsWithPost(TransferKind.FIXED_LENGTH, 16384); } private void reusedConnectionFailsWithPost(TransferKind transferKind, int requestSize) throws Exception { server.enqueue(new MockResponse().setBody("A").setSocketPolicy(SHUTDOWN_INPUT_AT_END)); server.enqueue(new MockResponse().setBody("B")); server.play(); assertContent("A", client.open(server.getUrl("/a"))); // If the request body is larger than OkHttp's replay buffer, the failure may still occur. byte[] requestBody = new byte[requestSize]; new Random(0).nextBytes(requestBody); HttpURLConnection connection = client.open(server.getUrl("/b")); connection.setRequestMethod("POST"); transferKind.setForRequest(connection, requestBody.length); for (int i = 0; i < requestBody.length; i += 1024) { connection.getOutputStream().write(requestBody, i, 1024); } connection.getOutputStream().close(); assertContent("B", connection); RecordedRequest requestA = server.takeRequest(); assertEquals("/a", requestA.getPath()); RecordedRequest requestB = server.takeRequest(); assertEquals("/b", requestB.getPath()); assertEquals(Arrays.toString(requestBody), Arrays.toString(requestB.getBody())); } @Test public void fullyBufferedPostIsTooShort() throws Exception { server.enqueue(new MockResponse().setBody("A")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/b")); connection.setRequestProperty("Content-Length", "4"); connection.setRequestMethod("POST"); OutputStream out = connection.getOutputStream(); out.write('a'); out.write('b'); out.write('c'); try { out.close(); fail(); } catch (IOException expected) { } } @Test public void fullyBufferedPostIsTooLong() throws Exception { server.enqueue(new MockResponse().setBody("A")); server.play(); HttpURLConnection connection = client.open(server.getUrl("/b")); connection.setRequestProperty("Content-Length", "3"); connection.setRequestMethod("POST"); OutputStream out = connection.getOutputStream(); out.write('a'); out.write('b'); out.write('c'); try { out.write('d'); fail(); } catch (IOException expected) { } } @Test @Ignore public void testPooledConnectionsDetectHttp10() { // TODO: write a test that shows pooled connections detect HTTP/1.0 (vs. HTTP/1.1) fail("TODO"); } @Test @Ignore public void postBodiesRetransmittedOnAuthProblems() { fail("TODO"); } @Test @Ignore public void cookiesAndTrailers() { // Do cookie headers get processed too many times? fail("TODO"); } @Test @Ignore public void headerNamesContainingNullCharacter() { // This is relevant for SPDY fail("TODO"); } @Test @Ignore public void headerValuesContainingNullCharacter() { // This is relevant for SPDY fail("TODO"); } @Test public void emptyRequestHeaderValueIsAllowed() throws Exception { server.enqueue(new MockResponse().setBody("body")); server.play(); HttpURLConnection urlConnection = client.open(server.getUrl("/")); urlConnection.addRequestProperty("B", ""); assertContent("body", urlConnection); assertEquals("", urlConnection.getRequestProperty("B")); } @Test public void emptyResponseHeaderValueIsAllowed() throws Exception { server.enqueue(new MockResponse().addHeader("A:").setBody("body")); server.play(); HttpURLConnection urlConnection = client.open(server.getUrl("/")); assertContent("body", urlConnection); assertEquals("", urlConnection.getHeaderField("A")); } @Test public void emptyRequestHeaderNameIsStrict() throws Exception { server.enqueue(new MockResponse().setBody("body")); server.play(); HttpURLConnection urlConnection = client.open(server.getUrl("/")); try { urlConnection.setRequestProperty("", "A"); fail(); } catch (IllegalArgumentException expected) { } } @Test public void emptyResponseHeaderNameIsLenient() throws Exception { server.enqueue(new MockResponse().addHeader(":A").setBody("body")); server.play(); HttpURLConnection urlConnection = client.open(server.getUrl("/")); urlConnection.getResponseCode(); assertEquals("A", urlConnection.getHeaderField("")); } @Test @Ignore public void deflateCompression() { fail("TODO"); } @Test @Ignore public void postBodiesRetransmittedOnIpAddressProblems() { fail("TODO"); } @Test @Ignore public void pooledConnectionProblemsNotReportedToProxySelector() { fail("TODO"); } @Test public void customAuthenticator() throws Exception { MockResponse pleaseAuthenticate = new MockResponse().setResponseCode(401) .addHeader("WWW-Authenticate: Basic realm=\"protected area\"") .setBody("Please authenticate."); server.enqueue(pleaseAuthenticate); server.enqueue(new MockResponse().setBody("A")); server.play(); Credential credential = Credential.basic("jesse", "peanutbutter"); RecordingOkAuthenticator authenticator = new RecordingOkAuthenticator(credential); client.setAuthenticator(authenticator); assertContent("A", client.open(server.getUrl("/private"))); assertContainsNoneMatching(server.takeRequest().getHeaders(), "Authorization: .*"); assertContains(server.takeRequest().getHeaders(), "Authorization: " + credential.getHeaderValue()); assertEquals(1, authenticator.calls.size()); String call = authenticator.calls.get(0); assertTrue(call, call.contains("proxy=DIRECT")); assertTrue(call, call.contains("url=" + server.getUrl("/private"))); assertTrue(call, call.contains("challenges=[Basic realm=\"protected area\"]")); } @Test public void setTransports() throws Exception { server.enqueue(new MockResponse().setBody("A")); server.play(); client.setTransports(Arrays.asList("http/1.1")); assertContent("A", client.open(server.getUrl("/"))); } @Test public void setTransportsWithoutHttp11() throws Exception { try { client.setTransports(Arrays.asList("spdy/3")); fail(); } catch (IllegalArgumentException expected) { } } @Test public void setTransportsWithNull() throws Exception { try { client.setTransports(Arrays.asList("http/1.1", null)); fail(); } catch (IllegalArgumentException expected) { } } @Test public void veryLargeFixedLengthRequest() throws Exception { server.setBodyLimit(0); server.enqueue(new MockResponse()); server.play(); HttpURLConnection connection = client.open(server.getUrl("/")); connection.setDoOutput(true); long contentLength = Integer.MAX_VALUE + 1L; connection.setFixedLengthStreamingMode(contentLength); OutputStream out = connection.getOutputStream(); byte[] buffer = new byte[1024 * 1024]; for (long bytesWritten = 0; bytesWritten < contentLength; ) { int byteCount = (int) Math.min(buffer.length, contentLength - bytesWritten); out.write(buffer, 0, byteCount); bytesWritten += byteCount; } assertContent("", connection); RecordedRequest request = server.takeRequest(); assertEquals(Long.toString(contentLength), request.getHeader("Content-Length")); } /** Returns a gzipped copy of {@code bytes}. */ public byte[] gzip(byte[] bytes) throws IOException { ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); OutputStream gzippedOut = new GZIPOutputStream(bytesOut); gzippedOut.write(bytes); gzippedOut.close(); return bytesOut.toByteArray(); } /** * Reads at most {@code limit} characters from {@code in} and asserts that * content equals {@code expected}. */ private void assertContent(String expected, URLConnection connection, int limit) throws IOException { connection.connect(); assertEquals(expected, readAscii(connection.getInputStream(), limit)); ((HttpURLConnection) connection).disconnect(); } private void assertContent(String expected, URLConnection connection) throws IOException { assertContent(expected, connection, Integer.MAX_VALUE); } private void assertContains(List<String> headers, String header) { assertTrue(headers.toString(), headers.contains(header)); } private void assertContainsNoneMatching(List<String> headers, String pattern) { for (String header : headers) { if (header.matches(pattern)) { fail("Header " + header + " matches " + pattern); } } } private Set<String> newSet(String... elements) { return new HashSet<String>(Arrays.asList(elements)); } enum TransferKind { CHUNKED() { @Override void setBody(MockResponse response, byte[] content, int chunkSize) throws IOException { response.setChunkedBody(content, chunkSize); } @Override void setForRequest(HttpURLConnection connection, int contentLength) { connection.setChunkedStreamingMode(5); } }, FIXED_LENGTH() { @Override void setBody(MockResponse response, byte[] content, int chunkSize) { response.setBody(content); } @Override void setForRequest(HttpURLConnection connection, int contentLength) { connection.setFixedLengthStreamingMode(contentLength); } }, END_OF_STREAM() { @Override void setBody(MockResponse response, byte[] content, int chunkSize) { response.setBody(content); response.setSocketPolicy(DISCONNECT_AT_END); for (Iterator<String> h = response.getHeaders().iterator(); h.hasNext(); ) { if (h.next().startsWith("Content-Length:")) { h.remove(); break; } } } @Override void setForRequest(HttpURLConnection connection, int contentLength) { } }; abstract void setBody(MockResponse response, byte[] content, int chunkSize) throws IOException; abstract void setForRequest(HttpURLConnection connection, int contentLength); void setBody(MockResponse response, String content, int chunkSize) throws IOException { setBody(response, content.getBytes("UTF-8"), chunkSize); } } enum ProxyConfig { NO_PROXY() { @Override public HttpURLConnection connect(MockWebServer server, OkHttpClient client, URL url) throws IOException { client.setProxy(Proxy.NO_PROXY); return client.open(url); } }, CREATE_ARG() { @Override public HttpURLConnection connect(MockWebServer server, OkHttpClient client, URL url) throws IOException { client.setProxy(server.toProxyAddress()); return client.open(url); } }, PROXY_SYSTEM_PROPERTY() { @Override public HttpURLConnection connect(MockWebServer server, OkHttpClient client, URL url) throws IOException { System.setProperty("proxyHost", "localhost"); System.setProperty("proxyPort", Integer.toString(server.getPort())); return client.open(url); } }, HTTP_PROXY_SYSTEM_PROPERTY() { @Override public HttpURLConnection connect(MockWebServer server, OkHttpClient client, URL url) throws IOException { System.setProperty("http.proxyHost", "localhost"); System.setProperty("http.proxyPort", Integer.toString(server.getPort())); return client.open(url); } }, HTTPS_PROXY_SYSTEM_PROPERTY() { @Override public HttpURLConnection connect(MockWebServer server, OkHttpClient client, URL url) throws IOException { System.setProperty("https.proxyHost", "localhost"); System.setProperty("https.proxyPort", Integer.toString(server.getPort())); return client.open(url); } }; public abstract HttpURLConnection connect(MockWebServer server, OkHttpClient client, URL url) throws IOException; } private static class RecordingTrustManager implements X509TrustManager { private final List<String> calls = new ArrayList<String>(); public X509Certificate[] getAcceptedIssuers() { return new X509Certificate[] { }; } public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException { calls.add("checkClientTrusted " + certificatesToString(chain)); } public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException { calls.add("checkServerTrusted " + certificatesToString(chain)); } private String certificatesToString(X509Certificate[] certificates) { List<String> result = new ArrayList<String>(); for (X509Certificate certificate : certificates) { result.add(certificate.getSubjectDN() + " " + certificate.getSerialNumber()); } return result.toString(); } } private static class FakeProxySelector extends ProxySelector { List<Proxy> proxies = new ArrayList<Proxy>(); @Override public List<Proxy> select(URI uri) { // Don't handle 'socket' schemes, which the RI's Socket class may request (for SOCKS). return uri.getScheme().equals("http") || uri.getScheme().equals("https") ? proxies : Collections.singletonList(Proxy.NO_PROXY); } @Override public void connectFailed(URI uri, SocketAddress sa, IOException ioe) { } } }
{ "content_hash": "835e25a70ccb91989b1eea6af2e33382", "timestamp": "", "source": "github", "line_count": 2673, "max_line_length": 100, "avg_line_length": 39.343060231949124, "alnum_prop": 0.7145981514586741, "repo_name": "RyanTech/okhttp", "id": "125c34cd0332a3e83d9b2fb180e56f2165609962", "size": "105783", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "okhttp/src/test/java/com/squareup/okhttp/internal/http/URLConnectionTest.java", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
<style> html { box-sizing: border-box; font-size: 100%; } *, *::before, *::after { box-sizing: inherit; } body { background: #fefefe; color: #0a0a0a; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-weight: normal; line-height: 1.5; margin: 0; padding: 0; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; } html { box-sizing: border-box; font-size: 100%; } *, *::before, *::after { box-sizing: inherit; } body { background: #fefefe; color: #0a0a0a; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-weight: normal; line-height: 1.5; margin: 0; padding: 0; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; } </style> <html lang="en" dir="ltr" prefix="og: http://ogp.me/ns#" class="no-js fonts-loaded"><head><meta charset="utf-8"/><meta name="referrer" content="origin"/><meta name="robots" content="index, follow"/><meta name="viewport" content="width=device-width, initial-scale=1"/><style> html { box-sizing: border-box; font-size: 100%; } *, *::before, *::after { box-sizing: inherit; } body { background: #fefefe; color: #0a0a0a; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-weight: normal; line-height: 1.5; margin: 0; padding: 0; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; } html { box-sizing: border-box; font-size: 100%; } *, *::before, *::after { box-sizing: inherit; } body { background: #fefefe; color: #0a0a0a; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-weight: normal; line-height: 1.5; margin: 0; padding: 0; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; } </style></head><body><div><style> html { box-sizing: border-box; font-size: 100%; } *, *::before, *::after { box-sizing: inherit; } body { background: #fefefe; color: #0a0a0a; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-weight: normal; line-height: 1.5; margin: 0; padding: 0; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; } html { box-sizing: border-box; font-size: 100%; } *, *::before, *::after { box-sizing: inherit; } body { background: #fefefe; color: #0a0a0a; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-weight: normal; line-height: 1.5; margin: 0; padding: 0; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; } </style> <html lang="en" dir="ltr" prefix="og: http://ogp.me/ns#" class="no-js fonts-loaded"><head><meta charset="utf-8"/><meta name="referrer" content="origin"/><meta name="robots" content="index, follow"/><meta name="viewport" content="width=device-width, initial-scale=1"/><style> html { box-sizing: border-box; font-size: 100%; } *, *::before, *::after { box-sizing: inherit; } body { background: #fefefe; color: #0a0a0a; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-weight: normal; line-height: 1.5; margin: 0; padding: 0; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; } html { box-sizing: border-box; font-size: 100%; } *, *::before, *::after { box-sizing: inherit; } body { background: #fefefe; color: #0a0a0a; font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; font-weight: normal; line-height: 1.5; margin: 0; padding: 0; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; } </style></head><body><div></div></body></html></div></body></html>
{ "content_hash": "f2b5f9f79b9ec9535991afc441b2bee5", "timestamp": "", "source": "github", "line_count": 163, "max_line_length": 274, "avg_line_length": 22.533742331288344, "alnum_prop": 0.6561393955894365, "repo_name": "guzart/fain", "id": "c2ebe97f5ec1e6e12c609f71adafd020baee1b91", "size": "3675", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "docs/components/preview/preview.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "5048" }, { "name": "JavaScript", "bytes": "37354" } ], "symlink_target": "" }
layout: post title: "Popsugar Must Have August 2015 Review + Coupon!" description: "" headline: "Popsugar Must Have August 2015 Review + Coupon!" tags: [Popsugar Must Have, Subscriptions, Reviews, August 2015] comments: true published: true featured: false categories: - Subscriptions - Reviews type: photo imagefeature: "PopsugarAugust2015Box.jpg" date: 2015-08-20 08:01:39 -08:00 --- <center><a href="https://musthave.popsugar.com/p/monthly-subscription?utm_source=link&utm_medium=confirmation-page&utm_campaign=referral&utm_content=u:16301514" target="_blank"> <img src="/images/PopsugarAugust2015Box2.jpg" border="0" style="border:none;max-width:100%;" alt="Popsugar Must Have Box!" /> </a></center> <p><b>Subscription:</b> <a href="https://musthave.popsugar.com/p/monthly-subscription?utm_source=link&utm_medium=confirmation-page&utm_campaign=referral&utm_content=u:16301514" target="_blank">Popsugar Must Have</a></p> <p><b>Cost:</b> $39.95/monthly + Free Shipping (additional taxes apply to CA)</p> <p><b>What's in the box:</b> You'll receive lifestyle items that are curated by Popsugar Editor in Chief, Lisa Sugar and her team, ranging from makeup, jewelry, fitness, food, home and more!</p> <p><b>Coupon:</b> Use coupon code <a href="https://musthave.popsugar.com/p/monthly-subscription?utm_source=link&utm_medium=confirmation-page&utm_campaign=referral&utm_content=u:16301514" target="_blank"><b>MUSTHAVE5</b></a> to get $5 off your first box!</p> <br> <p>This month's theme is "Organization, Morning Routines, Celebrations, Caffeine and Back to School".</p> <br> <center><img src='/images/PopsugarAugust2015OpenBox.jpg'></center> <figcaption>First look at unboxing</figcaption> <br> <center><img src='/images/PopsugarAugust2015OpenBox2.jpg'></center> <figcaption>Second look at unboxing</figcaption> <br> <center><img src='/images/PopsugarAugust2015Info.jpg'></center> <center><img src='/images/PopsugarAugust2015Info2.jpg'></center> <p>Fold out Info card that details all the items and prices.</p> <br> <DT>And here are the items!</DT> <p><center><a href="https://musthave.popsugar.com/p/monthly-subscription?utm_source=link&utm_medium=confirmation-page&utm_campaign=referral&utm_content=u:16301514" target="_blank"> <img src="/images/PopsugarAugust2015Items2.jpg" border="0" style="border:none;max-width:100%;" alt="Popsugar Must Have Box!" /> </a></center></p> <H4>Items in detail:</H4> <p><center><img src='/images/PopsugarAugust2015Scarf.jpg'></center></p> <DL> <DT><a href="http://americancolorsclothing.com/shop/scarves/the-scarf-blueclay.html" target="_blank">American Color by Alex Lehr Scarf</a></DT> <DD>Value $79</DD> </DL> <p>Personally, I'm kind of over getting scarves in my sub boxes. I swapped most of mine away since I don't really wear them.</p> <p>The material is soft and it is quite fluffy and comfy for a scarf, but I'm not sure I would have paid $79 for it. And the colors and pattern on this one just didn't do it for me, so unfortunately it'll be gifted or swapped.</p> <center><img src='/images/PopsugarAugust2015Scarf2.jpg'></center> <p>It came packaged in a plastic bag. Good to know for swapping.</p> <br> <p><center><img src='/images/PopsugarAugust2015Lunchbox.jpg'></center></p> <DL> <DT><a href="http://www.burkedecor.com/products/yay-lunch-lunch-box-design-by-wild-wolf" target="_blank">Happy Jackson - "Yay Lunch" Lunch Box</a></DT> <DD>Retail Value $10</DD> </DL> <p>Hmmm, I don't know what to say about this. It's both odd and unexpected to receive a lunchbox, even my husband commented "why are you receiving a lunchbox, are you going back to school?" If I was still in college, then yes, it might have increased the excitement within me. But no, sorry, this just didn't do it for me. Another gift or swap item, sigh.</p> <center><img src='/images/PopsugarAugust2015Lunchbox2.jpg'></center> <figcaption>Another look at the lunchbox disassembled.</figcaption> <br> <p><center><img src='/images/PopsugarAugust2015Mug.jpg'></center></p> <DL> <DT><a href="http://shop.nordstrom.com/s/fringe-studio-best-day-ever-mug/4086813?origin=category-personalizedsort&contextualcategoryid=0&fashionColor=&resultback=875" target="_blank">Fringe Studio - Best Day Ever Mug</a></DT> <DD>Value $10 (Popsugar stated the value as $12 but I found it cheaper on Nordstrom and used that price instead)</DD> </DL> <p>Finally an item I'm in love with. I drink quite a bit of tea and the simple design on this mug will go perfectly in my mug collection. I can't wait to use it!</p> <center><img src='/images/PopsugarAugust2015Mug2.jpg'></center> <p>I also appreciate that it's both microwave and dishwasher safe, a definite keeper!</p> <center><img src='/images/PopsugarAugust2015Mug3.jpg'></center> <p>The mug was packaged in a box so it was secure and arrived in one piece.</p> <br> <p><center><img src='/images/PopsugarAugust2015EyeCream.jpg'></center></p> <center><img src='/images/PopsugarAugust2015EyeCream2.jpg'></center> <DL> <DT><a href="http://www.royalapothic.com/products/tea-balm-firming-eye-treatment" target="_blank">Royal Apothic - Tea Balm Firming Eye Treatment</a></DT> <DD>Value $36</DD> </DL> <p>I knew I was getting this eye cream since it was revealed earlier, and my initial reaction was just meh. I don't have a lot of eye concerns so it's not really my thing, but prevention is always better than correction so I will be using this.</p> <br> <p><center><img src='/images/PopsugarAugust2015PancakeMix.jpg'></center></p> <DL> <DT><a href="http://southernculturefoods.com/collections/pancake-waffle-mix/products/birthday-cake-pancake-and-waffle-mix-1" target="_blank">Southern Culture - "Birthday Cake" Pancake & Waffe Mix</a></DT> <DD>10 oz., Value $7.99</DD> </DL> <p>I'm not really a pancake/waffle person (I know, crazy right) but I will certainly try this and I'm sure my husband will appreciate it more than I do.</p> <p>This product was featured in Shark Tank, Oprah magazine, and QVC to name a few. So that just made me more interested in trying this out =)</p> <center><img src='/images/PopsugarAugust2015PancakeMix2.jpg'></center> <p>The ingredients look good, I'll try using it this weekend!</p> <br> <p><center><img src='/images/PopsugarAugust2015Napkins.jpg'></center></p> <DL> <DT><a href="http://www.shopmerimeri.com/tootsweetpinkstripelargenapkin.aspx" target="_blank">Meri Meri - Toot Sweet Pink Stripe Large Napkin</i></a></DT> <DD>20 Large Paper Napkins, Value $5.95</DD> </DL> <p>Paper napkins, really. And the print looks more like a kids birthday party, not digging it at all. And I surely can't gift it, that would be odd. So I'll either swap this or use it when I'm in need of napkins and there's none other but this.</p> <br> <p><center><img src='/images/PopsugarAugust2015Yoga.jpg'></center></p> <DL> <DT><a href="https://www.myyogaworks.com" target="_blank">My Yoga Works</a> - 3 month subscription</DT> <DD>3-month subscription, Value $45</DD> </DL> <p>My Yoga Works gives you unlimited access to 700+ online classes for $15/month. They have videos either by duration (5, 10, 15... all the way to 90 minutes) or by level (beginner, intermediate, advance, or for teachers). These videos can be watched at anytime and anywhere so it'll be great for people like me who may not have the time to go to the gym or can only exercise late at night when all the gyms are closed. I may even use this while I'm traveling, how cool is that! I will certainly make use of this and might just continue subscribing.</p> <H4><i class="icon-gift"></i> Bonus item:</H4> <p><center><img src='/images/PopsugarAugust2015Coffee.jpg'></center></p> <DL> <DT><a href="http://www.folgerscoffee.com" target="_blank">Folgers</a> Iced Cafe in "Caramel Macchiato"</DT> <DD>Value $5</DD> </DL> <p>Since I'm not a coffee drinker, this will be handed off to my husband. I appreciate the bonus item, but a Folger's coffee is somewhat disappointing, at least for me.</p> <p>If you're not familiar with this product, the way to use it is as follows:</p> <p>1. Add ice</p> <p>2. Pour milk</p> <p>3. Squeeze in Folgers Iced Cafe</p> <p>4. Stir & enjoy</p> <br> <p><i class="icon-exclamation-sign"></i><b> My Thoughts:</b> Okay, so although I love getting my Popsugar boxes every month, I have to admit this box is my least favorite to date. The only item I truly liked is the mug, and maybe the eye cream (depending on the results). Everything else seemed a bit off especially for a $40 subscription box. Although the value is quite high for this box, it's mostly due to the high priced scarf and the 3-month yoga trial. I'll still continue subscribing because hey, everyone makes mistakes and I think this box was one of them, so I'll let them slide this time. Let's hope next month they make up for it!</p> <p>Not a subscriber? You can <a href="https://musthave.popsugar.com/p/monthly-subscription?utm_source=link&utm_medium=confirmation-page&utm_campaign=referral&utm_content=u:16301514" target="_blank"><big>subscribe here</big></a> to start your subscription with the September box and don't forget to use coupon code <a href="https://musthave.popsugar.com/p/monthly-subscription?utm_source=link&utm_medium=confirmation-page&utm_campaign=referral&utm_content=u:16301514" target="_blank">MUSTHAVE5</a> to get $5 off your first box!</p> <TABLE BORDER="5" style="width:75%"> <TR> <TH COLSPAN="2"> <H3><BR><center>My Items</center></H3> </TH> </TR> <TH>Product</TH> <TH>Price</TH> <TR> <TD>American Colors Scarf</TD> <TD>$79</TD> </TR> <TR> <TD>Happy Jackson Lunch Box</TD> <TD>$10</TD> </TR> <TR> <TD>Fringe Studio Mug</TD> <TD>$10</TD> </TR> <TR> <TD>Royal Apothic Eye Cream</TD> <TD>$36</TD> </TR> <TR> <TD>Southern Culture Pancake Mix</TD> <TD>$7.99</TD> </TR> <TR> <TD>Meri Meri Paper Napkins</TD> <TD>$5.95</TD> </TR> <TR> <TD>My Yoga Works</TD> <TD>$45</TD> </TR> <TR> <TD>Folgers Iced Cafe</TD> <TD>$5</TD> </TR> <TR> <TD><b><big>TOTAL VALUE</big></b></TD> <TD><b><big>$198.94</big></b></TD> </TR> <TR> <TD><i><big>Subscription Cost</big></i></TD> <TD><i><big>$39.95</big></i></TD> </TR> </TABLE>
{ "content_hash": "2b6d0f00927f7e3f8bf39bdb12b7f6f7", "timestamp": "", "source": "github", "line_count": 210, "max_line_length": 647, "avg_line_length": 49.10476190476191, "alnum_prop": 0.7106283941039565, "repo_name": "whatsupmailbox2/whatsupmailbox2.github.io", "id": "4637ebdbd896a74c9b123eb7a9ecd0da7237adfb", "size": "10316", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "_posts/2015-08-20-Popsugar-Must-Have-Subscription-Box-August-2015-Review-Coupon.md", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "402025" }, { "name": "HTML", "bytes": "43894" }, { "name": "JavaScript", "bytes": "675539" }, { "name": "Ruby", "bytes": "833" } ], "symlink_target": "" }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit; namespace HDoc.Tests { public class HNodeTest { [Fact] public void TestNextNode() { HNode n1 = new HText("test 1"); Assert.Null(n1.NextNode); HElement parent = new HElement("parent"); parent.Add(n1); Assert.Null(n1.NextNode); HNode n2 = new HText("test 2"); parent.Add(n2); Assert.Same(n2, n1.NextNode); Assert.Null(n2.NextNode); } [Fact] public void TestPreviousNode() { HNode n1 = new HText("test 1"); Assert.Null(n1.PreviousNode); HElement parent = new HElement("parent"); parent.Add(n1); Assert.Null(n1.PreviousNode); HNode n2 = new HText("test 2"); parent.Add(n2); Assert.Null(n1.PreviousNode); Assert.Same(n1, n2.PreviousNode); } [Fact] public void TestAddBefore() { HElement parent = new HElement("parent"); HNode n1 = new HElement("test-1"); parent.Add(n1); Assert.Equal(1, parent.Nodes().Count()); HNode n2 = new HElement("test-2"); n1.AddBefore(n2); Assert.Equal(2, parent.Nodes().Count()); n1.AddBefore("1"); Assert.Equal(3, parent.Nodes().Count()); n2.AddBefore("2"); Assert.Equal(4, parent.Nodes().Count()); var nodes = parent.Nodes().ToArray(); Assert.Equal(4, nodes.Length); Assert.IsType<HText>(nodes[0]); Assert.IsType<HElement>(nodes[1]); Assert.IsType<HText>(nodes[2]); Assert.IsType<HElement>(nodes[3]); n1 = new HElement("test-3"); var ioe = Assert.Throws<InvalidOperationException>(() => n1.AddBefore(null)); Assert.Equal("No parent found.", ioe.Message); } [Fact] public void TestAddAfter() { HElement parent = new HElement("parent"); HNode n1 = new HElement("test-1"); parent.Add(n1); Assert.Equal(1, parent.Nodes().Count()); HNode n2 = new HElement("test-2"); n1.AddAfter(n2); Assert.Equal(2, parent.Nodes().Count()); n1.AddAfter("1"); Assert.Equal(3, parent.Nodes().Count()); n2.AddAfter("2"); Assert.Equal(4, parent.Nodes().Count()); var nodes = parent.Nodes().ToArray(); Assert.Equal(4, nodes.Length); Assert.IsType<HElement>(nodes[0]); Assert.IsType<HText>(nodes[1]); Assert.IsType<HElement>(nodes[2]); Assert.IsType<HText>(nodes[3]); n1 = new HElement("test-3"); var ioe = Assert.Throws<InvalidOperationException>(() => n1.AddAfter(null)); Assert.Equal("No parent found.", ioe.Message); } [Fact] public void TestRemove() { var node = new HText("node"); // Create parent var elm = new HElement("test", node); Assert.Same(node, elm.FirstNode); Assert.Same(node, elm.LastNode); Assert.Same(elm, node.Parent); Assert.Equal(1, elm.Nodes().Count()); // Remove attribute node.Remove(); Assert.Null(elm.FirstNode); Assert.Null(elm.LastNode); Assert.Null(node.Parent); Assert.Equal(0, elm.Nodes().Count()); // Fail to remove a detached node var ioe = Assert.Throws<InvalidOperationException>(() => node.Remove()); Assert.Equal("No parent found.", ioe.Message); } [Fact] public void TestToString() { Assert.Equal("Text content", new HText("Text content").ToString()); Assert.Equal("<div class=\"content\">Text content</div>", new HElement("div", new HText("Text content")).Attr(new { @class = "content" }).ToString()); } } }
{ "content_hash": "0d2260966e3fd989dfb599d46334d133", "timestamp": "", "source": "github", "line_count": 137, "max_line_length": 162, "avg_line_length": 30.773722627737225, "alnum_prop": 0.517314990512334, "repo_name": "ygrenier/HDocument", "id": "0de4230207df479d5e5ea2d7b82ce3f2dd0e4364", "size": "4218", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "sources/HDocument.Tests/HNodeTest.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "549389" }, { "name": "HTML", "bytes": "2920" } ], "symlink_target": "" }
class Expose { constructor(modal, options) { // set up properties this.modal = modal; this.modalId = modal.dataset.expose; this.trigger = document.querySelector('[href="#'+ this.modalId +'"]'); this.body = document.getElementsByTagName('body')[0]; this.opened = false; this.openedEvent = this.closedEvent = this._scrollY = null; // extend options this.options = extend({ allowHash: true }, options); // set up callbacks this.onOpen = this.onClose = function () {}; // kick this thang off this._init(); return this; } _init() { // add events this._addEvents(); // open modal if in hash if(window.location.hash.split('#')[1] === this.modalId && this.options.allowHash) { this.openModal(); } } _addEvents() { // add custom event listeners this.openedEvent = new Event('expose:opened'); this.closedEvent = new Event('expose:closed'); // Open modal with trigger button this.trigger.addEventListener('click', (e) => { // if we aren't allowing a hash, prevent url from being updated if(!this.options.allowHash) e.preventDefault(); this.openModal(); }, false); // Close modal with BG click this.modal.addEventListener('click', (e) => { // if we didn't click the background, bail if(e.target !== this.modal) return; this.closeModal(); }, false); // Listen for 'ESC' key to close modal window.addEventListener('keyup', (e) => { if(this.opened && e.keyCode === 27) { e.preventDefault(); // this could be bad this.closeModal(); } }, false); } openModal() { // we're open this.opened = true; // open modal this.modal.classList.add('modal--open'); // on open callback this.onOpen(); // store current scroll position this._scrollY = window.pageYOffset; // set body top position so it looks like it didn't move this.body.style.top = -this._scrollY + 'px'; // set body to fixed position to prevent scrolling this.body.classList.add('fixed'); // trigger opened event this.modal.dispatchEvent(this.openedEvent); } closeModal() { // we're closed this.opened = false; // remove fixed postioning this.body.classList.remove('fixed'); // reset body top position this.body.style.top = ''; // position page back to where it was window.scroll(0, this._scrollY); // close the modal this.modal.classList.remove('modal--open'); // if we allowed a hash, reset it when closing if(this.options.allowHash) { // if we have the history API, remove the actual hash from the URL if(window.history && history.pushState) { history.pushState('', document.title, window.location.pathname); } else { window.location.hash = ''; } } // trigger closed event this.modal.dispatchEvent(this.closedEvent); } } function extend(obj) { obj = obj || {}; for(var i = 1; i < arguments.length; i++) { if(!arguments[i]) continue; for(var key in arguments[i]) { if(arguments[i].hasOwnProperty(key)) { obj[key] = arguments[i][key]; } } } return obj; } export default Expose;
{ "content_hash": "c47da002f31a29365f4706b917a516f6", "timestamp": "", "source": "github", "line_count": 148, "max_line_length": 80, "avg_line_length": 26.135135135135137, "alnum_prop": 0.5124095139607032, "repo_name": "souporserious/expose-modal", "id": "116696fdd78dc9761d735ccfb63306b1d0c8d783", "size": "3868", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "scripts/expose.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "1994" }, { "name": "HTML", "bytes": "1053" }, { "name": "JavaScript", "bytes": "12216" } ], "symlink_target": "" }
 using System; using System.Collections.Generic; #if WINDOWS_PHONE using Microsoft.VisualStudio.TestPlatform.UnitTestFramework; #else #if NETFX_CORE using Microsoft.VisualStudio.TestPlatform.UnitTestFramework; #else using Microsoft.VisualStudio.TestTools.UnitTesting; #endif #endif namespace PhoneNumbers.Test { [TestClass] public class TestExampleNumbers { private static PhoneNumberUtil phoneNumberUtil; private List<PhoneNumber> invalidCases = new List<PhoneNumber>(); private List<PhoneNumber> wrongTypeCases = new List<PhoneNumber>(); [ClassInitialize] public static void SetupFixture(TestContext context) { PhoneNumberUtil.ResetInstance(); phoneNumberUtil = PhoneNumberUtil.GetInstance(); } [TestInitialize] public void SetUp() { invalidCases.Clear(); wrongTypeCases.Clear(); } /** * @param exampleNumberRequestedType type we are requesting an example number for * @param possibleExpectedTypes acceptable types that this number should match, such as * FIXED_LINE and FIXED_LINE_OR_MOBILE for a fixed line example number. */ private void checkNumbersValidAndCorrectType(PhoneNumberType exampleNumberRequestedType, HashSet<PhoneNumberType> possibleExpectedTypes) { foreach (var regionCode in phoneNumberUtil.GetSupportedRegions()) { PhoneNumber exampleNumber = phoneNumberUtil.GetExampleNumberForType(regionCode, exampleNumberRequestedType); if (exampleNumber != null) { if (!phoneNumberUtil.IsValidNumber(exampleNumber)) { invalidCases.Add(exampleNumber); //LOGGER.log(Level.SEVERE, "Failed validation for " + exampleNumber.toString()); } else { // We know the number is valid, now we check the type. PhoneNumberType exampleNumberType = phoneNumberUtil.GetNumberType(exampleNumber); if (!possibleExpectedTypes.Contains(exampleNumberType)) { wrongTypeCases.Add(exampleNumber); //LOGGER.log(Level.SEVERE, "Wrong type for " + exampleNumber.toString() + ": got " + exampleNumberType); //LOGGER.log(Level.WARNING, "Expected types: "); //for (PhoneNumberType type : possibleExpectedTypes) { //LOGGER.log(Level.WARNING, type.toString()); } } } } } private HashSet<PhoneNumberType> MakeSet(PhoneNumberType t1, PhoneNumberType t2) { return new HashSet<PhoneNumberType>(new PhoneNumberType[] { t1, t2 }); } private HashSet<PhoneNumberType> MakeSet(PhoneNumberType t1) { return MakeSet(t1, t1); } [TestMethod] public void TestFixedLine() { HashSet<PhoneNumberType> fixedLineTypes = MakeSet(PhoneNumberType.FIXED_LINE, PhoneNumberType.FIXED_LINE_OR_MOBILE); checkNumbersValidAndCorrectType(PhoneNumberType.FIXED_LINE, fixedLineTypes); Assert.AreEqual(0, invalidCases.Count); Assert.AreEqual(0, wrongTypeCases.Count); } [TestMethod] public void TestMobile() { HashSet<PhoneNumberType> mobileTypes = MakeSet(PhoneNumberType.MOBILE, PhoneNumberType.FIXED_LINE_OR_MOBILE); checkNumbersValidAndCorrectType(PhoneNumberType.MOBILE, mobileTypes); Assert.AreEqual(0, invalidCases.Count); Assert.AreEqual(0, wrongTypeCases.Count); } [TestMethod] public void TestTollFree() { HashSet<PhoneNumberType> tollFreeTypes = MakeSet(PhoneNumberType.TOLL_FREE); checkNumbersValidAndCorrectType(PhoneNumberType.TOLL_FREE, tollFreeTypes); Assert.AreEqual(0, invalidCases.Count); Assert.AreEqual(0, wrongTypeCases.Count); } [TestMethod] public void TestPremiumRate() { HashSet<PhoneNumberType> premiumRateTypes = MakeSet(PhoneNumberType.PREMIUM_RATE); checkNumbersValidAndCorrectType(PhoneNumberType.PREMIUM_RATE, premiumRateTypes); Assert.AreEqual(0, invalidCases.Count); Assert.AreEqual(0, wrongTypeCases.Count); } [TestMethod] public void TestVoip() { HashSet<PhoneNumberType> voipTypes = MakeSet(PhoneNumberType.VOIP); checkNumbersValidAndCorrectType(PhoneNumberType.VOIP, voipTypes); Assert.AreEqual(0, invalidCases.Count); Assert.AreEqual(0, wrongTypeCases.Count); } [TestMethod] public void TestPager() { HashSet<PhoneNumberType> pagerTypes = MakeSet(PhoneNumberType.PAGER); checkNumbersValidAndCorrectType(PhoneNumberType.PAGER, pagerTypes); Assert.AreEqual(0, invalidCases.Count); Assert.AreEqual(0, wrongTypeCases.Count); } [TestMethod] public void TestUan() { HashSet<PhoneNumberType> uanTypes = MakeSet(PhoneNumberType.UAN); checkNumbersValidAndCorrectType(PhoneNumberType.UAN, uanTypes); Assert.AreEqual(0, invalidCases.Count); Assert.AreEqual(0, wrongTypeCases.Count); } [TestMethod] public void TestVoicemail() { HashSet<PhoneNumberType> voicemailTypes = MakeSet(PhoneNumberType.VOICEMAIL); checkNumbersValidAndCorrectType(PhoneNumberType.VOICEMAIL, voicemailTypes); Assert.AreEqual(0, invalidCases.Count); Assert.AreEqual(0, wrongTypeCases.Count); } [TestMethod] public void TestSharedCost() { HashSet<PhoneNumberType> sharedCostTypes = MakeSet(PhoneNumberType.SHARED_COST); checkNumbersValidAndCorrectType(PhoneNumberType.SHARED_COST, sharedCostTypes); Assert.AreEqual(0, invalidCases.Count); Assert.AreEqual(0, wrongTypeCases.Count); } [TestMethod] public void TestCanBeInternationallyDialled() { foreach (var regionCode in phoneNumberUtil.GetSupportedRegions()) { PhoneNumber exampleNumber = null; PhoneNumberDesc desc = phoneNumberUtil.GetMetadataForRegion(regionCode).NoInternationalDialling; try { if (desc.HasExampleNumber) { exampleNumber = phoneNumberUtil.Parse(desc.ExampleNumber, regionCode); } } catch (NumberParseException) { } if (exampleNumber != null && phoneNumberUtil.CanBeInternationallyDialled(exampleNumber)) { wrongTypeCases.Add(exampleNumber); // LOGGER.log(Level.SEVERE, "Number " + exampleNumber.toString() // + " should not be internationally diallable"); } } Assert.AreEqual(0, wrongTypeCases.Count); } // TODO: Update this to use connectsToEmergencyNumber or similar once that is // implemented. [TestMethod] public void TestEmergency() { ShortNumberUtil shortUtil = new ShortNumberUtil(phoneNumberUtil); int wrongTypeCounter = 0; foreach(var regionCode in phoneNumberUtil.GetSupportedRegions()) { PhoneNumberDesc desc = phoneNumberUtil.GetMetadataForRegion(regionCode).Emergency; if (desc.HasExampleNumber) { String exampleNumber = desc.ExampleNumber; if (!new PhoneRegex(desc.PossibleNumberPattern).MatchAll(exampleNumber).Success || !shortUtil.IsEmergencyNumber(exampleNumber, regionCode)) { wrongTypeCounter++; // LOGGER.log(Level.SEVERE, "Emergency example number test failed for " + regionCode); } } } Assert.AreEqual(0, wrongTypeCounter); } [TestMethod] public void TestGlobalNetworkNumbers() { foreach(var callingCode in phoneNumberUtil.GetSupportedGlobalNetworkCallingCodes()) { PhoneNumber exampleNumber = phoneNumberUtil.GetExampleNumberForNonGeoEntity(callingCode); Assert.IsNotNull(exampleNumber, "No example phone number for calling code " + callingCode); if (!phoneNumberUtil.IsValidNumber(exampleNumber)) { invalidCases.Add(exampleNumber); // LOGGER.log(Level.SEVERE, "Failed validation for " + exampleNumber.toString()); } } } [TestMethod] public void TestEveryRegionHasAnExampleNumber() { foreach (var regionCode in phoneNumberUtil.GetSupportedRegions()) { PhoneNumber exampleNumber = phoneNumberUtil.GetExampleNumber(regionCode); Assert.IsNotNull(exampleNumber, "None found for region " + regionCode); } } } }
{ "content_hash": "e9f36115e2fe00778e9916bef71ef8f7", "timestamp": "", "source": "github", "line_count": 246, "max_line_length": 132, "avg_line_length": 39.947154471544714, "alnum_prop": 0.5826803704080594, "repo_name": "jagui/libphonenumber-csharp", "id": "9b913523675c739575ceca7e6954d53989f0e982", "size": "10423", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "csharp/PhoneNumbers.Test/TestExampleNumbers.cs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C#", "bytes": "1990729" }, { "name": "Java", "bytes": "4767" }, { "name": "Python", "bytes": "9669" }, { "name": "Shell", "bytes": "422" } ], "symlink_target": "" }
package miscellaneous.math.statistics.lc287_findtheduplicatenumber; /** * Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), * prove that at least one duplicate number must exist. Assume that there is only one duplicate number, * find the duplicate one. * Note: * You must not modify the array (assume the array is read only). * You must use only constant, O(1) extra space. * Your runtime complexity should be less than O(n2). * There is only one duplicate number in the array, but it could be repeated more than once. */ public class Solution { // Nice use of binary search in O(NlogN) time. public int findDuplicate(int[] nums) { int l = 1, r = nums.length; /* search in range number [1,n] not actual nums array */ while (l < r) { int m = l + (r - l) / 2; int cnt = 0; for (int n : nums) { if (n <= m) cnt++; } if (cnt <= m) l = m + 1;/* cnt<=m: all distinct or miss some in [1,m] caused by duplicates in [m,n] */ else r = m; /* cnt>m: duplicates in [1,m] */ } return l; } public int findDuplicate3(int[] nums) { int slow = 0, fast = 0; do { slow = nums[slow]; fast = nums[nums[fast]]; } while (slow != fast); int slow2 = 0; while (slow != slow2) { slow = nums[slow]; slow2 = nums[slow2]; } return slow; } // eg.[1,3,4,2,2] // mid = 2, count = 3 -> high = mid-1 = 1 // mid = 1, count = 4 -> low = mid+1 = 2 public int findDuplicate1(int[] nums) { // Numbers in nums[N] are all in [1,N-1] int low = 1, high = nums.length - 1; // Note that low,mid,high have nothing with nums array // nums array only provides statistics info to locate that dup while (low <= high) { int mid = low + (high - low) / 2; int count = 0; for (int num : nums) { if (num <= mid) { count++; } } // #num <= mid should =mid if no dup. eg.[1,2,3,4,5], mid=3 // With dup=1, [1,1,2,3,4], count=3 > mid=2. means one smaller dup exists if (count > mid) { high = mid - 1; } else { low = mid + 1; } } return low; } }
{ "content_hash": "7019c5c73dd6b48b2b5af283c2f5c094", "timestamp": "", "source": "github", "line_count": 74, "max_line_length": 114, "avg_line_length": 33.45945945945946, "alnum_prop": 0.5012116316639742, "repo_name": "cdai/interview", "id": "2153d6f0c03a414ed61205d3f6baaf1ac7761405", "size": "2476", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "1-algorithm/13-leetcode/java/src/miscellaneous/math/statistics/lc287_findtheduplicatenumber/Solution.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "1322628" } ], "symlink_target": "" }
<md:EntityDescriptor xmlns:init="urn:oasis:names:tc:SAML:profiles:SSO:request-init" xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" entityID="https://shibboleth.highwire.org/entity/dupjnls"> <md:Extensions> <DigestMethod xmlns="urn:oasis:names:tc:SAML:metadata:algsupport" Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/> <DigestMethod xmlns="urn:oasis:names:tc:SAML:metadata:algsupport" Algorithm="http://www.w3.org/2001/04/xmldsig-more#sha384"/> <DigestMethod xmlns="urn:oasis:names:tc:SAML:metadata:algsupport" Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/> <DigestMethod xmlns="urn:oasis:names:tc:SAML:metadata:algsupport" Algorithm="http://www.w3.org/2001/04/xmldsig-more#sha224"/> <DigestMethod xmlns="urn:oasis:names:tc:SAML:metadata:algsupport" Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <SigningMethod xmlns="urn:oasis:names:tc:SAML:metadata:algsupport" Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"/> <SigningMethod xmlns="urn:oasis:names:tc:SAML:metadata:algsupport" Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha384"/> <SigningMethod xmlns="urn:oasis:names:tc:SAML:metadata:algsupport" Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/> <SigningMethod xmlns="urn:oasis:names:tc:SAML:metadata:algsupport" Algorithm="http://www.w3.org/2009/xmldsig11#dsa-sha256"/> <SigningMethod xmlns="urn:oasis:names:tc:SAML:metadata:algsupport" Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> <SigningMethod xmlns="urn:oasis:names:tc:SAML:metadata:algsupport" Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/> <mdrpi:RegistrationInfo registrationAuthority="http://ukfederation.org.uk" registrationInstant="2010-07-21T13:03:00Z"> <mdrpi:RegistrationPolicy xml:lang="en">http://ukfederation.org.uk/doc/mdrps-20130902</mdrpi:RegistrationPolicy> </mdrpi:RegistrationInfo> </md:Extensions> <md:SPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:1.1:protocol urn:oasis:names:tc:SAML:1.0:protocol urn:oasis:names:tc:SAML:2.0:protocol"> <md:Extensions> <init:RequestInitiator Binding="urn:oasis:names:tc:SAML:profiles:SSO:request-init" Location="https://shibboleth.highwire.org/applications/dupjnls/Shibboleth.sso/Login"/> </md:Extensions> <md:KeyDescriptor> <ds:KeyInfo> <ds:X509Data> <ds:X509Certificate> MIIEfDCCA2SgAwIBAgIJAMTRVlqTJ11lMA0GCSqGSIb3DQEBBQUAMIG+MQswCQYD VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEVMBMGA1UEBxMMUmVkd29vZCBD aXR5MRcwFQYDVQQKEw5IaWdoV2lyZSBQcmVzczERMA8GA1UECxMISGlnaFdpcmUx IDAeBgNVBAMTF3NoaWJib2xldGguaGlnaHdpcmUub3JnMTUwMwYJKoZIhvcNAQkB FiZzaGliYm9sZXRoLWFkbWluQGhpZ2h3aXJlLnN0YW5mb3JkLmVkdTAeFw0xNDA0 MTUxOTQzMDNaFw0yNDA0MTIxOTQzMDNaMIG+MQswCQYDVQQGEwJVUzETMBEGA1UE CBMKQ2FsaWZvcm5pYTEVMBMGA1UEBxMMUmVkd29vZCBDaXR5MRcwFQYDVQQKEw5I aWdoV2lyZSBQcmVzczERMA8GA1UECxMISGlnaFdpcmUxIDAeBgNVBAMTF3NoaWJi b2xldGguaGlnaHdpcmUub3JnMTUwMwYJKoZIhvcNAQkBFiZzaGliYm9sZXRoLWFk bWluQGhpZ2h3aXJlLnN0YW5mb3JkLmVkdTCCASIwDQYJKoZIhvcNAQEBBQADggEP ADCCAQoCggEBALPB99M9iWjentrddY/rLgzKn1X0j4Ao191iyiowBBt/r/pmn2oz frbONkkTVBB++mNtiufK6jyKnBM5mffPOkXHRo+K1DQec7TvpQ1PmLv/BpBgPrr9 ldViOSUnYJuB0IgJVV8oylgeH2Ay0XRkNPlBUjBA2fUPWVpXcvFe+aD2tLdVR9uO XvfTMxAEGqzxTU+OxO6pW2sBXNBmGvZQ0TRyovQh5+pTURY/lm0V/iWvRmRe51WE O/nhYyvRuMmNj8EL38o10S9TXuCkVzY00hK5cclaFge7gz/tfjmadVVcbe8xCVxc nb1lhmt1kH2XtKvU5hyZMTO+VUfXQvqcQyECAwEAAaN7MHkwCQYDVR0TBAIwADAs BglghkgBhvhCAQ0EHxYdT3BlblNTTCBHZW5lcmF0ZWQgQ2VydGlmaWNhdGUwHQYD VR0OBBYEFJpUZq/XaW9/bPvjffkxX0IDvuPiMB8GA1UdIwQYMBaAFJpUZq/XaW9/ bPvjffkxX0IDvuPiMA0GCSqGSIb3DQEBBQUAA4IBAQCq/FF56ZB1cL3KbniEJP99 U9wTD6KpOrWxvqNbUSV1cefLf5cYHonOjy6oAJSSBSNuP7U5Q//0tXtkvlJoqGUY vqngmeg9wLZ/Fla3tXcDdTj0n1F+NZOx9vBDacIk0Ua4aHXDA4bdytzkV1QyZDRq Q8vq7RoQ8E5IF7Cll+kt2dZXQk8o6Qp3w2ppoMRtYdKOQassqn+V1MYcMPgdxZkS DrcgzktR/JMb5OmPrp4mSy1OWDGrFvUIigsLBPZV9tw1f7y42lnbmQas3RCS30yr CtUPT/PQDkCdBRViGmmMkYwjdaOTiHOJveWtrVXu8vLvO36pqFF4Kft0pgqlfvAE </ds:X509Certificate> </ds:X509Data> </ds:KeyInfo> <md:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/> <md:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes192-cbc"/> <md:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"/> <md:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/> <md:EncryptionMethod Algorithm="http://www.w3.org/2009/xmlenc11#rsa-oaep"/> <md:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"/> </md:KeyDescriptor> <md:ArtifactResolutionService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://shibboleth.highwire.org/applications/dupjnls/Shibboleth.sso/Artifact/SOAP" index="1"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:1.0:profiles:artifact-01" Location="https://shibboleth.highwire.org/applications/dupjnls/Shibboleth.sso/SAML/Artifact" index="6"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:1.0:profiles:browser-post" Location="https://shibboleth.highwire.org/applications/dupjnls/Shibboleth.sso/SAML/POST" index="7"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Location="https://shibboleth.highwire.org/applications/dupjnls/Shibboleth.sso/SAML2/Artifact" index="8"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://shibboleth.highwire.org/applications/dupjnls/Shibboleth.sso/SAML2/POST" index="9"/> </md:SPSSODescriptor> <md:Organization> <md:OrganizationName xml:lang="en">HighWire Press, Inc.</md:OrganizationName> <md:OrganizationDisplayName xml:lang="en">Stanford University: Duke University Press Journals</md:OrganizationDisplayName> <md:OrganizationURL xml:lang="en">http://dukejournals.org/</md:OrganizationURL> </md:Organization> <md:ContactPerson contactType="support"> <md:GivenName>Olga</md:GivenName> <md:SurName>Biasotti</md:SurName> <md:EmailAddress>mailto:[email protected]</md:EmailAddress> </md:ContactPerson> <md:ContactPerson contactType="technical"> <md:GivenName>Olga</md:GivenName> <md:SurName>Biasotti</md:SurName> <md:EmailAddress>mailto:[email protected]</md:EmailAddress> </md:ContactPerson> </md:EntityDescriptor>
{ "content_hash": "4e68bc0d67be20f6bc4e2ee73ff0e594", "timestamp": "", "source": "github", "line_count": 81, "max_line_length": 287, "avg_line_length": 82.77777777777777, "alnum_prop": 0.7718120805369127, "repo_name": "OpenConext/OpenConext-teams", "id": "7a7f2f56129c36ecbe222f037179c94a78563218", "size": "6705", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/resources/stoker/ea45f11571e9b079ac04ca96110ec3fb.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "17097" }, { "name": "FreeMarker", "bytes": "16892" }, { "name": "HTML", "bytes": "7331" }, { "name": "Java", "bytes": "444334" }, { "name": "JavaScript", "bytes": "92080" } ], "symlink_target": "" }
<?php /* @Framework/Form/range_widget.html.php */ class __TwigTemplate_814007c61251fe30f6db894ad18e3d5c33d8ba4847763af53dd688901c482e7c extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<?php echo \$view['form']->block(\$form, 'form_widget_simple', array('type' => isset(\$type) ? \$type : 'range')); "; } public function getTemplateName() { return "@Framework/Form/range_widget.html.php"; } public function getDebugInfo() { return array ( 19 => 1,); } } /* <?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'range'));*/ /* */
{ "content_hash": "fbaee4ae82c26fe681af0d7544c0d2d2", "timestamp": "", "source": "github", "line_count": 34, "max_line_length": 128, "avg_line_length": 26.147058823529413, "alnum_prop": 0.5916760404949382, "repo_name": "mwveliz/sitio", "id": "e74edb0802fedd6cec05b479f8c38aee7c8eab67", "size": "889", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/prod/cache/twig/7c/7c958e29989dd7d5b287e8cb25e942811e5e4c4d44f1230b847d12f7ad3bad64.php", "mode": "33261", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "3606" }, { "name": "CSS", "bytes": "4432773" }, { "name": "CoffeeScript", "bytes": "105711" }, { "name": "HTML", "bytes": "31110210" }, { "name": "JavaScript", "bytes": "19964636" }, { "name": "PHP", "bytes": "277220" }, { "name": "Shell", "bytes": "444" } ], "symlink_target": "" }
package com.lilla.homestruction.managers; import java.io.IOException; import okhttp3.Interceptor; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory; /** * Created by lilla on 25/09/16. */ /**Retrofit manager, which manages the authentication**/ public class RetrofitManager { private static final String BASE_URL = "https://homestruction.org/"; private static OkHttpClient.Builder httpClient = new OkHttpClient.Builder(); private static Retrofit.Builder builder = new Retrofit.Builder() .baseUrl(BASE_URL) .addConverterFactory(GsonConverterFactory.create()); public static <S> S createService(Class<S> serviceClass) { return createService(serviceClass, null); } /**It creates a new service, which returns a token, that can be used for acquiring further data**/ public static <S> S createService(Class<S> serviceClass, final String authToken) { if (authToken != null) { httpClient.addInterceptor(new Interceptor() { @Override public Response intercept(Interceptor.Chain chain) throws IOException { Request original = chain.request(); /**Request customization: add request headers**/ Request.Builder requestBuilder = original.newBuilder() .header("Authorization", authToken) .method(original.method(), original.body()); Request request = requestBuilder.build(); return chain.proceed(request); } }); } OkHttpClient client = httpClient.build(); Retrofit retrofit = builder.client(client).build(); return retrofit.create(serviceClass); } }
{ "content_hash": "e5eed2c17f3eea6c3e4b70dfb9b57079", "timestamp": "", "source": "github", "line_count": 55, "max_line_length": 102, "avg_line_length": 34.85454545454545, "alnum_prop": 0.6332811684924361, "repo_name": "BornToDebug/homeStruction", "id": "ec63eb4b190ac4bd04813ff5ce6666f04ca9af6c", "size": "1917", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "android/HomeStruction/app/src/main/java/com/lilla/homestruction/managers/RetrofitManager.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Arduino", "bytes": "208528" }, { "name": "C++", "bytes": "9401" }, { "name": "CSS", "bytes": "409567" }, { "name": "HTML", "bytes": "159997" }, { "name": "Java", "bytes": "87873" }, { "name": "JavaScript", "bytes": "429867" }, { "name": "Makefile", "bytes": "14554" }, { "name": "Nginx", "bytes": "2787" }, { "name": "Python", "bytes": "77670" }, { "name": "Ruby", "bytes": "752" }, { "name": "Shell", "bytes": "66830" } ], "symlink_target": "" }
$(function(){ $(document).foundation(); });
{ "content_hash": "9a6e41bc63f2275545f9e41aedb8f135", "timestamp": "", "source": "github", "line_count": 1, "max_line_length": 43, "avg_line_length": 44, "alnum_prop": 0.5909090909090909, "repo_name": "collaborations/capstone", "id": "5a8593849880605c22f05cead272fb8299419a59", "size": "756", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/assets/javascripts/application.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "69512" }, { "name": "CoffeeScript", "bytes": "211" }, { "name": "HTML", "bytes": "39935" }, { "name": "JavaScript", "bytes": "16481" }, { "name": "Ruby", "bytes": "105572" } ], "symlink_target": "" }
<?php /** * TActiveFileUpload.php * * @author Bradley Booms <[email protected]> * @author Christophe Boulain <[email protected]> * @author Gabor Berczi <[email protected]> (issue 349 remote vulnerability fix) * @version $Id$ * @package System.Web.UI.ActiveControls */ /** * Load TActiveControlAdapter and TFileUpload. */ Prado::using('System.Web.UI.ActiveControls.TActiveControlAdapter'); Prado::using('System.Web.UI.WebControls.TFileUpload'); /** * TActiveFileUpload * * TActiveFileUpload displays a file upload field on a page. Upon postback, * the text entered into the field will be treated as the name of the file * that will be uploaded to the server. The property {@link getHasFile HasFile} * indicates whether the file upload is successful. If successful, the file * may be obtained by calling {@link saveAs} to save it at a specified place. * You can use {@link getFileName FileName}, {@link getFileType FileType}, * {@link getFileSize FileSize} to get the original client-side file name, * the file mime type, and the file size information. If the upload is not * successful, {@link getErrorCode ErrorCode} contains the error code * describing the cause of failure. * * TActiveFileUpload raises {@link onFileUpload OnFileUpload} event if a file is uploaded * (whether it succeeds or not). * * TActiveFileUpload actually does a postback in a hidden IFrame, and then does a callback. * This callback then raises the {@link onFileUpload OnFileUpload} event. After the postback * a status icon is displayed; either a green checkmark if the upload is successful, * or a red x if there was an error. * * @author Bradley Booms <[email protected]> * @author Christophe Boulain <[email protected]> * @version $Id$ * @package System.Web.UI.ActiveControls */ class TActiveFileUpload extends TFileUpload implements IActiveControl, ICallbackEventHandler, INamingContainer { const SCRIPT_PATH = 'prado/activefileupload'; /** * @var THiddenField a flag to tell which component is doing the callback. */ private $_flag; /** * @var TImage that spins to show that the file is being uploaded. */ private $_busy; /** * @var TImage that shows a green check mark for completed upload. */ private $_success; /** * @var TImage that shows a red X for incomplete upload. */ private $_error; /** * @var TInlineFrame used to submit the data in an "asynchronous" fashion. */ private $_target; /** * Creates a new callback control, sets the adapter to * TActiveControlAdapter. If you override this class, be sure to set the * adapter appropriately by, for example, by calling this constructor. */ public function __construct(){ parent::__construct(); $this->setAdapter(new TActiveControlAdapter($this)); } /** * @param string asset file in the self::SCRIPT_PATH directory. * @return string asset file url. */ protected function getAssetUrl($file='') { $base = $this->getPage()->getClientScript()->getPradoScriptAssetUrl(); return $base.'/'.self::SCRIPT_PATH.'/'.$file; } /** * This method is invoked when a file is uploaded. * If you override this method, be sure to call the parent implementation to ensure * the invocation of the attached event handlers. * @param TEventParameter event parameter to be passed to the event handlers */ public function onFileUpload($param) { if ($this->_flag->getValue() && $this->getPage()->getIsPostBack() && $param == $this->_target->getUniqueID()){ // save the file so that it will persist past the end of this return. $localName = str_replace('\\', '/', tempnam(Prado::getPathOfNamespace($this->getTempPath()),'')); parent::saveAs($localName); $filename=addslashes($this->getFileName()); $params = new TActiveFileUploadCallbackParams; $params->localName = $localName; $params->fileName = $filename; $params->fileSize = $this->getFileSize(); $params->fileType = $this->getFileType(); $params->errorCode = $this->getErrorCode(); // return some javascript to display a completion status. echo <<<EOS <script language="Javascript"> Options = new Object(); Options.clientID = '{$this->getClientID()}'; Options.targetID = '{$this->_target->getUniqueID()}'; Options.fileName = '{$params->fileName}'; Options.fileSize = '{$params->fileSize}'; Options.fileType = '{$params->fileType}'; Options.errorCode = '{$params->errorCode}'; Options.callbackToken = '{$this->pushParamsAndGetToken($params)}'; parent.Prado.WebUI.TActiveFileUpload.onFileUpload(Options); </script> EOS; exit(); } } /** * @return string the path where the uploaded file will be stored temporarily, in namespace format * default "Application.runtime.*" */ public function getTempPath(){ return $this->getViewState('TempPath', 'Application.runtime.*'); } /** * @param string the path where the uploaded file will be stored temporarily in namespace format * default "Application.runtime.*" */ public function setTempPath($value){ $this->setViewState('TempPath',$value,'Application.runtime.*'); } /** * @return boolean a value indicating whether an automatic callback to the server will occur whenever the user modifies the text in the TTextBox control and then tabs out of the component. Defaults to true. * Note: When set to false, you will need to trigger the callback yourself. */ public function getAutoPostBack(){ return $this->getViewState('AutoPostBack', true); } /** * @param boolean a value indicating whether an automatic callback to the server will occur whenever the user modifies the text in the TTextBox control and then tabs out of the component. Defaults to true. * Note: When set to false, you will need to trigger the callback yourself. */ public function setAutoPostBack($value){ $this->setViewState('AutoPostBack',TPropertyValue::ensureBoolean($value),true); } /** * @return string A chuck of javascript that will need to be called if {{@link getAutoPostBack AutoPostBack} is set to false} */ public function getCallbackJavascript(){ return "Prado.WebUI.TActiveFileUpload.fileChanged(\"{$this->getClientID()}\")"; } /** * @throws TInvalidDataValueException if the {@link getTempPath TempPath} is not writable. */ public function onInit($sender){ parent::onInit($sender); if (!Prado::getApplication()->getCache()) if (!Prado::getApplication()->getSecurityManager()) throw new Exception('TActiveFileUpload needs either an application level cache or a security manager to work securely'); if (!is_writable(Prado::getPathOfNamespace($this->getTempPath()))){ throw new TInvalidDataValueException("activefileupload_temppath_invalid", $this->getTempPath()); } } /** * Raises <b>OnFileUpload</b> event. * * This method is required by {@link ICallbackEventHandler} interface. * This method is mainly used by framework and control developers. * @param TCallbackEventParameter the event parameter */ public function raiseCallbackEvent($param){ $cp = $param->getCallbackParameter(); if ($key = $cp->targetID == $this->_target->getUniqueID()){ $params = $this->popParamsByToken($cp->callbackToken); $_FILES[$key]['name'] = $params->fileName; $_FILES[$key]['size'] = intval($params->fileSize); $_FILES[$key]['type'] = $params->fileType; $_FILES[$key]['error'] = intval($params->errorCode); $_FILES[$key]['tmp_name'] = $params->localName; $this->loadPostData($key, null); $this->raiseEvent('OnFileUpload', $this, $param); } } /** * Raises postdata changed event. * This method calls {@link onFileUpload} method * This method is primarily used by framework developers. */ public function raisePostDataChangedEvent() { $this->onFileUpload($this->getPage()->getRequest()->itemAt('TActiveFileUpload_TargetId')); } protected function pushParamsAndGetToken(TActiveFileUploadCallbackParams $params) { if ($cache = Prado::getApplication()->getCache()) { // this is the most secure method, file info can't be forged from client side, no matter what $token = md5('TActiveFileUpload::Params::'.$this->ClientID.'::'+rand(1000*1000,9999*1000)); $cache->set($token, serialize($params), 5*60); // expire in 5 minutes - the callback should arrive back in seconds, actually } else if ($mgr = Prado::getApplication()->getSecurityManager()) { // this is a less secure method, file info can be still forged from client side, but only if attacker knows the secret application key $token = urlencode(base64_encode($mgr->encrypt(serialize($params)))); } else throw new Exception('TActiveFileUpload needs either an application level cache or a security manager to work securely'); return $token; } protected function popParamsByToken($token) { if ($cache = Prado::getApplication()->getCache()) { $v = $cache->get($token); assert($v!=''); $cache->delete($token); // remove it from cache so it can't be used again and won't take up space either $params = unserialize($v); } else if ($mgr = Prado::getApplication()->getSecurityManager()) { $v = $mgr->decrypt(base64_decode(urldecode($token))); $params = unserialize($v); } else throw new Exception('TActiveFileUpload needs either an application level cache or a security manager to work securely'); assert($params instanceof TActiveFileUploadCallbackParams); return $params; } /** * Publish the javascript */ public function onPreRender($param) { parent::onPreRender($param); if(!$this->getPage()->getIsPostBack() && isset($_GET['TActiveFileUpload_InputId']) && isset($_GET['TActiveFileUpload_TargetId']) && $_GET['TActiveFileUpload_InputId'] == $this->getClientID()) { // tricky workaround to intercept "uploaded file too big" error: real uploads happens in onFileUpload instead $this->_errorCode = UPLOAD_ERR_FORM_SIZE; $localName = str_replace('\\', '/', tempnam(Prado::getPathOfNamespace($this->getTempPath()),'')); $fileName = addslashes($this->getFileName()); $params = new TActiveFileUploadCallbackParams; $params->localName = $localName; $params->fileName = $fileName; $params->fileSize = $this->getFileSize(); $params->fileType = $this->getFileType(); $params->errorCode = $this->getErrorCode(); echo <<<EOS <script language="Javascript"> Options = new Object(); Options.clientID = '{$_GET['TActiveFileUpload_InputId']}'; Options.targetID = '{$_GET['TActiveFileUpload_TargetId']}'; Options.fileName = '{$params->fileName}'; Options.fileSize = '{$params->fileSize}'; Options.fileType = '{$params->fileType}'; Options.errorCode = '{$params->errorCode}'; Options.callbackToken = '{$this->pushParamsAndGetToken($params)}'; parent.Prado.WebUI.TactiveFileUpload.onFileUpload(Options); </script> EOS; } } public function createChildControls(){ $this->_flag = Prado::createComponent('THiddenField'); $this->_flag->setID('Flag'); $this->getControls()->add($this->_flag); $this->_busy = Prado::createComponent('TImage'); $this->_busy->setID('Busy'); $this->_busy->setImageUrl($this->getAssetUrl('ActiveFileUploadIndicator.gif')); $this->_busy->setStyle("display:none"); $this->getControls()->add($this->_busy); $this->_success = Prado::createComponent('TImage'); $this->_success->setID('Success'); $this->_success->setImageUrl($this->getAssetUrl('ActiveFileUploadComplete.png')); $this->_success->setStyle("display:none"); $this->getControls()->add($this->_success); $this->_error = Prado::createComponent('TImage'); $this->_error->setID('Error'); $this->_error->setImageUrl($this->getAssetUrl('ActiveFileUploadError.png')); $this->_error->setStyle("display:none"); $this->getControls()->add($this->_error); $this->_target = Prado::createComponent('TInlineFrame'); $this->_target->setID('Target'); $this->_target->setFrameUrl($this->getAssetUrl('ActiveFileUploadBlank.html')); $this->_target->setStyle("width:0px; height:0px;"); $this->_target->setShowBorder(false); $this->getControls()->add($this->_target); } /** * Removes localfile on ending of the callback. */ public function onUnload($param){ if ($this->getPage()->getIsCallback() && $this->getHasFile() && file_exists($this->getLocalName())){ unlink($this->getLocalName()); } parent::onUnload($param); } /** * @return TBaseActiveCallbackControl standard callback control options. */ public function getActiveControl(){ return $this->getAdapter()->getBaseActiveControl(); } /** * @return TCallbackClientSide client side request options. */ public function getClientSide() { return $this->getAdapter()->getBaseActiveControl()->getClientSide(); } /** * Adds ID attribute, and renders the javascript for active component. * @param THtmlWriter the writer used for the rendering purpose */ public function addAttributesToRender($writer){ parent::addAttributesToRender($writer); $writer->addAttribute('id',$this->getClientID()); $this->getPage()->getClientScript()->registerPradoScript('activefileupload'); $this->getActiveControl()->registerCallbackClientScript($this->getClientClassName(),$this->getClientOptions()); } /** * @return string corresponding javascript class name for this control. */ protected function getClientClassName(){ return 'Prado.WebUI.TActiveFileUpload'; } /** * Gets the client side options for this control. * @return array ( inputID => input client ID, * flagID => flag client ID, * targetName => target unique ID, * formID => form client ID, * indicatorID => upload indicator client ID, * completeID => complete client ID, * errorID => error client ID) */ protected function getClientOptions(){ $options['ID'] = $this->getClientID(); $options['EventTarget'] = $this->getUniqueID(); $options['inputID'] = $this->getClientID(); $options['flagID'] = $this->_flag->getClientID(); $options['targetID'] = $this->_target->getUniqueID(); $options['formID'] = $this->getPage()->getForm()->getClientID(); $options['indicatorID'] = $this->_busy->getClientID(); $options['completeID'] = $this->_success->getClientID(); $options['errorID'] = $this->_error->getClientID(); $options['autoPostBack'] = $this->getAutoPostBack(); return $options; } /** * Saves the uploaded file. * @param string the file name used to save the uploaded file * @param boolean whether to delete the temporary file after saving. * If true, you will not be able to save the uploaded file again. * @return boolean true if the file saving is successful */ public function saveAs($fileName,$deleteTempFile=true){ if (($this->getErrorCode()===UPLOAD_ERR_OK) && (file_exists($this->getLocalName()))){ if ($deleteTempFile) return rename($this->getLocalName(),$fileName); else return copy($this->getLocalName(),$fileName); } else return false; } /** * @return TImage the image displayed when an upload * completes successfully. */ public function getSuccessImage(){ $this->ensureChildControls(); return $this->_success; } /** * @return TImage the image displayed when an upload * does not complete successfully. */ public function getErrorImage(){ $this->ensureChildControls(); return $this->_error; } /** * @return TImage the image displayed when an upload * is in progress. */ public function getBusyImage(){ $this->ensureChildControls(); return $this->_busy; } } /** * TActiveFileUploadCallbackParams is an internal class used by {@link TActiveFileUpload}. * * @author Bradley Booms <[email protected]> * @author Christophe Boulain <[email protected]> * @version $Id$ * @package System.Web.UI.ActiveControls */ class TActiveFileUploadCallbackParams { public $localName; public $fileName; public $fileSize; public $fileType; public $errorCode; }
{ "content_hash": "834c2b2ff1d6cfa850eac8f82d3cec18", "timestamp": "", "source": "github", "line_count": 467, "max_line_length": 207, "avg_line_length": 34.34261241970022, "alnum_prop": 0.6964708816560669, "repo_name": "tel8618217223380/prado3", "id": "6c6d4bd162208f0a62e80d24bdb362dffe430e85", "size": "16038", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "framework/Web/UI/ActiveControls/TActiveFileUpload.php", "mode": "33261", "license": "bsd-3-clause", "language": [ { "name": "ApacheConf", "bytes": "645" }, { "name": "Batchfile", "bytes": "7687" }, { "name": "CSS", "bytes": "253063" }, { "name": "HTML", "bytes": "383134" }, { "name": "JavaScript", "bytes": "947078" }, { "name": "PHP", "bytes": "9084496" }, { "name": "Shell", "bytes": "4520" }, { "name": "Smarty", "bytes": "875025" }, { "name": "TeX", "bytes": "13304" }, { "name": "XSLT", "bytes": "184085" } ], "symlink_target": "" }
/** * Created by HOFFM59 on 10.05.2017. */ import {ITokenizer} from './interfaces'; import {TokenizerType} from './types'; import {MusicXml} from '../../common/model'; export class MusicXmlTokenizer implements ITokenizer<Promise<MusicXml.MusicXml>> { parse(input: any): Promise<MusicXml.MusicXml> { if (typeof input === 'string') { // file should be fetched from url if (input.endsWith('.xml')) { // return this._http.get(`assets/musicxml/${input}`) // .map((resp: Response) => resp.text()) // .toPromise() // .then(content => this.parse(content)); return this._fetch(`assets/musicxml/${input}`) .then(content => this.parse(content)); } // file content => load it if (input.startsWith('<?xml')) { return Promise.resolve(new MusicXml.MusicXml(input)); } } } getType(): TokenizerType { return 'musicXML'; } private _fetch(url: string): Promise<string> { let xhttp: XMLHttpRequest; if (XMLHttpRequest) { xhttp = new XMLHttpRequest(); // } else if (ActiveXObject === undefined) { // // for IE<7 // xhttp = new ActiveXObject('Microsoft.XMLHTTP'); } else { return Promise.reject(new Error('XMLHttp not supported.')); } return new Promise((resolve: (value: string) => void, reject: (error: any) => void) => { xhttp.onreadystatechange = () => { if (xhttp.readyState === XMLHttpRequest.DONE) { if (xhttp.status === 200) { resolve(xhttp.responseText); } else if (xhttp.status === 0 && xhttp.responseText) { resolve(xhttp.responseText); } else { // reject(new Error('AJAX error: '' + xhttp.statusText + ''')); reject(new Error('Could not retrieve requested URL')); } } }; xhttp.overrideMimeType('text/plain; charset=x-user-defined'); xhttp.open('GET', url, true); xhttp.send(); }); } }
{ "content_hash": "f23defaeec3e1e873d9b2125e8d82ba3", "timestamp": "", "source": "github", "line_count": 63, "max_line_length": 92, "avg_line_length": 31.650793650793652, "alnum_prop": 0.5732196589769308, "repo_name": "bohoffi/ngx-score", "id": "b07fc381574331a61218feb3dde7789c7dac60f8", "size": "1994", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/processing/tokenizer/tokenizer-musicxml.ts", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "19722" }, { "name": "TypeScript", "bytes": "49570" } ], "symlink_target": "" }
<?php /** * Created by PhpStorm. * User: p2 * Date: 7/16/14 * Time: 3:58 PM */ namespace Main\Service; use Main\Context\Context, Main\DB, Main\Exception\Service\ServiceException, Main\Helper\ResponseHelper, Main\Helper\UserHelper; class ContactCommentService extends BaseService { public function getCollection(){ return DB::getDB()->contacts_comments; } public function gets($options = array(), Context $ctx){ $default = array( "page"=> 1, "limit"=> 15 ); $options = array_merge($default, $options); $skip = ($default['page']-1)*$default['limit']; //$select = array("name", "detail", "feature", "price", "pictures"); $condition = array(); $cursor = $this->getCollection() ->find($condition) ->sort(array('_id'=> 1)) ->limit($default['limit']) ->skip($skip); $total = $this->getCollection()->count($condition); $length = $cursor->count(); $data = array(); foreach($cursor as $item){ $data[] = $item; } return array( 'length'=> $length, 'total'=> $total, 'data'=> $data, 'paging'=> array( 'page'=> $options['page'], 'limit'=> $options['limit'] ) ); } public function add($params, Context $ctx){ $now = new \MongoDate(); $user = UserHelper::getUserDetail(); // $user = $ctx->getUser(); // if(is_null($user)){ // throw new ServiceException(ResponseHelper::requireAuthorize()); // } $user_param = []; if($user !== null){ $user_param = [ "id"=> $user['id'], "display_name"=> $user['display_name'] ]; } $entity = array( "message"=> $params['message'], "created_at"=> $now, "user"=> $user_param ); $this->getCollection()->insert($entity); return $entity; } public function getCommentById ($id, Context $ctx) { if(!($id instanceof \MongoId)){ $id = new \MongoId($id); } $item = $this->getCollection()->findOne(array("_id"=> $id)); return $item; } public function deleteCommentById ($id, Context $ctx) { $this->getCollection()->remove(['_id'=> MongoHelper::mongoId($id)]); return ['success'=> true]; } }
{ "content_hash": "7c0613349328d9c30c856b5124bf6fcf", "timestamp": "", "source": "github", "line_count": 98, "max_line_length": 77, "avg_line_length": 25.918367346938776, "alnum_prop": 0.48661417322834644, "repo_name": "robocon/platwo-clinic", "id": "bb9c6a5a89b033a753e4df761023653168f6debc", "size": "2540", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "private/src/Main/Service/ContactCommentService.php", "mode": "33188", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "830" }, { "name": "HTML", "bytes": "403" }, { "name": "PHP", "bytes": "569130" } ], "symlink_target": "" }
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
{ "content_hash": "58b8254d0e900d2152f1dec1fd03597c", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 31, "avg_line_length": 9.692307692307692, "alnum_prop": 0.7063492063492064, "repo_name": "mdoering/backbone", "id": "3e68fe8db34fb73ae30204e43caa530a7301a84c", "size": "179", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Pteridophyta/Polypodiopsida/Polypodiales/Dennstaedtiaceae/Microlepia/Microlepia vitiensis/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
<?php namespace WellCommerce\Bundle\PageBundle\DataGrid; use WellCommerce\Bundle\CoreBundle\DataGrid\AbstractDataGrid; use WellCommerce\Component\DataGrid\Column\Column; use WellCommerce\Component\DataGrid\Column\ColumnCollection; use WellCommerce\Component\DataGrid\Column\Options\Appearance; use WellCommerce\Component\DataGrid\Column\Options\Filter; use WellCommerce\Component\DataGrid\Column\Options\Sorting; /** * Class PageDataGrid * * @author Adam Piotrowski <[email protected]> */ class PageDataGrid extends AbstractDataGrid { /** * {@inheritdoc} */ public function configureColumns(ColumnCollection $collection) { $collection->add(new Column([ 'id' => 'id', 'caption' => $this->trans('common.label.id'), 'sorting' => new Sorting([ 'default_order' => Sorting::SORT_DIR_DESC, ]), 'appearance' => new Appearance([ 'width' => 90, 'visible' => false, ]), 'filter' => new Filter([ 'type' => Filter::FILTER_BETWEEN, ]), ])); $collection->add(new Column([ 'id' => 'name', 'caption' => $this->trans('common.label.name'), ])); $collection->add(new Column([ 'id' => 'section', 'caption' => $this->trans('page.label.section'), ])); $collection->add(new Column([ 'id' => 'hierarchy', 'caption' => $this->trans('common.label.hierarchy'), 'appearance' => new Appearance([ 'width' => 90, ]), 'editable' => true, ])); $collection->add(new Column([ 'id' => 'publish', 'caption' => $this->trans('common.label.publish'), 'appearance' => new Appearance([ 'width' => 90, ]), 'selectable' => true, 'filter' => new Filter([ 'type' => Filter::FILTER_SELECT, 'options' => [ 0 => 'No', 1 => 'Yes', ], ]), ])); } }
{ "content_hash": "9b0807924ff0facb266a0a649dd09197", "timestamp": "", "source": "github", "line_count": 74, "max_line_length": 67, "avg_line_length": 30.85135135135135, "alnum_prop": 0.48007008322382827, "repo_name": "WellCommerce/PageBundle", "id": "8988e3f7aa7160835f0e5387214b47b70c9713b7", "size": "2570", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "DataGrid/PageDataGrid.php", "mode": "33261", "license": "mit", "language": [ { "name": "HTML", "bytes": "1470" }, { "name": "PHP", "bytes": "49403" } ], "symlink_target": "" }
<?php use DTS\eBaySDK\Trading\Enums\StoreHeaderStyleCodeType; class StoreHeaderStyleCodeTypeTest extends \PHPUnit_Framework_TestCase { private $obj; protected function setUp() { $this->obj = new StoreHeaderStyleCodeType(); } public function testCanBeCreated() { $this->assertInstanceOf('\DTS\eBaySDK\Trading\Enums\StoreHeaderStyleCodeType', $this->obj); } }
{ "content_hash": "9210693ff232317f347ae4183168a223", "timestamp": "", "source": "github", "line_count": 18, "max_line_length": 99, "avg_line_length": 22.555555555555557, "alnum_prop": 0.7019704433497537, "repo_name": "spoilie/ebay-sdk-trading", "id": "8d53742aec560ba7ce1fb74dcd4ad58d57a2563e", "size": "406", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "test/DTS/eBaySDK/Trading/Enums/StoreHeaderStyleCodeTypeTest.php", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Makefile", "bytes": "1963" }, { "name": "PHP", "bytes": "3778863" } ], "symlink_target": "" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Master Desa</title> <script type="text/javascript" src="<?=base_url()?>resources/ext4/examples/shared/include-ext.js"></script> <style> .icon-print-preview { background-image:url(<?=base_url(); ?>assets/images/txt.png) !important; } .icon-print { background-image:url(<?=base_url(); ?>assets/images/print.png) !important; } .icon-reload { background-image:url(<?=base_url(); ?>assets/images/reload.png) !important; } .icon-print-pdf { background-image:url(<?=base_url(); ?>assets/images/pdf.png) !important; } .icon-print-xls { background-image:url(<?=base_url(); ?>assets/images/xls.png) !important; } .tabs { background-image:url(<?=base_url(); ?>assets/images/tabs.gif ) !important; } .icon-add { background-image:url(<?=base_url(); ?>assets/images/add.png) !important; } .icon-del { background-image:url(<?=base_url(); ?>assets/images/delete.png) !important; } </style> <script type="text/javascript"> Ext.Loader.setConfig({enabled: true}); Ext.Loader.setPath('Ext.ux', '<?=base_url()?>resources/ext4/examples/ux/'); Ext.require([ '*', 'Ext.grid.*', 'Ext.data.*', 'Ext.util.*', 'Ext.toolbar.Paging', 'Ext.ux.PreviewPlugin', 'Ext.ux.DataTip', 'Ext.ModelManager', 'Ext.ux.form.SearchField', 'Ext.menu.*', 'Ext.tip.QuickTipManager', 'Ext.container.ButtonGroup' ]); Ext.onReady(function(){ Ext.tip.QuickTipManager.init(); var required = '<span style="color:red;font-weight:bold" data-qtip="Required">*</span>'; Ext.define('mdl_dev', { extend: 'Ext.data.Model', fields: ['id_device', 'imei', 'tipe_handset'], idProperty: 'id_device' }); var store_dev = Ext.create('Ext.data.Store', { pageSize: 50, model: 'mdl_dev', remoteSort: true, proxy: { url: '<?=base_url()?>index.php/transaksi/Master/get_perangkat', simpleSortMode: true, type: 'ajax', reader: { type: 'json', root: 'data' } }, baseParams: { limit: 100, }, sorters: [{ property: 'id_device', direction: 'DESC' }] }); var APcellEditing_m_dev = Ext.create('Ext.grid.plugin.RowEditing', { //clicksToEdit: 1, clicksToMoveEditor: 1, autoCancel: false, listeners : { 'edit' : function() { var editedRecords = grid_m_dev.getView().getSelectionModel().getSelection(); Ext.Ajax.request({ url: '<?=base_url();?>index.php/transaksi/Master/simpan_master_data/tbl_device/id_device/imei', method: 'POST', params: { 'id_device': editedRecords[0].data.id_device, 'imei': editedRecords[0].data.imei, 'tipe_handset': editedRecords[0].data.tipe_handset, }, success: function(response) { var text = response.responseText; Ext.MessageBox.alert('Status', response.responseText, function(btn,txt){ if(btn == 'ok') { store_dev.load(); } } ); }, failure: function(response) { Ext.MessageBox.alert('Failure', 'Insert Data Error due to connection problem!'); } }); } } }); var grid_m_dev = Ext.create('Ext.grid.Panel', { store: store_dev, disableSelection: false, loadMask: true, selModel: Ext.create('Ext.selection.CheckboxModel', { mode: 'MULTI', multiSelect: true, keepExisting: true, }), viewConfig: { trackOver: true, stripeRows: true, }, plugins: [APcellEditing_m_dev], columns:[ {xtype: 'rownumberer', width: 35, sortable: false}, {text: "id_device",dataIndex: 'id_device',sortable: false,}, {text: "imei",dataIndex: 'imei',flex: 1,sortable: false, editor: {xtype: 'textfield',allowBlank:false}}, {text: "tipe_handset",dataIndex: 'tipe_handset',flex: 1,sortable: false, editor: {xtype: 'textfield',allowBlank:false}}, ], dockedItems: [ { xtype: 'toolbar', dock: 'top', items: [ { text:'Tambah Data', iconCls: 'icon-add', handler: function(){ var r = Ext.create('mdl_dev', { imei : '[IMEI]', }); store_dev.insert(0, r); APcellEditing_m_dev.startEdit(0, 0); } }, { text:'Delete', iconCls: 'icon-del', handler: function() { var records = grid_m_dev.getView().getSelectionModel().getSelection(), id=[]; Ext.Array.each(records, function(rec){ id.push(rec.get('id_device')); }); if(id != '') { Ext.MessageBox.confirm('Hapus', 'Apakah anda akan menghapus item ini (' + id.join(',') + ') ?', function(resbtn){ if(resbtn == 'yes') { Ext.Ajax.request({ url: '<?=base_url();?>index.php/transaksi/Master/master_delet/tbl_device/id_device', method: 'POST', params: { 'id' : id.join(','), }, success: function(response) { Ext.MessageBox.alert('OK', response.responseText, function() { store_dev.load(); }); }, failure: function(response) { Ext.MessageBox.alert('Failure', 'Insert Data Error due to connection problem, or duplicate entries!'); } }); } else { Ext.MessageBox.alert('Error', 'Silahkan pilih item yang mau dihapus!'); } }); } else { Ext.MessageBox.alert('Error', 'Silahkan pilih item yang mau dihapus!'); } } }, { text:'Refresh', iconCls: 'icon-reload', handler: function(){ store_dev.load(); } },'->', { xtype: 'searchfield', remoteFilter: true, store: store_dev, id: 'searchField', emptyText: 'IMEI / Nama Perangkat', width: '30%', }, ] }], bbar: Ext.create('Ext.PagingToolbar',{ store: store_dev, displayInfo: true, displayMsg: 'Displaying Data : {0} - {1} of {2}', emptyMsg: "No Display Data" }), listeners:{ beforerender:function(){ store_dev.load(); } } }); Ext.create('Ext.container.Viewport', { layout: 'fit', items: [grid_m_dev] }); }); </script> </head> <body> <div id="topic-grid"></div> </body> </html>
{ "content_hash": "efc90c788072cd7a9c474188b296485c", "timestamp": "", "source": "github", "line_count": 225, "max_line_length": 122, "avg_line_length": 27.764444444444443, "alnum_prop": 0.5815591483912278, "repo_name": "mangadul/rutilahu-web", "id": "ca8d61933bcf4c695ad06292741414985469c230", "size": "6247", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "modules/transaksi/views/master_perangkat.php", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ApacheConf", "bytes": "240" }, { "name": "C", "bytes": "7006" }, { "name": "CSS", "bytes": "17600006" }, { "name": "HTML", "bytes": "9768493" }, { "name": "JavaScript", "bytes": "103183640" }, { "name": "Makefile", "bytes": "2360" }, { "name": "PHP", "bytes": "2115017" }, { "name": "Python", "bytes": "188342" }, { "name": "Ruby", "bytes": "12378" }, { "name": "Shell", "bytes": "5238" } ], "symlink_target": "" }
include_recipe 'oeinfra::apt' include_recipe 'oe-ssl' include_recipe 'oe-tomcat'
{ "content_hash": "9903d2eaf054ece424ebb444b6d21d8f", "timestamp": "", "source": "github", "line_count": 4, "max_line_length": 29, "avg_line_length": 20.5, "alnum_prop": 0.7560975609756098, "repo_name": "OE-Backup/Infrastructure", "id": "39689f6d63f6f775afcd0e7b5ded525fba151a83", "size": "208", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "site-cookbooks/lp2-cs/recipes/default.rb", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "HTML", "bytes": "448729" }, { "name": "PLpgSQL", "bytes": "6680" }, { "name": "Perl", "bytes": "847" }, { "name": "Python", "bytes": "29542" }, { "name": "Ruby", "bytes": "1008461" }, { "name": "Shell", "bytes": "154958" } ], "symlink_target": "" }
<?xml version="1.0" encoding="UTF-8" ?> <class name="PlaneMesh" inherits="PrimitiveMesh" version="4.0"> <brief_description> Class representing a planar [PrimitiveMesh]. </brief_description> <description> Class representing a planar [PrimitiveMesh]. This flat mesh does not have a thickness. By default, this mesh is aligned on the X and Z axes; this default rotation isn't suited for use with billboarded materials. For billboarded materials, use [QuadMesh] instead. [b]Note:[/b] When using a large textured [PlaneMesh] (e.g. as a floor), you may stumble upon UV jittering issues depending on the camera angle. To solve this, increase [member subdivide_depth] and [member subdivide_width] until you no longer notice UV jittering. </description> <tutorials> </tutorials> <methods> </methods> <members> <member name="center_offset" type="Vector3" setter="set_center_offset" getter="get_center_offset" default="Vector3(0, 0, 0)"> Offset of the generated plane. Useful for particles. </member> <member name="size" type="Vector2" setter="set_size" getter="get_size" default="Vector2(2, 2)"> Size of the generated plane. </member> <member name="subdivide_depth" type="int" setter="set_subdivide_depth" getter="get_subdivide_depth" default="0"> Number of subdivision along the Z axis. </member> <member name="subdivide_width" type="int" setter="set_subdivide_width" getter="get_subdivide_width" default="0"> Number of subdivision along the X axis. </member> </members> <constants> </constants> </class>
{ "content_hash": "eec65f89076bb7c7afdadf3e88c705e3", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 264, "avg_line_length": 51.4, "alnum_prop": 0.7308690012970168, "repo_name": "honix/godot", "id": "56bf98772b76ebec45fefc4347070915de3b0fc3", "size": "1542", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "doc/classes/PlaneMesh.xml", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "50004" }, { "name": "C++", "bytes": "16813390" }, { "name": "HTML", "bytes": "10302" }, { "name": "Java", "bytes": "497061" }, { "name": "Makefile", "bytes": "451" }, { "name": "Objective-C", "bytes": "2644" }, { "name": "Objective-C++", "bytes": "145442" }, { "name": "Python", "bytes": "262658" }, { "name": "Shell", "bytes": "11105" } ], "symlink_target": "" }
package validators_test import ( "testing" "github.com/gobuffalo/validate" . "github.com/gobuffalo/validate/validators" "github.com/stretchr/testify/require" ) func Test_IntIsGreaterThan(t *testing.T) { r := require.New(t) v := IntIsGreaterThan{Name: "Number", Field: 2, Compared: 1} errors := validate.NewErrors() v.IsValid(errors) r.Equal(0, errors.Count()) v = IntIsGreaterThan{Name: "number", Field: 1, Compared: 2} v.IsValid(errors) r.Equal(1, errors.Count()) r.Equal(errors.Get("number"), []string{"1 is not greater than 2."}) }
{ "content_hash": "45124cc5e7450ed877a5a54bee69edfc", "timestamp": "", "source": "github", "line_count": 23, "max_line_length": 68, "avg_line_length": 24.043478260869566, "alnum_prop": 0.701627486437613, "repo_name": "leecalcote/gitlic-check", "id": "b25e3a090ba76854bd2668b6865f5d6bc830c89c", "size": "553", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "vendor/github.com/gobuffalo/validate/validators/int_is_greater_than_test.go", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Go", "bytes": "8235" } ], "symlink_target": "" }
title: 'Prana and compiled classes' url: 'https://custardbelly.com/blog/2008/05/10/prana-and-compiled-classes/' author: name: 'todd anderson' date: '2008-05-10' --- I have recently gotten into incorporating [Prana – the Inversion of Control framework of AS3](http://www.pranaframework.org/) created by [Christophe Herreman](http://www.herrodius.com/blog/)- into my projects. I gotta say, it’s beautiful piece of work and makes me rethink my approach to the architecture of applications again. I don’t want to go into IoC and dependency injection and how your applications can truly benefit by using the [Prana](http://www.pranaframework.org/) framework, as this post may get pretty long and these references are much better reading than my rambling: Christophe’s blog: [http://www.herrodius.com/blog/](http://www.herrodius.com/blog/) Martin Fowler’s [Inversion of Control Containers and the Dependency injection pattern](http://martinfowler.com/articles/injection.html) [the hollywood principle](http://en.wikipedia.org/wiki/Hollywood_Principle) What i did want to bring up is that i had a small problem with the workflow and how i develop. Which is my problem, of course ![:)](https://custardbelly.com/blog/wp-includes/images/smilies/icon_smile.gif) but nonetheless… One important thing to remember is that the context file is an external file that is loaded by the application at runtime. This means you will need to have all the possible classes your application _may_ use already compiled into the SWF in order for the objects to be instantiated and your application to work. If you are typing to interfaces, this could prove to be a bit of a problem. You could create a reference for each class that may be needed in another class that is known to be compiled into the SWF – as Christophe explains [in this post](http://www.herrodius.com/blog/65) – but that always seemed dirty to me. As is mentioned in the comments to that [post](http://www.herrodius.com/blog/65), you can also go about adding each class using the -includes compiler option. Adding all possible classes using the -includes option makes for an excellent case on when to use additional compiler configurations, and presents the option to really just change the application context file and the additional configuration file as the project sees fit, without having to open up the source and tack on or remove dummy references to classes. As an example, take for instance this application context file: < ?xml version="1.0" encoding="utf-8"?> <objects> <property file="app.properties" /> <!-- Handles direct invocation on client --> <object id="callbackHandler" class="com.example.responder.CallbackResponderImpl" /> <!-- Handles connection to Red5 application --> <object id="connectionDelegate" class="com.example.business.ConnectionDelegateImpl"> <property name="rtmpURI" value="${app.rtmpURI}" /> <property name="client"> <ref>callbackHandler</ref> </property> </object> </objects> .. for each possible implementation of **ConnectionDelegate** and **CallbackResponder** that i may decide to swap in and out as the project seems fit, i would either need to hold a reference to each implementation in some class sure or be compiled into the SWF, or i could store them in an additional config file that can be added using the -load-config option with an additional value: The **prana.config** file: <flex -config> <includes append="true"> <symbol>com.example.reponder.CallbackResponderImpl</symbol> <symbol>com.example.business.ConnectionDelegateImpl</symbol> </includes> </flex> … drop that in my source folder and add the compiler option: -load-config+=prana.config From there, i could change the context as i see fit, update the prana.config file to reflect my preferences and just recompile the application without having to go into the source and muck about. It’s a little more clean for me and allows me to happily go about using the [Prana](http://www.pranaframework.org/) framework. The best part is that [Prana is truthfully AS3 compliant](http://www.herrodius.com/blog/64)! Meaning you can use it in your Flex _AND_ AS3 projects, which cannot be said for some frameworks that claim to be AS3 and actually use class from the mx package… (looking at you [as3lib](http://code.google.com/p/as3lib/)). _A huge pet-peeve of mine._ *Last i checked, the source under version control doesn’t seem to reflect the current changes [Christophe](http://www.herrodius.com/blog/) has made, but they are included in the downloads. Posted in [AS3](https://custardbelly.com/blog/category/as3/), [Flash](https://custardbelly.com/blog/category/flash/), [Flex](https://custardbelly.com/blog/category/flex/), [Prana](https://custardbelly.com/blog/category/prana/).
{ "content_hash": "c219e0ac8cc7b9a141ee33510fa25eaa", "timestamp": "", "source": "github", "line_count": 58, "max_line_length": 622, "avg_line_length": 83.8103448275862, "alnum_prop": 0.7560172803949805, "repo_name": "bustardcelly/blog-to-markdown", "id": "65222301acfe0b1ca2a60a2c0396630556f3b79b", "size": "4889", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "blog-posts/2008/05/10/prana-and-compiled-classes/index.md", "mode": "33188", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "3991" }, { "name": "CSS", "bytes": "2240" }, { "name": "HTML", "bytes": "3877223" }, { "name": "JavaScript", "bytes": "12896" }, { "name": "Python", "bytes": "2069" }, { "name": "Shell", "bytes": "8028" } ], "symlink_target": "" }
package org.librairy.modeler.lda.cache; import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheLoader; import com.google.common.cache.LoadingCache; import org.librairy.boot.storage.dao.ParametersDao; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import javax.annotation.PostConstruct; import java.util.Optional; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; /** * @author Badenes Olmedo, Carlos <[email protected]> */ @Component public class IterationsCache { private static final Logger LOG = LoggerFactory.getLogger(IterationsCache.class); @Value("#{environment['LIBRAIRY_LDA_MAX_ITERATIONS']?:${librairy.lda.maxiterations}}") Integer value; @Autowired ParametersDao parametersDao; private LoadingCache<String, Integer> cache; @PostConstruct public void setup(){ this.cache = CacheBuilder.newBuilder() .maximumSize(1000) .expireAfterWrite(1, TimeUnit.MINUTES) .build( new CacheLoader<String, Integer>() { public Integer load(String domainUri) { Optional<String> parameter = parametersDao.get(domainUri, "lda.max.iterations"); return parameter.isPresent()? Integer.valueOf(parameter.get()) : value; } }); } public Integer getIterations(String domainUri) { try { return this.cache.get(domainUri); } catch (ExecutionException e) { LOG.error("error getting value from database, using default", e); return value; } } }
{ "content_hash": "fe07bcfbcd585fb078e2141dd7461b34", "timestamp": "", "source": "github", "line_count": 60, "max_line_length": 112, "avg_line_length": 31.816666666666666, "alnum_prop": 0.6563645887899424, "repo_name": "librairy/modeler-lda", "id": "033df3510f4f52af7a33a824374c08fc2fb72980", "size": "2033", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/org/librairy/modeler/lda/cache/IterationsCache.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "43507" }, { "name": "HTML", "bytes": "3351" }, { "name": "Java", "bytes": "471997" }, { "name": "JavaScript", "bytes": "313846" }, { "name": "Scala", "bytes": "31393" } ], "symlink_target": "" }
layout: post title: "New Website | Adapted from Gravity" date: 2016-06-14 19:45:31 +0530 categories: ["design", "science", "life"] author: "Tyler Hether" --- So... I'm switching my website over from google sites to github. Using the [*jekyll*](https://jekyllrb.com/){:target="_blank"} template [*Gravity*](https://github.com/hemangsk/Gravity){:target="_blank"}, my new site promises to have a touch of modern compared to the generic, boring google one. Bare with me while I transfer and add content.
{ "content_hash": "d574ebbf93b3ed6c8b811e440c1f0ba0", "timestamp": "", "source": "github", "line_count": 9, "max_line_length": 335, "avg_line_length": 56, "alnum_prop": 0.7202380952380952, "repo_name": "tylerhether/tylerhether.github.io", "id": "41d3741459da5aca501d8f2c7fddaec3ef10c9bb", "size": "508", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "_posts/2016-06-14-design-stories.markdown", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "24870" }, { "name": "HTML", "bytes": "92426" } ], "symlink_target": "" }
module Azure::ContainerService::Mgmt::V2020_06_01 module Models # # A reference to an Azure resource. # class ResourceReference include MsRestAzure # @return [String] The fully qualified Azure resource id. attr_accessor :id # # Mapper for ResourceReference class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ResourceReference', type: { name: 'Composite', class_name: 'ResourceReference', model_properties: { id: { client_side_validation: true, required: false, serialized_name: 'id', type: { name: 'String' } } } } } end end end end
{ "content_hash": "d8fc5cc7d0d6ea4fd4b0bfd0124cc2e0", "timestamp": "", "source": "github", "line_count": 41, "max_line_length": 63, "avg_line_length": 23.5609756097561, "alnum_prop": 0.5, "repo_name": "Azure/azure-sdk-for-ruby", "id": "1a0ac032a661dc5a56a4e398668ee2150241ec90", "size": "1130", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "management/azure_mgmt_container_service/lib/2020-06-01/generated/azure_mgmt_container_service/models/resource_reference.rb", "mode": "33188", "license": "mit", "language": [ { "name": "Ruby", "bytes": "345216400" }, { "name": "Shell", "bytes": "305" } ], "symlink_target": "" }
set -e export LC_ALL=C export DEBIAN_FRONTEND=noninteractive USER=$1 # motd rm -f /etc/motd # satan user useradd -d /home/satan -m -r -s /bin/bash -u 999 satan chmod 700 /home/satan cd /home/satan git clone git://github.com/rootnode/satan.git prod chown -R satan:satan /home/satan
{ "content_hash": "4bc01c810d7408a277c600891dd8bae7", "timestamp": "", "source": "github", "line_count": 14, "max_line_length": 54, "avg_line_length": 20.214285714285715, "alnum_prop": 0.7314487632508834, "repo_name": "ingeniarius/lxc-rootnodes", "id": "91e3a14d5d087998cb12b2c29ca0ded05573d910", "size": "419", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lxc-manager/chroot-scripts/system.sh", "mode": "33261", "license": "bsd-2-clause", "language": [ { "name": "Perl", "bytes": "89669" }, { "name": "Shell", "bytes": "7629" } ], "symlink_target": "" }
SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
{ "content_hash": "b222afcba1664eb2e78e5191b5e1c751", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 10.23076923076923, "alnum_prop": 0.6917293233082706, "repo_name": "mdoering/backbone", "id": "c302e0a0b10cb3e2cd404ff888efa7fea3fb7f36", "size": "214", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Asterales/Asteraceae/Ericameria/Ericameria nauseosa/Ericameria nauseosa nauseosa/ Syn. Chrysothamnus speciosus latisquameus/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
<div class="container" ng-controller="MyStudentsCtrl"> <div ng-include="'components/navbar/navbar.html'"></div> <br><br> <h1>My Students</h1> <div class="col-xs-4"> <h1>Your {{myStudents.length}} Students:</h1> <br> <!--List of current groups with edit and remove options--> <input type="text" ng-Model="searchFirst" placeholder="Search by First Name"> <input type="text" ng-Model="searchLast" placeholder="Search by Last Name"> <p> <br> <label>Can't find someone?</label> <button class="btn btn-primary" ng-click="toggleAddStudent('on')"> Add A Student</button> </p> <ul class="list-group scroll"> <li class="list-group-item" ng-repeat="student in myStudents | orderBy: 'firstName' | filter:{firstName: searchFirst} | filter:{lastName: searchLast}"> <label><a href="" ng-click="viewStudentInformation(student)">{{student.firstName}} {{student.lastName}}</a></label> <input type="button" value="edit" style="float:right" ng-click="toggleEditStudent('on'); toggleCurrentEditStudent(student)"> </li> </ul> </div> <!--Add a new student--> <div class="col-xs-4" ng-show="viewAddStudent"> <h1>Add Student:</h1> <br> <form ng-submit="addStudent()"> <input ng-model="firstname" type="text" size="15" placeholder="First Name"> <input ng-model="lastname" type="text" size="15" placeholder="Last Name"> <input type="submit" value="Submit" class="btn btn-primary"> </form> <button class="btn btn-primary" ng-click="toggleAddStudent('off'); firstname = ''; lastname = ''"> Done</button> </div> <!--Edit student--> <div class="col-xs-4" ng-show="viewEditStudent"> <h1>Edit {{currentEditStudent.firstName}} {{currentEditStudent.lastName}}:</h1> <br> <form ng-submit="editStudent(currentEditStudent)"> <input ng-model="editfirstname" type="text" size="15" placeholder="First Name"> <input ng-model="editlastname" type="text" size="15" placeholder="Last Name"> <input type="submit" value="Submit" class="btn btn-primary"> </form> <button class="btn btn-primary" ng-click="toggleEditStudent('off')"> Done</button> </div> <!--View a student--> <div class="col-xs-4" ng-show="viewStudentInfo"> <h1>{{currentStudent.firstName}} {{currentStudent.lastName}}'s</h1> <h3><a ng-click="toggleStudentInfo('classes'); getStudentClasses()">Classes</a></h3> <h3>Individually Assigned: </h3> <h4><a ng-click="toggleStudentInfo('context'); getStudentContextPacks()">Context Packs</a></h4> <h4><a ng-click="toggleStudentInfo('wordPacks'); getStudentWordPacks()">Word Packs</a></h4> <h4><a ng-click="toggleStudentInfo('words'); getStudentWords()">Words</a></h4> </div> <!--View a student--> <div class="col-xs-4" ng-show="viewStudentInfoItem"> <div ng-show="viewStudentClasses"> <h1>Classes</h1> <ul class="list-group scroll"> <li class="list-group-item" ng-repeat="class in studentClasses | orderBy: 'className'"> <label>{{class.className}}</label> <ul class="list-group"> <li class="list-group-item" ng-repeat="group in class.groupList | orderBy: 'groupName'"> <label>{{group.groupName}}</label> </li> </ul> </li> </ul> </div> <div ng-show="viewStudentContext"> <h1>Context Packs</h1> <ul class="list-group scroll"> <li class="list-group-item" ng-repeat="contextPack in studentContextPacks | orderBy: 'name'"> <label>{{contextPack.name}}</label> <ul class="list-group"> <li class="list-group-item" ng-repeat="wordPack in contextPack.wordPacks | orderBy: 'name'"> <label>{{wordPack.name}}</label> </li> </ul> </li> </ul> </div> <div ng-show="viewStudentWordPacks"> <h1>Word Packs</h1> <ul class="list-group scroll"> <li class="list-group-item" ng-repeat="wordPack in studentWordPacks | orderBy: 'name'"> <label>{{wordPack.name}}</label> </li> </ul> </div> <div ng-show="viewStudentWords"> <h1>Words</h1> <ul class="list-group scroll"> <li class="list-group-item" ng-repeat="word in studentWords | orderBy: 'name'"> <label>{{word.name}}</label> </li> </ul> </div> </div> </div>
{ "content_hash": "2e541205830126cd7a0a1bc2b2dd4254", "timestamp": "", "source": "github", "line_count": 100, "max_line_length": 157, "avg_line_length": 43.85, "alnum_prop": 0.6157354618015963, "repo_name": "casal033/WordRiver_MAP_Summer", "id": "e0c8cffba1eaf5a23e74b80a1c3707e7dc58ea52", "size": "4385", "binary": false, "copies": "2", "ref": "refs/heads/5d8a08b", "path": "client/app/myStudents/myStudents.html", "mode": "33188", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "24139" }, { "name": "CSS", "bytes": "7750" }, { "name": "HTML", "bytes": "59281" }, { "name": "JavaScript", "bytes": "299593" } ], "symlink_target": "" }
using base::WeakPtr; using content::BrowserContext; using content::BrowserThread; using content::StoragePartition; namespace extensions { namespace { // Helper function that deletes data of a given |storage_origin| in a given // |partition|. void DeleteOrigin(Profile* profile, StoragePartition* partition, const GURL& origin) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); DCHECK(profile); DCHECK(partition); if (origin.SchemeIs(kExtensionScheme)) { // TODO(ajwong): Cookies are not properly isolated for // chrome-extension:// scheme. (http://crbug.com/158386). // // However, no isolated apps actually can write to kExtensionScheme // origins. Thus, it is benign to delete from the // RequestContextForExtensions because there's nothing stored there. We // preserve this code path without checking for isolation because it's // simpler than special casing. This code should go away once we merge // the various URLRequestContexts (http://crbug.com/159193). partition->ClearDataForOrigin( StoragePartition::REMOVE_DATA_MASK_ALL & (~StoragePartition::REMOVE_DATA_MASK_SHADER_CACHE), StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL, origin, profile->GetRequestContextForExtensions()); } else { // We don't need to worry about the media request context because that // shares the same cookie store as the main request context. partition->ClearDataForOrigin( StoragePartition::REMOVE_DATA_MASK_ALL & (~StoragePartition::REMOVE_DATA_MASK_SHADER_CACHE), StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL, origin, partition->GetURLRequestContext()); } } void OnNeedsToGarbageCollectIsolatedStorage(WeakPtr<ExtensionService> es) { if (!es) return; ExtensionPrefs::Get(es->profile())->SetNeedsStorageGarbageCollection(true); } } // namespace // static void DataDeleter::StartDeleting(Profile* profile, const Extension* extension) { DCHECK(profile); DCHECK(extension); if (AppIsolationInfo::HasIsolatedStorage(extension)) { BrowserContext::AsyncObliterateStoragePartition( profile, util::GetSiteForExtensionId(extension->id(), profile), base::Bind( &OnNeedsToGarbageCollectIsolatedStorage, ExtensionSystem::Get(profile)->extension_service()->AsWeakPtr())); } else { GURL launch_web_url_origin( AppLaunchInfo::GetLaunchWebURL(extension).GetOrigin()); StoragePartition* partition = BrowserContext::GetStoragePartitionForSite( profile, Extension::GetBaseURLFromExtensionId(extension->id())); if (extension->is_hosted_app() && !profile->GetExtensionSpecialStoragePolicy()-> IsStorageProtected(launch_web_url_origin)) { DeleteOrigin(profile, partition, launch_web_url_origin); } DeleteOrigin(profile, partition, extension->url()); } #if defined(ENABLE_EXTENSIONS) // Begin removal of the settings for the current extension. // StorageFrontend may not exist in unit tests. StorageFrontend* frontend = StorageFrontend::Get(profile); if (frontend) frontend->DeleteStorageSoon(extension->id()); #endif // defined(ENABLE_EXTENSIONS) } } // namespace extensions
{ "content_hash": "9f99cc08eb4a90ec7ed75acf5f69480a", "timestamp": "", "source": "github", "line_count": 92, "max_line_length": 79, "avg_line_length": 35.96739130434783, "alnum_prop": 0.7041402236325174, "repo_name": "patrickm/chromium.src", "id": "f0d0721ce2e874bf04d3d5ab2701b8229e3f881e", "size": "4450", "binary": false, "copies": "1", "ref": "refs/heads/nw", "path": "chrome/browser/extensions/data_deleter.cc", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "ASP", "bytes": "853" }, { "name": "AppleScript", "bytes": "6973" }, { "name": "Arduino", "bytes": "464" }, { "name": "Assembly", "bytes": "52960" }, { "name": "Awk", "bytes": "8660" }, { "name": "C", "bytes": "40737238" }, { "name": "C#", "bytes": "1132" }, { "name": "C++", "bytes": "207930633" }, { "name": "CSS", "bytes": "939170" }, { "name": "Java", "bytes": "5844934" }, { "name": "JavaScript", "bytes": "17837835" }, { "name": "Mercury", "bytes": "10533" }, { "name": "Objective-C", "bytes": "886228" }, { "name": "Objective-C++", "bytes": "6667789" }, { "name": "PHP", "bytes": "97817" }, { "name": "Perl", "bytes": "672770" }, { "name": "Python", "bytes": "10857933" }, { "name": "Rebol", "bytes": "262" }, { "name": "Shell", "bytes": "1326032" }, { "name": "Tcl", "bytes": "277091" }, { "name": "XSLT", "bytes": "13493" }, { "name": "nesC", "bytes": "15206" } ], "symlink_target": "" }
{-# LANGUAGE TypeOperators #-} {-# Language RebindableSyntax #-} {-# Language ScopedTypeVariables #-} {-# Language FlexibleContexts #-} module Main where import Prelude hiding ((>>=), (>>), fail, return, id, pred, not) import Symmetry.Language import Symmetry.Verify import Symmetry.SymbEx import SrcHelper type FWO = Int :+: String type Msg = (Pid RSing, Int) :+: -- Call Pid Int (Pid RSing, FWO) -- Answer Pid FWO class ( HelperSym repr ) => FirewallSem repr instance FirewallSem SymbEx call_msg :: FirewallSem repr => repr (Pid RSing -> Int -> Msg) call_msg = lam $ \pid -> lam $ \i -> inl (pair pid i) answer_msg :: FirewallSem repr => repr (Pid RSing -> FWO -> Msg) answer_msg = lam $ \pid -> lam $ \f -> inr (pair pid f) recv_call :: FirewallSem repr => repr (Process repr (Pid RSing, Int)) recv_call = do msg :: repr Msg <- recv match msg id reject recv_answer :: FirewallSem repr => repr (Process repr (Pid RSing, FWO)) recv_answer = do msg :: repr Msg <- recv match msg reject id firewall :: FirewallSem repr => repr (Process repr ()) firewall = do app start arb start :: FirewallSem repr => repr ([Int] -> Process repr ()) start = lam $ \l -> do r_srv <- newRSing srv <- spawn r_srv (app server pred) r_fir <- newRSing fir <- spawn r_fir (app server (app2 fw srv notZero)) app2 sendall fir l type T_sa = (Pid RSing, [Int]) f_sendall :: FirewallSem repr => repr ((T_sa -> Process repr T_sa) -> T_sa -> Process repr T_sa) f_sendall = lam $ \sendall -> lam $ \arg -> do let to = proj1 arg let l = proj2 arg matchList l (lam $ \_ -> ret arg) $ lam $ \ht -> let x = proj1 ht xs = proj2 ht in do me <- self send to (app2 call_msg me x) app sendall $ pair to xs sendall :: FirewallSem repr => repr (Pid RSing -> [Int] -> Process repr ()) sendall = lam $ \to -> lam $ \l -> do app (fixM f_sendall) (pair to l) ret tt pred :: FirewallSem repr => repr (Int -> Process repr FWO) pred = lam $ \n -> ifte (eq n (int 0)) (fail) (ret $ inl $ plus n (int (-1))) notZero :: FirewallSem repr => repr (Int -> Boolean) notZero = lam $ \n -> not (eq (int 0) n) server :: FirewallSem repr => repr ((Int -> Process repr FWO) -> Process repr ()) server = lam $ \handle_call -> do let helper = lam $ \server -> lam $ \handle_call -> do me <- self msg <- recv_call res <- app handle_call (proj2 msg) send (proj1 msg) (app2 answer_msg me res) app server handle_call app (fixM helper) handle_call ret tt fw :: FirewallSem repr => repr (Pid RSing -> (Int -> Boolean) -> Int -> Process repr FWO) fw = lam $ \pr -> lam $ \t -> lam $ \x -> ifte (app t x) (do me <- self send pr (app2 call_msg me x) msg <- recv_answer ret $ proj2 msg) (ret $ inr $ str "DON'T GIVE ME ZERO !!!") main :: IO () main = checkerMain $ exec firewall
{ "content_hash": "01325dc918836aab8679f9e51eb8e9b1", "timestamp": "", "source": "github", "line_count": 94, "max_line_length": 89, "avg_line_length": 36.755319148936174, "alnum_prop": 0.5050651230101303, "repo_name": "abakst/symmetry", "id": "d60ecf1623ac19e38fcdaa06b193818c125d3411", "size": "3455", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "checker/tests/todo/SrcFirewall.hs", "mode": "33188", "license": "mit", "language": [ { "name": "Coq", "bytes": "34210" }, { "name": "HTML", "bytes": "1456" }, { "name": "Haskell", "bytes": "508257" }, { "name": "JavaScript", "bytes": "2199" }, { "name": "Makefile", "bytes": "571" }, { "name": "Prolog", "bytes": "34979" }, { "name": "Python", "bytes": "1883" }, { "name": "Shell", "bytes": "3529" } ], "symlink_target": "" }
var filteredModules = function (group) { // return the modules whose positions start with group return _.filter(postModules, function(module){return module.position.indexOf(group) == 0}); }; var post = {}; Template[getTemplate('post_item')].created = function () { post = this.data; }; Template[getTemplate('post_item')].helpers({ leftPostModules: function () { return filteredModules('left'); }, centerPostModules: function () { return filteredModules('center'); }, rightPostModules: function () { return filteredModules('right'); }, getTemplate: function () { return getTemplate(this.template); }, moduleContext: function () { // not used for now var module = this; module.templateClass = camelToDash(this.template) + ' ' + this.position + ' cell'; module.post = post; return module; }, moduleClass: function () { return camelToDash(this.template) + ' ' + this.position + ' cell'; }, postLink: function(){ // return !!this.url ? getOutgoingUrl(this.url) : "/posts/"+this._id; return "/posts/"+this._id; }, postTarget: function() { // return !!this.url ? '_blank' : ''; return ''; } });
{ "content_hash": "5cdd3047d4d42b74ad0e0592edc72faa", "timestamp": "", "source": "github", "line_count": 42, "max_line_length": 93, "avg_line_length": 28.142857142857142, "alnum_prop": 0.6370558375634517, "repo_name": "UCSC-MedBook/MedBook-Telescope3", "id": "271e031fde77ed581c70f061b5061c3ad83541a6", "size": "1182", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "webapp/client/views/posts/post_item.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "102821" }, { "name": "HTML", "bytes": "87138" }, { "name": "JavaScript", "bytes": "556776" }, { "name": "Shell", "bytes": "192" } ], "symlink_target": "" }
'use strict'; app.controller('detailsCtrl',['$scope','$filter' ,'$routeParams','emailService','$rootScope' ,function($scope , $filter , $routeParams , emailService , $rootScope){ $scope.email = $filter('filter')(emailService.getMail() , {id: $routeParams.id},true)[0]; $scope.show = ($rootScope.category == "Inbox") ? true : false; console.log($scope.show); }]);
{ "content_hash": "6ce5bd1e1c7119d12327038ba5562f3a", "timestamp": "", "source": "github", "line_count": 10, "max_line_length": 166, "avg_line_length": 39.5, "alnum_prop": 0.6253164556962025, "repo_name": "mikeyny/angular-projects", "id": "ee9b7fa037739ceccabb80d9532cb1235cd36100", "size": "395", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "gmail clone/app/email/email.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "902" }, { "name": "HTML", "bytes": "3990" }, { "name": "JavaScript", "bytes": "2952" } ], "symlink_target": "" }
import Report from '../models/Report.js' // ROUTES // ===================== export const BASE_ROUTE = '/rails_probe'; // Actions // ===================== export const REQUEST_LISTENER_STATE = 'REQUEST_LISTENER_STATE'; export const RECEIVE_LISTENER_STATE = 'RECEIVE_LISTENER_STATE'; export const REQUEST_LISTENER_ENABLE = 'REQUEST_LISTENER_ENABLE'; export const RECEIVE_LISTENER_ENABLE = 'RECEIVE_LISTENER_ENABLE'; export const REQUEST_LISTENER_DISABLE = 'REQUEST_LISTENER_DISABLE'; export const RECEIVE_LISTENER_DISABLE = 'RECEIVE_LISTENER_DISABLE'; export const REQUEST_LISTENER_CONFIG = 'REQUEST_LISTENER_CONFIG'; export const RECEIVE_LISTENER_CONFIG = 'RECEIVE_LISTENER_CONFIG'; export const REQUEST_POST_LISTENER_CONFIG = 'REQUEST_POST_LISTENER_CONFIG'; export const RECEIVE_POST_LISTENER_CONFIG = 'RECEIVE_POST_LISTENER_CONFIG'; export const SELECT_REPORT = 'SELECT_REPORT'; export const REQUEST_REPORT = 'REQUEST_REPORT'; export const RECEIVE_REPORT_SUCCESS = 'RECEIVE_REPORT_SUCCESS'; export const RECEIVE_REPORT_FAILURE = 'RECEIVE_REPORT_FAILURE'; export const REQUEST_REPORTS = 'REQUEST_REPORTS'; export const RECEIVE_REPORTS_SUCCESS = 'RECEIVE_REPORTS_SUCCESS'; export const RECEIVE_REPORTS_FAILURE = 'RECEIVE_REPORTS_FAILURE'; export const REQUEST_DELETE_ALL_REPORTS = 'REQUEST_DELETE_ALL_REPORTS'; export const RECEIVE_DELETE_ALL_REPORTS_SUCCESS = 'RECEIVE_DELETE_ALL_REPORTS_SUCCESS'; export const RECEIVE_DELETE_ALL_REPORTS_FAILURE = 'RECEIVE_DELETE_ALL_REPORTS_FAILURE'; export const INVALIDATE_REPORTS = 'INVALIDATE_REPORTS'; export const TOGGLE_RAILS_PROBE = 'TOGGLE_RAILS_PROBE'; // Listener // ===================== export const requestListenerState = () => ({ type: REQUEST_LISTENER_STATE }) export const receiveListenerState = (json) => ({ type: RECEIVE_LISTENER_STATE, listenerEnabled: json.listening }) export const requestListenerEnable = () => ({ type: REQUEST_LISTENER_ENABLE }) export const receiveListenerEnable = (json) => ({ type: RECEIVE_LISTENER_ENABLE, listenerEnabled: json.listening }) export const requestListenerDisable = () => ({ type: REQUEST_LISTENER_DISABLE }) export const receiveListenerDisable = (json) => ({ type: RECEIVE_LISTENER_DISABLE, listenerEnabled: json.listening }) export const requestListenerConfig = () => ({ type: REQUEST_LISTENER_CONFIG }) export const receiveListenerConfig = (json) => ({ type: RECEIVE_LISTENER_CONFIG, listenerConfig: json }) export const requestPostListenerConfig = () => ({ type: REQUEST_POST_LISTENER_CONFIG }) export const receivePostListenerConfig = (json) => ({ type: RECEIVE_POST_LISTENER_CONFIG, listenerConfig: json }) // Reports // ===================== export const selectReport = (id) => ({ type: SELECT_REPORT, selectedReport: { id: id } }) export const requestReport = (id) => ({ type: REQUEST_REPORT, selectedReport: { id: id } }) export const receiveReportSuccess = (json) => ({ type: RECEIVE_REPORT_SUCCESS, selectedReport: new Report(json), receivedAt: Date.now() }) export const receiveReportFailure = (json, errors) => ({ type: RECEIVE_REPORT_FAILURE, selectedReport: new Report(json), receivedAt: Date.now(), errors }) export const requestReports = () => ({ type: REQUEST_REPORTS }) export const receiveReportsSuccess = (json) => ({ type: RECEIVE_REPORTS_SUCCESS, reports: json.map((report) => new Report(report)), receivedAt: Date.now() }) export const receiveReportsFailure = (json, errors) => ({ type: RECEIVE_REPORTS_SUCCESS, reports: json.map((report) => new Report(report)), receivedAt: Date.now(), errors }) export const requestDeleteAllReports = () => ({ type: REQUEST_DELETE_ALL_REPORTS }) export const receiveDeleteAllReportsSuccess = (json) => ({ type: RECEIVE_DELETE_ALL_REPORTS_SUCCESS, receivedAt: Date.now(), json }) export const receiveDeleteAllReportsFailure = (json, errors) => ({ type: RECEIVE_DELETE_ALL_REPORTS_FAILURE, receivedAt: Date.now(), json, errors }) // Local Methods // ===================== const shouldToggleListener = (isTogglingListener) => { if (isTogglingListener) { return false; } return true; } const shouldFetchReports = (state) => { const {reports, isFetching, didInvalidate } = state.reports; if (!reports) { return true } if (isFetching) { return false } return didInvalidate } const shouldDeleteReports = (isDeletingReports) => { if (isDeletingReports) { return false; } return true; } const shouldPostListenerConfig = (isPostingListenerConfig) => { if (isPostingListenerConfig) { return false; } return true; } const postListenerConfig = (config) => { return (dispatch, getState) => { const state = getState(); const { isPostingListenerConfig } = state.listener; if (!isPostingListenerConfig) { dispatch(requestPostListenerConfig()); const params = { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(config) }; const request = new Request(`${BASE_ROUTE}/listener/config`, params); fetch(request) .then(response => response.json()) .then(json => dispatch(receivePostListenerConfig(json))) } } } const toggleListener = () => { return (dispatch, getState) => { const state = getState(); const { isListening } = state.listener; if (!isListening) { dispatch(requestListenerEnable()); const request = new Request(`${BASE_ROUTE}/listener/on`, { method: 'GET' }); fetch(request) .then(response => response.json()) .then(json => dispatch(receiveListenerEnable(json))) } else { dispatch(requestListenerDisable()); const request = new Request(`${BASE_ROUTE}/listener/off`, { method: 'GET' }); fetch(request) .then(response => response.json()) .then(json => dispatch(receiveListenerDisable(json))) } } } const deleteAllReports = () => { return (dispatch) => { dispatch(requestDeleteAllReports()); const request = new Request(`${BASE_ROUTE}/reports/remove`, { method: 'DELETE' }); fetch(request) .then(response => response.json()) .then(json => dispatch(receiveDeleteAllReportsSuccess(json))) .catch(error => dispatch(receiveDeleteAllReportsFailure({ errors: [error] }, error.message))); } } // Dispatch Methods // ===================== export const postListenerConfigIfNeeded = (config) => (dispatch, getState) => { const state = getState(); const { isPostingListenerConfig } = state.listener; if (shouldPostListenerConfig(isPostingListenerConfig)) { return dispatch(postListenerConfig(config)); } } export const toggleListenerIfNeeded = () => (dispatch, getState) => { const state = getState(); const { isTogglingListener } = state.listener; if (shouldToggleListener(isTogglingListener)) { return dispatch(toggleListener()); } } export const deleteAllReportsIfNeeded = () => (dispatch, getState) => { const state = getState(); const { isDeletingReports } = state.reports; if (shouldDeleteReports(isDeletingReports)) { return dispatch(deleteAllReports()); } } export const fetchReportsIfNeeded = () => (dispatch, getState) => { if (shouldFetchReports(getState())) { return dispatch(fetchReports()); } } export const getListenerConfig = () => { return (dispatch) => { dispatch(requestListenerConfig()); const request = new Request(`${BASE_ROUTE}/listener/config`, { method: 'GET' }); fetch(request) .then(response => response.json()) .then(json => dispatch(receiveListenerConfig(json))); } } export const getListenerState = () => { return (dispatch) => { dispatch(requestListenerState()); const request = new Request(`${BASE_ROUTE}/listener`, { method: 'GET' }); fetch(request) .then(response => response.json()) .then(json => dispatch(receiveListenerState(json))); } } export const fetchReport = (id) => { return (dispatch) => { dispatch(requestReport(id)); const request = new Request(`${BASE_ROUTE}/reports/${id}`, { method: 'GET' }); fetch(request) .then(response => response.json()) .then(json => dispatch(receiveReportSuccess(json))) .catch(error => dispatch(receiveReportFailure({ id: id, errors: [error] }, error.message))); } } export const fetchReports = () => { return (dispatch) => { dispatch(requestReports()); const request = new Request(`${BASE_ROUTE}/reports`, { method: 'GET' }); fetch(request) .then(response => response.json()) .then(json => dispatch(receiveReportsSuccess(json))) .catch(error => dispatch(receiveReportsFailure([], error.message))); } }
{ "content_hash": "50df8f339a39e60a002782b1a27b0744", "timestamp": "", "source": "github", "line_count": 326, "max_line_length": 101, "avg_line_length": 26.86196319018405, "alnum_prop": 0.6723763846066004, "repo_name": "BrianMehrman/rails_probe", "id": "6642db9721336db4d97b02c09c699311f4b4df1b", "size": "8757", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "client/src/actions/index.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "5027" }, { "name": "HTML", "bytes": "152075920" }, { "name": "JavaScript", "bytes": "103824" }, { "name": "Ruby", "bytes": "55195" } ], "symlink_target": "" }
title: "Method Profiling" weight: 11 description: > Gather context of where we spend time in our code --- Our first look at the recording will start with finding out where we might be spending time with our code. ### Method Profiling Page We'll start by taking a look at the detailed __Method Profiling Page__. This page displays how often a specific method is ran based on sampling. {{% alert title="Note" color="info" %}} This page is a little bit difficult to use in JMC7, planned improvements for the data visualization will come in JMC8, see [JMC#165](https://github.com/openjdk/jmc/pull/165) {{% /alert %}} ![](/jmc/method_profile_page.png) By default, this view groups threads by method, but you can also include the line number for each method. This can be accomplished by selecting the __View Menu__ option and going to __Distinguish Frames By__ and selecting __Line Number__. ![](/jmc/method_profile_distinguish_line_numbers.png) 💡 Generally, you don't need this, as it can be quite apparent by the base method being invoked where the cost is at. Though, it may be helpful to include in some contexts. ![](/jmc/method_profile_with_line_numbers.png) {{% alert title="Note" color="info" %}} Remember that this is just a sampling view, and does not mean that only a small amount of methods were hit. We'll be able to visualize more of this info in the following part. {{% /alert %}} ## Java Application Navigate to the __Java Application__ page. This page provides an overview of the state of the JVM and collates information from a couple of the dedicated pages. ![](/jmc/java_application_page.png) Using the checkboxes on the right of the Graph, select only __Method Profiling__ to narrow down the set of events on the graph: ![](/jmc/java_application_method_profiling.png) The __Stack Trace__ view from this page can give you a better count of sampled methods (not just the ones from a specific Method Profiling event) ![](/jmc/java_application_stack_trace.png) This information is the equivalent of the __Hot Methods__ tab in JMC 5, see [forum discussion](https://community.oracle.com/tech/developers/discussion/4094447/difference-between-method-profiling-and-java-application-stack-traces). We can then use this information to correlate what is happening in our code: ![](/jmc/hot_method_line_number.png) ## <i class="fas fa-compass"></i> Explore * Walk around to look at other areas where you are spending time in your code. * In many cases you find that there are very expensive areas of code that you cannot change (as you may not own it), but you can dictate whether or not it should be executed (or executed as frequently). ### <i class="fas fa-question"></i> Follow Ups * Is there any method that stands out to you that might be unnecessarily called? {{% nextSection %}} In the next section, we'll look at the Exceptions thrown by our application. {{% /nextSection %}}
{ "content_hash": "f211d42d35bfac211b2d8322b8fa193d", "timestamp": "", "source": "github", "line_count": 62, "max_line_length": 239, "avg_line_length": 47.145161290322584, "alnum_prop": 0.7468354430379747, "repo_name": "cchesser/java-perf-workshop", "id": "2bb98dcc826dbf1b7154fc4d6b992c80a58b9572", "size": "2930", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "docs/content/docs/jmc/method_profiling.md", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "22967" }, { "name": "Scala", "bytes": "3974" }, { "name": "Shell", "bytes": "457" }, { "name": "SuperCollider", "bytes": "1605" } ], "symlink_target": "" }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _01.Calulation_Problem { class Program { static void Main(string[] args) { string[] words = Console.ReadLine().Split(' '); int sum = 0; foreach (var word in words) { sum += BaseToDecimal(word, 23); } string baseNum = DecimalToBase(sum, 23); Console.WriteLine("{0} = {1}", baseNum, sum); } static string DecimalToBase(int decimalNum, int systemBase) { string result = ""; decimalNum = Math.Abs(decimalNum); while (decimalNum > 0) { int digit = decimalNum % systemBase; result = (char)(digit + 'a') + result; decimalNum /= systemBase; } return result; } static int BaseToDecimal(string baseNumber, int systemBase) { int decimalNumber = 0; for (int i = 0; i < baseNumber.Length; i++) { int digit = 0; digit = baseNumber[i] - 'a'; decimalNumber += digit * (int)Math.Pow(systemBase, baseNumber.Length - 1 - i); } return decimalNumber; } } }
{ "content_hash": "95fba2e173a3b91367933a04cd689036", "timestamp": "", "source": "github", "line_count": 53, "max_line_length": 94, "avg_line_length": 26.09433962264151, "alnum_prop": 0.49313087490961677, "repo_name": "KaloyanMarshalov/Telerik-Academy-Homeworks", "id": "e52591ba6deaebd23a0c8e33a1a572b8fdd35406", "size": "1385", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Module One - Programming/CSharp Part Two/Exam-CSharp-2-5-March-Evening/01.Calulation-Problem/Calc Problem.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "2817679" }, { "name": "CSS", "bytes": "3251" }, { "name": "HTML", "bytes": "49834" }, { "name": "JavaScript", "bytes": "119860" } ], "symlink_target": "" }
title: 'sort/2' group: Terms predicates: - {sig: 'sort/2', desc: 'sorts a list of terms'} - {sig: 'keysort/2', desc: 'sorts a list of Key-Data pairs'} --- ## FORMS ``` sort(List, SortedList) keysort(List, SortedList) ``` ## DESCRIPTION `sort/2` sorts the `List` according to the standard order. Identical elements, as defined by [`==/2`](identity.html), are merged, so that each element appears only once in `SortedList`. `keysort/2` expects `List` to be a list of terms of the form: `Key-Data`. Each pair is sorted by the `Key` alone. Pairs with duplicate `Keys` will not be removed from `SortedList`. A merge sort is used internally by these predicates at a cost of at most N(log N) where N is the number of elements in `List`. ## EXAMPLES The following examples illustrate the use of `sort/2` and `keysort/2`: ``` ?- sort([orange,apple,orange,tangelo,grape],X). X = [apple,grape,orange,tangelo] yes. ?- keysort([warren-davidh, bowen-kenneth, warren-davids, bowen-david, burger-warren], X). X = [bowen-kenneth,bowen-david,burger-warren, warren-davidh,warren-davids] yes. ``` The following example shows the way structures with the same principal functor are sorted: ``` ?- sort([and(a,b,c), and(a,b,a,b), and(a,a), and(b)],Sorted). Sorted = [and(a,a),and(a,b,a,b),and(a,b,c),and(b)] yes. ``` ## SEE ALSO - [`compare/3`](compare.html) - {% include book.md id="bowen91" sec="7.4" %}
{ "content_hash": "7f82d00ccf090b247bd1ed8f61414bf9", "timestamp": "", "source": "github", "line_count": 53, "max_line_length": 185, "avg_line_length": 27, "alnum_prop": 0.6722571628232006, "repo_name": "AppliedLogicSystems/ALSProlog", "id": "e3b2ac6ef50369019be5cffa8433f1e67825e7d4", "size": "1435", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "docs/docs/ref/sort.md", "mode": "33188", "license": "mit", "language": [ { "name": "Assembly", "bytes": "35412" }, { "name": "Batchfile", "bytes": "10839" }, { "name": "C", "bytes": "3909673" }, { "name": "C++", "bytes": "45760" }, { "name": "Crystal", "bytes": "86" }, { "name": "DIGITAL Command Language", "bytes": "4506" }, { "name": "Dockerfile", "bytes": "2614" }, { "name": "HTML", "bytes": "38888" }, { "name": "Java", "bytes": "1537" }, { "name": "M4", "bytes": "114256" }, { "name": "Makefile", "bytes": "47698" }, { "name": "Objective-C", "bytes": "751" }, { "name": "PHP", "bytes": "1580" }, { "name": "PLSQL", "bytes": "272945" }, { "name": "Prolog", "bytes": "3007478" }, { "name": "Python", "bytes": "592" }, { "name": "R", "bytes": "2229" }, { "name": "Roff", "bytes": "32605" }, { "name": "Ruby", "bytes": "2700" }, { "name": "Shell", "bytes": "59158" }, { "name": "Tcl", "bytes": "376910" }, { "name": "TeX", "bytes": "19114" }, { "name": "sed", "bytes": "1912" } ], "symlink_target": "" }
<?xml version="1.0" encoding="utf-8"?> <!--Generated by crowdin.com--> <resources> <string name="app_name">Widżet kalendarza</string> <string name="today">Dzisiaj</string> <string name="tomorrow">Jutro</string> <string name="no_upcoming_events">Brak nadchodzących wydarzeń</string> <string name="widget_name">Kalendarz</string> <string name="open_prefs_desc">Otwórz ustawienia widżetu kalendarza</string> <string name="add_event_desc">Dodaj nowe wydarzenie w kalendarzu</string> <string name="indicator_alarm">Wskaźnik pokazujący czy został ustawiony alarm</string> <string name="indicator_recurring">Wskaźnik, jeśli wydarzenie się powtarza</string> <string name="no_title">(brak tytułu)</string> <string name="calendars_prefs">Kalendarze</string> <string name="calendars_prefs_desc">Wybierz kalendarze do wyświetlenia</string> <string name="appearance_prefs">Wygląd</string> <string name="appearance_prefs_desc">Dostosuj wygląd widżetu</string> <string name="appearance_text_size_title">Rozmiar tekstu</string> <string name="appearance_text_size_desc">Dostosuj rozmiar tekstu</string> <string name="appearance_text_size_very_small">Bardzo mały</string> <string name="appearance_text_size_small">Mały</string> <string name="appearance_text_size_medium">Średni</string> <string name="appearance_text_size_large">Duży</string> <string name="appearance_text_size_very_large">Bardzo duży</string> <string name="appearance_multiline_title_title">Wielowierszowy tytuł</string> <string name="appearance_multiline_title_desc">Pokaż tytuł w kilku liniach</string> <string name="appearance_date_format_desc">Pokaż czas w formacie am/pm lub 24-godzinnym</string> <string name="appearance_date_format_title">Format godziny</string> <string name="appearance_date_format_auto">Automatyczny</string> <string name="appearance_date_format_24">17:00</string> <string name="appearance_date_format_12">5:00 pm</string> <string name="appearance_show_days_without_events_title">Pokaż dni bez wydarzeń</string> <string name="appearance_show_days_without_events_desc">Pokaż nagłówek dnia dla dni bez wydarzeń</string> <string name="appearance_display_header_title">Pokaż nagłówek widżetu</string> <string name="appearance_display_header_desc">Pokaż nagłówek z datą i ustawieniami</string> <string name="appearance_display_header_warning">Ukrywając nagłówek nie będziesz mógł wrócić do preferencji.</string> <string name="appearance_group_color_title">Kolory</string> <string name="appearance_background_color_title">Kolor tła</string> <string name="appearance_background_color_desc">Dostosuj kolor tła</string> <string name="appearance_past_events_background_color_title">Kolor tła przeszłych wydarzeń</string> <string name="appearance_past_events_background_color_desc">Modyfikuj kolor tła przeszłych wydarzeń</string> <string name="appearance_day_header_alignment_desc">Ustaw wyrównanie nagłówka dnia</string> <string name="appearance_day_header_alignment_title">Wyrównanie nagłówka dnia</string> <string name="appearance_day_header_alignment_left">Z lewej strony</string> <string name="appearance_day_header_alignment_center">Na środku</string> <string name="appearance_day_header_alignment_right">Z prawej strony</string> <string name="appearance_header_theme_title">Cieniowanie nagłówka widżetu</string> <string name="appearance_header_theme_desc">Pokaż nagłówek widźetu w ciemnym lub jasnym odcieniu</string> <string name="appearance_entries_theme_title">Cieniowanie wydarzenia</string> <string name="appearance_entries_theme_desc">Pokaż tekst wydarzenia w ciemnym lub jasnym odcieniu</string> <string name="appearance_theme_black">Biały</string> <string name="appearance_theme_dark">Jasny</string> <string name="appearance_theme_light">Ciemny</string> <string name="appearance_theme_white">Czarny</string> <string name="event_details_prefs">Szczegóły wydarzeń</string> <string name="event_details_prefs_desc">Skonfiguruj, jakie szczegóły wydarzenia pokazać</string> <string name="event_details_show_end_time_title">Czas zakończenia</string> <string name="event_details_show_end_time_desc">Pokaż czas zakończenia wydarzenia</string> <string name="event_details_show_location_title">Pokaż miejsce</string> <string name="event_details_show_location_desc">Pokaż lub ukryj miejsce wydarzenia</string> <string name="event_details_fill_all_day_events_title">Wydarzenia całodzienne</string> <string name="event_details_fill_all_day_events_desc">Pokaż wpis dla każdego wydarzenia całodziennego</string> <string name="event_details_indicators">Wskaźniki</string> <string name="event_details_indicate_alert_desc">Pokaż wskaźnik alarmów</string> <string name="event_details_indicate_alert_title">Alarmy</string> <string name="event_details_indicate_recurring_desc">Pokaż wskaźnik dla wydarzeń cyklicznych</string> <string name="event_details_indicate_recurring_title">Wydarzenia cykliczne</string> <string name="event_filters_prefs">Filtry wydarzeń</string> <string name="event_filters_prefs_desc">Ustaw pokazywanie przeszłych, bieżących i przyszłych wydarzeń</string> <string name="all_events">Wszystkie wydarzenia</string> <string name="current_and_future_events">Bieżące i przyszłe wydarzenia</string> <string name="past_events">Przeszłe wydarzenia</string> <string name="event_details_event_range_title">Zakres dat</string> <string name="event_details_event_range_desc">Skonfiguruj ilość wydarzeń do wyświetlenia</string> <string name="event_range_today">Dziś</string> <string name="event_range_one_day">Dziś i jutro</string> <string name="event_range_one_week">Tydzień</string> <string name="event_range_two_weeks">Dwa tygodnie</string> <string name="event_range_one_month">Miesiąc</string> <string name="event_range_two_months">Dwa miesiące</string> <string name="event_range_three_months">Trzy miesiące</string> <string name="event_range_six_months">Sześć miesięcy</string> <string name="event_range_one_year">Rok</string> <string name="show_past_events_with_default_color_title">Pokaż wszystkie przeszłe wydarzenia o domyślnym kolorze</string> <string name="this_option_is_turned_off">(wyłączone)</string> <string name="pref_events_ended_title">Pokaż wydarzenia, które się zakończyły</string> <string name="ended_one_hour_ago">Zakończyły się godzinę temu</string> <string name="ended_two_hours_ago">Zakończyły się dwie godziny temu</string> <string name="ended_four_hours_ago">Zakończyły się cztery godziny temu</string> <string name="ended_today">Zakończyły się dzisiaj</string> <string name="ended_yesterday">Zakończyły się wczoraj</string> <string name="pref_hide_based_on_keywords_title">Ukryj gdy zawiera określone słowa kluczowe w tytule</string> <string name="feedback_prefs">Ocena</string> <string name="feedback_prefs_desc">Skontaktuj się z nami</string> <string name="feedback_github_desc">Wyraź swoją opinię na stronie projektu</string> <string name="feedback_github_title">Odwiedź widżet na stronie Github</string> <string name="feedback_play_store_desc">Oceń i skomentuj w sklepie Google Play</string> <string name="feedback_play_store_title">Odwiedź widżet w sklepie Google Play</string> <string name="refresh_desc">Odśwież</string> <string name="share_events_for_debugging_desc">Utwórz raport, aby pomóc programistą w rozwiązaniu problemu</string> <string name="share_events_for_debugging_title">Udostępnij wydarzenia do debugowania</string> </resources>
{ "content_hash": "50baafda32b937c9821c8130a7e10296", "timestamp": "", "source": "github", "line_count": 102, "max_line_length": 123, "avg_line_length": 73.97058823529412, "alnum_prop": 0.7709741550695826, "repo_name": "JordanRobinson/task-widget", "id": "ec0c4dc0760c100ec8f86deae94c51c476a435d3", "size": "7705", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/task-widget/src/main/res/values-pl/strings.xml", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "152216" } ], "symlink_target": "" }
package bean; /** * Classe representant la liste des couches d'un terrain * * @author Mayitabel * */ public class Layers { private Tuile sousSol; private Tuile sol; private Tuile layer1; public Layers(final String sousSol, final String sol, final String layer1) { this.sousSol = new Tuile("sousSol", sousSol); this.sol = new Tuile("sol", sol); this.layer1 = new Tuile("layer1", layer1); } /** * @return the sousSol */ public Tuile getSousSol() { return sousSol; } /** * @param sousSol * the sousSol to set */ public void setSousSol(final Tuile sousSol) { this.sousSol = sousSol; } /** * @return the sol */ public Tuile getSol() { return sol; } /** * @param sol * the sol to set */ public void setSol(final Tuile sol) { this.sol = sol; } /** * @return the layer1 */ public Tuile getLayer1() { return layer1; } /** * @param layer1 * the layer1 to set */ public void setLayer1(final Tuile layer1) { this.layer1 = layer1; } public Tuile getTuileByLayer(final String layerName) { switch (layerName) { case "sousSol": return sousSol; case "sol": return sol; case "layer1": return layer1; default: return null; } } }
{ "content_hash": "eedf8b77398d9e2afed1edc91e531c66", "timestamp": "", "source": "github", "line_count": 78, "max_line_length": 80, "avg_line_length": 20.67948717948718, "alnum_prop": 0.4810911345319281, "repo_name": "Mastersnes/BUL", "id": "ce128619025c178bc1fefad3177247aa4fadf80a", "size": "1613", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/bean/Layers.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "7138" }, { "name": "HTML", "bytes": "6536" }, { "name": "Java", "bytes": "36754" }, { "name": "JavaScript", "bytes": "31649" } ], "symlink_target": "" }
package apimanagement // Copyright (c) Microsoft and contributors. 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. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" "net/http" ) // SignUpSettingsClient is the client for the SignUpSettings methods of the Apimanagement service. type SignUpSettingsClient struct { BaseClient } // NewSignUpSettingsClient creates an instance of the SignUpSettingsClient client. func NewSignUpSettingsClient() SignUpSettingsClient { return SignUpSettingsClient{New()} } // CreateOrUpdate create or Update Sign-Up settings. // // apimBaseURL is the management endpoint of the API Management service, for example // https://myapimservice.management.azure-api.net. parameters is create or update parameters. func (client SignUpSettingsClient) CreateOrUpdate(ctx context.Context, apimBaseURL string, parameters PortalSignupSettings) (result PortalSignupSettings, err error) { req, err := client.CreateOrUpdatePreparer(ctx, apimBaseURL, parameters) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "CreateOrUpdate", nil, "Failure preparing request") return } resp, err := client.CreateOrUpdateSender(req) if err != nil { result.Response = autorest.Response{Response: resp} err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "CreateOrUpdate", resp, "Failure sending request") return } result, err = client.CreateOrUpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "CreateOrUpdate", resp, "Failure responding to request") } return } // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client SignUpSettingsClient) CreateOrUpdatePreparer(ctx context.Context, apimBaseURL string, parameters PortalSignupSettings) (*http.Request, error) { urlParameters := map[string]interface{}{ "apimBaseUrl": apimBaseURL, } const APIVersion = "2017-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), autorest.WithCustomBaseURL("{apimBaseUrl}", urlParameters), autorest.WithPath("/portalsettings/signup"), autorest.WithJSON(parameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client SignUpSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client SignUpSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result PortalSignupSettings, err error) { err = autorest.Respond( resp, client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return } // Get get Sign-Up settings. // // apimBaseURL is the management endpoint of the API Management service, for example // https://myapimservice.management.azure-api.net. func (client SignUpSettingsClient) Get(ctx context.Context, apimBaseURL string) (result PortalSignupSettings, err error) { req, err := client.GetPreparer(ctx, apimBaseURL) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Get", nil, "Failure preparing request") return } resp, err := client.GetSender(req) if err != nil { result.Response = autorest.Response{Response: resp} err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Get", resp, "Failure sending request") return } result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Get", resp, "Failure responding to request") } return } // GetPreparer prepares the Get request. func (client SignUpSettingsClient) GetPreparer(ctx context.Context, apimBaseURL string) (*http.Request, error) { urlParameters := map[string]interface{}{ "apimBaseUrl": apimBaseURL, } const APIVersion = "2017-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithCustomBaseURL("{apimBaseUrl}", urlParameters), autorest.WithPath("/portalsettings/signup"), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client SignUpSettingsClient) GetSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client SignUpSettingsClient) GetResponder(resp *http.Response) (result PortalSignupSettings, err error) { err = autorest.Respond( resp, client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} return } // Update update Sign-Up settings. // // apimBaseURL is the management endpoint of the API Management service, for example // https://myapimservice.management.azure-api.net. parameters is update Sign-Up settings. ifMatch is the entity // state (Etag) version of the property to update. A value of "*" can be used for If-Match to unconditionally apply // the operation. func (client SignUpSettingsClient) Update(ctx context.Context, apimBaseURL string, parameters PortalSignupSettings, ifMatch string) (result autorest.Response, err error) { req, err := client.UpdatePreparer(ctx, apimBaseURL, parameters, ifMatch) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Update", nil, "Failure preparing request") return } resp, err := client.UpdateSender(req) if err != nil { result.Response = resp err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Update", resp, "Failure sending request") return } result, err = client.UpdateResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "apimanagement.SignUpSettingsClient", "Update", resp, "Failure responding to request") } return } // UpdatePreparer prepares the Update request. func (client SignUpSettingsClient) UpdatePreparer(ctx context.Context, apimBaseURL string, parameters PortalSignupSettings, ifMatch string) (*http.Request, error) { urlParameters := map[string]interface{}{ "apimBaseUrl": apimBaseURL, } const APIVersion = "2017-03-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPatch(), autorest.WithCustomBaseURL("{apimBaseUrl}", urlParameters), autorest.WithPath("/portalsettings/signup"), autorest.WithJSON(parameters), autorest.WithQueryParameters(queryParameters), autorest.WithHeader("If-Match", autorest.String(ifMatch))) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client SignUpSettingsClient) UpdateSender(req *http.Request) (*http.Response, error) { return autorest.SendWithSender(client, req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client SignUpSettingsClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp return }
{ "content_hash": "079380f5b4e25b76c5f4d1080cb241fc", "timestamp": "", "source": "github", "line_count": 236, "max_line_length": 171, "avg_line_length": 38.99152542372882, "alnum_prop": 0.7717887415779179, "repo_name": "marstr/azure-sdk-for-go", "id": "e04fe3a4b4a14e7cadd0fac5a96f890c659ead18", "size": "9202", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "services/preview/apimanagement/ctrl/2017-03-01/apimanagement/signupsettings.go", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Go", "bytes": "80204860" }, { "name": "HTML", "bytes": "71764" }, { "name": "Shell", "bytes": "646" } ], "symlink_target": "" }
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("2.EvenDifferences")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("2.EvenDifferences")] [assembly: AssemblyCopyright("Copyright © 2015")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("0cd64f36-9525-4a94-9da9-31e66426c4de")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
{ "content_hash": "5673be788bd8b271ac40a62af62e36de", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 84, "avg_line_length": 39.083333333333336, "alnum_prop": 0.7455579246624022, "repo_name": "aliv59git/C-2N_HomeAndExam", "id": "ff250a584e4daddc44fe89fb8606eae01465e13a", "size": "1410", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Exam/Exam5.03.15/2.EvenDifferences/Properties/AssemblyInfo.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "412763" }, { "name": "HTML", "bytes": "92424" } ], "symlink_target": "" }
package jp.fieldnotes.hatunatu.dao.resultset; import jp.fieldnotes.hatunatu.api.DtoMetaData; import jp.fieldnotes.hatunatu.dao.RowCreator; import jp.fieldnotes.hatunatu.dao.exception.NotSingleResultRuntimeException; import jp.fieldnotes.hatunatu.dao.jdbc.QueryObject; import jp.fieldnotes.hatunatu.util.log.Logger; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Map; import java.util.Set; public class DtoMetaDataResultSetHandler extends AbstractDtoMetaDataResultSetHandler { private static final Logger logger = Logger .getLogger(DtoMetaDataResultSetHandler.class); /** * @param dtoMetaData Dto meta data. (NotNull) * @param rowCreator Row creator. (NotNull) */ public DtoMetaDataResultSetHandler(DtoMetaData dtoMetaData, RowCreator rowCreator) { super(dtoMetaData, rowCreator); } @Override public Object handle(ResultSet resultSet, QueryObject queryObject) throws SQLException { // Map<String(columnName), PropertyType> Map propertyCache = null;// [DAO-118] (2007/08/26) if (resultSet.next()) { final Set columnNames = createColumnNames(resultSet.getMetaData()); // Lazy initialization because if the result is zero, the cache is unused. if (propertyCache == null) { propertyCache = createPropertyCache(columnNames); } final Object row = createRow(resultSet, propertyCache); if (resultSet.next()) { handleNotSingleResult(); } return row; } else { return null; } } protected void handleNotSingleResult() { logger.log("WDAO0003", null); } /** * 結果が2件以上のときに例外をスローする{@link DtoMetaDataResultSetHandler}です * @author azusa * */ public static class RestrictDtoMetaDataResultSetHandler extends DtoMetaDataResultSetHandler{ /** * @param dtoMetaData DtoMetaData * @param rowCreator RowCreator */ public RestrictDtoMetaDataResultSetHandler(DtoMetaData dtoMetaData, RowCreator rowCreator) { super(dtoMetaData, rowCreator); // TODO Auto-generated constructor stub } @Override protected void handleNotSingleResult() { throw new NotSingleResultRuntimeException(); } } }
{ "content_hash": "4b461ee09558bc546ef6c074111be938", "timestamp": "", "source": "github", "line_count": 81, "max_line_length": 96, "avg_line_length": 30.234567901234566, "alnum_prop": 0.6521028991425072, "repo_name": "azusa/hatunatu", "id": "248913d51da7b5a5cba93d0f14c16f53507fe025", "size": "3103", "binary": false, "copies": "1", "ref": "refs/heads/develop", "path": "hatunatu/src/main/java/jp/fieldnotes/hatunatu/dao/resultset/DtoMetaDataResultSetHandler.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "862" }, { "name": "HTML", "bytes": "243" }, { "name": "Java", "bytes": "2918044" }, { "name": "PLSQL", "bytes": "702" }, { "name": "PLpgSQL", "bytes": "477" } ], "symlink_target": "" }
const express = require('express'); const router = express.Router(); const constants = require('../helpers/constants'); const clarifai = require('../models/clarifai'); router.post('/base64', (req, res) => { const base64 = req.body.base64; const imageBlob = base64.split(',')[1]; const model = constants.clarifai.model; clarifai.predictConcept(model, imageBlob) .then((conceptDetails) => res.status(200).json(conceptDetails)) .catch(console.error); }); module.exports = router;
{ "content_hash": "1fb0f9cdf7b900fba64a1822d99d81e5", "timestamp": "", "source": "github", "line_count": 16, "max_line_length": 67, "avg_line_length": 31, "alnum_prop": 0.6955645161290323, "repo_name": "zillwc/remembrance", "id": "03e02db3b3deda141a02382ff2baa7eb30cf0053", "size": "496", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "routes/predict.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "948" }, { "name": "HTML", "bytes": "2203" }, { "name": "JavaScript", "bytes": "13942" } ], "symlink_target": "" }
@interface PickOneController : ContentListViewController { } @property (nonatomic, retain) Content *itemContent; @property (nonatomic, retain) NSString *selectionVariable; @end
{ "content_hash": "90cc54d4154552532055c9bb2d760a29", "timestamp": "", "source": "github", "line_count": 7, "max_line_length": 58, "avg_line_length": 25.571428571428573, "alnum_prop": 0.7988826815642458, "repo_name": "VAHacker/familycoach-catalyze", "id": "54fc63ac3ac3c0013b35332f9efb1be42f5e07bd", "size": "314", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "ios/coachlib/coachlib/PickOneController.h", "mode": "33261", "license": "mit", "language": [ { "name": "C", "bytes": "110138" }, { "name": "C++", "bytes": "1375865" }, { "name": "CSS", "bytes": "22499" }, { "name": "Java", "bytes": "1244068" }, { "name": "Objective-C", "bytes": "2412225" }, { "name": "Objective-C++", "bytes": "96014" }, { "name": "Shell", "bytes": "563" } ], "symlink_target": "" }
using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using WzComparerR2.WzLib; using WzComparerR2.Common; using DevComponents.DotNetBar; using WzComparerR2.Controls; namespace WzComparerR2.PluginBase { public class PluginContext { internal PluginContext(PluginContextProvider contextProvider) { this.contextProvider = contextProvider; } private PluginContextProvider contextProvider; public Form MainForm { get { return this.contextProvider.MainForm; } } public DotNetBarManager DotNetBarManager { get { return this.contextProvider.DotNetBarManager; } } public Wz_Node SelectedNode1 { get { return this.contextProvider.SelectedNode1; } } public Wz_Node SelectedNode2 { get { return this.contextProvider.SelectedNode2; } } public Wz_Node SelectedNode3 { get { return this.contextProvider.SelectedNode3; } } public SuperTabItem SelectedTab { get { return this.SuperTabControl1.SelectedTab; } } public event EventHandler<WzNodeEventArgs> SelectedNode1Changed { add { contextProvider.SelectedNode1Changed += value; } remove { contextProvider.SelectedNode1Changed -= value; } } public event EventHandler<WzNodeEventArgs> SelectedNode2Changed { add { contextProvider.SelectedNode2Changed += value; } remove { contextProvider.SelectedNode2Changed -= value; } } public event EventHandler<WzNodeEventArgs> SelectedNode3Changed { add { contextProvider.SelectedNode3Changed += value; } remove { contextProvider.SelectedNode3Changed -= value; } } public event EventHandler<WzStructureEventArgs> WzOpened { add { contextProvider.WzOpened += value; } remove { contextProvider.WzOpened-= value; } } public event EventHandler<WzStructureEventArgs> WzClosing { add { contextProvider.WzClosing += value; } remove { contextProvider.WzClosing -= value; } } public StringLinker DefaultStringLinker { get { return this.contextProvider.DefaultStringLinker; } } public AlphaForm DefaultTooltipWindow { get { return this.contextProvider.DefaultTooltipWindow; } } private SuperTabControl SuperTabControl1 { get { var controls = this.contextProvider.MainForm.Controls.Find("superTabControl1", true); SuperTabControl tabControl = controls.Length > 0 ? (controls[0] as SuperTabControl) : null; return tabControl; } } public void AddRibbonBar(string tabName, RibbonBar ribbonBar) { RibbonControl ribbonCtrl = this.MainForm.Controls["ribbonControl1"] as RibbonControl; if (ribbonCtrl == null) { throw new Exception("无法找到RibbonContainer。"); } RibbonPanel ribbonPanel = null; RibbonTabItem tabItem; foreach (BaseItem item in ribbonCtrl.Items) { if ((tabItem = item as RibbonTabItem) != null && string.Equals(Convert.ToString(tabItem.Tag), tabName, StringComparison.OrdinalIgnoreCase)) { ribbonPanel = tabItem.Panel; break; } } if (ribbonPanel == null) { throw new Exception("无法找到RibbonPanel。"); } Control lastBar = ribbonPanel.Controls[0]; ribbonBar.Location = new System.Drawing.Point(lastBar.Location.X + lastBar.Width, lastBar.Location.Y); ribbonBar.Size = new System.Drawing.Size(Math.Max(1, ribbonBar.Width), lastBar.Height); ribbonPanel.SuspendLayout(); ribbonPanel.Controls.Add(ribbonBar); ribbonPanel.Controls.SetChildIndex(ribbonBar, 0); ribbonPanel.ResumeLayout(false); } public RibbonBar AddRibbonBar(string tabName, string barText) { RibbonBar bar = new RibbonBar(); bar.Text = barText; AddRibbonBar(tabName, bar); return bar; } public void AddTab(string tabName, SuperTabControlPanel tabPanel) { SuperTabControl tabControl = this.SuperTabControl1; if (tabControl == null) { throw new Exception("无法找到SuperTabControl。"); } tabControl.SuspendLayout(); SuperTabItem tabItem = new SuperTabItem(); tabControl.Controls.Add(tabPanel); tabControl.Tabs.Add(tabItem); tabPanel.TabItem = tabItem; tabItem.Text = tabName; tabItem.AttachedControl = tabPanel; tabControl.ResumeLayout(false); } public SuperTabControlPanel AddTab(string tabName) { SuperTabControlPanel panel = new SuperTabControlPanel(); AddTab(tabName, panel); panel.Controls.Add(new Button()); return panel; } } }
{ "content_hash": "98cc3b13f885a1c0d372a8ba6b88b504", "timestamp": "", "source": "github", "line_count": 175, "max_line_length": 114, "avg_line_length": 31.10857142857143, "alnum_prop": 0.5861498897869214, "repo_name": "Kagamia/WzComparerR2", "id": "f5d4169750502063181521e5948e418789035c42", "size": "5476", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "WzComparerR2.PluginBase/PluginContext.cs", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "151" }, { "name": "C#", "bytes": "2178277" }, { "name": "HLSL", "bytes": "2982" }, { "name": "Lua", "bytes": "13223" } ], "symlink_target": "" }
module Authlogic module Session # This module is responsible for authenticating the user via params, which ultimately allows the user to log in using a URL like the following: # # https://www.domain.com?user_credentials=4LiXF7FiGUppIPubBPey # # Notice the token in the URL, this is a single access token. A single access token is used for single access only, it is not persisted. Meaning the user # provides it, Authlogic grants them access, and that's it. If they want access again they need to provide the token again. Authlogic will # *NEVER* try to persist the session after authenticating through this method. # # For added security, this token is *ONLY* allowed for RSS and ATOM requests. You can change this with the configuration. You can also define if # it is allowed dynamically by defining a single_access_allowed? method in your controller. For example: # # class UsersController < ApplicationController # private # def single_access_allowed? # action_name == "index" # end # # Also, by default, this token is permanent. Meaning if the user changes their password, this token will remain the same. It will only change # when it is explicitly reset. # # You can modify all of this behavior with the Config sub module. module Params def self.included(klass) klass.class_eval do extend Config include InstanceMethods attr_accessor :single_access persist :persist_by_params end end # Configuration for the params / single access feature. module Config # Works exactly like cookie_key, but for params. So a user can login via params just like a cookie or a session. Your URL would look like: # # http://www.domain.com?user_credentials=my_single_access_key # # You can change the "user_credentials" key above with this configuration option. Keep in mind, just like cookie_key, if you supply an id # the id will be appended to the front. Check out cookie_key for more details. Also checkout the "Single Access / Private Feeds Access" section in the README. # # * <tt>Default:</tt> cookie_key # * <tt>Accepts:</tt> String def params_key(value = nil) rw_config(:params_key, value, cookie_key) end alias_method :params_key=, :params_key # Authentication is allowed via a single access token, but maybe this is something you don't want for your application as a whole. Maybe this is # something you only want for specific request types. Specify a list of allowed request types and single access authentication will only be # allowed for the ones you specify. # # * <tt>Default:</tt> ["application/rss+xml", "application/atom+xml"] # * <tt>Accepts:</tt> String of a request type, or :all or :any to allow single access authentication for any and all request types def single_access_allowed_request_types(value = nil) rw_config(:single_access_allowed_request_types, value, ["application/rss+xml", "application/atom+xml"]) end alias_method :single_access_allowed_request_types=, :single_access_allowed_request_types end # The methods available for an Authlogic::Session::Base object that make up the params / single access feature. module InstanceMethods private def persist_by_params return false if !params_enabled? self.unauthorized_record = search_for_record("find_by_single_access_token", params_credentials) self.single_access = valid? end def params_enabled? return false if !params_credentials || !klass.column_names.include?("single_access_token") return controller.single_access_allowed? if controller.responds_to_single_access_allowed? case single_access_allowed_request_types when Array single_access_allowed_request_types.include?(controller.request_content_type) || single_access_allowed_request_types.include?(:all) else [:all, :any].include?(single_access_allowed_request_types) end end def params_key build_key(self.class.params_key) end def single_access? single_access == true end def single_access_allowed_request_types self.class.single_access_allowed_request_types end def params_credentials controller.params[params_key] end end end end end
{ "content_hash": "a89ea9818b5faf211da7ca0e1fd1af11", "timestamp": "", "source": "github", "line_count": 101, "max_line_length": 166, "avg_line_length": 47.366336633663366, "alnum_prop": 0.6463210702341137, "repo_name": "winton/a_b_front_end", "id": "7994b427d41fa87d33b441b2a9324c0db6edb361", "size": "4784", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "vendor/authlogic/lib/authlogic/session/params.rb", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "74672" }, { "name": "Ruby", "bytes": "16952" } ], "symlink_target": "" }
package org.pmoo.monopoly; import java.io.FileReader; import java.util.Scanner; public class CargarFicheros { private static CargarFicheros miCargarFicheros = new CargarFicheros(); public static CargarFicheros getCargarFicheros(){ return miCargarFicheros; } /* * Pre: Tenemos un fichero que queremos leer * Post: Inicializamos el tablero con las casillas que cargamos. Inicializamos * la lista de cartas con las cartas que tenemos en el fichero. * Return: Devolvemos una lista con todas las propiedes del tablero */ public ListaCalles cargarFichero(FileReader pFichero){ Scanner sc = new Scanner(pFichero); ListaCalles lProp = new ListaCalles(); String arrayElementos[]; while (sc.hasNext()){ String linea1 = sc.nextLine(); String linea2; if (linea1.equals("CalleSalida")){ //salida,0 linea2 =sc.nextLine(); arrayElementos = linea2.split(","); Calle cSalida = new CalleSalida(arrayElementos[0],Integer.parseInt(arrayElementos[1])); Tablero.getMiTablero().anadirCasillaTablero(cSalida); } if (linea1.equals("CalleServicios")){ //Keyboard,12,150, linea2 = sc.nextLine(); arrayElementos = linea2.split(","); CalleServicios cServ = new CalleServicios(arrayElementos[0],Integer.parseInt(arrayElementos[1]),Integer.parseInt(arrayElementos[2])); //enviamos el nombre, posicion, precio Tablero.getMiTablero().anadirCasillaTablero(cServ); lProp.anadirCalle(cServ); } if (linea1.equals("CalleEstandar")){ //Sonic,6,100,AZUL,10 linea2 = sc.nextLine(); arrayElementos = linea2.split(","); CalleEstandar cE = new CalleEstandar(arrayElementos[0],Integer.parseInt(arrayElementos[1]),Integer.parseInt(arrayElementos[2]),arrayElementos[3],Integer.parseInt(arrayElementos[4])); //enviamos el nombre, posicion, precio,tipo,alquiler Tablero.getMiTablero().anadirCasillaTablero(cE); lProp.anadirCalle(cE); } if (linea1.equals("CalleImpuestos")){ //Insert Coin,38, linea2 = sc.nextLine(); arrayElementos = linea2.split(","); CalleImpuestos cI = new CalleImpuestos(arrayElementos[0],Integer.parseInt(arrayElementos[1])); //enviamos el nombre, posicion, Tablero.getMiTablero().anadirCasillaTablero(cI); //System.out.println("Añadido: "+cI.getNombre()+" . En la posicion :"+cI.getPosicion()); } if(linea1.equals("CalleCarcel")){ //carcel,10 linea2 = sc.nextLine(); arrayElementos = linea2.split(","); CalleCarcel cC = new CalleCarcel(arrayElementos[0],Integer.parseInt(arrayElementos[1])); //enviamos el nombre, posicion, Tablero.getMiTablero().anadirCasillaTablero(cC); //System.out.println("Añadido: "+cC.getNombre()+" . En la posicion :"+cC.getPosicion()); } if(linea1.equalsIgnoreCase("CalleEstaciones")){ //Commodore 64,5,200 linea2 = sc.nextLine(); arrayElementos = linea2.split(","); CalleEstaciones cEstacion= new CalleEstaciones(arrayElementos[0],Integer.parseInt(arrayElementos[1]),Integer.parseInt(arrayElementos[2])); //enviamos el nombre, posicion, precio Tablero.getMiTablero().anadirCasillaTablero(cEstacion); //System.out.println("Añadido: "+cEstacion.getNombre()+" . En la posicion :"+cEstacion.getPosicion()); } if (linea1.equalsIgnoreCase("CalleCarta")){ //Cofre del tesoro,2 linea2 = sc.nextLine(); arrayElementos = linea2.split(","); CalleCartas cCartas = new CalleCartas(arrayElementos[0],Integer.parseInt(arrayElementos[1])); Tablero.getMiTablero().anadirCasillaTablero(cCartas); //System.out.println("Añadido: "+cCartas.getNombre()+" . En la posicion :"+cCartas.getPosicion()); } if (linea1.equalsIgnoreCase("CalleParking")){ //Coin Return,20 linea2 = sc.nextLine(); arrayElementos = linea2.split(","); CalleParking cParking = new CalleParking(arrayElementos[0],Integer.parseInt(arrayElementos[1])); Tablero.getMiTablero().anadirCasillaTablero(cParking); //System.out.println("Añadido: "+cParking.getNombre()+" . En la posicion :"+cParking.getPosicion()); } if (linea1.equalsIgnoreCase("CartaSaldo")){ //120,cobra, Recibes la paga extra de navidad linea2 = sc.nextLine(); arrayElementos = linea2.split(","); CartaSaldo cSaldo = new CartaSaldo(Integer.parseInt(arrayElementos[0]),arrayElementos[1],arrayElementos[2]); //enviamos el dinero a modificar, si cobra o paga y el eunciado ListaCartas.getMiListaCartas().anadirCarta(cSaldo); //System.out.println("Añadida carta: "+cSaldo.getEnunciado()); } if (linea1.equalsIgnoreCase("CartaMovimiento")){ //30, Ve a la carcel. En caso de pasar por la calle de salida no cobras. linea2 = sc.nextLine(); arrayElementos = linea2.split(","); CartaMovimiento cMov = new CartaMovimiento(Integer.parseInt(arrayElementos[0]),arrayElementos[1]); ListaCartas.getMiListaCartas().anadirCarta(cMov); //System.out.println("Añadida carta: "+cMov.getEnunciado()); } } sc.close(); return lProp; } }
{ "content_hash": "1a73b49cca9af0c3df5e7a551f35c17e", "timestamp": "", "source": "github", "line_count": 122, "max_line_length": 186, "avg_line_length": 40.98360655737705, "alnum_prop": 0.7084, "repo_name": "txusyk/Monopoly_oop", "id": "50e86696750a80045facc9d3a41bccfae565c707", "size": "5007", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "CargarFicheros.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "95426" } ], "symlink_target": "" }
from .models import Page def show_pages_menu(context): pages_menu = Page.objects.filter(show_in_menu=True) foo = 3 return { 'pages_menu' : pages_menu, 'foo' : foo }
{ "content_hash": "ea7fb1ba45bd4c0df8265afeba92e215", "timestamp": "", "source": "github", "line_count": 7, "max_line_length": 55, "avg_line_length": 25.714285714285715, "alnum_prop": 0.65, "repo_name": "GoWebyCMS/goweby-core-dev", "id": "1ba1a685eb8fabcf101b62d49c68e52bf55429b6", "size": "180", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "pages/pages_context.py", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "28118" }, { "name": "JavaScript", "bytes": "1038" }, { "name": "Makefile", "bytes": "698" }, { "name": "Python", "bytes": "38340" } ], "symlink_target": "" }
title: CSP Facilitator Program nav: educate_nav --- # Become a Computer Science Principles Facilitator **2016 Application Update: The application process closed March 15th. We are reviewing applications and accepting facilitators on a rolling basis through April 22nd. We will update everyone of their acceptance status by April 22nd.** Code.org is looking to partner with experienced high school or college-level computer science educators to deliver multiple in-person workshops to local high school teachers teaching our year-long [Computer Science Principles](https://code.org/educate/csp) course. Facilitators apply and are accepted to a two-year train-the-trainer program. The ideal CSP Facilitator is an enthusiastic supporter of computer science education, possesses a connection to Code.org’s equity-focused mission and has a strong background in the [Computer Science Principles](https://code.org/educate/csp) course, preferably through past teaching experience. Experience mentoring teachers and managing/hosting professional development workshops a plus. **Applicants who meet the facilitator criteria who live in a region where Code.org has Professional Learning or District Partners will be prioritized for acceptance.** <br/> <br/> [<button>Apply now</button>](http://goo.gl/forms/UyRgRu9rnM)&nbsp;&nbsp;[<button>Learn more</button>](https://docs.google.com/document/d/1b0Fub3kdtuKMPFzKad_eGxOTjQbBWJT6dmHT24Ajd2E/pub) <br/> <br/> ## What is the CSP Facilitator Program? Code.org has developed a year-long introductory Advance Placement (AP®) Computer Science Principles course for high school students. The curriculum is written to support students and teachers new to the discipline with inquiry-based activities, videos, assessment support, and computing tools that have built-in tutorials and student pacing guides. CSP Facilitators accepted to the program will work with Code.org’s local Professional Learning Partner organization (a higher education institution, a nonprofit or a school district) to plan and lead at least 4, 1-day, in-person workshops for local teachers in their regions during the 2016-17 school year. For each workshop you host, CSP Facilitators will receive compensation for facilitating. We will also provide the venue, materials and food (at no cost) needed to host the workshop. ## How to become a CSP Facilitator? Become a CSP Facilitator by attending Code.org's all expense paid Facilitator Summit May 20-22, 2016 (New Orleans, LA) and attend a 5 day training workshop with teachers enrolled in Code.org’s CSP Professional Learning Program to to observe, support and reflect on sessions led by master CSP Facilitators. At the Summit and teacher training, Code.org will prepare facilitators to deliver 4 in-person workshops to local high school teachers enrolled in Code.org’s CSP Professional Learning Program throughout the 2016-2017 school year. Before applying please carefully review the the [criteria, requirements and commitments](https://docs.google.com/document/d/1b0Fub3kdtuKMPFzKad_eGxOTjQbBWJT6dmHT24Ajd2E/pub) for the CSP Facilitator program. <br/> <br/> [<button>Apply now</button>](http://goo.gl/forms/UyRgRu9rnM)&nbsp;&nbsp;[<button>Learn more</button>](https://docs.google.com/document/d/1b0Fub3kdtuKMPFzKad_eGxOTjQbBWJT6dmHT24Ajd2E/pub) <br/> <br/> We will review applications on a rolling basis until March 15, 2016. After that we will review applications once every 12 months. **This program is currently only operated in the US.** If you have additional questions regarding the Facilitator program or application contact [[email protected]]([email protected]).
{ "content_hash": "f67a57243c4b715a15dbd549951132f2", "timestamp": "", "source": "github", "line_count": 38, "max_line_length": 555, "avg_line_length": 96.07894736842105, "alnum_prop": 0.806628321007943, "repo_name": "dillia23/code-dot-org", "id": "b969ab8a324ad4a92cfbc6d5f8da1ecb85261e44", "size": "3664", "binary": false, "copies": "1", "ref": "refs/heads/staging", "path": "pegasus/sites.v3/code.org/public/educate/professional-learning/cs-principles-facilitator.md", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ApacheConf", "bytes": "93" }, { "name": "C++", "bytes": "4844" }, { "name": "CSS", "bytes": "2398346" }, { "name": "Cucumber", "bytes": "130717" }, { "name": "Emacs Lisp", "bytes": "2410" }, { "name": "HTML", "bytes": "9371177" }, { "name": "JavaScript", "bytes": "83773111" }, { "name": "PHP", "bytes": "2303483" }, { "name": "Perl", "bytes": "14821" }, { "name": "Processing", "bytes": "11068" }, { "name": "Prolog", "bytes": "679" }, { "name": "Python", "bytes": "124866" }, { "name": "Racket", "bytes": "131852" }, { "name": "Ruby", "bytes": "2070008" }, { "name": "Shell", "bytes": "37544" }, { "name": "SourcePawn", "bytes": "74109" } ], "symlink_target": "" }
package main import ( "fmt"; "time"; "strconv"; "math/rand"; sf "bitbucket.org/krepa098/gosfml2"; ) type snowball struct { Sprite *sf.RectangleShape; Location sf.Vector2f; Exists bool; } type levelone struct { ForegroundSprite *sf.RectangleShape; BackgroundSprite *sf.RectangleShape; Exists bool; } type levelzero struct { WelcomeText pointstext; Exists bool; } type leveltwo struct { EndText pointstext; Exists bool; } type snowman struct { Sprite *sf.RectangleShape; Up bool; Exists bool; } type pointstext struct { Text *sf.Text; Exists bool; } type music struct { Explosions []*sf.Music Throws []*sf.Music } type game struct { Gear int; RenderWindow *sf.RenderWindow; LevelZero levelzero; LevelTwo leveltwo; Snowball snowball; Level levelone; Snowman snowman; SnowmanBall snowball; Time int64; Speed int64; Points int; SnowmanPoints int; Font *sf.Font; PointsText pointstext; Music music; } func NewGame(title string, width uint, height uint, bpp uint, vsync bool) *game { game := new(game); game.RenderWindow = sf.NewRenderWindow(sf.VideoMode{width, height, bpp}, title, sf.StyleDefault, sf.DefaultContextSettings()); game.RenderWindow.SetVSyncEnabled(vsync); game.Gear = 0; // do some other initialization.. font, err := sf.NewFontFromFile("deja.ttf"); if err != nil { fmt.Printf("sf.NewFontFromFile() call failed: %v\n", err); } game.Font = font; game.InitGear(); rand.Seed(time.Now().UnixNano()); var Music music; Music.Explosions = make([]*sf.Music, 0); explosion, _ := sf.NewMusicFromFile("explosion1.wav"); Music.Explosions = append(Music.Explosions, explosion); explosion, _ = sf.NewMusicFromFile("explosion2.wav"); Music.Explosions = append(Music.Explosions, explosion); explosion, _ = sf.NewMusicFromFile("explosion3.wav"); Music.Explosions = append(Music.Explosions, explosion); explosion, _ = sf.NewMusicFromFile("explosion4.wav"); Music.Explosions = append(Music.Explosions, explosion); Music.Throws = make([]*sf.Music, 0); throw, _ := sf.NewMusicFromFile("throw1.wav"); Music.Throws = append(Music.Throws, throw); throw, _ = sf.NewMusicFromFile("throw2.wav"); Music.Throws = append(Music.Throws, throw); throw, _ = sf.NewMusicFromFile("throw3.wav"); Music.Throws = append(Music.Throws, throw); throw, _ = sf.NewMusicFromFile("throw4.wav"); Music.Throws = append(Music.Throws, throw); game.Music = Music; return game; } func (this *game) ChangeGearUp() { this.Gear += 1; this.InitGear(); } func (this *game) ChangeGearDown() { this.Gear -= 1; this.InitGear(); } func (this *game) InitGear() { if this.Gear == 0 { // the menu gear. var l levelzero; text, _ := sf.NewText(this.Font); l.WelcomeText.Text = text; l.WelcomeText.Text.SetString("Welcome to the Snowball fights! Your duty is to win snowmen.\n\nYou can throw snowballs with your mouse!\nRemember to hit the snowmen or they will throw snowballs at you.\n\n\nPress enter to start the game."); l.WelcomeText.Text.SetCharacterSize(24); l.WelcomeText.Text.SetColor(sf.Color{0,0,0,255}); l.WelcomeText.Text.SetPosition(sf.Vector2f{300,300}); l.WelcomeText.Exists = true; l.Exists = true; this.LevelZero = l; } else if this.Gear == 1 { // the playable gear. var l levelone; lForegroundSprite, err := sf.NewRectangleShape(); if err != nil { fmt.Printf("sf.newRectangleShape call failed: %v\n", err); } l.ForegroundSprite = lForegroundSprite; l.ForegroundSprite.SetSize(sf.Vector2f{float32(1920), float32(1080)}); l.ForegroundSprite.SetPosition(sf.Vector2f{0.0, 0.0}); lForegroundTexture, err := sf.NewTextureFromFile("first-level-foreground.png", nil); if err != nil { fmt.Printf("sf.NewTexturefromFile call failed: %v\n", err); } l.ForegroundSprite.SetTexture(lForegroundTexture, false); lBackgroundSprite, err := sf.NewRectangleShape(); if err != nil { fmt.Printf("sf.newRectangleShape call failed: %v\n", err); } l.BackgroundSprite = lBackgroundSprite; l.BackgroundSprite.SetSize(sf.Vector2f{float32(1920), float32(1080)}); l.BackgroundSprite.SetPosition(sf.Vector2f{0.0, 0.0}); lBackgroundTexture, err := sf.NewTextureFromFile("first-level-background.png", nil); if err != nil { fmt.Printf("sf.NewTexturefromFile call failed: %v\n", err); } l.BackgroundSprite.SetTexture(lBackgroundTexture, false); l.Exists = true; this.Level = l; var s snowman; sSprite, err := sf.NewRectangleShape(); if err != nil { fmt.Printf("sf.NewRectangleShape call failed: %v\n", err); } s.Sprite = sSprite; s.Sprite.SetSize(sf.Vector2f{184.0, 237.5}); s.Sprite.SetPosition(sf.Vector2f{1307.12, 624.84+50}); sTexture, err := sf.NewTextureFromFile("snowman.png", nil); if err != nil { fmt.Printf("sf.NewTextureFromFile call failed. %v\n", err); } s.Sprite.SetTexture(sTexture, false); s.Up = false; s.Exists = true; this.Snowman = s; this.Time = time.Now().UnixNano(); this.Points = 0; this.SnowmanPoints = 0; this.Speed = 4000000000; } else if this.Gear == 2 { var l leveltwo; text, _ := sf.NewText(this.Font); l.EndText.Text = text; if this.Points > this.SnowmanPoints { l.EndText.Text.SetString("You have fallen. You made " + strconv.Itoa(this.Points) + " points\nwhile the snowman made only " + strconv.Itoa(this.SnowmanPoints) + " points.\n\nYou won the game!\n\nPress Enter if you want to play again.\nPress Escape to close the game."); } else { l.EndText.Text.SetString("You have fallen. You made only " + strconv.Itoa(this.Points) + " points\nwhile the snowman made " + strconv.Itoa(this.SnowmanPoints) + " points.\n\nYou lost the game!\n\nPress Enter if you want to play again.\nPress Escape to close the game."); } l.EndText.Text.SetCharacterSize(24); l.EndText.Text.SetColor(sf.Color{0,0,0,255}); l.EndText.Text.SetPosition(sf.Vector2f{300,300}); l.EndText.Exists = true; l.Exists = true; this.LevelTwo = l; } } func (this *game) Update() { for event := this.RenderWindow.PollEvent(); event != nil; event = this.RenderWindow.PollEvent() { switch ev := event.(type) { case sf.EventKeyReleased: if ev.Code == sf.KeyEscape { this.RenderWindow.Close(); } if ev.Code == sf.KeyReturn && this.Gear == 0 { this.ChangeGearUp(); } if ev.Code == sf.KeyReturn && this.Gear == 2 { this.ChangeGearDown(); } case sf.EventClosed: this.RenderWindow.Close(); } } if this.Gear == 1 { if sf.IsMouseButtonPressed(sf.MouseLeft) == true { if this.Snowball.Exists == false { play := 1 + rand.Intn(4 - 1); this.Music.Throws[play].Play(); var sb snowball; sbSprite, err := sf.NewRectangleShape(); if err != nil { fmt.Printf("sf.NewRectangleShape call failed: %v\n", err); } sb.Sprite = sbSprite; sb.Location = this.RenderWindow.MapPixelToCoords(sf.MouseGetPosition(this.RenderWindow), this.RenderWindow.GetDefaultView()); sb.Sprite.SetSize(sf.Vector2f{float32(600), float32(600)}); sb.Sprite.SetPosition(sf.Vector2f{float32(sb.Location.X-300), float32(sb.Location.Y-300)}); sbTexture, err := sf.NewTextureFromFile("snowball.png", nil); if err != nil { fmt.Printf("sf.NewTextureFromFile call failed: %v\n", err); } sb.Sprite.SetTexture(sbTexture, false); sb.Exists = true; this.Snowball = sb; } } if this.Snowball.Exists == true { size := this.Snowball.Sprite.GetSize(); newSize := sf.Vector2f{size.X-size.X*0.075, size.Y-size.Y*0.075}; this.Snowball.Sprite.SetSize(newSize); this.Snowball.Sprite.SetOrigin(sf.Vector2f{newSize.X/2, newSize.Y/2}); this.Snowball.Sprite.Rotate(30.0); this.Snowball.Sprite.SetPosition(sf.Vector2f{this.Snowball.Location.X, this.Snowball.Location.Y}); if size.X < 5 && size.Y < 5 { this.Snowball.Exists = false; } if size.X < 50 && size.Y < 50 { sbRect := this.Snowball.Sprite.GetGlobalBounds(); smRect := this.Snowman.Sprite.GetGlobalBounds(); test, _ := sbRect.Intersects(smRect); if test == true { play := 1 + rand.Intn(4 - 1); this.Music.Explosions[play].Play(); sSize := this.Snowman.Sprite.GetSize(); sPos := this.Snowman.Sprite.GetPosition(); this.Snowman.Sprite.Move(sf.Vector2f{0, sSize.Y}); this.Snowman.Up = false; // add points to the player! points := 500 + rand.Intn(1000 - 500); this.Points += points; this.Speed -= int64(float64(this.Speed) * 0.05); this.Snowball.Exists = false; text, err := sf.NewText(this.Font); if err != nil { fmt.Printf("sf.NewText call failed: %v\n", err); } this.PointsText.Text = text; this.PointsText.Text.SetString("+" + strconv.Itoa(points)); this.PointsText.Text.SetCharacterSize(24); this.PointsText.Text.SetColor(sf.Color{0,0,0,255}); this.PointsText.Text.SetPosition(sPos); this.PointsText.Exists = true; } } } if this.SnowmanBall.Exists == true { size := this.SnowmanBall.Sprite.GetSize(); newSize := sf.Vector2f{size.X+size.X*0.075, size.Y+size.Y*0.075}; this.SnowmanBall.Sprite.SetSize(newSize); this.SnowmanBall.Sprite.SetOrigin(sf.Vector2f{newSize.X/2, newSize.Y/2}); this.SnowmanBall.Sprite.Rotate(30.0); if newSize.X > 1200 && newSize.Y > 1200 { play := 1 + rand.Intn(4 - 1); this.Music.Explosions[play].Play(); this.SnowmanBall.Exists = false; // Add snowman hits at you. this.SnowmanPoints += 500 + rand.Intn(1000 - 500); if this.SnowmanPoints > 5500 { // SNOWMAN WON THE GAME YOU FUCKING LOSER! this.ChangeGearUp(); this.Snowman.Exists = false; } } } if this.PointsText.Exists == true { OldPosition := this.PointsText.Text.GetPosition(); if OldPosition.Y > -100 { this.PointsText.Text.SetPosition(sf.Vector2f{OldPosition.X, OldPosition.Y-10}); } else { this.PointsText.Exists = false; } } if (this.Time + this.Speed) < time.Now().UnixNano() { if this.Snowman.Up == true { play := 1 + rand.Intn(4 - 1); this.Music.Throws[play].Play(); // Drop the snowman var sb snowball; sbSprite, err := sf.NewRectangleShape(); if err != nil { fmt.Printf("sf.NewRectangleShape call failed: %v\n", err); } sb.Sprite = sbSprite; sb.Location = this.RenderWindow.MapPixelToCoords(sf.MouseGetPosition(this.RenderWindow), this.RenderWindow.GetDefaultView()); sb.Sprite.SetSize(sf.Vector2f{float32(50), float32(50)}); snowmanPosition := this.Snowman.Sprite.GetPosition(); sb.Sprite.SetPosition(sf.Vector2f{snowmanPosition.X, snowmanPosition.Y}); sbTexture, err := sf.NewTextureFromFile("snowball.png", nil); if err != nil { fmt.Printf("sf.NewTextureFromFile call failed: %v\n", err); } sb.Sprite.SetTexture(sbTexture, false); sb.Exists = true; this.SnowmanBall = sb; sSize := this.Snowman.Sprite.GetSize(); this.Snowman.Sprite.Move(sf.Vector2f{0, sSize.Y}); this.Snowman.Up = false; } else { // Change the snowman position. random := 1 + rand.Intn(8 - 1); switch random { case 1: this.Snowman.Sprite.SetPosition(sf.Vector2f{112.03, 711.39+50}); case 2: this.Snowman.Sprite.SetPosition(sf.Vector2f{480.16, 757.38+50}); case 3: this.Snowman.Sprite.SetPosition(sf.Vector2f{654.89, 806.07+50}); case 4: this.Snowman.Sprite.SetPosition(sf.Vector2f{886.97, 765.49+50}); case 5: this.Snowman.Sprite.SetPosition(sf.Vector2f{1099.04, 684.34+50}); case 6: this.Snowman.Sprite.SetPosition(sf.Vector2f{1307.12, 624.84+50}); case 7: this.Snowman.Sprite.SetPosition(sf.Vector2f{1399.15, 627.54+50}); case 8: this.Snowman.Sprite.SetPosition(sf.Vector2f{1588.55, 691.11+50}); } // Raise the snowman sSize := this.Snowman.Sprite.GetSize(); this.Snowman.Sprite.Move(sf.Vector2f{0, -sSize.Y}); this.Snowman.Up = true; } this.Time = time.Now().UnixNano(); } } } func (this *game) Draw() { this.RenderWindow.Clear(sf.Color{255, 255, 255, 255}); renderStates := sf.DefaultRenderStates(); // drawing code here. if this.Gear == 0 { if this.LevelZero.Exists == true { if this.LevelZero.WelcomeText.Exists == true { this.LevelZero.WelcomeText.Text.Draw(this.RenderWindow, renderStates); } } } else if this.Gear == 1 { if this.Level.Exists == true { this.RenderWindow.Draw(this.Level.BackgroundSprite, renderStates); } if this.Snowman.Exists == true { this.RenderWindow.Draw(this.Snowman.Sprite, renderStates); } if this.Level.Exists == true { this.RenderWindow.Draw(this.Level.ForegroundSprite, renderStates); } if this.Snowball.Exists == true { this.RenderWindow.Draw(this.Snowball.Sprite, renderStates); } if this.SnowmanBall.Exists == true { this.RenderWindow.Draw(this.SnowmanBall.Sprite, renderStates); } if this.PointsText.Exists == true { this.PointsText.Text.Draw(this.RenderWindow, renderStates); } } else if this.Gear == 2 { if this.LevelTwo.Exists == true { if this.LevelTwo.EndText.Exists == true { this.LevelTwo.EndText.Text.Draw(this.RenderWindow, renderStates); } } } this.RenderWindow.Display(); }
{ "content_hash": "a9d50a4fd90d61900e5daa1ab0e5d8ca", "timestamp": "", "source": "github", "line_count": 395, "max_line_length": 273, "avg_line_length": 33.26329113924051, "alnum_prop": 0.677829362965218, "repo_name": "TMKCodes/LudumDareCompo-31", "id": "4113d0bdd5a7da8f9394b2f22c6e59f90de12463", "size": "13139", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "game.go", "mode": "33188", "license": "mit", "language": [ { "name": "Go", "bytes": "13560" } ], "symlink_target": "" }
package com.yahoo.athenz.zms.notification; import com.yahoo.athenz.common.server.notification.*; import com.yahoo.athenz.zms.DBService; import com.yahoo.athenz.zms.Role; import com.yahoo.athenz.zms.RoleMember; import com.yahoo.athenz.zms.ZMSTestUtils; import com.yahoo.athenz.zms.store.AthenzDomain; import com.yahoo.rdl.Timestamp; import org.mockito.ArgumentCaptor; import org.mockito.Mockito; import org.testng.Assert; import org.testng.annotations.Test; import java.util.*; import static com.yahoo.athenz.common.ServerCommonConsts.USER_DOMAIN_PREFIX; import static com.yahoo.athenz.common.server.notification.impl.MetricNotificationService.*; import static com.yahoo.athenz.zms.notification.ZMSNotificationManagerTest.getNotificationManager; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.*; import static org.mockito.Mockito.never; import static org.testng.Assert.*; import static org.testng.Assert.assertFalse; import static org.testng.AssertJUnit.assertEquals; public class PutRoleMembershipNotificationTaskTest { @Test public void testGenerateAndSendPostPutMembershipNotification() { DBService dbsvc = Mockito.mock(DBService.class); NotificationService mockNotificationService = Mockito.mock(NotificationService.class); NotificationServiceFactory testfact = () -> mockNotificationService; NotificationManager notificationManager = getNotificationManager(dbsvc, testfact); notificationManager.shutdown(); Map<String, String> details = new HashMap<>(); details.put("domain", "testdomain1"); details.put("role", "role1"); List<RoleMember> roleMembers = new ArrayList<>(); RoleMember rm = new RoleMember().setMemberName("user.domapprover1").setActive(true); roleMembers.add(rm); rm = new RoleMember().setMemberName("user.domapprover2").setActive(true); roleMembers.add(rm); rm = new RoleMember().setMemberName("dom2.testsvc1").setActive(true); roleMembers.add(rm); Role domainRole = new Role().setName("sys.auth.audit.domain:role.testdomain1").setRoleMembers(roleMembers); roleMembers = new ArrayList<>(); rm = new RoleMember().setMemberName("user.orgapprover1").setActive(true); roleMembers.add(rm); rm = new RoleMember().setMemberName("user.orgapprover2").setActive(true); roleMembers.add(rm); rm = new RoleMember().setMemberName("dom2.testsvc1").setActive(true); roleMembers.add(rm); Role orgRole = new Role().setName("sys.auth.audit.org:role.neworg").setRoleMembers(roleMembers); List<Role> roles1 = new ArrayList<>(); roles1.add(orgRole); AthenzDomain athenzDomain1 = new AthenzDomain("sys.auth.audit.org"); athenzDomain1.setRoles(roles1); List<Role> roles2 = new ArrayList<>(); roles2.add(domainRole); AthenzDomain athenzDomain2 = new AthenzDomain("sys.auth.audit.domain"); athenzDomain2.setRoles(roles2); Mockito.when(dbsvc.getRolesByDomain("sys.auth.audit.org")).thenReturn(athenzDomain1.getRoles()); Mockito.when(dbsvc.getRolesByDomain("sys.auth.audit.domain")).thenReturn(athenzDomain2.getRoles()); ArgumentCaptor<Notification> captor = ArgumentCaptor.forClass(Notification.class); Role notifyRole = new Role().setAuditEnabled(true).setSelfServe(false); List<Notification> notifications = new PutRoleMembershipNotificationTask("testdomain1", "neworg", notifyRole, details, dbsvc, USER_DOMAIN_PREFIX).getNotifications(); notificationManager.sendNotifications(notifications); Notification notification = new Notification(); notification.addRecipient("user.domapprover1") .addRecipient("user.domapprover2") .addRecipient("user.orgapprover1") .addRecipient("user.orgapprover2"); notification.addDetails("domain", "testdomain1").addDetails("role", "role1"); PutRoleMembershipNotificationTask.PutMembershipNotificationToEmailConverter converter = new PutRoleMembershipNotificationTask.PutMembershipNotificationToEmailConverter(); notification.setNotificationToEmailConverter(converter); PutRoleMembershipNotificationTask.PutMembershipNotificationToMetricConverter metricConverter = new PutRoleMembershipNotificationTask.PutMembershipNotificationToMetricConverter(); notification.setNotificationToMetricConverter(metricConverter); Mockito.verify(mockNotificationService, atLeastOnce()).notify(captor.capture()); Notification actualNotification = captor.getValue(); assertEquals(actualNotification, notification); } @Test public void testGenerateAndSendPostPutMembershipNotificationNullDomainRole() { DBService dbsvc = Mockito.mock(DBService.class); NotificationService mockNotificationService = Mockito.mock(NotificationService.class); NotificationServiceFactory testfact = () -> mockNotificationService; NotificationManager notificationManager = getNotificationManager(dbsvc, testfact); notificationManager.shutdown(); Map<String, String> details = new HashMap<>(); details.put("domain", "testdomain1"); details.put("role", "role1"); List<RoleMember> roleMembers = new ArrayList<>(); RoleMember rm = new RoleMember().setMemberName("user.orgapprover1").setActive(true); roleMembers.add(rm); rm = new RoleMember().setMemberName("user.orgapprover2").setActive(true); roleMembers.add(rm); rm = new RoleMember().setMemberName("dom2.testsvc1").setActive(true); roleMembers.add(rm); Role orgRole = new Role().setName("sys.auth.audit.org:role.neworg").setRoleMembers(roleMembers); List<Role> roles = new ArrayList<>(); roles.add(orgRole); AthenzDomain athenzDomain = new AthenzDomain("sys.auth.audit.org"); athenzDomain.setRoles(roles); Mockito.when(dbsvc.getRolesByDomain("sys.auth.audit.org")).thenReturn(athenzDomain.getRoles()); ArgumentCaptor<Notification> captor = ArgumentCaptor.forClass(Notification.class); Role notifyRole = new Role().setAuditEnabled(true).setSelfServe(false); List<Notification> notifications = new PutRoleMembershipNotificationTask("testdomain1", "neworg", notifyRole, details, dbsvc, USER_DOMAIN_PREFIX).getNotifications(); notificationManager.sendNotifications(notifications); Notification notification = new Notification(); notification .addRecipient("user.orgapprover1") .addRecipient("user.orgapprover2"); notification.addDetails("domain", "testdomain1").addDetails("role", "role1"); PutRoleMembershipNotificationTask.PutMembershipNotificationToEmailConverter converter = new PutRoleMembershipNotificationTask.PutMembershipNotificationToEmailConverter(); notification.setNotificationToEmailConverter(converter); PutRoleMembershipNotificationTask.PutMembershipNotificationToMetricConverter metricConverter = new PutRoleMembershipNotificationTask.PutMembershipNotificationToMetricConverter(); notification.setNotificationToMetricConverter(metricConverter); Mockito.verify(mockNotificationService, atLeastOnce()).notify(captor.capture()); Notification actualNotification = captor.getValue(); assertEquals(actualNotification, notification); } @Test public void testGenerateAndSendPostPutMembershipNotificationNullOrgRole() { DBService dbsvc = Mockito.mock(DBService.class); NotificationService mockNotificationService = Mockito.mock(NotificationService.class); NotificationServiceFactory testfact = () -> mockNotificationService; NotificationManager notificationManager = getNotificationManager(dbsvc, testfact); notificationManager.shutdown(); Map<String, String> details = new HashMap<>(); details.put("domain", "testdomain1"); details.put("role", "role1"); List<RoleMember> roleMembers = new ArrayList<>(); RoleMember rm = new RoleMember().setMemberName("user.domapprover1").setActive(true); roleMembers.add(rm); rm = new RoleMember().setMemberName("user.domapprover2").setActive(true); roleMembers.add(rm); rm = new RoleMember().setMemberName("dom2.testsvc1").setActive(true); roleMembers.add(rm); Role domainRole = new Role().setName("sys.auth.audit.domain:role.testdomain1").setRoleMembers(roleMembers); List<Role> roles = new ArrayList<>(); roles.add(domainRole); AthenzDomain athenzDomain = new AthenzDomain("sys.auth.audit.domain"); athenzDomain.setRoles(roles); Mockito.when(dbsvc.getRolesByDomain("sys.auth.audit.domain")).thenReturn(athenzDomain.getRoles()); ArgumentCaptor<Notification> captor = ArgumentCaptor.forClass(Notification.class); Role notifyRole = new Role().setAuditEnabled(true).setSelfServe(false); List<Notification> notifications = new PutRoleMembershipNotificationTask("testdomain1", "neworg", notifyRole, details, dbsvc, USER_DOMAIN_PREFIX).getNotifications(); notificationManager.sendNotifications(notifications); Notification notification = new Notification(); notification .addRecipient("user.domapprover1") .addRecipient("user.domapprover2"); notification.addDetails("domain", "testdomain1").addDetails("role", "role1"); PutRoleMembershipNotificationTask.PutMembershipNotificationToEmailConverter converter = new PutRoleMembershipNotificationTask.PutMembershipNotificationToEmailConverter(); notification.setNotificationToEmailConverter(converter); PutRoleMembershipNotificationTask.PutMembershipNotificationToMetricConverter metricConverter = new PutRoleMembershipNotificationTask.PutMembershipNotificationToMetricConverter(); notification.setNotificationToMetricConverter(metricConverter); Mockito.verify(mockNotificationService, atLeastOnce()).notify(captor.capture()); Notification actualNotification = captor.getValue(); assertEquals(actualNotification, notification); } @Test public void testGenerateAndSendPostPutMembershipNotificationSelfserve() { DBService dbsvc = Mockito.mock(DBService.class); NotificationService mockNotificationService = Mockito.mock(NotificationService.class); NotificationServiceFactory testfact = () -> mockNotificationService; NotificationManager notificationManager = getNotificationManager(dbsvc, testfact); notificationManager.shutdown(); Map<String, String> details = new HashMap<>(); details.put("domain", "testdomain1"); details.put("role", "role1"); List<RoleMember> roleMembers = new ArrayList<>(); RoleMember rm = new RoleMember().setMemberName("user.domadmin1").setActive(true); roleMembers.add(rm); rm = new RoleMember().setMemberName("user.domadmin2").setActive(true); roleMembers.add(rm); rm = new RoleMember().setMemberName("dom2.testsvc1").setActive(true); roleMembers.add(rm); Role adminRole = new Role().setName("testdomain1:role.admin").setRoleMembers(roleMembers); List<Role> roles = new ArrayList<>(); roles.add(adminRole); AthenzDomain athenzDomain = new AthenzDomain("testdomain1"); athenzDomain.setRoles(roles); Mockito.when(dbsvc.getRolesByDomain("testdomain1")).thenReturn(athenzDomain.getRoles()); ArgumentCaptor<Notification> captor = ArgumentCaptor.forClass(Notification.class); Role notifyRole = new Role().setAuditEnabled(false).setSelfServe(true); List<Notification> notifications = new PutRoleMembershipNotificationTask("testdomain1", "neworg", notifyRole, details, dbsvc, USER_DOMAIN_PREFIX).getNotifications(); notificationManager.sendNotifications(notifications); Notification notification = new Notification(); notification .addRecipient("user.domadmin1") .addRecipient("user.domadmin2"); notification.addDetails("domain", "testdomain1").addDetails("role", "role1"); PutRoleMembershipNotificationTask.PutMembershipNotificationToEmailConverter converter = new PutRoleMembershipNotificationTask.PutMembershipNotificationToEmailConverter(); notification.setNotificationToEmailConverter(converter); PutRoleMembershipNotificationTask.PutMembershipNotificationToMetricConverter metricConverter = new PutRoleMembershipNotificationTask.PutMembershipNotificationToMetricConverter(); notification.setNotificationToMetricConverter(metricConverter); Mockito.verify(mockNotificationService, atLeastOnce()).notify(captor.capture()); Notification actualNotification = captor.getValue(); assertEquals(actualNotification, notification); } @Test public void testGenerateAndSendPostPutMembershipNotificationNotifyRoles() { DBService dbsvc = Mockito.mock(DBService.class); NotificationService mockNotificationService = Mockito.mock(NotificationService.class); NotificationServiceFactory testfact = () -> mockNotificationService; NotificationManager notificationManager = getNotificationManager(dbsvc, testfact); notificationManager.shutdown(); Map<String, String> details = new HashMap<>(); details.put("domain", "testdomain1"); details.put("role", "role1"); List<RoleMember> roleMembers = new ArrayList<>(); RoleMember rm = new RoleMember().setMemberName("user.domapprover1").setActive(true); roleMembers.add(rm); rm = new RoleMember().setMemberName("user.domapprover2").setActive(true); roleMembers.add(rm); rm = new RoleMember().setMemberName("dom2.testsvc1").setActive(true); roleMembers.add(rm); Role domainRole = new Role().setName("athenz:role.approvers").setRoleMembers(roleMembers); roleMembers = new ArrayList<>(); rm = new RoleMember().setMemberName("user.approver1").setActive(true); roleMembers.add(rm); rm = new RoleMember().setMemberName("user.approver2").setActive(true); roleMembers.add(rm); rm = new RoleMember().setMemberName("dom2.testsvc1").setActive(true); roleMembers.add(rm); Role localRole = new Role().setName("testdomain1:role.notify").setRoleMembers(roleMembers); List<Role> roles1 = new ArrayList<>(); roles1.add(localRole); AthenzDomain athenzDomain1 = new AthenzDomain("coretech"); athenzDomain1.setRoles(roles1); List<Role> roles2 = new ArrayList<>(); roles2.add(domainRole); AthenzDomain athenzDomain2 = new AthenzDomain("athenz"); athenzDomain2.setRoles(roles2); Mockito.when(dbsvc.getRolesByDomain("testdomain1")).thenReturn(athenzDomain1.getRoles()); Mockito.when(dbsvc.getRolesByDomain("athenz")).thenReturn(athenzDomain2.getRoles()); ArgumentCaptor<Notification> captor = ArgumentCaptor.forClass(Notification.class); Role notifyRole = new Role().setAuditEnabled(false).setSelfServe(false).setReviewEnabled(true) .setNotifyRoles("athenz:role.approvers,notify"); List<Notification> notifications = new PutRoleMembershipNotificationTask("testdomain1", "neworg", notifyRole, details, dbsvc, USER_DOMAIN_PREFIX).getNotifications(); notificationManager.sendNotifications(notifications); Notification notification = new Notification(); notification.addRecipient("user.domapprover1") .addRecipient("user.domapprover2") .addRecipient("user.approver1") .addRecipient("user.approver2"); notification.addDetails("domain", "testdomain1").addDetails("role", "role1"); PutRoleMembershipNotificationTask.PutMembershipNotificationToEmailConverter converter = new PutRoleMembershipNotificationTask.PutMembershipNotificationToEmailConverter(); notification.setNotificationToEmailConverter(converter); PutRoleMembershipNotificationTask.PutMembershipNotificationToMetricConverter metricConverter = new PutRoleMembershipNotificationTask.PutMembershipNotificationToMetricConverter(); notification.setNotificationToMetricConverter(metricConverter); Mockito.verify(mockNotificationService, atLeastOnce()).notify(captor.capture()); Notification actualNotification = captor.getValue(); assertEquals(actualNotification, notification); assertEquals(actualNotification, notification); } @Test public void testGenerateAndSendPostPutMembershipNotificationInvalidType() { DBService dbsvc = Mockito.mock(DBService.class); Mockito.when(dbsvc.getPendingMembershipApproverRoles(1)).thenReturn(Collections.emptySet()); NotificationService mockNotificationService = Mockito.mock(NotificationService.class); NotificationServiceFactory testfact = () -> mockNotificationService; NotificationManager notificationManager = getNotificationManager(dbsvc, testfact); notificationManager.shutdown(); Role notifyRole = new Role().setAuditEnabled(false).setSelfServe(false); List<Notification> notifications = new PutRoleMembershipNotificationTask("testdomain1", "neworg", notifyRole, null, dbsvc, USER_DOMAIN_PREFIX).getNotifications(); notificationManager.sendNotifications(notifications); Mockito.verify(mockNotificationService, times(0)).notify(any()); } @Test public void testGenerateAndSendPostPutMembershipNotificationNullNotificationSvc() { DBService dbsvc = Mockito.mock(DBService.class); Mockito.when(dbsvc.getPendingMembershipApproverRoles(1)).thenReturn(Collections.emptySet()); NotificationServiceFactory testfact = () -> null; NotificationService mockNotificationService = Mockito.mock(NotificationService.class); NotificationManager notificationManager = getNotificationManager(dbsvc, testfact); notificationManager.shutdown(); Role notifyRole = new Role().setAuditEnabled(false).setSelfServe(false); List<Notification> notifications = new PutRoleMembershipNotificationTask("testdomain1", "neworg", notifyRole, null, dbsvc, USER_DOMAIN_PREFIX).getNotifications(); notificationManager.sendNotifications(notifications); verify(mockNotificationService, never()).notify(any(Notification.class)); } @Test public void testDescription() { DBService dbsvc = Mockito.mock(DBService.class); PutRoleMembershipNotificationTask putMembershipNotificationTask = new PutRoleMembershipNotificationTask( "testDomain", "testOrg", new Role(), new HashMap<>(), dbsvc, USER_DOMAIN_PREFIX); String description = putMembershipNotificationTask.getDescription(); assertEquals("Membership Approval Notification", description); } @Test public void testGetEmailBody() { System.setProperty("athenz.notification_workflow_url", "https://athenz.example.com/workflow"); System.setProperty("athenz.notification_support_text", "#Athenz slack channel"); System.setProperty("athenz.notification_support_url", "https://link.to.athenz.channel.com"); Map<String, String> details = new HashMap<>(); details.put("domain", "dom1"); details.put("role", "role1"); details.put("member", "user.member1"); details.put("reason", "test reason"); details.put("requester", "user.requester"); Notification notification = new Notification(); notification.setDetails(details); PutRoleMembershipNotificationTask.PutMembershipNotificationToEmailConverter converter = new PutRoleMembershipNotificationTask.PutMembershipNotificationToEmailConverter(); NotificationEmail notificationAsEmail = converter.getNotificationAsEmail(notification); String body = notificationAsEmail.getBody(); assertNotNull(body); assertTrue(body.contains("dom1")); assertTrue(body.contains("role1")); assertTrue(body.contains("user.member1")); assertTrue(body.contains("test reason")); assertTrue(body.contains("user.requester")); assertTrue(body.contains("https://athenz.example.com/workflow")); // Make sure support text and url do not appear assertFalse(body.contains("slack")); assertFalse(body.contains("link.to.athenz.channel.com")); System.clearProperty("athenz.notification_workflow_url"); System.clearProperty("notification_support_text"); System.clearProperty("notification_support_url"); } @Test public void getEmailSubject() { Notification notification = new Notification(); PutRoleMembershipNotificationTask.PutMembershipNotificationToEmailConverter converter = new PutRoleMembershipNotificationTask.PutMembershipNotificationToEmailConverter(); NotificationEmail notificationAsEmail = converter.getNotificationAsEmail(notification); String subject = notificationAsEmail.getSubject(); assertEquals(subject, "Membership Approval Notification"); } @Test public void testGetNotificationAsMetric() { Map<String, String> details = new HashMap<>(); details.put("domain", "dom1"); details.put("role", "role1"); details.put("member", "user.member1"); details.put("reason", "test reason"); details.put("requester", "user.requester"); Notification notification = new Notification(); notification.setDetails(details); PutRoleMembershipNotificationTask.PutMembershipNotificationToMetricConverter converter = new PutRoleMembershipNotificationTask.PutMembershipNotificationToMetricConverter(); NotificationMetric notificationAsMetrics = converter.getNotificationAsMetrics(notification, Timestamp.fromMillis(System.currentTimeMillis())); String[] record = new String[] { METRIC_NOTIFICATION_TYPE_KEY, "role_membership_approval", METRIC_NOTIFICATION_DOMAIN_KEY, "dom1", METRIC_NOTIFICATION_ROLE_KEY, "role1", METRIC_NOTIFICATION_MEMBER_KEY, "user.member1", METRIC_NOTIFICATION_REASON_KEY, "test reason", METRIC_NOTIFICATION_REQUESTER_KEY, "user.requester" }; List<String[]> expectedAttributes = new ArrayList<>(); expectedAttributes.add(record); assertEquals(new NotificationMetric(expectedAttributes), notificationAsMetrics); } }
{ "content_hash": "d36641d6ae1e0fc6637a89e6692e0225", "timestamp": "", "source": "github", "line_count": 470, "max_line_length": 186, "avg_line_length": 48.82553191489362, "alnum_prop": 0.7208471326477253, "repo_name": "yahoo/athenz", "id": "11ad1092169a10fc6f48f1f8b15a41b9c44ebdb2", "size": "23544", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "servers/zms/src/test/java/com/yahoo/athenz/zms/notification/PutRoleMembershipNotificationTaskTest.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "45440" }, { "name": "Dockerfile", "bytes": "11572" }, { "name": "Go", "bytes": "925131" }, { "name": "HTML", "bytes": "38533" }, { "name": "Java", "bytes": "7064425" }, { "name": "JavaScript", "bytes": "498576" }, { "name": "Makefile", "bytes": "23932" }, { "name": "Perl", "bytes": "951" }, { "name": "Shell", "bytes": "82793" }, { "name": "TSQL", "bytes": "18162" } ], "symlink_target": "" }
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("10.CheckPrime")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("10.CheckPrime")] [assembly: AssemblyCopyright("Copyright © 2016")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("e03f6f0c-9127-4b2a-ac0d-043e99add708")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
{ "content_hash": "b3fa87876ec969ddc96bbf072a6f4d55", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 84, "avg_line_length": 38.861111111111114, "alnum_prop": 0.7441029306647605, "repo_name": "sevdalin/Software-University-SoftUni", "id": "2ed417a7f80264618c85527c40117a109c2d2c6c", "size": "1402", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Programming-Basics/09. Advanced Loops Exercises/10.CheckPrime/Properties/AssemblyInfo.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP", "bytes": "388" }, { "name": "C#", "bytes": "3998101" }, { "name": "CSS", "bytes": "161101" }, { "name": "HTML", "bytes": "261529" }, { "name": "Java", "bytes": "20909" }, { "name": "JavaScript", "bytes": "609440" }, { "name": "PHP", "bytes": "16185" }, { "name": "PLSQL", "bytes": "723" }, { "name": "PLpgSQL", "bytes": "4714" }, { "name": "PowerShell", "bytes": "471" }, { "name": "Ruby", "bytes": "1030" }, { "name": "SQLPL", "bytes": "3383" }, { "name": "Smalltalk", "bytes": "2065" } ], "symlink_target": "" }
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { Routes, RouterModule } from '@angular/router'; import { CloudAssetsComponent } from './cloud-assets.component'; import { BuildImageSourcePipe, IconAssetTooltipTextPipe, VariantIsAlphaPipe, } from './icon-asset-tooltip-text.pipe'; import { CdCommonModule } from 'cd-common'; const ROUTES: Routes = [ { path: '', component: CloudAssetsComponent, }, ]; @NgModule({ declarations: [ CloudAssetsComponent, BuildImageSourcePipe, IconAssetTooltipTextPipe, VariantIsAlphaPipe, ], imports: [CommonModule, CdCommonModule, RouterModule.forChild(ROUTES)], }) export class CloudAssetsModule {}
{ "content_hash": "0d84aa0dbd2dc899e63d027bc3f1378c", "timestamp": "", "source": "github", "line_count": 31, "max_line_length": 73, "avg_line_length": 23.35483870967742, "alnum_prop": 0.7209944751381215, "repo_name": "google/web-prototyping-tool", "id": "3bd3eb462ede56837ea24e687a9ff18a72581c23", "size": "1318", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "src/app/routes/cloud-assets/cloud-assets.module.ts", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "12684" }, { "name": "HTML", "bytes": "403011" }, { "name": "JavaScript", "bytes": "98960" }, { "name": "SCSS", "bytes": "552209" }, { "name": "TypeScript", "bytes": "5529342" } ], "symlink_target": "" }
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eu_ES" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About WildBeastBitcoin</source> <translation>WildBeastBitcoin-i buruz</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;WildBeastBitcoin&lt;/b&gt; version</source> <translation>&lt;b&gt;WildBeastBitcoin&lt;/b&gt; bertsioa</translation> </message> <message> <location line="+57"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source> <translation type="unfinished"/> </message> <message> <location filename="../aboutdialog.cpp" line="+14"/> <source>Copyright</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The WildBeastBitcoin developers</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>Helbide-liburua</translation> </message> <message> <location line="+19"/> <source>Double-click to edit address or label</source> <translation>Klik bikoitza helbidea edo etiketa editatzeko</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Sortu helbide berria</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Kopiatu hautatutako helbidea sistemaren arbelera</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation type="unfinished"/> </message> <message> <location filename="../addressbookpage.cpp" line="+63"/> <source>These are your WildBeastBitcoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>&amp;Copy Address</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation>Erakutsi &amp;QR kodea</translation> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a WildBeastBitcoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Verify a message to ensure it was signed with a specified WildBeastBitcoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>&amp;Ezabatu</translation> </message> <message> <location filename="../addressbookpage.cpp" line="-5"/> <source>These are your WildBeastBitcoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Copy &amp;Label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send &amp;Coins</source> <translation type="unfinished"/> </message> <message> <location line="+260"/> <source>Export Address Book Data</source> <translation>Esportatu Helbide-liburuaren datuak</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Komaz bereizitako artxiboa (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>Errorea esportatzean</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Ezin idatzi %1 artxiboan.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>Etiketa</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Helbidea</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(etiketarik ez)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Sartu pasahitza</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Pasahitz berria</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Errepikatu pasahitz berria</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Sartu zorrorako pasahitz berria.&lt;br/&gt; Mesedez erabili &lt;b&gt;gutxienez ausazko 10 karaktere&lt;/b&gt;, edo &lt;b&gt;gutxienez zortzi hitz&lt;/b&gt; pasahitza osatzeko.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Enkriptatu zorroa</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Eragiketa honek zorroaren pasahitza behar du zorroa desblokeatzeko.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Desblokeatu zorroa</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Eragiketa honek zure zorroaren pasahitza behar du, zorroa desenkriptatzeko.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Desenkriptatu zorroa</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Aldatu pasahitza</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Sartu zorroaren pasahitz zaharra eta berria.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Berretsi zorroaren enkriptazioa</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR RONPAULCOINS&lt;/b&gt;!</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation type="unfinished"/> </message> <message> <location line="-130"/> <location line="+58"/> <source>Wallet encrypted</source> <translation>Zorroa enkriptatuta</translation> </message> <message> <location line="-56"/> <source>WildBeastBitcoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your wildbeastbitcoins from being stolen by malware infecting your computer.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>Zorroaren enkriptazioak huts egin du</translation> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Zorroaren enkriptazioak huts egin du barne-errore baten ondorioz. Zure zorroa ez da enkriptatu.</translation> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation>Eman dituzun pasahitzak ez datoz bat.</translation> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation>Zorroaren desblokeoak huts egin du</translation> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Zorroa desenkriptatzeko sartutako pasahitza okerra da.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Zorroaren desenkriptazioak huts egin du</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation type="unfinished"/> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+233"/> <source>Sign &amp;message...</source> <translation type="unfinished"/> </message> <message> <location line="+280"/> <source>Synchronizing with network...</source> <translation>Sarearekin sinkronizatzen...</translation> </message> <message> <location line="-349"/> <source>&amp;Overview</source> <translation>&amp;Gainbegiratu</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>Ikusi zorroaren begirada orokorra</translation> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation>&amp;Transakzioak</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>Ikusi transakzioen historia</translation> </message> <message> <location line="+7"/> <source>Edit the list of stored addresses and labels</source> <translation>Editatu gordetako helbide eta etiketen zerrenda</translation> </message> <message> <location line="-14"/> <source>Show the list of addresses for receiving payments</source> <translation>Erakutsi ordainketak jasotzeko helbideen zerrenda</translation> </message> <message> <location line="+31"/> <source>E&amp;xit</source> <translation>Irten</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Irten aplikaziotik</translation> </message> <message> <location line="+4"/> <source>Show information about WildBeastBitcoin</source> <translation>Erakutsi WildBeastBitcoin-i buruzko informazioa</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>&amp;Qt-ari buruz</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Erakutsi WildBeastBitcoin-i buruzko informazioa</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;Aukerak...</translation> </message> <message> <location line="+6"/> <source>&amp;Encrypt Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation type="unfinished"/> </message> <message> <location line="+285"/> <source>Importing blocks from disk...</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Reindexing blocks on disk...</source> <translation type="unfinished"/> </message> <message> <location line="-347"/> <source>Send coins to a WildBeastBitcoin address</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Modify configuration options for WildBeastBitcoin</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Backup wallet to another location</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>Aldatu zorroa enkriptatzeko erabilitako pasahitza</translation> </message> <message> <location line="+6"/> <source>&amp;Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation type="unfinished"/> </message> <message> <location line="-4"/> <source>&amp;Verify message...</source> <translation type="unfinished"/> </message> <message> <location line="-165"/> <location line="+530"/> <source>WildBeastBitcoin</source> <translation type="unfinished"/> </message> <message> <location line="-530"/> <source>Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+101"/> <source>&amp;Send</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Addresses</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>&amp;About WildBeastBitcoin</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show or hide the main Window</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Encrypt the private keys that belong to your wallet</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Sign messages with your WildBeastBitcoin addresses to prove you own them</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Verify messages to ensure they were signed with specified WildBeastBitcoin addresses</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>&amp;File</source> <translation>&amp;Artxiboa</translation> </message> <message> <location line="+7"/> <source>&amp;Settings</source> <translation>&amp;Ezarpenak</translation> </message> <message> <location line="+6"/> <source>&amp;Help</source> <translation>&amp;Laguntza</translation> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation>Fitxen tresna-barra</translation> </message> <message> <location line="+17"/> <location line="+10"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> <message> <location line="+47"/> <source>WildBeastBitcoin client</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+141"/> <source>%n active connection(s) to WildBeastBitcoin network</source> <translation><numerusform>Konexio aktibo %n WildBeastBitcoin-en sarera</numerusform><numerusform>%n konexio aktibo WildBeastBitcoin-en sarera</numerusform></translation> </message> <message> <location line="+22"/> <source>No block source available...</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Processed %1 of %2 (estimated) blocks of transaction history.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Processed %1 blocks of transaction history.</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+20"/> <source>%n hour(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Last received block was generated %1 ago.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Error</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+70"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation type="unfinished"/> </message> <message> <location line="-140"/> <source>Up to date</source> <translation>Egunean</translation> </message> <message> <location line="+31"/> <source>Catching up...</source> <translation>Eguneratzen...</translation> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Sent transaction</source> <translation>Bidalitako transakzioa</translation> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation>Sarrerako transakzioa</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation type="unfinished"/> </message> <message> <location line="+33"/> <location line="+23"/> <source>URI handling</source> <translation type="unfinished"/> </message> <message> <location line="-23"/> <location line="+23"/> <source>URI can not be parsed! This can be caused by an invalid WildBeastBitcoin address or malformed URI parameters.</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Zorroa &lt;b&gt;enkriptatuta&lt;/b&gt; eta &lt;b&gt;desblokeatuta&lt;/b&gt; dago une honetan</translation> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>Zorroa &lt;b&gt;enkriptatuta&lt;/b&gt; eta &lt;b&gt;blokeatuta&lt;/b&gt; dago une honetan</translation> </message> <message> <location filename="../bitcoin.cpp" line="+111"/> <source>A fatal error occurred. WildBeastBitcoin can no longer continue safely and will quit.</source> <translation type="unfinished"/> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+104"/> <source>Network Alert</source> <translation type="unfinished"/> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>Editatu helbidea</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Etiketa</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation>Helbide-liburuko sarrera honekin lotutako etiketa</translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>&amp;Helbidea</translation> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation>Helbide-liburuko sarrera honekin lotutako helbidea. Bidaltzeko helbideeta soilik alda daiteke.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+21"/> <source>New receiving address</source> <translation>Jasotzeko helbide berria</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>Bidaltzeko helbide berria</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>Editatu jasotzeko helbidea</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>Editatu bidaltzeko helbidea</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>Sartu berri den helbidea, &quot;%1&quot;, helbide-liburuan dago jadanik.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid WildBeastBitcoin address.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Ezin desblokeatu zorroa.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>Gako berriaren sorrerak huts egin du.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+424"/> <location line="+12"/> <source>WildBeastBitcoin-Qt</source> <translation type="unfinished"/> </message> <message> <location line="-12"/> <source>version</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Usage:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>UI options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation type="unfinished"/> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>Aukerak</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Automatically start WildBeastBitcoin after logging in to the system.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Start WildBeastBitcoin on system login</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Reset all client options to default.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Reset Options</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>&amp;Network</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Automatically open the WildBeastBitcoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Connect to the WildBeastBitcoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation type="unfinished"/> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting WildBeastBitcoin.</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Whether to show WildBeastBitcoin addresses in the transaction list or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="+53"/> <source>default</source> <translation type="unfinished"/> </message> <message> <location line="+130"/> <source>Confirm options reset</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Some settings may require a client restart to take effect.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Do you want to proceed?</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <location line="+9"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting WildBeastBitcoin.</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation type="unfinished"/> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>Inprimakia</translation> </message> <message> <location line="+50"/> <location line="+166"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the WildBeastBitcoin network after a connection is established, but this process has not completed yet.</source> <translation type="unfinished"/> </message> <message> <location line="-124"/> <source>Balance:</source> <translation>Saldoa:</translation> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation>Konfirmatu gabe:</translation> </message> <message> <location line="-78"/> <source>Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+107"/> <source>Immature:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation type="unfinished"/> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Azken transakzioak&lt;/b&gt;</translation> </message> <message> <location line="-101"/> <source>Your current balance</source> <translation>Zure uneko saldoa</translation> </message> <message> <location line="+29"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation>Oraindik konfirmatu gabe daudenez, uneko saldoab kontatu gabe dagoen transakzio kopurua</translation> </message> <message> <location filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation type="unfinished"/> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start wildbeastbitcoin: click-to-pay handler</source> <translation type="unfinished"/> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation type="unfinished"/> </message> <message> <location line="+56"/> <source>Amount:</source> <translation>Kopurua</translation> </message> <message> <location line="-44"/> <source>Label:</source> <translation>&amp;Etiketa:</translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation>Mezua</translation> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation>Gorde honela...</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation type="unfinished"/> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+339"/> <source>N/A</source> <translation type="unfinished"/> </message> <message> <location line="-217"/> <source>Client version</source> <translation type="unfinished"/> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation type="unfinished"/> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Startup time</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Network</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>On testnet</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Block chain</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Last block time</source> <translation type="unfinished"/> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Show the WildBeastBitcoin-Qt help message to get a list with possible WildBeastBitcoin command-line options.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation type="unfinished"/> </message> <message> <location line="-260"/> <source>Build date</source> <translation type="unfinished"/> </message> <message> <location line="-104"/> <source>WildBeastBitcoin - Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>WildBeastBitcoin Core</source> <translation type="unfinished"/> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Open the WildBeastBitcoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation type="unfinished"/> </message> <message> <location line="+102"/> <source>Clear console</source> <translation type="unfinished"/> </message> <message> <location filename="../rpcconsole.cpp" line="-30"/> <source>Welcome to the WildBeastBitcoin RPC console.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+124"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>Bidali txanponak</translation> </message> <message> <location line="+50"/> <source>Send to multiple recipients at once</source> <translation>Bidali hainbat jasotzaileri batera</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Balance:</source> <translation>Saldoa:</translation> </message> <message> <location line="+10"/> <source>123.456 BTC</source> <translation>123.456 BTC</translation> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>Berretsi bidaltzeko ekintza</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-59"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>&lt;b&gt;%1&lt;/b&gt; honi: %2 (%3)</translation> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>Berretsi txanponak bidaltzea</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation>Ziur zaude %1 bidali nahi duzula?</translation> </message> <message> <location line="+0"/> <source> and </source> <translation>eta</translation> </message> <message> <location line="+23"/> <source>The recipient address is not valid, please recheck.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>Ordaintzeko kopurua 0 baino handiagoa izan behar du.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed!</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation>Inprimakia</translation> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>K&amp;opurua:</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>Ordaindu &amp;honi:</translation> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation type="unfinished"/> </message> <message> <location line="+60"/> <location filename="../sendcoinsentry.cpp" line="+26"/> <source>Enter a label for this address to add it to your address book</source> <translation>Sartu etiketa bat helbide honetarako, eta gehitu zure helbide-liburuan</translation> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation>&amp;Etiketa:</translation> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation>Itsatsi helbidea arbeletik</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation>Ezabatu jasotzaile hau</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a WildBeastBitcoin address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Sartu Bitocin helbide bat (adb.: Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2) </translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>&amp;Sign Message</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose an address from the address book</source> <translation type="unfinished"/> </message> <message> <location line="-203"/> <location line="+213"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="-203"/> <source>Paste address from clipboard</source> <translation>Itsatsi helbidea arbeletik</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Signature</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Copy the current signature to the system clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this WildBeastBitcoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Reset all sign message fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="-87"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified WildBeastBitcoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Verify &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Reset all verify message fields</source> <translation type="unfinished"/> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a WildBeastBitcoin address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source> <translation>Sartu Bitocin helbide bat (adb.: Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2) </translation> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Enter WildBeastBitcoin signature</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation type="unfinished"/> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation type="unfinished"/> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation type="unfinished"/> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation type="unfinished"/> </message> </context> <context> <name>SplashScreen</name> <message> <location filename="../splashscreen.cpp" line="+22"/> <source>The WildBeastBitcoin developers</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>[testnet]</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+20"/> <source>Open until %1</source> <translation>Zabalik %1 arte</translation> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/konfirmatu gabe</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 konfirmazioak</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Data</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Generated</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation type="unfinished"/> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>label</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation type="unfinished"/> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Net amount</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Message</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Comment</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Debug information</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Transaction</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Inputs</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Amount</source> <translation>Kopurua</translation> </message> <message> <location line="+1"/> <source>true</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>false</source> <translation type="unfinished"/> </message> <message> <location line="-209"/> <source>, has not been successfully broadcast yet</source> <translation>, ez da arrakastaz emititu oraindik</translation> </message> <message numerus="yes"> <location line="-35"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+70"/> <source>unknown</source> <translation>ezezaguna</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>Transakzioaren xehetasunak</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>Panel honek transakzioaren deskribapen xehea erakusten du</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+225"/> <source>Date</source> <translation>Data</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Mota</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Helbidea</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>Kopurua</translation> </message> <message numerus="yes"> <location line="+57"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+3"/> <source>Open until %1</source> <translation>Zabalik %1 arte</translation> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation>Offline (%1 konfirmazio)</translation> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirmed (%1 confirmations)</source> <translation>Konfirmatuta (%1 konfirmazio)</translation> </message> <message numerus="yes"> <location line="+8"/> <source>Mined balance will be available when it matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+5"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Bloke hau ez du beste inongo nodorik jaso, eta seguruenik ez da onartuko!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>Sortua, baina ez onartua</translation> </message> <message> <location line="+43"/> <source>Received with</source> <translation>Jasoa honekin: </translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>Honi bidalia: </translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>Ordainketa zeure buruari</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>Bildua</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(n/a)</translation> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Transakzioaren egoera. Pasatu sagua gainetik konfirmazio kopurua ikusteko.</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>Transakzioa jasotako data eta ordua.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Transakzio mota.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>Transakzioaren xede-helbidea.</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>Saldoan kendu edo gehitutako kopurua.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+52"/> <location line="+16"/> <source>All</source> <translation>Denak</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>Gaur</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>Aste honetan</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>Hil honetan</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>Azken hilean</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>Aurten</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>Muga...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>Jasota honekin: </translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>Hona bidalia: </translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>Zeure buruari</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>Bildua</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>Beste</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>Sartu bilatzeko helbide edo etiketa</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>Kopuru minimoa</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>Kopiatu helbidea</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Kopiatu etiketa</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+139"/> <source>Export Transaction Data</source> <translation>Transakzioaren xehetasunak</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Komaz bereizitako artxiboa (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Date</source> <translation>Data</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Mota</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Etiketa</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Helbidea</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>Kopurua</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation>Errorea esportatzean</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Ezin idatzi %1 artxiboan.</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>to</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+193"/> <source>Send Coins</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+42"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="+193"/> <source>Backup Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Backup Successful</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The wallet data was successfully saved to the new location.</source> <translation type="unfinished"/> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+94"/> <source>WildBeastBitcoin version</source> <translation>Botcoin bertsioa</translation> </message> <message> <location line="+102"/> <source>Usage:</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>Send command to -server or wildbeastbitcoind</source> <translation type="unfinished"/> </message> <message> <location line="-23"/> <source>List commands</source> <translation>Komandoen lista</translation> </message> <message> <location line="-12"/> <source>Get help for a command</source> <translation>Laguntza komando batean</translation> </message> <message> <location line="+24"/> <source>Options:</source> <translation>Aukerak</translation> </message> <message> <location line="+24"/> <source>Specify configuration file (default: wildbeastbitcoin.conf)</source> <translation>Ezarpen fitxategia aukeratu (berezkoa: wildbeastbitcoin.conf)</translation> </message> <message> <location line="+3"/> <source>Specify pid file (default: wildbeastbitcoind.pid)</source> <translation>pid fitxategia aukeratu (berezkoa: wildbeastbitcoind.pid)</translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation type="unfinished"/> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation type="unfinished"/> </message> <message> <location line="-28"/> <source>Listen for connections on &lt;port&gt; (default: 9333 or testnet: 19333)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation type="unfinished"/> </message> <message> <location line="-48"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <source>Specify your own public address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="-134"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 9332 or testnet: 19332)</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <source>Accept command line and JSON-RPC commands</source> <translation type="unfinished"/> </message> <message> <location line="+76"/> <source>Run in the background as a daemon and accept commands</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <source>Use the test network</source> <translation type="unfinished"/> </message> <message> <location line="-112"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation type="unfinished"/> </message> <message> <location line="-80"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=wildbeastbitcoinrpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;WildBeastBitcoin Alert&quot; [email protected] </source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Cannot obtain a lock on data directory %s. WildBeastBitcoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong WildBeastBitcoin will not work properly.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Block creation options:</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Connect only to the specified node(s)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Corrupted block database detected</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Do you want to rebuild the block database now?</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error initializing block database</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error initializing wallet database environment %s!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading block database</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error opening block database</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error: Disk space is low!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: system error: </source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to read block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to read block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to sync block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write file info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write to coin database</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write transaction index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write undo data</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Find peers using DNS lookup (default: 1 unless -connect)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Generate coins (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 288, 0 = all)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-4, default: 3)</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Not enough file descriptors available.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Rebuild block chain index from current blk000??.dat files</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation type="unfinished"/> </message> <message> <location line="+26"/> <source>Verifying blocks...</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Verifying wallet...</source> <translation type="unfinished"/> </message> <message> <location line="-69"/> <source>Imports blocks from external blk000??.dat file</source> <translation type="unfinished"/> </message> <message> <location line="-76"/> <source>Set the number of script verification threads (up to 16, 0 = auto, &lt;0 = leave that many cores free, default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+77"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Maintain a full transaction index (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Only accept block chain matching built-in checkpoints (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Prepend debug output with timestamp</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>SSL options: (see the WildBeastBitcoin Wiki for SSL setup instructions)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Signing transaction failed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>System error: </source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Transaction amount too small</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction amounts must be positive</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction too large</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Username for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>You need to rebuild the databases using -reindex to change -txindex</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>wallet.dat corrupt, salvage failed</source> <translation type="unfinished"/> </message> <message> <location line="-50"/> <source>Password for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="-67"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation type="unfinished"/> </message> <message> <location line="+76"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation type="unfinished"/> </message> <message> <location line="-120"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation type="unfinished"/> </message> <message> <location line="+147"/> <source>Upgrade wallet to latest format</source> <translation type="unfinished"/> </message> <message> <location line="-21"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="-12"/> <source>Rescan the block chain for missing wallet transactions</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="-26"/> <source>Server certificate file (default: server.cert)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation type="unfinished"/> </message> <message> <location line="-151"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation type="unfinished"/> </message> <message> <location line="+165"/> <source>This help message</source> <translation>Laguntza mezu hau</translation> </message> <message> <location line="+6"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation type="unfinished"/> </message> <message> <location line="-91"/> <source>Connect through socks proxy</source> <translation type="unfinished"/> </message> <message> <location line="-10"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation type="unfinished"/> </message> <message> <location line="+55"/> <source>Loading addresses...</source> <translation type="unfinished"/> </message> <message> <location line="-35"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of WildBeastBitcoin</source> <translation type="unfinished"/> </message> <message> <location line="+93"/> <source>Wallet needed to be rewritten: restart WildBeastBitcoin to complete</source> <translation type="unfinished"/> </message> <message> <location line="-95"/> <source>Error loading wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+56"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation type="unfinished"/> </message> <message> <location line="-96"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation type="unfinished"/> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation type="unfinished"/> </message> <message> <location line="-57"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation type="unfinished"/> </message> <message> <location line="-25"/> <source>Unable to bind to %s on this computer. WildBeastBitcoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="+64"/> <source>Fee per KB to add to transactions you send</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Loading wallet...</source> <translation type="unfinished"/> </message> <message> <location line="-52"/> <source>Cannot downgrade wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation type="unfinished"/> </message> <message> <location line="+64"/> <source>Rescanning...</source> <translation>Birbilatzen...</translation> </message> <message> <location line="-57"/> <source>Done loading</source> <translation>Zamaketa amaitua</translation> </message> <message> <location line="+82"/> <source>To use the %s option</source> <translation type="unfinished"/> </message> <message> <location line="-74"/> <source>Error</source> <translation type="unfinished"/> </message> <message> <location line="-31"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation type="unfinished"/> </message> </context> </TS>
{ "content_hash": "5d1e321d9de3e48f1d291997ed1713f0", "timestamp": "", "source": "github", "line_count": 2917, "max_line_length": 395, "avg_line_length": 34.451148440178265, "alnum_prop": 0.5990407387505722, "repo_name": "coinkeeper/2015-06-22_19-14_wildbeastbitcoin", "id": "293d021e70af019d2aee6a16f9d8ab073e953ad2", "size": "100494", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/qt/locale/bitcoin_eu_ES.ts", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "31317" }, { "name": "C++", "bytes": "2629236" }, { "name": "CSS", "bytes": "1127" }, { "name": "Groff", "bytes": "18284" }, { "name": "HTML", "bytes": "50615" }, { "name": "Makefile", "bytes": "13327" }, { "name": "NSIS", "bytes": "6146" }, { "name": "Objective-C", "bytes": "858" }, { "name": "Objective-C++", "bytes": "5864" }, { "name": "Python", "bytes": "69717" }, { "name": "QMake", "bytes": "14800" }, { "name": "Shell", "bytes": "9702" } ], "symlink_target": "" }
/* * 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.facebook.presto.metadata; import com.facebook.presto.Session; import com.facebook.presto.common.CatalogSchemaName; import com.facebook.presto.common.QualifiedObjectName; import com.facebook.presto.common.block.BlockEncodingSerde; import com.facebook.presto.common.predicate.TupleDomain; import com.facebook.presto.common.type.Type; import com.facebook.presto.common.type.TypeSignature; import com.facebook.presto.execution.QueryManager; import com.facebook.presto.spi.ColumnHandle; import com.facebook.presto.spi.ColumnMetadata; import com.facebook.presto.spi.ConnectorId; import com.facebook.presto.spi.ConnectorSession; import com.facebook.presto.spi.ConnectorTableMetadata; import com.facebook.presto.spi.Constraint; import com.facebook.presto.spi.MaterializedViewDefinition; import com.facebook.presto.spi.MaterializedViewStatus; import com.facebook.presto.spi.PrestoException; import com.facebook.presto.spi.QueryId; import com.facebook.presto.spi.SystemTable; import com.facebook.presto.spi.TableHandle; import com.facebook.presto.spi.TableLayoutFilterCoverage; import com.facebook.presto.spi.api.Experimental; import com.facebook.presto.spi.connector.ConnectorCapabilities; import com.facebook.presto.spi.connector.ConnectorOutputMetadata; import com.facebook.presto.spi.connector.ConnectorPartitioningHandle; import com.facebook.presto.spi.function.SqlFunction; import com.facebook.presto.spi.security.GrantInfo; import com.facebook.presto.spi.security.PrestoPrincipal; import com.facebook.presto.spi.security.Privilege; import com.facebook.presto.spi.security.RoleGrant; import com.facebook.presto.spi.statistics.ComputedStatistics; import com.facebook.presto.spi.statistics.TableStatistics; import com.facebook.presto.spi.statistics.TableStatisticsMetadata; import com.facebook.presto.sql.analyzer.ViewDefinition; import com.facebook.presto.sql.planner.PartitioningHandle; import com.google.common.util.concurrent.ListenableFuture; import io.airlift.slice.Slice; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.OptionalLong; import java.util.Set; import static com.facebook.presto.spi.TableLayoutFilterCoverage.NOT_APPLICABLE; public interface Metadata { void verifyComparableOrderableContract(); Type getType(TypeSignature signature); void registerBuiltInFunctions(List<? extends SqlFunction> functions); boolean schemaExists(Session session, CatalogSchemaName schema); boolean catalogExists(Session session, String catalogName); List<String> listSchemaNames(Session session, String catalogName); /** * Returns a table handle for the specified table name. */ Optional<TableHandle> getTableHandle(Session session, QualifiedObjectName tableName); Optional<SystemTable> getSystemTable(Session session, QualifiedObjectName tableName); Optional<TableHandle> getTableHandleForStatisticsCollection(Session session, QualifiedObjectName tableName, Map<String, Object> analyzeProperties); /** * Returns a new table layout that satisfies the given constraint together with unenforced constraint. */ @Experimental TableLayoutResult getLayout(Session session, TableHandle tableHandle, Constraint<ColumnHandle> constraint, Optional<Set<ColumnHandle>> desiredColumns); /** * Returns table's layout properties for a given table handle. */ @Experimental TableLayout getLayout(Session session, TableHandle handle); /** * Return a table handle whose partitioning is converted to the provided partitioning handle, * but otherwise identical to the provided table layout handle. * The provided table layout handle must be one that the connector can transparently convert to from * the original partitioning handle associated with the provided table layout handle, * as promised by {@link #getCommonPartitioning}. */ TableHandle getAlternativeTableHandle(Session session, TableHandle tableHandle, PartitioningHandle partitioningHandle); /** * Experimental: if true, the engine will invoke getLayout otherwise, getLayout will not be called. * If filter pushdown is required, use a ConnectorPlanOptimizer in the respective connector in order * to push compute into it's TableScan. */ @Deprecated boolean isLegacyGetLayoutSupported(Session session, TableHandle tableHandle); /** * Return a partitioning handle which the connector can transparently convert both {@code left} and {@code right} into. */ @Deprecated Optional<PartitioningHandle> getCommonPartitioning(Session session, PartitioningHandle left, PartitioningHandle right); /** * Return whether {@code left} is a refined partitioning over {@code right}. * See * {@link com.facebook.presto.spi.connector.ConnectorMetadata#isRefinedPartitioningOver(ConnectorSession, ConnectorPartitioningHandle, ConnectorPartitioningHandle)} * for details about refined partitioning. * <p> * Refined-over relation is reflexive. */ @Experimental boolean isRefinedPartitioningOver(Session session, PartitioningHandle a, PartitioningHandle b); /** * Provides partitioning handle for exchange. */ PartitioningHandle getPartitioningHandleForExchange(Session session, String catalogName, int partitionCount, List<Type> partitionTypes); Optional<Object> getInfo(Session session, TableHandle handle); /** * Return the metadata for the specified table handle. * * @throws RuntimeException if table handle is no longer valid */ TableMetadata getTableMetadata(Session session, TableHandle tableHandle); /** * Return statistics for specified table for given columns and filtering constraint. */ TableStatistics getTableStatistics(Session session, TableHandle tableHandle, List<ColumnHandle> columnHandles, Constraint<ColumnHandle> constraint); /** * Get the names that match the specified table prefix (never null). */ List<QualifiedObjectName> listTables(Session session, QualifiedTablePrefix prefix); /** * Gets all of the columns on the specified table, or an empty map if the columns can not be enumerated. * * @throws RuntimeException if table handle is no longer valid */ Map<String, ColumnHandle> getColumnHandles(Session session, TableHandle tableHandle); /** * Gets the metadata for the specified table column. * * @throws RuntimeException if table or column handles are no longer valid */ ColumnMetadata getColumnMetadata(Session session, TableHandle tableHandle, ColumnHandle columnHandle); /** * Returns a TupleDomain of constraints that is suitable for ExplainIO */ TupleDomain<ColumnHandle> toExplainIOConstraints(Session session, TableHandle tableHandle, TupleDomain<ColumnHandle> constraints); /** * Gets the metadata for all columns that match the specified table prefix. */ Map<QualifiedObjectName, List<ColumnMetadata>> listTableColumns(Session session, QualifiedTablePrefix prefix); /** * Creates a schema. */ void createSchema(Session session, CatalogSchemaName schema, Map<String, Object> properties); /** * Drops the specified schema. */ void dropSchema(Session session, CatalogSchemaName schema); /** * Renames the specified schema. */ void renameSchema(Session session, CatalogSchemaName source, String target); /** * Creates a table using the specified table metadata. * * @throws PrestoException with {@code ALREADY_EXISTS} if the table already exists and {@param ignoreExisting} is not set */ void createTable(Session session, String catalogName, ConnectorTableMetadata tableMetadata, boolean ignoreExisting); /** * Creates a temporary table with optional partitioning requirements. * Temporary table might have different default storage format, compression scheme, replication factor, etc, * and gets automatically dropped when the transaction ends. */ @Experimental TableHandle createTemporaryTable(Session session, String catalogName, List<ColumnMetadata> columns, Optional<PartitioningMetadata> partitioningMetadata); /** * Rename the specified table. */ void renameTable(Session session, TableHandle tableHandle, QualifiedObjectName newTableName); /** * Rename the specified column. */ void renameColumn(Session session, TableHandle tableHandle, ColumnHandle source, String target); /** * Add the specified column to the table. */ void addColumn(Session session, TableHandle tableHandle, ColumnMetadata column); /** * Drop the specified column. */ void dropColumn(Session session, TableHandle tableHandle, ColumnHandle column); /** * Drops the specified table * * @throws RuntimeException if the table can not be dropped or table handle is no longer valid */ void dropTable(Session session, TableHandle tableHandle); /** * Truncates the specified table */ void truncateTable(Session session, TableHandle tableHandle); Optional<NewTableLayout> getNewTableLayout(Session session, String catalogName, ConnectorTableMetadata tableMetadata); @Experimental Optional<NewTableLayout> getPreferredShuffleLayoutForNewTable(Session session, String catalogName, ConnectorTableMetadata tableMetadata); /** * Begin the atomic creation of a table with data. */ OutputTableHandle beginCreateTable(Session session, String catalogName, ConnectorTableMetadata tableMetadata, Optional<NewTableLayout> layout); /** * Finish a table creation with data after the data is written. */ Optional<ConnectorOutputMetadata> finishCreateTable(Session session, OutputTableHandle tableHandle, Collection<Slice> fragments, Collection<ComputedStatistics> computedStatistics); Optional<NewTableLayout> getInsertLayout(Session session, TableHandle target); @Experimental Optional<NewTableLayout> getPreferredShuffleLayoutForInsert(Session session, TableHandle target); /** * Describes statistics that must be collected during a write. */ TableStatisticsMetadata getStatisticsCollectionMetadataForWrite(Session session, String catalogName, ConnectorTableMetadata tableMetadata); /** * Describe statistics that must be collected during a statistics collection */ TableStatisticsMetadata getStatisticsCollectionMetadata(Session session, String catalogName, ConnectorTableMetadata tableMetadata); /** * Begin statistics collection */ AnalyzeTableHandle beginStatisticsCollection(Session session, TableHandle tableHandle); /** * Finish statistics collection */ void finishStatisticsCollection(Session session, AnalyzeTableHandle tableHandle, Collection<ComputedStatistics> computedStatistics); /** * Start a SELECT/UPDATE/INSERT/DELETE query */ void beginQuery(Session session, Set<ConnectorId> connectors); /** * Cleanup after a query. This is the very last notification after the query finishes, regardless if it succeeds or fails. * An exception thrown in this method will not affect the result of the query. */ void cleanupQuery(Session session); /** * Begin insert query */ InsertTableHandle beginInsert(Session session, TableHandle tableHandle); /** * Finish insert query */ Optional<ConnectorOutputMetadata> finishInsert(Session session, InsertTableHandle tableHandle, Collection<Slice> fragments, Collection<ComputedStatistics> computedStatistics); /** * Get the row ID column handle used with UpdatablePageSource. */ ColumnHandle getUpdateRowIdColumnHandle(Session session, TableHandle tableHandle); /** * @return whether delete without table scan is supported */ boolean supportsMetadataDelete(Session session, TableHandle tableHandle); /** * Delete the provide table layout * * @return number of rows deleted, or empty for unknown */ OptionalLong metadataDelete(Session session, TableHandle tableHandle); /** * Begin delete query */ TableHandle beginDelete(Session session, TableHandle tableHandle); /** * Finish delete query */ void finishDelete(Session session, TableHandle tableHandle, Collection<Slice> fragments); /** * Returns a connector id for the specified catalog name. */ Optional<ConnectorId> getCatalogHandle(Session session, String catalogName); /** * Gets all the loaded catalogs * * @return Map of catalog name to connector id */ Map<String, ConnectorId> getCatalogNames(Session session); /** * Get the names that match the specified table prefix (never null). */ List<QualifiedObjectName> listViews(Session session, QualifiedTablePrefix prefix); /** * Get the view definitions that match the specified table prefix (never null). */ Map<QualifiedObjectName, ViewDefinition> getViews(Session session, QualifiedTablePrefix prefix); /** * Returns the view definition for the specified view name. */ Optional<ViewDefinition> getView(Session session, QualifiedObjectName viewName); /** * Is the specified table a view. */ default boolean isView(Session session, QualifiedObjectName viewName) { return getView(session, viewName).isPresent(); } /** * Creates the specified view with the specified view definition. */ void createView(Session session, String catalogName, ConnectorTableMetadata viewMetadata, String viewData, boolean replace); /** * Drops the specified view. */ void dropView(Session session, QualifiedObjectName viewName); /** * Returns the materialized view definition for the specified materialized view name. */ Optional<MaterializedViewDefinition> getMaterializedView(Session session, QualifiedObjectName viewName); /** * Is the specified table a materialized view. */ default boolean isMaterializedView(Session session, QualifiedObjectName viewName) { return getMaterializedView(session, viewName).isPresent(); } /** * Creates the specified materialized view with the specified view definition. */ void createMaterializedView(Session session, String catalogName, ConnectorTableMetadata viewMetadata, MaterializedViewDefinition viewDefinition, boolean ignoreExisting); /** * Drops the specified materialized view. */ void dropMaterializedView(Session session, QualifiedObjectName viewName); /** * Get Materialized view status */ MaterializedViewStatus getMaterializedViewStatus(Session session, QualifiedObjectName materializedViewName, TupleDomain<String> baseQueryDomain); /** * Begin refresh materialized view */ InsertTableHandle beginRefreshMaterializedView(Session session, TableHandle tableHandle); /** * Finish refresh materialized view */ Optional<ConnectorOutputMetadata> finishRefreshMaterializedView(Session session, InsertTableHandle tableHandle, Collection<Slice> fragments, Collection<ComputedStatistics> computedStatistics); /** * Gets the referenced materialized views for a give table */ List<QualifiedObjectName> getReferencedMaterializedViews(Session session, QualifiedObjectName tableName); /** * Try to locate a table index that can lookup results by indexableColumns and provide the requested outputColumns. */ Optional<ResolvedIndex> resolveIndex(Session session, TableHandle tableHandle, Set<ColumnHandle> indexableColumns, Set<ColumnHandle> outputColumns, TupleDomain<ColumnHandle> tupleDomain); /** * Creates the specified role in the specified catalog. * * @param grantor represents the principal specified by WITH ADMIN statement */ void createRole(Session session, String role, Optional<PrestoPrincipal> grantor, String catalog); /** * Drops the specified role in the specified catalog. */ void dropRole(Session session, String role, String catalog); /** * List available roles in specified catalog. */ Set<String> listRoles(Session session, String catalog); /** * List roles grants in the specified catalog for a given principal, not recursively. */ Set<RoleGrant> listRoleGrants(Session session, String catalog, PrestoPrincipal principal); /** * Grants the specified roles to the specified grantees in the specified catalog * * @param grantor represents the principal specified by GRANTED BY statement */ void grantRoles(Session session, Set<String> roles, Set<PrestoPrincipal> grantees, boolean withAdminOption, Optional<PrestoPrincipal> grantor, String catalog); /** * Revokes the specified roles from the specified grantees in the specified catalog * * @param grantor represents the principal specified by GRANTED BY statement */ void revokeRoles(Session session, Set<String> roles, Set<PrestoPrincipal> grantees, boolean adminOptionFor, Optional<PrestoPrincipal> grantor, String catalog); /** * List applicable roles, including the transitive grants, for the specified principal */ Set<RoleGrant> listApplicableRoles(Session session, PrestoPrincipal principal, String catalog); /** * List applicable roles, including the transitive grants, in given session */ Set<String> listEnabledRoles(Session session, String catalog); /** * Grants the specified privilege to the specified user on the specified table */ void grantTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, PrestoPrincipal grantee, boolean grantOption); /** * Revokes the specified privilege on the specified table from the specified user */ void revokeTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, PrestoPrincipal grantee, boolean grantOption); /** * Gets the privileges for the specified table available to the given grantee considering the selected session role */ List<GrantInfo> listTablePrivileges(Session session, QualifiedTablePrefix prefix); /** * Commits page sink for table creation. */ @Experimental ListenableFuture<Void> commitPageSinkAsync(Session session, OutputTableHandle tableHandle, Collection<Slice> fragments); /** * Commits page sink for table insertion. */ @Experimental ListenableFuture<Void> commitPageSinkAsync(Session session, InsertTableHandle tableHandle, Collection<Slice> fragments); MetadataUpdates getMetadataUpdateResults(Session session, QueryManager queryManager, MetadataUpdates metadataUpdates, QueryId queryId); FunctionAndTypeManager getFunctionAndTypeManager(); ProcedureRegistry getProcedureRegistry(); BlockEncodingSerde getBlockEncodingSerde(); SessionPropertyManager getSessionPropertyManager(); SchemaPropertyManager getSchemaPropertyManager(); TablePropertyManager getTablePropertyManager(); ColumnPropertyManager getColumnPropertyManager(); AnalyzePropertyManager getAnalyzePropertyManager(); Set<ConnectorCapabilities> getConnectorCapabilities(Session session, ConnectorId catalogName); /** * Check if there is filter coverage of the specified partitioning keys * * @return NOT_APPLICABLE if partitioning is unsupported, not applicable, or the partitioning key is not relevant, NONE or COVERED otherwise */ default TableLayoutFilterCoverage getTableLayoutFilterCoverage(Session session, TableHandle tableHandle, Set<String> relevantPartitionColumn) { return NOT_APPLICABLE; } }
{ "content_hash": "b81cda38eecf82389598f01595550c3a", "timestamp": "", "source": "github", "line_count": 525, "max_line_length": 196, "avg_line_length": 39.15047619047619, "alnum_prop": 0.7485647562518245, "repo_name": "prestodb/presto", "id": "65def9919be542cebeb16e3d5894478b186d97dc", "size": "20554", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "presto-main/src/main/java/com/facebook/presto/metadata/Metadata.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ANTLR", "bytes": "33331" }, { "name": "Batchfile", "bytes": "795" }, { "name": "C++", "bytes": "640275" }, { "name": "CMake", "bytes": "31361" }, { "name": "CSS", "bytes": "28319" }, { "name": "Dockerfile", "bytes": "1266" }, { "name": "HTML", "bytes": "29601" }, { "name": "Java", "bytes": "52940440" }, { "name": "JavaScript", "bytes": "286864" }, { "name": "Makefile", "bytes": "16617" }, { "name": "Mustache", "bytes": "17803" }, { "name": "NASL", "bytes": "11965" }, { "name": "PLSQL", "bytes": "85" }, { "name": "Python", "bytes": "39357" }, { "name": "Roff", "bytes": "52281" }, { "name": "Shell", "bytes": "38937" }, { "name": "Thrift", "bytes": "14675" } ], "symlink_target": "" }
<!DOCTYPE html> <html> <body> <h1> Asymmetrie bei kryptographischen Verfahren </h1> Dies ist das Lernpanel für assymetrische Chiffren. </body> </html>
{ "content_hash": "51633b8af91d44f230057f94e6dab511", "timestamp": "", "source": "github", "line_count": 7, "max_line_length": 53, "avg_line_length": 22.285714285714285, "alnum_prop": 0.7243589743589743, "repo_name": "jackorias/MonkeyCrypt", "id": "38829d2769c6f74c1aff2216dc608a4f18d26d47", "size": "157", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/text/de/did/asymmetrisch_did.html", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "29758" }, { "name": "Java", "bytes": "365199" } ], "symlink_target": "" }
<!DOCTYPE html> <!-- Template Name: Metronic - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.3.5 Version: 4.1.0 Author: KeenThemes Website: http://www.keenthemes.com/ Contact: [email protected] Follow: www.twitter.com/keenthemes Like: www.facebook.com/keenthemes Purchase: http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469?ref=keenthemes License: You must have a valid license purchased only from themeforest(the above link) in order to legally use the theme for your project. --> <!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]--> <!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]--> <!--[if !IE]><!--> <html lang="en" dir="rtl"> <!--<![endif]--> <!-- BEGIN HEAD --> <head> <meta charset="utf-8"/> <title>Metronic | Pages - News</title> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta content="width=device-width, initial-scale=1.0" name="viewport"/> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <meta content="" name="description"/> <meta content="" name="author"/> <!-- BEGIN GLOBAL MANDATORY STYLES --> <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css"> <link href="../../assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <link href="../../assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css"> <link href="../../assets/global/plugins/bootstrap/css/bootstrap-rtl.min.css" rel="stylesheet" type="text/css"> <link href="../../assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"> <link href="../../assets/global/plugins/bootstrap-switch/css/bootstrap-switch-rtl.min.css" rel="stylesheet" type="text/css"/> <!-- END GLOBAL MANDATORY STYLES --> <!-- BEGIN PAGE LEVEL STYLES --> <link href="../../assets/admin/pages/css/news-rtl.css" rel="stylesheet" type="text/css"/> <!-- END PAGE LEVEL STYLES --> <!-- BEGIN THEME STYLES --> <link href="../../assets/global/css/components-rtl.css" id="style_components" rel="stylesheet" type="text/css"/> <link href="../../assets/global/css/plugins-rtl.css" rel="stylesheet" type="text/css"/> <link href="../../assets/admin/layout2/css/layout-rtl.css" rel="stylesheet" type="text/css"/> <link id="style_color" href="../../assets/admin/layout2/css/themes/grey.css" rel="stylesheet" type="text/css"/> <link href="../../assets/admin/layout2/css/custom-rtl.css" rel="stylesheet" type="text/css"/> <!-- END THEME STYLES --> <link rel="shortcut icon" href="favicon.ico"/> </head> <!-- END HEAD --> <!-- BEGIN BODY --> <!-- DOC: Apply "page-header-fixed-mobile" and "page-footer-fixed-mobile" class to body element to force fixed header or footer in mobile devices --> <!-- DOC: Apply "page-sidebar-closed" class to the body and "page-sidebar-menu-closed" class to the sidebar menu element to hide the sidebar by default --> <!-- DOC: Apply "page-sidebar-hide" class to the body to make the sidebar completely hidden on toggle --> <!-- DOC: Apply "page-sidebar-closed-hide-logo" class to the body element to make the logo hidden on sidebar toggle --> <!-- DOC: Apply "page-sidebar-hide" class to body element to completely hide the sidebar on sidebar toggle --> <!-- DOC: Apply "page-sidebar-fixed" class to have fixed sidebar --> <!-- DOC: Apply "page-footer-fixed" class to the body element to have fixed footer --> <!-- DOC: Apply "page-sidebar-reversed" class to put the sidebar on the right side --> <!-- DOC: Apply "page-full-width" class to the body element to have full width page without the sidebar menu --> <body class="page-boxed page-header-fixed page-container-bg-solid page-sidebar-closed-hide-logo "> <!-- BEGIN HEADER --> <div class="page-header navbar navbar-fixed-top"> <!-- BEGIN HEADER INNER --> <div class="page-header-inner container"> <!-- BEGIN LOGO --> <div class="page-logo"> <a href="index.html"> <img src="../../assets/admin/layout2/img/logo-default.png" alt="logo" class="logo-default"/> </a> <div class="menu-toggler sidebar-toggler"> <!-- DOC: Remove the above "hide" to enable the sidebar toggler button on header --> </div> </div> <!-- END LOGO --> <!-- BEGIN RESPONSIVE MENU TOGGLER --> <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse"> </a> <!-- END RESPONSIVE MENU TOGGLER --> <!-- BEGIN PAGE ACTIONS --> <!-- DOC: Remove "hide" class to enable the page header actions --> <div class="page-actions hide"> <div class="btn-group"> <button type="button" class="btn btn-circle red-pink dropdown-toggle" data-toggle="dropdown"> <i class="icon-bar-chart"></i>&nbsp;<span class="hidden-sm hidden-xs">New&nbsp;</span>&nbsp;<i class="fa fa-angle-down"></i> </button> <ul class="dropdown-menu" role="menu"> <li> <a href="javascript:;"> <i class="icon-user"></i> New User </a> </li> <li> <a href="javascript:;"> <i class="icon-present"></i> New Event <span class="badge badge-success">4</span> </a> </li> <li> <a href="javascript:;"> <i class="icon-basket"></i> New order </a> </li> <li class="divider"> </li> <li> <a href="javascript:;"> <i class="icon-flag"></i> Pending Orders <span class="badge badge-danger">4</span> </a> </li> <li> <a href="javascript:;"> <i class="icon-users"></i> Pending Users <span class="badge badge-warning">12</span> </a> </li> </ul> </div> <div class="btn-group"> <button type="button" class="btn btn-circle green-haze dropdown-toggle" data-toggle="dropdown"> <i class="icon-bell"></i>&nbsp;<span class="hidden-sm hidden-xs">Post&nbsp;</span>&nbsp;<i class="fa fa-angle-down"></i> </button> <ul class="dropdown-menu" role="menu"> <li> <a href="javascript:;"> <i class="icon-docs"></i> New Post </a> </li> <li> <a href="javascript:;"> <i class="icon-tag"></i> New Comment </a> </li> <li> <a href="javascript:;"> <i class="icon-share"></i> Share </a> </li> <li class="divider"> </li> <li> <a href="javascript:;"> <i class="icon-flag"></i> Comments <span class="badge badge-success">4</span> </a> </li> <li> <a href="javascript:;"> <i class="icon-users"></i> Feedbacks <span class="badge badge-danger">2</span> </a> </li> </ul> </div> </div> <!-- END PAGE ACTIONS --> <!-- BEGIN PAGE TOP --> <div class="page-top"> <!-- BEGIN HEADER SEARCH BOX --> <!-- DOC: Apply "search-form-expanded" right after the "search-form" class to have half expanded search box --> <form class="search-form search-form-expanded" action="extra_search.html" method="GET"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search..." name="query"> <span class="input-group-btn"> <a href="javascript:;" class="btn submit"><i class="icon-magnifier"></i></a> </span> </div> </form> <!-- END HEADER SEARCH BOX --> <!-- BEGIN TOP NAVIGATION MENU --> <div class="top-menu"> <ul class="nav navbar-nav pull-right"> <!-- BEGIN NOTIFICATION DROPDOWN --> <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte --> <li class="dropdown dropdown-extended dropdown-notification" id="header_notification_bar"> <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true"> <i class="icon-bell"></i> <span class="badge badge-default"> 7 </span> </a> <ul class="dropdown-menu"> <li class="external"> <h3><span class="bold">12 pending</span> notifications</h3> <a href="extra_profile.html">view all</a> </li> <li> <ul class="dropdown-menu-list scroller" style="height: 250px;" data-handle-color="#637283"> <li> <a href="javascript:;"> <span class="time">just now</span> <span class="details"> <span class="label label-sm label-icon label-success"> <i class="fa fa-plus"></i> </span> New user registered. </span> </a> </li> <li> <a href="javascript:;"> <span class="time">3 mins</span> <span class="details"> <span class="label label-sm label-icon label-danger"> <i class="fa fa-bolt"></i> </span> Server #12 overloaded. </span> </a> </li> <li> <a href="javascript:;"> <span class="time">10 mins</span> <span class="details"> <span class="label label-sm label-icon label-warning"> <i class="fa fa-bell-o"></i> </span> Server #2 not responding. </span> </a> </li> <li> <a href="javascript:;"> <span class="time">14 hrs</span> <span class="details"> <span class="label label-sm label-icon label-info"> <i class="fa fa-bullhorn"></i> </span> Application error. </span> </a> </li> <li> <a href="javascript:;"> <span class="time">2 days</span> <span class="details"> <span class="label label-sm label-icon label-danger"> <i class="fa fa-bolt"></i> </span> Database overloaded 68%. </span> </a> </li> <li> <a href="javascript:;"> <span class="time">3 days</span> <span class="details"> <span class="label label-sm label-icon label-danger"> <i class="fa fa-bolt"></i> </span> A user IP blocked. </span> </a> </li> <li> <a href="javascript:;"> <span class="time">4 days</span> <span class="details"> <span class="label label-sm label-icon label-warning"> <i class="fa fa-bell-o"></i> </span> Storage Server #4 not responding dfdfdfd. </span> </a> </li> <li> <a href="javascript:;"> <span class="time">5 days</span> <span class="details"> <span class="label label-sm label-icon label-info"> <i class="fa fa-bullhorn"></i> </span> System Error. </span> </a> </li> <li> <a href="javascript:;"> <span class="time">9 days</span> <span class="details"> <span class="label label-sm label-icon label-danger"> <i class="fa fa-bolt"></i> </span> Storage server failed. </span> </a> </li> </ul> </li> </ul> </li> <!-- END NOTIFICATION DROPDOWN --> <!-- BEGIN INBOX DROPDOWN --> <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte --> <li class="dropdown dropdown-extended dropdown-inbox" id="header_inbox_bar"> <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true"> <i class="icon-envelope-open"></i> <span class="badge badge-default"> 4 </span> </a> <ul class="dropdown-menu"> <li class="external"> <h3>You have <span class="bold">7 New</span> Messages</h3> <a href="page_inbox.html">view all</a> </li> <li> <ul class="dropdown-menu-list scroller" style="height: 275px;" data-handle-color="#637283"> <li> <a href="inbox.html?a=view"> <span class="photo"> <img src="../../assets/admin/layout3/img/avatar2.jpg" class="img-circle" alt=""> </span> <span class="subject"> <span class="from"> Lisa Wong </span> <span class="time">Just Now </span> </span> <span class="message"> Vivamus sed auctor nibh congue nibh. auctor nibh auctor nibh... </span> </a> </li> <li> <a href="inbox.html?a=view"> <span class="photo"> <img src="../../assets/admin/layout3/img/avatar3.jpg" class="img-circle" alt=""> </span> <span class="subject"> <span class="from"> Richard Doe </span> <span class="time">16 mins </span> </span> <span class="message"> Vivamus sed congue nibh auctor nibh congue nibh. auctor nibh auctor nibh... </span> </a> </li> <li> <a href="inbox.html?a=view"> <span class="photo"> <img src="../../assets/admin/layout3/img/avatar1.jpg" class="img-circle" alt=""> </span> <span class="subject"> <span class="from"> Bob Nilson </span> <span class="time">2 hrs </span> </span> <span class="message"> Vivamus sed nibh auctor nibh congue nibh. auctor nibh auctor nibh... </span> </a> </li> <li> <a href="inbox.html?a=view"> <span class="photo"> <img src="../../assets/admin/layout3/img/avatar2.jpg" class="img-circle" alt=""> </span> <span class="subject"> <span class="from"> Lisa Wong </span> <span class="time">40 mins </span> </span> <span class="message"> Vivamus sed auctor 40% nibh congue nibh... </span> </a> </li> <li> <a href="inbox.html?a=view"> <span class="photo"> <img src="../../assets/admin/layout3/img/avatar3.jpg" class="img-circle" alt=""> </span> <span class="subject"> <span class="from"> Richard Doe </span> <span class="time">46 mins </span> </span> <span class="message"> Vivamus sed congue nibh auctor nibh congue nibh. auctor nibh auctor nibh... </span> </a> </li> </ul> </li> </ul> </li> <!-- END INBOX DROPDOWN --> <!-- BEGIN TODO DROPDOWN --> <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte --> <li class="dropdown dropdown-extended dropdown-tasks" id="header_task_bar"> <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true"> <i class="icon-calendar"></i> <span class="badge badge-default"> 3 </span> </a> <ul class="dropdown-menu extended tasks"> <li class="external"> <h3>You have <span class="bold">12 pending</span> tasks</h3> <a href="page_todo.html">view all</a> </li> <li> <ul class="dropdown-menu-list scroller" style="height: 275px;" data-handle-color="#637283"> <li> <a href="javascript:;"> <span class="task"> <span class="desc">New release v1.2 </span> <span class="percent">30%</span> </span> <span class="progress"> <span style="width: 40%;" class="progress-bar progress-bar-success" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"><span class="sr-only">40% Complete</span></span> </span> </a> </li> <li> <a href="javascript:;"> <span class="task"> <span class="desc">Application deployment</span> <span class="percent">65%</span> </span> <span class="progress"> <span style="width: 65%;" class="progress-bar progress-bar-danger" aria-valuenow="65" aria-valuemin="0" aria-valuemax="100"><span class="sr-only">65% Complete</span></span> </span> </a> </li> <li> <a href="javascript:;"> <span class="task"> <span class="desc">Mobile app release</span> <span class="percent">98%</span> </span> <span class="progress"> <span style="width: 98%;" class="progress-bar progress-bar-success" aria-valuenow="98" aria-valuemin="0" aria-valuemax="100"><span class="sr-only">98% Complete</span></span> </span> </a> </li> <li> <a href="javascript:;"> <span class="task"> <span class="desc">Database migration</span> <span class="percent">10%</span> </span> <span class="progress"> <span style="width: 10%;" class="progress-bar progress-bar-warning" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"><span class="sr-only">10% Complete</span></span> </span> </a> </li> <li> <a href="javascript:;"> <span class="task"> <span class="desc">Web server upgrade</span> <span class="percent">58%</span> </span> <span class="progress"> <span style="width: 58%;" class="progress-bar progress-bar-info" aria-valuenow="58" aria-valuemin="0" aria-valuemax="100"><span class="sr-only">58% Complete</span></span> </span> </a> </li> <li> <a href="javascript:;"> <span class="task"> <span class="desc">Mobile development</span> <span class="percent">85%</span> </span> <span class="progress"> <span style="width: 85%;" class="progress-bar progress-bar-success" aria-valuenow="85" aria-valuemin="0" aria-valuemax="100"><span class="sr-only">85% Complete</span></span> </span> </a> </li> <li> <a href="javascript:;"> <span class="task"> <span class="desc">New UI release</span> <span class="percent">38%</span> </span> <span class="progress progress-striped"> <span style="width: 38%;" class="progress-bar progress-bar-important" aria-valuenow="18" aria-valuemin="0" aria-valuemax="100"><span class="sr-only">38% Complete</span></span> </span> </a> </li> </ul> </li> </ul> </li> <!-- END TODO DROPDOWN --> <!-- BEGIN USER LOGIN DROPDOWN --> <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte --> <li class="dropdown dropdown-user"> <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true"> <img alt="" class="img-circle" src="../../assets/admin/layout2/img/avatar3_small.jpg"/> <span class="username username-hide-on-mobile"> Nick </span> <i class="fa fa-angle-down"></i> </a> <ul class="dropdown-menu dropdown-menu-default"> <li> <a href="extra_profile.html"> <i class="icon-user"></i> My Profile </a> </li> <li> <a href="page_calendar.html"> <i class="icon-calendar"></i> My Calendar </a> </li> <li> <a href="inbox.html"> <i class="icon-envelope-open"></i> My Inbox <span class="badge badge-danger"> 3 </span> </a> </li> <li> <a href="page_todo.html"> <i class="icon-rocket"></i> My Tasks <span class="badge badge-success"> 7 </span> </a> </li> <li class="divider"> </li> <li> <a href="extra_lock.html"> <i class="icon-lock"></i> Lock Screen </a> </li> <li> <a href="login.html"> <i class="icon-key"></i> Log Out </a> </li> </ul> </li> <!-- END USER LOGIN DROPDOWN --> </ul> </div> <!-- END TOP NAVIGATION MENU --> </div> <!-- END PAGE TOP --> </div> <!-- END HEADER INNER --> </div> <!-- END HEADER --> <div class="clearfix"> </div> <div class="container"> <!-- BEGIN CONTAINER --> <div class="page-container"> <!-- BEGIN SIDEBAR --> <div class="page-sidebar-wrapper"> <!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing --> <!-- DOC: Change data-auto-speed="200" to adjust the sub menu slide up/down speed --> <div class="page-sidebar navbar-collapse collapse"> <!-- BEGIN SIDEBAR MENU --> <!-- DOC: Apply "page-sidebar-menu-light" class right after "page-sidebar-menu" to enable light sidebar menu style(without borders) --> <!-- DOC: Apply "page-sidebar-menu-hover-submenu" class right after "page-sidebar-menu" to enable hoverable(hover vs accordion) sub menu mode --> <!-- DOC: Apply "page-sidebar-menu-closed" class right after "page-sidebar-menu" to collapse("page-sidebar-closed" class must be applied to the body element) the sidebar sub menu mode --> <!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing --> <!-- DOC: Set data-keep-expand="true" to keep the submenues expanded --> <!-- DOC: Set data-auto-speed="200" to adjust the sub menu slide up/down speed --> <ul class="page-sidebar-menu page-sidebar-menu-hover-submenu " data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200"> <li class="start "> <a href="index.html"> <i class="icon-home"></i> <span class="title">Dashboard</span> </a> </li> <li> <a href="javascript:;"> <i class="icon-basket"></i> <span class="title">eCommerce</span> <span class="arrow "></span> </a> <ul class="sub-menu"> <li> <a href="ecommerce_index.html"> <i class="icon-home"></i> Dashboard</a> </li> <li> <a href="ecommerce_orders.html"> <i class="icon-basket"></i> Orders</a> </li> <li> <a href="ecommerce_orders_view.html"> <i class="icon-tag"></i> Order View</a> </li> <li> <a href="ecommerce_products.html"> <i class="icon-handbag"></i> Products</a> </li> <li> <a href="ecommerce_products_edit.html"> <i class="icon-pencil"></i> Product Edit</a> </li> </ul> </li> <li> <a href="javascript:;"> <i class="icon-rocket"></i> <span class="title">Page Layouts</span> <span class="arrow "></span> </a> <ul class="sub-menu"> <li> <a href="layout_fontawesome_icons.html"> <span class="badge badge-roundless badge-danger">new</span>Layout with Fontawesome Icons</a> </li> <li> <a href="layout_glyphicons.html"> Layout with Glyphicon</a> </li> <li> <a href="layout_full_height_content.html"> <span class="badge badge-roundless badge-warning">new</span>Full Height Content</a> </li> <li> <a href="layout_sidebar_reversed.html"> <span class="badge badge-roundless badge-warning">new</span>Right Sidebar Page</a> </li> <li> <a href="layout_sidebar_fixed.html"> Sidebar Fixed Page</a> </li> <li> <a href="layout_sidebar_closed.html"> Sidebar Closed Page</a> </li> <li> <a href="layout_ajax.html"> Content Loading via Ajax</a> </li> <li> <a href="layout_disabled_menu.html"> Disabled Menu Links</a> </li> <li> <a href="layout_blank_page.html"> Blank Page</a> </li> <li> <a href="layout_fluid_page.html"> Fluid Page</a> </li> <li> <a href="layout_language_bar.html"> Language Switch Bar</a> </li> </ul> </li> <li> <a href="javascript:;"> <i class="icon-diamond"></i> <span class="title">UI Features</span> <span class="arrow "></span> </a> <ul class="sub-menu"> <li> <a href="ui_general.html"> General Components</a> </li> <li> <a href="ui_buttons.html"> Buttons</a> </li> <li> <a href="ui_icons.html"> <span class="badge badge-roundless badge-danger">new</span>Font Icons</a> </li> <li> <a href="ui_colors.html"> Flat UI Colors</a> </li> <li> <a href="ui_typography.html"> Typography</a> </li> <li> <a href="ui_tabs_accordions_navs.html"> Tabs, Accordions & Navs</a> </li> <li> <a href="ui_tree.html"> <span class="badge badge-roundless badge-danger">new</span>Tree View</a> </li> <li> <a href="ui_page_progress_style_1.html"> <span class="badge badge-roundless badge-warning">new</span>Page Progress Bar</a> </li> <li> <a href="ui_blockui.html"> Block UI</a> </li> <li> <a href="ui_bootstrap_growl.html"> <span class="badge badge-roundless badge-warning">new</span>Bootstrap Growl Notifications</a> </li> <li> <a href="ui_notific8.html"> Notific8 Notifications</a> </li> <li> <a href="ui_toastr.html"> Toastr Notifications</a> </li> <li> <a href="ui_alert_dialog_api.html"> <span class="badge badge-roundless badge-danger">new</span>Alerts & Dialogs API</a> </li> <li> <a href="ui_session_timeout.html"> Session Timeout</a> </li> <li> <a href="ui_idle_timeout.html"> User Idle Timeout</a> </li> <li> <a href="ui_modals.html"> Modals</a> </li> <li> <a href="ui_extended_modals.html"> Extended Modals</a> </li> <li> <a href="ui_tiles.html"> Tiles</a> </li> <li> <a href="ui_datepaginator.html"> <span class="badge badge-roundless badge-success">new</span>Date Paginator</a> </li> <li> <a href="ui_nestable.html"> Nestable List</a> </li> </ul> </li> <li> <a href="javascript:;"> <i class="icon-puzzle"></i> <span class="title">UI Components</span> <span class="arrow "></span> </a> <ul class="sub-menu"> <li> <a href="components_pickers.html"> Date & Time Pickers</a> </li> <li> <a href="components_context_menu.html"> Context Menu</a> </li> <li> <a href="components_dropdowns.html"> Custom Dropdowns</a> </li> <li> <a href="components_form_tools.html"> Form Widgets & Tools</a> </li> <li> <a href="components_form_tools2.html"> Form Widgets & Tools 2</a> </li> <li> <a href="components_editors.html"> Markdown & WYSIWYG Editors</a> </li> <li> <a href="components_ion_sliders.html"> Ion Range Sliders</a> </li> <li> <a href="components_noui_sliders.html"> NoUI Range Sliders</a> </li> <li> <a href="components_jqueryui_sliders.html"> jQuery UI Sliders</a> </li> <li> <a href="components_knob_dials.html"> Knob Circle Dials</a> </li> </ul> </li> <!-- BEGIN ANGULARJS LINK --> <li class="tooltips" data-container="body" data-placement="right" data-html="true" data-original-title="AngularJS version demo"> <a href="angularjs" target="_blank"> <i class="icon-paper-plane"></i> <span class="title"> AngularJS Version </span> </a> </li> <!-- END ANGULARJS LINK --> <li> <a href="javascript:;"> <i class="icon-settings"></i> <span class="title">Form Stuff</span> <span class="arrow "></span> </a> <ul class="sub-menu"> <li> <a href="form_controls_md.html"> <span class="badge badge-roundless badge-danger">new</span>Material Design<br> Form Controls</a> </li> <li> <a href="form_controls.html"> Bootstrap<br> Form Controls</a> </li> <li> <a href="form_icheck.html"> iCheck Controls</a> </li> <li> <a href="form_layouts.html"> Form Layouts</a> </li> <li> <a href="form_editable.html"> <span class="badge badge-roundless badge-warning">new</span>Form X-editable</a> </li> <li> <a href="form_wizard.html"> Form Wizard</a> </li> <li> <a href="form_validation.html"> Form Validation</a> </li> <li> <a href="form_image_crop.html"> <span class="badge badge-roundless badge-danger">new</span>Image Cropping</a> </li> <li> <a href="form_fileupload.html"> Multiple File Upload</a> </li> <li> <a href="form_dropzone.html"> Dropzone File Upload</a> </li> </ul> </li> <li> <a href="javascript:;"> <i class="icon-briefcase"></i> <span class="title">Data Tables</span> <span class="arrow "></span> </a> <ul class="sub-menu"> <li> <a href="table_basic.html"> Basic Datatables</a> </li> <li> <a href="table_tree.html"> Tree Datatables</a> </li> <li> <a href="table_responsive.html"> Responsive Datatables</a> </li> <li> <a href="table_managed.html"> Managed Datatables</a> </li> <li> <a href="table_editable.html"> Editable Datatables</a> </li> <li> <a href="table_advanced.html"> Advanced Datatables</a> </li> <li> <a href="table_ajax.html"> Ajax Datatables</a> </li> </ul> </li> <li> <a href="javascript:;"> <i class="icon-wallet"></i> <span class="title">Portlets</span> <span class="arrow "></span> </a> <ul class="sub-menu"> <li> <a href="portlet_general.html"> General Portlets</a> </li> <li> <a href="portlet_general2.html"> <span class="badge badge-roundless badge-danger">new</span>New Portlets #1</a> </li> <li> <a href="portlet_general3.html"> <span class="badge badge-roundless badge-danger">new</span>New Portlets #2</a> </li> <li> <a href="portlet_ajax.html"> Ajax Portlets</a> </li> <li> <a href="portlet_draggable.html"> Draggable Portlets</a> </li> </ul> </li> <li> <a href="javascript:;"> <i class="icon-bar-chart"></i> <span class="title">Charts</span> <span class="arrow "></span> </a> <ul class="sub-menu"> <li> <a href="charts_amcharts.html"> amChart</a> </li> <li> <a href="charts_flotcharts.html"> Flotchart</a> </li> </ul> </li> <li class="active open"> <a href="javascript:;"> <i class="icon-docs"></i> <span class="title">Pages</span> <span class="selected"></span> <span class="arrow open"></span> </a> <ul class="sub-menu"> <li> <a href="page_timeline.html"> <i class="icon-paper-plane"></i> <span class="badge badge-warning">2</span>New Timeline</a> </li> <li> <a href="extra_profile.html"> <i class="icon-user-following"></i> <span class="badge badge-success badge-roundless">new</span>New User Profile</a> </li> <li> <a href="page_todo.html"> <i class="icon-hourglass"></i> <span class="badge badge-danger">4</span>Todo</a> </li> <li> <a href="inbox.html"> <i class="icon-envelope"></i> <span class="badge badge-danger">4</span>Inbox</a> </li> <li> <a href="extra_faq.html"> <i class="icon-info"></i> FAQ</a> </li> <li> <a href="page_portfolio.html"> <i class="icon-feed"></i> Portfolio</a> </li> <li> <a href="page_coming_soon.html"> <i class="icon-flag"></i> Coming Soon</a> </li> <li> <a href="page_calendar.html"> <i class="icon-calendar"></i> <span class="badge badge-danger">14</span>Calendar</a> </li> <li> <a href="extra_invoice.html"> <i class="icon-flag"></i> Invoice</a> </li> <li> <a href="page_blog.html"> <i class="icon-speech"></i> Blog</a> </li> <li> <a href="page_blog_item.html"> <i class="icon-link"></i> Blog Post</a> </li> <li class="active"> <a href="page_news.html"> <i class="icon-eye"></i> <span class="badge badge-success">9</span>News</a> </li> <li> <a href="page_news_item.html"> <i class="icon-bell"></i> News View</a> </li> <li> <a href="page_timeline_old.html"> <i class="icon-paper-plane"></i> <span class="badge badge-warning">2</span>Old Timeline</a> </li> <li> <a href="extra_profile_old.html"> <i class="icon-user"></i> Old User Profile</a> </li> </ul> </li> <li> <a href="javascript:;"> <i class="icon-present"></i> <span class="title">Extra</span> <span class="arrow "></span> </a> <ul class="sub-menu"> <li> <a href="page_about.html"> About Us</a> </li> <li> <a href="page_contact.html"> Contact Us</a> </li> <li> <a href="extra_search.html"> Search Results</a> </li> <li> <a href="extra_pricing_table.html"> Pricing Tables</a> </li> <li> <a href="extra_404_option1.html"> 404 Page Option 1</a> </li> <li> <a href="extra_404_option2.html"> 404 Page Option 2</a> </li> <li> <a href="extra_404_option3.html"> 404 Page Option 3</a> </li> <li> <a href="extra_500_option1.html"> 500 Page Option 1</a> </li> <li> <a href="extra_500_option2.html"> 500 Page Option 2</a> </li> </ul> </li> <li> <a href="javascript:;"> <i class="icon-folder"></i> <span class="title">Multi Level Menu</span> <span class="arrow "></span> </a> <ul class="sub-menu"> <li> <a href="javascript:;"> <i class="icon-settings"></i> Item 1 <span class="arrow"></span> </a> <ul class="sub-menu"> <li> <a href="javascript:;"> <i class="icon-user"></i> Sample Link 1 <span class="arrow"></span> </a> <ul class="sub-menu"> <li> <a href="#"><i class="icon-power"></i> Sample Link 1</a> </li> <li> <a href="#"><i class="icon-paper-plane"></i> Sample Link 1</a> </li> <li> <a href="#"><i class="icon-star"></i> Sample Link 1</a> </li> </ul> </li> <li> <a href="#"><i class="icon-camera"></i> Sample Link 1</a> </li> <li> <a href="#"><i class="icon-link"></i> Sample Link 2</a> </li> <li> <a href="#"><i class="icon-pointer"></i> Sample Link 3</a> </li> </ul> </li> <li> <a href="javascript:;"> <i class="icon-globe"></i> Item 2 <span class="arrow"></span> </a> <ul class="sub-menu"> <li> <a href="#"><i class="icon-tag"></i> Sample Link 1</a> </li> <li> <a href="#"><i class="icon-pencil"></i> Sample Link 1</a> </li> <li> <a href="#"><i class="icon-graph"></i> Sample Link 1</a> </li> </ul> </li> <li> <a href="#"> <i class="icon-bar-chart"></i> Item 3 </a> </li> </ul> </li> <li> <a href="javascript:;"> <i class="icon-user"></i> <span class="title">Login Options</span> <span class="arrow "></span> </a> <ul class="sub-menu"> <li> <a href="login.html"> Login Form 1</a> </li> <li> <a href="login_2.html"> Login Form 2</a> </li> <li> <a href="login_3.html"> Login Form 3</a> </li> <li> <a href="login_soft.html"> Login Form 4</a> </li> <li> <a href="extra_lock.html"> Lock Screen 1</a> </li> <li> <a href="extra_lock2.html"> Lock Screen 2</a> </li> </ul> </li> <li class="last "> <a href="javascript:;"> <i class="icon-pointer"></i> <span class="title">Maps</span> <span class="arrow "></span> </a> <ul class="sub-menu"> <li> <a href="maps_google.html"> Google Maps</a> </li> <li> <a href="maps_vector.html"> Vector Maps</a> </li> </ul> </li> </ul> <!-- END SIDEBAR MENU --> </div> </div> <!-- END SIDEBAR --> <!-- BEGIN CONTENT --> <div class="page-content-wrapper"> <div class="page-content"> <!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM--> <div class="modal fade" id="portlet-config" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button> <h4 class="modal-title">Modal title</h4> </div> <div class="modal-body"> Widget settings form goes here </div> <div class="modal-footer"> <button type="button" class="btn blue">Save changes</button> <button type="button" class="btn default" data-dismiss="modal">Close</button> </div> </div> <!-- /.modal-content --> </div> <!-- /.modal-dialog --> </div> <!-- /.modal --> <!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM--> <!-- BEGIN STYLE CUSTOMIZER --> <div class="theme-panel"> <div class="toggler tooltips" data-container="body" data-placement="left" data-html="true" data-original-title="Click to open advance theme customizer panel"> <i class="icon-settings"></i> </div> <div class="toggler-close"> <i class="icon-close"></i> </div> <div class="theme-options"> <div class="theme-option theme-colors clearfix"> <span> THEME COLOR </span> <ul> <li class="color-default current tooltips" data-style="default" data-container="body" data-original-title="Default"> </li> <li class="color-grey tooltips" data-style="grey" data-container="body" data-original-title="Grey"> </li> <li class="color-blue tooltips" data-style="blue" data-container="body" data-original-title="Blue"> </li> <li class="color-dark tooltips" data-style="dark" data-container="body" data-original-title="Dark"> </li> <li class="color-light tooltips" data-style="light" data-container="body" data-original-title="Light"> </li> </ul> </div> <div class="theme-option"> <span> Theme Style </span> <select class="layout-style-option form-control input-small"> <option value="square" selected="selected">Square corners</option> <option value="rounded">Rounded corners</option> </select> </div> <div class="theme-option"> <span> Layout </span> <select class="layout-option form-control input-small"> <option value="fluid" selected="selected">Fluid</option> <option value="boxed">Boxed</option> </select> </div> <div class="theme-option"> <span> Header </span> <select class="page-header-option form-control input-small"> <option value="fixed" selected="selected">Fixed</option> <option value="default">Default</option> </select> </div> <div class="theme-option"> <span> Top Dropdown</span> <select class="page-header-top-dropdown-style-option form-control input-small"> <option value="light" selected="selected">Light</option> <option value="dark">Dark</option> </select> </div> <div class="theme-option"> <span> Sidebar Mode</span> <select class="sidebar-option form-control input-small"> <option value="fixed">Fixed</option> <option value="default" selected="selected">Default</option> </select> </div> <div class="theme-option"> <span> Sidebar Style</span> <select class="sidebar-style-option form-control input-small"> <option value="default" selected="selected">Default</option> <option value="compact">Compact</option> </select> </div> <div class="theme-option"> <span> Sidebar Menu </span> <select class="sidebar-menu-option form-control input-small"> <option value="accordion" selected="selected">Accordion</option> <option value="hover">Hover</option> </select> </div> <div class="theme-option"> <span> Sidebar Position </span> <select class="sidebar-pos-option form-control input-small"> <option value="left" selected="selected">Left</option> <option value="right">Right</option> </select> </div> <div class="theme-option"> <span> Footer </span> <select class="page-footer-option form-control input-small"> <option value="fixed">Fixed</option> <option value="default" selected="selected">Default</option> </select> </div> </div> </div> <!-- END STYLE CUSTOMIZER --> <!-- BEGIN PAGE HEADER--> <h3 class="page-title"> News <small>news listing and view samples</small> </h3> <div class="page-bar"> <ul class="page-breadcrumb"> <li> <i class="fa fa-home"></i> <a href="index.html">Home</a> <i class="fa fa-angle-right"></i> </li> <li> <a href="#">Pages</a> <i class="fa fa-angle-right"></i> </li> <li> <a href="#">News</a> </li> </ul> <div class="page-toolbar"> <div class="btn-group pull-right"> <button type="button" class="btn btn-fit-height grey-salt dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true"> Actions <i class="fa fa-angle-down"></i> </button> <ul class="dropdown-menu pull-right" role="menu"> <li> <a href="#">Action</a> </li> <li> <a href="#">Another action</a> </li> <li> <a href="#">Something else here</a> </li> <li class="divider"> </li> <li> <a href="#">Separated link</a> </li> </ul> </div> </div> </div> <!-- END PAGE HEADER--> <!-- BEGIN PAGE CONTENT--> <div class="portlet light"> <div class="portlet-body"> <div class="row"> <div class="col-md-12 news-page"> <h1 style="margin-top:0">Recent News</h1> <div class="row"> <div class="col-md-5"> <div id="myCarousel" class="carousel image-carousel slide"> <div class="carousel-inner"> <div class="active item"> <img src="../../assets/admin/pages/media/gallery/image5.jpg" class="img-responsive" alt=""> <div class="carousel-caption"> <h4> <a href="page_news_item.html"> First Thumbnail label </a> </h4> <p> Cras justo odio, dapibus ac facilisis in, egestas eget quam. </p> </div> </div> <div class="item"> <img src="../../assets/admin/pages/media/gallery/image2.jpg" class="img-responsive" alt=""> <div class="carousel-caption"> <h4> <a href="page_news_item.html"> Second Thumbnail label </a> </h4> <p> Cras justo odio, dapibus ac facilisis in, egestas eget quam. </p> </div> </div> <div class="item"> <img src="../../assets/admin/pages/media/gallery/image1.jpg" class="img-responsive" alt=""> <div class="carousel-caption"> <h4> <a href="page_news_item.html"> Third Thumbnail label </a> </h4> <p> Cras justo odio, dapibus ac facilisis in, egestas eget quam. </p> </div> </div> </div> <!-- Carousel nav --> <a class="carousel-control left" href="#myCarousel" data-slide="prev"> <i class="m-icon-big-swapleft m-icon-white"></i> </a> <a class="carousel-control right" href="#myCarousel" data-slide="next"> <i class="m-icon-big-swapright m-icon-white"></i> </a> <ol class="carousel-indicators"> <li data-target="#myCarousel" data-slide-to="0" class="active"> </li> <li data-target="#myCarousel" data-slide-to="1"> </li> <li data-target="#myCarousel" data-slide-to="2"> </li> </ol> </div> <div class="top-news margin-top-10"> <a href="javascript:;" class="btn blue"> <span> Featured News </span> <em> <i class="fa fa-tags"></i> USA, Business, Apple </em> <i class="fa fa- icon-bullhorn top-news-icon"></i> </a> </div> <div class="news-blocks"> <h3> <a href="page_news_item.html"> Google Glass Technology.. </a> </h3> <div class="news-block-tags"> <strong>CA, USA</strong> <em>3 hours ago</em> </div> <p> <img class="news-block-img pull-right" src="../../assets/admin/pages/media/gallery/image1.jpg" alt="">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident </p> <a href="page_news_item.html" class="news-block-btn"> Read more <i class="m-icon-swapright m-icon-black"></i> </a> </div> <div class="news-blocks"> <h3> <a href="page_news_item.html"> Sint occaecati cupiditat </a> </h3> <div class="news-block-tags"> <strong>London, UK</strong> <em>7 hours ago</em> </div> <p> <img class="news-block-img pull-right" src="../../assets/admin/pages/media/gallery/image4.jpg" alt="">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident </p> <a href="page_news_item.html" class="news-block-btn"> Read more <i class="m-icon-swapright m-icon-black"></i> </a> </div> <div class="news-blocks"> <h3> <a href="page_news_item.html"> Accusamus et iusto odio </a> </h3> <div class="news-block-tags"> <strong>CA, USA</strong> <em>3 hours ago</em> </div> <p> <img class="news-block-img pull-right" src="../../assets/admin/pages/media/gallery/image5.jpg" alt="">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident </p> <a href="page_news_item.html" class="news-block-btn"> Read more <i class="m-icon-swapright m-icon-black"></i> </a> </div> </div> <!--end col-md-5--> <div class="col-md-4"> <div class="top-news"> <a href="javascript:;" class="btn red"> <span> World News </span> <em> <i class="fa fa-tags"></i> UK, Canada, Asia </em> <i class="fa fa-globe top-news-icon"></i> </a> </div> <div class="news-blocks"> <h3> <a href="page_news_item.html"> Odio dignissimos ducimus </a> </h3> <div class="news-block-tags"> <strong>Berlin, Germany</strong> <em>2 hours ago</em> </div> <p> <img class="news-block-img pull-right" src="../../assets/admin/pages/media/gallery/image3.jpg" alt="">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident </p> <a href="page_news_item.html" class="news-block-btn"> Read more <i class="m-icon-swapright m-icon-black"></i> </a> </div> <div class="news-blocks"> <h3> <a href="page_news_item.html"> Sanditiis praesentium vo </a> </h3> <div class="news-block-tags"> <strong>Ankara, Turkey</strong> <em>5 hours ago</em> </div> <p> <img class="news-block-img pull-right" src="../../assets/admin/pages/media/gallery/image5.jpg" alt="">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint praesentium voluptatum delenitioccaecati cupiditate non provident </p> <a href="page_news_item.html" class="news-block-btn"> Read more <i class="m-icon-swapright m-icon-black"></i> </a> </div> <div class="top-news"> <a href="javascript:;" class="btn green"> <span> Finance </span> <em> <i class="fa fa-tags"></i> Money, Business, Google </em> <i class="fa fa-briefcase top-news-icon"></i> </a> </div> <div class="news-blocks"> <h3> <a href="page_news_item.html"> Odio dignissimos ducimus </a> </h3> <div class="news-block-tags"> <strong>Berlin, Germany</strong> <em>2 hours ago</em> </div> <p> <img class="news-block-img pull-right" src="../../assets/admin/pages/media/gallery/image3.jpg" alt="">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint non provident </p> <a href="page_news_item.html" class="news-block-btn"> Read more <i class="m-icon-swapright m-icon-black"></i> </a> </div> <div class="news-blocks"> <h3> <a href="page_news_item.html"> Sanditiis praesentium vo </a> </h3> <div class="news-block-tags"> <strong>Ankara, Turkey</strong> <em>5 hours ago</em> </div> <p> <img class="news-block-img pull-right" src="../../assets/admin/pages/media/gallery/image5.jpg" alt="">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint praesentium voluptatum delenitioccaecati cupiditate non provident </p> <a href="page_news_item.html" class="news-block-btn"> Read more <i class="m-icon-swapright m-icon-black"></i> </a> </div> </div> <!--end col-md-4--> <div class="col-md-3"> <div class="top-news"> <a href="javascript:;" class="btn purple"> <span> Science </span> <em> <i class="fa fa-tags"></i> Hi-Tech, Medicine, Space </em> <i class="fa fa-beaker top-news-icon"></i> </a> </div> <div class="news-blocks"> <h3> <a href="page_news_item.html"> Vero eos et accusam </a> </h3> <div class="news-block-tags"> <strong>CA, USA</strong> <em>3 hours ago</em> </div> <p> <img class="news-block-img pull-right" src="../../assets/admin/pages/media/gallery/image2.jpg" alt="">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident </p> <a href="page_news_item.html" class="news-block-btn"> Read more <i class="m-icon-swapright m-icon-black"></i> </a> </div> <div class="news-blocks"> <h3> <a href="page_news_item.html"> Sias excepturi sint occae </a> </h3> <div class="news-block-tags"> <strong>Vancouver, Canada</strong> <em>3 hours ago</em> </div> <p> <img class="news-block-img pull-right" src="../../assets/admin/pages/media/gallery/image4.jpg" alt="">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident </p> <a href="page_news_item.html" class="news-block-btn"> Read more <i class="m-icon-swapright m-icon-black"></i> </a> </div> <div class="top-news"> <a href="javascript:;" class="btn yellow"> <span> Sport </span> <em> <i class="fa fa-tags"></i> Football, Swimming, Tennis </em> <i class="fa fa-trophy top-news-icon"></i> </a> </div> <div class="news-blocks"> <h3> <a href="page_news_item.html"> Vero eos et accusam </a> </h3> <div class="news-block-tags"> <strong>CA, USA</strong> <em>3 hours ago</em> </div> <p> <img class="news-block-img pull-right" src="../../assets/admin/pages/media/gallery/image2.jpg" alt="">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident </p> <a href="page_news_item.html" class="news-block-btn"> Read more <i class="m-icon-swapright m-icon-black"></i> </a> </div> </div> <!--end col-md-3--> </div> <div class="space20"> </div> <h3>News Option</h3> <div class="row"> <div class="col-md-3"> <div class="news-blocks"> <h3> <a href="page_news_item.html"> Google Glass Technology.. </a> </h3> <div class="news-block-tags"> <strong>LA, USA</strong> <em>2 hours ago</em> </div> <p> <img class="news-block-img pull-right" src="../../assets/admin/pages/media/gallery/image5.jpg" alt="">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident </p> <a href="page_news_item.html" class="news-block-btn"> Read more <i class="m-icon-swapright m-icon-black"></i> </a> </div> <div class="news-blocks"> <h3> <a href="page_news_item.html"> Google Glass Technology.. </a> </h3> <div class="news-block-tags"> <strong>Berlin, Germany</strong> <em>6 hours ago</em> </div> <p> At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident </p> <a href="page_news_item.html" class="news-block-btn"> Read more <i class="m-icon-swapright m-icon-black"></i> </a> </div> </div> <!--end col-md-3--> <div class="col-md-3"> <div class="news-blocks"> <h3> <a href="page_news_item.html"> Google Glass Technology.. </a> </h3> <div class="news-block-tags"> <strong>CA, USA</strong> <em>3 hours ago</em> </div> <p> <img class="news-block-img pull-right" src="../../assets/admin/pages/media/gallery/image3.jpg" alt="">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident </p> <a href="page_news_item.html" class="news-block-btn"> Read more <i class="m-icon-swapright m-icon-black"></i> </a> </div> <div class="news-blocks"> <h3> <a href="page_news_item.html"> Google Glass Technology.. </a> </h3> <div class="news-block-tags"> <strong>CA, USA</strong> <em>3 hours ago</em> </div> <p> At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident </p> <a href="page_news_item.html" class="news-block-btn"> Read more <i class="m-icon-swapright m-icon-black"></i> </a> </div> </div> <!--end col-md-3--> <div class="col-md-6"> <div class="row"> <div class="col-md-12"> <div class="news-blocks"> <h3> <a href="page_news_item.html"> Pusto odio dignissimos ducimus i quos dolores et qui blanditiis praesentium.. </a> </h3> <div class="news-block-tags"> <strong>CA, USA</strong> <em>3 hours ago</em> </div> <p> <img class="news-block-img pull-right" src="../../assets/admin/pages/media/gallery/image2.jpg" alt="">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident iti.. </p> <a href="page_news_item.html" class="news-block-btn"> Read more <i class="m-icon-swapright m-icon-black"></i> </a> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="news-blocks"> <h3> <a href="page_news_item.html"> Vero eos et accusamus et iusto od qui.. </a> </h3> <div class="news-block-tags"> <strong>CA, USA</strong> <em>3 hours ago</em> </div> <p> At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident </p> <a href="page_news_item.html" class="news-block-btn"> Read more <i class="m-icon-swapright m-icon-black"></i> </a> </div> </div> <div class="col-md-6"> <div class="news-blocks"> <h3> <a href="page_news_item.html"> Google Glass Technology.. </a> </h3> <div class="news-block-tags"> <strong>CA, USA</strong> <em>3 hours ago</em> </div> <p> At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident </p> <a href="page_news_item.html" class="news-block-btn"> Read more <i class="m-icon-swapright m-icon-black"></i> </a> </div> </div> </div> </div> <!--end col-md-6--> </div> <div class="space20"> </div> <h3>News Feeds</h3> <div class="row"> <div class="col-md-3"> <div class="top-news"> <a href="javascript:;" class="btn red"> <span> Metronic News </span> <em>Posted on: April 16, 2013</em> <em> <i class="fa fa-tags"></i> Money, Business, Google </em> <i class="fa fa-briefcase top-news-icon"></i> </a> </div> </div> <div class="col-md-3"> <div class="top-news"> <a href="javascript:;" class="btn green"> <span> Top Week </span> <em>Posted on: April 15, 2013</em> <em> <i class="fa fa-tags"></i> Internet, Music, People </em> <i class="fa fa-music top-news-icon"></i> </a> </div> </div> <div class="col-md-3"> <div class="top-news"> <a href="javascript:;" class="btn blue"> <span> Gold Price Falls </span> <em>Posted on: April 14, 2013</em> <em> <i class="fa fa-tags"></i> USA, Business, Apple </em> <i class="fa fa-globe top-news-icon"></i> </a> </div> </div> <div class="col-md-3"> <div class="top-news"> <a href="javascript:;" class="btn yellow"> <span> Study Abroad </span> <em>Posted on: April 13, 2013</em> <em> <i class="fa fa-tags"></i> Education, Students, Canada </em> <i class="fa fa-book top-news-icon"></i> </a> </div> </div> </div> <div class="row"> <div class="col-md-3"> <div class="top-news"> <a href="javascript:;" class="btn green"> <span> Top Week </span> <em>Posted on: April 15, 2013</em> <em> <i class="fa fa-tags"></i> Internet, Music, People </em> <i class="fa fa-music top-news-icon"></i> </a> </div> </div> <div class="col-md-3"> <div class="top-news"> <a href="javascript:;" class="btn yellow"> <span> Study Abroad </span> <em>Posted on: April 13, 2013</em> <em> <i class="fa fa-tags"></i> Education, Students, Canada </em> <i class="fa fa-book top-news-icon"></i> </a> </div> </div> <div class="col-md-3"> <div class="top-news"> <a href="javascript:;" class="btn red"> <span> Metronic News </span> <em>Posted on: April 16, 2013</em> <em> <i class="fa fa-tags"></i> Money, Business, Google </em> <i class="fa fa-briefcase top-news-icon"></i> </a> </div> </div> <div class="col-md-3"> <div class="top-news"> <a href="javascript:;" class="btn blue"> <span> Gold Price Falls </span> <em>Posted on: April 14, 2013</em> <em> <i class="fa fa-tags"></i> USA, Business, Apple </em> <i class="fa fa-globe top-news-icon"></i> </a> </div> </div> </div> </div> </div> </div> </div> <!-- END PAGE CONTENT--> </div> </div> <!-- END CONTENT --> <!-- BEGIN QUICK SIDEBAR --> <!--Cooming Soon...--> <!-- END QUICK SIDEBAR --> </div> <!-- END CONTAINER --> <!-- BEGIN FOOTER --> <div class="page-footer"> <div class="page-footer-inner"> 2014 &copy; Metronic by keenthemes. <a href="http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469?ref=keenthemes" title="Purchase Metronic just for 27$ and get lifetime updates for free" target="_blank">Purchase Metronic!</a> </div> <div class="scroll-to-top"> <i class="icon-arrow-up"></i> </div> </div> <!-- END FOOTER --> </div> <!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) --> <!-- BEGIN CORE PLUGINS --> <!--[if lt IE 9]> <script src="../../assets/global/plugins/respond.min.js"></script> <script src="../../assets/global/plugins/excanvas.min.js"></script> <![endif]--> <script src="../../assets/global/plugins/jquery.min.js" type="text/javascript"></script> <script src="../../assets/global/plugins/jquery-migrate.min.js" type="text/javascript"></script> <!-- IMPORTANT! Load jquery-ui.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip --> <script src="../../assets/global/plugins/jquery-ui/jquery-ui.min.js" type="text/javascript"></script> <script src="../../assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script> <script src="../../assets/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script> <script src="../../assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script> <script src="../../assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script> <script src="../../assets/global/plugins/jquery.cokie.min.js" type="text/javascript"></script> <script src="../../assets/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script> <script src="../../assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script> <!-- END CORE PLUGINS --> <script src="../../assets/global/scripts/metronic.js" type="text/javascript"></script> <script src="../../assets/admin/layout2/scripts/layout.js" type="text/javascript"></script> <script src="../../assets/admin/layout2/scripts/demo.js" type="text/javascript"></script> <script> jQuery(document).ready(function() { Metronic.init(); // init metronic core components Layout.init(); // init current layout Demo.init(); // init demo features }); </script> <!-- END JAVASCRIPTS --> </body> <!-- END BODY --> </html>
{ "content_hash": "66386b7ff18f1f5deb617ed2ee545dbd", "timestamp": "", "source": "github", "line_count": 1904, "max_line_length": 346, "avg_line_length": 36.76155462184874, "alnum_prop": 0.5136154527530932, "repo_name": "wtfckkk/crm-admision", "id": "d92e96faa15fd081b8dd9a61c68e64d0f2ef10fc", "size": "69994", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "public/metronic/theme_rtl/templates/admin2/page_news.html", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "ASP", "bytes": "596" }, { "name": "ApacheConf", "bytes": "1643" }, { "name": "CSS", "bytes": "10702631" }, { "name": "CoffeeScript", "bytes": "167262" }, { "name": "HTML", "bytes": "157354350" }, { "name": "JavaScript", "bytes": "28206081" }, { "name": "PHP", "bytes": "792194" }, { "name": "Shell", "bytes": "888" } ], "symlink_target": "" }
<?php # -*- coding: utf-8 -*- namespace Cockpit\Core\Controller; use WP_Query; /** * Interface AttributeQueryInterface * * @package Cockpit\Core\Model */ interface AttributeQueryInterface { /** * @param WP_Query $query * @return void */ public function append_to_query( WP_Query $query ); /** * Pass the query here, which should be affected by the * filter methods of this object. Should probably better * be done with constructor injection. * * @param WP_Query $query * @return void */ public function set_query_to_filter( WP_Query $query ); /** * @wp-hook posts_where * @param string $sql_where * @param WP_Query $query (Optional) * @return string */ public function append_sql_where( $sql_where, WP_Query $query = NULL ); /** * @wp-hook posts_orderby * @param string $sql_orderby * @param WP_Query $query (Optional) * @return string */ public function append_sql_orderby( $sql_orderby, WP_Query $query = NULL ); /** * @wp-hook posts_join * @param string $sql_join * @param WP_Query $query * @return string */ public function append_sql_join( $sql_join, WP_Query $query = NULL ); }
{ "content_hash": "d6b079c45bafd6455a1d7750b6e3e896", "timestamp": "", "source": "github", "line_count": 52, "max_line_length": 76, "avg_line_length": 22.21153846153846, "alnum_prop": 0.658008658008658, "repo_name": "inpsyde/Cockpit", "id": "291d5ae62a8b89779aaadf182b6be716a0769a34", "size": "1155", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "inc/Controller/AttributeQueryInterface.php", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "32120" }, { "name": "JavaScript", "bytes": "317919" }, { "name": "PHP", "bytes": "424551" } ], "symlink_target": "" }
SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
{ "content_hash": "5658188ac276ca08e43f3020ddd68898", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 10.23076923076923, "alnum_prop": 0.6917293233082706, "repo_name": "mdoering/backbone", "id": "f507735c021915ed098341bb3b45a8ab1e2f9ee0", "size": "187", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Liliopsida/Asparagales/Orchidaceae/Stelis/Stelis moritzii/ Syn. Pleurothallis moritzii/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
""" abstract type Field end abstract type at the top of the type hierarchy for denoting fields over which vector spaces can be defined. Two common fields are `ℝ` and `ℂ`, representing the field of real or complex numbers respectively. """ abstract type Field end struct RealNumbers <: Field end struct ComplexNumbers <: Field end const ℝ = RealNumbers() const ℂ = ComplexNumbers() Base.show(io::IO, ::RealNumbers) = print(io,"ℝ") Base.show(io::IO, ::ComplexNumbers) = print(io,"ℂ") Base.in(::Any, ::Field) = false Base.in(::Real, ::RealNumbers) = true Base.in(::Number, ::ComplexNumbers) = true Base.@pure Base.issubset(::Type, ::Field) = false Base.@pure Base.issubset(::Type{<:Real}, ::RealNumbers) = true Base.@pure Base.issubset(::Type{<:Number}, ::ComplexNumbers) = true Base.@pure Base.issubset(::RealNumbers, ::ComplexNumbers) = true # VECTOR SPACES: #==============================================================================# """ abstract type VectorSpace end abstract type at the top of the type hierarchy for denoting vector spaces """ abstract type VectorSpace end """ function fieldtype(V::VectorSpace) -> Field Returns the field type over which a vector space is defined. """ function fieldtype end fieldtype(V::VectorSpace) = fieldtype(typeof(V)) # Basic vector space methods #---------------------------- """ space(a) -> VectorSpace Returns the vector space associated to object `a`. """ function space end """ dim(V::VectorSpace) -> Int Returns the total dimension of the vector space `V` as an Int. """ function dim end """ dual(V::VectorSpace) -> VectorSpace Returns the dual space of `V`; also obtained via `V'`. It is assumed that `typeof(V) == typeof(V')`. """ function dual end # convenience definitions: Base.adjoint(V::VectorSpace) = dual(V) Base.:*(V1::VectorSpace, V2::VectorSpace) = ⊗(V1, V2) # Hierarchy of elementary vector spaces #--------------------------------------- """ abstract type ElementarySpace{k} <: VectorSpace end Elementary finite-dimensional vector space over a field `k` that can be used as the index space corresponding to the indices of a tensor. Every elementary vector space should respond to the methods `conj` and `dual`, returning the complex conjugate space and the dual space respectively. The complex conjugate of the dual space is obtained as `dual(conj(V)) === conj(dual(V))`. These different spaces should be of the same type, so that a tensor can be defined as an element of a homogeneous tensor product of these spaces. """ abstract type ElementarySpace{k} <: VectorSpace end const IndexSpace = ElementarySpace fieldtype(::Type{<:ElementarySpace{k}}) where {k} = k """ conj(V::ElementarySpace) -> ElementarySpace Returns the conjugate space of `V`. For `fieldtype(V)==ℝ`, `conj(V) == V` It is assumed that `typeof(V) == typeof(conj(V))`. """ Base.conj(V::ElementarySpace{ℝ}) = V """ abstract type InnerProductSpace{k} <: ElementarySpace{k} end abstract type for denoting vector with an inner product and a corresponding metric, which can be used to raise or lower indices of tensors """ abstract type InnerProductSpace{k} <: ElementarySpace{k} end """ abstract type EuclideanSpace{k<:Union{ℝ,ℂ}} <: InnerProductSpace{k} end abstract type for denoting real or complex spaces with a standard (Euclidean) inner product (i.e. orthonormal basis), such that the dual space is naturally isomorphic to the conjugate space (in the complex case) or even to the space itself (in the real case) """ abstract type EuclideanSpace{k} <: InnerProductSpace{k} end # k should be ℝ or ℂ dual(V::EuclideanSpace) = conj(V) # dual space is naturally isomorphic to conjugate space for inner product spaces # representation spaces: we restrict to complex Euclidean space supporting unitary representations """ abstract type AbstractRepresentationSpace{G<:Sector} <: EuclideanSpace{ℂ} end Complex Euclidean space with a direct sum structure corresponding to different different superselection sectors of type `G<:Sector`, e.g. the elements or irreps of a compact or finite group, or the labels of a unitary fusion category. """ abstract type AbstractRepresentationSpace{G<:Sector} <: EuclideanSpace{ℂ} end """ function sectortype(a) -> Sector Returns the type of sector over which object `a` (e.g. a representation space or an invariant tensor) is defined. Also works in type domain. """ sectortype(V::VectorSpace) = sectortype(typeof(V)) sectortype(::Type{<:ElementarySpace}) = Trivial sectortype(::Type{<:AbstractRepresentationSpace{G}}) where {G} = G """ function sectors(a) Returns the different sectors of object `a`( e.g. a representation space or an invariant tensor). """ sectors(::ElementarySpace) = (Trivial(),) dim(V::ElementarySpace, ::Trivial) = sectortype(V) == Type{Trivial} ? dim(V) : throw(SectorError()) # Composite vector spaces #------------------------- """ abstract type CompositeSpace{S<:ElementarySpace} <: VectorSpace end Abstract type for composite spaces that are defined in terms of a number of elementary vector spaces of a homogeneous type `S<:ElementarySpace{k}`. """ abstract type CompositeSpace{S<:ElementarySpace} <: VectorSpace end fieldtype(::Type{<:CompositeSpace{S}}) where {S<:ElementarySpace} = fieldtype(S) sectortype(::Type{<:CompositeSpace{S}}) where {S<:ElementarySpace} = sectortype(S) # Specific realizations of ElementarySpace types #------------------------------------------------ # spaces without internal structure include("cartesianspace.jl") include("complexspace.jl") include("generalspace.jl") include("representationspace.jl") # # Specific realizations of CompositeSpace types # #----------------------------------------------- include("productspace.jl") # include("superspace.jl") # include("invariantspace.jl") # Other examples might include: # braidedspace and fermionspace # symmetric and antisymmetric subspace of a tensor product of identical vector spaces # ...
{ "content_hash": "c4951138163a7eccdc5e8b2103efc5ab", "timestamp": "", "source": "github", "line_count": 176, "max_line_length": 99, "avg_line_length": 33.89772727272727, "alnum_prop": 0.7070063694267515, "repo_name": "Jutho/TensorToolbox.jl", "id": "077f04aa2162dc727da00d8537090903098ddffb", "size": "6087", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/spaces/vectorspaces.jl", "mode": "33188", "license": "mit", "language": [ { "name": "Julia", "bytes": "133936" } ], "symlink_target": "" }
window.esdocSearchIndex = [ [ "influx/src/backoff/constant.js~constantbackoff", "class/src/backoff/constant.js~ConstantBackoff.html", "<span>ConstantBackoff</span> <span class=\"search-result-import-path\">influx/src/backoff/constant.js</span>", "class" ], [ "influx/src/backoff/exponential.js~exponentialbackoff", "class/src/backoff/exponential.js~ExponentialBackoff.html", "<span>ExponentialBackoff</span> <span class=\"search-result-import-path\">influx/src/backoff/exponential.js</span>", "class" ], [ "influx/src/builder.js~expression", "class/src/builder.js~Expression.html", "<span>Expression</span> <span class=\"search-result-import-path\">influx/src/builder.js</span>", "class" ], [ "influx/src/index.js~influxdb", "class/src/index.js~InfluxDB.html", "<span>InfluxDB</span> <span class=\"search-result-import-path\">influx/src/index.js</span>", "class" ], [ "influx/src/builder.js~measurement", "class/src/builder.js~Measurement.html", "<span>Measurement</span> <span class=\"search-result-import-path\">influx/src/builder.js</span>", "class" ], [ "influx/src/pool.js~pool", "class/src/pool.js~Pool.html", "<span>Pool</span> <span class=\"search-result-import-path\">influx/src/pool.js</span>", "class" ], [ "influx/src/grammar/times.js~precision", "variable/index.html#static-variable-Precision", "<span>Precision</span> <span class=\"search-result-import-path\">influx/src/grammar/times.js</span>", "variable" ], [ "influx/src/grammar/ds.js~raw", "class/src/grammar/ds.js~Raw.html", "<span>Raw</span> <span class=\"search-result-import-path\">influx/src/grammar/ds.js</span>", "class" ], [ "influx/src/pool.js~requesterror", "class/src/pool.js~RequestError.html", "<span>RequestError</span> <span class=\"search-result-import-path\">influx/src/pool.js</span>", "class" ], [ "influx/src/results.js~resulterror", "class/src/results.js~ResultError.html", "<span>ResultError</span> <span class=\"search-result-import-path\">influx/src/results.js</span>", "class" ], [ "influx/src/schema.js~schema", "class/src/schema.js~Schema.html", "<span>Schema</span> <span class=\"search-result-import-path\">influx/src/schema.js</span>", "class" ], [ "influx/src/pool.js~servicenotavailableerror", "class/src/pool.js~ServiceNotAvailableError.html", "<span>ServiceNotAvailableError</span> <span class=\"search-result-import-path\">influx/src/pool.js</span>", "class" ], [ "influx/src/results.js~assertnoerrors", "function/index.html#static-function-assertNoErrors", "<span>assertNoErrors</span> <span class=\"search-result-import-path\">influx/src/results.js</span>", "function" ], [ "influx/src/grammar/times.js~casttimestamp", "function/index.html#static-function-castTimestamp", "<span>castTimestamp</span> <span class=\"search-result-import-path\">influx/src/grammar/times.js</span>", "function" ], [ "influx/src/schema.js~coercebadly", "function/index.html#static-function-coerceBadly", "<span>coerceBadly</span> <span class=\"search-result-import-path\">influx/src/schema.js</span>", "function" ], [ "influx/src/grammar/times.js~datetotime", "function/index.html#static-function-dateToTime", "<span>dateToTime</span> <span class=\"search-result-import-path\">influx/src/grammar/times.js</span>", "function" ], [ "influx/src/grammar/escape.js~escape", "variable/index.html#static-variable-escape", "<span>escape</span> <span class=\"search-result-import-path\">influx/src/grammar/escape.js</span>", "variable" ], [ "influx/src/grammar/times.js~formatdate", "function/index.html#static-function-formatDate", "<span>formatDate</span> <span class=\"search-result-import-path\">influx/src/grammar/times.js</span>", "function" ], [ "influx/src/grammar/times.js~isoortimetodate", "function/index.html#static-function-isoOrTimeToDate", "<span>isoOrTimeToDate</span> <span class=\"search-result-import-path\">influx/src/grammar/times.js</span>", "function" ], [ "influx/src/results.js~parse", "function/index.html#static-function-parse", "<span>parse</span> <span class=\"search-result-import-path\">influx/src/results.js</span>", "function" ], [ "influx/src/results.js~parsesingle", "function/index.html#static-function-parseSingle", "<span>parseSingle</span> <span class=\"search-result-import-path\">influx/src/results.js</span>", "function" ], [ "influx/src/grammar/times.js~tonanodate", "function/index.html#static-function-toNanoDate", "<span>toNanoDate</span> <span class=\"search-result-import-path\">influx/src/grammar/times.js</span>", "function" ], [ "", "test-file/unit/backoff.test.js.html#lineNumber5", "backoff strategies", "test" ], [ "", "test-file/unit/backoff.test.js.html#lineNumber6", "backoff strategies constant strategy", "test" ], [ "", "test-file/unit/backoff.test.js.html#lineNumber7", "backoff strategies constant strategy appears to work", "test" ], [ "", "test-file/unit/backoff.test.js.html#lineNumber33", "backoff strategies exponential strategy", "test" ], [ "", "test-file/unit/backoff.test.js.html#lineNumber34", "backoff strategies exponential strategy appears to work", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber4", "grammar", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber6", "grammar ", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber8", "grammar ", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber32", "grammar converts a nanoseconds timestamp to a nano date", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber38", "grammar converts a nanoseconds timestamp with trailing zeroes to a nano date", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber14", "grammar does not escape raw values", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber17", "grammar escapes backslashes (issues #486, #516)", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber22", "grammar escapes complex values (issue #242)", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber44", "grammar formatting", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber48", "grammar formatting formats millisecond dates", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber45", "grammar formatting formats nanosecond dates", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber52", "grammar parsing", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber53", "grammar parsing parses ISO dates correctly", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber86", "grammar parsing parses numeric `h` timestamps", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber81", "grammar parsing parses numeric `m` timestamps", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber71", "grammar parsing parses numeric `ms` timestamps", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber59", "grammar parsing parses numeric `ns` timestamps", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber76", "grammar parsing parses numeric `s` timestamps", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber65", "grammar parsing parses numeric `u` timestamps", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber92", "grammar timestamp casting", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber111", "grammar timestamp casting accepts strings, numbers liternally", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber93", "grammar timestamp casting casts dates into timestamps", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber102", "grammar timestamp casting casts nanodates into timestamps", "test" ], [ "", "test-file/unit/grammar.test.js.html#lineNumber115", "grammar timestamp casting throws on non-numeric strings", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber5", "influxdb", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber6", "influxdb constructor", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber62", "influxdb constructor parses cluster configs", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber25", "influxdb constructor parses dsns", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber82", "influxdb constructor parses parses schema", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber44", "influxdb constructor parses single configs", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber7", "influxdb constructor uses default options", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber122", "influxdb methods", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber813", "influxdb methods .alterRetentionPolicy", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber823", "influxdb methods .alterRetentionPolicy creates default policies", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber815", "influxdb methods .alterRetentionPolicy creates non-default policies", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber378", "influxdb methods .createContinuousQuery()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber390", "influxdb methods .createContinuousQuery() fills in default DB", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber379", "influxdb methods .createContinuousQuery() queries correctly no resample", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber383", "influxdb methods .createContinuousQuery() queries correctly with resample", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber387", "influxdb methods .createContinuousQuery() throws if DB unspecified", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber183", "influxdb methods .createDatabase()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber794", "influxdb methods .createRetentionPolicy", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber804", "influxdb methods .createRetentionPolicy creates default policies", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber796", "influxdb methods .createRetentionPolicy creates non-default policies", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber324", "influxdb methods .createUser()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber329", "influxdb methods .createUser() works with admin specified == false", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber325", "influxdb methods .createUser() works with admin specified == true", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber333", "influxdb methods .createUser() works with admin unspecified", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber396", "influxdb methods .dropContinuousQuery()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber404", "influxdb methods .dropContinuousQuery() fills in default DB", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber397", "influxdb methods .dropContinuousQuery() queries correctly", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber401", "influxdb methods .dropContinuousQuery() throws if DB unspecified", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber189", "influxdb methods .dropDatabase()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber273", "influxdb methods .dropMeasurement()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber280", "influxdb methods .dropSeries()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber304", "influxdb methods .dropSeries() drops with both", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber286", "influxdb methods .dropSeries() drops with only from clause by builder", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber282", "influxdb methods .dropSeries() drops with only from clause by string", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber297", "influxdb methods .dropSeries() drops with only where clause by builder", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber290", "influxdb methods .dropSeries() drops with only where clause by string", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber195", "influxdb methods .dropShard()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber374", "influxdb methods .dropUser()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber199", "influxdb methods .getDatabaseNames()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber205", "influxdb methods .getMeasurements()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber215", "influxdb methods .getSeries() from all", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber250", "influxdb methods .getSeries() from single", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber315", "influxdb methods .getUsers()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber366", "influxdb methods .grantAdminPrivilege()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber338", "influxdb methods .grantPrivilege()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber346", "influxdb methods .grantPrivilege() fills in default DB", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber339", "influxdb methods .grantPrivilege() queries correctly", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber343", "influxdb methods .grantPrivilege() throws if DB unspecified", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber593", "influxdb methods .parsePoint()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber636", "influxdb methods .parsePoint() accepts custom database option", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber625", "influxdb methods .parsePoint() accepts custom precision option", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber594", "influxdb methods .parsePoint() parses a minimal valid point with default options", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber608", "influxdb methods .parsePoint() parses a point with fields, tags, and timestamp", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber677", "influxdb methods .parsePoint() should throw an error if extraneous fields are given", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber667", "influxdb methods .parsePoint() should throw an error if extraneous tags are given", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber687", "influxdb methods .parsePoint() should throw an error if invalid value for field type given", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber646", "influxdb methods .parsePoint() uses a schema to coerce", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber698", "influxdb methods .query", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber712", "influxdb methods .query parses query output", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber748", "influxdb methods .query passes in options", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber761", "influxdb methods .query rewrites nanosecond precisions", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber700", "influxdb methods .query runs raw queries", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber735", "influxdb methods .query selects from multiple", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber774", "influxdb methods .query uses placeholders", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber370", "influxdb methods .revokeAdminPrivilege()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber352", "influxdb methods .revokePrivilege()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber360", "influxdb methods .revokePrivilege() fills in default DB", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber353", "influxdb methods .revokePrivilege() queries correctly", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber357", "influxdb methods .revokePrivilege() throws if DB unspecified", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber410", "influxdb methods .showContinousQueries()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber418", "influxdb methods .showContinousQueries() fills in default DB", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber411", "influxdb methods .showContinousQueries() queries correctly", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber415", "influxdb methods .showContinousQueries() throws if DB unspecified", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber424", "influxdb methods .writePoints()", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber562", "influxdb methods .writePoints() accepts nanoseconds (as ms)", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber577", "influxdb methods .writePoints() accepts timestamp overriding", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber479", "influxdb methods .writePoints() can accept a schema at runtime", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber521", "influxdb methods .writePoints() handles lack of fields", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber508", "influxdb methods .writePoints() handles lack of tags", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber534", "influxdb methods .writePoints() handles multiple tags", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber460", "influxdb methods .writePoints() uses a schema to coerce", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber444", "influxdb methods .writePoints() writes using default options without a schema", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber425", "influxdb methods .writePoints() writes with all options specified without a schema", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber547", "influxdb methods .writePoints() writes with the .writeMeasurement method", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber832", "influxdb methods drops retention policies", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber837", "influxdb methods shows retention policies", "test" ], [ "", "test-file/unit/influx.test.js.html#lineNumber862", "influxdb methods shows shards", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber12", "pool", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber58", "pool attempts to make an https request", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber179", "pool backoff", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber239", "pool backoff constant", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber247", "pool backoff constant should disable hosts if backoff delay is greater than zero", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber260", "pool backoff constant should not disable hosts if backoff delay is zero", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber180", "pool backoff exponential", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber203", "pool backoff exponential should back off if failures continue", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber187", "pool backoff exponential should error if there are no available hosts", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber198", "pool backoff exponential should reenable hosts after the backoff expires", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber220", "pool backoff exponential should reset backoff after success", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber151", "pool calls back immediately on un-retryable error", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber139", "pool fails if too many errors happen", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber77", "pool handles unicode chunks correctly", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber63", "pool passes through request options", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber163", "pool pings servers", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber83", "pool request generators", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber105", "pool request generators discards responses", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber113", "pool request generators errors if JSON parsing fails", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber89", "pool request generators includes request query strings and bodies", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber84", "pool request generators makes a text request", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber108", "pool request generators parses JSON responses", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber134", "pool retries on a request error", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber173", "pool times out in pings", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber122", "pool times out requests", "test" ], [ "", "test-file/unit/pool.test.js.html#lineNumber71", "pool valid request data content length", "test" ], [ "", "test-file/unit/builder.test.js.html#lineNumber4", "query builder", "test" ], [ "", "test-file/unit/builder.test.js.html#lineNumber26", "query builder expression builder", "test" ], [ "", "test-file/unit/builder.test.js.html#lineNumber77", "query builder expression builder ", "test" ], [ "", "test-file/unit/builder.test.js.html#lineNumber27", "query builder expression builder creates basic queries", "test" ], [ "", "test-file/unit/builder.test.js.html#lineNumber30", "query builder expression builder inserts data types correctly", "test" ], [ "", "test-file/unit/builder.test.js.html#lineNumber54", "query builder expression builder throws when using a flagged regex", "test" ], [ "", "test-file/unit/builder.test.js.html#lineNumber57", "query builder expression builder throws when using un-stringifyable object", "test" ], [ "", "test-file/unit/builder.test.js.html#lineNumber5", "query builder measurement builder", "test" ], [ "", "test-file/unit/builder.test.js.html#lineNumber19", "query builder measurement builder builds with name and db", "test" ], [ "", "test-file/unit/builder.test.js.html#lineNumber9", "query builder measurement builder builds with name and rp", "test" ], [ "", "test-file/unit/builder.test.js.html#lineNumber12", "query builder measurement builder builds with name, rp, and db", "test" ], [ "", "test-file/unit/builder.test.js.html#lineNumber6", "query builder measurement builder builds with only name", "test" ], [ "", "test-file/unit/builder.test.js.html#lineNumber22", "query builder measurement builder throws when a name is omitted", "test" ], [ "", "test-file/unit/result.test.js.html#lineNumber4", "results", "test" ], [ "", "test-file/unit/result.test.js.html#lineNumber5", "results parses a empty result", "test" ], [ "", "test-file/unit/result.test.js.html#lineNumber48", "results parses a results with second-precision", "test" ], [ "", "test-file/unit/result.test.js.html#lineNumber22", "results parses a simple table of results", "test" ], [ "", "test-file/unit/result.test.js.html#lineNumber71", "results parses alternate epochs", "test" ], [ "", "test-file/unit/result.test.js.html#lineNumber168", "results parses empty series", "test" ], [ "", "test-file/unit/result.test.js.html#lineNumber174", "results parses empty values", "test" ], [ "", "test-file/unit/result.test.js.html#lineNumber113", "results parses grouped results", "test" ], [ "", "test-file/unit/result.test.js.html#lineNumber184", "results throws error on an errorful series", "test" ], [ "", "test-file/unit/schema.test.js.html#lineNumber5", "schema", "test" ], [ "", "test-file/unit/schema.test.js.html#lineNumber33", "schema basic schema", "test" ], [ "", "test-file/unit/schema.test.js.html#lineNumber47", "schema basic schema accepts partial data", "test" ], [ "", "test-file/unit/schema.test.js.html#lineNumber76", "schema basic schema allows valid tags", "test" ], [ "", "test-file/unit/schema.test.js.html#lineNumber34", "schema basic schema coerces data correctly", "test" ], [ "", "test-file/unit/schema.test.js.html#lineNumber52", "schema basic schema coerces numeric string data", "test" ], [ "", "test-file/unit/schema.test.js.html#lineNumber57", "schema basic schema strips null and undefined values", "test" ], [ "", "test-file/unit/schema.test.js.html#lineNumber83", "schema basic schema throws if invalid fields are provided", "test" ], [ "", "test-file/unit/schema.test.js.html#lineNumber80", "schema basic schema throws if invalid tags are provided", "test" ], [ "", "test-file/unit/schema.test.js.html#lineNumber64", "schema basic schema throws if wrong data type provided (bool)", "test" ], [ "", "test-file/unit/schema.test.js.html#lineNumber68", "schema basic schema throws if wrong data type provided (float)", "test" ], [ "", "test-file/unit/schema.test.js.html#lineNumber72", "schema basic schema throws if wrong data type provided (int)", "test" ], [ "", "test-file/unit/schema.test.js.html#lineNumber20", "schema coerceBadly", "test" ], [ "", "test-file/unit/schema.test.js.html#lineNumber21", "schema coerceBadly apparently works", "test" ], [ "src/.external-ecmascript.js~array", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", "src/.external-ecmascript.js~Array", "external" ], [ "src/.external-ecmascript.js~arraybuffer", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", "src/.external-ecmascript.js~ArrayBuffer", "external" ], [ "src/.external-ecmascript.js~boolean", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", "src/.external-ecmascript.js~Boolean", "external" ], [ "src/.external-ecmascript.js~dataview", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", "src/.external-ecmascript.js~DataView", "external" ], [ "src/.external-ecmascript.js~date", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", "src/.external-ecmascript.js~Date", "external" ], [ "src/.external-ecmascript.js~error", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", "src/.external-ecmascript.js~Error", "external" ], [ "src/.external-ecmascript.js~evalerror", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", "src/.external-ecmascript.js~EvalError", "external" ], [ "src/.external-ecmascript.js~float32array", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", "src/.external-ecmascript.js~Float32Array", "external" ], [ "src/.external-ecmascript.js~float64array", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", "src/.external-ecmascript.js~Float64Array", "external" ], [ "src/.external-ecmascript.js~function", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", "src/.external-ecmascript.js~Function", "external" ], [ "src/.external-ecmascript.js~generator", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", "src/.external-ecmascript.js~Generator", "external" ], [ "src/.external-ecmascript.js~generatorfunction", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", "src/.external-ecmascript.js~GeneratorFunction", "external" ], [ "src/.external-ecmascript.js~infinity", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", "src/.external-ecmascript.js~Infinity", "external" ], [ "src/.external-ecmascript.js~int16array", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", "src/.external-ecmascript.js~Int16Array", "external" ], [ "src/.external-ecmascript.js~int32array", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", "src/.external-ecmascript.js~Int32Array", "external" ], [ "src/.external-ecmascript.js~int8array", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", "src/.external-ecmascript.js~Int8Array", "external" ], [ "src/.external-ecmascript.js~internalerror", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", "src/.external-ecmascript.js~InternalError", "external" ], [ "src/.external-ecmascript.js~json", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", "src/.external-ecmascript.js~JSON", "external" ], [ "src/.external-ecmascript.js~map", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", "src/.external-ecmascript.js~Map", "external" ], [ "src/.external-ecmascript.js~nan", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", "src/.external-ecmascript.js~NaN", "external" ], [ "src/.external-ecmascript.js~number", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", "src/.external-ecmascript.js~Number", "external" ], [ "src/.external-ecmascript.js~object", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", "src/.external-ecmascript.js~Object", "external" ], [ "src/.external-ecmascript.js~promise", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", "src/.external-ecmascript.js~Promise", "external" ], [ "src/.external-ecmascript.js~proxy", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", "src/.external-ecmascript.js~Proxy", "external" ], [ "src/.external-ecmascript.js~rangeerror", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", "src/.external-ecmascript.js~RangeError", "external" ], [ "src/.external-ecmascript.js~referenceerror", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", "src/.external-ecmascript.js~ReferenceError", "external" ], [ "src/.external-ecmascript.js~reflect", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", "src/.external-ecmascript.js~Reflect", "external" ], [ "src/.external-ecmascript.js~regexp", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", "src/.external-ecmascript.js~RegExp", "external" ], [ "src/.external-ecmascript.js~set", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", "src/.external-ecmascript.js~Set", "external" ], [ "src/.external-ecmascript.js~string", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", "src/.external-ecmascript.js~String", "external" ], [ "src/.external-ecmascript.js~symbol", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", "src/.external-ecmascript.js~Symbol", "external" ], [ "src/.external-ecmascript.js~syntaxerror", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", "src/.external-ecmascript.js~SyntaxError", "external" ], [ "src/.external-ecmascript.js~typeerror", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", "src/.external-ecmascript.js~TypeError", "external" ], [ "src/.external-ecmascript.js~urierror", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", "src/.external-ecmascript.js~URIError", "external" ], [ "src/.external-ecmascript.js~uint16array", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", "src/.external-ecmascript.js~Uint16Array", "external" ], [ "src/.external-ecmascript.js~uint32array", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", "src/.external-ecmascript.js~Uint32Array", "external" ], [ "src/.external-ecmascript.js~uint8array", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", "src/.external-ecmascript.js~Uint8Array", "external" ], [ "src/.external-ecmascript.js~uint8clampedarray", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", "src/.external-ecmascript.js~Uint8ClampedArray", "external" ], [ "src/.external-ecmascript.js~weakmap", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", "src/.external-ecmascript.js~WeakMap", "external" ], [ "src/.external-ecmascript.js~weakset", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", "src/.external-ecmascript.js~WeakSet", "external" ], [ "src/.external-ecmascript.js~boolean", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", "src/.external-ecmascript.js~boolean", "external" ], [ "src/.external-ecmascript.js~function", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", "src/.external-ecmascript.js~function", "external" ], [ "src/.external-ecmascript.js~null", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", "src/.external-ecmascript.js~null", "external" ], [ "src/.external-ecmascript.js~number", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", "src/.external-ecmascript.js~number", "external" ], [ "src/.external-ecmascript.js~object", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", "src/.external-ecmascript.js~object", "external" ], [ "src/.external-ecmascript.js~string", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", "src/.external-ecmascript.js~string", "external" ], [ "src/.external-ecmascript.js~undefined", "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", "src/.external-ecmascript.js~undefined", "external" ], [ "src/backoff/backoff.js", "file/src/backoff/backoff.js.html", "src/backoff/backoff.js", "file" ], [ "src/backoff/constant.js", "file/src/backoff/constant.js.html", "src/backoff/constant.js", "file" ], [ "src/backoff/constant.js~constantbackoff#constructor", "class/src/backoff/constant.js~ConstantBackoff.html#instance-constructor-constructor", "src/backoff/constant.js~ConstantBackoff#constructor", "method" ], [ "src/backoff/constant.js~constantbackoff#getdelay", "class/src/backoff/constant.js~ConstantBackoff.html#instance-method-getDelay", "src/backoff/constant.js~ConstantBackoff#getDelay", "method" ], [ "src/backoff/constant.js~constantbackoff#next", "class/src/backoff/constant.js~ConstantBackoff.html#instance-method-next", "src/backoff/constant.js~ConstantBackoff#next", "method" ], [ "src/backoff/constant.js~constantbackoff#reset", "class/src/backoff/constant.js~ConstantBackoff.html#instance-method-reset", "src/backoff/constant.js~ConstantBackoff#reset", "method" ], [ "src/backoff/exponential.js", "file/src/backoff/exponential.js.html", "src/backoff/exponential.js", "file" ], [ "src/backoff/exponential.js~exponentialbackoff#constructor", "class/src/backoff/exponential.js~ExponentialBackoff.html#instance-constructor-constructor", "src/backoff/exponential.js~ExponentialBackoff#constructor", "method" ], [ "src/backoff/exponential.js~exponentialbackoff#getdelay", "class/src/backoff/exponential.js~ExponentialBackoff.html#instance-method-getDelay", "src/backoff/exponential.js~ExponentialBackoff#getDelay", "method" ], [ "src/backoff/exponential.js~exponentialbackoff#next", "class/src/backoff/exponential.js~ExponentialBackoff.html#instance-method-next", "src/backoff/exponential.js~ExponentialBackoff#next", "method" ], [ "src/backoff/exponential.js~exponentialbackoff#reset", "class/src/backoff/exponential.js~ExponentialBackoff.html#instance-method-reset", "src/backoff/exponential.js~ExponentialBackoff#reset", "method" ], [ "src/builder.js", "file/src/builder.js.html", "src/builder.js", "file" ], [ "src/builder.js~expression#and", "class/src/builder.js~Expression.html#instance-get-and", "src/builder.js~Expression#and", "member" ], [ "src/builder.js~expression#div", "class/src/builder.js~Expression.html#instance-get-div", "src/builder.js~Expression#div", "member" ], [ "src/builder.js~expression#doesntmatch", "class/src/builder.js~Expression.html#instance-get-doesntMatch", "src/builder.js~Expression#doesntMatch", "member" ], [ "src/builder.js~expression#equals", "class/src/builder.js~Expression.html#instance-get-equals", "src/builder.js~Expression#equals", "member" ], [ "src/builder.js~expression#exp", "class/src/builder.js~Expression.html#instance-method-exp", "src/builder.js~Expression#exp", "method" ], [ "src/builder.js~expression#field", "class/src/builder.js~Expression.html#instance-method-field", "src/builder.js~Expression#field", "method" ], [ "src/builder.js~expression#gt", "class/src/builder.js~Expression.html#instance-get-gt", "src/builder.js~Expression#gt", "member" ], [ "src/builder.js~expression#gte", "class/src/builder.js~Expression.html#instance-get-gte", "src/builder.js~Expression#gte", "member" ], [ "src/builder.js~expression#lt", "class/src/builder.js~Expression.html#instance-get-lt", "src/builder.js~Expression#lt", "member" ], [ "src/builder.js~expression#lte", "class/src/builder.js~Expression.html#instance-get-lte", "src/builder.js~Expression#lte", "member" ], [ "src/builder.js~expression#matches", "class/src/builder.js~Expression.html#instance-get-matches", "src/builder.js~Expression#matches", "member" ], [ "src/builder.js~expression#minus", "class/src/builder.js~Expression.html#instance-get-minus", "src/builder.js~Expression#minus", "member" ], [ "src/builder.js~expression#notequal", "class/src/builder.js~Expression.html#instance-get-notEqual", "src/builder.js~Expression#notEqual", "member" ], [ "src/builder.js~expression#or", "class/src/builder.js~Expression.html#instance-get-or", "src/builder.js~Expression#or", "member" ], [ "src/builder.js~expression#plus", "class/src/builder.js~Expression.html#instance-get-plus", "src/builder.js~Expression#plus", "member" ], [ "src/builder.js~expression#tag", "class/src/builder.js~Expression.html#instance-method-tag", "src/builder.js~Expression#tag", "method" ], [ "src/builder.js~expression#times", "class/src/builder.js~Expression.html#instance-get-times", "src/builder.js~Expression#times", "member" ], [ "src/builder.js~expression#tostring", "class/src/builder.js~Expression.html#instance-method-toString", "src/builder.js~Expression#toString", "method" ], [ "src/builder.js~expression#value", "class/src/builder.js~Expression.html#instance-method-value", "src/builder.js~Expression#value", "method" ], [ "src/builder.js~measurement#db", "class/src/builder.js~Measurement.html#instance-method-db", "src/builder.js~Measurement#db", "method" ], [ "src/builder.js~measurement#name", "class/src/builder.js~Measurement.html#instance-method-name", "src/builder.js~Measurement#name", "method" ], [ "src/builder.js~measurement#policy", "class/src/builder.js~Measurement.html#instance-method-policy", "src/builder.js~Measurement#policy", "method" ], [ "src/builder.js~measurement#tostring", "class/src/builder.js~Measurement.html#instance-method-toString", "src/builder.js~Measurement#toString", "method" ], [ "src/grammar/ds.js", "file/src/grammar/ds.js.html", "src/grammar/ds.js", "file" ], [ "src/grammar/ds.js~fieldtype", "typedef/index.html#static-typedef-FieldType", "src/grammar/ds.js~FieldType", "typedef" ], [ "src/grammar/ds.js~raw#constructor", "class/src/grammar/ds.js~Raw.html#instance-constructor-constructor", "src/grammar/ds.js~Raw#constructor", "method" ], [ "src/grammar/ds.js~raw#getvalue", "class/src/grammar/ds.js~Raw.html#instance-method-getValue", "src/grammar/ds.js~Raw#getValue", "method" ], [ "src/grammar/escape.js", "file/src/grammar/escape.js.html", "src/grammar/escape.js", "file" ], [ "src/grammar/index.js", "file/src/grammar/index.js.html", "src/grammar/index.js", "file" ], [ "src/grammar/times.js", "file/src/grammar/times.js.html", "src/grammar/times.js", "file" ], [ "src/host.js", "file/src/host.js.html", "src/host.js", "file" ], [ "src/index.js", "file/src/index.js.html", "src/index.js", "file" ], [ "src/index.js~influxdb#_createschema", "class/src/index.js~InfluxDB.html#instance-method-_createSchema", "src/index.js~InfluxDB#_createSchema", "method" ], [ "src/index.js~influxdb#_defaultdb", "class/src/index.js~InfluxDB.html#instance-method-_defaultDB", "src/index.js~InfluxDB#_defaultDB", "method" ], [ "src/index.js~influxdb#_getqueryopts", "class/src/index.js~InfluxDB.html#instance-method-_getQueryOpts", "src/index.js~InfluxDB#_getQueryOpts", "method" ], [ "src/index.js~influxdb#_schema", "class/src/index.js~InfluxDB.html#instance-member-_schema", "src/index.js~InfluxDB#_schema", "member" ], [ "src/index.js~influxdb#addschema", "class/src/index.js~InfluxDB.html#instance-method-addSchema", "src/index.js~InfluxDB#addSchema", "method" ], [ "src/index.js~influxdb#alterretentionpolicy", "class/src/index.js~InfluxDB.html#instance-method-alterRetentionPolicy", "src/index.js~InfluxDB#alterRetentionPolicy", "method" ], [ "src/index.js~influxdb#constructor", "class/src/index.js~InfluxDB.html#instance-constructor-constructor", "src/index.js~InfluxDB#constructor", "method" ], [ "src/index.js~influxdb#createcontinuousquery", "class/src/index.js~InfluxDB.html#instance-method-createContinuousQuery", "src/index.js~InfluxDB#createContinuousQuery", "method" ], [ "src/index.js~influxdb#createdatabase", "class/src/index.js~InfluxDB.html#instance-method-createDatabase", "src/index.js~InfluxDB#createDatabase", "method" ], [ "src/index.js~influxdb#createretentionpolicy", "class/src/index.js~InfluxDB.html#instance-method-createRetentionPolicy", "src/index.js~InfluxDB#createRetentionPolicy", "method" ], [ "src/index.js~influxdb#createuser", "class/src/index.js~InfluxDB.html#instance-method-createUser", "src/index.js~InfluxDB#createUser", "method" ], [ "src/index.js~influxdb#dropcontinuousquery", "class/src/index.js~InfluxDB.html#instance-method-dropContinuousQuery", "src/index.js~InfluxDB#dropContinuousQuery", "method" ], [ "src/index.js~influxdb#dropdatabase", "class/src/index.js~InfluxDB.html#instance-method-dropDatabase", "src/index.js~InfluxDB#dropDatabase", "method" ], [ "src/index.js~influxdb#dropmeasurement", "class/src/index.js~InfluxDB.html#instance-method-dropMeasurement", "src/index.js~InfluxDB#dropMeasurement", "method" ], [ "src/index.js~influxdb#dropretentionpolicy", "class/src/index.js~InfluxDB.html#instance-method-dropRetentionPolicy", "src/index.js~InfluxDB#dropRetentionPolicy", "method" ], [ "src/index.js~influxdb#dropseries", "class/src/index.js~InfluxDB.html#instance-method-dropSeries", "src/index.js~InfluxDB#dropSeries", "method" ], [ "src/index.js~influxdb#dropshard", "class/src/index.js~InfluxDB.html#instance-method-dropShard", "src/index.js~InfluxDB#dropShard", "method" ], [ "src/index.js~influxdb#dropuser", "class/src/index.js~InfluxDB.html#instance-method-dropUser", "src/index.js~InfluxDB#dropUser", "method" ], [ "src/index.js~influxdb#getdatabasenames", "class/src/index.js~InfluxDB.html#instance-method-getDatabaseNames", "src/index.js~InfluxDB#getDatabaseNames", "method" ], [ "src/index.js~influxdb#getmeasurements", "class/src/index.js~InfluxDB.html#instance-method-getMeasurements", "src/index.js~InfluxDB#getMeasurements", "method" ], [ "src/index.js~influxdb#getseries", "class/src/index.js~InfluxDB.html#instance-method-getSeries", "src/index.js~InfluxDB#getSeries", "method" ], [ "src/index.js~influxdb#getusers", "class/src/index.js~InfluxDB.html#instance-method-getUsers", "src/index.js~InfluxDB#getUsers", "method" ], [ "src/index.js~influxdb#grantadminprivilege", "class/src/index.js~InfluxDB.html#instance-method-grantAdminPrivilege", "src/index.js~InfluxDB#grantAdminPrivilege", "method" ], [ "src/index.js~influxdb#grantprivilege", "class/src/index.js~InfluxDB.html#instance-method-grantPrivilege", "src/index.js~InfluxDB#grantPrivilege", "method" ], [ "src/index.js~influxdb#parsepoint", "class/src/index.js~InfluxDB.html#instance-method-parsePoint", "src/index.js~InfluxDB#parsePoint", "method" ], [ "src/index.js~influxdb#ping", "class/src/index.js~InfluxDB.html#instance-method-ping", "src/index.js~InfluxDB#ping", "method" ], [ "src/index.js~influxdb#query", "class/src/index.js~InfluxDB.html#instance-method-query", "src/index.js~InfluxDB#query", "method" ], [ "src/index.js~influxdb#queryraw", "class/src/index.js~InfluxDB.html#instance-method-queryRaw", "src/index.js~InfluxDB#queryRaw", "method" ], [ "src/index.js~influxdb#revokeadminprivilege", "class/src/index.js~InfluxDB.html#instance-method-revokeAdminPrivilege", "src/index.js~InfluxDB#revokeAdminPrivilege", "method" ], [ "src/index.js~influxdb#revokeprivilege", "class/src/index.js~InfluxDB.html#instance-method-revokePrivilege", "src/index.js~InfluxDB#revokePrivilege", "method" ], [ "src/index.js~influxdb#setpassword", "class/src/index.js~InfluxDB.html#instance-method-setPassword", "src/index.js~InfluxDB#setPassword", "method" ], [ "src/index.js~influxdb#showcontinousqueries", "class/src/index.js~InfluxDB.html#instance-method-showContinousQueries", "src/index.js~InfluxDB#showContinousQueries", "method" ], [ "src/index.js~influxdb#showretentionpolicies", "class/src/index.js~InfluxDB.html#instance-method-showRetentionPolicies", "src/index.js~InfluxDB#showRetentionPolicies", "method" ], [ "src/index.js~influxdb#showshards", "class/src/index.js~InfluxDB.html#instance-method-showShards", "src/index.js~InfluxDB#showShards", "method" ], [ "src/index.js~influxdb#writemeasurement", "class/src/index.js~InfluxDB.html#instance-method-writeMeasurement", "src/index.js~InfluxDB#writeMeasurement", "method" ], [ "src/index.js~influxdb#writepoints", "class/src/index.js~InfluxDB.html#instance-method-writePoints", "src/index.js~InfluxDB#writePoints", "method" ], [ "src/pool.js", "file/src/pool.js.html", "src/pool.js", "file" ], [ "src/pool.js~pool#_disablehost", "class/src/pool.js~Pool.html#instance-method-_disableHost", "src/pool.js~Pool#_disableHost", "method" ], [ "src/pool.js~pool#_enablehost", "class/src/pool.js~Pool.html#instance-method-_enableHost", "src/pool.js~Pool#_enableHost", "method" ], [ "src/pool.js~pool#_gethost", "class/src/pool.js~Pool.html#instance-method-_getHost", "src/pool.js~Pool#_getHost", "method" ], [ "src/pool.js~pool#addhost", "class/src/pool.js~Pool.html#instance-method-addHost", "src/pool.js~Pool#addHost", "method" ], [ "src/pool.js~pool#constructor", "class/src/pool.js~Pool.html#instance-constructor-constructor", "src/pool.js~Pool#constructor", "method" ], [ "src/pool.js~pool#discard", "class/src/pool.js~Pool.html#instance-method-discard", "src/pool.js~Pool#discard", "method" ], [ "src/pool.js~pool#gethostsavailable", "class/src/pool.js~Pool.html#instance-method-getHostsAvailable", "src/pool.js~Pool#getHostsAvailable", "method" ], [ "src/pool.js~pool#gethostsdisabled", "class/src/pool.js~Pool.html#instance-method-getHostsDisabled", "src/pool.js~Pool#getHostsDisabled", "method" ], [ "src/pool.js~pool#hostisavailable", "class/src/pool.js~Pool.html#instance-method-hostIsAvailable", "src/pool.js~Pool#hostIsAvailable", "method" ], [ "src/pool.js~pool#json", "class/src/pool.js~Pool.html#instance-method-json", "src/pool.js~Pool#json", "method" ], [ "src/pool.js~pool#ping", "class/src/pool.js~Pool.html#instance-method-ping", "src/pool.js~Pool#ping", "method" ], [ "src/pool.js~pool#stream", "class/src/pool.js~Pool.html#instance-method-stream", "src/pool.js~Pool#stream", "method" ], [ "src/pool.js~pool#text", "class/src/pool.js~Pool.html#instance-method-text", "src/pool.js~Pool#text", "method" ], [ "src/results.js", "file/src/results.js.html", "src/results.js", "file" ], [ "src/schema.js", "file/src/schema.js.html", "src/schema.js", "file" ], [ "src/schema.js~schema#_ref", "class/src/schema.js~Schema.html#instance-method-_ref", "src/schema.js~Schema#_ref", "method" ], [ "src/schema.js~schema#checktags", "class/src/schema.js~Schema.html#instance-method-checkTags", "src/schema.js~Schema#checkTags", "method" ], [ "src/schema.js~schema#coercefields", "class/src/schema.js~Schema.html#instance-method-coerceFields", "src/schema.js~Schema#coerceFields", "method" ], [ "unit/backoff.test.js", "test-file/unit/backoff.test.js.html", "unit/backoff.test.js", "testFile" ], [ "unit/builder.test.js", "test-file/unit/builder.test.js.html", "unit/builder.test.js", "testFile" ], [ "unit/grammar.test.js", "test-file/unit/grammar.test.js.html", "unit/grammar.test.js", "testFile" ], [ "unit/influx.test.js", "test-file/unit/influx.test.js.html", "unit/influx.test.js", "testFile" ], [ "unit/pool.test.js", "test-file/unit/pool.test.js.html", "unit/pool.test.js", "testFile" ], [ "unit/result.test.js", "test-file/unit/result.test.js.html", "unit/result.test.js", "testFile" ], [ "unit/schema.test.js", "test-file/unit/schema.test.js.html", "unit/schema.test.js", "testFile" ] ]
{ "content_hash": "29b8988b9032f555eb0782dab52f99c6", "timestamp": "", "source": "github", "line_count": 2120, "max_line_length": 121, "avg_line_length": 26.568867924528302, "alnum_prop": 0.6450307140574513, "repo_name": "node-influx/node-influx.github.io", "id": "7c7caa56e2404e95db767d1bf3d96cc973a3a9cc", "size": "56326", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "script/search_index.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "18663" }, { "name": "HTML", "bytes": "945849" }, { "name": "JavaScript", "bytes": "64876" }, { "name": "Shell", "bytes": "146" } ], "symlink_target": "" }