From 975d13f5503e10fc436973df6fd5baa05eed9037 Mon Sep 17 00:00:00 2001 From: Luciano Ramalho Date: Mon, 30 Nov 2015 18:20:23 -0200 Subject: [PATCH 01/14] split glossary.csv files to smaller files in data/ --- .gitignore | 1 + data/a.csv | 20 ++++++++++++++++++++ data/b.csv | 7 +++++++ data/c.csv | 28 ++++++++++++++++++++++++++++ data/d.csv | 23 +++++++++++++++++++++++ data/e-f.csv | 26 ++++++++++++++++++++++++++ data/g-i.csv | 26 ++++++++++++++++++++++++++ data/l-m.csv | 23 +++++++++++++++++++++++ data/n-o.csv | 23 +++++++++++++++++++++++ data/p-q.csv | 23 +++++++++++++++++++++++ data/r-s.csv | 27 +++++++++++++++++++++++++++ data/t-v.csv | 17 +++++++++++++++++ tools/gloss_stats.py | 34 ++++++++++++++++++++++++++++++++++ 13 files changed, 278 insertions(+) create mode 100644 data/a.csv create mode 100644 data/b.csv create mode 100644 data/c.csv create mode 100644 data/d.csv create mode 100644 data/e-f.csv create mode 100644 data/g-i.csv create mode 100644 data/l-m.csv create mode 100644 data/n-o.csv create mode 100644 data/p-q.csv create mode 100644 data/r-s.csv create mode 100644 data/t-v.csv create mode 100644 tools/gloss_stats.py diff --git a/.gitignore b/.gitignore index f24cd99..d81016d 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ pip-log.txt #Mr Developer .mr.developer.cfg +.DS_Store diff --git a/data/a.csv b/data/a.csv new file mode 100644 index 0000000..6988c30 --- /dev/null +++ b/data/a.csv @@ -0,0 +1,20 @@ +ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION +acumulador,accumulator,acumulador,10,4,A variable used in a loop to add up or accumulate a result., +algoritmo,algorithm,algoritmo,7,8,A general process for solving a category of problems., +aliasing,aliasing,“apelidamento”,10,13,A circumstance where two or more variables refer to the same object., +analisar,parse,analisar,1,19,To examine a program and analyze the syntactic structure., +análise de algoritmos,analysis of algorithms,análise de algoritmos,B,1,A way to compare algorithms in terms of their run time and/or space requirements., +argumento,argument,argumento,3,8,A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function., +argumento nomeado,keyword argument,argumento nomeado,4,5,An argument that includes the name of the parameter as a “keyword”., +argumento opcional,optional argument,argumento opcional,8,12,A function or method argument that is not required., +argumento posicional,positional argument,argumento posicional,17,5,"An argument that does not include a parameter name, so it is not a keyword argument.", +arquivo-texto,text file,arquivo-texto,14,5,A sequence of characters stored in permanent storage like a hard drive., +"``assert``, instrução",``assert`` statement,instrução ``assert``,16,7,A statement that check a condition and raises an exception if it fails., +assinatura,interface,"assinatura, interface",4,6,"A description of how to use a function, including the name and descriptions of the arguments and return value.", +atribuição,assignment,atribuição,2,2,A statement that assigns a value to a variable., +atribuição combinada,augmented assignment,atribuição combinada,10,5,A statement that updates the value of a variable using an operator like ``+=``., +atributo,attribute,atributo,15,5,One of the named values associated with an object., +atributo de classe,class attribute,atributo de classe,18,2,An attribute associated with a class object. Class attributes are defined inside a class definition but outside any method., +atributo de instância,instance attribute,atributo de instância,18,3,An attribute associated with an instance of a class., +atualização,update,atualização,7,2,An assignment where the new value of the variable depends on the old., +avaliar,evaluate,avaliar,2,7,To simplify an expression by performing the operations in order to yield a single value., diff --git a/data/b.csv b/data/b.csv new file mode 100644 index 0000000..5749e38 --- /dev/null +++ b/data/b.csv @@ -0,0 +1,7 @@ +ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION +banco de dados,database,banco de dados,14,11,A file whose contents are organized like a dictionary with keys that correspond to values., +bug,bug,-,1,20,An error in a program., +busca,search,busca,8,9,A pattern of traversal that stops when it finds what it is looking for., +busca,lookup,"busca, pesquisa",11,11,A dictionary operation that takes a key and finds the corresponding value., +busca,search,busca,B,10,The problem of locating an element of a collection (like a list or dictionary) or determining that it is not present., +busca invertida,reverse lookup,busca invertida,11,12,A dictionary operation that takes a value and finds one or more keys that map to it., diff --git a/data/c.csv b/data/c.csv new file mode 100644 index 0000000..65a1e13 --- /dev/null +++ b/data/c.csv @@ -0,0 +1,28 @@ +ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION +cabeçalho,header,cabeçalho,3,4,The first line of a function definition., +caminho,path,caminho,14,7,A string that identifies a file., +caminho absoluto,absolute path,caminho absoluto,14,9,A path that starts from the topmost directory in the file system., +caminho relativo,relative path,caminho relativo,14,8,A path that starts from the current directory., +capturar,catch,capturar,14,10,To prevent an exception from terminating a program using the try and except statements., +cardinalidade,multiplicity,"cardinalidade, multiplicidadade",18,12,"A notation in a class diagram that shows, for a HAS-A relationship, how many references there are to instances of another class.", +caso base,base case,caso base,5,14,A conditional branch in a recursive function that does not make a recursive call., +caso especial,special case,caso especial,9,3,A test case that is atypical or non-obvious (and less likely to be handled correctly)., +chamada de função,function call,chamada de função,3,7,A statement that runs a function. It consists of the function name followed by an argument list in parentheses., +chave,key,chave,11,5,An object that appears in a dictionary as the first part of a key-value pair., +classe,class,classe,15,1,A programmer-defined type. A class definition creates a new class object., +classe base,parent class,"classe base, superclasse",18,6,The class from which a child class inherits., +classe derivada,child class,"classe derivada, subclasse",18,7,A new class created by inheriting from an existing class; also called a “subclass”., +codificar,encode,codificar,18,1,To represent one set of values using another set of values by constructing a mapping between them., +código morto,dead code,código morto,6,2,"Part of a program that can never run, often because it appears after a return statement.", +código provisório,scaffolding,"“andaime”, código provisório",6,4,Code that is used during program development but is not part of the final version., +código provisório,slice,fatia,8,5,A part of a string specified by a range of indices., +comentário,comment,comentário,2,15,Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program., +composição,composition,composição,3,18,"Using an expression as part of a larger expression, or a statement as part of a larger statement.", +concatenar,concatenate,concatenar,2,14,To join two operands end-to-end., +condição,condition,condição,5,7,The boolean expression in a conditional statement that determines which branch runs., +condicional aninhado,nested conditional,condicional aninhado,5,11,A conditional statement that appears in one of the branches of another conditional statement., +condicional encadeado,chained conditional,condicional encadeado,5,10,A conditional statement with a series of alternative branches., +contador,counter,contador,8,10,"A variable used to count something, usually initialized to zero and then incremented.", +cópia profunda,deep copy,cópia profunda,15,8,"To copy the contents of an object as well as any embedded objects, and any objects embedded in them, and so on; implemented by the deepcopy function in the copy module.", +cópia rasa,shallow copy,cópia rasa,15,7,"To copy the contents of an object, including any references to embedded objects; implemented by the copy function in the copy module.", +corpo,body,corpo,3,5,The sequence of statements inside a function definition., diff --git a/data/d.csv b/data/d.csv new file mode 100644 index 0000000..fd8edc0 --- /dev/null +++ b/data/d.csv @@ -0,0 +1,23 @@ +ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION +declaração,declaration,declaração,11,20,A statement like global that tells the interpreter something about a variable., +decrementar,decrement,decrementar,7,5,An update that decreases the value of a variable., +definição de função,function definition,definição de função,3,2,"A statement that creates a new function, specifying its name, parameters, and the statements it contains.", +delimitador,delimiter,delimitador,10,14,A character or string used to indicate where a string should be split., +dependência,dependency,dependência,18,10,"A relationship between two classes where instances of one class use instances of the other class, but do not store them as attributes.", +depuração,debugging,depuração,1,21,The process of finding and correcting bugs., +depuração com patinho de borracha,rubber duck debugging,depuração com patinho de borracha,13,6,"Debugging by explaining your problem to an inanimate object such as a rubber duck. Articulating the problem can help you solve it, even if the rubber duck doesn’t know Python.", +desempacotamento de tupla,tuple assignment,desempacotamento de tupla,12,2,An assignment with a sequence on the right side and a tuple of variables on the left. The right side is evaluated and then its elements are assigned to the variables on the left., +desenvolvimento incremental,incremental development,desenvolvimento incremental,6,3,A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time., +desenvolvimento planejado,designed development,desenvolvimento planejado,16,2,A development plan that involves high-level insight into the problem and more planning than incremental development or prototype development., +despacho por tipo,type-based dispatch,despacho por tipo,17,7,A programming pattern that checks the type of an operand and invokes different functions for different types., +desvio,branch,desvio,5,9,One of the alternative sequences of statements in a conditional statement., +determinístico,deterministic,determinístico,13,1,"Pertaining to a program that does the same thing each time it runs, given the same inputs.", +diagrama de chamadas,call graph,diagrama de chamadas,11,15,"A diagram that shows every frame created during the execution of a program, with an arrow from each caller to each callee.", +diagrama de classe,class diagram,diagrama de classe,18,11,A diagram that shows the classes in a program and the relationships between them., +diagrama de estado,state diagram,diagrama de estado,2,3,A graphical representation of a set of variables and the values they refer to., +diagrama de objetos,object diagram,diagrama de objetos,15,9,"A diagram that shows objects, their attributes, and the values of the attributes.", +diagrama de pilha,stack diagram,diagrama de pilha,3,20,"A graphical representation of a stack of functions, their variables, and the values they refer to.", +dicionário,dictionary,dicionário,11,2,A mapping from keys to their corresponding values., +diretório,directory,diretório,14,6,"A named collection of files, also called a folder.", +divisão pelo piso,floor division,divisão pelo piso,5,1,"An operator, denoted //, that divides two numbers and rounds down (toward zero) to an integer.", +docstring,docstring,-,4,9,A string that appears at the top of a function definition to document the function’s interface., diff --git a/data/e-f.csv b/data/e-f.csv new file mode 100644 index 0000000..20d46f5 --- /dev/null +++ b/data/e-f.csv @@ -0,0 +1,26 @@ +ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION +elemento,element,elemento,10,2,"One of the values in a list (or other sequence), also called items.", +encapsulamento,encapsulation,encapsulamento,4,3,The process of transforming a sequence of statements into a function definition., +encapsulamento de dados,data encapsulation,encapsulamento de dados,18,13,A program development plan that involves a prototype using global variables and a final version that makes the global variables into instance attributes., +equivalente,equivalent,equivalente,10,10,Having the same value., +erro semântico,semantic error,erro semântico,2,19,An error in a program that makes it do something other than what the programmer intended., +erro sintático,syntax error,erro sintático,2,16,An error in a program that makes it impossible to parse (and therefore impossible to interpret)., +errro estrutural,shape error,errro estrutural,12,8,"An error caused because a value has the wrong shape; that is, the wrong type or size.", +estrutura de dados,data structure,estrutura de dados,12,7,"A collection of related values, often organized in lists, dictionaries, tuples, etc.", +exceção,exception,exceção,2,17,An error that is detected while the program is running., +executar,execute,executar,2,9,To run a statement and do what it says., +explodir,scatter,explodir,12,4,The operation of treating a sequence as a list of arguments., +expressão,expression,expressão,2,6,"A combination of variables, operators, and values that represents a single result.", +expressão booleana,boolean expression,expressão booleana,5,3,An expression whose value is either True or False., +expressão condicional,conditional expression,expressão condicional,19,1,"An expression that has one of two values, depending on a condition.", +expressão geradora,generator expression,expressão geradora,19,3,An expression with a for loop in parentheses that yields a generator object., +fachada,veneer,“verniz” ou fachada,18,4,A method or function that provides a different interface to another function without doing much computation., +factory,factory,fábrica,19,5,"A function, usually passed as a parameter, used to create objects.", +filtro,filter,filtro,10,8,A processing pattern that traverses a list and selects the elements that satisfy some criterion., +flag,flag,“indicador”,11,19,A boolean variable used to indicate whether a condition is true., +fluxo de execução,flow of execution,fluxo de execução,3,19,The order statements run in., +frame,frame,,3,21,A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function., +função,function,função,3,1,A named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not produce a result., +função de hash,hash function,função de espalhamento,11,9,A function used by a hashtable to compute the location for a key., +função produtiva,fruitful function,função produtiva,3,11,A function that returns a value., +função pura,pure function,função pura,16,3,A function that does not modify any of the objects it receives as arguments. Most pure functions are fruitful., diff --git a/data/g-i.csv b/data/g-i.csv new file mode 100644 index 0000000..e1ff9b5 --- /dev/null +++ b/data/g-i.csv @@ -0,0 +1,26 @@ +ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION +generalização,generalization,generalização,4,4,The process of replacing something unnecessarily specific (like a number) with something appropriately general (like a variable or parameter)., +"``global``, declaração",``global`` statement,declaração ``global``,11,18,A statement that declares a variable name global., +guarda,guardian,guarda,6,5,A programming pattern that uses a conditional statement to check for and handle circumstances that might cause an error., +hashable,hashable,,11,10,"A type that has a hash function. Immutable types like integers, floats and strings are hashable; mutable types like lists and dictionaries are not.", +herança,inheritance,herança,18,5,The ability to define a new class that is a modified version of a previously defined class., +idêntico,identical,idêntico,10,11,Being the same object (which implies equivalence)., +implementação,implementation,implementação,11,7,A way of performing a computation., +"``import``, instrução",``import`` statement,instrução ``import``,3,15,A statement that reads a module file and creates a module object., +imutável,immutable,imutável,8,7,The property of a sequence whose items cannot be changed., +incrementar,increment,incrementar,7,4,An update that increases the value of a variable (often by one)., +índice,index,índice,8,4,"An integer value used to select an item in a sequence, such as a character in a string. In Python indices start from 0.", +inicialização,initialization,inicialização,7,3,An assignment that gives an initial value to a variable that will be updated., +instância,instance,instância,15,3,An object that belongs to a class., +instanciar,instantiate,instanciar,15,4,To create a new object., +instrução,statement,instrução,2,8,"A section of code that represents a command or action. So far, the statements we have seen are assignments and print statements.", +instrução composta,compound statement,instrução composta,5,8,A statement that consists of a header and a body. The header ends with a colon (:). The body is indented relative to the header., +instrução condicional,conditional statement,instrução condicional,5,6,A statement that controls the flow of execution depending on some condition., +inteiro,integer,inteiro,1,12,A type that represents whole numbers., +interpretador,interpreter,interpretador,1,5,A program that reads another program and executes it, +invariante,invariant,invariante,16,6,A condition that should always be true during the execution of a program., +invocação,invocation,invocação,8,11,A statement that calls a method., +item,item,item,8,3,One of the values in a sequence., +item,item,item,11,4,"In a dictionary, another name for a key-value pair.", +iteração,iteration,iteração,7,6,Repeated execution of a set of statements using either a recursive function call or a loop., +iterador,iterator,iterador,12,6,"An object that can iterate through a sequence, but which does not provide list operators and methods.", diff --git a/data/l-m.csv b/data/l-m.csv new file mode 100644 index 0000000..868060f --- /dev/null +++ b/data/l-m.csv @@ -0,0 +1,23 @@ +ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION +laço,loop,"laço, loop",4,2,A part of a program that can run repeatedly., +laço infinito,infinite loop,laço infinito,7,7,A loop in which the terminating condition is never satisfied., +linear,linear,linear,B,8,"An algorithm whose run time is proportional to problem size, at least for large problem sizes.", +linguagem de alto nível,high-level language,linguagem de alto nível,1,2,A programming language like Python that is designed to be easy for humans to read and write., +linguagem de baixo nível,low-level language,linguagem de baixo nível,1,3,A programming language that is designed to be easy for a computer to run; also called “machine language” or “assembly language”., +linguagem formal,formal language,linguagem formal,1,16,"Any one of the languages that people have designed for specific purposes, such as representing mathematical ideas or computer programs; all programming languages are formal languages.", +linguagem natural,natural language,linguagem natural,1,15,Any one of the languages that people speak that evolved naturally., +linguagem orientada a objetos,object-oriented language,linguagem orientada a objetos,17,1,"A language that provides features, such as programmer-defined types and methods, that facilitate object-oriented programming.", +lista,list,lista,10,1,A sequence of values., +lista aninhada,nested list,lista aninhada,10,3,A list that is an element of another list., +listcomp,list comprehension,"“compreensão de lista”, listcomp",19,2,An expression with a for loop in square brackets that yields a new list., +map,map,"“mapear”, “de-para”",10,7,A processing pattern that traverses a sequence and performs an operation on each element., +mapeamento,mapping,mapeamento,11,1,A relationship in which each element of one set corresponds to an element of another set., +máquina-modelo,machine model,máquina-modelo,B,2,A simplified representation of a computer used to describe algorithms., +memo,memo,“lembrete”,11,16,A computed value stored to avoid unnecessary future computation., +método,method,método,4,1,A function that is associated with an object and called using dot notation., +método,method,método,17,3,A function that is defined inside a class definition and is invoked on instances of that class., +modificadora,modifier,modificadora,16,4,"A function that changes one or more of the objects it receives as arguments. Most modifiers are void; that is, they return None.", +modo de script,script mode,modo de script,2,11,A way of using the Python interpreter to read code from a script and run it., +modo interativo,interactive mode,modo interativo,2,10,A way of using the Python interpreter by typing code at the prompt., +módulo,module,módulo,3,14,A file that contains a collection of related functions and other definitions., +multiset,multiset,“multi-conjunto”,19,4,A mathematical entity that represents a mapping between the elements of a set and the number of times they appear., diff --git a/data/n-o.csv b/data/n-o.csv new file mode 100644 index 0000000..b27108c --- /dev/null +++ b/data/n-o.csv @@ -0,0 +1,23 @@ +ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION +``None``,``None``,-,3,13,A special value returned by void functions., +notação assintótica,Big-Oh notation,notação assintótica,B,7,"Notation for representing an order of growth; for example, :math:`O(n)` represents the set of functions that grow linearly.", +notação de ponto,dot notation,notação de ponto,3,17,The syntax for calling a function in another module by specifying the module name followed by a dot (period) and the function name., +objeto,object,objeto,8,1,"Something a variable can refer to. For now, you can use “object” and “value” interchangeably.", +objeto,object,objeto,10,9,Something a variable can refer to. An object has a type and a value., +objeto “pipe”,pipe object,objeto “pipe”,14,14,"An object that represents a running program, allowing a Python program to run commands and read the results.", +objeto ``bytes``,``bytes`` object,objeto ``bytes``,14,12,An object similar to a string., +objeto ``zip``,``zip`` object,objeto ``zip``,12,5,The result of calling a built-in function zip; an object that iterates through a sequence of tuples., +objeto embutido,embedded object,objeto embutido,15,6,An object that is stored as an attribute of another object., +objeto-arquivo,file object,objeto-arquivo,9,1,A value that represents an open file., +objeto-classe,class object,objeto-classe,15,2,An object that contains information about a programmer-defined type. The class object can be used to create instances of the type., +objeto-função,function object,objeto-função,3,3,A value created by a function definition. The name of the function is a variable that refers to a function object., +objeto-módulo,module object,objeto-módulo,3,16,A value created by an import statement that provides access to the values defined in a module., +ocultação de informações,information hiding,ocultação de informações,17,9,"The principle that the interface provided by an object should not depend on its implementation, in particular the representation of its attributes.", +operador,operator,operador,1,9,"A special symbol that represents a simple computation like addition, multiplication, or string concatenation.", +operador de formatação,format operator,operador de formatação,14,2,"An operator, %, that takes a format string and a tuple and generates a string that includes the elements of the tuple formatted as specified by the format string.", +operador de módulo,modulus operator,operador de módulo,5,2,"An operator, denoted with a percent sign (%), that works on integers and returns the remainder when one number is divided by another.", +operador lógico,logical operator,operador lógico,5,5,"One of the operators that combines boolean expressions: and, or, and not.", +operador relacional,relational operator,operador relacional,5,4,"One of the operators that compares its operands: ==, !=, >, <, >=, and <=.", +operando,operand,operando,2,5,One of the values on which an operator operates., +ordem das operações,order of operations,ordem das operações,2,13,Rules governing the order in which expressions involving multiple operators and operands are evaluated., +ordem de crescimento,order of growth,ordem de crescimento,B,6,"A set of functions that all grow in a way considered equivalent for purposes of analysis of algorithms. For example, all functions that grow linearly belong to the same order of growth.", diff --git a/data/p-q.csv b/data/p-q.csv new file mode 100644 index 0000000..c453a54 --- /dev/null +++ b/data/p-q.csv @@ -0,0 +1,23 @@ +ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION +palavra-chave,keyword,palavra-chave,2,4,"A reserved word that is used to parse a program; you cannot use keywords like if, def, and while as variable names.", +par chave-valor,key-value pair,par chave-valor,11,3,The representation of the mapping from a key to a value., +parâmetro,parameter,parâmetro,3,6,A name used inside a function to refer to the value passed as an argument., +percorrer,traverse,percorrer,8,8,"To iterate through the items in a sequence, performing a similar operation on each.", +persistente,persistent,persistente,14,1,Pertaining to a program that runs indefinitely and keeps at least some of its data in permanent storage., +pior caso,worst case,pior caso,B,3,The input that makes a given algorithm run slowest (or require the most space., +plano de desenvolvimento,development plan,plano de desenvolvimento,4,8,A process for writing programs., +polimórfico,polymorphic,polimórfico,17,8,Pertaining to a function that can work with more than one type., +ponto de cruzamento,crossover point,ponto de cruzamento,B,5,The problem size where two algorithms require the same run time or space., +ponto-flutuante,floating-point,ponto-flutuante,1,13,A type that represents numbers with fractional parts., +portabilidade,portability,portabilidade,1,4,A property of a program that can run on more than one kind of computer., +pós-condição,postcondition,pós-condição,4,11,A requirement that should be satisfied by the function before it ends., +pré-condição,precondition,pré-condição,4,10,A requirement that should be satisfied by the caller before a function starts., +"``print``, instrução",``print`` statement,instrução ``print``,1,8,An instruction that causes the Python interpreter to display a value on the screen., +procedimento,void function,“função nula” ou procedimento,3,12,A function that always returns None., +programação funcional,program,programação funcional,1,7,A set of instructions that specifies a computation., +programação funcional,functional programming style,programação funcional,16,5,A style of program design in which the majority of functions are pure., +programação orientada a objetos,object-oriented programming,programação orientada a objetos,17,2,A style of programming in which data and the operations that manipulate it are organized into classes and methods., +prompt,prompt,“sinal de pronto”,1,6,Characters displayed by the interpreter to indicate that it is ready to take input from the user., +prototipar e ajustar,prototype and patch,prototipar e ajustar,16,1,"A development plan that involves writing a rough draft of a program, testing, and correcting errors as they are found.", +pseudo-aleatório,pseudorandom,pseudo-aleatório,13,2,"Pertaining to a sequence of numbers that appears to be random, but is generated by a deterministic program.", +quadrático,quadratic,quadrático,B,9,"An algorithm whose run time is proportional to :math:`n^2`, where :math:`n` is a measure of problem size.", diff --git a/data/r-s.csv b/data/r-s.csv new file mode 100644 index 0000000..da1f919 --- /dev/null +++ b/data/r-s.csv @@ -0,0 +1,27 @@ +ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION +"``raise``, instrução",``raise`` statement,instrução ``raise``,11,13,A statement that (deliberately) raises an exception., +reatribuição,reassignment,reatribuição,7,1,Assigning a new value to a variable that already exists., +recursão,recursion,recursão,5,13,The process of calling the function that is currently executing., +recursão infinita,infinite recursion,recursão infinita,5,15,"A recursion that doesn’t have a base case, or never reaches it. Eventually, an infinite recursion causes a runtime error.", +redução a um problema resolvido,reduction to a previously solved problem,redução a um problema resolvido,9,2,A way of solving a problem by expressing it as an instance of a previously solved problem., +reduzir,reduce,reduzir,10,6,A processing pattern that traverses a sequence and accumulates the elements into a single result., +refatoração,refactoring,refatoração,4,7,The process of modifying a working program to improve function interfaces and other qualities of the code., +referência,reference,referência,10,12,The association between a variable and its value., +relação É-UM,IS-A relationship,relação É-UM,18,8,A relationship between a child class and its parent class., +relação TEM-UM,HAS-A relationship,relação TEM-UM,18,9,A relationship between two classes where instances of one class contain references to instances of the other., +"``return``, instrução",``return`` statement,instrução ``return``,5,12,A statement that causes a function to end immediately and return to the caller., +reunir,gather,reunir,12,3,The operation of assembling a variable-length argument tuple., +script,script,-,2,12,A program stored in a file., +semântica,semantics,semântica,2,18,The meaning of a program., +sequência de formatação,sequence,sequência de formatação,8,2,An ordered collection of values where each value is identified by an integer index., +sequência de formatação,format sequence,sequência de formatação,14,4,"A sequence of characters in a format string, like %d, that specifies how a value should be formatted.", +shell,shell,-,14,13,A program that allows users to type commands and then executes them by starting other programs., +singleton,singleton,-,11,14,A list (or other sequence) with a single element., +sintaxe,syntax,sintaxe,1,18,The rules that govern the structure of a program., +sobrecarga de operadores,operator overloading,sobrecarga de operadores,17,6,Changing the behavior of an operator like + so it works with a programmer-defined type., +sobrepor,override,sobrescrever,13,4,To replace a default value with an argument., +solução de problemas,problem solving,solução de problemas,1,1,"The process of formulating a problem, finding a solution, and expressing it.", +string,string,“cadeia de caracteres”,1,14,A type that represents sequences of characters., +string de formatação,format string,string de formatação,14,3,"A string, used with the format operator, that contains format sequences.", +string vazia,empty string,string vazia,8,6,"A string with no characters and length 0, represented by two quotation marks.", +sujeito,subject,sujeito,17,4,The object a method is invoked on., diff --git a/data/t-v.csv b/data/t-v.csv new file mode 100644 index 0000000..cfe4b72 --- /dev/null +++ b/data/t-v.csv @@ -0,0 +1,17 @@ +ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION +tabela de hash,hashtable,tabela de espalhamento,11,8,The algorithm used to implement Python dictionaries., +tabela de hash,hashtable,tabela de espalhamento,B,11,A data structure that represents a collection of key-value pairs and performs search in constant time., +termo dominante,leading term,"termo dominante, termo de maior expoente",B,4,"In a polynomial, the term with the highest exponent.", +teste de desempenho,benchmarking,teste de desempenho,13,5,The process of choosing between data structures by implementing alternatives and testing them on a sample of the possible inputs., +tipo,type,tipo,1,11,"A category of values. The types we have seen so far are integers (type int), floating-point numbers (type float), and strings (type str).", +token,token,“símbolo”,1,17,"One of the basic elements of the syntactic structure of a program, analogous to a word in a natural language.", +traceback,traceback,,3,22,"A list of the functions that are executing, printed when an exception occurs.", +tupla,tuple,tupla,12,1,An immutable sequence of elements., +valor,value,valor,1,10,"One of the basic units of data, like a number or string, that a program manipulates.", +valor,value,valor,11,6,An object that appears in a dictionary as the second part of a key-value pair. This is more specific than our previous use of the word “value”., +valor default,default value,valor default,13,3,The value given to an optional parameter if no argument is provided., +valor devolvido,return value,valor devolvido,3,10,"The result of a function. If a function call is used as an expression, the return value is the value of the expression.", +variável,variable,variável,2,1,A name that refers to a value., +variável global,global variable,variável global,11,17,A variable defined outside a function. Global variables can be accessed from any function., +variável local,local variable,variável local,3,9,A variable defined inside a function. A local variable can only be used inside its function., +variável temporária,temporary variable,variável temporária,6,1,A variable used to store an intermediate value in a complex calculation., diff --git a/tools/gloss_stats.py b/tools/gloss_stats.py new file mode 100644 index 0000000..a09bbf9 --- /dev/null +++ b/tools/gloss_stats.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python3 + +import csv +import unicodedata +import string +import collections + +GLOSSARY_DATA_PATH = './glossary.csv' +FIELDS = 'term us_term br_term chapter order us_definition br_definition'.split() + +GlossaryEntry = collections.namedtuple('GlossaryEntry', FIELDS) + +def asciize(txt): + """Return only ASCII letters from text""" + return ''.join(c for c in unicodedata.normalize('NFD', txt) + if c in string.ascii_lowercase) + +def count_glossary(): + counter = collections.Counter() + master_glossary = [] + with open(GLOSSARY_DATA_PATH) as csvfile: + reader = csv.DictReader(csvfile, FIELDS) + next(reader) # skip header line + for row in reader: + entry = GlossaryEntry(**row) + #print(entry) + normal_term = asciize(entry.term.casefold()) + counter[normal_term[0]] += 1 + return counter + +if __name__ == '__main__': + res = count_glossary().most_common() + for letter, count in sorted(res): + print(letter, count) From 61f8e14358afbeada253d952eb1bd04dddf70780 Mon Sep 17 00:00:00 2001 From: Caio Ariede Date: Mon, 30 Nov 2015 19:32:29 -0200 Subject: [PATCH 02/14] Glossary letter B --- tools/glossary.csv | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/glossary.csv b/tools/glossary.csv index ee04cb6..2b8475b 100644 --- a/tools/glossary.csv +++ b/tools/glossary.csv @@ -24,12 +24,12 @@ atributo de classe,class attribute,atributo de classe,18,2,An attribute associat atributo de instância,instance attribute,atributo de instância,18,3,An attribute associated with an instance of a class., atualização,update,atualização,7,2,An assignment where the new value of the variable depends on the old., avaliar,evaluate,avaliar,2,7,To simplify an expression by performing the operations in order to yield a single value., -banco de dados,database,banco de dados,14,11,A file whose contents are organized like a dictionary with keys that correspond to values., -bug,bug,-,1,20,An error in a program., -busca,search,busca,8,9,A pattern of traversal that stops when it finds what it is looking for., -busca,lookup,"busca, pesquisa",11,11,A dictionary operation that takes a key and finds the corresponding value., -busca,search,busca,B,10,The problem of locating an element of a collection (like a list or dictionary) or determining that it is not present., -busca invertida,reverse lookup,busca invertida,11,12,A dictionary operation that takes a value and finds one or more keys that map to it., +banco de dados,database,banco de dados,14,11,A file whose contents are organized like a dictionary with keys that correspond to values.,"Um arquivo onde seus conteúdos são organizados como um dicionário, com chaves que correspondem a valores." +bug,bug,-,1,20,An error in a program.,Erro em um programa. +busca,search,busca,8,9,A pattern of traversal that stops when it finds what it is looking for.,Um padrão de travessia que para quando encontra o que está procurando. +busca,lookup,"busca, pesquisa",11,11,A dictionary operation that takes a key and finds the corresponding value.,Uma operação de dicionário que recebe uma chave e procura o valor correspondente. +busca,search,busca,B,10,The problem of locating an element of a collection (like a list or dictionary) or determining that it is not present.,O problema de localizar um elemento em uma coleção (como uma lista ou dicionário) ou determinar se ele não está presente. +busca invertida,reverse lookup,busca invertida,11,12,A dictionary operation that takes a value and finds one or more keys that map to it.,Uma operação de dicionário que recebe um valor e procura por uma ou mais chaves que mapeiam até ele. cabeçalho,header,cabeçalho,3,4,The first line of a function definition., caminho,path,caminho,14,7,A string that identifies a file., caminho absoluto,absolute path,caminho absoluto,14,9,A path that starts from the topmost directory in the file system., From 506b4ed95b297529c803f2136f2691a47ebc9065 Mon Sep 17 00:00:00 2001 From: ermogenes Date: Tue, 1 Dec 2015 10:11:45 -0200 Subject: [PATCH 03/14] Glossary #D translated --- data/d.csv | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/data/d.csv b/data/d.csv index fd8edc0..45e4a96 100644 --- a/data/d.csv +++ b/data/d.csv @@ -1,23 +1,23 @@ -ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION -declaração,declaration,declaração,11,20,A statement like global that tells the interpreter something about a variable., -decrementar,decrement,decrementar,7,5,An update that decreases the value of a variable., -definição de função,function definition,definição de função,3,2,"A statement that creates a new function, specifying its name, parameters, and the statements it contains.", -delimitador,delimiter,delimitador,10,14,A character or string used to indicate where a string should be split., -dependência,dependency,dependência,18,10,"A relationship between two classes where instances of one class use instances of the other class, but do not store them as attributes.", -depuração,debugging,depuração,1,21,The process of finding and correcting bugs., -depuração com patinho de borracha,rubber duck debugging,depuração com patinho de borracha,13,6,"Debugging by explaining your problem to an inanimate object such as a rubber duck. Articulating the problem can help you solve it, even if the rubber duck doesn’t know Python.", -desempacotamento de tupla,tuple assignment,desempacotamento de tupla,12,2,An assignment with a sequence on the right side and a tuple of variables on the left. The right side is evaluated and then its elements are assigned to the variables on the left., -desenvolvimento incremental,incremental development,desenvolvimento incremental,6,3,A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time., -desenvolvimento planejado,designed development,desenvolvimento planejado,16,2,A development plan that involves high-level insight into the problem and more planning than incremental development or prototype development., -despacho por tipo,type-based dispatch,despacho por tipo,17,7,A programming pattern that checks the type of an operand and invokes different functions for different types., -desvio,branch,desvio,5,9,One of the alternative sequences of statements in a conditional statement., -determinístico,deterministic,determinístico,13,1,"Pertaining to a program that does the same thing each time it runs, given the same inputs.", -diagrama de chamadas,call graph,diagrama de chamadas,11,15,"A diagram that shows every frame created during the execution of a program, with an arrow from each caller to each callee.", -diagrama de classe,class diagram,diagrama de classe,18,11,A diagram that shows the classes in a program and the relationships between them., -diagrama de estado,state diagram,diagrama de estado,2,3,A graphical representation of a set of variables and the values they refer to., -diagrama de objetos,object diagram,diagrama de objetos,15,9,"A diagram that shows objects, their attributes, and the values of the attributes.", -diagrama de pilha,stack diagram,diagrama de pilha,3,20,"A graphical representation of a stack of functions, their variables, and the values they refer to.", -dicionário,dictionary,dicionário,11,2,A mapping from keys to their corresponding values., -diretório,directory,diretório,14,6,"A named collection of files, also called a folder.", -divisão pelo piso,floor division,divisão pelo piso,5,1,"An operator, denoted //, that divides two numbers and rounds down (toward zero) to an integer.", -docstring,docstring,-,4,9,A string that appears at the top of a function definition to document the function’s interface., +ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION +declaração,declaration,declaração,11,20,A statement like global that tells the interpreter something about a variable.,Uma instrução como global que diz ao interpretador algo sobre uma variável. +decrementar,decrement,decrementar,7,5,An update that decreases the value of a variable.,Uma atualização que reduz o valor de uma variável. +definição de função,function definition,definição de função,3,2,"A statement that creates a new function, specifying its name, parameters, and the statements it contains.","Uma instrução que cria uma nova função especificando seu nome, parâmetros, e as instruções que contém." +delimitador,delimiter,delimitador,10,14,A character or string used to indicate where a string should be split.,Um caractere ou string que indica onde uma string deve ser dividida. +dependência,dependency,dependência,18,10,"A relationship between two classes where instances of one class use instances of the other class, but do not store them as attributes.",Um relacionamento entre duas classes onde instâncias de uma classe usam instâncias de outra classe sem armazená-las como atributos. +depuração,debugging,depuração,1,21,The process of finding and correcting bugs.,Processo de encontrar e corrigir bugs. +depuração com patinho de borracha,rubber duck debugging,depuração com patinho de borracha,13,6,"Debugging by explaining your problem to an inanimate object such as a rubber duck. Articulating the problem can help you solve it, even if the rubber duck doesn’t know Python.","Depuração explicando seu problema para um objeto inanimado como um patinho de borracha. Articular o problema pode ajudar a resolvê-lo, mesmo se o patinho de borracha não conheça Python." +desempacotamento de tupla,tuple assignment,desempacotamento de tupla,12,2,An assignment with a sequence on the right side and a tuple of variables on the left. The right side is evaluated and then its elements are assigned to the variables on the left.,Uma atribuição com uma sequencia no lado direito e uma tupla no esquerdo. O lado direito é avaliado e seus elementos atribuídos às variáveis a esquerda. +desenvolvimento incremental,incremental development,desenvolvimento incremental,6,3,A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time., +desenvolvimento planejado,designed development,desenvolvimento planejado,16,2,A development plan that involves high-level insight into the problem and more planning than incremental development or prototype development.,Um plano de desenvolvimento que envolve alto nível de percepção do problema e mais planejamento que os desenvolvimentos incremental e por protótipo. +despacho por tipo,type-based dispatch,despacho por tipo,17,7,A programming pattern that checks the type of an operand and invokes different functions for different types.,Um padrão de programação que verifica o tipo de um operando e invoca diferentes funções para diferentes tipos. +desvio,branch,desvio,5,9,One of the alternative sequences of statements in a conditional statement.,Uma das sequencias de instruções alternativas em uma instrução condicional. +determinístico,deterministic,determinístico,13,1,"Pertaining to a program that does the same thing each time it runs, given the same inputs.","Diz-se de um programa que faz a mesma coisa a cada execução, dadas as mesmas entradas." +diagrama de chamadas,call graph,diagrama de chamadas,11,15,"A diagram that shows every frame created during the execution of a program, with an arrow from each caller to each callee.","Um diagrama que mostra todos os frames criados durante a execução de um programa, com uma seta de cada executor para cada executado." +diagrama de classe,class diagram,diagrama de classe,18,11,A diagram that shows the classes in a program and the relationships between them.,Um diagrama que mostra as classes em um programa e os relacionamentos entre elas. +diagrama de estado,state diagram,diagrama de estado,2,3,A graphical representation of a set of variables and the values they refer to.,Uma representação gráfica de um conjunto de variáveis e os valores a que se referem. +diagrama de objetos,object diagram,diagrama de objetos,15,9,"A diagram that shows objects, their attributes, and the values of the attributes.","Um diagrama que mostra objetos, seus atributos, e os valores dos atributos." +diagrama de pilha,stack diagram,diagrama de pilha,3,20,"A graphical representation of a stack of functions, their variables, and the values they refer to.","Uma representação gráfica de uma pilha de funções, suas variáveis, e os valores a que se referem." +dicionário,dictionary,dicionário,11,2,A mapping from keys to their corresponding values.,Um mapeamento de chaves aos seus valores correspondentes. +diretório,directory,diretório,14,6,"A named collection of files, also called a folder.","Uma coleção nomeada de arquivos, também conhecida como pasta." +divisão pelo piso,floor division,divisão pelo piso,5,1,"An operator, denoted //, that divides two numbers and rounds down (toward zero) to an integer.","Um operador, denotado //, que divide dois números e os arredonda para baixo (em direção ao zero) em um inteiro." +docstring,docstring,-,4,9,A string that appears at the top of a function definition to document the function’s interface.,Uma string no início de uma definição de função que documenta a assinatura da função. From ac947a5b1c5a699e0ff0492fa9f99c623807d3ad Mon Sep 17 00:00:00 2001 From: ermogenes Date: Tue, 1 Dec 2015 12:30:05 -0200 Subject: [PATCH 04/14] Glossary #N-O translated --- data/n-o.csv | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/data/n-o.csv b/data/n-o.csv index b27108c..9677ef8 100644 --- a/data/n-o.csv +++ b/data/n-o.csv @@ -1,23 +1,23 @@ -ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION -``None``,``None``,-,3,13,A special value returned by void functions., -notação assintótica,Big-Oh notation,notação assintótica,B,7,"Notation for representing an order of growth; for example, :math:`O(n)` represents the set of functions that grow linearly.", -notação de ponto,dot notation,notação de ponto,3,17,The syntax for calling a function in another module by specifying the module name followed by a dot (period) and the function name., -objeto,object,objeto,8,1,"Something a variable can refer to. For now, you can use “object” and “value” interchangeably.", -objeto,object,objeto,10,9,Something a variable can refer to. An object has a type and a value., -objeto “pipe”,pipe object,objeto “pipe”,14,14,"An object that represents a running program, allowing a Python program to run commands and read the results.", -objeto ``bytes``,``bytes`` object,objeto ``bytes``,14,12,An object similar to a string., -objeto ``zip``,``zip`` object,objeto ``zip``,12,5,The result of calling a built-in function zip; an object that iterates through a sequence of tuples., -objeto embutido,embedded object,objeto embutido,15,6,An object that is stored as an attribute of another object., -objeto-arquivo,file object,objeto-arquivo,9,1,A value that represents an open file., -objeto-classe,class object,objeto-classe,15,2,An object that contains information about a programmer-defined type. The class object can be used to create instances of the type., -objeto-função,function object,objeto-função,3,3,A value created by a function definition. The name of the function is a variable that refers to a function object., -objeto-módulo,module object,objeto-módulo,3,16,A value created by an import statement that provides access to the values defined in a module., -ocultação de informações,information hiding,ocultação de informações,17,9,"The principle that the interface provided by an object should not depend on its implementation, in particular the representation of its attributes.", -operador,operator,operador,1,9,"A special symbol that represents a simple computation like addition, multiplication, or string concatenation.", -operador de formatação,format operator,operador de formatação,14,2,"An operator, %, that takes a format string and a tuple and generates a string that includes the elements of the tuple formatted as specified by the format string.", -operador de módulo,modulus operator,operador de módulo,5,2,"An operator, denoted with a percent sign (%), that works on integers and returns the remainder when one number is divided by another.", -operador lógico,logical operator,operador lógico,5,5,"One of the operators that combines boolean expressions: and, or, and not.", -operador relacional,relational operator,operador relacional,5,4,"One of the operators that compares its operands: ==, !=, >, <, >=, and <=.", -operando,operand,operando,2,5,One of the values on which an operator operates., -ordem das operações,order of operations,ordem das operações,2,13,Rules governing the order in which expressions involving multiple operators and operands are evaluated., -ordem de crescimento,order of growth,ordem de crescimento,B,6,"A set of functions that all grow in a way considered equivalent for purposes of analysis of algorithms. For example, all functions that grow linearly belong to the same order of growth.", +ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION +``None``,``None``,-,3,13,A special value returned by void functions.,Um valor especial retornado por procedimentos. +notação assintótica,Big-Oh notation,notação assintótica,B,7,"Notation for representing an order of growth; for example, :math:`O(n)` represents the set of functions that grow linearly.","Notação para representação de uma ordem de crescimento; por exemplo, :math:`O(n)` representa o conjunto de funções que crescem linearmente." +notação de ponto,dot notation,notação de ponto,3,17,The syntax for calling a function in another module by specifying the module name followed by a dot (period) and the function name.,Sintaxe para chamada de uma função em outro módulo utilizando o nome do módulo seguido por um ponto e o nome da função. +objeto,object,objeto,8,1,"Something a variable can refer to. For now, you can use “object” and “value” interchangeably.","Algo a que uma variável possa se referir. Por enquanto, você pode usar “objeto” e “valor” sem distinção." +objeto,object,objeto,10,9,Something a variable can refer to. An object has a type and a value.,Algo a que uma variável possa se referir. Um objeto possui um tipo e um valor. +objeto “pipe”,pipe object,objeto “pipe”,14,14,"An object that represents a running program, allowing a Python program to run commands and read the results.","Um objeto que representa um programa em execução, permitindo que um programa Python execute programas e leia os resultados." +objeto ``bytes``,``bytes`` object,objeto ``bytes``,14,12,An object similar to a string.,Um objeto similar a uma string. +objeto ``zip``,``zip`` object,objeto ``zip``,12,5,The result of calling a built-in function zip; an object that iterates through a sequence of tuples.,O resultado da chamada de uma função nativa zip; um objeto que itera por uma sequencia de tuplas. +objeto embutido,embedded object,objeto embutido,15,6,An object that is stored as an attribute of another object.,Um objeto que é armazenado como um atributo de outro objeto. +objeto-arquivo,file object,objeto-arquivo,9,1,A value that represents an open file.,Um valor que representa um arquivo aberto. +objeto-classe,class object,objeto-classe,15,2,An object that contains information about a programmer-defined type. The class object can be used to create instances of the type.,Um objeto que contém informações sobre um tipo definido pelo programador. O objeto-classe pode ser utilizado para criar instâncias do tipo. +objeto-função,function object,objeto-função,3,3,A value created by a function definition. The name of the function is a variable that refers to a function object.,Um valor criado por uma definição de função. O nome da função é uma variável que referencia um objeto-função. +objeto-módulo,module object,objeto-módulo,3,16,A value created by an import statement that provides access to the values defined in a module.,Um valor criado por uma instrução import que dá acesso aos valores definidos em um módulo. +ocultação de informações,information hiding,ocultação de informações,17,9,"The principle that the interface provided by an object should not depend on its implementation, in particular the representation of its attributes.","Princípio em que a interface disponibilizada por um objeto não deve depender de sua implementação, em particular da representação de seus atributos." +operador,operator,operador,1,9,"A special symbol that represents a simple computation like addition, multiplication, or string concatenation.","Um símbolo especial que representa uma computação simples como adição, multiplicação ou concatenação de string." +operador de formatação,format operator,operador de formatação,14,2,"An operator, %, that takes a format string and a tuple and generates a string that includes the elements of the tuple formatted as specified by the format string.","Um operador, %, que recebe uma string de formatação e uma tupla e gera uma string que inclui os elementos da tupla formatados conforme especificado na string de formatação." +operador de módulo,modulus operator,operador de módulo,5,2,"An operator, denoted with a percent sign (%), that works on integers and returns the remainder when one number is divided by another.","Um operador, denotado por um sinal de porcentagem (%), que atua em inteiros e retorna o resto da divisão de um número por outro." +operador lógico,logical operator,operador lógico,5,5,"One of the operators that combines boolean expressions: and, or, and not.","Um dos operadores que combinam expressões booleanas: and, or e not." +operador relacional,relational operator,operador relacional,5,4,"One of the operators that compares its operands: ==, !=, >, <, >=, and <=.","Um dos operadores que comparam os operandos: ==, !=, >, <, >= e <=." +operando,operand,operando,2,5,One of the values on which an operator operates.,Um dos valores sobre os quais um operador opera. +ordem das operações,order of operations,ordem das operações,2,13,Rules governing the order in which expressions involving multiple operators and operands are evaluated.,Regras que determinam a ordem em que expressões envolvendo múltiplos operadores e operandos são avaliados. +ordem de crescimento,order of growth,ordem de crescimento,B,6,"A set of functions that all grow in a way considered equivalent for purposes of analysis of algorithms. For example, all functions that grow linearly belong to the same order of growth.","Um conjunto de funções que crescem de forma equivalente do ponto de vista da análise de algoritmos. Por exemplo, todas as funções que crescem linearmente pertencem à mesma ordem de crescimento." From c3c8405b200d15cf57c8f55c2d56c8ff441831c8 Mon Sep 17 00:00:00 2001 From: Andre Almar Date: Tue, 1 Dec 2015 15:33:48 -0200 Subject: [PATCH 05/14] p-q.csv glossary translated --- data/p-q.csv | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/data/p-q.csv b/data/p-q.csv index c453a54..1a867c8 100644 --- a/data/p-q.csv +++ b/data/p-q.csv @@ -1,23 +1,23 @@ ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION -palavra-chave,keyword,palavra-chave,2,4,"A reserved word that is used to parse a program; you cannot use keywords like if, def, and while as variable names.", -par chave-valor,key-value pair,par chave-valor,11,3,The representation of the mapping from a key to a value., -parâmetro,parameter,parâmetro,3,6,A name used inside a function to refer to the value passed as an argument., -percorrer,traverse,percorrer,8,8,"To iterate through the items in a sequence, performing a similar operation on each.", -persistente,persistent,persistente,14,1,Pertaining to a program that runs indefinitely and keeps at least some of its data in permanent storage., -pior caso,worst case,pior caso,B,3,The input that makes a given algorithm run slowest (or require the most space., -plano de desenvolvimento,development plan,plano de desenvolvimento,4,8,A process for writing programs., -polimórfico,polymorphic,polimórfico,17,8,Pertaining to a function that can work with more than one type., -ponto de cruzamento,crossover point,ponto de cruzamento,B,5,The problem size where two algorithms require the same run time or space., -ponto-flutuante,floating-point,ponto-flutuante,1,13,A type that represents numbers with fractional parts., -portabilidade,portability,portabilidade,1,4,A property of a program that can run on more than one kind of computer., -pós-condição,postcondition,pós-condição,4,11,A requirement that should be satisfied by the function before it ends., -pré-condição,precondition,pré-condição,4,10,A requirement that should be satisfied by the caller before a function starts., -"``print``, instrução",``print`` statement,instrução ``print``,1,8,An instruction that causes the Python interpreter to display a value on the screen., -procedimento,void function,“função nula” ou procedimento,3,12,A function that always returns None., -programação funcional,program,programação funcional,1,7,A set of instructions that specifies a computation., -programação funcional,functional programming style,programação funcional,16,5,A style of program design in which the majority of functions are pure., -programação orientada a objetos,object-oriented programming,programação orientada a objetos,17,2,A style of programming in which data and the operations that manipulate it are organized into classes and methods., -prompt,prompt,“sinal de pronto”,1,6,Characters displayed by the interpreter to indicate that it is ready to take input from the user., -prototipar e ajustar,prototype and patch,prototipar e ajustar,16,1,"A development plan that involves writing a rough draft of a program, testing, and correcting errors as they are found.", -pseudo-aleatório,pseudorandom,pseudo-aleatório,13,2,"Pertaining to a sequence of numbers that appears to be random, but is generated by a deterministic program.", -quadrático,quadratic,quadrático,B,9,"An algorithm whose run time is proportional to :math:`n^2`, where :math:`n` is a measure of problem size.", +palavra-chave,keyword,palavra-chave,2,4,"A reserved word that is used to parse a program; you cannot use keywords like if, def, and while as variable names.","Uma palavra reservada que é usada para analisar um programa; você não pode usar palavras-chave como por exemplo if, def, e while como nomes de variáveis.", +par chave-valor,key-value pair,par chave-valor,11,3,The representation of the mapping from a key to a value.,A representação do mapeamento a partir de uma chave para um determinado valor. +parâmetro,parameter,parâmetro,3,6,A name used inside a function to refer to the value passed as an argument.,Um nome usado dentro de uma função para se referir a um valor passado como um argumento. +percorrer,traverse,percorrer,8,8,"To iterate through the items in a sequence, performing a similar operation on each.",Percorrer os items em uma sequência, realizando uma operação similar em cada item. +persistente,persistent,persistente,14,1,Pertaining to a program that runs indefinitely and keeps at least some of its data in permanent storage.,Refere-se a um programa que é executado indefinidamente e mantém ao menos alguns dos seus dados em armazenamento permanente. +pior caso,worst case,pior caso,B,3,The input that makes a given algorithm run slowest (or require the most space.,Uma entrada que faz com que um determinado algoritmo execute de maneira mais lenta (ou exige mais espaço). +plano de desenvolvimento,development plan,plano de desenvolvimento,4,8,A process for writing programs.,Processo para escrever programas. +polimórfico,polymorphic,polimórfico,17,8,Pertaining to a function that can work with more than one type.,Refere-se a uma função que pode lidar com mais de um tipo. +ponto de cruzamento,crossover point,ponto de cruzamento,B,5,The problem size where two algorithms require the same run time or space.,Um problema que ocorre quando dois algoritmos requerem o mesmo tempo de execução ou espaço. +ponto-flutuante,floating-point,ponto-flutuante,1,13,A type that represents numbers with fractional parts.,Um tipo que representa números em partes fracionadas. +portabilidade,portability,portabilidade,1,4,A property of a program that can run on more than one kind of computer.,Propriedade de um programa que pode ser executado em mais de um tipo de computador. +pós-condição,postcondition,pós-condição,4,11,A requirement that should be satisfied by the function before it ends.,Requisito que deve ser satisfeito pela função antes que esta termine. +pré-condição,precondition,pré-condição,4,10,A requirement that should be satisfied by the caller before a function starts.,Um requisito que deve ser satisfeito por quem a chamou, antes desta função iniciar. +"``print``, instrução",``print`` statement,instrução ``print``,1,8,An instruction that causes the Python interpreter to display a value on the screen.,Uma instrução que faz com que o interpretador Python mostre um determinado valor na tela. +procedimento,void function,“função nula” ou procedimento,3,12,A function that always returns None.,Uma função que sempre retorna vazio +programação funcional,program,programação funcional,1,7,A set of instructions that specifies a computation.,Um conjunto de instruções que especifica um cálculo. +programação funcional,functional programming style,programação funcional,16,5,A style of program design in which the majority of functions are pure.,Um estilo de programação em que a maioria das funções são puras. +programação orientada a objetos,object-oriented programming,programação orientada a objetos,17,2,A style of programming in which data and the operations that manipulate it are organized into classes and methods.,Um estilo de programação em que dados e as operações que os manipulam são organizados em classes e métodos. +prompt,prompt,“sinal de pronto”,1,6,Characters displayed by the interpreter to indicate that it is ready to take input from the user.,Caracteres exibidos pelo interpretador para indicar que ele está pronto para receber a entrada do usuário. +prototipar e ajustar,prototype and patch,prototipar e ajustar,16,1,"A development plan that involves writing a rough draft of a program, testing, and correcting errors as they are found.",Um plano de desenvolvimento que envolve escrever um esboço de um programa, testar, e corrigir os erros assim que eles forem encontrados. +pseudo-aleatório,pseudorandom,pseudo-aleatório,13,2,"Pertaining to a sequence of numbers that appears to be random, but is generated by a deterministic program.",Uma sequência de números que parecem ser aleatórios, mas na verdade são gerados por uma programa com sequência determinística. +quadrático,quadratic,quadrático,B,9,"An algorithm whose run time is proportional to :math:`n^2`, where :math:`n` is a measure of problem size.",Um algoritmo cujo tempo de execução é proporcional a: mat: `n^2`, aonde mat:`n`, é uma medida de tamanho do problema. From 4e53107e216a686ab087b5e8110127eeb57eef2e Mon Sep 17 00:00:00 2001 From: Andre Almar Date: Tue, 1 Dec 2015 17:30:41 -0200 Subject: [PATCH 06/14] l-m.csv translated --- data/l-m.csv | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/data/l-m.csv b/data/l-m.csv index 868060f..2c1bded 100644 --- a/data/l-m.csv +++ b/data/l-m.csv @@ -1,23 +1,23 @@ ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION -laço,loop,"laço, loop",4,2,A part of a program that can run repeatedly., -laço infinito,infinite loop,laço infinito,7,7,A loop in which the terminating condition is never satisfied., -linear,linear,linear,B,8,"An algorithm whose run time is proportional to problem size, at least for large problem sizes.", -linguagem de alto nível,high-level language,linguagem de alto nível,1,2,A programming language like Python that is designed to be easy for humans to read and write., -linguagem de baixo nível,low-level language,linguagem de baixo nível,1,3,A programming language that is designed to be easy for a computer to run; also called “machine language” or “assembly language”., -linguagem formal,formal language,linguagem formal,1,16,"Any one of the languages that people have designed for specific purposes, such as representing mathematical ideas or computer programs; all programming languages are formal languages.", -linguagem natural,natural language,linguagem natural,1,15,Any one of the languages that people speak that evolved naturally., -linguagem orientada a objetos,object-oriented language,linguagem orientada a objetos,17,1,"A language that provides features, such as programmer-defined types and methods, that facilitate object-oriented programming.", -lista,list,lista,10,1,A sequence of values., -lista aninhada,nested list,lista aninhada,10,3,A list that is an element of another list., -listcomp,list comprehension,"“compreensão de lista”, listcomp",19,2,An expression with a for loop in square brackets that yields a new list., -map,map,"“mapear”, “de-para”",10,7,A processing pattern that traverses a sequence and performs an operation on each element., -mapeamento,mapping,mapeamento,11,1,A relationship in which each element of one set corresponds to an element of another set., -máquina-modelo,machine model,máquina-modelo,B,2,A simplified representation of a computer used to describe algorithms., -memo,memo,“lembrete”,11,16,A computed value stored to avoid unnecessary future computation., -método,method,método,4,1,A function that is associated with an object and called using dot notation., -método,method,método,17,3,A function that is defined inside a class definition and is invoked on instances of that class., -modificadora,modifier,modificadora,16,4,"A function that changes one or more of the objects it receives as arguments. Most modifiers are void; that is, they return None.", -modo de script,script mode,modo de script,2,11,A way of using the Python interpreter to read code from a script and run it., -modo interativo,interactive mode,modo interativo,2,10,A way of using the Python interpreter by typing code at the prompt., -módulo,module,módulo,3,14,A file that contains a collection of related functions and other definitions., -multiset,multiset,“multi-conjunto”,19,4,A mathematical entity that represents a mapping between the elements of a set and the number of times they appear., +laço,loop,"laço, loop",4,2,A part of a program that can run repeatedly.,Parte de um programa que pode ser executada repetidamente. +laço infinito,infinite loop,laço infinito,7,7,A loop in which the terminating condition is never satisfied.,Um laço cuja sua condição de término nunca é satisfeita. +linear,linear,linear,B,8,"An algorithm whose run time is proportional to problem size, at least for large problem sizes.",Um algoritmo cujo tempo de execução é proporcional ao tamanho do problema, pelo menos para os problemas de tamanhos grandes. +linguagem de alto nível,high-level language,linguagem de alto nível,1,2,A programming language like Python that is designed to be easy for humans to read and write.,Linguagem de programação, como a linguagem Python, que é projetada para ser facilmente entendida por humanos. +linguagem de baixo nível,low-level language,linguagem de baixo nível,1,3,A programming language that is designed to be easy for a computer to run; also called “machine language” or “assembly language”.,Uma linguagem de programação que é projetada para ser fácilmente executada por um computador; também conhecida como "linguagem de máquina" ou "linguagem de assembly". +linguagem formal,formal language,linguagem formal,1,16,"Any one of the languages that people have designed for specific purposes, such as representing mathematical ideas or computer programs; all programming languages are formal languages.",Qualquer linguagem que as pessoas desenvolveram para propósitos específicos, como representar idéias matemáticas ou programas de computador; todas as linguagens de programação são linguagens formais. +linguagem natural,natural language,linguagem natural,1,15,Any one of the languages that people speak that evolved naturally.,Qualquer língua que as pessoas falam e que evoluíram naturalmente com o passar do tempo. +linguagem orientada a objetos,object-oriented language,linguagem orientada a objetos,17,1,"A language that provides features, such as programmer-defined types and methods, that facilitate object-oriented programming.",Uma linguagem que fornece recursos como tipos e métodos e que facilita a programação orientada a objetos. +lista,list,lista,10,1,A sequence of values.,Sequência de valores. +lista aninhada,nested list,lista aninhada,10,3,A list that is an element of another list.,Uma lista que é um elemento de uma outra lista. +listcomp,list comprehension,"“compreensão de lista”, listcomp",19,2,An expression with a for loop in square brackets that yields a new list.,Uma expressão com um laço for entre colchetes que produz uma nova lista. +map,map,"“mapear”, “de-para”",10,7,A processing pattern that traverses a sequence and performs an operation on each element.,Um padrão de processamento que percorre uma sequência e executa uma operação em cada elemento. +mapeamento,mapping,mapeamento,11,1,A relationship in which each element of one set corresponds to an element of another set.,Um relacionamento aonde cada elemento de um conjunto corresponde a um elemento de outro conjunto. +máquina-modelo,machine model,máquina-modelo,B,2,A simplified representation of a computer used to describe algorithms.,Uma representação simplificada de um computador usado para descrever algoritmos. +memo,memo,“lembrete”,11,16,A computed value stored to avoid unnecessary future computation.,Um valor calculado que é armazenado para evitar cálculo computacional desnecessário no futuro. +método,method,método,4,1,A function that is associated with an object and called using dot notation.,Função que é associada com um objeto e é chamada usando notação de ponto. +método,method,método,17,3,A function that is defined inside a class definition and is invoked on instances of that class.,Função que é definida dentro de uma definição de classe e é invocada em instâncias desta classe. +modificadora,modifier,modificadora,16,4,"A function that changes one or more of the objects it receives as arguments. Most modifiers are void; that is, they return None.",Uma função que modifica um ou mais objetos que recebe como argumento. A maioria dos modificadores são vazios; isto é, eles retornam vazio. +modo de script,script mode,modo de script,2,11,A way of using the Python interpreter to read code from a script and run it.,Uma maneira de usar o interpretador Python para ler código de um script e executá-lo. +modo interativo,interactive mode,modo interativo,2,10,A way of using the Python interpreter by typing code at the prompt.,Uma maneira de usar o interpretador Python digitando o código no prompt de comando. +módulo,module,módulo,3,14,A file that contains a collection of related functions and other definitions.,Um arquivo que contém uma coleção de funções relacionadas e outras definiçòes. +multiset,multiset,“multi-conjunto”,19,4,A mathematical entity that represents a mapping between the elements of a set and the number of times they appear.,Uma entidade matemática que representa um mapeamento entre os elementos de um conjunto e o número de vezes que eles aparecem. From 7d080f5a4e30e318354e4cd7d6c22a4b152179ed Mon Sep 17 00:00:00 2001 From: Caio Ariede Date: Tue, 1 Dec 2015 18:09:30 -0200 Subject: [PATCH 07/14] move contents already translated to data/b.csv --- data/b.csv | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/data/b.csv b/data/b.csv index 5749e38..ac547ac 100644 --- a/data/b.csv +++ b/data/b.csv @@ -1,7 +1,7 @@ ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION -banco de dados,database,banco de dados,14,11,A file whose contents are organized like a dictionary with keys that correspond to values., -bug,bug,-,1,20,An error in a program., -busca,search,busca,8,9,A pattern of traversal that stops when it finds what it is looking for., -busca,lookup,"busca, pesquisa",11,11,A dictionary operation that takes a key and finds the corresponding value., -busca,search,busca,B,10,The problem of locating an element of a collection (like a list or dictionary) or determining that it is not present., -busca invertida,reverse lookup,busca invertida,11,12,A dictionary operation that takes a value and finds one or more keys that map to it., +banco de dados,database,banco de dados,14,11,A file whose contents are organized like a dictionary with keys that correspond to values.,"Um arquivo onde seus conteúdos são organizados como um dicionário, com chaves que correspondem a valores." +bug,bug,-,1,20,An error in a program.,Erro em um programa. +busca,search,busca,8,9,A pattern of traversal that stops when it finds what it is looking for.,Um padrão de travessia que para quando encontra o que está procurando. +busca,lookup,"busca, pesquisa",11,11,A dictionary operation that takes a key and finds the corresponding value.,Uma operação de dicionário que recebe uma chave e procura o valor correspondente. +busca,search,busca,B,10,The problem of locating an element of a collection (like a list or dictionary) or determining that it is not present.,O problema de localizar um elemento em uma coleção (como uma lista ou dicionário) ou determinar se ele não está presente. +busca invertida,reverse lookup,busca invertida,11,12,A dictionary operation that takes a value and finds one or more keys that map to it.,Uma operação de dicionário que recebe um valor e procura por uma ou mais chaves que mapeiam até ele. From 02c954c787a51d6984fad7653f2b925fae24a2db Mon Sep 17 00:00:00 2001 From: "Clayton A. Alves" Date: Tue, 1 Dec 2015 22:24:08 -0300 Subject: [PATCH 08/14] t-v.csv translated --- data/t-v.csv | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/data/t-v.csv b/data/t-v.csv index cfe4b72..54ada2d 100644 --- a/data/t-v.csv +++ b/data/t-v.csv @@ -1,17 +1,17 @@ ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION -tabela de hash,hashtable,tabela de espalhamento,11,8,The algorithm used to implement Python dictionaries., -tabela de hash,hashtable,tabela de espalhamento,B,11,A data structure that represents a collection of key-value pairs and performs search in constant time., -termo dominante,leading term,"termo dominante, termo de maior expoente",B,4,"In a polynomial, the term with the highest exponent.", -teste de desempenho,benchmarking,teste de desempenho,13,5,The process of choosing between data structures by implementing alternatives and testing them on a sample of the possible inputs., -tipo,type,tipo,1,11,"A category of values. The types we have seen so far are integers (type int), floating-point numbers (type float), and strings (type str).", -token,token,“símbolo”,1,17,"One of the basic elements of the syntactic structure of a program, analogous to a word in a natural language.", -traceback,traceback,,3,22,"A list of the functions that are executing, printed when an exception occurs.", -tupla,tuple,tupla,12,1,An immutable sequence of elements., -valor,value,valor,1,10,"One of the basic units of data, like a number or string, that a program manipulates.", -valor,value,valor,11,6,An object that appears in a dictionary as the second part of a key-value pair. This is more specific than our previous use of the word “value”., -valor default,default value,valor default,13,3,The value given to an optional parameter if no argument is provided., -valor devolvido,return value,valor devolvido,3,10,"The result of a function. If a function call is used as an expression, the return value is the value of the expression.", -variável,variable,variável,2,1,A name that refers to a value., -variável global,global variable,variável global,11,17,A variable defined outside a function. Global variables can be accessed from any function., -variável local,local variable,variável local,3,9,A variable defined inside a function. A local variable can only be used inside its function., -variável temporária,temporary variable,variável temporária,6,1,A variable used to store an intermediate value in a complex calculation., +tabela de hash,hashtable,tabela de espalhamento,11,8,The algorithm used to implement Python dictionaries.,Algoritmo utilizado para implementar dicionários Python. +tabela de hash,hashtable,tabela de espalhamento,B,11,A data structure that represents a collection of key-value pairs and performs search in constant time.,Uma estrutura de dados que representa uma coleção de pares chave-valor e permite realizar busca em tempo constante. +termo dominante,leading term,"termo dominante, termo de maior expoente",B,4,"In a polynomial, the term with the highest exponent.",Termo com o maior expoente em um polinômio. +teste de desempenho,benchmarking,teste de desempenho,13,5,The process of choosing between data structures by implementing alternatives and testing them on a sample of the possible inputs.,Processo de escolher entre estruturas de dados, implementando alternativas e as testando com amostras de possíveis entradas. +tipo,type,tipo,1,11,"A category of values. The types we have seen so far are integers (type int), floating-point numbers (type float), and strings (type str).",Categoria de valores. Os tipos que vimos até agora são inteiro (tipo int), números de ponto flutuante (tipo float) e strings (tipo str). +token,token,“símbolo”,1,17,"One of the basic elements of the syntactic structure of a program, analogous to a word in a natural language.",Um dos elementos básicos da estrutura sintática de um programa, análogo a uma palavra em uma linguagem natural. +traceback,traceback,,3,22,"A list of the functions that are executing, printed when an exception occurs.",Lista das funções em execução, impressos quando uma exceção ocorre. +tupla,tuple,tupla,12,1,An immutable sequence of elements.,Uma sequência imutável de elementos. +valor,value,valor,1,10,"One of the basic units of data, like a number or string, that a program manipulates.",Uma das unidades básicas de dados, como um número ou uma string, que um programa pode manipular. +valor,value,valor,11,6,An object that appears in a dictionary as the second part of a key-value pair. This is more specific than our previous use of the word “value”.,Um objeto que aparece em um dicionário como a segunda parte de um par chave-valor. É mais específico que o uso anterior da palavra valor. +valor default,default value,valor default,13,3,The value given to an optional parameter if no argument is provided.,Valor dado a um parâmetro opcional se nenhum argumento for fornecido. +valor devolvido,return value,valor devolvido,3,10,"The result of a function. If a function call is used as an expression, the return value is the value of the expression.",Resultado de uma função. Se uma chamada de função for usada como uma expressão, o valor de retorno é o valor da expressão. +variável,variable,variável,2,1,A name that refers to a value.,Um nome que faz referencia a um valor. +variável global,global variable,variável global,11,17,A variable defined outside a function. Global variables can be accessed from any function.,Uma variável definida fora de uma função. Variáveis globais podem ser acessadas por qualquer função. +variável local,local variable,variável local,3,9,A variable defined inside a function. A local variable can only be used inside its function.,Uma variável definida dentro de uma função. Uma variável local só pode ser utilizada dentro da função onde foi definida. +variável temporária,temporary variable,variável temporária,6,1,A variable used to store an intermediate value in a complex calculation.,Uma variável utilizada para armazenar um valor intermediário em um cálculo complexo. From 0e3b4fae16f74f0ba0016e5b8f7f172c5a380022 Mon Sep 17 00:00:00 2001 From: Andre Almar Date: Wed, 2 Dec 2015 11:42:49 -0200 Subject: [PATCH 09/14] t-v.csv fixed typos --- data/t-v.csv | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/t-v.csv b/data/t-v.csv index 54ada2d..f058467 100644 --- a/data/t-v.csv +++ b/data/t-v.csv @@ -4,14 +4,14 @@ tabela de hash,hashtable,tabela de espalhamento,B,11,A data structure that repre termo dominante,leading term,"termo dominante, termo de maior expoente",B,4,"In a polynomial, the term with the highest exponent.",Termo com o maior expoente em um polinômio. teste de desempenho,benchmarking,teste de desempenho,13,5,The process of choosing between data structures by implementing alternatives and testing them on a sample of the possible inputs.,Processo de escolher entre estruturas de dados, implementando alternativas e as testando com amostras de possíveis entradas. tipo,type,tipo,1,11,"A category of values. The types we have seen so far are integers (type int), floating-point numbers (type float), and strings (type str).",Categoria de valores. Os tipos que vimos até agora são inteiro (tipo int), números de ponto flutuante (tipo float) e strings (tipo str). -token,token,“símbolo”,1,17,"One of the basic elements of the syntactic structure of a program, analogous to a word in a natural language.",Um dos elementos básicos da estrutura sintática de um programa, análogo a uma palavra em uma linguagem natural. -traceback,traceback,,3,22,"A list of the functions that are executing, printed when an exception occurs.",Lista das funções em execução, impressos quando uma exceção ocorre. +token,token,“símbolo”,1,17,"One of the basic elements of the syntactic structure of a program, analogous to a word in a natural language.",Um dos elementos básicos da estrutura sintática de um programa, análogo à uma palavra em uma linguagem natural. +traceback,traceback,,3,22,"A list of the functions that are executing, printed when an exception occurs.",Lista das funções em execução que são impressas quando uma exceção ocorre. tupla,tuple,tupla,12,1,An immutable sequence of elements.,Uma sequência imutável de elementos. valor,value,valor,1,10,"One of the basic units of data, like a number or string, that a program manipulates.",Uma das unidades básicas de dados, como um número ou uma string, que um programa pode manipular. valor,value,valor,11,6,An object that appears in a dictionary as the second part of a key-value pair. This is more specific than our previous use of the word “value”.,Um objeto que aparece em um dicionário como a segunda parte de um par chave-valor. É mais específico que o uso anterior da palavra valor. valor default,default value,valor default,13,3,The value given to an optional parameter if no argument is provided.,Valor dado a um parâmetro opcional se nenhum argumento for fornecido. valor devolvido,return value,valor devolvido,3,10,"The result of a function. If a function call is used as an expression, the return value is the value of the expression.",Resultado de uma função. Se uma chamada de função for usada como uma expressão, o valor de retorno é o valor da expressão. -variável,variable,variável,2,1,A name that refers to a value.,Um nome que faz referencia a um valor. +variável,variable,variável,2,1,A name that refers to a value.,Um nome que faz referência a um valor. variável global,global variable,variável global,11,17,A variable defined outside a function. Global variables can be accessed from any function.,Uma variável definida fora de uma função. Variáveis globais podem ser acessadas por qualquer função. variável local,local variable,variável local,3,9,A variable defined inside a function. A local variable can only be used inside its function.,Uma variável definida dentro de uma função. Uma variável local só pode ser utilizada dentro da função onde foi definida. variável temporária,temporary variable,variável temporária,6,1,A variable used to store an intermediate value in a complex calculation.,Uma variável utilizada para armazenar um valor intermediário em um cálculo complexo. From c7f03e7a667c344b2ef4ccfef176e5b993029898 Mon Sep 17 00:00:00 2001 From: Patrick Mazulo Date: Mon, 7 Dec 2015 15:37:27 -0300 Subject: [PATCH 10/14] Translated Glossary C --- data/c.csv | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/data/c.csv b/data/c.csv index 65a1e13..773e60c 100644 --- a/data/c.csv +++ b/data/c.csv @@ -1,28 +1,28 @@ ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION -cabeçalho,header,cabeçalho,3,4,The first line of a function definition., -caminho,path,caminho,14,7,A string that identifies a file., -caminho absoluto,absolute path,caminho absoluto,14,9,A path that starts from the topmost directory in the file system., -caminho relativo,relative path,caminho relativo,14,8,A path that starts from the current directory., -capturar,catch,capturar,14,10,To prevent an exception from terminating a program using the try and except statements., -cardinalidade,multiplicity,"cardinalidade, multiplicidadade",18,12,"A notation in a class diagram that shows, for a HAS-A relationship, how many references there are to instances of another class.", -caso base,base case,caso base,5,14,A conditional branch in a recursive function that does not make a recursive call., -caso especial,special case,caso especial,9,3,A test case that is atypical or non-obvious (and less likely to be handled correctly)., -chamada de função,function call,chamada de função,3,7,A statement that runs a function. It consists of the function name followed by an argument list in parentheses., -chave,key,chave,11,5,An object that appears in a dictionary as the first part of a key-value pair., -classe,class,classe,15,1,A programmer-defined type. A class definition creates a new class object., -classe base,parent class,"classe base, superclasse",18,6,The class from which a child class inherits., -classe derivada,child class,"classe derivada, subclasse",18,7,A new class created by inheriting from an existing class; also called a “subclass”., -codificar,encode,codificar,18,1,To represent one set of values using another set of values by constructing a mapping between them., -código morto,dead code,código morto,6,2,"Part of a program that can never run, often because it appears after a return statement.", -código provisório,scaffolding,"“andaime”, código provisório",6,4,Code that is used during program development but is not part of the final version., -código provisório,slice,fatia,8,5,A part of a string specified by a range of indices., -comentário,comment,comentário,2,15,Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program., -composição,composition,composição,3,18,"Using an expression as part of a larger expression, or a statement as part of a larger statement.", -concatenar,concatenate,concatenar,2,14,To join two operands end-to-end., -condição,condition,condição,5,7,The boolean expression in a conditional statement that determines which branch runs., -condicional aninhado,nested conditional,condicional aninhado,5,11,A conditional statement that appears in one of the branches of another conditional statement., -condicional encadeado,chained conditional,condicional encadeado,5,10,A conditional statement with a series of alternative branches., -contador,counter,contador,8,10,"A variable used to count something, usually initialized to zero and then incremented.", -cópia profunda,deep copy,cópia profunda,15,8,"To copy the contents of an object as well as any embedded objects, and any objects embedded in them, and so on; implemented by the deepcopy function in the copy module.", -cópia rasa,shallow copy,cópia rasa,15,7,"To copy the contents of an object, including any references to embedded objects; implemented by the copy function in the copy module.", -corpo,body,corpo,3,5,The sequence of statements inside a function definition., +cabeçalho,header,cabeçalho,3,4,The first line of a function definition.,A primeira linha da definição da função. +caminho,path,caminho,14,7,A string that identifies a file.,Uma string que identifica um arquivo. +caminho absoluto,absolute path,caminho absoluto,14,9,A path that starts from the topmost directory in the file system.,Um caminho que começa do diretório de nível mais elevado no sistema de arquivos. +caminho relativo,relative path,caminho relativo,14,8,A path that starts from the current directory.,Um caminho que começa do diretório atual. +capturar,catch,capturar,14,10,To prevent an exception from terminating a program using the try and except statements.,Para prevenir uma exceção de terminar um programa usando as declarações try e except. +cardinalidade,multiplicity,"cardinalidade, multiplicidadade",18,12,"A notation in a class diagram that shows, for a HAS-A relationship, how many references there are to instances of another class.","Uma notação em um diagrama de classe que mostra, através de uma relação TEM-A, quantas referências existem para instâncias de outras classes." +caso base,base case,caso base,5,14,A conditional branch in a recursive function that does not make a recursive call.,Uma ramificação condicional em uma função recursiva que não faz uma chamada recursiva. +caso especial,special case,caso especial,9,3,A test case that is atypical or non-obvious (and less likely to be handled correctly).,Um caso de teste que é atípico e nem óbvio (e menos susceptível de ser processado corretamente. +chamada de função,function call,chamada de função,3,7,A statement that runs a function. It consists of the function name followed by an argument list in parentheses.,Um comando que executa uma função. Ele consiste do nome da função seguido por uma lista de argumentos entre parentêses. +chave,key,chave,11,5,An object that appears in a dictionary as the first part of a key-value pair.,Um objeto que aparece em um dicionário como a primeira parte de um par chave-valor. +classe,class,classe,15,1,A programmer-defined type. A class definition creates a new class object.,Um tipo definido pelo programador. Uma definição de classe cria um novo objeto de classe. +classe base,parent class,"classe base, superclasse",18,6,The class from which a child class inherits.,A classe do qual uma classe filha herda. +classe derivada,child class,"classe derivada, subclasse",18,7,"A new class created by inheriting from an existing class, also called a “subclass”.","Uma nova classe criada ao herdar de outra classe existente, também chamada de subclasse." +codificar,encode,codificar,18,1,To represent one set of values using another set of values by constructing a mapping between them.,Representar um conjunto de valores usando um outro conjunto de valores ao construir um mapeamento entre eles. +código morto,dead code,código morto,6,2,"Part of a program that can never run, often because it appears after a return statement.","Parte de um programa que nunca é executado, em geral por aparecer após um comando “return”." +código provisório,scaffolding,"“andaime”, código provisório",6,4,Code that is used during program development but is not part of the final version.,Código que é usado durante o desenvolvimento do programa mas não é parte da versão final. +código provisório,slice,fatia,8,5,A part of a string specified by a range of indices.,A parte de uma string especificada pelo intervalo de índices. +comentário,comment,comentário,2,15,Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.,Informação em um programa que é destinada para outros programadores (ou qualquer um que ler o código fonte) e não efeito na execução do programa. +composição,composition,composição,3,18,"Using an expression as part of a larger expression, or a statement as part of a larger statement.","Usar uma expressão como parte de outra expressão maior, ou uma declaração como parte de uma declaração maior." +concatenar,concatenate,concatenar,2,14,To join two operands end-to-end.,Para juntar dois operando de ponta a ponta. +condição,condition,condição,5,7,The boolean expression in a conditional statement that determines which branch runs.,Uma expressão booleana em um comando condicional que determina a ramificação a ser executada. +condicional aninhado,nested conditional,condicional aninhado,5,11,A conditional statement that appears in one of the branches of another conditional statement.,"Uma estrutura de programa dentro de outra, tal como um comando condicional dentro de uma ramificação de um outro comando condicional." +condicional encadeado,chained conditional,condicional encadeado,5,10,A conditional statement with a series of alternative branches.,Uma ramificação condicional com mais do que dois fluxos de execução possíveis. +contador,counter,contador,8,10,"A variable used to count something, usually initialized to zero and then incremented.","Uma variável usada para contar algo, em geral inicializada com zero e incrementada no corpo de um laço." +cópia profunda,deep copy,cópia profunda,15,8,"To copy the contents of an object as well as any embedded objects, and any objects embedded in them, and so on; implemented by the deepcopy function in the copy module.","Para copiar o conteúdo de um objeto, bem como quaisquer objetos incorporados, e dos objetos embutidos neles, e assim por diante; implementado pela função “deepcopy” do módulo “copy”." +cópia rasa,shallow copy,cópia rasa,15,7,"To copy the contents of an object, including any references to embedded objects; implemented by the copy function in the copy module.","Para copiar o conteúdo de um objeto, incluindo quaisquer referências a objetos embutidos; implementada pela função “copy” no módulo “copy”." +corpo,body,corpo,3,5,The sequence of statements inside a function definition.,A sequência de comandos dentro de uma definição de função. From da24130ed1d4ee91516b2e6016a76cad7fb3988d Mon Sep 17 00:00:00 2001 From: Luciano Ramalho Date: Mon, 7 Dec 2015 18:20:50 -0200 Subject: [PATCH 11/14] trabalhando na integracao dos glossarios separados --- book/C-glossary.rst | 696 --------------------------------------- book/glossary/10.txt | 42 --- book/glossary/11.txt | 60 ---- book/glossary/12.txt | 24 -- book/glossary/13.txt | 18 - book/glossary/14.txt | 42 --- book/glossary/15.txt | 27 -- book/glossary/16.txt | 21 -- book/glossary/17.txt | 27 -- book/glossary/18.txt | 39 --- book/glossary/19.txt | 15 - book/glossary/B.txt | 33 -- tools/join_glossary.py | 7 + tools/split_glossary.py | 33 +- tools/split_glossary0.py | 111 +++++++ 15 files changed, 141 insertions(+), 1054 deletions(-) create mode 100755 tools/split_glossary0.py diff --git a/book/C-glossary.rst b/book/C-glossary.rst index 626b135..5c03365 100644 --- a/book/C-glossary.rst +++ b/book/C-glossary.rst @@ -9,699 +9,3 @@ Note que alguns termos aparecem em mais de um capítulo, às vezes com definições diferentes, de acordo com o contexto. -acumulador (*accumulator*) :ref:`[10] ` - A variable used in a loop to add up or accumulate a result. - -algoritmo (*algorithm*) :ref:`[7] ` - A general process for solving a category of problems. - -*aliasing* (“apelidamento”) :ref:`[10] ` - A circumstance where two or more variables refer to the same object. - -analisar (*parse*) :ref:`[1] ` - To examine a program and analyze the syntactic structure. - -análise de algoritmos (*analysis of algorithms*) :ref:`[B] ` - A way to compare algorithms in terms of their run time and/or space requirements. - -argumento nomeado (*keyword argument*) :ref:`[4] ` - An argument that includes the name of the parameter as a “keyword”. - -argumento opcional (*optional argument*) :ref:`[8] ` - A function or method argument that is not required. - -argumento posicional (*positional argument*) :ref:`[17] ` - An argument that does not include a parameter name, so it is not a keyword argument. - -argumento (*argument*) :ref:`[3] ` - A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function. - -arquivo-texto (*text file*) :ref:`[14] ` - A sequence of characters stored in permanent storage like a hard drive. - -``assert``, instrução (``assert`` *statement*) :ref:`[16] ` - A statement that check a condition and raises an exception if it fails. - -assinatura (*interface*) :ref:`[4] ` - A description of how to use a function, including the name and descriptions of the arguments and return value. - -atribuição combinada (*augmented assignment*) :ref:`[10] ` - A statement that updates the value of a variable using an operator like ``+=``. - -atribuição (*assignment*) :ref:`[2] ` - A statement that assigns a value to a variable. - -atributo de classe (*class attribute*) :ref:`[18] ` - An attribute associated with a class object. Class attributes are defined inside a class definition but outside any method. - -atributo de instância (*instance attribute*) :ref:`[18] ` - An attribute associated with an instance of a class. - -atributo (*attribute*) :ref:`[15] ` - One of the named values associated with an object. - -atualização (*update*) :ref:`[7] ` - An assignment where the new value of the variable depends on the old. - -avaliar (*evaluate*) :ref:`[2] ` - To simplify an expression by performing the operations in order to yield a single value. - -banco de dados (*database*) :ref:`[14] ` - A file whose contents are organized like a dictionary with keys that correspond to values. - -*bug* :ref:`[1] ` - An error in a program. - -busca invertida (*reverse lookup*) :ref:`[11] ` - A dictionary operation that takes a value and finds one or more keys that map to it. - -busca (*lookup*) :ref:`[11] ` - A dictionary operation that takes a key and finds the corresponding value. - -busca (*search*) :ref:`[8] ` - A pattern of traversal that stops when it finds what it is looking for. - -busca (*search*) :ref:`[B] ` - The problem of locating an element of a collection (like a list or dictionary) or determining that it is not present. - -cabeçalho (*header*) :ref:`[3] ` - The first line of a function definition. - -caminho absoluto (*absolute path*) :ref:`[14] ` - A path that starts from the topmost directory in the file system. - -caminho relativo (*relative path*) :ref:`[14] ` - A path that starts from the current directory. - -caminho (*path*) :ref:`[14] ` - A string that identifies a file. - -capturar (*catch*) :ref:`[14] ` - To prevent an exception from terminating a program using the try and except statements. - -cardinalidade (*multiplicity*) :ref:`[18] ` - A notation in a class diagram that shows, for a HAS-A relationship, how many references there are to instances of another class. - -caso base (*base case*) :ref:`[5] ` - A conditional branch in a recursive function that does not make a recursive call. - -caso especial (*special case*) :ref:`[9] ` - A test case that is atypical or non-obvious (and less likely to be handled correctly). - -chamada de função (*function call*) :ref:`[3] ` - A statement that runs a function. It consists of the function name followed by an argument list in parentheses. - -chave (*key*) :ref:`[11] ` - An object that appears in a dictionary as the first part of a key-value pair. - -classe base (*parent class*) :ref:`[18] ` - The class from which a child class inherits. - -classe derivada (*child class*) :ref:`[18] ` - A new class created by inheriting from an existing class; also called a “subclass”. - -classe (*class*) :ref:`[15] ` - A programmer-defined type. A class definition creates a new class object. - -codificar (*encode*) :ref:`[18] ` - To represent one set of values using another set of values by constructing a mapping between them. - -código morto (*dead code*) :ref:`[6] ` - Part of a program that can never run, often because it appears after a return statement. - -código provisório (*scaffolding*) :ref:`[6] ` - Code that is used during program development but is not part of the final version. - -código provisório (*slice*) :ref:`[8] ` - A part of a string specified by a range of indices. - -comentário (*comment*) :ref:`[2] ` - Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program. - -composição (*composition*) :ref:`[3] ` - Using an expression as part of a larger expression, or a statement as part of a larger statement. - -concatenar (*concatenate*) :ref:`[2] ` - To join two operands end-to-end. - -condição (*condition*) :ref:`[5] ` - The boolean expression in a conditional statement that determines which branch runs. - -condicional aninhado (*nested conditional*) :ref:`[5] ` - A conditional statement that appears in one of the branches of another conditional statement. - -condicional encadeado (*chained conditional*) :ref:`[5] ` - A conditional statement with a series of alternative branches. - -contador (*counter*) :ref:`[8] ` - A variable used to count something, usually initialized to zero and then incremented. - -cópia profunda (*deep copy*) :ref:`[15] ` - To copy the contents of an object as well as any embedded objects, and any objects embedded in them, and so on; implemented by the deepcopy function in the copy module. - -cópia rasa (*shallow copy*) :ref:`[15] ` - To copy the contents of an object, including any references to embedded objects; implemented by the copy function in the copy module. - -corpo (*body*) :ref:`[3] ` - The sequence of statements inside a function definition. - -declaração (*declaration*) :ref:`[11] ` - A statement like global that tells the interpreter something about a variable. - -decrementar (*decrement*) :ref:`[7] ` - An update that decreases the value of a variable. - -definição de função (*function definition*) :ref:`[3] ` - A statement that creates a new function, specifying its name, parameters, and the statements it contains. - -delimitador (*delimiter*) :ref:`[10] ` - A character or string used to indicate where a string should be split. - -dependência (*dependency*) :ref:`[18] ` - A relationship between two classes where instances of one class use instances of the other class, but do not store them as attributes. - -depuração com patinho de borracha (*rubber duck debugging*) :ref:`[13] ` - Debugging by explaining your problem to an inanimate object such as a rubber duck. Articulating the problem can help you solve it, even if the rubber duck doesn’t know Python. - -depuração (*debugging*) :ref:`[1] ` - The process of finding and correcting bugs. - -desempacotamento de tupla (*tuple assignment*) :ref:`[12] ` - An assignment with a sequence on the right side and a tuple of variables on the left. The right side is evaluated and then its elements are assigned to the variables on the left. - -desenvolvimento incremental (*incremental development*) :ref:`[6] ` - A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time. - -desenvolvimento planejado (*designed development*) :ref:`[16] ` - A development plan that involves high-level insight into the problem and more planning than incremental development or prototype development. - -despacho por tipo (*type-based dispatch*) :ref:`[17] ` - A programming pattern that checks the type of an operand and invokes different functions for different types. - -desvio (*branch*) :ref:`[5] ` - One of the alternative sequences of statements in a conditional statement. - -determinístico (*deterministic*) :ref:`[13] ` - Pertaining to a program that does the same thing each time it runs, given the same inputs. - -diagrama de chamadas (*call graph*) :ref:`[11] ` - A diagram that shows every frame created during the execution of a program, with an arrow from each caller to each callee. - -diagrama de classe (*class diagram*) :ref:`[18] ` - A diagram that shows the classes in a program and the relationships between them. - -diagrama de estado (*state diagram*) :ref:`[2] ` - A graphical representation of a set of variables and the values they refer to. - -diagrama de objetos (*object diagram*) :ref:`[15] ` - A diagram that shows objects, their attributes, and the values of the attributes. - -diagrama de pilha (*stack diagram*) :ref:`[3] ` - A graphical representation of a stack of functions, their variables, and the values they refer to. - -dicionário (*dictionary*) :ref:`[11] ` - A mapping from keys to their corresponding values. - -diretório (*directory*) :ref:`[14] ` - A named collection of files, also called a folder. - -divisão pelo piso (*floor division*) :ref:`[5] ` - An operator, denoted //, that divides two numbers and rounds down (toward zero) to an integer. - -*docstring* :ref:`[4] ` - A string that appears at the top of a function definition to document the function’s interface. - -elemento (*element*) :ref:`[10] ` - One of the values in a list (or other sequence), also called items. - -encapsulamento de dados (*data encapsulation*) :ref:`[18] ` - A program development plan that involves a prototype using global variables and a final version that makes the global variables into instance attributes. - -encapsulamento (*encapsulation*) :ref:`[4] ` - The process of transforming a sequence of statements into a function definition. - -equivalente (*equivalent*) :ref:`[10] ` - Having the same value. - -erro semântico (*semantic error*) :ref:`[2] ` - An error in a program that makes it do something other than what the programmer intended. - -erro sintático (*syntax error*) :ref:`[2] ` - An error in a program that makes it impossible to parse (and therefore impossible to interpret). - -errro estrutural (*shape error*) :ref:`[12] ` - An error caused because a value has the wrong shape; that is, the wrong type or size. - -estrutura de dados (*data structure*) :ref:`[12] ` - A collection of related values, often organized in lists, dictionaries, tuples, etc. - -exceção (*exception*) :ref:`[2] ` - An error that is detected while the program is running. - -executar (*execute*) :ref:`[2] ` - To run a statement and do what it says. - -explodir (*scatter*) :ref:`[12] ` - The operation of treating a sequence as a list of arguments. - -expressão booleana (*boolean expression*) :ref:`[5] ` - An expression whose value is either True or False. - -expressão condicional (*conditional expression*) :ref:`[19] ` - An expression that has one of two values, depending on a condition. - -expressão geradora (*generator expression*) :ref:`[19] ` - An expression with a for loop in parentheses that yields a generator object. - -expressão (*expression*) :ref:`[2] ` - A combination of variables, operators, and values that represents a single result. - -fachada (*veneer*) :ref:`[18] ` - A method or function that provides a different interface to another function without doing much computation. - -*factory* (fábrica) :ref:`[19] ` - A function, usually passed as a parameter, used to create objects. - -filtro (*filter*) :ref:`[10] ` - A processing pattern that traverses a list and selects the elements that satisfy some criterion. - -*flag* (“indicador”) :ref:`[11] ` - A boolean variable used to indicate whether a condition is true. - -fluxo de execução (*flow of execution*) :ref:`[3] ` - The order statements run in. - -*frame* () :ref:`[3] ` - A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function. - -função de hash (*hash function*) :ref:`[11] ` - A function used by a hashtable to compute the location for a key. - -função produtiva (*fruitful function*) :ref:`[3] ` - A function that returns a value. - -função pura (*pure function*) :ref:`[16] ` - A function that does not modify any of the objects it receives as arguments. Most pure functions are fruitful. - -função (*function*) :ref:`[3] ` - A named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not produce a result. - -generalização (*generalization*) :ref:`[4] ` - The process of replacing something unnecessarily specific (like a number) with something appropriately general (like a variable or parameter). - -``global``, declaração (``global`` *statement*) :ref:`[11] ` - A statement that declares a variable name global. - -guarda (*guardian*) :ref:`[6] ` - A programming pattern that uses a conditional statement to check for and handle circumstances that might cause an error. - -*hashable* () :ref:`[11] ` - A type that has a hash function. Immutable types like integers, floats and strings are hashable; mutable types like lists and dictionaries are not. - -herança (*inheritance*) :ref:`[18] ` - The ability to define a new class that is a modified version of a previously defined class. - -idêntico (*identical*) :ref:`[10] ` - Being the same object (which implies equivalence). - -implementação (*implementation*) :ref:`[11] ` - A way of performing a computation. - -``import``, instrução (``import`` *statement*) :ref:`[3] ` - A statement that reads a module file and creates a module object. - -imutável (*immutable*) :ref:`[8] ` - The property of a sequence whose items cannot be changed. - -incrementar (*increment*) :ref:`[7] ` - An update that increases the value of a variable (often by one). - -índice (*index*) :ref:`[8] ` - An integer value used to select an item in a sequence, such as a character in a string. In Python indices start from 0. - -inicialização (*initialization*) :ref:`[7] ` - An assignment that gives an initial value to a variable that will be updated. - -instanciar (*instantiate*) :ref:`[15] ` - To create a new object. - -instância (*instance*) :ref:`[15] ` - An object that belongs to a class. - -instrução composta (*compound statement*) :ref:`[5] ` - A statement that consists of a header and a body. The header ends with a colon (:). The body is indented relative to the header. - -instrução condicional (*conditional statement*) :ref:`[5] ` - A statement that controls the flow of execution depending on some condition. - -instrução (*statement*) :ref:`[2] ` - A section of code that represents a command or action. So far, the statements we have seen are assignments and print statements. - -inteiro (*integer*) :ref:`[1] ` - A type that represents whole numbers. - -interpretador (*interpreter*) :ref:`[1] ` - A program that reads another program and executes it - -invariante (*invariant*) :ref:`[16] ` - A condition that should always be true during the execution of a program. - -invocação (*invocation*) :ref:`[8] ` - A statement that calls a method. - -*item* (item) :ref:`[11] ` - In a dictionary, another name for a key-value pair. - -*item* (item) :ref:`[8] ` - One of the values in a sequence. - -iteração (*iteration*) :ref:`[7] ` - Repeated execution of a set of statements using either a recursive function call or a loop. - -iterador (*iterator*) :ref:`[12] ` - An object that can iterate through a sequence, but which does not provide list operators and methods. - -laço infinito (*infinite loop*) :ref:`[7] ` - A loop in which the terminating condition is never satisfied. - -laço (*loop*) :ref:`[4] ` - A part of a program that can run repeatedly. - -*linear* (linear) :ref:`[B] ` - An algorithm whose run time is proportional to problem size, at least for large problem sizes. - -linguagem de alto nível (*high-level language*) :ref:`[1] ` - A programming language like Python that is designed to be easy for humans to read and write. - -linguagem de baixo nível (*low-level language*) :ref:`[1] ` - A programming language that is designed to be easy for a computer to run; also called “machine language” or “assembly language”. - -linguagem formal (*formal language*) :ref:`[1] ` - Any one of the languages that people have designed for specific purposes, such as representing mathematical ideas or computer programs; all programming languages are formal languages. - -linguagem natural (*natural language*) :ref:`[1] ` - Any one of the languages that people speak that evolved naturally. - -linguagem orientada a objetos (*object-oriented language*) :ref:`[17] ` - A language that provides features, such as programmer-defined types and methods, that facilitate object-oriented programming. - -lista aninhada (*nested list*) :ref:`[10] ` - A list that is an element of another list. - -lista (*list*) :ref:`[10] ` - A sequence of values. - -listcomp (*list comprehension*) :ref:`[19] ` - An expression with a for loop in square brackets that yields a new list. - -mapeamento (*mapping*) :ref:`[11] ` - A relationship in which each element of one set corresponds to an element of another set. - -*map* (“mapear”, “de-para”) :ref:`[10] ` - A processing pattern that traverses a sequence and performs an operation on each element. - -máquina-modelo (*machine model*) :ref:`[B] ` - A simplified representation of a computer used to describe algorithms. - -*memo* (“lembrete”) :ref:`[11] ` - A computed value stored to avoid unnecessary future computation. - -método (*method*) :ref:`[17] ` - A function that is defined inside a class definition and is invoked on instances of that class. - -método (*method*) :ref:`[4] ` - A function that is associated with an object and called using dot notation. - -modificadora (*modifier*) :ref:`[16] ` - A function that changes one or more of the objects it receives as arguments. Most modifiers are void; that is, they return None. - -modo de script (*script mode*) :ref:`[2] ` - A way of using the Python interpreter to read code from a script and run it. - -modo interativo (*interactive mode*) :ref:`[2] ` - A way of using the Python interpreter by typing code at the prompt. - -módulo (*module*) :ref:`[3] ` - A file that contains a collection of related functions and other definitions. - -*multiset* (“multi-conjunto”) :ref:`[19] ` - A mathematical entity that represents a mapping between the elements of a set and the number of times they appear. - -``None`` :ref:`[3] ` - A special value returned by void functions. - -notação assintótica (*Big-Oh notation*) :ref:`[B] ` - Notation for representing an order of growth; for example, :math:`O(n)` represents the set of functions that grow linearly. - -notação de ponto (*dot notation*) :ref:`[3] ` - The syntax for calling a function in another module by specifying the module name followed by a dot (period) and the function name. - -objeto-arquivo (*file object*) :ref:`[9] ` - A value that represents an open file. - -objeto ``bytes`` (``bytes`` *object*) :ref:`[14] ` - An object similar to a string. - -objeto-classe (*class object*) :ref:`[15] ` - An object that contains information about a programmer-defined type. The class object can be used to create instances of the type. - -objeto embutido (*embedded object*) :ref:`[15] ` - An object that is stored as an attribute of another object. - -objeto-função (*function object*) :ref:`[3] ` - A value created by a function definition. The name of the function is a variable that refers to a function object. - -objeto-módulo (*module object*) :ref:`[3] ` - A value created by an import statement that provides access to the values defined in a module. - -objeto “pipe” (*pipe object*) :ref:`[14] ` - An object that represents a running program, allowing a Python program to run commands and read the results. - -objeto ``zip`` (``zip`` *object*) :ref:`[12] ` - The result of calling a built-in function zip; an object that iterates through a sequence of tuples. - -objeto (*object*) :ref:`[10] ` - Something a variable can refer to. An object has a type and a value. - -objeto (*object*) :ref:`[8] ` - Something a variable can refer to. For now, you can use “object” and “value” interchangeably. - -ocultação de informações (*information hiding*) :ref:`[17] ` - The principle that the interface provided by an object should not depend on its implementation, in particular the representation of its attributes. - -operador de formatação (*format operator*) :ref:`[14] ` - An operator, %, that takes a format string and a tuple and generates a string that includes the elements of the tuple formatted as specified by the format string. - -operador de módulo (*modulus operator*) :ref:`[5] ` - An operator, denoted with a percent sign (%), that works on integers and returns the remainder when one number is divided by another. - -operador lógico (*logical operator*) :ref:`[5] ` - One of the operators that combines boolean expressions: and, or, and not. - -operador relacional (*relational operator*) :ref:`[5] ` - One of the operators that compares its operands: ==, !=, >, <, >=, and <=. - -operador (*operator*) :ref:`[1] ` - A special symbol that represents a simple computation like addition, multiplication, or string concatenation. - -operando (*operand*) :ref:`[2] ` - One of the values on which an operator operates. - -ordem das operações (*order of operations*) :ref:`[2] ` - Rules governing the order in which expressions involving multiple operators and operands are evaluated. - -ordem de crescimento (*order of growth*) :ref:`[B] ` - A set of functions that all grow in a way considered equivalent for purposes of analysis of algorithms. For example, all functions that grow linearly belong to the same order of growth. - -palavra-chave (*keyword*) :ref:`[2] ` - A reserved word that is used to parse a program; you cannot use keywords like if, def, and while as variable names. - -parâmetro (*parameter*) :ref:`[3] ` - A name used inside a function to refer to the value passed as an argument. - -par chave-valor (*key-value pair*) :ref:`[11] ` - The representation of the mapping from a key to a value. - -percorrer (*traverse*) :ref:`[8] ` - To iterate through the items in a sequence, performing a similar operation on each. - -persistente (*persistent*) :ref:`[14] ` - Pertaining to a program that runs indefinitely and keeps at least some of its data in permanent storage. - -pior caso (*worst case*) :ref:`[B] ` - The input that makes a given algorithm run slowest (or require the most space. - -plano de desenvolvimento (*development plan*) :ref:`[4] ` - A process for writing programs. - -polimórfico (*polymorphic*) :ref:`[17] ` - Pertaining to a function that can work with more than one type. - -ponto de cruzamento (*crossover point*) :ref:`[B] ` - The problem size where two algorithms require the same run time or space. - -ponto-flutuante (*floating-point*) :ref:`[1] ` - A type that represents numbers with fractional parts. - -portabilidade (*portability*) :ref:`[1] ` - A property of a program that can run on more than one kind of computer. - -pós-condição (*postcondition*) :ref:`[4] ` - A requirement that should be satisfied by the function before it ends. - -pré-condição (*precondition*) :ref:`[4] ` - A requirement that should be satisfied by the caller before a function starts. - -``print``, instrução (``print`` *statement*) :ref:`[1] ` - An instruction that causes the Python interpreter to display a value on the screen. - -procedimento (*void function*) :ref:`[3] ` - A function that always returns None. - -programação funcional (*program*) :ref:`[1] ` - A set of instructions that specifies a computation. - -programação funcional (*functional programming style*) :ref:`[16] ` - A style of program design in which the majority of functions are pure. - -programação orientada a objetos (*object-oriented programming*) :ref:`[17] ` - A style of programming in which data and the operations that manipulate it are organized into classes and methods. - -*prompt* (“sinal de pronto”) :ref:`[1] ` - Characters displayed by the interpreter to indicate that it is ready to take input from the user. - -prototipar e ajustar (*prototype and patch*) :ref:`[16] ` - A development plan that involves writing a rough draft of a program, testing, and correcting errors as they are found. - -pseudo-aleatório (*pseudorandom*) :ref:`[13] ` - Pertaining to a sequence of numbers that appears to be random, but is generated by a deterministic program. - -quadrático (*quadratic*) :ref:`[B] ` - An algorithm whose run time is proportional to :math:`n^2`, where :math:`n` is a measure of problem size. - -``raise``, instrução (``raise`` *statement*) :ref:`[11] ` - A statement that (deliberately) raises an exception. - -reatribuição (*reassignment*) :ref:`[7] ` - Assigning a new value to a variable that already exists. - -recursão infinita (*infinite recursion*) :ref:`[5] ` - A recursion that doesn’t have a base case, or never reaches it. Eventually, an infinite recursion causes a runtime error. - -recursão (*recursion*) :ref:`[5] ` - The process of calling the function that is currently executing. - -redução a um problema resolvido (*reduction to a previously solved problem*) :ref:`[9] ` - A way of solving a problem by expressing it as an instance of a previously solved problem. - -reduzir (*reduce*) :ref:`[10] ` - A processing pattern that traverses a sequence and accumulates the elements into a single result. - -refatoração (*refactoring*) :ref:`[4] ` - The process of modifying a working program to improve function interfaces and other qualities of the code. - -referência (*reference*) :ref:`[10] ` - The association between a variable and its value. - -relação É-UM (*IS-A relationship*) :ref:`[18] ` - A relationship between a child class and its parent class. - -relação TEM-UM (*HAS-A relationship*) :ref:`[18] ` - A relationship between two classes where instances of one class contain references to instances of the other. - -``return``, instrução (``return`` *statement*) :ref:`[5] ` - A statement that causes a function to end immediately and return to the caller. - -reunir (*gather*) :ref:`[12] ` - The operation of assembling a variable-length argument tuple. - -*script* :ref:`[2] ` - A program stored in a file. - -semântica (*semantics*) :ref:`[2] ` - The meaning of a program. - -sequência de formatação (*format sequence*) :ref:`[14] ` - A sequence of characters in a format string, like %d, that specifies how a value should be formatted. - -sequência de formatação (*sequence*) :ref:`[8] ` - An ordered collection of values where each value is identified by an integer index. - -*shell* :ref:`[14] ` - A program that allows users to type commands and then executes them by starting other programs. - -*singleton* :ref:`[11] ` - A list (or other sequence) with a single element. - -sintaxe (*syntax*) :ref:`[1] ` - The rules that govern the structure of a program. - -sobrecarga de operadores (*operator overloading*) :ref:`[17] ` - Changing the behavior of an operator like + so it works with a programmer-defined type. - -sobrepor (*override*) :ref:`[13] ` - To replace a default value with an argument. - -solução de problemas (*problem solving*) :ref:`[1] ` - The process of formulating a problem, finding a solution, and expressing it. - -string de formatação (*format string*) :ref:`[14] ` - A string, used with the format operator, that contains format sequences. - -string vazia (*empty string*) :ref:`[8] ` - A string with no characters and length 0, represented by two quotation marks. - -*string* (“cadeia de caracteres”) :ref:`[1] ` - A type that represents sequences of characters. - -sujeito (*subject*) :ref:`[17] ` - The object a method is invoked on. - -tabela de hash (*hashtable*) :ref:`[11] ` - The algorithm used to implement Python dictionaries. - -tabela de hash (*hashtable*) :ref:`[B] ` - A data structure that represents a collection of key-value pairs and performs search in constant time. - -termo dominante (*leading term*) :ref:`[B] ` - In a polynomial, the term with the highest exponent. - -teste de desempenho (*benchmarking*) :ref:`[13] ` - The process of choosing between data structures by implementing alternatives and testing them on a sample of the possible inputs. - -tipo (*type*) :ref:`[1] ` - A category of values. The types we have seen so far are integers (type int), floating-point numbers (type float), and strings (type str). - -*token* (“símbolo”) :ref:`[1] ` - One of the basic elements of the syntactic structure of a program, analogous to a word in a natural language. - -*traceback* () :ref:`[3] ` - A list of the functions that are executing, printed when an exception occurs. - -tupla (*tuple*) :ref:`[12] ` - An immutable sequence of elements. - -valor default (*default value*) :ref:`[13] ` - The value given to an optional parameter if no argument is provided. - -valor devolvido (*return value*) :ref:`[3] ` - The result of a function. If a function call is used as an expression, the return value is the value of the expression. - -valor (*value*) :ref:`[1] ` - One of the basic units of data, like a number or string, that a program manipulates. - -valor (*value*) :ref:`[11] ` - An object that appears in a dictionary as the second part of a key-value pair. This is more specific than our previous use of the word “value”. - -variável global (*global variable*) :ref:`[11] ` - A variable defined outside a function. Global variables can be accessed from any function. - -variável local (*local variable*) :ref:`[3] ` - A variable defined inside a function. A local variable can only be used inside its function. - -variável temporária (*temporary variable*) :ref:`[6] ` - A variable used to store an intermediate value in a complex calculation. - -variável (*variable*) :ref:`[2] ` - A name that refers to a value. - diff --git a/book/glossary/10.txt b/book/glossary/10.txt index 3466f07..e69de29 100644 --- a/book/glossary/10.txt +++ b/book/glossary/10.txt @@ -1,42 +0,0 @@ -lista (*list*) - A sequence of values. - -elemento (*element*) - One of the values in a list (or other sequence), also called items. - -lista aninhada (*nested list*) - A list that is an element of another list. - -acumulador (*accumulator*) - A variable used in a loop to add up or accumulate a result. - -atribuição combinada (*augmented assignment*) - A statement that updates the value of a variable using an operator like ``+=``. - -reduzir (*reduce*) - A processing pattern that traverses a sequence and accumulates the elements into a single result. - -*map* (“mapear”, “de-para”) - A processing pattern that traverses a sequence and performs an operation on each element. - -filtro (*filter*) - A processing pattern that traverses a list and selects the elements that satisfy some criterion. - -objeto (*object*) - Something a variable can refer to. An object has a type and a value. - -equivalente (*equivalent*) - Having the same value. - -idêntico (*identical*) - Being the same object (which implies equivalence). - -referência (*reference*) - The association between a variable and its value. - -*aliasing* (“apelidamento”) - A circumstance where two or more variables refer to the same object. - -delimitador (*delimiter*) - A character or string used to indicate where a string should be split. - diff --git a/book/glossary/11.txt b/book/glossary/11.txt index a8bb4aa..e69de29 100644 --- a/book/glossary/11.txt +++ b/book/glossary/11.txt @@ -1,60 +0,0 @@ -mapeamento (*mapping*) - A relationship in which each element of one set corresponds to an element of another set. - -dicionário (*dictionary*) - A mapping from keys to their corresponding values. - -par chave-valor (*key-value pair*) - The representation of the mapping from a key to a value. - -*item* (item) - In a dictionary, another name for a key-value pair. - -chave (*key*) - An object that appears in a dictionary as the first part of a key-value pair. - -valor (*value*) - An object that appears in a dictionary as the second part of a key-value pair. This is more specific than our previous use of the word “value”. - -implementação (*implementation*) - A way of performing a computation. - -tabela de hash (*hashtable*) - The algorithm used to implement Python dictionaries. - -função de hash (*hash function*) - A function used by a hashtable to compute the location for a key. - -*hashable* () - A type that has a hash function. Immutable types like integers, floats and strings are hashable; mutable types like lists and dictionaries are not. - -busca (*lookup*) - A dictionary operation that takes a key and finds the corresponding value. - -busca invertida (*reverse lookup*) - A dictionary operation that takes a value and finds one or more keys that map to it. - -``raise``, instrução (``raise`` *statement*) - A statement that (deliberately) raises an exception. - -*singleton* - A list (or other sequence) with a single element. - -diagrama de chamadas (*call graph*) - A diagram that shows every frame created during the execution of a program, with an arrow from each caller to each callee. - -*memo* (“lembrete”) - A computed value stored to avoid unnecessary future computation. - -variável global (*global variable*) - A variable defined outside a function. Global variables can be accessed from any function. - -``global``, declaração (``global`` *statement*) - A statement that declares a variable name global. - -*flag* (“indicador”) - A boolean variable used to indicate whether a condition is true. - -declaração (*declaration*) - A statement like global that tells the interpreter something about a variable. - diff --git a/book/glossary/12.txt b/book/glossary/12.txt index b930883..e69de29 100644 --- a/book/glossary/12.txt +++ b/book/glossary/12.txt @@ -1,24 +0,0 @@ -tupla (*tuple*) - An immutable sequence of elements. - -desempacotamento de tupla (*tuple assignment*) - An assignment with a sequence on the right side and a tuple of variables on the left. The right side is evaluated and then its elements are assigned to the variables on the left. - -reunir (*gather*) - The operation of assembling a variable-length argument tuple. - -explodir (*scatter*) - The operation of treating a sequence as a list of arguments. - -objeto ``zip`` (``zip`` *object*) - The result of calling a built-in function zip; an object that iterates through a sequence of tuples. - -iterador (*iterator*) - An object that can iterate through a sequence, but which does not provide list operators and methods. - -estrutura de dados (*data structure*) - A collection of related values, often organized in lists, dictionaries, tuples, etc. - -errro estrutural (*shape error*) - An error caused because a value has the wrong shape; that is, the wrong type or size. - diff --git a/book/glossary/13.txt b/book/glossary/13.txt index 96263c5..e69de29 100644 --- a/book/glossary/13.txt +++ b/book/glossary/13.txt @@ -1,18 +0,0 @@ -determinístico (*deterministic*) - Pertaining to a program that does the same thing each time it runs, given the same inputs. - -pseudo-aleatório (*pseudorandom*) - Pertaining to a sequence of numbers that appears to be random, but is generated by a deterministic program. - -valor default (*default value*) - The value given to an optional parameter if no argument is provided. - -sobrepor (*override*) - To replace a default value with an argument. - -teste de desempenho (*benchmarking*) - The process of choosing between data structures by implementing alternatives and testing them on a sample of the possible inputs. - -depuração com patinho de borracha (*rubber duck debugging*) - Debugging by explaining your problem to an inanimate object such as a rubber duck. Articulating the problem can help you solve it, even if the rubber duck doesn’t know Python. - diff --git a/book/glossary/14.txt b/book/glossary/14.txt index 36ce9e8..e69de29 100644 --- a/book/glossary/14.txt +++ b/book/glossary/14.txt @@ -1,42 +0,0 @@ -persistente (*persistent*) - Pertaining to a program that runs indefinitely and keeps at least some of its data in permanent storage. - -operador de formatação (*format operator*) - An operator, %, that takes a format string and a tuple and generates a string that includes the elements of the tuple formatted as specified by the format string. - -string de formatação (*format string*) - A string, used with the format operator, that contains format sequences. - -sequência de formatação (*format sequence*) - A sequence of characters in a format string, like %d, that specifies how a value should be formatted. - -arquivo-texto (*text file*) - A sequence of characters stored in permanent storage like a hard drive. - -diretório (*directory*) - A named collection of files, also called a folder. - -caminho (*path*) - A string that identifies a file. - -caminho relativo (*relative path*) - A path that starts from the current directory. - -caminho absoluto (*absolute path*) - A path that starts from the topmost directory in the file system. - -capturar (*catch*) - To prevent an exception from terminating a program using the try and except statements. - -banco de dados (*database*) - A file whose contents are organized like a dictionary with keys that correspond to values. - -objeto ``bytes`` (``bytes`` *object*) - An object similar to a string. - -*shell* - A program that allows users to type commands and then executes them by starting other programs. - -objeto “pipe” (*pipe object*) - An object that represents a running program, allowing a Python program to run commands and read the results. - diff --git a/book/glossary/15.txt b/book/glossary/15.txt index cbb48b0..e69de29 100644 --- a/book/glossary/15.txt +++ b/book/glossary/15.txt @@ -1,27 +0,0 @@ -classe (*class*) - A programmer-defined type. A class definition creates a new class object. - -objeto-classe (*class object*) - An object that contains information about a programmer-defined type. The class object can be used to create instances of the type. - -instância (*instance*) - An object that belongs to a class. - -instanciar (*instantiate*) - To create a new object. - -atributo (*attribute*) - One of the named values associated with an object. - -objeto embutido (*embedded object*) - An object that is stored as an attribute of another object. - -cópia rasa (*shallow copy*) - To copy the contents of an object, including any references to embedded objects; implemented by the copy function in the copy module. - -cópia profunda (*deep copy*) - To copy the contents of an object as well as any embedded objects, and any objects embedded in them, and so on; implemented by the deepcopy function in the copy module. - -diagrama de objetos (*object diagram*) - A diagram that shows objects, their attributes, and the values of the attributes. - diff --git a/book/glossary/16.txt b/book/glossary/16.txt index be92caa..e69de29 100644 --- a/book/glossary/16.txt +++ b/book/glossary/16.txt @@ -1,21 +0,0 @@ -prototipar e ajustar (*prototype and patch*) - A development plan that involves writing a rough draft of a program, testing, and correcting errors as they are found. - -desenvolvimento planejado (*designed development*) - A development plan that involves high-level insight into the problem and more planning than incremental development or prototype development. - -função pura (*pure function*) - A function that does not modify any of the objects it receives as arguments. Most pure functions are fruitful. - -modificadora (*modifier*) - A function that changes one or more of the objects it receives as arguments. Most modifiers are void; that is, they return None. - -programação funcional (*functional programming style*) - A style of program design in which the majority of functions are pure. - -invariante (*invariant*) - A condition that should always be true during the execution of a program. - -``assert``, instrução (``assert`` *statement*) - A statement that check a condition and raises an exception if it fails. - diff --git a/book/glossary/17.txt b/book/glossary/17.txt index 4108dbf..e69de29 100644 --- a/book/glossary/17.txt +++ b/book/glossary/17.txt @@ -1,27 +0,0 @@ -linguagem orientada a objetos (*object-oriented language*) - A language that provides features, such as programmer-defined types and methods, that facilitate object-oriented programming. - -programação orientada a objetos (*object-oriented programming*) - A style of programming in which data and the operations that manipulate it are organized into classes and methods. - -método (*method*) - A function that is defined inside a class definition and is invoked on instances of that class. - -sujeito (*subject*) - The object a method is invoked on. - -argumento posicional (*positional argument*) - An argument that does not include a parameter name, so it is not a keyword argument. - -sobrecarga de operadores (*operator overloading*) - Changing the behavior of an operator like + so it works with a programmer-defined type. - -despacho por tipo (*type-based dispatch*) - A programming pattern that checks the type of an operand and invokes different functions for different types. - -polimórfico (*polymorphic*) - Pertaining to a function that can work with more than one type. - -ocultação de informações (*information hiding*) - The principle that the interface provided by an object should not depend on its implementation, in particular the representation of its attributes. - diff --git a/book/glossary/18.txt b/book/glossary/18.txt index 8dd4086..e69de29 100644 --- a/book/glossary/18.txt +++ b/book/glossary/18.txt @@ -1,39 +0,0 @@ -codificar (*encode*) - To represent one set of values using another set of values by constructing a mapping between them. - -atributo de classe (*class attribute*) - An attribute associated with a class object. Class attributes are defined inside a class definition but outside any method. - -atributo de instância (*instance attribute*) - An attribute associated with an instance of a class. - -fachada (*veneer*) - A method or function that provides a different interface to another function without doing much computation. - -herança (*inheritance*) - The ability to define a new class that is a modified version of a previously defined class. - -classe base (*parent class*) - The class from which a child class inherits. - -classe derivada (*child class*) - A new class created by inheriting from an existing class; also called a “subclass”. - -relação É-UM (*IS-A relationship*) - A relationship between a child class and its parent class. - -relação TEM-UM (*HAS-A relationship*) - A relationship between two classes where instances of one class contain references to instances of the other. - -dependência (*dependency*) - A relationship between two classes where instances of one class use instances of the other class, but do not store them as attributes. - -diagrama de classe (*class diagram*) - A diagram that shows the classes in a program and the relationships between them. - -cardinalidade (*multiplicity*) - A notation in a class diagram that shows, for a HAS-A relationship, how many references there are to instances of another class. - -encapsulamento de dados (*data encapsulation*) - A program development plan that involves a prototype using global variables and a final version that makes the global variables into instance attributes. - diff --git a/book/glossary/19.txt b/book/glossary/19.txt index 3d271a4..e69de29 100644 --- a/book/glossary/19.txt +++ b/book/glossary/19.txt @@ -1,15 +0,0 @@ -expressão condicional (*conditional expression*) - An expression that has one of two values, depending on a condition. - -listcomp (*list comprehension*) - An expression with a for loop in square brackets that yields a new list. - -expressão geradora (*generator expression*) - An expression with a for loop in parentheses that yields a generator object. - -*multiset* (“multi-conjunto”) - A mathematical entity that represents a mapping between the elements of a set and the number of times they appear. - -*factory* (fábrica) - A function, usually passed as a parameter, used to create objects. - diff --git a/book/glossary/B.txt b/book/glossary/B.txt index c4fd032..e69de29 100644 --- a/book/glossary/B.txt +++ b/book/glossary/B.txt @@ -1,33 +0,0 @@ -análise de algoritmos (*analysis of algorithms*) - A way to compare algorithms in terms of their run time and/or space requirements. - -máquina-modelo (*machine model*) - A simplified representation of a computer used to describe algorithms. - -pior caso (*worst case*) - The input that makes a given algorithm run slowest (or require the most space. - -termo dominante (*leading term*) - In a polynomial, the term with the highest exponent. - -ponto de cruzamento (*crossover point*) - The problem size where two algorithms require the same run time or space. - -ordem de crescimento (*order of growth*) - A set of functions that all grow in a way considered equivalent for purposes of analysis of algorithms. For example, all functions that grow linearly belong to the same order of growth. - -notação assintótica (*Big-Oh notation*) - Notation for representing an order of growth; for example, :math:`O(n)` represents the set of functions that grow linearly. - -*linear* (linear) - An algorithm whose run time is proportional to problem size, at least for large problem sizes. - -quadrático (*quadratic*) - An algorithm whose run time is proportional to :math:`n^2`, where :math:`n` is a measure of problem size. - -busca (*search*) - The problem of locating an element of a collection (like a list or dictionary) or determining that it is not present. - -tabela de hash (*hashtable*) - A data structure that represents a collection of key-value pairs and performs search in constant time. - diff --git a/tools/join_glossary.py b/tools/join_glossary.py index d927b32..7ae432a 100644 --- a/tools/join_glossary.py +++ b/tools/join_glossary.py @@ -1,3 +1,10 @@ +#!/usr/bin/env python3 + +""" +Extract glossary entries from chapters 1-19 and appendix B and create +a consolidated glossary text file delimited by '|' (pipe characters). +""" + import glob import re import os diff --git a/tools/split_glossary.py b/tools/split_glossary.py index 734d0c9..cbceb33 100755 --- a/tools/split_glossary.py +++ b/tools/split_glossary.py @@ -1,5 +1,10 @@ #!/usr/bin/env python3 +""" +Generate consolidated RST glossary file and chapter include files from +the CSV glossary files. +""" + import glob import os import csv @@ -11,7 +16,7 @@ from join_glossary import expected_entries RST_PATH = '../book/' -GLOSSARY_DATA_PATH = './glossary.csv' +GLOSSARY_DATA_PATH = '../data' FIELDS = 'term us_term br_term chapter order us_definition br_definition'.split() GLOSSARY_HEAD = '''\ @@ -34,6 +39,7 @@ def asciize(txt): return ''.join(c for c in unicodedata.normalize('NFD', txt) if c in string.ascii_lowercase) + def master_order(entry): return asciize(entry.term.casefold()) + '|' + entry.chapter @@ -41,15 +47,19 @@ def master_order(entry): def read_glossary(): master_glossary = [] glossaries = collections.defaultdict(list) - with open(GLOSSARY_DATA_PATH) as csvfile: - reader = csv.DictReader(csvfile, FIELDS) - next(reader) # skip header line - for row in reader: - row['order'] = int(row['order']) - entry = GlossaryEntry(**row) - #print(entry) - glossaries[row['chapter']].append(entry) - master_glossary.append(entry) + paths = glob.glob(os.path.join(GLOSSARY_DATA_PATH, '*.csv')) + + for nome_arq in paths: + with open(nome_arq) as csvfile: + reader = csv.DictReader(csvfile, FIELDS) + next(reader) # skip header line + for row in reader: + row['order'] = int(row['order']) + import pdb; pdb.set_trace() + entry = GlossaryEntry(**row) + #print(entry) + glossaries[row['chapter']].append(entry) + master_glossary.append(entry) return master_glossary, glossaries @@ -69,6 +79,7 @@ def formatted_head(entry): head = '{} ({})'.format(us_term, entry.br_term) return head + def main(): master_glossary, chapter_glossaries = read_glossary() @@ -90,8 +101,10 @@ def main(): assert len(found) == 1, 'found: {}'.format(len(found)) out_path = os.path.join(RST_PATH, 'glossary', chapter_id+'.txt') glossary = chapter_glossaries[chapter_id] + print(out_path) with open(out_path, 'wt', encoding='utf-8') as out_file: for entry in sorted(glossary, key=operator.attrgetter('order')): + print('\t', entry) definition = entry.br_definition.strip() or entry.us_definition.strip() out_file.write('{}\n {}\n\n'.format(formatted_head(entry), definition)) diff --git a/tools/split_glossary0.py b/tools/split_glossary0.py new file mode 100755 index 0000000..8e0cc97 --- /dev/null +++ b/tools/split_glossary0.py @@ -0,0 +1,111 @@ +#!/usr/bin/env python3 + +""" +Generate consolidated RST glossary file and chapter include files from +consolidated CSV glossary file. + +THIS SCRIPT IS NO LONGER USED, SEE ``split_glossary.py`` +""" + +import glob +import os +import csv +import collections +import operator +import unicodedata +import string + +from join_glossary import expected_entries + +RST_PATH = '../book/' +GLOSSARY_DATA_PATH = './glossary.csv' +FIELDS = 'term us_term br_term chapter order us_definition br_definition'.split() + +GLOSSARY_HEAD = '''\ +Glossário Consolidado +===================== + +Este glossário é a união de todos os glossários dos capítulos. +Cada entrada está vinculada ao capítulo onde ela aparece, por exemplo: +*bug* :ref:`[1] `. + +Note que alguns termos aparecem em mais de um capítulo, às vezes +com definições diferentes, de acordo com o contexto. +\n\n''' + +GlossaryEntry = collections.namedtuple('GlossaryEntry', FIELDS) + + +def asciize(txt): + """Return only ASCII letters from text""" + return ''.join(c for c in unicodedata.normalize('NFD', txt) + if c in string.ascii_lowercase) + +def master_order(entry): + return asciize(entry.term.casefold()) + '|' + entry.chapter + + +def read_glossary(): + master_glossary = [] + glossaries = collections.defaultdict(list) + with open(GLOSSARY_DATA_PATH) as csvfile: + reader = csv.DictReader(csvfile, FIELDS) + next(reader) # skip header line + for row in reader: + row['order'] = int(row['order']) + entry = GlossaryEntry(**row) + #print(entry) + glossaries[row['chapter']].append(entry) + master_glossary.append(entry) + return master_glossary, glossaries + + +def formatted_head(entry): + us_term = entry.us_term + if '``' in us_term: + if us_term != '``None``': + symbol, noun = us_term.split() + us_term = '{} *{}*'.format(symbol, noun) + else: + us_term = '*{}*'.format(us_term) + if entry.br_term == '-': # no BR term + head = us_term + elif entry.term != entry.us_term: # adopted BR term + head = '{} ({})'.format(entry.term, us_term) + else: # adopted US term + head = '{} ({})'.format(us_term, entry.br_term) + return head + +def main(): + master_glossary, chapter_glossaries = read_glossary() + + link_fmt = ':ref:`[1] `' + + out_path = os.path.join(RST_PATH, 'C-glossary.rst') + with open(out_path, 'wt', encoding='utf-8') as out_file: + out_file.write(GLOSSARY_HEAD) + for entry in sorted(master_glossary, key=master_order): + short_chapter = entry.chapter.lstrip('0') + definition = entry.br_definition.strip() or entry.us_definition.strip() + out_file.write('{} :ref:`[{}] `\n {}\n\n' + .format(formatted_head(entry), short_chapter, + entry.chapter, definition)) + + for chapter_id, entries_qty in expected_entries: + chapter_glob = os.path.join(RST_PATH, chapter_id+'*.rst') + found = glob.glob(chapter_glob) + assert len(found) == 1, 'found: {}'.format(len(found)) + out_path = os.path.join(RST_PATH, 'glossary', chapter_id+'.txt') + glossary = chapter_glossaries[chapter_id] + with open(out_path, 'wt', encoding='utf-8') as out_file: + for entry in sorted(glossary, key=operator.attrgetter('order')): + definition = entry.br_definition.strip() or entry.us_definition.strip() + out_file.write('{}\n {}\n\n'.format(formatted_head(entry), definition)) + + print() + +if __name__ == '__main__': + main() + + + From 7c3d89a079dcbbe40e426dd28f8416340fa11736 Mon Sep 17 00:00:00 2001 From: marcelo-ramires Date: Fri, 11 Dec 2015 12:25:31 -0200 Subject: [PATCH 12/14] Adding translation of A.CSV done by Michel Rodrigues, reviewed. --- data/a.csv | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/data/a.csv b/data/a.csv index 6988c30..fa71303 100644 --- a/data/a.csv +++ b/data/a.csv @@ -1,20 +1,20 @@ ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION -acumulador,accumulator,acumulador,10,4,A variable used in a loop to add up or accumulate a result., -algoritmo,algorithm,algoritmo,7,8,A general process for solving a category of problems., -aliasing,aliasing,“apelidamento”,10,13,A circumstance where two or more variables refer to the same object., -analisar,parse,analisar,1,19,To examine a program and analyze the syntactic structure., -análise de algoritmos,analysis of algorithms,análise de algoritmos,B,1,A way to compare algorithms in terms of their run time and/or space requirements., -argumento,argument,argumento,3,8,A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function., -argumento nomeado,keyword argument,argumento nomeado,4,5,An argument that includes the name of the parameter as a “keyword”., -argumento opcional,optional argument,argumento opcional,8,12,A function or method argument that is not required., -argumento posicional,positional argument,argumento posicional,17,5,"An argument that does not include a parameter name, so it is not a keyword argument.", -arquivo-texto,text file,arquivo-texto,14,5,A sequence of characters stored in permanent storage like a hard drive., -"``assert``, instrução",``assert`` statement,instrução ``assert``,16,7,A statement that check a condition and raises an exception if it fails., -assinatura,interface,"assinatura, interface",4,6,"A description of how to use a function, including the name and descriptions of the arguments and return value.", -atribuição,assignment,atribuição,2,2,A statement that assigns a value to a variable., -atribuição combinada,augmented assignment,atribuição combinada,10,5,A statement that updates the value of a variable using an operator like ``+=``., -atributo,attribute,atributo,15,5,One of the named values associated with an object., -atributo de classe,class attribute,atributo de classe,18,2,An attribute associated with a class object. Class attributes are defined inside a class definition but outside any method., -atributo de instância,instance attribute,atributo de instância,18,3,An attribute associated with an instance of a class., -atualização,update,atualização,7,2,An assignment where the new value of the variable depends on the old., -avaliar,evaluate,avaliar,2,7,To simplify an expression by performing the operations in order to yield a single value., +acumulador,accumulator,acumulador,10,4,A variable used in a loop to add up or accumulate a result.,Uma variável usada em um laço para somar ou acumular um resultado. +algoritmo,algorithm,algoritmo,7,8,A general process for solving a category of problems.,Um processo geral para solucionar uma certa categoria de problema. +aliasing,aliasing,“apelidamento”,10,13,A circumstance where two or more variables refer to the same object.,Uma circunstância em que duas ou mais variáveis se referem ao mesmo objeto. +analisar,parse,analisar,1,19,To examine a program and analyze the syntactic structure.,Examinar um programa e analisar sua estrutura sintática. +análise de algoritmos,analysis of algorithms,análise de algoritmos,B,1,A way to compare algorithms in terms of their run time and/or space requirements.,Uma forma de comparar algoritmos em termos do seu tempo de execução e/ou requisitos de espaço. +argumento,argument,argumento,3,8,A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.,Valor fornecido a uma função quando ela é chamada. Este valor é atribuído ao parâmetro correspondente na função. +argumento nomeado,keyword argument,argumento nomeado,4,5,An argument that includes the name of the parameter as a “keyword”.,Um argumento que inclui o nome do parâmetro como uma palavra-chave. +argumento opcional,optional argument,argumento opcional,8,12,A function or method argument that is not required.,Argumento que não é obrigatório para uma função ou método. +argumento posicional,positional argument,argumento posicional,17,5,"An argument that does not include a parameter name, so it is not a keyword argument.","Argumento que não inclui o nome do parâmetro, então não é um argumento nomeado." +arquivo-texto,text file,arquivo-texto,14,5,A sequence of characters stored in permanent storage like a hard drive.,"Sequência de caracteres armazenado em armazenamento permanente, como um disco rígido." +"``assert``, instrução",``assert`` statement,instrução ``assert``,16,7,A statement that checks a condition and raises an exception if it fails.,Uma instrução que checa uma condição e levanta uma exceção se ela falhar. +assinatura,interface,"assinatura, interface",4,6,"A description of how to use a function, including the name and descriptions of the arguments and return value.","Uma descrição de como usar uma função, incluindo o nome da função, descrição dos argumentos e os valores que ela retorna." +atribuição,assignment,atribuição,2,2,A statement that assigns a value to a variable.,Uma instrução que atribui um valor a uma variável. +atribuição combinada,augmented assignment,atribuição combinada,10,5,A statement that updates the value of a variable using an operator like ``+=``.,"Uma instrução que atualiza o valor de uma variável usando um operador, como um “+=”." +atributo,attribute,atributo,15,5,One of the named values associated with an object.,Um dos valores nomeados associados a um objeto. +atributo de classe,class attribute,atributo de classe,18,2,An attribute associated with a class object. Class attributes are defined inside a class definition but outside any method.,"Um atributo associado com uma classe objeto. Atributos de classe são definidos dentro de uma definição de classe, mas fora de qualquer método." +atributo de instância,instance attribute,atributo de instância,18,3,An attribute associated with an instance of a class.,Um atributo associado com uma instância de uma classe. +atualização,update,atualização,7,2,An assignment where the new value of the variable depends on the old.,Uma atribuição em que o novo valor da variável depende da antiga. +avaliar,evaluate,avaliar,2,7,To simplify an expression by performing the operations in order to yield a single value.,"Simplificar uma expressão através da realização de operações, para obter um valor único." \ No newline at end of file From 508fe428e30b7e9aca7b30927aaa591c22ff4c48 Mon Sep 17 00:00:00 2001 From: Patrick Mazulo Date: Mon, 14 Dec 2015 23:34:23 -0300 Subject: [PATCH 13/14] Translated glossary E-F --- data/e-f.csv | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/data/e-f.csv b/data/e-f.csv index 20d46f5..04a7dac 100644 --- a/data/e-f.csv +++ b/data/e-f.csv @@ -1,26 +1,26 @@ ADOPTED TERM,EN-US TERM,PT-BR TERM,CHAPTER,ORDER,EN-US DEFINITION,PT-BR DEFINITION -elemento,element,elemento,10,2,"One of the values in a list (or other sequence), also called items.", -encapsulamento,encapsulation,encapsulamento,4,3,The process of transforming a sequence of statements into a function definition., -encapsulamento de dados,data encapsulation,encapsulamento de dados,18,13,A program development plan that involves a prototype using global variables and a final version that makes the global variables into instance attributes., -equivalente,equivalent,equivalente,10,10,Having the same value., -erro semântico,semantic error,erro semântico,2,19,An error in a program that makes it do something other than what the programmer intended., -erro sintático,syntax error,erro sintático,2,16,An error in a program that makes it impossible to parse (and therefore impossible to interpret)., -errro estrutural,shape error,errro estrutural,12,8,"An error caused because a value has the wrong shape; that is, the wrong type or size.", -estrutura de dados,data structure,estrutura de dados,12,7,"A collection of related values, often organized in lists, dictionaries, tuples, etc.", -exceção,exception,exceção,2,17,An error that is detected while the program is running., -executar,execute,executar,2,9,To run a statement and do what it says., -explodir,scatter,explodir,12,4,The operation of treating a sequence as a list of arguments., -expressão,expression,expressão,2,6,"A combination of variables, operators, and values that represents a single result.", -expressão booleana,boolean expression,expressão booleana,5,3,An expression whose value is either True or False., -expressão condicional,conditional expression,expressão condicional,19,1,"An expression that has one of two values, depending on a condition.", -expressão geradora,generator expression,expressão geradora,19,3,An expression with a for loop in parentheses that yields a generator object., -fachada,veneer,“verniz” ou fachada,18,4,A method or function that provides a different interface to another function without doing much computation., -factory,factory,fábrica,19,5,"A function, usually passed as a parameter, used to create objects.", -filtro,filter,filtro,10,8,A processing pattern that traverses a list and selects the elements that satisfy some criterion., -flag,flag,“indicador”,11,19,A boolean variable used to indicate whether a condition is true., -fluxo de execução,flow of execution,fluxo de execução,3,19,The order statements run in., -frame,frame,,3,21,A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function., -função,function,função,3,1,A named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not produce a result., -função de hash,hash function,função de espalhamento,11,9,A function used by a hashtable to compute the location for a key., -função produtiva,fruitful function,função produtiva,3,11,A function that returns a value., -função pura,pure function,função pura,16,3,A function that does not modify any of the objects it receives as arguments. Most pure functions are fruitful., +elemento,element,elemento,10,2,"One of the values in a list (or other sequence), also called items.",Um dos valores em uma lista (ou outra sequência). O operador colchetes seleciona elementos de uma lista. +encapsulamento,encapsulation,encapsulamento,4,3,The process of transforming a sequence of statements into a function definition.,O processo de transformar uma sequência de instruções em uma definição de função. +encapsulamento de dados,data encapsulation,encapsulamento de dados,18,13,A program development plan that involves a prototype using global variables and a final version that makes the global variables into instance attributes.,Plano de desenvolvimento de programa que envolve um protótipo usando variáveis globais e uma versão final que torna as variáveis globais em atributos de instância. +equivalente,equivalent,equivalente,10,10,Having the same value.,Tem o mesmo valor. +erro semântico,semantic error,erro semântico,2,19,An error in a program that makes it do something other than what the programmer intended.,Um erro no programa que faz que ele faça algo diferente do que o programador pretendia. +erro sintático,syntax error,erro sintático,2,16,An error in a program that makes it impossible to parse (and therefore impossible to interpret).,"Um erro em um programa que o torna impossível de analisar (e portanto, impossível de interpretar)." +errro estrutural,shape error,errro estrutural,12,8,"An error caused because a value has the wrong shape; that is, the wrong type or size.","Um erro causado porquê um valor tem um formato inadequado; isto é, o tipo ou tamanho errado." +estrutura de dados,data structure,estrutura de dados,12,7,"A collection of related values, often organized in lists, dictionaries, tuples, etc.","Uma coleção de valores relacionados, geralmente organizados em listas, dicionários, tuplas, etc." +exceção,exception,exceção,2,17,An error that is detected while the program is running.,Um erro que é detectado enquanto o programa está executando. +executar,execute,executar,2,9,To run a statement and do what it says.,Executar uma declaração e fazer o que ela pede. +explodir,scatter,explodir,12,4,The operation of treating a sequence as a list of arguments.,A operação de tratar uma sequência como uma lista de argumentos. +expressão,expression,expressão,2,6,"A combination of variables, operators, and values that represents a single result.",Uma combinação de operadores e operandos (variáveis e valores) que tem valor simples como resultado. +expressão booleana,boolean expression,expressão booleana,5,3,An expression whose value is either True or False.,Uma expressão que é ou verdadeira ou falsa. +expressão condicional,conditional expression,expressão condicional,19,1,"An expression that has one of two values, depending on a condition.","Uma expressão que tem um de dois valores, dependendo de uma condição." +expressão geradora,generator expression,expressão geradora,19,3,An expression with a for loop in parentheses that yields a generator object.,Uma expressão com um loop for em parênteses que produz um objeto gerador. +fachada,veneer,“verniz” ou fachada,18,4,A method or function that provides a different interface to another function without doing much computation.,Um método ou função que fornece uma interface diferente para outra função sem fazer muita cálculo. +factory,factory,fábrica,19,5,"A function, usually passed as a parameter, used to create objects.","Uma função, normalmente passada como um parâmetro, usada para criar objetos." +filtro,filter,filtro,10,8,A processing pattern that traverses a list and selects the elements that satisfy some criterion.,Um padrão de processamento que percorre uma lista e seleciona os elementos que satisfazem algum critério. +flag,flag,“indicador”,11,19,A boolean variable used to indicate whether a condition is true.,Uma váriável do tipo boolean usada para indicar se uma condição é verdadeira. +fluxo de execução,flow of execution,fluxo de execução,3,19,The order statements run in.,A ordem em que comandos são executados durante a execução de um programa. +frame,frame,,3,21,A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.,Uma caixa em um diagrama da pilha que representa uma chamada de função. Ela contém as variáveis locais e os parâmetros da função. +função,function,função,3,1,A named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not produce a result.,Uma sequên ia de comandos com um nome que executa operações úteis. Funções podem ou não ter parâmetros e podem ou não produzir um resultado. +função de hash,hash function,função de espalhamento,11,9,A function used by a hashtable to compute the location for a key.,Uma função de uma tabela de hash utilizada para calcular a localização de uma chave. +função produtiva,fruitful function,função produtiva,3,11,A function that returns a value.,Uma função que retorna um valor ao invés de None. +função pura,pure function,função pura,16,3,A function that does not modify any of the objects it receives as arguments. Most pure functions are fruitful.,Uma função que não produz efeitos colaterais. Funções puras apenas alteram os estado (variáveis) das funções que a chamam através de valores de retorno. From bee70251661845b5bbad49098b23343f112ba4d0 Mon Sep 17 00:00:00 2001 From: Patrick Mazulo Date: Tue, 15 Dec 2015 00:06:23 -0300 Subject: [PATCH 14/14] Correct some typos --- data/e-f.csv | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/e-f.csv b/data/e-f.csv index 04a7dac..6373367 100644 --- a/data/e-f.csv +++ b/data/e-f.csv @@ -3,14 +3,14 @@ elemento,element,elemento,10,2,"One of the values in a list (or other sequence), encapsulamento,encapsulation,encapsulamento,4,3,The process of transforming a sequence of statements into a function definition.,O processo de transformar uma sequência de instruções em uma definição de função. encapsulamento de dados,data encapsulation,encapsulamento de dados,18,13,A program development plan that involves a prototype using global variables and a final version that makes the global variables into instance attributes.,Plano de desenvolvimento de programa que envolve um protótipo usando variáveis globais e uma versão final que torna as variáveis globais em atributos de instância. equivalente,equivalent,equivalente,10,10,Having the same value.,Tem o mesmo valor. -erro semântico,semantic error,erro semântico,2,19,An error in a program that makes it do something other than what the programmer intended.,Um erro no programa que faz que ele faça algo diferente do que o programador pretendia. +erro semântico,semantic error,erro semântico,2,19,An error in a program that makes it do something other than what the programmer intended.,Um erro no programa que faz com que ele faça algo diferente do que o programador pretendia. erro sintático,syntax error,erro sintático,2,16,An error in a program that makes it impossible to parse (and therefore impossible to interpret).,"Um erro em um programa que o torna impossível de analisar (e portanto, impossível de interpretar)." -errro estrutural,shape error,errro estrutural,12,8,"An error caused because a value has the wrong shape; that is, the wrong type or size.","Um erro causado porquê um valor tem um formato inadequado; isto é, o tipo ou tamanho errado." +erro estrutural,shape error,erro estrutural,12,8,"An error caused because a value has the wrong shape; that is, the wrong type or size.","Um erro causado porquê um valor tem um formato inadequado; isto é, o tipo ou tamanho errado." estrutura de dados,data structure,estrutura de dados,12,7,"A collection of related values, often organized in lists, dictionaries, tuples, etc.","Uma coleção de valores relacionados, geralmente organizados em listas, dicionários, tuplas, etc." exceção,exception,exceção,2,17,An error that is detected while the program is running.,Um erro que é detectado enquanto o programa está executando. executar,execute,executar,2,9,To run a statement and do what it says.,Executar uma declaração e fazer o que ela pede. explodir,scatter,explodir,12,4,The operation of treating a sequence as a list of arguments.,A operação de tratar uma sequência como uma lista de argumentos. -expressão,expression,expressão,2,6,"A combination of variables, operators, and values that represents a single result.",Uma combinação de operadores e operandos (variáveis e valores) que tem valor simples como resultado. +expressão,expression,expressão,2,6,"A combination of variables, operators, and values that represents a single result.",Uma combinação de operadores e operandos (variáveis e valores) que têm valor simples como resultado. expressão booleana,boolean expression,expressão booleana,5,3,An expression whose value is either True or False.,Uma expressão que é ou verdadeira ou falsa. expressão condicional,conditional expression,expressão condicional,19,1,"An expression that has one of two values, depending on a condition.","Uma expressão que tem um de dois valores, dependendo de uma condição." expressão geradora,generator expression,expressão geradora,19,3,An expression with a for loop in parentheses that yields a generator object.,Uma expressão com um loop for em parênteses que produz um objeto gerador. @@ -20,7 +20,7 @@ filtro,filter,filtro,10,8,A processing pattern that traverses a list and selects flag,flag,“indicador”,11,19,A boolean variable used to indicate whether a condition is true.,Uma váriável do tipo boolean usada para indicar se uma condição é verdadeira. fluxo de execução,flow of execution,fluxo de execução,3,19,The order statements run in.,A ordem em que comandos são executados durante a execução de um programa. frame,frame,,3,21,A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.,Uma caixa em um diagrama da pilha que representa uma chamada de função. Ela contém as variáveis locais e os parâmetros da função. -função,function,função,3,1,A named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not produce a result.,Uma sequên ia de comandos com um nome que executa operações úteis. Funções podem ou não ter parâmetros e podem ou não produzir um resultado. +função,function,função,3,1,A named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not produce a result.,Uma sequência de comandos com um nome que executa operações úteis. Funções podem ou não ter parâmetros e podem ou não produzir um resultado. função de hash,hash function,função de espalhamento,11,9,A function used by a hashtable to compute the location for a key.,Uma função de uma tabela de hash utilizada para calcular a localização de uma chave. função produtiva,fruitful function,função produtiva,3,11,A function that returns a value.,Uma função que retorna um valor ao invés de None. função pura,pure function,função pura,16,3,A function that does not modify any of the objects it receives as arguments. Most pure functions are fruitful.,Uma função que não produz efeitos colaterais. Funções puras apenas alteram os estado (variáveis) das funções que a chamam através de valores de retorno.