33b61acf8ad215baf4928b3c8c4a60f34a5b7a4e,ldscore/regressions.py,,kill_brackets,#Any#,33

Before Change


def kill_brackets(x):
	"""Get rid of annoying brackets in numpy arrayss"""
	x = x.replace("[[  ","")
	x = x.replace("  ]]","")
	x = x.replace("[[ ","")
	x = x.replace(" ]]","")
	x = x.replace("[[","")
	x = x.replace("]]","")
	x = x.replace("[  ","")
	x = x.replace("  ]","")
	x = x.replace("[ ","")
	x = x.replace(" ]","")
	x = x.replace("[","")
	x = x.replace("]","")
	return(x)

After Change



def kill_brackets(x):
	"""Get rid of brackets and trailing whitespace in numpy arrays."""
	return x.replace("[","").replace("]", "").strip()
	
def append_intercept(x):
	"""
	Appends an intercept term to the design matrix for a linear regression.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: bulik/ldsc
Commit Name: 33b61acf8ad215baf4928b3c8c4a60f34a5b7a4e
Time: 2015-01-20
Author: bbuliksullivan@gmail.com
File Name: ldscore/regressions.py
Class Name:
Method Name: kill_brackets


Project Name: nltk/nltk
Commit Name: 6423b7af778be851da8e27ff0539d1fd6169007c
Time: 2019-05-06
Author: alvations@gmail.com
File Name: nltk/corpus/reader/wordnet.py
Class Name: WordNetCorpusReader
Method Name: custom_lemmas


Project Name: hellohaptik/chatbot_ner
Commit Name: e870ef14c590502fb0dc5ff3199e2602a87ec008
Time: 2019-03-18
Author: jain.chirag925@gmail.com
File Name: ner_v1/detectors/numeral/budget/budget_detection.py
Class Name: BudgetDetector
Method Name: _detect_max_budget


Project Name: hellohaptik/chatbot_ner
Commit Name: 5d521b9907ecc35a39c8b636bd3649161ae0f9d9
Time: 2018-07-23
Author: jain.chirag925@gmail.com
File Name: datastore/elastic_search/query.py
Class Name:
Method Name: _parse_es_search_results