<commit_before># -*- coding: utf-8 -*-
import sys
sys.path.insert(0,".")
import unittest
import neuroml
import neuroml.writers as writers
import PyOpenWorm
from PyOpenWorm import *
import networkx
import rdflib
import rdflib as R
import pint as Q
import os
import subprocess as SP
import subprocess
import tempfile
import doctest

from glob import glob

from GraphDBInit import *

from DataTestTemplate import _DataTest

class EvidenceCoverageTest(_DataTest):

    @unittest.expectedFailure
    def test_verify_neurons_have_evidence(self):
        """ For each neuron in PyOpenWorm, verify
        that there is supporting evidence"""
        net = Worm().neuron_network()
        neurons = list(net.neurons())
        evcheck = []
        for n in neurons:
            hasEvidence = len(get_supporting_evidence(n))
            evcheck.append(hasEvidence)

        self.assertTrue(0 not in evcheck)

    @unittest.expectedFailure
    def test_verify_muslces_have_evidence(self):
        """ For each muscle in PyOpenWorm, verify
        that there is supporting evidence"""
        muscles = list(Worm().muscles())
        muscle_evcheck = []
        for mobj in muscles:
            hasEvidence = len(get_supporting_evidence(mobj))
            muscle_evcheck.append(hasEvidence)<commit_msg>trying to make evidence test not have false negative<commit_after># -*- coding: utf-8 -*-
import sys
sys.path.insert(0,".")
import unittest
import neuroml
import neuroml.writers as writers
import PyOpenWorm
from PyOpenWorm import *
import networkx
import rdflib
import rdflib as R
import pint as Q
import os
import subprocess as SP
import subprocess
import tempfile
import doctest

from glob import glob

from GraphDBInit import *

from DataTestTemplate import _DataTest

class EvidenceCoverageTest(_DataTest):

    def test_verify_neurons_have_evidence(self):
        """ For each neuron in PyOpenWorm, verify
        that there is supporting evidence"""
        net = Worm().neuron_network()
        neurons = list(net.neurons())
        evcheck = []
        for n in neurons:
            hasEvidence = len(get_supporting_evidence(n))
            evcheck.append(hasEvidence)
            hasEvidence = len(get_supporting_evidence(n.neurotransmitter))
            evcheck.append(hasEvidence)
            hasEvidence = len(get_supporting_evidence(n.type))
            evcheck.append(hasEvidence)
            hasEvidence = len(get_supporting_evidence(n.innexin))
            evcheck.append(hasEvidence)
            hasEvidence = len(get_supporting_evidence(n.neuropeptide))
            evcheck.append(hasEvidence)
            hasEvidence = len(get_supporting_evidence(n.receptor))
            evcheck.append(hasEvidence)

        self.assertTrue(0 not in evcheck)

    @unittest.expectedFailure
    def test_verify_muslces_have_evidence(self):
        """ For each muscle in PyOpenWorm, verify
        that there is supporting evidence"""
        muscles = list(Worm().muscles())
        muscle_evcheck = []
        for mobj in muscles:
            hasEvidence = len(get_supporting_evidence(mobj))
            muscle_evcheck.append(hasEvidence)
{'fraction_non_alphanumeric': 0.07564634535588892, 'fraction_numerical': 0.001915097350781998, 'mean_word_length': 3.0754226267880362, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2949732', 'n_tokens_mistral': 927, 'n_tokens_neox': 873, 'n_words': 241}