rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
theme_config = self.read(os.path.join(defs.HOME_THEME_DIR, directory, self.AWN_CONFIG))
theme_config = self.read(os.path.join(directory, self.AWN_CONFIG))
def apply_theme(self, widget, data=None): if self.currItr is not None: self.model.foreach(self.update_radio) index = self.model.get_path(self.currItr)[0] name = self.theme_list[index]['name'] version = self.theme_list[index]['version'] directory = self.theme_list[index]['dir']
fbbad571f1ee3b50f3b4afce97428d348e7cce32 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/fbbad571f1ee3b50f3b4afce97428d348e7cce32/awnTheme.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 7997, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 309, 365, 18, 17016, 28984, 353, 486, 599, 30, 225, 365, 18, 2284, 18, 25055, 12, 2890, 18, 2725, 67, 17006, 13, 225, 770...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 7997, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 309, 365, 18, 17016, 28984, 353, 486, 599, 30, 225, 365, 18, 2284, 18, 25055, 12, 2890, 18, 2725, 67, 17006, 13, 225, 770...
('padding',2)
('padding',2),
def init_local_context(self): print "gt826" self.fields=[ ('seg_num1',2), #header ('date_value_hdr',6),('partner_bank_clearing',12),('zero5',5),('creation_date',6), ('comp_bank_clearing',7), ('uid',5), ('sequence',5), ('genre_trans',3), ('type_paiement',1),('flag',1), #seg1 ('comp_dta',5),('invoice_number',11),('comp_bank_number',24),('date_value',6), ('invoice_currency',3),('amount_to_pay',12),('padding',14), #seg2 ('seg_num2',2),('comp_name',20),('comp_street',20),('comp_zip',10), ('comp_city',10),('comp_country',20),('padding',46), #seg3 ('seg_num3',2),('partner_bvr',12),#numero d'adherent bvr ('padding',80),('invoice_reference',27),#communication structuree ('padding',2)#cle de controle ('padding',5) ]
292310e4d6f5e2bcb7e9718daa4bc61d64960bcd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/292310e4d6f5e2bcb7e9718daa4bc61d64960bcd/dta_wizard.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 3729, 67, 2472, 12, 2890, 4672, 1172, 315, 4521, 28, 5558, 6, 365, 18, 2821, 22850, 7707, 5680, 67, 2107, 21, 2187, 22, 3631, 468, 3374, 7707, 712, 67, 1132, 67, 16587, 2187,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 3729, 67, 2472, 12, 2890, 4672, 1172, 315, 4521, 28, 5558, 6, 365, 18, 2821, 22850, 7707, 5680, 67, 2107, 21, 2187, 22, 3631, 468, 3374, 7707, 712, 67, 1132, 67, 16587, 2187,...
workflow_run_wall_time +=task.duration
workflow_cpu_time +=task.duration
def populate_workflow_details(workflow): """ populates the workflow statistics information Param: the workflow reference """ workflow_stat = WorkflowStatistics() transformation_stats_dict ={} job_stats_dict ={} total_succeeded_tasks =0 total_failed_tasks =0 failed_jobs =0 succeeded_jobs =0 unknown_jobs =0 unsubmitted_jobs =0 workflow_run_time = None workflow_run_wall_time =0 if not workflow.is_running : workflow_run_time = convert_to_seconds(workflow.total_time) for job in workflow.jobs: for task in job.tasks: if (task.task_submit_seq > 0): workflow_run_wall_time +=task.duration if (task.exitcode == 0): total_succeeded_tasks +=1 else : total_failed_tasks +=1 # populating statistics details dagman_start_time = workflow.start_events[0].timestamp # for root jobs,dagman_start_time is required, assumption start_event[0] is not none for job in workflow.jobs: if job_stats_dict.has_key(job.name): job_stat = job_stats_dict[job.name] else: job_stat = JobStatistics() job_stats_dict[job.name] = job_stat populate_job_details(job ,job_stat , dagman_start_time) tasks = job.tasks for task in tasks: if (task.task_submit_seq > 0): if transformation_stats_dict.has_key(task.transformation): trans_stats = transformation_stats_dict[task.transformation] else: trans_stats = TransformationStatistics() transformation_stats_dict[task.transformation] = trans_stats populate_transformation_statistics(task ,trans_stats) #Calculating total jobs total_jobs = len(job_stats_dict) #Calculating failed and successful jobs for job_stat in job_stats_dict.values(): if job_stat.is_success: succeeded_jobs +=1 elif job_stat.is_failure: failed_jobs +=1 elif job_stat.state is none: unsubmitted_jobs +=1 else: unknown_jobs +=1 # Assigning value to the workflow object workflow_stat.submit_dir = workflow.submit_dir if workflow_run_time is not None: workflow_stat.workflow_run_time =workflow_run_time workflow_stat.workflow_run_wall_time = workflow_run_wall_time workflow_stat.total_jobs = total_jobs workflow_stat.succeeded_jobs = succeeded_jobs workflow_stat.failed_jobs = failed_jobs workflow_stat.unsubmitted_jobs = unsubmitted_jobs workflow_stat.unknown_jobs = unknown_jobs workflow_stat.total_succeeded_tasks = total_succeeded_tasks workflow_stat.total_failed_tasks =total_failed_tasks workflow_stat.job_statistics_dict = job_stats_dict workflow_stat.transformation_statistics_dict = transformation_stats_dict return workflow_stat
7519160b55309ca4f6d59ee7113b6a0a4e4860be /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9868/7519160b55309ca4f6d59ee7113b6a0a4e4860be/pegasus-statistics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 67, 13815, 67, 6395, 12, 13815, 4672, 3536, 22065, 326, 6095, 7691, 1779, 3014, 30, 326, 6095, 2114, 3536, 6095, 67, 5642, 273, 11363, 8569, 1435, 8620, 67, 5296, 67, 1576, 273, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 67, 13815, 67, 6395, 12, 13815, 4672, 3536, 22065, 326, 6095, 7691, 1779, 3014, 30, 326, 6095, 2114, 3536, 6095, 67, 5642, 273, 11363, 8569, 1435, 8620, 67, 5296, 67, 1576, 273, 29...
if filename not in self.__input_file:
if filename not in self.__input_files:
def add_file_opt(self, opt, filename): """ Add a command line option to the executable. The order that the arguments will be appended to the command line is not guaranteed, but they will always be added before any command line arguments. The name of the option is prefixed with double hyphen and the program is expected to parse it with getopt_long(). @param opt: command line option to add. @param value: value to pass to the option (None for no argument). """ self.__options[opt] = filename if filename not in self.__input_file: self.__input_files.append(filename)
63b0c4fc6d725e3598bdace13a5766eee6a7189b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/63b0c4fc6d725e3598bdace13a5766eee6a7189b/pipeline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 768, 67, 3838, 12, 2890, 16, 2153, 16, 1544, 4672, 3536, 1436, 279, 1296, 980, 1456, 358, 326, 9070, 18, 1021, 1353, 716, 326, 1775, 903, 506, 12317, 358, 326, 1296, 980, 353,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 768, 67, 3838, 12, 2890, 16, 2153, 16, 1544, 4672, 3536, 1436, 279, 1296, 980, 1456, 358, 326, 9070, 18, 1021, 1353, 716, 326, 1775, 903, 506, 12317, 358, 326, 1296, 980, 353,...
if ( id_tok.value in intrinsics.extra_set_lower and id_tok.value in intrinsics.set_lower):
if ( id_tok.value in intrinsics.extra_set_lower or id_tok.value in intrinsics.set_lower):
def search_for_id_tokens_callback(id_tok, next_tok): followed_by_parenthesis = ( next_tok is not None and next_tok.is_parentheses()) tf = O.fdecl_by_identifier.get(id_tok.value) if (tf is None): if (not followed_by_parenthesis): tf = make_fdecl(id_tok=id_tok, var_type=vt_used) elif (id_tok.value in intrinsics.set_lower): tf = make_fdecl(id_tok=id_tok, var_type=vt_intrinsic) else: tf = make_fdecl(id_tok=id_tok, var_type=vt_external) tf.use_count += 1 return tf.use_count += 1 if (tf.var_type is vt_intrinsic): if ( id_tok.value not in intrinsics.set_lower and id_tok.value not in intrinsics.extra_set_lower and id_tok.value not in intrinsics.io_set_lower): id_tok.raise_semantic_error( msg="Unknown intrinsic: %s" % id_tok.value) if (not followed_by_parenthesis): id_tok.raise_semantic_error( msg="Improper use of intrinsic: %s" % id_tok.value) elif (followed_by_parenthesis): vt = tf.var_type vs = tf.var_storage if (tf.dim_tokens is not None): if (tf.var_type is None): tf.var_type = vt_used if (tf.data_type is None): tf.data_type = get_implicit_data_type(id_tok=id_tok) elif ( tf.data_type is not None and tf.data_type.value == "character"): if (tf.var_type is None): tf.var_type = vt_used elif (vs is vs_argument): if (vt is None): tf.var_type = vt_external elif ( vt is not vt_external and vt is not vt_function and vt is not vt_subroutine): raise_confl_decl(id_tok=id_tok) elif ( vt is vt_external or vt is vt_function or vt is vt_subroutine): pass elif (vt is vt_intrinsic): if (id_tok.value not in intrinsics.set_lower): id_tok.raise_semantic_error( msg="Unknown intrinsic: %s" % id_tok.value) elif (vt is vt_used): raise_confl_decl(id_tok=id_tok) else: if (tf.var_storage is not None): pass # XXX should be error; ignored due to # lack of proper handling of f90 declarations tf.var_storage = None if ( id_tok.value in intrinsics.extra_set_lower and id_tok.value in intrinsics.set_lower): tf.var_type = vt_intrinsic else: tf.var_type = vt_function else: if (tf.var_type is None): tf.var_type = vt_used if (tf.data_type is None and tf.var_type is not vt_external and tf.var_type is not vt_subroutine): tf.data_type = get_implicit_data_type( id_tok=tf.id_tok, optional=True)
def507b47fee27b409a6af888111cbc7e0d29295 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/def507b47fee27b409a6af888111cbc7e0d29295/read.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 1884, 67, 350, 67, 7860, 67, 3394, 12, 350, 67, 17692, 16, 1024, 67, 17692, 4672, 10860, 67, 1637, 67, 30628, 273, 261, 1024, 67, 17692, 353, 486, 599, 471, 1024, 67, 17692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 1884, 67, 350, 67, 7860, 67, 3394, 12, 350, 67, 17692, 16, 1024, 67, 17692, 4672, 10860, 67, 1637, 67, 30628, 273, 261, 1024, 67, 17692, 353, 486, 599, 471, 1024, 67, 17692, ...
print "dragToItem=%s" %repr(dragToItem)
def changeHierarchy(self, data, x, y): print "Changing hierarchy for %s..." % repr(data)
ca32727cc5bb3298e217074ff838c7a9f8ab45a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/ca32727cc5bb3298e217074ff838c7a9f8ab45a0/SceneGraphUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 12074, 12, 2890, 16, 501, 16, 619, 16, 677, 4672, 1172, 315, 782, 18183, 9360, 364, 738, 87, 7070, 738, 8480, 12, 892, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 12074, 12, 2890, 16, 501, 16, 619, 16, 677, 4672, 1172, 315, 782, 18183, 9360, 364, 738, 87, 7070, 738, 8480, 12, 892, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
progress(" %s %s;
progress(" %s %s;
def nailFormula(f): """Smush the formula. Build a dictionary of nodes which are indirectly identified by [inverse] functonal properties.""" global verbose cc, predicates, ss, oo = getParts(f) nodes = ss | oo sofar = {} bnodes = Set() for node in nodes: if node.generated() or node in f.existentials(): bnodes.add(node) if verbose: progress("Blank node: %s" % `node`) else: if verbose: progress("Fixed node: %s" % `node`) sofar[node] = [] meta = lookUp(predicates) ifps = predicates & Set(meta.each(pred=RDF.type, obj=OWL.InverseFunctionalProperty)) fps = predicates & Set(meta.each(pred=RDF.type, obj=OWL.FunctionalProperty)) if verbose: for p in fps: progress("Functional Property:", p) for p in ifps: progress("Inverse Functional: ", p) definitions = [] if len(bnodes) == 0: if verbose: progress("No bnodes in graph") return bnodes, definitions a = float(len(bnodes))/len(nodes) if verbose: progress("Proportion of bodes which are blank: %f" % a)
c1bfd803814d84a8ec0ae946813eb6a735cf6088 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/c1bfd803814d84a8ec0ae946813eb6a735cf6088/diff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 290, 671, 14972, 12, 74, 4672, 3536, 9552, 1218, 326, 8013, 18, 3998, 279, 3880, 434, 2199, 1492, 854, 16807, 715, 9283, 635, 306, 22552, 65, 12882, 9528, 1790, 12123, 2552, 3988, 4946, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 290, 671, 14972, 12, 74, 4672, 3536, 9552, 1218, 326, 8013, 18, 3998, 279, 3880, 434, 2199, 1492, 854, 16807, 715, 9283, 635, 306, 22552, 65, 12882, 9528, 1790, 12123, 2552, 3988, 4946, ...
sys.exit(main())
sys.exit(main())
def main(args=sys.argv): #p = option_parser() #opts, args = p.parse_args(args) if len(args) != 2: print >>sys.stderr, _('Usage: pdf-meta file.pdf') print >>sys.stderr, _('No filename specified.') return 1 stream = open(os.path.abspath(os.path.expanduser(args[1])), 'r+b') #mi = MetaInformation(opts.title, opts.authors) #if mi.title or mi.authors: # set_metadata(stream, mi) print unicode(get_metadata(stream)).encode('utf-8') return 0
86ad16de680d524dc966ee6b781055a33238b5c6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/86ad16de680d524dc966ee6b781055a33238b5c6/pdf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 1968, 33, 9499, 18, 19485, 4672, 468, 84, 273, 1456, 67, 4288, 1435, 468, 4952, 16, 833, 273, 293, 18, 2670, 67, 1968, 12, 1968, 13, 309, 562, 12, 1968, 13, 480, 576, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 1968, 33, 9499, 18, 19485, 4672, 468, 84, 273, 1456, 67, 4288, 1435, 468, 4952, 16, 833, 273, 293, 18, 2670, 67, 1968, 12, 1968, 13, 309, 562, 12, 1968, 13, 480, 576, 30, ...
result.append('Py_XINCREF(%s);'%(LOCAL_VAR % op.result.name))
result.append('Py_XINCREF(%s);'%(LOCALVAR % op.result.name))
def OP_SAME_AS(self, op, err): result = [] TYPE = self.lltypemap(op.result) assert self.lltypemap(op.args[0]) == TYPE if TYPE is not Void: result.append('%s = %s;' % (self.expr(op.result), self.expr(op.args[0]))) if NEED_OLD_EXTRA_REFS and TYPE == PyObjPtr: result.append('Py_XINCREF(%s);'%(LOCAL_VAR % op.result.name)) return '\t'.join(result)
06deba772144a843dc37468d9325ce80d147d384 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/06deba772144a843dc37468d9325ce80d147d384/funcgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7247, 67, 29080, 67, 3033, 12, 2890, 16, 1061, 16, 393, 4672, 563, 273, 5378, 3463, 273, 365, 18, 2906, 723, 1458, 12, 556, 18, 2088, 13, 1815, 365, 18, 2906, 723, 1458, 12, 556, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7247, 67, 29080, 67, 3033, 12, 2890, 16, 1061, 16, 393, 4672, 563, 273, 5378, 3463, 273, 365, 18, 2906, 723, 1458, 12, 556, 18, 2088, 13, 1815, 365, 18, 2906, 723, 1458, 12, 556, 18,...
self.task_set_finished()
self.task_set_finished(id)
def proc_evt_end(self, evt): id = evt.task_id self.close_writers(id) self.task_set_finished() self.proxy.callRemote(self.TASK_STOP, id, self.stop_type(evt.arg("rc", None)), self.mk_msg(event=evt)) \ .addCallback(self.handle_Stop) # FIXME: addErrback(...) needed!
cb042559fcc6a0525372953ce57ef3cbea4020f5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13148/cb042559fcc6a0525372953ce57ef3cbea4020f5/beakerlc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5418, 67, 73, 11734, 67, 409, 12, 2890, 16, 6324, 4672, 612, 273, 6324, 18, 4146, 67, 350, 365, 18, 4412, 67, 5363, 414, 12, 350, 13, 365, 18, 4146, 67, 542, 67, 13527, 12, 350, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5418, 67, 73, 11734, 67, 409, 12, 2890, 16, 6324, 4672, 612, 273, 6324, 18, 4146, 67, 350, 365, 18, 4412, 67, 5363, 414, 12, 350, 13, 365, 18, 4146, 67, 542, 67, 13527, 12, 350, 13...
s = "123"
s = b"123"
def test_cstrings(self): from ctypes import c_char_p, byref
64e3c55a35ea85a456a79ced2cf71a28ca34e3b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/64e3c55a35ea85a456a79ced2cf71a28ca34e3b1/test_parameters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 71, 10219, 12, 2890, 4672, 628, 6983, 1930, 276, 67, 3001, 67, 84, 16, 12725, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 71, 10219, 12, 2890, 4672, 628, 6983, 1930, 276, 67, 3001, 67, 84, 16, 12725, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
sage: v.solution_dicts() [{x: -1.00000000000000*I, y: 1.00000000000000*I}, {x: 1.00000000000000*I, y: -1.00000000000000*I}]
sage: sol_dict = v.solution_dicts() sage: x_sols_from_dict = [d[x] for d in sol_dict] sage: x_sols_from_dict.sort(); x_sols_from_dict [-1.00000000000000*I, 1.00000000000000*I]
def variable_list(self): """
dae294c0877379ee1ed198432560df25c66ed047 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/dae294c0877379ee1ed198432560df25c66ed047/phc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2190, 67, 1098, 12, 2890, 4672, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2190, 67, 1098, 12, 2890, 4672, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
def test_srftime_out_of_range(self):
def test_strftime_out_of_range(self):
def test_srftime_out_of_range(self): # For nasty technical reasons, we can't handle years before 1900. cls = self.theclass self.assertEqual(cls(1900, 1, 1).strftime("%Y"), "1900") for y in 1, 49, 51, 99, 100, 1000, 1899: self.assertRaises(ValueError, cls(y, 1, 1).strftime, "%Y")
4d9723d693654f1b3cb31029a86217d510b6c54f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/4d9723d693654f1b3cb31029a86217d510b6c54f/test_datetime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 701, 9982, 67, 659, 67, 792, 67, 3676, 12, 2890, 4672, 468, 2457, 290, 689, 93, 17734, 1706, 14000, 16, 732, 848, 1404, 1640, 11387, 1865, 5342, 713, 18, 2028, 273, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 701, 9982, 67, 659, 67, 792, 67, 3676, 12, 2890, 4672, 468, 2457, 290, 689, 93, 17734, 1706, 14000, 16, 732, 848, 1404, 1640, 11387, 1865, 5342, 713, 18, 2028, 273, 365, 18, ...
self.targetValue = 0
def cdata(self, data): self.closeContext() if data == None: self.variablesQCB.clear() self.targetQCB.clear() self.outcomes = []
c13f546c5f300c247c60f0d75e3a913cfb6c3646 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/c13f546c5f300c247c60f0d75e3a913cfb6c3646/OWDistributions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20712, 12, 2890, 16, 501, 4672, 365, 18, 4412, 1042, 1435, 225, 309, 501, 422, 599, 30, 365, 18, 7528, 53, 8876, 18, 8507, 1435, 365, 18, 3299, 53, 8876, 18, 8507, 1435, 365, 18, 659...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20712, 12, 2890, 16, 501, 4672, 365, 18, 4412, 1042, 1435, 225, 309, 501, 422, 599, 30, 365, 18, 7528, 53, 8876, 18, 8507, 1435, 365, 18, 3299, 53, 8876, 18, 8507, 1435, 365, 18, 659...
["src/xlal/date.c"],
["src/xlal/date.c", "src/xlal/misc.c"],
def run(self): # remove the automatically generated user env scripts for script in ["pylal-user-env.sh", "pylal-user-env.csh"]: log.info("removing " + script ) try: os.unlink(os.path.join("etc", script)) except: pass
be80e194ad3e1beb2ce4d17921d438d75f3e5bfd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/be80e194ad3e1beb2ce4d17921d438d75f3e5bfd/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 1206, 326, 6635, 4374, 729, 1550, 8873, 364, 2728, 316, 8247, 2074, 80, 287, 17, 1355, 17, 3074, 18, 674, 3113, 315, 2074, 80, 287, 17, 1355, 17, 3074, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 1206, 326, 6635, 4374, 729, 1550, 8873, 364, 2728, 316, 8247, 2074, 80, 287, 17, 1355, 17, 3074, 18, 674, 3113, 315, 2074, 80, 287, 17, 1355, 17, 3074, 18, ...
If <atomlist> is supplied, use it instead of the currently selected atoms.
@param atomlist: If supplied, use this list of atoms to select connected atoms instead of the currently selected atoms. @type atomlist: List of atoms. @attention: Only correctly reports the number newly selected atoms.
def selectConnected(self, atomlist=None): """ Select any atom that can be reached from any currently selected atom through a sequence of bonds. If <atomlist> is supplied, use it instead of the currently selected atoms. """ ###@@@ should make sure we don't traverse interspace bonds, until all bugs creating them are fixed cmd = greenmsg("Select Connected: ") if atomlist is None and not self.selatoms: msg = redmsg("No atoms selected") env.history.message(cmd + msg) return if atomlist is None: # test for None since atomlist can be an empty list. atomlist = self.selatoms.values() catoms = self.getConnectedAtoms(atomlist) if not len(catoms): return natoms = 0 for atom in catoms[:]: if not atom.picked: atom.pick() if atom.picked: # Just in case a selection filter was applied to this atom. natoms += 1 from PlatformDependent import fix_plurals info = fix_plurals( "%d connected atom(s) selected." % natoms) env.history.message( cmd + info) self.o.gl_update()
ab1c10701c4a5e1193a1255c8aabbcc77bed0aec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/ab1c10701c4a5e1193a1255c8aabbcc77bed0aec/ops_connected.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 8932, 12, 2890, 16, 3179, 1098, 33, 7036, 4672, 3536, 6766, 1281, 3179, 716, 848, 506, 8675, 628, 1281, 4551, 3170, 3179, 3059, 279, 3102, 434, 15692, 18, 225, 632, 891, 3179, 1098...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 8932, 12, 2890, 16, 3179, 1098, 33, 7036, 4672, 3536, 6766, 1281, 3179, 716, 848, 506, 8675, 628, 1281, 4551, 3170, 3179, 3059, 279, 3102, 434, 15692, 18, 225, 632, 891, 3179, 1098...
sage: v, t = qsieve(n, time=True) sage: v
sage: v, t = qsieve(n, time=True) sage: v
def qsieve(n, block=True, time=False, verbose=False): """ Run Hart's quadratic sieve and return the distinct proper factors of the integer n that it finds. INPUT: n -- an integer with at least 40 digits block -- (default: True) if True, you must wait until the sieve computation is complete before using SAGE further. If False, SAGE will run while the sieve computation runs in parallel. time -- (default: False) if True, time the command using the UNIX "time" command (which you might have to install). verbose -- (default: False) if True, print out verbose logging information about what happened during the Sieve run (for non-blocking Sieve, verbose information is always available via the log() method.) OUTPUT: list -- a list of the distinct proper factors of n found str -- the time in cpu seconds that the computation took, as given by the command line time command. (If time is False, this is always an empty string.) EXAMPLES: sage: k = 19; n = next_prime(10^k)*next_prime(10^(k+1)) sage: factor(n) # (currently) uses PARI 10000000000000000051 * 100000000000000000039 sage: v, t = qsieve(n, time=True) # uses the sieve sage: v [10000000000000000051, 100000000000000000039] sage: t # random output """ Z = sage.rings.integer.Integer n = Z(n) if len(str(n)) < 40: raise ValueError, "n must have at least 40 digits" if block: return qsieve_block(n, time, verbose) else: return qsieve_nonblock(n, time)
930bdc687d9930d7c764e50ce794ed60ed80f6c4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/930bdc687d9930d7c764e50ce794ed60ed80f6c4/qsieve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8719, 21271, 12, 82, 16, 1203, 33, 5510, 16, 813, 33, 8381, 16, 3988, 33, 8381, 4672, 3536, 1939, 670, 485, 1807, 26146, 272, 21271, 471, 327, 326, 10217, 5338, 14490, 434, 326, 3571, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8719, 21271, 12, 82, 16, 1203, 33, 5510, 16, 813, 33, 8381, 16, 3988, 33, 8381, 4672, 3536, 1939, 670, 485, 1807, 26146, 272, 21271, 471, 327, 326, 10217, 5338, 14490, 434, 326, 3571, ...
if 'qtip' in repo.tags() and (repo[dest].hex() in [s.rev for s in repo.mq.applied]): raise util.Abort(_('cannot rebase onto an applied mq patch'))
def buildstate(repo, dest, src, base, detach): 'Define which revisions are going to be rebased and where' targetancestors = set() detachset = set() if not dest: # Destination defaults to the latest revision in the current branch branch = repo[None].branch() dest = repo[branch].rev() else: if 'qtip' in repo.tags() and (repo[dest].hex() in [s.rev for s in repo.mq.applied]): raise util.Abort(_('cannot rebase onto an applied mq patch')) dest = repo[dest].rev() if src: commonbase = repo[src].ancestor(repo[dest]) if commonbase == repo[src]: raise util.Abort(_('source is ancestor of destination')) if commonbase == repo[dest]: raise util.Abort(_('source is descendant of destination')) source = repo[src].rev() if detach: # We need to keep track of source's ancestors up to the common base srcancestors = set(repo.changelog.ancestors(source)) baseancestors = set(repo.changelog.ancestors(commonbase.rev())) detachset = srcancestors - baseancestors detachset.remove(commonbase.rev()) else: if base: cwd = repo[base].rev() else: cwd = repo['.'].rev() if cwd == dest: repo.ui.debug('source and destination are the same\n') return None targetancestors = set(repo.changelog.ancestors(dest)) if cwd in targetancestors: repo.ui.debug('source is ancestor of destination\n') return None cwdancestors = set(repo.changelog.ancestors(cwd)) if dest in cwdancestors: repo.ui.debug('source is descendant of destination\n') return None cwdancestors.add(cwd) rebasingbranch = cwdancestors - targetancestors source = min(rebasingbranch) repo.ui.debug('rebase onto %d starting from %d\n' % (dest, source)) state = dict.fromkeys(repo.changelog.descendants(source), nullrev) state.update(dict.fromkeys(detachset, nullmerge)) state[source] = nullrev return repo['.'].rev(), repo[dest].rev(), state
94587282cace71432be1413afcb606ee5db68872 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/94587282cace71432be1413afcb606ee5db68872/rebase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 2019, 12, 7422, 16, 1570, 16, 1705, 16, 1026, 16, 10199, 4672, 296, 11644, 1492, 18325, 854, 8554, 358, 506, 283, 12261, 471, 1625, 11, 1018, 304, 11116, 273, 444, 1435, 10199, 542...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 2019, 12, 7422, 16, 1570, 16, 1705, 16, 1026, 16, 10199, 4672, 296, 11644, 1492, 18325, 854, 8554, 358, 506, 283, 12261, 471, 1625, 11, 1018, 304, 11116, 273, 444, 1435, 10199, 542...
products = data['form']['products'][0][1]
products = data['form']['products'][0][1]
def _complete(self, cursor, user, data, context=None): forecast_obj = self.pool.get('stock.forecast') forecast_line_obj = self.pool.get('stock.forecast.line') product_obj = self.pool.get('product.product')
8bb89e8a49e78399d325b79af68cad89dad5e0d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9305/8bb89e8a49e78399d325b79af68cad89dad5e0d3/forecast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6226, 12, 2890, 16, 3347, 16, 729, 16, 501, 16, 819, 33, 7036, 4672, 18763, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 1405, 4155, 6134, 18763, 67, 1369, 67, 2603, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6226, 12, 2890, 16, 3347, 16, 729, 16, 501, 16, 819, 33, 7036, 4672, 18763, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 1405, 4155, 6134, 18763, 67, 1369, 67, 2603, ...
__swig_setmethods__["Zsource"] = _micropolisengine.Micropolis_Zsource_set __swig_getmethods__["Zsource"] = _micropolisengine.Micropolis_Zsource_get if _newclass:Zsource = _swig_property(_micropolisengine.Micropolis_Zsource_get, _micropolisengine.Micropolis_Zsource_set)
def DoPendTool(*args): return _micropolisengine.Micropolis_DoPendTool(*args)
bc2b5f822cafd3b1950c538c77451059f06d066c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12485/bc2b5f822cafd3b1950c538c77451059f06d066c/micropolisengine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2256, 52, 409, 6364, 30857, 1968, 4672, 327, 389, 27593, 1764, 355, 291, 8944, 18, 49, 335, 1764, 355, 291, 67, 3244, 52, 409, 6364, 30857, 1968, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2256, 52, 409, 6364, 30857, 1968, 4672, 327, 389, 27593, 1764, 355, 291, 8944, 18, 49, 335, 1764, 355, 291, 67, 3244, 52, 409, 6364, 30857, 1968, 13, 2, -100, -100, -100, -100, -100, -...
except TypeError: pass else: raise TestFailed, 'expected TypeError'
except TypeError: pass else: raise TestFailed, 'expected TypeError'
def b(): 'my docstring' pass
92e56246efd9ad85e3b3f20a7d925f31d1625b00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/92e56246efd9ad85e3b3f20a7d925f31d1625b00/test_funcattrs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 13332, 296, 4811, 14525, 11, 1342, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 13332, 296, 4811, 14525, 11, 1342, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
@param options: Various options about the record to be created, as passed from the command line.
@param options: Various options about the record to be created, as passed from the command line.
def recxml2recmarc(xmltext, options): """The function that processes creating the records from an XML string, and prints these records to the standard output stream. @param xmltext: An XML MARC record in string form. @param options: Various options about the record to be created, as passed from the command line. @return: Nothing. """ ## create internal record structure from xmltext: if xmltext.find("<collection") != -1: ## this is a collection of records: try: ## parse XML into internal records structure records = create_records(xmltext, 1, 1) except: ## xml parsing failed: sys.stderr.write("""Error: Unable to parse xml file.\n""") sys.exit(1) ## now loop through each record, get its sysno, and convert it: for record in records: sysno = _get_sysno(record=record[0], options=options) if sysno is None: if options["text-marc"] == 1: ## cannot create text-marc for a record with no 001 (recid)! sys.stderr.write("""Error: Unable to correctly determine recid (001) - record skipped.\n""") continue elif options["aleph-marc"] == 1 and 1 in (options["append-mode"], options["delete-mode"], \ options["modify-mode"], options["replace-mode"]): ## cannot create ALEPH MARC to manipulate a record when SYS is unknown! sys.stderr.write("""Error: Unable to create ALEPH MARC to manipulate a record for which SYS is unknown! """\ """Record skipped.\n""") continue elif options["aleph-marc"] == 1 and type(sysno) in (list, tuple): ## multiple values for SYS in aleph-mode - not permitted sys.stderr.write("""Error: Multiple values for SYS (970__a) are not permitted when running in ALEPH MARC mode. """ \ """Record skipped.\n""") continue sys.stdout.write("""%s""" % (print_record(record=record[0], sysno=sysno, options=options),)) else: ## assuming that this is just a single record - not encapsulated by collection tags: try: ## parse XML into internal record structure (record, st, e) = create_record(xmltext, 1, 1) except: ## xml parsing failed: sys.stderr.write("""Error: Unable to parse xml file.\n""") sys.exit(1) if record is None: ## there was no record: sys.stderr.write("""Error: Unable to read record from xml file.\n""") sys.exit(1) ## now get the sysno for the record: sysno = _get_sysno(record=record, options=options) if sysno is None: if options["text-marc"] == 1: ## cannot create text-marc for a record with no 001 (recid)! sys.stderr.write("""Error: Unable to correctly determine recid (001) - record skipped.\n""") sys.exit(1) elif options["aleph-marc"] == 1 and 1 in (options["append-mode"], options["delete-mode"], \ options["modify-mode"], options["replace-mode"]): ## cannot create ALEPH MARC to manipulate a record when SYS is unknown! sys.stderr.write("""Error: Unable to create ALEPH MARC to manipulate a record for which SYS is unknown! """ \ """Record skipped.\n""") sys.exit(1) elif options["aleph-marc"] == 1 and type(sysno) in (list, tuple): ## multiple values for SYS in aleph-mode - not permitted sys.stderr.write("""Error: Multiple values for SYS (970__a) are not permitted when running in ALEPH MARC mode. """ \ """Record skipped.\n""") sys.exit(1) sys.stdout.write("""%s""" % (print_record(record=record, sysno=sysno, options=options),))
1c137b3ae4c91d53f88470c4ddccfbb819938f16 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/1c137b3ae4c91d53f88470c4ddccfbb819938f16/xmlmarc2textmarclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1950, 2902, 22, 3927, 3684, 71, 12, 2902, 955, 16, 702, 4672, 3536, 1986, 445, 716, 8488, 4979, 326, 3853, 628, 392, 3167, 533, 16, 471, 14971, 4259, 3853, 358, 326, 4529, 876, 1407, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1950, 2902, 22, 3927, 3684, 71, 12, 2902, 955, 16, 702, 4672, 3536, 1986, 445, 716, 8488, 4979, 326, 3853, 628, 392, 3167, 533, 16, 471, 14971, 4259, 3853, 358, 326, 4529, 876, 1407, 1...
super(LiveEntryManager, self).get_query_set().filter(
return super(LiveEntryManager, self).get_query_set().filter(
def get_query_set(self): super(LiveEntryManager, self).get_query_set().filter( status=self.model.LIVE_STATUS )
bd7200999a32508d3d56f94e12dc41819b75f904 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3533/bd7200999a32508d3d56f94e12dc41819b75f904/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2271, 67, 542, 12, 2890, 4672, 327, 2240, 12, 12328, 1622, 1318, 16, 365, 2934, 588, 67, 2271, 67, 542, 7675, 2188, 12, 1267, 33, 2890, 18, 2284, 18, 2053, 3412, 67, 8608, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2271, 67, 542, 12, 2890, 4672, 327, 2240, 12, 12328, 1622, 1318, 16, 365, 2934, 588, 67, 2271, 67, 542, 7675, 2188, 12, 1267, 33, 2890, 18, 2284, 18, 2053, 3412, 67, 8608, 2...
buf+=chr(int(byte,16)) handle.controlMsg(reqType,req,buf,value,index)
buf2+=chr(int(byte,16)) handle.controlMsg(reqType,req,buf2,value,index)
def ReplayInitLog(self): # find our device self.usbdev=None for bus in usb.busses(): for dev in bus.devices: if dev.idVendor == 0x3333: self.usbdev = dev # was it found? if self.usbdev is None: raise ValueError('Device (3333:5555) not found')
f1b2211eaa58cac6b53a93d3774c2751f42963f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3991/f1b2211eaa58cac6b53a93d3774c2751f42963f4/LaserDisplay.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 868, 1601, 2570, 1343, 12, 2890, 4672, 468, 1104, 3134, 2346, 365, 18, 25525, 5206, 33, 7036, 364, 5766, 316, 31261, 18, 9274, 2420, 13332, 364, 4461, 316, 5766, 18, 12506, 30, 309, 4461...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 868, 1601, 2570, 1343, 12, 2890, 4672, 468, 1104, 3134, 2346, 365, 18, 25525, 5206, 33, 7036, 364, 5766, 316, 31261, 18, 9274, 2420, 13332, 364, 4461, 316, 5766, 18, 12506, 30, 309, 4461...
// // /* ** Parse/generate ADD records */ """ initstuff = initstuff + """ // PyMac_INIT_TOOLBOX_OBJECT_NEW(xxxx); """ TXNObject = OpaqueByValueType("TXNObject", "TXNObj") TXNFontMenuObject = OpaqueByValueType("TXNFontMenuObject", "TXNFontMenuObj") TXNFrameID = Type("TXNFrameID", "l") TXNVersionValue = Type("TXNVersionValue", "l") TXNFeatureBits = Type("TXNFeatureBits", "l") TXNInitOptions = Type("TXNInitOptions", "l") TXNFrameOptions = Type("TXNFrameOptions", "l") TXNContinuousFlags = Type("TXNContinuousFlags", "l") TXNMatchOptions = Type("TXNMatchOptions", "l") TXNFileType = OSTypeType("TXNFileType") TXNFrameType = Type("TXNFrameType", "l") TXNDataType = OSTypeType("TXNDataType") TXNControlTag = OSTypeType("TXNControlTag") TXNActionKey = Type("TXNActionKey", "l") TXNTabType = Type("TXNTabType", "b") TXNScrollBarState = Type("TXNScrollBarState", "l") TXNOffset = Type("TXNOffset", "l") TXNObjectRefcon = FakeType("(TXNObjectRefcon)0") TXNErrors = OSErrType("TXNErrors", "l") TXNTypeRunAttributes = OSTypeType("TXNTypeRunAttributes") TXNTypeRunAttributeSizes = Type("TXNTypeRunAttributeSizes", "l") TXNPermanentTextEncodingType = Type("TXNPermanentTextEncodingType", "l") TXTNTag = OSTypeType("TXTNTag") TXNBackgroundType = Type("TXNBackgroundType", "l") DragReference = OpaqueByValueType("DragReference", "DragObj") DragTrackingMessage = Type("DragTrackingMessage", "h") RgnHandle = OpaqueByValueType("RgnHandle", "ResObj") GWorldPtr = OpaqueByValueType("GWorldPtr", "GWorldObj") MlteInBuffer = VarInputBufferType('void *', 'ByteCount', 'l') execfile("mltetypetest.py") class TXNObjDefinition(GlobalObjectDefinition): def outputCheckNewArg(self): Output("if (itself == NULL) return PyMac_Error(resNotFound);") class TXNFontMenuObjDefinition(GlobalObjectDefinition): def outputCheckNewArg(self): Output("if (itself == NULL) return PyMac_Error(resNotFound);") module = MacModule(MODNAME, MODPREFIX, includestuff, finalstuff, initstuff) TXNObject_object = TXNObjDefinition("TXNObject", "TXNObj", "TXNObject") TXNFontMenuObject_object = TXNFontMenuObjDefinition("TXNFontMenuObject", "TXNFontMenuObj", "TXNFontMenuObject") module.addobject(TXNObject_object) module.addobject(TXNFontMenuObject_object) Function = OSErrWeakLinkFunctionGenerator Method = OSErrWeakLinkMethodGenerator functions = [] TXNObject_methods = [] TXNFontMenuObject_methods = [] execfile(INPUTFILE) for f in functions: module.add(f) for f in TXNObject_methods: TXNObject_object.add(f) for f in TXNFontMenuObject_methods: TXNFontMenuObject_object.add(f) SetOutputFileName(OUTPUTFILE) module.generate()
def makerepairinstructions(self): return [ ([("void", "*", "OutMode"), ("ByteCount", "*", "InMode")], [("MlteInBuffer", "*", "InMode")]), ] if __name__ == "__main__": main()
#ifdef NOTYET_USE_TOOLBOX_OBJECT_GLUE
2aadb891e7c8192ad538413e13caa0c59fb720ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2aadb891e7c8192ad538413e13caa0c59fb720ec/mltescan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 4269, 61, 1584, 67, 8001, 67, 26263, 16876, 67, 9422, 67, 11261, 1821, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 4269, 61, 1584, 67, 8001, 67, 26263, 16876, 67, 9422, 67, 11261, 1821, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
event_ids = self.search(cursor, 0, [ ('event.uuid', '=', event.uuid), ('event.calendar.owner.email', 'in', attendee_emails),
event_ids = event_obj.search(cursor, 0, [ ('uuid', '=', event.uuid), ('calendar.owner.email', 'in', attendee_emails),
def create(self, cursor, user, values, context=None): event_obj = self.pool.get('calendar.event') if values.get('event'): # Update write_date of event event_obj.write(cursor, user, values['event'], {}, context=context) res = super(EventAttendee, self).create(cursor, user, values, context=context) attendee = self.browse(cursor, user, res, context=context) event = attendee.event if event.organizer == event.calendar.owner.email \ or (event.parent \ and event.parent.organizer == event.parent.calendar.owner.email): if event.organizer == event.calendar.owner.email: attendee_emails = [x.email for x in event.attendees] else: attendee_emails = [x.email for x in event.parent.attendees] if attendee_emails: event_ids = self.search(cursor, 0, [ ('event.uuid', '=', event.uuid), ('event.calendar.owner.email', 'in', attendee_emails), ('id', '!=', event.id), ('event.recurrence', '=', event.recurrence or False), ], context=context) for event_id in event_ids: self.copy(cursor, 0, res, default={ 'event': event_id, }, context=context) return res
cc1eacec6573e1789d36aacd45bdddbb4e3b8906 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9294/cc1eacec6573e1789d36aacd45bdddbb4e3b8906/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 3347, 16, 729, 16, 924, 16, 819, 33, 7036, 4672, 871, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 11650, 18, 2575, 6134, 309, 924, 18, 588, 2668, 2575, 11, 4672, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 3347, 16, 729, 16, 924, 16, 819, 33, 7036, 4672, 871, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 11650, 18, 2575, 6134, 309, 924, 18, 588, 2668, 2575, 11, 4672, ...
def writeable(self): return 1
def writeable(self): return 1
def writeable(self): return 1
52768953b32ebd1acf4ab8995564ff0e0957a506 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/52768953b32ebd1acf4ab8995564ff0e0957a506/BIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30223, 12, 2890, 4672, 327, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30223, 12, 2890, 4672, 327, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
i = find_token(document.body, '\\begin_inset Float', i)
i = find_token(document.body, '\\begin_inset Float ', i)
def revert_subfig(document): " Revert subfloats. " i = 0 while 1: i = find_token(document.body, '\\begin_inset Float', i) if i == -1: return while 1: j = find_end_of_inset(document.body, i) if j == -1: document.warning("Malformed lyx document: Missing '\\end_inset' (float).") i = i + 1 continue # look for embedded float (= subfloat) k = find_token(document.body, '\\begin_inset Float', i + 1, j) if k == -1: break l = find_end_of_inset(document.body, k) if l == -1: document.warning("Malformed lyx document: Missing '\\end_inset' (embedded float).") i = i + 1 continue m = find_default_layout(document, k + 1, l) # caption? cap = find_token(document.body, '\\begin_inset Caption', k + 1, l) caption = '' shortcap = '' if cap != -1: capend = find_end_of_inset(document.body, cap) if capend == -1: document.warning("Malformed lyx document: Missing '\\end_inset' (caption).") return # label? label = '' lbl = find_token(document.body, '\\begin_inset CommandInset label', cap, capend) if lbl != -1: lblend = find_end_of_inset(document.body, lbl + 1) if lblend == -1: document.warning("Malformed lyx document: Missing '\\end_inset' (label).") return for line in document.body[lbl:lblend + 1]: if line.startswith('name '): label = line.split()[1].strip('"') break else: lbl = capend lblend = capend label = '' # opt arg? opt = find_token(document.body, '\\begin_inset OptArg', cap, capend) if opt != -1: optend = find_end_of_inset(document.body, opt) if optend == -1: document.warning("Malformed lyx document: Missing '\\end_inset' (OptArg).") return optc = find_default_layout(document, opt, optend) if optc == -1: document.warning("Malformed LyX document: Missing `\\begin_layout' in Float inset.") return optcend = find_end_of(document.body, optc, "\\begin_layout", "\\end_layout") for line in document.body[optc:optcend]: if not line.startswith('\\'): shortcap += line.strip() else: opt = capend optend = capend for line in document.body[cap:capend]: if line in document.body[lbl:lblend]: continue elif line in document.body[opt:optend]: continue elif not line.startswith('\\'): caption += line.strip() if len(label) > 0: caption += "\\backslash\nlabel{" + label + "}" document.body[l] = '\\begin_layout Plain Layout\n\\begin_inset ERT\nstatus collapsed\n\n' \ '\\begin_layout Plain Layout\n\n}\n\\end_layout\n\n\\end_inset\n\n\\end_layout\n\n\\begin_layout Plain Layout\n' del document.body[cap:capend+1] del document.body[k+1:m-1] insertion = '\\begin_inset ERT\nstatus collapsed\n\n' \ '\\begin_layout Plain Layout\n\n\\backslash\n' \ 'subfloat' if len(shortcap) > 0: insertion = insertion + "[" + shortcap + "]" if len(caption) > 0: insertion = insertion + "[" + caption + "]" insertion = insertion + '{%\n\\end_layout\n\n\\end_inset\n\n\\end_layout\n' document.body[k] = insertion add_to_preamble(document, ['\\usepackage{subfig}\n']) i = i + 1
98b51ebfbcacadec8c19002d2e3088b12bc67c95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/98b51ebfbcacadec8c19002d2e3088b12bc67c95/lyx_1_6.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 1717, 470, 12, 5457, 4672, 315, 868, 1097, 720, 5659, 87, 18, 315, 277, 273, 374, 1323, 404, 30, 225, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 3718, 10086, 67, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 1717, 470, 12, 5457, 4672, 315, 868, 1097, 720, 5659, 87, 18, 315, 277, 273, 374, 1323, 404, 30, 225, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 3718, 10086, 67, 26...
self.assert_(msg.get_from() == 'MAILER-DAEMON %s' %
self.assertEqual(msg.get_from(), 'MAILER-DAEMON %s' %
def test_maildir_to_mboxmmdf(self): # Convert MaildirMessage to mboxmessage and MMDFMessage pairs = (('D', ''), ('F', 'F'), ('P', ''), ('R', 'A'), ('S', 'R'), ('T', 'D'), ('DFPRST', 'RDFA')) for class_ in (mailbox.mboxMessage, mailbox.MMDFMessage): msg_maildir = mailbox.MaildirMessage(_sample_message) msg_maildir.set_date(0.0) for setting, result in pairs: msg_maildir.set_flags(setting) msg = class_(msg_maildir) self.assertEqual(msg.get_flags(), result) self.assert_(msg.get_from() == 'MAILER-DAEMON %s' % time.asctime(time.gmtime(0.0))) msg_maildir.set_subdir('cur') self.assertEqual(class_(msg_maildir).get_flags(), 'RODFA')
ea8344797e1a0ebd0b419ce14e16ab25af771fcc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ea8344797e1a0ebd0b419ce14e16ab25af771fcc/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2540, 545, 481, 67, 869, 67, 81, 2147, 81, 1264, 74, 12, 2890, 4672, 468, 4037, 490, 69, 545, 481, 1079, 358, 312, 2147, 2150, 471, 18295, 4577, 1079, 5574, 273, 261, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2540, 545, 481, 67, 869, 67, 81, 2147, 81, 1264, 74, 12, 2890, 4672, 468, 4037, 490, 69, 545, 481, 1079, 358, 312, 2147, 2150, 471, 18295, 4577, 1079, 5574, 273, 261, 2668, ...
"the standard `logging` module instead")
"the standard `logging` module instead", PendingDeprecationWarning, stacklevel=2)
def notifyChannel(self, name, level, msg): warnings.warn("notifyChannel API shouldn't be used anymore, please use " "the standard `logging` module instead") from service.web_services import common
9150c0695ffbf7f76809f2811c27aaeb7177e087 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/9150c0695ffbf7f76809f2811c27aaeb7177e087/netsvc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5066, 2909, 12, 2890, 16, 508, 16, 1801, 16, 1234, 4672, 5599, 18, 8935, 2932, 12336, 2909, 1491, 12044, 1404, 506, 1399, 16828, 16, 9582, 999, 315, 315, 5787, 4529, 1375, 11167, 68, 160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5066, 2909, 12, 2890, 16, 508, 16, 1801, 16, 1234, 4672, 5599, 18, 8935, 2932, 12336, 2909, 1491, 12044, 1404, 506, 1399, 16828, 16, 9582, 999, 315, 315, 5787, 4529, 1375, 11167, 68, 160...
serializer = serializers.get_serializer(format)
def import_from(self, infile, maxsize=10000000): errors = [] results = [] filetype = infile['content-type'] filename = infile['filename'] raw = infile['content'] # filelen = len(raw) # if filelen > maxsize: # errors.append(_('Import too large, must be smaller than %i bytes.' % maxsize )) format = os.path.splitext(filename)[1] if format and format.startswith('.'): format = format[1:] if not format: errors.append(_('Could not parse format from filename: %s') % filename) if format == 'zip': zf = zipfile.ZipFile(StringIO(raw), 'r') files = zf.namelist() image_dir = config_value('PRODUCT', 'IMAGE_DIR') other_image_dir = None export_file = None if 'VARS' in files: config = zf.read('VARS') lines = [line.split('=') for line in config.split('\n')] for key, val in lines: if key == 'PRODUCT.IMAGE_DIR': other_image_dir = val elif key == 'EXPORT_FILE': export_file = val if other_image_dir is None or export_file is None: errors.append(_('Bad VARS file in import zipfile.')) else: # save out all the files which start with other_image_dr rename = image_dir == other_image_dir for f in files: if f.startswith(other_image_dir): buf = zf.read(f) if rename: f = f[len(other_image_dir):] if f[0] in ('/', '\\'): f = f[1:] f = os.path.join(settings.MEDIA_ROOT, image_dir, f) outf = open(f, 'w') outf.write(buf) outf.close() results.append('Imported image: %s' % f) infile = zf.read(export_file) zf.close() format = os.path.splitext(export_file)[1] if format and format.startswith('.'): format = format[1:] if not format: errors.append(_('Could not parse format from filename: %s') % filename) else: raw = infile else: errors.append(_('Missing VARS in import zipfile.')) else: raw = StringIO(str(raw)) if not format in serializers.get_serializer_formats(): errors.append(_('Unknown file format: %s') % format) if not errors: serializer = serializers.get_serializer(format) from django.db import connection, transaction transaction.commit_unless_managed() transaction.enter_transaction_management() transaction.managed(True) try: objects = serializers.deserialize(format, raw) ct = 0 models = set() for obj in objects: obj.save() models.add(obj.object.__class__) ct += 1 if ct>0: style=no_style() sequence_sql = connection.ops.sequence_reset_sql(style, models) if sequence_sql: cursor = connection.cursor() for line in sequence_sql: cursor.execute(line) results.append(_('Added %(count)i objects from %(filename)s') % {'count': ct, 'filename': filename}) transaction.commit() #label_found = True except Exception, e: #fixture.close() errors.append(_("Problem installing fixture '%(filename)s': %(error_msg)s\n") % {'filename': filename, 'error_msg': str(e)}) errors.append("Raw: %s" % raw) transaction.rollback() transaction.leave_transaction_management() return results, errors
ae94908aaed490e7024b814aa1215ba845a619ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/ae94908aaed490e7024b814aa1215ba845a619ea/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 2080, 12, 2890, 16, 14568, 16, 22959, 33, 21, 17877, 4672, 1334, 273, 5378, 1686, 273, 5378, 225, 18902, 273, 14568, 3292, 1745, 17, 723, 3546, 1544, 273, 14568, 3292, 3459, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 2080, 12, 2890, 16, 14568, 16, 22959, 33, 21, 17877, 4672, 1334, 273, 5378, 1686, 273, 5378, 225, 18902, 273, 14568, 3292, 1745, 17, 723, 3546, 1544, 273, 14568, 3292, 3459, 35...
def slurp_braindb(run):
def slurp_braindb(run, brain_alternate=None):
def slurp_braindb(run): """ Reads extra configuration from braindump database Param: run is the run directory Returns: Dictionary with the configuration, empty if error """ my_config = {} my_braindb = os.path.join(run, brainbase) try: my_file = open(my_braindb, 'r') except: # Error opening file return my_config for line in my_file: # Remove \r and/or \n from the end of the line line = line.rstrip("\r\n") # Split the line into a key and a value k, v = line.split(" ", 1) if k == "run" and v != run and run != '.': logger.warn("Warning: run directory mismatch, using %s" % (run)) my_config[k] = run else: # Remove leading and trailing whitespaces from value v = v.strip() my_config[k] = v # Close file my_file.close() # Done! logger.debug("# slurped %s" % (my_braindb)) return my_config
dc901dedcb0a733574e207f2cd15d9db9d6fd477 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9868/dc901dedcb0a733574e207f2cd15d9db9d6fd477/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2020, 295, 84, 67, 15397, 728, 70, 12, 2681, 16, 20970, 67, 16025, 340, 33, 7036, 4672, 3536, 29185, 2870, 1664, 628, 16430, 728, 2801, 2063, 3014, 30, 1086, 353, 326, 1086, 1867, 2860, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2020, 295, 84, 67, 15397, 728, 70, 12, 2681, 16, 20970, 67, 16025, 340, 33, 7036, 4672, 3536, 29185, 2870, 1664, 628, 16430, 728, 2801, 2063, 3014, 30, 1086, 353, 326, 1086, 1867, 2860, ...
pl.write(" locfield: 1\n")
def getTime(self, t): t = time.mktime((int(t[0]), int(t[1]), int(t[2]), int(t[3]), int(t[4]), int(t[5]), 0, 0, 0))+float(t[6])/1000 global mintime, maxtime if t < mintime: mintime = t if t > maxtime: maxtime = t return t
d51ece44e96bac0a1eb9cdc87bae03c6a0fea034 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6866/d51ece44e96bac0a1eb9cdc87bae03c6a0fea034/jobchart.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6135, 12, 2890, 16, 268, 4672, 268, 273, 813, 18, 24816, 957, 12443, 474, 12, 88, 63, 20, 65, 3631, 509, 12, 88, 63, 21, 65, 3631, 509, 12, 88, 63, 22, 65, 3631, 509, 12, 88, 63,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6135, 12, 2890, 16, 268, 4672, 268, 273, 813, 18, 24816, 957, 12443, 474, 12, 88, 63, 20, 65, 3631, 509, 12, 88, 63, 21, 65, 3631, 509, 12, 88, 63, 22, 65, 3631, 509, 12, 88, 63,...
class Templates(dict):
class Templates(object):
def itervalues(self): for i in iter(self._list): yield self[i]
32fe7a9dd59a6c1ffcb1e6bebc46275cf3cfee9b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5794/32fe7a9dd59a6c1ffcb1e6bebc46275cf3cfee9b/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24607, 12, 2890, 4672, 364, 277, 316, 1400, 12, 2890, 6315, 1098, 4672, 2824, 365, 63, 77, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24607, 12, 2890, 4672, 364, 277, 316, 1400, 12, 2890, 6315, 1098, 4672, 2824, 365, 63, 77, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
\code{slider}, \code{button}, \code{checkbox}.
\code{slider}, \code{checkbox}, \code{selector}, and \code{input_grid}. There is also a color selector (see defaults below).
... def _(a=(1,4), b=(0,10)):
e49d467910fb7bf80b7ae43ae16d248c817857b4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e49d467910fb7bf80b7ae43ae16d248c817857b4/interact.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 1652, 389, 12, 69, 28657, 21, 16, 24, 3631, 324, 28657, 20, 16, 2163, 3719, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 1652, 389, 12, 69, 28657, 21, 16, 24, 3631, 324, 28657, 20, 16, 2163, 3719, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return 0
return False if char.gm: return True
def checkrequirements(self, char, mode, args=[], target=None, item=None): if char.dead: return 0
7fd9fe8012eff488a03f0138cd4bb6a39dd2029c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/7fd9fe8012eff488a03f0138cd4bb6a39dd2029c/spell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 16175, 12, 2890, 16, 1149, 16, 1965, 16, 833, 22850, 6487, 1018, 33, 7036, 16, 761, 33, 7036, 4672, 309, 1149, 18, 22097, 30, 327, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 16175, 12, 2890, 16, 1149, 16, 1965, 16, 833, 22850, 6487, 1018, 33, 7036, 16, 761, 33, 7036, 4672, 309, 1149, 18, 22097, 30, 327, 374, 2, -100, -100, -100, -100, -100, -100, -100...
addStar(10,2,1,36.86989765) addStar(12,4,1,8.213210702) addStar(12,7,1,16.60154960) addStar(10,9,1,53.13010235)
addStar(10,1,1,36.86989765) addStar(12,3,1,8.213210702) addStar(12,6,1,16.60154960) addStar(10,8,1,53.13010235)
def addStar(x,y,size,angle,g=g,w=s/20,x0=x,y0=y+s/2): s = Star() s.fillColor=colors.yellow s.angle = angle s.size = size*w s.x = x*w+x0 s.y = y*w+y0 g.add(s)
056d40683d2a23f810de08f9d79c172c8a268fd1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/056d40683d2a23f810de08f9d79c172c8a268fd1/flags.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 18379, 12, 92, 16, 93, 16, 1467, 16, 4341, 16, 75, 33, 75, 16, 91, 33, 87, 19, 3462, 16, 92, 20, 33, 92, 16, 93, 20, 33, 93, 15, 87, 19, 22, 4672, 272, 273, 934, 297, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 18379, 12, 92, 16, 93, 16, 1467, 16, 4341, 16, 75, 33, 75, 16, 91, 33, 87, 19, 3462, 16, 92, 20, 33, 92, 16, 93, 20, 33, 93, 15, 87, 19, 22, 4672, 272, 273, 934, 297, 14...
except IndexError, ValueError:
except (IndexError, ValueError):
def drop(self): """Remove me from the list of running bots processes.""" self.checktime = 0 processes = {} try: f = open(self.logfn(), 'r') except IOError: return else: now = time.time() for line in f.readlines(): try: line = line.split(' ') pid = int(line[0]) ptime = int(line[1].split('.')[0]) except IndexError, ValueError: # I go a lot of crontab errors because line is not a number. # Better to prevent that. If you find out the error, feel free # to fix it better. pid = 1 ptime = time.time() if now - ptime <= self.releasepid and pid != self.pid: processes[pid] = ptime f = open(self.logfn(), 'w') for p in processes.keys(): f.write(str(p)+' '+str(processes[p])+'\n') f.close()
db10617dfcb575b5e40fd0d8b13dd70850678ff1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/db10617dfcb575b5e40fd0d8b13dd70850678ff1/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3640, 12, 2890, 4672, 3536, 3288, 1791, 628, 326, 666, 434, 3549, 2512, 87, 8488, 12123, 365, 18, 1893, 957, 273, 374, 8488, 273, 2618, 775, 30, 284, 273, 1696, 12, 2890, 18, 1330, 429...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3640, 12, 2890, 4672, 3536, 3288, 1791, 628, 326, 666, 434, 3549, 2512, 87, 8488, 12123, 365, 18, 1893, 957, 273, 374, 8488, 273, 2618, 775, 30, 284, 273, 1696, 12, 2890, 18, 1330, 429...
Returns the centralizer of g in self.
Returns the centralizer of ``g`` in ``self``.
def centralizer(self, g): """ Returns the centralizer of g in self. EXAMPLES:: sage: G = PermutationGroup([[(1,2),(3,4)], [(1,2,3,4)]]) sage: g = G([(1,3)]) sage: G.centralizer(g) Permutation Group with generators [(2,4), (1,3)] sage: g = G([(1,2,3,4)]) sage: G.centralizer(g) Permutation Group with generators [(1,2,3,4)] sage: H = G.subgroup([G([(1,2,3,4)])]) sage: G.centralizer(H) Permutation Group with generators [(1,2,3,4)] """ N = self._gap_().Centralizer(g) return PermutationGroup(N.GeneratorsOfGroup())
f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18291, 1824, 12, 2890, 16, 314, 4672, 3536, 2860, 326, 18291, 1824, 434, 12176, 75, 10335, 316, 12176, 2890, 68, 8338, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 611, 273, 13813, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18291, 1824, 12, 2890, 16, 314, 4672, 3536, 2860, 326, 18291, 1824, 434, 12176, 75, 10335, 316, 12176, 2890, 68, 8338, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 611, 273, 13813, 9...
data = server.read(iBufferSize)
data = server.read()
def HandleResponse(self, server): """get response from server and pass it back to client""" # response header should be in first line! response = server.readline()
184713781fc4a064c8db7ea918fad4b0b476f101 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/184713781fc4a064c8db7ea918fad4b0b476f101/cProxyHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 1064, 12, 2890, 16, 1438, 4672, 3536, 588, 766, 628, 1438, 471, 1342, 518, 1473, 358, 1004, 8395, 468, 766, 1446, 1410, 506, 316, 1122, 980, 5, 766, 273, 1438, 18, 896, 1369, 143...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 1064, 12, 2890, 16, 1438, 4672, 3536, 588, 766, 628, 1438, 471, 1342, 518, 1473, 358, 1004, 8395, 468, 766, 1446, 1410, 506, 316, 1122, 980, 5, 766, 273, 1438, 18, 896, 1369, 143...
def fixAllPagesEncoding(self): for p in self.pageObjects(): fixEncoding(p) self.REQUEST.RESPONSE.redirect(self.REQUEST['URL1'])
if REQUEST: REQUEST.RESPONSE.redirect(self.pageUrl()) def fixAllPagesEncoding(self, REQUEST=None): for p in self.pageObjects(): fixEncoding(p) if REQUEST: REQUEST.RESPONSE.redirect(REQUEST['URL1'])
def fixEncoding(self, FROM='iso8859-1', TO='utf-8'): """ Try to fix any character encoding problems in this page's name or text.
d044409141fb7653a54c97551ef5ff828f47d2c2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5225/d044409141fb7653a54c97551ef5ff828f47d2c2/Admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 4705, 12, 2890, 16, 4571, 2218, 9699, 17258, 17, 21, 2187, 8493, 2218, 3158, 17, 28, 11, 4672, 3536, 6161, 358, 2917, 1281, 3351, 2688, 9688, 316, 333, 1363, 1807, 508, 578, 977, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 4705, 12, 2890, 16, 4571, 2218, 9699, 17258, 17, 21, 2187, 8493, 2218, 3158, 17, 28, 11, 4672, 3536, 6161, 358, 2917, 1281, 3351, 2688, 9688, 316, 333, 1363, 1807, 508, 578, 977, ...
(4.854..., 4.854...)
(4.8..., 4.8...)
def minimize_constrained(func,cons,x0,gradient=None, **args): r""" Minimize a function with constraints. INPUT: func - Either a symbolic function, or a Python function whose argument is a tuple with n components x0 - Initial point for finding minimum cons - constraints. This should be either a function or list of functions that must be positive. Alternatively, the constraints can be specified as a list of intervals that define the region we are minimizing in. If the constraints are specified as functions, the functions should be functions of a tuple with n components (assuming n variables). If the constraints are specifed as a list of intervals and there are no constraints for a given variable, that component can be [None,None]. gradient - Optional gradient function. This will be computed automatically for symbolic functions. This is only used when the constraints are specified as a list of intervals. EXAMPLES: Let us maximize $x+y-50$ subject to the following constraints: $50*x+24*y<=2400$, $30*x+33*y<=2100$, $x>=45$, and $y>=5$. sage: y = var('y') sage: f = lambda p: -p[0]-p[1]+50 sage: c_1 = lambda p: p[0]-45 sage: c_2 = lambda p: p[1]-5 sage: c_3 = lambda p: -50*p[0]-24*p[1]+2400 sage: c_4 = lambda p: -30*p[0]-33*p[1]+2100 sage: a = minimize_constrained(f,[c_1,c_2,c_3,c_4],[2,3]) sage: a (45.0, 6.25) Let's find a minimum of sin(x*y): sage: x,y = var('x y') sage: f = sin(x*y) sage: minimize_constrained(f, [[None,None],[4,10]],[5,5]) (4.854..., 4.854...) """ from sage.calculus.calculus import SymbolicExpression import scipy from scipy import optimize function_type=type(lambda x,y: x+y) if isinstance(func,SymbolicExpression): var_list=func.variables() var_names=map(str,var_list) fast_f=func._fast_float_(*var_names) f=lambda p: fast_f(*p) gradient_list=func.gradient() fast_gradient_functions=[gradient_list[i]._fast_float_(*var_names) for i in xrange(len(gradient_list))] gradient=lambda p: scipy.array([ a(*p) for a in fast_gradient_functions]) else: f=func if isinstance(cons,list): if isinstance(cons[0],tuple) or isinstance(cons[0],list) or cons[0]==None: if gradient!=None: min= optimize.fmin_tnc(f,x0,gradient,bounds=cons,messages=0,**args)[0] else: min= optimize.fmin_tnc(f,x0,approx_grad=True,bounds=cons,messages=0,**args)[0] elif isinstance(cons[0],function_type): min= optimize.fmin_cobyla(f,x0,cons,iprint=0,**args) elif isinstance(cons, function_type): min= optimize.fmin_cobyla(f,x0,cons,iprint=0,**args) return vector(RDF,min)
45bc204f8718d10dc90cdf5f35a29156308ffb19 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/45bc204f8718d10dc90cdf5f35a29156308ffb19/optimize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18935, 67, 591, 31142, 12, 644, 16, 8559, 16, 92, 20, 16, 20219, 33, 7036, 16, 2826, 1968, 4672, 436, 8395, 5444, 10153, 279, 445, 598, 6237, 18, 225, 12943, 30, 1326, 300, 14635, 279,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18935, 67, 591, 31142, 12, 644, 16, 8559, 16, 92, 20, 16, 20219, 33, 7036, 16, 2826, 1968, 4672, 436, 8395, 5444, 10153, 279, 445, 598, 6237, 18, 225, 12943, 30, 1326, 300, 14635, 279,...
usage = usage + " [default = %g]\n" % size.getConstant("GMEMCEIL") usage = usage + " --OFAC=<value> : Overlap factor between mesh partitions\n" usage = usage + " [default = %g]\n" % size.getConstant("OFAC") usage = usage + " --REDFAC=<value> : The maximum factor by which a domain\n"
usage = usage + " [default = %g]\n" % size.getConstant("gmemceil") usage = usage + " --ofrac=<value> : Overlap factor between mesh partitions\n" usage = usage + " [default = %g]\n" % size.getConstant("ofrac") usage = usage + " --redfac=<value> : The maximum factor by which a domain\n"
def usage(): """ Display the usage information for this script """ size = psize.Psize() usage = "\n" usage = usage + "Use this script to generate new APBS input files or split an existing\n" usage = usage + "parallel input file into multiple async files.\n\n" usage = usage + "Usage: inputgen.py [opts] <filename>\n" usage = usage + "Optional Arguments:\n" usage = usage + " --help : Display this text\n" usage = usage + " --split : Split an existing parallel input file to multiple\n" usage = usage + " async input files.\n" usage = usage + " --METHOD=<value> : Force output file to write a specific APBS ELEC\n" usage = usage + " method. Options are para (parallel), auto\n" usage = usage + " (automatic), manual (manual), or async (asynchronous).\n" usage = usage + " solve. async will result in multiple input files.\n" usage = usage + " --CFAC=<value> : Factor by which to expand molecular dimensions to\n" usage = usage + " get coarse grid dimensions.\n" usage = usage + " [default = %g]\n" % size.getConstant("CFAC") usage = usage + " --FADD=<value> : Amount to add to molecular dimensions to get fine\n" usage = usage + " grid dimensions.\n" usage = usage + " [default = %g]\n" % size.getConstant("FADD") usage = usage + " --SPACE=<value> : Desired fine mesh resolution\n" usage = usage + " [default = %g]\n" % size.getConstant("SPACE") usage = usage + " --GMEMFAC=<value> : Number of bytes per grid point required\n" usage = usage + " for sequential MG calculation\n" usage = usage + " [default = %g]\n" % size.getConstant("GMEMFAC") usage = usage + " --GMEMCEIL=<value> : Max MB allowed for sequential MG\n" usage = usage + " calculation. Adjust this to force the\n" usage = usage + " script to perform faster calculations (which\n" usage = usage + " require more parallelism).\n" usage = usage + " [default = %g]\n" % size.getConstant("GMEMCEIL") usage = usage + " --OFAC=<value> : Overlap factor between mesh partitions\n" usage = usage + " [default = %g]\n" % size.getConstant("OFAC") usage = usage + " --REDFAC=<value> : The maximum factor by which a domain\n" usage = usage + " dimension can be reduced during focusing\n" usage = usage + " [default = %g]\n" % size.getConstant("REDFAC") sys.stderr.write(usage) sys.exit(2)
912f0129618665235b69999c1a5afc8a34bc3f0a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8179/912f0129618665235b69999c1a5afc8a34bc3f0a/inputgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 3536, 9311, 326, 4084, 1779, 364, 333, 2728, 3536, 963, 273, 293, 1467, 18, 52, 1467, 1435, 4084, 273, 1548, 82, 6, 4084, 273, 4084, 397, 315, 3727, 333, 2728, 358, 2103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 3536, 9311, 326, 4084, 1779, 364, 333, 2728, 3536, 963, 273, 293, 1467, 18, 52, 1467, 1435, 4084, 273, 1548, 82, 6, 4084, 273, 4084, 397, 315, 3727, 333, 2728, 358, 2103, ...
'nds': [u'Mehrdüdig Begreep'],
'nds': [u'Mehrdüdig Begreep', 'Disambig'],
def __init__(self): family.Family.__init__(self) self.name = 'wikipedia'
cf212e6d90e5c18d2e4fdfc6d63af4911fe41e56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/cf212e6d90e5c18d2e4fdfc6d63af4911fe41e56/wikipedia_family.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 11999, 13744, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 11999, 13744, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for name in dirs:
for name in dirs[:]:
def getVersions(self, libraryVersions): versions = {} libraryPath = os.path.join(self.repository.dir, self.dir) for root, dirs, files in os.walk(libraryPath, topdown=True): for name in dirs: console.indent() # only check direct subfolders of the library, ignore .svn etc. if root == libraryPath and name[0] != ".": # only get requested versions if len(libraryVersions) > 0: if name in libraryVersions: console.info("Processing selected version %s" %name) libVersion = LibraryVersion(self, name) versions[name] = libVersion elif name == "trunk" or "." in name: console.info("Processing found version %s" %name) libVersion = LibraryVersion(self, name) versions[name] = libVersion console.outdent() return versions
3c20e1728f21800cdd9de7d2a64596f42e2a380a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/3c20e1728f21800cdd9de7d2a64596f42e2a380a/repository.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5940, 12, 2890, 16, 5313, 5940, 4672, 5244, 273, 2618, 5313, 743, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 9071, 18, 1214, 16, 365, 18, 1214, 13, 364, 1365, 16, 7717, 16, 139...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5940, 12, 2890, 16, 5313, 5940, 4672, 5244, 273, 2618, 5313, 743, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 9071, 18, 1214, 16, 365, 18, 1214, 13, 364, 1365, 16, 7717, 16, 139...
x[...] = foo()
for i in range(len(x)) : x[i] = foo()
def logical_and(self, obj) : return np.bool_(1)
7592038573ef5396d401d623fe8012c09733e8ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/7592038573ef5396d401d623fe8012c09733e8ea/test_ufunc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6374, 67, 464, 12, 2890, 16, 1081, 13, 294, 327, 1130, 18, 6430, 67, 12, 21, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6374, 67, 464, 12, 2890, 16, 1081, 13, 294, 327, 1130, 18, 6430, 67, 12, 21, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
loans_table.c.movie_id==movies_table.c.movie_id)))
loans_table.c.movie_id==movies_table.c.movie_id)), foreign_keys=[movies_table.c.movie_id, movies_table.c.collection_id, movies_table.c.volume_id])
def __repr__(self): return "<MovieTag:%s-%s>" % (self.movie_id, self.tag_id)
369e47df7d3babe2c7f396d3907cbf8b83e4effc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2687/369e47df7d3babe2c7f396d3907cbf8b83e4effc/db.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 3532, 16727, 13120, 1805, 5319, 87, 6456, 87, 2984, 738, 261, 2890, 18, 8683, 13120, 67, 350, 16, 365, 18, 2692, 67, 350, 13, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 3532, 16727, 13120, 1805, 5319, 87, 6456, 87, 2984, 738, 261, 2890, 18, 8683, 13120, 67, 350, 16, 365, 18, 2692, 67, 350, 13, 2, -100, -100, -100...
return os.path.join(prefix, "Mac", "Plugins")
return os.path.join(prefix, "Lib", "lib-dynload")
def get_python_lib(plat_specific=0, standard_lib=0, prefix=None): """Return the directory containing the Python library (standard or site additions). If 'plat_specific' is true, return the directory containing platform-specific modules, i.e. any module from a non-pure-Python module distribution; otherwise, return the platform-shared library directory. If 'standard_lib' is true, return the directory containing standard Python library modules; otherwise, return the directory for site-specific modules. If 'prefix' is supplied, use it instead of sys.prefix or sys.exec_prefix -- i.e., ignore 'plat_specific'. """ if prefix is None: prefix = plat_specific and EXEC_PREFIX or PREFIX if os.name == "posix": libpython = os.path.join(prefix, "lib", "python" + sys.version[:3]) if standard_lib: return libpython else: return os.path.join(libpython, "site-packages") elif os.name == "nt": if standard_lib: return os.path.join(prefix, "Lib") else: if sys.version < "2.2": return prefix else: return os.path.join(PREFIX, "Lib", "site-packages") elif os.name == "mac": if plat_specific: if standard_lib: return os.path.join(prefix, "Mac", "Plugins") else: raise DistutilsPlatformError( "OK, where DO site-specific extensions go on the Mac?") else: if standard_lib: return os.path.join(prefix, "Lib") else: raise DistutilsPlatformError( "OK, where DO site-specific modules go on the Mac?") else: raise DistutilsPlatformError( "I don't know where Python installs its library " "on platform '%s'" % os.name)
e5f8ca634b9c5952ba474a934fdf0c0b2c407647 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e5f8ca634b9c5952ba474a934fdf0c0b2c407647/sysconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8103, 67, 2941, 12, 412, 270, 67, 12524, 33, 20, 16, 4529, 67, 2941, 33, 20, 16, 1633, 33, 7036, 4672, 3536, 990, 326, 1867, 4191, 326, 6600, 5313, 261, 10005, 578, 2834, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8103, 67, 2941, 12, 412, 270, 67, 12524, 33, 20, 16, 4529, 67, 2941, 33, 20, 16, 1633, 33, 7036, 4672, 3536, 990, 326, 1867, 4191, 326, 6600, 5313, 261, 10005, 578, 2834, 26...
security.declarePublic('getSize')
security.declarePublic('get_size')
def get(self, instance, **kwargs): """Return computed value""" return eval(self.expression, {'context': instance, 'here' : instance})
017b15eab20541d72c433405b41e244927721f22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/017b15eab20541d72c433405b41e244927721f22/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 791, 16, 2826, 4333, 4672, 3536, 990, 8470, 460, 8395, 327, 5302, 12, 2890, 18, 8692, 16, 13666, 2472, 4278, 791, 16, 296, 14852, 11, 294, 791, 6792, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 791, 16, 2826, 4333, 4672, 3536, 990, 8470, 460, 8395, 327, 5302, 12, 2890, 18, 8692, 16, 13666, 2472, 4278, 791, 16, 296, 14852, 11, 294, 791, 6792, 2, -100, -100, ...
cmd = 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH_BACKUP ; export PATH=$PATH_BACKUP; export PYTHONPATH=$PYTHONPATH_BACKUP ; ' + cmd
cmd = 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH_BACKUP_ATH ; export PATH=$PATH_BACKUP_ATH; export PYTHONPATH=$PYTHONPATH_BACKUP_ATH ; ' + cmd
def findsetype(sitesrm): setype= 'NULL' if sitesrm.find('castor')>=0: setype = 'CASTOR' elif sitesrm.find('dpm')>=0: setype = 'DPM' elif sitesrm.find('pnfs')>=0: setype = 'DCACHE' elif sitesrm.find('/nfs/')>=0: setype = 'NFS' return setype
2f5e7c9a86b74e69cdae66877ca02de672fb569b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/2f5e7c9a86b74e69cdae66877ca02de672fb569b/ganga-stage-in-out-dq2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 542, 388, 12, 12180, 8864, 4672, 444, 388, 33, 296, 8560, 11, 225, 309, 9180, 8864, 18, 4720, 2668, 4155, 280, 6134, 34, 33, 20, 30, 444, 388, 273, 296, 21871, 916, 11, 1327, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 542, 388, 12, 12180, 8864, 4672, 444, 388, 33, 296, 8560, 11, 225, 309, 9180, 8864, 18, 4720, 2668, 4155, 280, 6134, 34, 33, 20, 30, 444, 388, 273, 296, 21871, 916, 11, 1327, 9...
return http.Response(stream=message("illegal link attempt!"))
return HTMLResponse(stream=message("illegal link attempt!"))
def render(self, ctx): target_worksheet_filename = ctx.args['target'][0] data_filename = ctx.args['filename'][0] src = os.path.abspath(self.worksheet.data_directory() + '/' +data_filename) target_ws = notebook.get_worksheet_with_filename(target_worksheet_filename) target = os.path.abspath(target_ws.data_directory() + '/' + data_filename) if target_ws.owner() != self.username and not target_ws.user_is_collaborator(self.username): return http.Response(stream=message("illegal link attempt!")) os.system('ln "%s" "%s"'%(src, target)) return http.RedirectResponse('/home/'+target_ws.filename() + '/datafile?name=%s'%data_filename)
5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 1018, 67, 1252, 8118, 67, 3459, 273, 1103, 18, 1968, 3292, 3299, 3546, 63, 20, 65, 501, 67, 3459, 273, 1103, 18, 1968, 3292, 3459, 3546, 63, 20, 65, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 1018, 67, 1252, 8118, 67, 3459, 273, 1103, 18, 1968, 3292, 3299, 3546, 63, 20, 65, 501, 67, 3459, 273, 1103, 18, 1968, 3292, 3459, 3546, 63, 20, 65, 1...
or not parameters.config['preferences.use_weight_plan'] or not parameters.config['preferences.plot_weight_plan']))\
or not parameters.config['preferences.use_weight_plan'] \ or not parameters.config['preferences.plot_weight_plan'])) \
def set_plot_action_active(self): """Tests, whether a dataset exists and matplotlib is available and sets sensitivity of the plot action accordingly.""" if (len(datasets.all_datasets) == 0 and \ (len(datasets.plan_datasets) == 0 \ or not parameters.config['preferences.use_weight_plan'] or not parameters.config['preferences.plot_weight_plan']))\ or not parameters.have_mpl: self.plotaction.set_sensitive(False) elif self.plotaction.get_sensitive() == False and parameters.have_mpl: self.plotaction.set_sensitive(True)
ca873bec51191bfac2f276eaefa87e8dd7a31de7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3074/ca873bec51191bfac2f276eaefa87e8dd7a31de7/window_main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 4032, 67, 1128, 67, 3535, 12, 2890, 4672, 3536, 14650, 16, 2856, 279, 3709, 1704, 471, 13892, 353, 2319, 471, 1678, 15390, 20862, 434, 326, 3207, 1301, 15905, 12123, 309, 261, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 4032, 67, 1128, 67, 3535, 12, 2890, 4672, 3536, 14650, 16, 2856, 279, 3709, 1704, 471, 13892, 353, 2319, 471, 1678, 15390, 20862, 434, 326, 3207, 1301, 15905, 12123, 309, 261, 1...
logger.info("Re-Installing dependency %s:" % dependency)
logger.info(" re-Installing QI dependency %s:" % dependency)
def installQIDependencies(context): """This is for old-style products using QuickInstaller""" site = context.getSite() qi = getToolByName(site, 'portal_quickinstaller') for dependency in DEPENDENCIES: if qi.isProductInstalled(dependency): logger.info("Re-Installing dependency %s:" % dependency) qi.reinstallProducts([dependency]) else: logger.info("Installing dependency %s:" % dependency) qi.installProducts([dependency])
7b33c7f6ee6b2ef5a75bdcd6be13bac8dee5fb2d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11941/7b33c7f6ee6b2ef5a75bdcd6be13bac8dee5fb2d/setuphandlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 53, 734, 881, 409, 3209, 12, 2472, 4672, 3536, 2503, 353, 364, 1592, 17, 4060, 10406, 1450, 19884, 18678, 8395, 2834, 273, 819, 18, 588, 4956, 1435, 1043, 77, 273, 336, 6364, 5911,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 53, 734, 881, 409, 3209, 12, 2472, 4672, 3536, 2503, 353, 364, 1592, 17, 4060, 10406, 1450, 19884, 18678, 8395, 2834, 273, 819, 18, 588, 4956, 1435, 1043, 77, 273, 336, 6364, 5911,...
sage: t
sage.: t '0.36 real 0.19 user 0.00 sys'
def qsieve(n, block=True, time=False, verbose=False): """ Run Hart's quadratic sieve and return the distinct proper factors of the integer n that it finds. INPUT: n -- an integer with at least 40 digits block -- (default: True) if True, you must wait until the sieve computation is complete before using SAGE further. If False, SAGE will run while the sieve computation runs in parallel. time -- (default: False) if True, time the command using the UNIX "time" command (which you might have to install). verbose -- (default: False) if True, print out verbose logging information about what happened during the Sieve run (for non-blocking Sieve, verbose information is always available via the log() method.) OUTPUT: list -- a list of the distinct proper factors of n found str -- the time in cpu seconds that the computation took, as given by the command line time command. (If time is False, this is always an empty string.) EXAMPLES: sage: k = 19; n = next_prime(10^k)*next_prime(10^(k+1)) sage: factor(n) # (currently) uses PARI 10000000000000000051 * 100000000000000000039 sage: v, t = qsieve(n, time=True) # uses the sieve (optional: time doesn't work on cygwin) sage: v # optional [10000000000000000051, 100000000000000000039] sage: t # random output # optional """ Z = sage.rings.integer.Integer n = Z(n) if len(str(n)) < 40: raise ValueError, "n must have at least 40 digits" if block: return qsieve_block(n, time, verbose) else: return qsieve_nonblock(n, time)
2deb32b0c430790b2ca2a961fbc8993d90dc478c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/2deb32b0c430790b2ca2a961fbc8993d90dc478c/qsieve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8719, 21271, 12, 82, 16, 1203, 33, 5510, 16, 813, 33, 8381, 16, 3988, 33, 8381, 4672, 3536, 1939, 670, 485, 1807, 26146, 272, 21271, 471, 327, 326, 10217, 5338, 14490, 434, 326, 3571, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8719, 21271, 12, 82, 16, 1203, 33, 5510, 16, 813, 33, 8381, 16, 3988, 33, 8381, 4672, 3536, 1939, 670, 485, 1807, 26146, 272, 21271, 471, 327, 326, 10217, 5338, 14490, 434, 326, 3571, ...
value = ord(code[step]) + ord(code[step+1])*256
value = ord(co.co_code[step]) + ord(co.co_code[step+1])*256
def getargs(co): """Get information about the arguments accepted by a code object. Three things are returned: (args, varargs, varkw), where 'args' is a list of argument names (possibly containing nested lists), and 'varargs' and 'varkw' are the names of the * and ** arguments or None.""" if not iscode(co): raise TypeError('arg is not a code object') code = co.co_code nargs = co.co_argcount names = co.co_varnames args = list(names[:nargs]) step = 0 # The following acrobatics are for anonymous (tuple) arguments. for i in range(nargs): if args[i][:1] in ('', '.'): stack, remain, count = [], [], [] while step < len(code): op = ord(code[step]) step = step + 1 if op >= dis.HAVE_ARGUMENT: opname = dis.opname[op] value = ord(code[step]) + ord(code[step+1])*256 step = step + 2 if opname in ('UNPACK_TUPLE', 'UNPACK_SEQUENCE'): remain.append(value) count.append(value) elif opname == 'STORE_FAST': stack.append(names[value]) # Special case for sublists of length 1: def foo((bar)) # doesn't generate the UNPACK_TUPLE bytecode, so if # `remain` is empty here, we have such a sublist. if not remain: stack[0] = [stack[0]] break else: remain[-1] = remain[-1] - 1 while remain[-1] == 0: remain.pop() size = count.pop() stack[-size:] = [stack[-size:]] if not remain: break remain[-1] = remain[-1] - 1 if not remain: break args[i] = stack[0] varargs = None if co.co_flags & CO_VARARGS: varargs = co.co_varnames[nargs] nargs = nargs + 1 varkw = None if co.co_flags & CO_VARKEYWORDS: varkw = co.co_varnames[nargs] return args, varargs, varkw
aa821eac68fc8778ae839221feac4d870d81f190 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/aa821eac68fc8778ae839221feac4d870d81f190/inspect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1968, 12, 2894, 4672, 3536, 967, 1779, 2973, 326, 1775, 8494, 635, 279, 981, 733, 18, 225, 935, 992, 9198, 854, 2106, 30, 261, 1968, 16, 19732, 16, 569, 9987, 3631, 1625, 296, 196...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1968, 12, 2894, 4672, 3536, 967, 1779, 2973, 326, 1775, 8494, 635, 279, 981, 733, 18, 225, 935, 992, 9198, 854, 2106, 30, 261, 1968, 16, 19732, 16, 569, 9987, 3631, 1625, 296, 196...
if not kwargs.get("gf2",False): return SR_gf2n(n,r,c,e,star,**kwargs)
if not kwargs.get("gf2", False): return SR_gf2n(n, r, c, e, star, **kwargs)
def SR(n=1,r=1,c=1,e=4, star=False, **kwargs): """ Return a small scale variant of the AES polynomial system constructor subject to the following conditions: INPUT: n -- the number of rounds (default: 1) r -- the number of rows in the state array (default: 1) c -- the number of columns in the state array (default: 1) e -- the exponent of the finite extension field (default: 4) star -- determines if SR* or SR should be constructed (default: False) aes_mode -- as the SR key schedule specification differs slightly from the AES key schedule this parameter controls which schedule to use (default: True) gf2 -- generate polynomial systems over $\GF(2)$ rather than over $\GF(2^n)$ (default: False) order -- a string to specify the term ordering of the variables postfix -- a string which is appended after the variable name (default: '') allow_zero_inversions -- a boolean to controll whether zero inversions raise an exception (default: False) correct_only -- only include correct inversion polynomials (default: False, GF2 only) biaffine_only -- only include bilinear and biaffine inversion polynomials (default: True, GF2 only) EXAMPLES: sage: sr = mq.SR(1,1,1,4) sage: ShiftRows = sr.shift_rows_matrix() sage: MixColumns = sr.mix_columns_matrix() sage: Lin = sr.lin_matrix() sage: M = MixColumns * ShiftRows * Lin sage: print sr.hex_str_matrix(M) 5 1 C 5 2 2 1 F A 4 4 1 1 8 3 3 sage: sr = mq.SR(1,2,1,4) sage: ShiftRows = sr.shift_rows_matrix() sage: MixColumns = sr.mix_columns_matrix() sage: Lin = sr.lin_matrix() sage: M = MixColumns * ShiftRows * Lin sage: print sr.hex_str_matrix(M) F 3 7 F A 2 B A A A 5 6 8 8 4 9 7 8 8 2 D C C 3 4 6 C C 5 E F F A 2 B A F 3 7 F 8 8 4 9 A A 5 6 D C C 3 7 8 8 2 5 E F F 4 6 C C sage: sr = mq.SR(1,2,2,4) sage: ShiftRows = sr.shift_rows_matrix() sage: MixColumns = sr.mix_columns_matrix() sage: Lin = sr.lin_matrix() sage: M = MixColumns * ShiftRows * Lin sage: print sr.hex_str_matrix(M) F 3 7 F 0 0 0 0 0 0 0 0 A 2 B A A A 5 6 0 0 0 0 0 0 0 0 8 8 4 9 7 8 8 2 0 0 0 0 0 0 0 0 D C C 3 4 6 C C 0 0 0 0 0 0 0 0 5 E F F A 2 B A 0 0 0 0 0 0 0 0 F 3 7 F 8 8 4 9 0 0 0 0 0 0 0 0 A A 5 6 D C C 3 0 0 0 0 0 0 0 0 7 8 8 2 5 E F F 0 0 0 0 0 0 0 0 4 6 C C 0 0 0 0 A 2 B A F 3 7 F 0 0 0 0 0 0 0 0 8 8 4 9 A A 5 6 0 0 0 0 0 0 0 0 D C C 3 7 8 8 2 0 0 0 0 0 0 0 0 5 E F F 4 6 C C 0 0 0 0 0 0 0 0 F 3 7 F A 2 B A 0 0 0 0 0 0 0 0 A A 5 6 8 8 4 9 0 0 0 0 0 0 0 0 7 8 8 2 D C C 3 0 0 0 0 0 0 0 0 4 6 C C 5 E F F 0 0 0 0 """ if not kwargs.get("gf2",False): return SR_gf2n(n,r,c,e,star,**kwargs) else: return SR_gf2(n,r,c,e,star,**kwargs)
e506ccc2459e6e3948659b0d1b28d9d6b70342e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e506ccc2459e6e3948659b0d1b28d9d6b70342e4/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19145, 12, 82, 33, 21, 16, 86, 33, 21, 16, 71, 33, 21, 16, 73, 33, 24, 16, 10443, 33, 8381, 16, 2826, 4333, 4672, 3536, 2000, 279, 5264, 3159, 5437, 434, 326, 15986, 16991, 2619, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19145, 12, 82, 33, 21, 16, 86, 33, 21, 16, 71, 33, 21, 16, 73, 33, 24, 16, 10443, 33, 8381, 16, 2826, 4333, 4672, 3536, 2000, 279, 5264, 3159, 5437, 434, 326, 15986, 16991, 2619, 3...
writeStubsForInterface(f, iface)
writeStubsForInterface(f, conf.customMethodCalls, iface)
def writeIncludesForInterface(iface): assert iface.kind == 'interface' resulttypes = [] for member in iface.stubMembers: resulttype = writeIncludesForMember(member) if resulttype is not None and not isVariantType(resulttype): resulttypes.append(resulttype.name) includeType(iface)
ff779f91c85a5fbb1f57868d70359366fb6c4a65 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/ff779f91c85a5fbb1f57868d70359366fb6c4a65/qsgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 16815, 1290, 1358, 12, 31479, 4672, 1815, 9751, 18, 9224, 422, 296, 5831, 11, 563, 2352, 273, 5378, 364, 3140, 316, 9751, 18, 12847, 6918, 30, 563, 723, 273, 1045, 16815, 1290, 441...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 16815, 1290, 1358, 12, 31479, 4672, 1815, 9751, 18, 9224, 422, 296, 5831, 11, 563, 2352, 273, 5378, 364, 3140, 316, 9751, 18, 12847, 6918, 30, 563, 723, 273, 1045, 16815, 1290, 441...
first_name, last_name = passwd[4].split(' ', 1)
names = passwd[4].split(' ', 1) first_name = names[0] last_name = None if len(names) > 1: last_name = names[1]
def get_or_create_user(self, username, passwd=None): try: user = User.objects.get(username=username) except User.DoesNotExist: try: if not passwd: passwd = nis.match(username, 'passwd').split(':') first_name, last_name = passwd[4].split(' ', 1) email = '%s@%s' % (username, settings.NIS_EMAIL_DOMAIN)
83f3f49ca51b59ae0b748c956e3d767f5290ee9c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1600/83f3f49ca51b59ae0b748c956e3d767f5290ee9c/backends.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 280, 67, 2640, 67, 1355, 12, 2890, 16, 2718, 16, 19093, 33, 7036, 4672, 775, 30, 729, 273, 2177, 18, 6911, 18, 588, 12, 5053, 33, 5053, 13, 1335, 2177, 18, 15264, 30, 775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 280, 67, 2640, 67, 1355, 12, 2890, 16, 2718, 16, 19093, 33, 7036, 4672, 775, 30, 729, 273, 2177, 18, 6911, 18, 588, 12, 5053, 33, 5053, 13, 1335, 2177, 18, 15264, 30, 775, ...
"Return the column number where the current event ends." return -1
"Return the column number where the current event ends." return -1
def getColumnNumber(self):
6495c96ce68c1d4088edc1f493b35e11103b0d82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6495c96ce68c1d4088edc1f493b35e11103b0d82/xmlreader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6716, 1854, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6716, 1854, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
wikipedia.output(u"Another edit conflict... well, i skip the report for this time...") except: traceback.print_stack() wikipedia.output(u"A generic error has occured, skipping the report.") elif log_variable == False: pass if recursive == True: wikipedia.output(u"Sleeping " + str(time_variable) + u" seconds before rerun. " + time.strftime(u"%d %b %Y %H:%M:%S (UTC)", time.gmtime())) time.sleep(time_variable) elif recursive == False: wikipedia.output(u"Stop!") wikipedia.stopme() break
wikipedia.output(u"An edit conflict has occured. Pausing for 10 seconds before continuing.") time.sleep(10) pl = wikipedia.Page(welcomesite, target) try: pl.put(''.join(safety), summ2) except wikipedia.EditConflict: wikipedia.output(u"Another edit conflict... well, i skip the report for this time...") continue elif log_variable == False: pass if recursive == True: wikipedia.output(u"Sleeping " + str(time_variable) + u" seconds before rerun. " + time.strftime(u"%d %b %Y %H:%M:%S (UTC)", time.gmtime())) time.sleep(time_variable) elif recursive == False: wikipedia.output(u"Stop!") break wikipedia.stopme() finally: wikipedia.stopme()
def report(lang, rep_page, username, com, rep): another_page = wikipedia.Page(lang, rep_page) if another_page.exists(): text_get = another_page.get() else: text_get = '' pos = 0 # The talk page includes "_" between the two names, in this way i replace them to " " regex = talk.replace('_', ' ') + username n = re.compile(regex, re.UNICODE) y = n.search(text_get, pos) if y == None: # Adding the log :) rep_text = rep % username another_page.put(text_get + rep_text, comment = com, minorEdit = True) wikipedia.output(u"...Reported...") else: pos = y.end() wikipedia.output(u"The user is already in the report page.")
dfe6e60e902823a8403f731ef0b42749b0157909 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/dfe6e60e902823a8403f731ef0b42749b0157909/welcome.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 12, 4936, 16, 2071, 67, 2433, 16, 2718, 16, 532, 16, 2071, 4672, 4042, 67, 2433, 273, 21137, 18, 1964, 12, 4936, 16, 2071, 67, 2433, 13, 309, 4042, 67, 2433, 18, 1808, 13332, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 12, 4936, 16, 2071, 67, 2433, 16, 2718, 16, 532, 16, 2071, 4672, 4042, 67, 2433, 273, 21137, 18, 1964, 12, 4936, 16, 2071, 67, 2433, 13, 309, 4042, 67, 2433, 18, 1808, 13332, 9...
data['results'] = _('Error')
data['results'] = _('Error')
def wishlist_add_ajax(request, template="shop/json.html"): data = {'errors': []} product = None formdata = request.POST.copy() productslug = formdata['productname'] log.debug('WISHLIST AJAX: slug=%s', productslug) try: product, details = product_from_post(productslug, formdata) except (Product.DoesNotExist, MultiValueDictKeyError): log.warn("Could not find product: %s", productslug) product = None if not product: data['errors'].append(('product', _('The product you have requested does not exist.'))) try: contact = Contact.objects.from_request(request) except Contact.DoesNotExist: log.warn("Could not find contact") if not contact: data['errors'].append(('contact', _('The contact associated with this request does not exist.'))) else: data['id'] = product.id data['name'] = product.translated_name() if not data['errors']: wish = ProductWish.objects.create_if_new(product, contact, details) data['results'] = _('Success') else: data['results'] = _('Error') encoded = JSONEncoder().encode(data) encoded = mark_safe(encoded) log.debug('WISHLIST AJAX: %s', data) return render_to_response(template, {'json' : encoded})
93da781fe3d22eec1c82bcc527f3f3a2a87515cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/171/93da781fe3d22eec1c82bcc527f3f3a2a87515cf/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14302, 1098, 67, 1289, 67, 12813, 12, 2293, 16, 1542, 1546, 5020, 19, 1977, 18, 2620, 6, 4672, 501, 273, 13666, 4324, 4278, 5378, 97, 3017, 273, 599, 30642, 273, 590, 18, 3798, 18, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14302, 1098, 67, 1289, 67, 12813, 12, 2293, 16, 1542, 1546, 5020, 19, 1977, 18, 2620, 6, 4672, 501, 273, 13666, 4324, 4278, 5378, 97, 3017, 273, 599, 30642, 273, 590, 18, 3798, 18, 353...
subjectCtrl,fromCtrl,toCtrl,copyCtrl,outTextCtrl,textsCtrl,toNameCtrl, topSizer = SendMailConfig(
subjectCtrl,fromCtrl,toCtrl,copyCtrl,outTextCtrl,textsCtrl,toNameCtrl, topSizer = SendCfg(
def Configure( self, sbjct = '', From = '', To = '', Copy = '', Txt = '', Append = '', toName = ''
b38dc8881c425781e3bd5f610cc554c4d034a6be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/b38dc8881c425781e3bd5f610cc554c4d034a6be/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11758, 12, 365, 16, 272, 441, 299, 273, 10226, 6338, 273, 10226, 2974, 273, 10226, 5631, 273, 10226, 6424, 88, 273, 10226, 6181, 273, 10226, 358, 461, 273, 875, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11758, 12, 365, 16, 272, 441, 299, 273, 10226, 6338, 273, 10226, 2974, 273, 10226, 5631, 273, 10226, 6424, 88, 273, 10226, 6181, 273, 10226, 358, 461, 273, 875, 2, -100, -100, -100, -100...
jobid = str(job['name']).strip()
jobid = str(job.runningJob['schedulerId']).strip()
def query(self, obj, service='', objType='node'): """ Query status and eventually other scheduler related information, and store it in the job.runningJob data structure.
030ccde40c7985e44f725ec371ed86782575cbbc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/030ccde40c7985e44f725ec371ed86782575cbbc/SchedulerARC.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 2890, 16, 1081, 16, 1156, 2218, 2187, 30078, 2218, 2159, 11, 4672, 3536, 2770, 1267, 471, 18011, 1308, 8129, 3746, 1779, 16, 471, 1707, 518, 316, 326, 1719, 18, 8704, 2278, 501,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 2890, 16, 1081, 16, 1156, 2218, 2187, 30078, 2218, 2159, 11, 4672, 3536, 2770, 1267, 471, 18011, 1308, 8129, 3746, 1779, 16, 471, 1707, 518, 316, 326, 1719, 18, 8704, 2278, 501,...
self.run_script_if_needed(self.after_script, 'post-connection')
self.run_script_if_needed(self.after_script, 'post-connection', self.network['bssid'], self.network['essid'])
def run(self): """ The main function of the connection thread.
d84912aaad167ca24f346cfb42c6a37b20fb0bd3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12280/d84912aaad167ca24f346cfb42c6a37b20fb0bd3/networking.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 1021, 2774, 445, 434, 326, 1459, 2650, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 1021, 2774, 445, 434, 326, 1459, 2650, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
class POLYPOLYLINE(EMR_UNKNOWN):
class _POLYPOLYLINE(_EMR_UNKNOWN):
def str_extra(self): txt=StringIO() start=0 txt.write("\tpoints: %s\n" % str(self.aptl)) return txt.getvalue()
688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 609, 67, 7763, 12, 2890, 4672, 6463, 33, 780, 4294, 1435, 787, 33, 20, 6463, 18, 2626, 31458, 88, 4139, 30, 738, 87, 64, 82, 6, 738, 609, 12, 2890, 18, 1657, 80, 3719, 225, 327, 64...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 609, 67, 7763, 12, 2890, 4672, 6463, 33, 780, 4294, 1435, 787, 33, 20, 6463, 18, 2626, 31458, 88, 4139, 30, 738, 87, 64, 82, 6, 738, 609, 12, 2890, 18, 1657, 80, 3719, 225, 327, 64...
raise ParserError("while scanning a flow mapping", self.marks[-1],
raise ParserError("while parsing a flow mapping", self.marks[-1],
def parse_flow_mapping_key(self, first=False): if not self.check_token(FlowMappingEndToken): if not first: if self.check_token(FlowEntryToken): self.get_token() else: token = self.peek_token() raise ParserError("while scanning a flow mapping", self.marks[-1], "expected ',' or '}', but got %r" % token.id, token.start_mark) if self.check_token(KeyToken): token = self.get_token() if not self.check_token(ValueToken, FlowEntryToken, FlowMappingEndToken): self.states.append(self.parse_flow_mapping_value) return self.parse_flow_node() else: self.state = self.parse_flow_mapping_value return self.process_empty_scalar(token.end_mark) elif not self.check_token(FlowMappingEndToken): self.states.append(self.parse_flow_mapping_empty_value) return self.parse_flow_node() token = self.get_token() event = MappingEndEvent(token.start_mark, token.end_mark) self.state = self.states.pop() self.marks.pop() return event
95c8976b37428c048ea78c18be63c03897557c21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12018/95c8976b37428c048ea78c18be63c03897557c21/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2426, 67, 6770, 67, 856, 12, 2890, 16, 1122, 33, 8381, 4672, 309, 486, 365, 18, 1893, 67, 2316, 12, 5249, 3233, 1638, 1345, 4672, 309, 486, 1122, 30, 309, 365, 18, 1893, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2426, 67, 6770, 67, 856, 12, 2890, 16, 1122, 33, 8381, 4672, 309, 486, 365, 18, 1893, 67, 2316, 12, 5249, 3233, 1638, 1345, 4672, 309, 486, 1122, 30, 309, 365, 18, 1893, 67...
print "(line %d)" % record.tagline
print "(line %d)" % record.position
def run_editor(file): from subprocess import Popen Popen((os.environ.get("EDITOR", "notepad.exe"), file))
fe06daaa1051baab699eb7ea918eaa60206cd9c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4609/fe06daaa1051baab699eb7ea918eaa60206cd9c7/accdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 9177, 12, 768, 4672, 628, 6652, 1930, 14339, 14339, 12443, 538, 18, 28684, 18, 588, 2932, 13208, 3113, 315, 902, 881, 361, 18, 14880, 6, 3631, 585, 3719, 225, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 9177, 12, 768, 4672, 628, 6652, 1930, 14339, 14339, 12443, 538, 18, 28684, 18, 588, 2932, 13208, 3113, 315, 902, 881, 361, 18, 14880, 6, 3631, 585, 3719, 225, 2, -100, -100, ...
eggs, ws = self.egg.working_set(('zope.testing', ))
eggs, ws = self.egg.working_set(('nose', ))
def install(self): options = self.options dest = [] eggs, ws = self.egg.working_set(('zope.testing', ))
cd133f979f19bd1ee3a476c0fbd85860277a58da /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8505/cd133f979f19bd1ee3a476c0fbd85860277a58da/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 2890, 4672, 702, 273, 365, 18, 2116, 1570, 273, 5378, 9130, 564, 16, 4945, 273, 365, 18, 23171, 18, 20478, 67, 542, 12, 2668, 94, 1306, 18, 3813, 310, 2187, 8623, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 2890, 4672, 702, 273, 365, 18, 2116, 1570, 273, 5378, 9130, 564, 16, 4945, 273, 365, 18, 23171, 18, 20478, 67, 542, 12, 2668, 94, 1306, 18, 3813, 310, 2187, 8623, 2, -100, ...
self.verticalLayout_12.addLayout(self.horizontalLayout_12)
self.verticalLayout_13.addLayout(self.horizontalLayout_12)
def setupUi(self, ui): ui.setObjectName("ui") ui.resize(625, 637) self.verticalLayout_12 = QtGui.QVBoxLayout(ui) self.verticalLayout_12.setObjectName("verticalLayout_12") self.verticalLayout_3 = QtGui.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_13 = QtGui.QHBoxLayout() self.horizontalLayout_13.setObjectName("horizontalLayout_13") self.label = QtGui.QLabel(ui) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setObjectName("label") self.horizontalLayout_13.addWidget(self.label) self.comboBox_layers = QtGui.QComboBox(ui) self.comboBox_layers.setObjectName("comboBox_layers") self.horizontalLayout_13.addWidget(self.comboBox_layers) self.verticalLayout_3.addLayout(self.horizontalLayout_13) self.horizontalLayout_14 = QtGui.QHBoxLayout() self.horizontalLayout_14.setObjectName("horizontalLayout_14") self.label_5 = QtGui.QLabel(ui) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth()) self.label_5.setSizePolicy(sizePolicy) self.label_5.setObjectName("label_5") self.horizontalLayout_14.addWidget(self.label_5) self.lineEdit_crs = QtGui.QLineEdit(ui) self.lineEdit_crs.setEnabled(False) self.lineEdit_crs.setObjectName("lineEdit_crs") self.horizontalLayout_14.addWidget(self.lineEdit_crs) self.pushButton_crsChg = QtGui.QPushButton(ui) self.pushButton_crsChg.setEnabled(False) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_crsChg.sizePolicy().hasHeightForWidth()) self.pushButton_crsChg.setSizePolicy(sizePolicy) self.pushButton_crsChg.setObjectName("pushButton_crsChg") self.horizontalLayout_14.addWidget(self.pushButton_crsChg) self.verticalLayout_3.addLayout(self.horizontalLayout_14) self.verticalLayout_12.addLayout(self.verticalLayout_3) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.verticalLayout_6 = QtGui.QVBoxLayout() self.verticalLayout_6.setObjectName("verticalLayout_6") self.plainTextEdit_note = QtGui.QPlainTextEdit(ui) self.plainTextEdit_note.setEnabled(True) self.plainTextEdit_note.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.plainTextEdit_note.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.plainTextEdit_note.setReadOnly(True) self.plainTextEdit_note.setObjectName("plainTextEdit_note") self.verticalLayout_6.addWidget(self.plainTextEdit_note) self.groupBox = QtGui.QGroupBox(ui) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setObjectName("groupBox") self.verticalLayout_7 = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout_7.setObjectName("verticalLayout_7") self.horizontalLayout_6 = QtGui.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.label_2 = QtGui.QLabel(self.groupBox) self.label_2.setObjectName("label_2") self.horizontalLayout_6.addWidget(self.label_2) spacerItem = QtGui.QSpacerItem(28, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem) self.lineEdit_vertexX0 = QtGui.QLineEdit(self.groupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEdit_vertexX0.sizePolicy().hasHeightForWidth()) self.lineEdit_vertexX0.setSizePolicy(sizePolicy) self.lineEdit_vertexX0.setObjectName("lineEdit_vertexX0") self.horizontalLayout_6.addWidget(self.lineEdit_vertexX0) self.pushButton_startCapture = QtGui.QPushButton(self.groupBox) self.pushButton_startCapture.setObjectName("pushButton_startCapture") self.horizontalLayout_6.addWidget(self.pushButton_startCapture) spacerItem1 = QtGui.QSpacerItem(28, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem1) self.verticalLayout_7.addLayout(self.horizontalLayout_6) self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.label_3 = QtGui.QLabel(self.groupBox) self.label_3.setObjectName("label_3") self.horizontalLayout_7.addWidget(self.label_3) spacerItem2 = QtGui.QSpacerItem(28, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.horizontalLayout_7.addItem(spacerItem2) self.lineEdit_vertexY0 = QtGui.QLineEdit(self.groupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEdit_vertexY0.sizePolicy().hasHeightForWidth()) self.lineEdit_vertexY0.setSizePolicy(sizePolicy) self.lineEdit_vertexY0.setObjectName("lineEdit_vertexY0") self.horizontalLayout_7.addWidget(self.lineEdit_vertexY0) spacerItem3 = QtGui.QSpacerItem(28, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_7.addItem(spacerItem3) self.verticalLayout_7.addLayout(self.horizontalLayout_7) self.horizontalLayout_8 = QtGui.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.label_4 = QtGui.QLabel(self.groupBox) self.label_4.setObjectName("label_4") self.horizontalLayout_8.addWidget(self.label_4) spacerItem4 = QtGui.QSpacerItem(28, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.horizontalLayout_8.addItem(spacerItem4) self.lineEdit_vertexZ0 = QtGui.QLineEdit(self.groupBox) self.lineEdit_vertexZ0.setEnabled(False) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEdit_vertexZ0.sizePolicy().hasHeightForWidth()) self.lineEdit_vertexZ0.setSizePolicy(sizePolicy) self.lineEdit_vertexZ0.setObjectName("lineEdit_vertexZ0") self.horizontalLayout_8.addWidget(self.lineEdit_vertexZ0) spacerItem5 = QtGui.QSpacerItem(28, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_8.addItem(spacerItem5) self.verticalLayout_7.addLayout(self.horizontalLayout_8) self.verticalLayout_6.addWidget(self.groupBox) self.groupBox_2 = QtGui.QGroupBox(ui) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth()) self.groupBox_2.setSizePolicy(sizePolicy) self.groupBox_2.setObjectName("groupBox_2") self.verticalLayout_8 = QtGui.QVBoxLayout(self.groupBox_2) self.verticalLayout_8.setObjectName("verticalLayout_8") self.horizontalLayout_9 = QtGui.QHBoxLayout() self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.label_8 = QtGui.QLabel(self.groupBox_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth()) self.label_8.setSizePolicy(sizePolicy) self.label_8.setObjectName("label_8") self.horizontalLayout_9.addWidget(self.label_8) spacerItem6 = QtGui.QSpacerItem(2, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.horizontalLayout_9.addItem(spacerItem6) self.lineEdit_nextAzimuth = QtGui.QLineEdit(self.groupBox_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEdit_nextAzimuth.sizePolicy().hasHeightForWidth()) self.lineEdit_nextAzimuth.setSizePolicy(sizePolicy) self.lineEdit_nextAzimuth.setObjectName("lineEdit_nextAzimuth") self.horizontalLayout_9.addWidget(self.lineEdit_nextAzimuth) spacerItem7 = QtGui.QSpacerItem(28, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_9.addItem(spacerItem7) self.verticalLayout_8.addLayout(self.horizontalLayout_9) self.horizontalLayout_10 = QtGui.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.label_9 = QtGui.QLabel(self.groupBox_2) self.label_9.setObjectName("label_9") self.horizontalLayout_10.addWidget(self.label_9) self.lineEdit_nextDistance = QtGui.QLineEdit(self.groupBox_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEdit_nextDistance.sizePolicy().hasHeightForWidth()) self.lineEdit_nextDistance.setSizePolicy(sizePolicy) self.lineEdit_nextDistance.setObjectName("lineEdit_nextDistance") self.horizontalLayout_10.addWidget(self.lineEdit_nextDistance) spacerItem8 = QtGui.QSpacerItem(26, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_10.addItem(spacerItem8) self.verticalLayout_8.addLayout(self.horizontalLayout_10) self.horizontalLayout_11 = QtGui.QHBoxLayout() self.horizontalLayout_11.setObjectName("horizontalLayout_11") self.label_10 = QtGui.QLabel(self.groupBox_2) self.label_10.setObjectName("label_10") self.horizontalLayout_11.addWidget(self.label_10) spacerItem9 = QtGui.QSpacerItem(6, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.horizontalLayout_11.addItem(spacerItem9) self.lineEdit_nextVertical = QtGui.QLineEdit(self.groupBox_2) self.lineEdit_nextVertical.setEnabled(False) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEdit_nextVertical.sizePolicy().hasHeightForWidth()) self.lineEdit_nextVertical.setSizePolicy(sizePolicy) self.lineEdit_nextVertical.setObjectName("lineEdit_nextVertical") self.horizontalLayout_11.addWidget(self.lineEdit_nextVertical) spacerItem10 = QtGui.QSpacerItem(15, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.horizontalLayout_11.addItem(spacerItem10) self.pushButton_vertexInsert = QtGui.QPushButton(self.groupBox_2) self.pushButton_vertexInsert.setObjectName("pushButton_vertexInsert") self.horizontalLayout_11.addWidget(self.pushButton_vertexInsert) spacerItem11 = QtGui.QSpacerItem(28, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_11.addItem(spacerItem11) self.verticalLayout_8.addLayout(self.horizontalLayout_11) self.verticalLayout_6.addWidget(self.groupBox_2) self.horizontalLayout_4.addLayout(self.verticalLayout_6) self.verticalLayout_4 = QtGui.QVBoxLayout() self.verticalLayout_4.setObjectName("verticalLayout_4") self.surveyGrpBox = QtGui.QGroupBox(ui) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.surveyGrpBox.sizePolicy().hasHeightForWidth()) self.surveyGrpBox.setSizePolicy(sizePolicy) self.surveyGrpBox.setObjectName("surveyGrpBox") self.layoutWidget = QtGui.QWidget(self.surveyGrpBox) self.layoutWidget.setGeometry(QtCore.QRect(11, 20, 94, 51)) self.layoutWidget.setObjectName("layoutWidget") self.verticalLayout_10 = QtGui.QVBoxLayout(self.layoutWidget) self.verticalLayout_10.setObjectName("verticalLayout_10") self.radioButton_irrSurvey = QtGui.QRadioButton(self.layoutWidget) self.radioButton_irrSurvey.setEnabled(False) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.radioButton_irrSurvey.sizePolicy().hasHeightForWidth()) self.radioButton_irrSurvey.setSizePolicy(sizePolicy) self.radioButton_irrSurvey.setCheckable(True) self.radioButton_irrSurvey.setChecked(False) self.radioButton_irrSurvey.setObjectName("radioButton_irrSurvey") self.verticalLayout_10.addWidget(self.radioButton_irrSurvey) self.radioButton_polySurvey = QtGui.QRadioButton(self.layoutWidget) self.radioButton_polySurvey.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.radioButton_polySurvey.sizePolicy().hasHeightForWidth()) self.radioButton_polySurvey.setSizePolicy(sizePolicy) self.radioButton_polySurvey.setChecked(True) self.radioButton_polySurvey.setObjectName("radioButton_polySurvey") self.verticalLayout_10.addWidget(self.radioButton_polySurvey) self.verticalLayout_4.addWidget(self.surveyGrpBox) self.groupBox_3 = QtGui.QGroupBox(ui) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox_3.sizePolicy().hasHeightForWidth()) self.groupBox_3.setSizePolicy(sizePolicy) self.groupBox_3.setObjectName("groupBox_3") self.layoutWidget1 = QtGui.QWidget(self.groupBox_3) self.layoutWidget1.setGeometry(QtCore.QRect(10, 17, 241, 63)) self.layoutWidget1.setObjectName("layoutWidget1") self.gridLayout = QtGui.QGridLayout(self.layoutWidget1) self.gridLayout.setObjectName("gridLayout") self.radioButton_defaultNorth = QtGui.QRadioButton(self.layoutWidget1) self.radioButton_defaultNorth.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.radioButton_defaultNorth.sizePolicy().hasHeightForWidth()) self.radioButton_defaultNorth.setSizePolicy(sizePolicy) self.radioButton_defaultNorth.setCheckable(True) self.radioButton_defaultNorth.setChecked(True) self.radioButton_defaultNorth.setObjectName("radioButton_defaultNorth") self.gridLayout.addWidget(self.radioButton_defaultNorth, 0, 0, 1, 1) self.radioButton_magNorth = QtGui.QRadioButton(self.layoutWidget1) self.radioButton_magNorth.setEnabled(True) self.radioButton_magNorth.setChecked(False) self.radioButton_magNorth.setObjectName("radioButton_magNorth") self.gridLayout.addWidget(self.radioButton_magNorth, 1, 0, 1, 1) self.lineEdit_magNorth = QtGui.QLineEdit(self.layoutWidget1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEdit_magNorth.sizePolicy().hasHeightForWidth()) self.lineEdit_magNorth.setSizePolicy(sizePolicy) self.lineEdit_magNorth.setObjectName("lineEdit_magNorth") self.gridLayout.addWidget(self.lineEdit_magNorth, 1, 1, 1, 1) self.verticalLayout_4.addWidget(self.groupBox_3) self.groupBox_7 = QtGui.QGroupBox(ui) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox_7.sizePolicy().hasHeightForWidth()) self.groupBox_7.setSizePolicy(sizePolicy) self.groupBox_7.setObjectName("groupBox_7") self.layoutWidget2 = QtGui.QWidget(self.groupBox_7) self.layoutWidget2.setGeometry(QtCore.QRect(10, 10, 201, 41)) self.layoutWidget2.setObjectName("layoutWidget2") self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget2) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.radioButton_defaultUnits = QtGui.QRadioButton(self.layoutWidget2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.radioButton_defaultUnits.sizePolicy().hasHeightForWidth()) self.radioButton_defaultUnits.setSizePolicy(sizePolicy) self.radioButton_defaultUnits.setObjectName("radioButton_defaultUnits") self.horizontalLayout_2.addWidget(self.radioButton_defaultUnits) self.radioButton_englishUnits = QtGui.QRadioButton(self.layoutWidget2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.radioButton_englishUnits.sizePolicy().hasHeightForWidth()) self.radioButton_englishUnits.setSizePolicy(sizePolicy) self.radioButton_englishUnits.setObjectName("radioButton_englishUnits") self.horizontalLayout_2.addWidget(self.radioButton_englishUnits) spacerItem12 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem12) self.verticalLayout_4.addWidget(self.groupBox_7) self.groupBox_6 = QtGui.QGroupBox(ui) self.groupBox_6.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox_6.sizePolicy().hasHeightForWidth()) self.groupBox_6.setSizePolicy(sizePolicy) self.groupBox_6.setObjectName("groupBox_6") self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox_6) self.verticalLayout_5.setObjectName("verticalLayout_5") self.radioButton_azimuthAngle = QtGui.QRadioButton(self.groupBox_6) self.radioButton_azimuthAngle.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.radioButton_azimuthAngle.sizePolicy().hasHeightForWidth()) self.radioButton_azimuthAngle.setSizePolicy(sizePolicy) self.radioButton_azimuthAngle.setCheckable(True) self.radioButton_azimuthAngle.setChecked(True) self.radioButton_azimuthAngle.setObjectName("radioButton_azimuthAngle") self.verticalLayout_5.addWidget(self.radioButton_azimuthAngle) self.radioButton_bearingAngle = QtGui.QRadioButton(self.groupBox_6) self.radioButton_bearingAngle.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.radioButton_bearingAngle.sizePolicy().hasHeightForWidth()) self.radioButton_bearingAngle.setSizePolicy(sizePolicy) self.radioButton_bearingAngle.setChecked(False) self.radioButton_bearingAngle.setObjectName("radioButton_bearingAngle") self.verticalLayout_5.addWidget(self.radioButton_bearingAngle) self.radioButton_polarCoordAngle = QtGui.QRadioButton(self.groupBox_6) self.radioButton_polarCoordAngle.setEnabled(False) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.radioButton_polarCoordAngle.sizePolicy().hasHeightForWidth()) self.radioButton_polarCoordAngle.setSizePolicy(sizePolicy) self.radioButton_polarCoordAngle.setChecked(False) self.radioButton_polarCoordAngle.setObjectName("radioButton_polarCoordAngle") self.verticalLayout_5.addWidget(self.radioButton_polarCoordAngle) self.verticalLayout_4.addWidget(self.groupBox_6) self.horizontalLayout_4.addLayout(self.verticalLayout_4) self.verticalLayout_12.addLayout(self.horizontalLayout_4) self.horizontalLayout_12 = QtGui.QHBoxLayout() self.horizontalLayout_12.setObjectName("horizontalLayout_12") self.verticalLayout_11 = QtGui.QVBoxLayout() self.verticalLayout_11.setObjectName("verticalLayout_11") self.groupBox_8 = QtGui.QGroupBox(ui) self.groupBox_8.setObjectName("groupBox_8") self.verticalLayout_9 = QtGui.QVBoxLayout(self.groupBox_8) self.verticalLayout_9.setObjectName("verticalLayout_9") self.table_segmentList = QtGui.QTableWidget(self.groupBox_8) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.table_segmentList.sizePolicy().hasHeightForWidth()) self.table_segmentList.setSizePolicy(sizePolicy) self.table_segmentList.setObjectName("table_segmentList") self.table_segmentList.setColumnCount(3) self.table_segmentList.setRowCount(0) item = QtGui.QTableWidgetItem() self.table_segmentList.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.table_segmentList.setHorizontalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.table_segmentList.setHorizontalHeaderItem(2, item) self.verticalLayout_9.addWidget(self.table_segmentList) self.verticalLayout_11.addWidget(self.groupBox_8) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.pushButton_segListLoad = QtGui.QPushButton(ui) self.pushButton_segListLoad.setEnabled(True) self.pushButton_segListLoad.setObjectName("pushButton_segListLoad") self.horizontalLayout_3.addWidget(self.pushButton_segListLoad) self.pushButton_segListSave = QtGui.QPushButton(ui) self.pushButton_segListSave.setEnabled(True) self.pushButton_segListSave.setObjectName("pushButton_segListSave") self.horizontalLayout_3.addWidget(self.pushButton_segListSave) spacerItem13 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem13) self.pushButton_segListClear = QtGui.QPushButton(ui) self.pushButton_segListClear.setObjectName("pushButton_segListClear") self.horizontalLayout_3.addWidget(self.pushButton_segListClear) self.verticalLayout_11.addLayout(self.horizontalLayout_3) self.horizontalLayout_12.addLayout(self.verticalLayout_11) self.verticalLayout = QtGui.QVBoxLayout() self.verticalLayout.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint) self.verticalLayout.setObjectName("verticalLayout") self.pushButton_segListRowUp = QtGui.QPushButton(ui) self.pushButton_segListRowUp.setEnabled(False) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_segListRowUp.sizePolicy().hasHeightForWidth()) self.pushButton_segListRowUp.setSizePolicy(sizePolicy) self.pushButton_segListRowUp.setObjectName("pushButton_segListRowUp") self.verticalLayout.addWidget(self.pushButton_segListRowUp) self.pushButton_segListRowDn = QtGui.QPushButton(ui) self.pushButton_segListRowDn.setEnabled(False) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_segListRowDn.sizePolicy().hasHeightForWidth()) self.pushButton_segListRowDn.setSizePolicy(sizePolicy) self.pushButton_segListRowDn.setObjectName("pushButton_segListRowDn") self.verticalLayout.addWidget(self.pushButton_segListRowDn) spacerItem14 = QtGui.QSpacerItem(20, 28, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem14) self.pushButton_segListRowDel = QtGui.QPushButton(ui) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_segListRowDel.sizePolicy().hasHeightForWidth()) self.pushButton_segListRowDel.setSizePolicy(sizePolicy) self.pushButton_segListRowDel.setObjectName("pushButton_segListRowDel") self.verticalLayout.addWidget(self.pushButton_segListRowDel) self.horizontalLayout_12.addLayout(self.verticalLayout) self.verticalLayout_2 = QtGui.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.pushButton_objectDraw = QtGui.QPushButton(ui) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_objectDraw.sizePolicy().hasHeightForWidth()) self.pushButton_objectDraw.setSizePolicy(sizePolicy) self.pushButton_objectDraw.setObjectName("pushButton_objectDraw") self.verticalLayout_2.addWidget(self.pushButton_objectDraw) spacerItem15 = QtGui.QSpacerItem(28, 78, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem15) self.pushButton_dlgClose = QtGui.QPushButton(ui) self.pushButton_dlgClose.setObjectName("pushButton_dlgClose") self.verticalLayout_2.addWidget(self.pushButton_dlgClose) self.horizontalLayout_12.addLayout(self.verticalLayout_2) self.verticalLayout_12.addLayout(self.horizontalLayout_12) self.label_2.setBuddy(self.lineEdit_vertexX0) self.label_3.setBuddy(self.lineEdit_vertexY0) self.label_4.setBuddy(self.lineEdit_vertexZ0) self.label_8.setBuddy(self.lineEdit_nextAzimuth) self.label_9.setBuddy(self.lineEdit_nextDistance) self.label_10.setBuddy(self.lineEdit_nextVertical)
2503e9f807f1add21e1e4ab81249139c1d70195c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8312/2503e9f807f1add21e1e4ab81249139c1d70195c/Ui_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 5915, 4672, 5915, 18, 542, 16707, 2932, 4881, 7923, 5915, 18, 15169, 12, 26, 2947, 16, 1666, 6418, 13, 365, 18, 17824, 3744, 67, 2138, 273, 23425, 18, 53, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 5915, 4672, 5915, 18, 542, 16707, 2932, 4881, 7923, 5915, 18, 15169, 12, 26, 2947, 16, 1666, 6418, 13, 365, 18, 17824, 3744, 67, 2138, 273, 23425, 18, 53, 58...
for more information on the Konquerer remote-control interface.
for more information on the Konqueror remote-control interface.
def open_new(self, url): self._remote("openURL(%s, new-window)" % url)
c180d1dc7d5ec01801b6951a901f0e3eeff4aacb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c180d1dc7d5ec01801b6951a901f0e3eeff4aacb/webbrowser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 2704, 12, 2890, 16, 880, 4672, 365, 6315, 7222, 2932, 3190, 1785, 9275, 87, 16, 394, 17, 5668, 2225, 738, 880, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 2704, 12, 2890, 16, 880, 4672, 365, 6315, 7222, 2932, 3190, 1785, 9275, 87, 16, 394, 17, 5668, 2225, 738, 880, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
""+ _LegalCharsPatt +"+"
""+ _LegalCharsPatt +"+?"
def OutputString(self, attrs=None): # Build up our result # result = [] RA = result.append
c05abb3bdaa87b6e5ea2d6db1e5d6145ae2b0440 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c05abb3bdaa87b6e5ea2d6db1e5d6145ae2b0440/Cookie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3633, 780, 12, 2890, 16, 3422, 33, 7036, 4672, 468, 3998, 731, 3134, 563, 468, 563, 273, 5378, 26880, 273, 563, 18, 6923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3633, 780, 12, 2890, 16, 3422, 33, 7036, 4672, 468, 3998, 731, 3134, 563, 468, 563, 273, 5378, 26880, 273, 563, 18, 6923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def positionsOfUnmatchedPlus(self, i, dual=False, reverse=False):
def positionsOfUnmatchedMinus(self, i, dual=False, reverse=False):
def positionsOfUnmatchedPlus(self, i, dual=False, reverse=False):
7d49cba5272d285b94c3029efab8ce42770bb8fd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7d49cba5272d285b94c3029efab8ce42770bb8fd/crystals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6865, 951, 984, 11073, 13207, 12, 2890, 16, 277, 16, 24557, 33, 8381, 16, 4219, 33, 8381, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6865, 951, 984, 11073, 13207, 12, 2890, 16, 277, 16, 24557, 33, 8381, 16, 4219, 33, 8381, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return None
return 1
def changed_timestamp(self, target, prev_ni): cur_ni = self.get_ninfo() try: return cur_ni.timestamp > target.get_timestamp() except AttributeError: return None
51e9e984731099786dde743516977aaf03db853a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12817/51e9e984731099786dde743516977aaf03db853a/FS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3550, 67, 5508, 12, 2890, 16, 1018, 16, 2807, 67, 15834, 4672, 662, 67, 15834, 273, 365, 18, 588, 67, 82, 1376, 1435, 775, 30, 327, 662, 67, 15834, 18, 5508, 405, 1018, 18, 588, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3550, 67, 5508, 12, 2890, 16, 1018, 16, 2807, 67, 15834, 4672, 662, 67, 15834, 273, 365, 18, 588, 67, 82, 1376, 1435, 775, 30, 327, 662, 67, 15834, 18, 5508, 405, 1018, 18, 588, 67, ...
return _spacejoin(result)
return _semispacejoin(result)
def OutputString(self, attrs=None): # Build up our result # result = [] RA = result.append
a5884e244756452a6c5bd600142d210ac0099052 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a5884e244756452a6c5bd600142d210ac0099052/Cookie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3633, 780, 12, 2890, 16, 3422, 33, 7036, 4672, 468, 3998, 731, 3134, 563, 468, 563, 273, 5378, 26880, 273, 563, 18, 6923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3633, 780, 12, 2890, 16, 3422, 33, 7036, 4672, 468, 3998, 731, 3134, 563, 468, 563, 273, 5378, 26880, 273, 563, 18, 6923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
reportRequest[ 'startTime' ] = now - lastSeconds del( reportRequest[ 'lastSeconds' ] )
reportRequest[ 'startTime' ] = now - datetime.timedelta( seconds = lastSeconds )
def __checkPlotRequest( self, reportRequest ): #Check sliding plots if 'lastSeconds' in reportRequest: try: lastSeconds = long( reportRequest[ 'lastSeconds' ] ) except: return S_ERROR( "lastSeconds key must be a number" ) if lastSeconds < 3600: return S_ERROR( "lastSeconds must be more than 3600" ) now = Time.toEpoch() reportRequest[ 'endTime' ] = now reportRequest[ 'startTime' ] = now - lastSeconds del( reportRequest[ 'lastSeconds' ] ) #Check keys for key in self.__reportRequestDict: if key == 'extraArgs' and key not in reportRequest: reportRequest[ key ] = {} if not key in reportRequest: return S_ERROR( 'Missing mandatory field %s in plot reques' % key ) requestKeyType = type( reportRequest[ key ] ) if key in ( 'startTime', 'endTime' ): if requestKeyType not in self.__reportRequestDict[ key ]: return S_ERROR( "Type mismatch for field %s (%s), required one of %s" % ( key, str(requestKeyType), str( self.__reportRequestDict[ key ] ) ) ) reportRequest[ key ] = int( Time.toEpoch( reportRequest[ key ] ) ) else: if requestKeyType != self.__reportRequestDict[ key ]: return S_ERROR( "Type mismatch for field %s (%s), required %s" % ( key, str(requestKeyType), str( self.__reportRequestDict[ key ] ) ) ) return S_OK( reportRequest )
5fd58af393cd30bf99a9e697e749344a229ad99b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/5fd58af393cd30bf99a9e697e749344a229ad99b/ReportGeneratorHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 11532, 691, 12, 365, 16, 2605, 691, 262, 30, 468, 1564, 2020, 10415, 17931, 309, 296, 2722, 6762, 11, 316, 2605, 691, 30, 775, 30, 1142, 6762, 273, 1525, 12, 2605, 691, 63,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 11532, 691, 12, 365, 16, 2605, 691, 262, 30, 468, 1564, 2020, 10415, 17931, 309, 296, 2722, 6762, 11, 316, 2605, 691, 30, 775, 30, 1142, 6762, 273, 1525, 12, 2605, 691, 63,...
config = loadConfig(options['config']) try: options.update(dict((k, v) for k, v in config['tap'][self.tapname].iteritems() if options.get(k, None) is None)) except (KeyError, AttributeError), ex: pass if None in options.values(): raise Exception('Missing an essential parameter. Add it to config file or commandline.')
def makeService(self, options): config = loadConfig(options['config']) try: options.update(dict((k, v) for k, v in config['tap'][self.tapname].iteritems() if options.get(k, None) is None)) except (KeyError, AttributeError), ex: pass ## section in config file was not found if None in options.values(): raise Exception('Missing an essential parameter. Add it to config file or commandline.') exec 'from {0} import Service'.format(options['module']) in globals() return Service(**options)
711dca7cce501fbe929c90d1ca18b144996e024d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10390/711dca7cce501fbe929c90d1ca18b144996e024d/twistd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1179, 12, 2890, 16, 702, 4672, 642, 273, 27318, 12, 2116, 3292, 1425, 19486, 775, 30, 702, 18, 2725, 12, 1576, 12443, 79, 16, 331, 13, 364, 417, 16, 331, 316, 642, 3292, 29562, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1179, 12, 2890, 16, 702, 4672, 642, 273, 27318, 12, 2116, 3292, 1425, 19486, 775, 30, 702, 18, 2725, 12, 1576, 12443, 79, 16, 331, 13, 364, 417, 16, 331, 316, 642, 3292, 29562, ...
if sum(map(len, towrite)) >= self.minimum_chunk_size:
towrite_size += len(data) if towrite_size >= self.minimum_chunk_size:
def start_response(status, response_headers, exc_info=None): status_code[0] = status.split()[0] if exc_info: try: if headers_sent: # Re-raise original exception if headers sent raise exc_info[0], exc_info[1], exc_info[2] finally: # Avoid dangling circular ref exc_info = None
5db1ed5f590a5038ecd43ec89fd770e2be049509 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/5db1ed5f590a5038ecd43ec89fd770e2be049509/wsgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 2740, 12, 2327, 16, 766, 67, 2485, 16, 3533, 67, 1376, 33, 7036, 4672, 1267, 67, 710, 63, 20, 65, 273, 1267, 18, 4939, 1435, 63, 20, 65, 309, 3533, 67, 1376, 30, 775, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 2740, 12, 2327, 16, 766, 67, 2485, 16, 3533, 67, 1376, 33, 7036, 4672, 1267, 67, 710, 63, 20, 65, 273, 1267, 18, 4939, 1435, 63, 20, 65, 309, 3533, 67, 1376, 30, 775, 30, ...
src_statinfo = os.lstat(src)
hasheable = Hasheable(src_basename, src_dir=src_dir, dst_dir=dst_dir)
def do_update(self, subcmd, opts, startdir): """${cmd_name}: Update the hash pieces that are included in metalinks
a3e49364812dacde7fdeffc2846644b9d898c129 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10990/a3e49364812dacde7fdeffc2846644b9d898c129/metalink-hasher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2725, 12, 2890, 16, 720, 4172, 16, 1500, 16, 787, 1214, 4672, 3536, 18498, 4172, 67, 529, 6713, 2315, 326, 1651, 10167, 716, 854, 5849, 316, 5100, 16194, 87, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2725, 12, 2890, 16, 720, 4172, 16, 1500, 16, 787, 1214, 4672, 3536, 18498, 4172, 67, 529, 6713, 2315, 326, 1651, 10167, 716, 854, 5849, 316, 5100, 16194, 87, 2, -100, -100, -1...
For now, this means they have Ax (axis) pseudoatoms which are directly bonded.
For now, this means they have Ax (axis) pseudoatoms which are directly bonded (but not the same atom). WARNING: This is not a sufficient condition, since it doesn't say whether they're on the same "side" of the helix! Unfortunately that is not easy to tell (or even define, in the present model) since it does not necessarily mean the same strand (in the case of a crossover at that point). I [bruce 070604] think there is no local definition of this property which handles that case. I'm not sure whether this leads to any problems with when to offer Make or Remove Crossover -- maybe the overall conditions end up being sufficient; this needs review. Also, I'm not yet sure how big a deficiency it is in our model.
def bases_are_stacked(bases): """Say whether two Base_recognizers' bases are in helices, and stacked (one to the other). For now, this means they have Ax (axis) pseudoatoms which are directly bonded. """ try: len(bases) except: print "following exception concerns bases == %r" % (bases,) assert len(bases) == 2, "bases == %r should be a sequence of length 2" % (bases,) for b in bases: assert isinstance(b, Base_recognizer) for b in bases: if not b.in_helix: return False b1, b2 = bases return atoms_are_bonded(b1.axis_atom, b2.axis_atom)
f3409c2827e88ba9c4c98914a03ed544d2b23aff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/f3409c2827e88ba9c4c98914a03ed544d2b23aff/crossovers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8337, 67, 834, 67, 3772, 329, 12, 18602, 4672, 3536, 55, 528, 2856, 2795, 3360, 67, 3927, 4198, 8426, 11, 8337, 854, 316, 13150, 1242, 16, 471, 25776, 261, 476, 358, 326, 1308, 2934, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8337, 67, 834, 67, 3772, 329, 12, 18602, 4672, 3536, 55, 528, 2856, 2795, 3360, 67, 3927, 4198, 8426, 11, 8337, 854, 316, 13150, 1242, 16, 471, 25776, 261, 476, 358, 326, 1308, 2934, 2...
def _ensure_within_range(self, time, delta, which):
def _ensure_within_range(self, time, delta, pos_error, neg_error):
def _ensure_within_range(self, time, delta, which): """ Return new time (time + delta) or raise ValueError if it is not within the range [MIN_TIME, MAX_TIME]. """ new_time, overflow = self._calculate_overflow(time, delta) if overflow > 0: raise ValueError(_("%s time can't be after year 9989") % which) elif overflow < 0: raise ValueError(_("%s time can't be before year 10") % which) else: return new_time
81c24b66938f30cf26ff60e266925ad043d45f3c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5252/81c24b66938f30cf26ff60e266925ad043d45f3c/data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 15735, 67, 25850, 67, 3676, 12, 2890, 16, 813, 16, 3622, 16, 949, 67, 1636, 16, 4251, 67, 1636, 4672, 3536, 2000, 394, 813, 261, 957, 397, 3622, 13, 578, 1002, 2068, 309, 518, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 15735, 67, 25850, 67, 3676, 12, 2890, 16, 813, 16, 3622, 16, 949, 67, 1636, 16, 4251, 67, 1636, 4672, 3536, 2000, 394, 813, 261, 957, 397, 3622, 13, 578, 1002, 2068, 309, 518, 3...
self.set_vertex_filter(state["vertex_filter"][0], state["vertex_filter"][1]) self.set_edge_filter(state["edge_filter"][0], state["edge_filter"][1])
if libcore.graph_filtering_enabled(): self.set_vertex_filter(state["vertex_filter"][0], state["vertex_filter"][1]) self.set_edge_filter(state["edge_filter"][0], state["edge_filter"][1])
def pop_filter(self): """Pop last stashed filter state""" state = self.__stashed_filter_state.pop() self.set_vertex_filter(state["vertex_filter"][0], state["vertex_filter"][1]) self.set_edge_filter(state["edge_filter"][0], state["edge_filter"][1]) self.set_directed(state["directed"]) self.set_reversed(state["reversed"])
3ba46e75d5f664e1e71d425bc56b2a987c3636f2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3516/3ba46e75d5f664e1e71d425bc56b2a987c3636f2/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1843, 67, 2188, 12, 2890, 4672, 3536, 7049, 1142, 384, 13912, 1034, 919, 8395, 919, 273, 365, 16186, 334, 13912, 67, 2188, 67, 2019, 18, 5120, 1435, 309, 2561, 3644, 18, 4660, 67, 2188, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1843, 67, 2188, 12, 2890, 4672, 3536, 7049, 1142, 384, 13912, 1034, 919, 8395, 919, 273, 365, 16186, 334, 13912, 67, 2188, 67, 2019, 18, 5120, 1435, 309, 2561, 3644, 18, 4660, 67, 2188, ...
This class must `not` be instanciated directly.
This class must **not** be instanciated directly.
def detect_encoding(fpath): """ Try to detect the encoding used by the file fpath. The function will return polib default `encoding` if it's unable to detect it. `Keyword argument`: - `fpath`: string, full or relative path to the mo file to parse. `Examples`:: >>> print detect_encoding('tests/test_noencoding.po') utf-8 >>> print detect_encoding('tests/test_utf8.po') UTF-8 >>> print detect_encoding('tests/test_utf8.mo') UTF-8 >>> print detect_encoding('tests/test_iso-8859-15.po') ISO_8859-15 >>> print detect_encoding('tests/test_iso-8859-15.mo') ISO_8859-15 """ # detect_encoding {{{ import re global encoding e = encoding rx = re.compile(r'"?Content-Type:.+? charset=([\w_\-:\.]+)') f = open(fpath) for l in f: match = rx.search(l) if match: e = _strstrip(match.group(1)) break f.close() return e # }}}
d8198b8084c69bfb0e84293dcc1b4bcf7ead9311 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9209/d8198b8084c69bfb0e84293dcc1b4bcf7ead9311/polib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 5999, 12, 28900, 4672, 3536, 6161, 358, 5966, 326, 2688, 1399, 635, 326, 585, 13543, 18, 1021, 445, 903, 327, 2952, 495, 805, 1375, 5999, 68, 309, 518, 1807, 13496, 358, 5966, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 5999, 12, 28900, 4672, 3536, 6161, 358, 5966, 326, 2688, 1399, 635, 326, 585, 13543, 18, 1021, 445, 903, 327, 2952, 495, 805, 1375, 5999, 68, 309, 518, 1807, 13496, 358, 5966, ...
uf.userSetPassword(stored_user, password)
uf.userSetPassword(user.getUserName(), password)
def resetPassword(self, userid, randomstring, password): """Set the password (in 'password') for the user who maps to the string in 'randomstring' iff the entered 'userid' is equal to the mapped userid. (This can be turned off with the 'toggleUserCheck' method.)
ccc6de4b0a89c36e23d596e43d7e1d2f3df667a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12219/ccc6de4b0a89c36e23d596e43d7e1d2f3df667a7/PasswordResetTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 3913, 12, 2890, 16, 6709, 16, 2744, 1080, 16, 2201, 4672, 3536, 694, 326, 2201, 261, 267, 296, 3664, 6134, 364, 326, 729, 10354, 7565, 358, 326, 533, 316, 296, 9188, 1080, 11, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 3913, 12, 2890, 16, 6709, 16, 2744, 1080, 16, 2201, 4672, 3536, 694, 326, 2201, 261, 267, 296, 3664, 6134, 364, 326, 729, 10354, 7565, 358, 326, 533, 316, 296, 9188, 1080, 11, 21...
if command.errors_to > '': cmd_text += 'rm ' + command.errors_to + '; '
cmd_text += '\t'
def get_text(self): dep_text = '' for key in self.dependencies: if dep_text=='': dep_text = '\t' + key else: dep_text = dep_text + ' ' + key dep_text = dep_text + '\n' cmd_text = '\t' for key in self.commands.sort_by('sort_order'): command = self.commands[key] if command.errors_to > '': cmd_text += 'rm ' + command.errors_to + '; ' cmd_text += command.command if command.output_to > '': cmd_text += ' > ' + command.output_to if command.errors_to > '': cmd_text += ' 2>>' + command.errors_to cmd_text += '\n' return dep_text + cmd_text
a21f3295a49c6467d3614c8da71599e042fcf3e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6947/a21f3295a49c6467d3614c8da71599e042fcf3e1/Makefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 955, 12, 2890, 4672, 5993, 67, 955, 273, 875, 364, 498, 316, 365, 18, 11037, 30, 309, 5993, 67, 955, 18920, 4278, 5993, 67, 955, 273, 2337, 88, 11, 397, 498, 469, 30, 5993, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 955, 12, 2890, 4672, 5993, 67, 955, 273, 875, 364, 498, 316, 365, 18, 11037, 30, 309, 5993, 67, 955, 18920, 4278, 5993, 67, 955, 273, 2337, 88, 11, 397, 498, 469, 30, 5993, ...
r""" Factorial numbers: $n! = 1 \cdot 2 \cdot 3 \cdots n$ Order of symmetric group $S_n$, number of permutations of $n$ letters. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000142;a Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters). sage: a(0) 1 sage: a(8) 40320 sage: a(40) 815915283247897734345611269596115894272000000000 sage: a.list(9) [1, 1, 2, 6, 24, 120, 720, 5040, 40320] AUTHOR: -- Jaap Spies (2007-01-12) """ def __init__(self):
def __init__(self): r""" Factorial numbers: $n! = 1 \cdot 2 \cdot 3 \cdots n$ Order of symmetric group $S_n$, number of permutations of $n$ letters. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000142;a Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters). sage: a(0) 1 sage: a(8) 40320 sage: a(40) 815915283247897734345611269596115894272000000000 sage: a.list(9) [1, 1, 2, 6, 24, 120, 720, 5040, 40320] AUTHOR: -- Jaap Spies (2007-01-12) """
def _eval(self, n): return Integer(n**4)
7b02e5455d5d52d6dcc7f2314cdd56803031a1c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7b02e5455d5d52d6dcc7f2314cdd56803031a1c6/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 327, 2144, 12, 82, 636, 24, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 327, 2144, 12, 82, 636, 24, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
key = user, host, port, string.join(dirs, '/')
key = user, host, port, '/'.join(dirs)
def open_ftp(self, url): """Use FTP protocol.""" host, path = splithost(url) if not host: raise IOError, ('ftp error', 'no host given') host, port = splitport(host) user, host = splituser(host) if user: user, passwd = splitpasswd(user) else: passwd = None host = unquote(host) user = unquote(user or '') passwd = unquote(passwd or '') host = socket.gethostbyname(host) if not port: import ftplib port = ftplib.FTP_PORT else: port = int(port) path, attrs = splitattr(path) path = unquote(path) dirs = string.splitfields(path, '/') dirs, file = dirs[:-1], dirs[-1] if dirs and not dirs[0]: dirs = dirs[1:] if dirs and not dirs[0]: dirs[0] = '/' key = user, host, port, string.join(dirs, '/') # XXX thread unsafe! if len(self.ftpcache) > MAXFTPCACHE: # Prune the cache, rather arbitrarily for k in self.ftpcache.keys(): if k != key: v = self.ftpcache[k] del self.ftpcache[k] v.close() try: if not self.ftpcache.has_key(key): self.ftpcache[key] = \ ftpwrapper(user, passwd, host, port, dirs) if not file: type = 'D' else: type = 'I' for attr in attrs: attr, value = splitvalue(attr) if string.lower(attr) == 'type' and \ value in ('a', 'A', 'i', 'I', 'd', 'D'): type = string.upper(value) (fp, retrlen) = self.ftpcache[key].retrfile(file, type) if retrlen is not None and retrlen >= 0: import mimetools, StringIO headers = mimetools.Message(StringIO.StringIO( 'Content-Length: %d\n' % retrlen)) else: headers = noheaders() return addinfourl(fp, headers, "ftp:" + url) except ftperrors(), msg: raise IOError, ('ftp error', msg), sys.exc_info()[2]
2a3596c7d04c9635576a712f85db07ce4de4bff2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2a3596c7d04c9635576a712f85db07ce4de4bff2/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 11727, 12, 2890, 16, 880, 4672, 3536, 3727, 19324, 1771, 12123, 1479, 16, 589, 273, 6121, 483, 669, 12, 718, 13, 309, 486, 1479, 30, 1002, 8340, 16, 7707, 11727, 555, 2187, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 11727, 12, 2890, 16, 880, 4672, 3536, 3727, 19324, 1771, 12123, 1479, 16, 589, 273, 6121, 483, 669, 12, 718, 13, 309, 486, 1479, 30, 1002, 8340, 16, 7707, 11727, 555, 2187, 2...
</pre> <br/> (!) For more help, see the <a href="http://docutils.sourceforge.net/docs/user/rst/quickref.html"> reStructuredText Quick Reference </a>.
}}} (!) For more help, see the [[http://docutils.sourceforge.net/docs/user/rst/quickref.html|reStructuredText Quick Reference]].
def _(text): return text
6fcb5b00bb73a966b60daf748dbdc416bcb9f352 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/6fcb5b00bb73a966b60daf748dbdc416bcb9f352/multiconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12, 955, 4672, 327, 977, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12, 955, 4672, 327, 977, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'''GRP-ACL-user''',
'''GRP-ACL-user,utest_267''',
def clean_system(): """ Remove all stuff to make the system clean, testsuite-wise.""" test_message('''cleaning system from previous runs.''') # delete them first in case of a previous failed testsuite run. # don't check exit codes or such, this will be done later. for argument in ( ['user', '''toto,tutu,tata,titi,test,utilisager.normal,''' \ '''test.responsibilly,utilicateur.accentue,user_test,''' \ '''GRP-ACL-user''', '--no-archive'], ['profile', '--group=utilisagers', '--del-users', '--no-archive'], ['profile', '--group=responsibilisateurs', '--del-users', '--no-archive'], ['group', '''test_users_A,test_users_B,groupeA,B-Group_Test,''' \ '''groupe_a_skel,ACL_tests,MOD_tests,SYSTEM-test,SKEL-tests,''' \ '''ARCHIVES-test,group_test,GRP-ACL-test'''], ): execute(DEL + argument) execute([ 'sudo', 'rm', '-rf', '%s/*' % configuration.home_backup_dir, '%s/*' % configuration.home_archive_dir ]) execute(ADD + ['group', '--system', 'acl,admins,remotessh,licorn-wmi']) test_message('''system cleaned from previous testsuite runs.''')
c7a24ffc685eea186397e4d74c31926a514dc16f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/c7a24ffc685eea186397e4d74c31926a514dc16f/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 67, 4299, 13332, 3536, 3581, 777, 10769, 358, 1221, 326, 2619, 2721, 16, 7434, 9519, 17, 2460, 12123, 225, 1842, 67, 2150, 2668, 6309, 6200, 310, 2619, 628, 2416, 7597, 1093, 11, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 67, 4299, 13332, 3536, 3581, 777, 10769, 358, 1221, 326, 2619, 2721, 16, 7434, 9519, 17, 2460, 12123, 225, 1842, 67, 2150, 2668, 6309, 6200, 310, 2619, 628, 2416, 7597, 1093, 11, 6...
res = self.ReplicaManager.getStorageFileMetadata(pfns,se) if not res['OK']: return res for pfn,error in res['Value']['Failed'].items(): if re.search("File does not exist",error): gLogger.error("[%s] __getStorageMetadata: PFN does not exist at StorageElement." % se,"%s %s" % (pfn,error))
res = self.ReplicaManager.getStorageFileMetadata( pfns, se ) if not res['OK']: return res for pfn, error in res['Value']['Failed'].items(): if re.search( "File does not exist", error ): gLogger.error( "[%s] __getStorageMetadata: PFN does not exist at StorageElement." % se, "%s %s" % ( pfn, error ) )
def __getMigratedFiles(self,se,pfns): # Get the active files from the database migrated = {} terminal = {} res = self.ReplicaManager.getStorageFileMetadata(pfns,se) if not res['OK']: return res for pfn,error in res['Value']['Failed'].items(): if re.search("File does not exist",error): gLogger.error("[%s] __getStorageMetadata: PFN does not exist at StorageElement." % se,"%s %s" % (pfn,error)) terminal[pfn] = 'PFNMissing' else: gLogger.warn("[%s] __getMigratedFiles: Failed to obtain physical file metadata." % se,"%s %s" % (pfn,error)) storageMetadata = res['Value']['Successful'] for pfn,metadata in storageMetadata.items(): if metadata['Migrated']: checksum = '' if metadata.has_key('Checksum'): checksum = metadata['Checksum'] migrated[pfn] = checksum elif metadata['Lost']: gLogger.error("[%s] __getMigratedFiles: PFN has been Lost by the StorageElement." % se,"%s" % (pfn)) terminal[pfn] = 'PFNLost' elif metadata['Unavailable']: gLogger.error("[%s] __getMigratedFiles: PFN declared Unavailable by StorageElement." % se,"%s" % (pfn)) terminal[pfn] = 'PFNUnavailable' resDict = {'Terminal':terminal,'Migrated':migrated} return S_OK(resDict)
d0365a9152f6e7105162edd475d5401448bfdaed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/d0365a9152f6e7105162edd475d5401448bfdaed/MigrationMonitoringAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 25483, 690, 2697, 12, 2890, 16, 307, 16, 14241, 2387, 4672, 468, 968, 326, 2695, 1390, 628, 326, 2063, 24741, 273, 2618, 8651, 273, 2618, 400, 273, 365, 18, 14222, 1318, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 25483, 690, 2697, 12, 2890, 16, 307, 16, 14241, 2387, 4672, 468, 968, 326, 2695, 1390, 628, 326, 2063, 24741, 273, 2618, 8651, 273, 2618, 400, 273, 365, 18, 14222, 1318, 18, ...
g_names = values.split(',')
g_names = values['groups'].split(',')
def startElement(self, name, attributes):
7fb3270d80249f59fcc4a65b04d0675012e6e0db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/7fb3270d80249f59fcc4a65b04d0675012e6e0db/convert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13591, 12, 2890, 16, 508, 16, 1677, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13591, 12, 2890, 16, 508, 16, 1677, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if val == None or key == 'rrule':
if val == None or key == 'rrule':
def export_cal(self, cr, uid, ids, context={}): crm_data = self.read(cr, uid, ids, []) ical = vobject.iCalendar() event_obj = self.pool.get('caldav.event') uid_val = '' for crm in crm_data: vevent = ical.add('vevent') for key, val in self.__attribute__.items(): if key == 'uid': uid_val += str(crm[val['field']]) continue if val == None or key == 'rrule': continue if val.has_key('field') and val.has_key('sub-field') and crm[val['field']] and crm[val['field']]: vevent.add(key).value = crm[val['field']][1] elif val.has_key('field') and crm[val['field']]: if val['type'] == "text": vevent.add(key).value = str(crm[val['field']]) elif val['type'] == 'datetime' and crm[val['field']]: vevent.add(key).value = datetime.strptime(crm[val['field']], "%Y-%m-%d %H:%M:%S") if crm[self.__attribute__['rrule']['field']]: startdate = datetime.strptime(crm['date'], "%Y-%m-%d %H:%M:%S") if not startdate: startdate = datetime.now() rset1 = rrulestr(str(crm[event_obj.__attribute__['rrule']['field']]), dtstart=startdate, forceset=True) vevent.rruleset = rset1 vevent.add('uid').value = uid_val return ical.serialize()#.replace(vobject.icalendar.CRLF, vobject.icalendar.LF).strip()
6ef425eb9ba53031aed0c6d62efd20dc99d4dc99 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/6ef425eb9ba53031aed0c6d62efd20dc99d4dc99/crm_calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 771, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 4422, 81, 67, 892, 273, 365, 18, 896, 12, 3353, 16, 4555, 16, 3258, 16, 5378, 13, 277, 771, 273, 331, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 771, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 4422, 81, 67, 892, 273, 365, 18, 896, 12, 3353, 16, 4555, 16, 3258, 16, 5378, 13, 277, 771, 273, 331, 1...
compExtVersion = v
compExtVersion = v
def fixAbsoluteLinks( path ): for entry in os.listdir( path ): entryPath = os.path.join( path, entry ) if os.path.islink( entryPath ): destPath = os.readlink( entryPath ) if os.path.isabs( destPath ): absLinkDirSplit = [ d for d in os.path.abspath( path ).split( "/" ) if d.strip() ] absDestDirSplit = [ d for d in destPath.split( "/" ) if d.strip() ] common = -1 for i in range( min( len( absLinkDirSplit ), len( absDestDirSplit ) ) ): if absLinkDirSplit[ i ] == absDestDirSplit[ i ]: common = i else: break absLinkDirSplit = absLinkDirSplit[ common+1: ] absDestDirSplit = absDestDirSplit[ common+1: ] finalDestination = [ ".." for d in absLinkDirSplit ] finalDestination.extend( absDestDirSplit ) finalDestination = os.path.join( *finalDestination ) print "Relinking %s" % entryPath print " %s -> %s" % ( destPath, finalDestination ) os.unlink( entryPath ) os.symlink( finalDestination, entryPath ) elif os.path.isdir( entryPath ): fixAbsoluteLinks( entryPath )
3e1286f49ce012a79f3d2e3a9d45ca63fa48ef73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/3e1286f49ce012a79f3d2e3a9d45ca63fa48ef73/dirac-compile-externals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 10368, 7100, 12, 589, 262, 30, 364, 1241, 316, 1140, 18, 1098, 1214, 12, 589, 262, 30, 1241, 743, 273, 1140, 18, 803, 18, 5701, 12, 589, 16, 1241, 262, 309, 1140, 18, 803, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 10368, 7100, 12, 589, 262, 30, 364, 1241, 316, 1140, 18, 1098, 1214, 12, 589, 262, 30, 1241, 743, 273, 1140, 18, 803, 18, 5701, 12, 589, 16, 1241, 262, 309, 1140, 18, 803, 18, ...
eJytVFFv2jAQfs+vuIU+QDWK+tqKB6oigdRC1bBOW1sZk1yIpWAj2yGj0/77ziFAUijStPIA2Hc+ f/7u+64Bk0QYiEWKsMiMhRlCZjCCXNgEfKMyHSLMhOzw0IoVt+jDeazVAmbcJOdeA9Yqg5BLqSzo TIKwEAmNoU3Xnhfh9hQ0W/DbA/o0QKNBCyqNAOVKaCUXKC2suBZ8lqIpskQMz9CW4J+x8d0texo+ Tr717thDbzLw4RWuwSYoi0z3cdvdY6m7DPy1VNoWibu9TDocB4eKeCxOwvgxGYxHg/F9/xiYXfAA 0v7YAbBd6CS8ehaBLCktmmgSlRGpEVqiv+gPcBnBm0m+Qp6IMIGErxA4/VAoVIuFC9uE26L1ZSkS QMjTlCRgFcwJAXWU/sVKu8WSk0bKo+YC4DvJRGW2DFsh52WZWqIjCM4cuRAmXM7RQE5645H7WoPT Dl1LulgScozeUX/TC6jpbbVZ/QwG7Kn/GAzHoyPkF09r6xo9HzUxuDzWveDyoG2UeNCv4PJko8rw FsImZRvtj572wL4QLgLSBV8qGaGxOnOewXfYGhBgGsM24cu729sutDXb9uo/HvlzExdaY0rdrxmt Ys/63Z5Xgdr1GassGfO9koTqe7wDHxGNGw+Wi0p2h7Gb4YiNevd9xq7KtKpFd7j3inds0Q5FrBN7 LtIUYi5St1/NMi7LKdZpDhdLuwZ6FwkTmhsTUMaMR2SNdc7XLaoXFrahqQdTqtUs6Myu4YoUu6vb guspCFm4ytsL6sNB8IFtu7UjFWlUnO00s7nhDWqssdth0Lu567OHx/H9w+TkjYWKd8ItyvlTAo+S LxBeanVf/GmhP+rsoR8a4EwpeEpTgRgin0OPdiQZdy7CctYrLcq5XR5BhMTa5VWnk+f5xRtasvrq gsZBx6jY5lxjh7sqnbrvnisQp1T6KNiX6fQV9m/D1GC9SvPEQ1v7g+WIrxjaMf9Js/QT5uh/ztB/ n5/b2Uk0/AXm/2MV
eJytVd9P4kAQfr7+FWPxAcwh8VXDA0YSSBSM5bzcqSlLO6WblF3Sbqlo7n+/2W0prUWSy9kHyu78 2G9nvm/aglnIEwh4hLBKEwULhDRBHzKuQrATmcYewoKLHvMU3zCFNpwFsVzBgiXhmdWCrUzBY0JI BXEqgCvweYyeiraW5eMuCtodeLeAnhbEmKACGfmAYsNjKVYoFGxYzNkiwsR48QCeoCvAPnWntzfu 4/hh9mNw694PZiMbXuAKVIjCeOpHb/cPuZYe+LqWsTKO5V4qNI5GkLEH/CiMX7PRdDKa3g0PgSmN DUj7sAaw0nQUXt2LQBYlNU1MQplSUX1UVH7TH2DCh7ck/A5ZyL0QQrZBYPQikydXK21WIVOm9UUq IoDHoogooCQsCQF1lP4FMtaLNSOOFKHJOcBPoolMVWFWXCyLNDVHXSA41cUFL2RiiQlkxDfm658t aO7QscSLNSFH/0PprwcONb0r89VvZ+Q+Dh+c8XRyoPjmat24Vp7PmuhcHOqec9FoGzk2+uVcHG1U Yd5ByF121uHkcQ/shHARkD7YQgofExWnWjP4AVsLHIwC2DmcfDi9q007se2O/mORPnM7j2OMqPs1 oVXkWT/bsipQ+7brVpaua1tFEar3sRo6ojLmGiwWFe+e616PJ+5kcDd03cvCrSrREvee8bpatEMW pcme8SiCgPFI71e9Eu2lGas5h6u12gLdi4gJ7VwE5LFgPkljm7Fth/J5RjY09WBOudqmnOkVXBJj y7wduJoDF0ZV1p5Qnw6CT2Tbr4VUqFFRtuZMfsIb1Krm3oydwfXt0L1/mN7dz46eaFhcEteks1/3 fcwzUCvhpA+v+0TfTGDTb58KowRL7uV551QUFGyF8FzD+2zPDa/1MQ2d5ZzWgucsoolD1acZAgPa ETQUltwrviMy5sU3oRKGCKFS68teL8uy8zdUNEo25zRueokMVMZi7DGdqVcLNJd7qsCd0xEHgT/P 5y9wWhd+9eJltvaRy3fqCYpPSvGqzBHd8C8a4V8wvv9zdP/72N6NbCrDX6NwfrY=
def after_install(options, home_dir): subprocess.call([join(home_dir, 'bin', 'easy_install'), 'MyPackage']) subprocess.call([join(home_dir, 'bin', 'my-package-script'), 'setup', home_dir])
98cbb4c381c7e1d77fa8b739b2c3428e70e1b794 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12981/98cbb4c381c7e1d77fa8b739b2c3428e70e1b794/virtualenv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1839, 67, 5425, 12, 2116, 16, 6382, 67, 1214, 4672, 6652, 18, 1991, 3816, 5701, 12, 8712, 67, 1214, 16, 296, 4757, 2187, 296, 73, 15762, 67, 5425, 19899, 296, 12062, 2261, 19486, 6652, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1839, 67, 5425, 12, 2116, 16, 6382, 67, 1214, 4672, 6652, 18, 1991, 3816, 5701, 12, 8712, 67, 1214, 16, 296, 4757, 2187, 296, 73, 15762, 67, 5425, 19899, 296, 12062, 2261, 19486, 6652, ...
if False: logger.log("caret offset: %s" % self.caretOffset) self.__editableText.insertText (self.caretOffset, text) self.caretOffset+=len(string) logger.log("new caret offset: %s" % self.caretOffset)
def typeText(self, string): """ Type the given text into the node, with appropriate delays and logging. """ logger.log("Typing text into %s: '%s'"%(self.getLogString(), string))
3412a1f5546d9583ae932cede9c3acb090882299 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10139/3412a1f5546d9583ae932cede9c3acb090882299/tree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 618, 1528, 12, 2890, 16, 533, 4672, 3536, 1412, 326, 864, 977, 1368, 326, 756, 16, 598, 5505, 4624, 87, 471, 2907, 18, 3536, 1194, 18, 1330, 2932, 18488, 310, 977, 1368, 738, 87, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 618, 1528, 12, 2890, 16, 533, 4672, 3536, 1412, 326, 864, 977, 1368, 326, 756, 16, 598, 5505, 4624, 87, 471, 2907, 18, 3536, 1194, 18, 1330, 2932, 18488, 310, 977, 1368, 738, 87, 30, ...
messages (start, data, end). Call close to get the resulting
messages (start, data, end). Call close() to get the resulting
def dump_instance(self, value): # check for special wrappers if value.__class__ in WRAPPERS: value.encode(self) else: # store instance attributes as a struct (really?) self.dump_struct(value.__dict__)
b0e8e9b72fb6eb42ecd4d9ea9e88563d1ca4528a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b0e8e9b72fb6eb42ecd4d9ea9e88563d1ca4528a/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 1336, 12, 2890, 16, 460, 4672, 468, 866, 364, 4582, 21589, 309, 460, 16186, 1106, 972, 316, 12984, 2203, 3194, 55, 30, 460, 18, 3015, 12, 2890, 13, 469, 30, 468, 1707, 791, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 1336, 12, 2890, 16, 460, 4672, 468, 866, 364, 4582, 21589, 309, 460, 16186, 1106, 972, 316, 12984, 2203, 3194, 55, 30, 460, 18, 3015, 12, 2890, 13, 469, 30, 468, 1707, 791, ...
if norm(spath) != norm(tpath):
if normpath(spath) != normpath(tpath):
def set_path(self, index, index_is_id=False): ''' Set the path to the directory containing this books files based on its current title and author. If there was a previous directory, its contents are copied and it is deleted. ''' id = index if index_is_id else self.id(index) path = self.construct_path_name(id) current_path = self.path(id, index_is_id=True).replace(os.sep, '/') formats = self.formats(id, index_is_id=True) formats = formats.split(',') if formats else [] # Check if the metadata used to construct paths has changed fname = self.construct_file_name(id) changed = False for format in formats: name = self.conn.execute('SELECT name FROM data WHERE book=? AND format=?', (id, format)).fetchone()[0] if name and name != fname: changed = True break if path == current_path and not changed: return tpath = os.path.join(self.library_path, *path.split('/')) if not os.path.exists(tpath): os.makedirs(tpath) spath = os.path.join(self.library_path, *current_path.split('/')) if current_path and os.path.exists(spath): # Migrate existing files cdata = self.cover(id, index_is_id=True) if cdata is not None: open(os.path.join(tpath, 'cover.jpg'), 'wb').write(cdata) for format in formats: # Get data as string (can't use file as source and target files may be the same) f = self.format(id, format, index_is_id=True, as_file=False) if not f: continue stream = cStringIO.StringIO(f) self.add_format(id, format, stream, index_is_id=True, path=tpath) self.conn.execute('UPDATE books SET path=? WHERE id=?', (path, id)) self.conn.commit() # Delete not needed directories norm = lambda x : os.path.abspath(os.path.normcase(x)) if current_path and os.path.exists(spath): if norm(spath) != norm(tpath): shutil.rmtree(spath) parent = os.path.dirname(spath) if len(os.listdir(parent)) == 0: shutil.rmtree(parent)
0c538a70eb1684c93c619553e3252dccb528364c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/0c538a70eb1684c93c619553e3252dccb528364c/database2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 803, 12, 2890, 16, 770, 16, 770, 67, 291, 67, 350, 33, 8381, 4672, 9163, 1000, 326, 589, 358, 326, 1867, 4191, 333, 6978, 87, 1390, 2511, 603, 2097, 783, 2077, 471, 2869, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 803, 12, 2890, 16, 770, 16, 770, 67, 291, 67, 350, 33, 8381, 4672, 9163, 1000, 326, 589, 358, 326, 1867, 4191, 333, 6978, 87, 1390, 2511, 603, 2097, 783, 2077, 471, 2869, 18...
raise SCons.Errors.UserError, "Import of non-existant variable '%s'"%x
raise SCons.Errors.UserError, "Import of non-existent variable '%s'"%x
def Import(self, *vars): try: for var in vars: var = self.Split(var) for v in var: if v == '*': stack[-1].globals.update(global_exports) stack[-1].globals.update(stack[-1].exports) else: if stack[-1].exports.has_key(v): stack[-1].globals[v] = stack[-1].exports[v] else: stack[-1].globals[v] = global_exports[v] except KeyError,x: raise SCons.Errors.UserError, "Import of non-existant variable '%s'"%x
8829ef9ae3372136769634d97d6e6ddf3eb8fc42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7126/8829ef9ae3372136769634d97d6e6ddf3eb8fc42/SConscript.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6164, 12, 2890, 16, 380, 4699, 4672, 775, 30, 364, 569, 316, 4153, 30, 569, 273, 365, 18, 5521, 12, 1401, 13, 364, 331, 316, 569, 30, 309, 331, 422, 5306, 30, 2110, 18919, 21, 8009, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6164, 12, 2890, 16, 380, 4699, 4672, 775, 30, 364, 569, 316, 4153, 30, 569, 273, 365, 18, 5521, 12, 1401, 13, 364, 331, 316, 569, 30, 309, 331, 422, 5306, 30, 2110, 18919, 21, 8009, ...
FILE.write("\ttype generic-mesh\n") FILE.write("\tname \"" + obj.name + "\"\n") FILE.write("\tpoints %d\n" % (numverts)) for vert in verts: FILE.write("\t\t%s %s %s\n" % (vert.co[0], vert.co[1], vert.co[2])) numtris = 0 for face in faces: num = len(face.v) if num == 4: numtris = numtris + 2 elif num == 3: numtris = numtris + 1 FILE.write("\ttriangles %d\n" % (numtris)) allsmooth = True allflat = True for face in faces: num = len(face.v) smooth = face.smooth <> 0 allsmooth &= smooth allflat &= not smooth if num == 4: FILE.write("\t\t%d %d %d\n" % (face.v[0].index, face.v[1].index, face.v[2].index)) FILE.write("\t\t%d %d %d\n" % (face.v[0].index, face.v[2].index, face.v[3].index)) elif num == 3: FILE.write("\t\t%d %d %d\n" % (face.v[0].index, face.v[1].index, face.v[2].index)) if not islight: if allflat: FILE.write("\tnormals none\n") elif allsmooth: FILE.write("\tnormals vertex\n")
ob = Object.Get(obj.name) if len(ob.effects) <> 0: effect = ob.effects[0] particles = effect.getParticlesLoc() effects= Effect.Get() if not effect.getFlag() & Effect.Flags.STATIC or not effect.getStype(): FILE.write("\ttype particles\n") FILE.write("\tname \"" + obj.name + "\"\n") FILE.write("\tpoints %d\n" % (len(particles))) for pt in particles: FILE.write("\t\t%s %s %s\n" % (pt[0], pt[1], pt[2])) FILE.write("\tradius 0.05\n}\n") elif type(particles)==list: if len(particles)>1: pointnum = ((len(particles)*effect.getLifetime())*3) print "o exporting hair object " + obj.name+"..." FILE.write("\ttype hair\n") FILE.write("\tname \"" + obj.name + "\"\n") FILE.write("\tsegments %d\n" % (effect.getLifetime()-1)) FILE.write("\twidth .01\n") FILE.write("\tpoints %d" % pointnum) for eff in effects: for p in eff.getParticlesLoc(): if type(p)==list: if len(p)>1: destData = str() for vect in p: for elem in vect: destData+=" "+str(elem) FILE.write("\t%s\n" % (destData)) FILE.write("}\n") elif isparticleob: FILE.write("\ttype particles\n") FILE.write("\tname \"" + obj.name + "\"\n") FILE.write("\tpoints %d\n" % (numverts))
def export_geometry(obj): #mesh = "";verts="";faces="";numverts="" islight = obj.name.startswith("meshlight") if islight: print "o exporting meshlight " + obj.name+"..." # get the mesh data if obj.getType() <> "Empty": mesh = NMesh.GetRawFromObject(obj.name) mesh.transform(obj.getMatrix(), 1) verts = mesh.verts faces = mesh.faces numverts = verts.__len__() if numverts > 0: if islight: FILE.write("\n\nlight {\n") FILE.write("\ttype meshlight\n") FILE.write("\tname \"" + obj.name + "\"\n") if len(mesh.materials) >= 1: matrl = mesh.materials[0] FILE.write("\temit { \"sRGB nonlinear\" %s %s %s }\n" % (matrl.R, matrl.G, matrl.B)) else: FILE.write("\temit 1 1 1\n") FILE.write("\tradiance %s\n" % (MESHLIGHTPOWER.val)) FILE.write("\tsamples %s\n" % DSAMPLES.val) else: print "o exporting mesh " + obj.name+"..." FILE.write("\n\nobject {\n") if len(mesh.materials) == 1: FILE.write("\tshader \"" + mesh.materials[0].name + ".shader\"\n") ##Modifiers## for mat in mesh.materials: textures = mat.getTextures() textu = textures[1] if textu <> None and (textu.tex.name.startswith("bump") or textu.tex.name.startswith("normal")): FILE.write("\tmodifier \"" + str(textu.tex.getName()) + "\"\n") ##End Modifier## elif len(mesh.materials) > 1: FILE.write("\tshaders %d\n" % (len(mesh.materials))) for mat in mesh.materials: FILE.write("\t\t\"" + mat.name + ".shader\"\n") ##Modifiers## FILE.write("\tmodifiers %d\n" % (len(mesh.materials))) for mat in mesh.materials: textures = mat.getTextures() textu = textures[1] if textu <> None and (textu.tex.name.startswith("bump") or textu.tex.name.startswith("normal")): FILE.write("\t\t\"" + textu.tex.getName() + "\"\n") else: FILE.write("\t\t\"" + "None" + "\"\n") ##End Modifiers## else: FILE.write("\tshader def\n") FILE.write("\ttype generic-mesh\n") FILE.write("\tname \"" + obj.name + "\"\n") FILE.write("\tpoints %d\n" % (numverts)) for vert in verts: FILE.write("\t\t%s %s %s\n" % (vert.co[0], vert.co[1], vert.co[2])) numtris = 0 for face in faces: num = len(face.v) if num == 4: numtris = numtris + 2 elif num == 3: numtris = numtris + 1 FILE.write("\ttriangles %d\n" % (numtris)) allsmooth = True allflat = True for face in faces: num = len(face.v) smooth = face.smooth <> 0 allsmooth &= smooth allflat &= not smooth if num == 4: FILE.write("\t\t%d %d %d\n" % (face.v[0].index, face.v[1].index, face.v[2].index)) FILE.write("\t\t%d %d %d\n" % (face.v[0].index, face.v[2].index, face.v[3].index)) elif num == 3: FILE.write("\t\t%d %d %d\n" % (face.v[0].index, face.v[1].index, face.v[2].index)) ## what kind of normals do we have? if not islight: if allflat: FILE.write("\tnormals none\n") elif allsmooth: FILE.write("\tnormals vertex\n") for vert in verts: FILE.write("\t\t%s %s %s\n" % (vert.no[0], vert.no[1], vert.no[2])) else: FILE.write("\tnormals facevarying\n") for face in faces: num = len(face.v) if face.smooth <> 0: if num == 4: index0 = face.v[0].index index1 = face.v[1].index index2 = face.v[2].index index3 = face.v[3].index FILE.write("\t\t%s %s %s %s %s %s %s %s %s\n" % (verts[index0].no[0], verts[index0].no[1], verts[index0].no[2], verts[index1].no[0], verts[index1].no[1], verts[index1].no[2], verts[index2].no[0], verts[index2].no[1], verts[index2].no[2])) FILE.write("\t\t%s %s %s %s %s %s %s %s %s\n" % (verts[index0].no[0], verts[index0].no[1], verts[index0].no[2], verts[index2].no[0], verts[index2].no[1], verts[index2].no[2], verts[index3].no[0], verts[index3].no[1], verts[index3].no[2])) elif num == 3: index0 = face.v[0].index index1 = face.v[1].index index2 = face.v[2].index FILE.write("\t\t%s %s %s %s %s %s %s %s %s\n" % (verts[index0].no[0], verts[index0].no[1], verts[index0].no[2], verts[index1].no[0], verts[index1].no[1], verts[index1].no[2], verts[index2].no[0], verts[index2].no[1], verts[index2].no[2])) else: fnx = face.no[0] fny = face.no[1] fnz = face.no[2] if num == 4: FILE.write("\t\t%s %s %s %s %s %s %s %s %s\n" % (fnx, fny, fnz, fnx, fny, fnz, fnx, fny, fnz)) FILE.write("\t\t%s %s %s %s %s %s %s %s %s\n" % (fnx, fny, fnz, fnx, fny, fnz, fnx, fny, fnz)) elif num == 3: FILE.write("\t\t%s %s %s %s %s %s %s %s %s\n" % (fnx, fny, fnz, fnx, fny, fnz, fnx, fny, fnz)) if mesh.hasFaceUV(): tx = 1 ty = 1 if len(mesh.materials) >= 1: if len(mesh.materials[0].getTextures()) >= 1: if mesh.materials[0].getTextures()[0] <> None: tx = mesh.materials[0].getTextures()[0].tex.repeat[0] ty = mesh.materials[0].getTextures()[0].tex.repeat[1] FILE.write("\tuvs facevarying\n") for face in faces: num = len(face.v) if num == 4: FILE.write("\t\t%s %s %s %s %s %s\n" % (tx * face.uv[0][0], ty * face.uv[0][1], tx * face.uv[1][0], ty * face.uv[1][1], tx * face.uv[2][0], ty * face.uv[2][1])) FILE.write("\t\t%s %s %s %s %s %s\n" % (tx * face.uv[0][0], ty * face.uv[0][1], tx * face.uv[2][0], ty * face.uv[2][1], tx * face.uv[3][0], ty * face.uv[3][1])) elif num == 3: FILE.write("\t\t%s %s %s %s %s %s\n" % (tx * face.uv[0][0], ty * face.uv[0][1], tx * face.uv[1][0], ty * face.uv[1][1], tx * face.uv[2][0], ty * face.uv[2][1])) else: FILE.write("\tuvs none\n") if len(mesh.materials) > 1: FILE.write("\tface_shaders\n") for face in faces: num = len(face.v) if num == 4: FILE.write("\t\t%d\n" % (face.materialIndex)) FILE.write("\t\t%d\n" % (face.materialIndex)) elif num == 3: FILE.write("\t\t%d\n" % (face.materialIndex)) FILE.write("}\n") elif obj.getType() == "Empty": ob = Object.Get(obj.name) dupe_obs = ob.DupObjects dupmatrix = Mathutils.Matrix(ob.getMatrix()) group = ob.DupGroup if group <> "None": for dupe_ob, dup_matrix in dupe_obs: dupobmesh = NMesh.GetRawFromObject(dupe_ob.name) instancematrix = ob.getMatrix() print "o exporting instances of " + dupe_ob.name+"..." FILE.write("\n\ninstance {\n") FILE.write("\tname %s \n" % obj.name) FILE.write("\tgeometry %s \n" % dupe_ob.name) FILE.write("\ttransform col %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s \n" % (instancematrix[0][0], instancematrix[0][1], instancematrix[0][2], instancematrix[0][3], instancematrix[1][0], instancematrix[1][1], instancematrix[1][2], instancematrix[1][3], instancematrix[2][0], instancematrix[2][1], instancematrix[2][2], instancematrix[2][3], instancematrix[3][0], instancematrix[3][1], instancematrix[3][2], instancematrix[3][3])) if len(dupobmesh.materials) >= 1: FILE.write("\tshader \"" + dupobmesh.materials[0].name + ".shader\"\n") else: FILE.write("\tshader def\n") for mat in dupobmesh.materials: textures = mat.getTextures() textu = textures[1] if textu <> None and (textu.tex.name.startswith("bump") or textu.tex.name.startswith("normal")): FILE.write("\tmodifier \"" + str(textu.tex.getName()) + "\"\n") FILE.write("}\n") if INFINITEPLANE.val == 1: FILE.write("\n\nobject {\n") FILE.write("\tshader iplane\n") FILE.write("\ttype plane\n") FILE.write("\tp 0 0 0\n") FILE.write("\tn 0 0 1\n}\n")
6815e138d234966977092a32ee7063f0ab4f6061 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12400/6815e138d234966977092a32ee7063f0ab4f6061/sunflow_export.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 14330, 12, 2603, 4672, 468, 15557, 273, 1408, 31, 31537, 1546, 14432, 4601, 1546, 14432, 2107, 31537, 1546, 6, 353, 5099, 273, 1081, 18, 529, 18, 17514, 1918, 2932, 15557, 5099, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 14330, 12, 2603, 4672, 468, 15557, 273, 1408, 31, 31537, 1546, 14432, 4601, 1546, 14432, 2107, 31537, 1546, 6, 353, 5099, 273, 1081, 18, 529, 18, 17514, 1918, 2932, 15557, 5099, ...
font.setMagFilter(magFilter)
font.setMagfilter(magFilter)
def loadFont(self, modelPath, spaceAdvance = None, pointSize = None, pixelsPerUnit = None, scaleFactor = None, textureMargin = None, polyMargin = None, minFilter = None, magFilter = None, anisotropicDegree = None, lineHeight = None): """ modelPath is a string.
0bcf6e19e333d0eaa5f95cc4a55ebebdccd27289 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/0bcf6e19e333d0eaa5f95cc4a55ebebdccd27289/Loader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 5711, 12, 2890, 16, 938, 743, 16, 3476, 1871, 5882, 273, 599, 16, 1634, 1225, 273, 599, 16, 8948, 2173, 2802, 273, 599, 16, 3159, 6837, 273, 599, 16, 11428, 9524, 273, 599, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 5711, 12, 2890, 16, 938, 743, 16, 3476, 1871, 5882, 273, 599, 16, 1634, 1225, 273, 599, 16, 8948, 2173, 2802, 273, 599, 16, 3159, 6837, 273, 599, 16, 11428, 9524, 273, 599, 16, ...
package = __import__('googlecl.' + service, fromlist=['SECTION_HEADER', 'TASKS'])
package = import_at_runtime('googlecl.' + service)
def import_service(service, config_file_path): """Import vital information about a service. The goal of this function is to allow expansion to other "service" classes in the future. In the same way that the v2 and v3 API python library uses a module called "client", googlecl will do the same. Keyword arguments: service: Name of the service to import e.g. 'picasa', 'youtube' config_file_path: Path to config file. Returns: Tuple of service_class, tasks, section header and config, where service_class is the class to instantiate for the service tasks is the dictionary mapping names to Task objects section_header is the name of the section in the config file that contains options specific to the service. config is a configuration file parser. """ LOG.debug('Your pythonpath: ' + str(os.environ.get('PYTHONPATH'))) try: # Not sure why the fromlist keyword argument became necessary... package = __import__('googlecl.' + service, fromlist=['SECTION_HEADER', 'TASKS']) except ImportError, err: LOG.error(err.args[0]) LOG.error('Did you specify the service correctly? Must be one of ' + str(AVAILABLE_SERVICES)[1:-1]) return (None, None, None) config = googlecl.config.load_configuration(config_file_path) force_gdata_v1 = config.lazy_get(package.SECTION_HEADER, 'force_gdata_v1', default=False, option_type=bool) if force_gdata_v1: service_module = __import__('googlecl.' + service + '.service', globals(), locals(), -1) else: try: service_module = __import__('googlecl.' + service + '.client', globals(), locals(), -1) except ImportError: service_module = __import__('googlecl.' + service + '.service', globals(), locals(), -1) return (service_module.SERVICE_CLASS, package.TASKS, package.SECTION_HEADER, config)
7401185f61930c54be4742722415abbc7002706a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/7401185f61930c54be4742722415abbc7002706a/google.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 3278, 12, 3278, 16, 642, 67, 768, 67, 803, 4672, 3536, 5010, 331, 7053, 1779, 2973, 279, 1156, 18, 225, 1021, 17683, 434, 333, 445, 353, 358, 1699, 17965, 358, 1308, 315, 327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 3278, 12, 3278, 16, 642, 67, 768, 67, 803, 4672, 3536, 5010, 331, 7053, 1779, 2973, 279, 1156, 18, 225, 1021, 17683, 434, 333, 445, 353, 358, 1699, 17965, 358, 1308, 315, 327...