<commit_before>from gpcharts import figure

#simple line graph, as described in the readme.
fig1 = figure()
fig1.plot([1,2,3,4,5],[8,7,6,5,4])

#another line graph, but with two data types. Also adding title
fig2 = figure(title='Two lines',xlabel='Days',ylabel='Count')
xVals = ['Mon','Tues','Wed','Thurs','Fri']
yVals = [[5,4],[8,7],[4,8],[10,10],[3,12]]
fig2.plot(xVals,yVals)

#a graph with dates and times. Title is assigned afterwards, and data is given headers
fig3 = figure()
fig3.title = 'Weather over Days'
fig3.ylabel = 'Temperature'

xVals = ['Dates','2016-03-20 00:00:00','2016-03-21 00:00:00','2016-03-25 00:00:00','2016-04-01 00:00:00']
yVals = [['Shakuras','Korhal','Aiur'],[10,30,40],[12,28,41],[15,34,38],[8,33,47]]
fig3.plot(xVals,yVals)

#a simple scatter plot
fig4 = figure('Strong Correlation')
fig4.scatter([1,2,3,4,5],[[1,5],[2,4],[3,3],[4,2],[5,1]])<commit_msg>Adding trendline to scatter example.<commit_after>from gpcharts import figure

#simple line graph, as described in the readme.
fig1 = figure()
fig1.plot([1,2,3,4,5],[8,7,6,5,4])

#another line graph, but with two data types. Also adding title
fig2 = figure(title='Two lines',xlabel='Days',ylabel='Count')
xVals = ['Mon','Tues','Wed','Thurs','Fri']
yVals = [[5,4],[8,7],[4,8],[10,10],[3,12]]
fig2.plot(xVals,yVals)

#a graph with dates and times. Title is assigned afterwards, and data is given headers
fig3 = figure()
fig3.title = 'Weather over Days'
fig3.ylabel = 'Temperature'

xVals = ['Dates','2016-03-20 00:00:00','2016-03-21 00:00:00','2016-03-25 00:00:00','2016-04-01 00:00:00']
yVals = [['Shakuras','Korhal','Aiur'],[10,30,40],[12,28,41],[15,34,38],[8,33,47]]
fig3.plot(xVals,yVals)

#a simple scatter plot. Putting in trend line, only supported for first y variable for now.
fig4 = figure('Strong Correlation')
fig4.scatter([1,2,3,4,5],[[1,5],[2,4],[3,3],[4,2],[5,1]],trendline=True)
{'fraction_non_alphanumeric': 0.22269579115610016, 'fraction_numerical': 0.13532232285562068, 'mean_word_length': 7.165217391304348, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3893542', 'n_tokens_mistral': 907, 'n_tokens_neox': 766, 'n_words': 163}