text
stringlengths
0
93.6k
" button.\n"
" 5. Under the 'Edges' group, untick the 'Curved' tick box"
" and change the 'Color' of the edges from 'mixed' to"
" 'original'\n"
" 6. Choose a 'black' background if you used the"
" '--optimized-for-black-bg (-o)' option, and press a final"
" refresh.\n"
" 7. Once you are satisfied with the result, press the"
" 'Export SVG/PDF/PNG' button to save the layout.\n"),
gexf_filename)
# <FILESEP>
#
#
# Copyright 2016 rikonaka
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
#
#
#
#!/usr/bin/env python
# coding=utf-8
from numpy import *
import time
import sqlite3
import threading
import os
import sys
## step 1: load data
def delete_file(path, word):
for filename in os.listdir(path):
fp = os.path.join(path, filename)
if os.path.isfile(fp) and word in filename:
os.remove(fp)
def average_distribution(n):
h = 1
average_open = open('db_t_%d' % n, 'r')
for average_lines in average_open.readlines():
insert_open = open('db_t_%d' % h, 'a')
insert_open.writelines(average_lines)
insert_open.close()
h += 1
print 'Average distribution over'
path = os.getcwd()
delete_file(path, 'db_t_%d' % n)
def count_the_file(filename):
count_file = 1
file_count = open('%s' % filename, 'r')
for line in file_count.readlines():
count_file += 1
return count_file
def split_the_file_part(filename, count_file_split):
o = 1
p = 1
#There have a variable named core
core = 16 #I sugest you take notice of here
n = core + 1
count_for_0 = 0
count_for_1 = count_file_split / n
count_for_ma = {'count_for_0': '0'} #init the dict for first use
ctl_ma = {'ctl_0': '1'}
count_for_ma['count_for_1'] = int(count_for_1)
for n_n in range(2, n, 1):