c90c7f8e22c710729193604b55b144e2c04025c5,CountMillionCharacter.py,,,#,3

Before Change


Before, and greet his grace: my lord, we come.
Exeunt"""
count = {}
for character in info.upper():
    count[character] = count.get(character, 0) + 1

value = pprint.pformat(count)
print(value)

After Change


Before, and greet his grace: my lord, we come.
Exeunt"""

wordlist = wordstring.split()

wordfreq = []
for w in wordlist:
    wordfreq.append(wordlist.count(w))

print("String\n" + wordstring +"\n")
print("List\n" + str(wordlist) + "\n")
print("Frequencies\n" + str(wordfreq) + "\n")
print("Pairs\n" + str(list(zip(wordlist, wordfreq))))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: geekcomputers/Python
Commit Name: c90c7f8e22c710729193604b55b144e2c04025c5
Time: 2017-01-18
Author: Pren0724@stthomas.edu
File Name: CountMillionCharacter.py
Class Name:
Method Name:


Project Name: stanfordnlp/stanza
Commit Name: f25d9afd2572b98c56c3f597ad8da2648cd7b663
Time: 2020-12-01
Author: horatio@gmail.com
File Name: stanza/utils/training/common.py
Class Name:
Method Name: main


Project Name: home-assistant/home-assistant
Commit Name: db23320659a711637b5164fbe6ae6db15cc48e48
Time: 2016-07-06
Author: dale3h@gmail.com
File Name: homeassistant/components/sensor/apcupsd.py
Class Name:
Method Name: setup_platform